/* Slide 2 · 10:14: countdown → phone prototype (schedule → floor-aware route).
   Steps are cumulative classes on the slide: .s0, .s2 … .s4 (see js/arrive.js; beat 1 is skipped). */

[data-slide="arrive"] {
  --warn: #8F5600;
  --warn-fill: #FBEFD9;
  --danger: #C8281E;
  --success: #17763F;
  --map-land: #EEF2F3;
  --map-building: #E1E7EA;
  --map-casing: #D6DDE0;
  --move: 1s var(--ease-in-out);
}

/* ── Countdown ─────────────────────────────────────────────── */

[data-slide="arrive"] .countdown {
  position: absolute;
  left: 960px;
  top: 470px;
  width: 900px;
  translate: -50% -50%;
  text-align: center;
  transform-origin: center;
  transition: transform .8s var(--ease-in-out), opacity .6s var(--ease-out), filter .6s var(--ease-out);
}

[data-slide="arrive"] .cd-clock {
  font-size: 300px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--label);
  opacity: 0;
  translate: 0 30px;
  filter: blur(12px);
  transition: opacity .9s var(--ease-out), translate 1s var(--ease-out), filter .9s var(--ease-out), color .4s;
}

[data-slide="arrive"] .cd-sec {
  font-size: .32em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tertiary);
  margin-left: .1em;
  transition: color .4s;
}

[data-slide="arrive"] .cd-bar {
  width: 640px;
  height: 8px;
  margin: 28px auto 40px;
  border-radius: 8px;
  background: var(--separator);
  overflow: hidden;
  opacity: 0;
  transition: opacity .6s var(--ease-out) .3s;
}

[data-slide="arrive"] .cd-fill {
  height: 100%;
  width: calc(var(--sec, 41) / 60 * 100%);
  border-radius: inherit;
  background: var(--tint);
  transition: width 1s linear, background-color .4s;
}

[data-slide="arrive"] .cd-what,
[data-slide="arrive"] .cd-where {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  translate: 0 14px;
  transition: opacity .7s var(--ease-out), translate .8s var(--ease-out);
}

[data-slide="arrive"] .cd-what { color: var(--label); transition-delay: .5s; }
[data-slide="arrive"] .cd-where { color: var(--secondary); margin-top: 8px; transition-delay: .65s; }
[data-slide="arrive"] .cd-where b { color: var(--tint-text); font-weight: 700; }

[data-slide="arrive"].is-active.s0 .cd-clock { opacity: 1; translate: none; filter: none; }
[data-slide="arrive"].is-active.s0 .cd-bar,
[data-slide="arrive"].is-active.s0 .cd-what,
[data-slide="arrive"].is-active.s0 .cd-where { opacity: 1; translate: none; }

/* The last seconds: bar and seconds turn red and pulse. */
[data-slide="arrive"].is-late .cd-fill { background: var(--danger); animation: arrive-pulse 1s ease-in-out infinite; }
[data-slide="arrive"].is-late .cd-sec { color: var(--danger); }

@keyframes arrive-pulse { 50% { opacity: .45; } }

/* Arrival: the clock lands on 10:15 in green. */
[data-slide="arrive"].is-arrived .cd-clock,
[data-slide="arrive"].is-arrived .cd-sec { color: var(--success); }
[data-slide="arrive"].is-arrived .cd-fill { background: var(--success); animation: none; }

/* Step 2+: countdown shrinks into the left column, the phone comes in. */
/* Step 2+: the countdown leaves the stage; the phone takes over. */
[data-slide="arrive"].s2 .countdown { opacity: 0; transform: translateX(-240px) scale(.85); filter: blur(10px); }

/* ── Captions (left column) ────────────────────────────────── */

[data-slide="arrive"] .arrive-captions {
  position: absolute;
  left: 220px;
  top: 400px;
  width: 640px;
}

[data-slide="arrive"] .arrive-caption {
  position: absolute;
  inset: 0 auto auto 0;
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  opacity: 0;
  translate: 0 24px;
  transition: opacity .5s var(--ease-out), translate .7s var(--ease-out);
}

[data-slide="arrive"] .arrive-caption .kicker { display: block; margin-bottom: 18px; }

[data-slide="arrive"].s2:not(.s3) [data-at="2"],
[data-slide="arrive"].s3:not(.s4) [data-at="3"],
[data-slide="arrive"].s4 [data-at="4"] {
  opacity: 1;
  translate: none;
  transition-delay: .35s;
}

[data-slide="arrive"].s4 [data-at="4"] .kicker { color: var(--success); }

/* ── Phone: 3D product shot ───────────────────────────────── */

[data-slide="arrive"] .phone-stage {
  position: absolute;
  left: 1100px;
  top: 20px;
  width: 520px;
  height: 1050px;
}

/* Soft tinted spotlight behind the device, brightest up-right where the light comes from. */
[data-slide="arrive"] .phone-glow {
  position: absolute;
  inset: -20px -140px 120px -180px;
  background:
    radial-gradient(closest-side at 58% 42%, color-mix(in srgb, var(--tint) 26%, transparent), transparent);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

/* Shadow on the "floor", well below the phone: it floats. */
[data-slide="arrive"] .phone-shadow {
  position: absolute;
  left: 20px;
  right: 30px;
  bottom: 0;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 32, 40, .34), rgba(16, 32, 40, .12) 60%, transparent);
  filter: blur(10px);
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}

/* The camera: perspective lives here, and so does the fade, so the phone itself never has
   opacity < 1 (that would flatten its 3D edge into a single plane). */
[data-slide="arrive"] .phone-float {
  position: absolute;
  inset: 0 0 90px;
  perspective: 2000px;
  perspective-origin: 80% 30%;
  opacity: 0;
  transition: opacity .7s var(--ease-out);
}

[data-slide="arrive"] .phone {
  position: absolute;
  left: 49px;
  top: 24px;
  width: 422px;
  height: 896px;
  padding: 16px;
  border-radius: 68px;
  transform-style: preserve-3d;
  /* Front of the titanium frame: brushed gradient, a bright rim and a dark bezel. */
  background:
    linear-gradient(220deg, #7A848B 0%, #2A3136 16%, #0B0E10 50%, #1C2226 80%, #4A545B 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .45),
    inset 0 0 0 4px #2E363C,
    inset 0 0 0 7px #050708;
  transform: translate3d(160px, 180px, -320px) rotateX(24deg) rotateY(-40deg) rotateZ(8deg);
  transition: transform 1.4s cubic-bezier(.16, 1, .3, 1);
}

/* Device thickness: 20 stacked slices behind the front make a solid metal side. The slices
   are lit from the right, so the near (right) side reads bright and the far side dark. */
[data-slide="arrive"] .phone-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-style: preserve-3d;
  pointer-events: none;
}

[data-slide="arrive"] .phone-edge i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(270deg, #9AA4AB 0%, #59636A 3%, #1A2024 12%, #0B0E10 60%, #262D32 100%);
  transform: translateZ(calc(var(--z) * -2.4px));
}

/* Mid-height of the side gets a brighter band (the polished rail), the back edge goes dark. */
[data-slide="arrive"] .phone-edge i:nth-child(n+8):nth-child(-n+13) {
  background: linear-gradient(270deg, #C3CBD0 0%, #6E787F 3%, #1A2024 12%, #0B0E10 60%, #333B41 100%);
}

[data-slide="arrive"] .phone-edge i:last-child {
  background: linear-gradient(270deg, #4A545B, #0B0E10 20%, #050708);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
}

/* Buttons sit on the side rail, half way through the thickness. */
[data-slide="arrive"] .phone-btn {
  position: absolute;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(270deg, #C3CBD0, #6B757C 50%, #2A3136);
  transform: translateZ(-24px);
}

[data-slide="arrive"] .phone-btn-action { left: -4px; top: 168px; height: 34px; }
[data-slide="arrive"] .phone-btn-up { left: -4px; top: 226px; height: 62px; }
[data-slide="arrive"] .phone-btn-down { left: -4px; top: 302px; height: 62px; }
[data-slide="arrive"] .phone-btn-power { right: -4px; left: auto; top: 250px; height: 100px; }

/* The face keeps its own plane in front of the slices. */
[data-slide="arrive"] .phone-screen { transform: translateZ(.5px); }

[data-slide="arrive"].s2 .phone-float { opacity: 1; transition-delay: .25s; }

[data-slide="arrive"].s2 .phone {
  transform: rotateX(8deg) rotateY(-12deg) rotateZ(2deg);
  transition-delay: .25s;
}

[data-slide="arrive"].s2 .phone-glow,
[data-slide="arrive"].s2 .phone-shadow { opacity: 1; transition-delay: .5s; }

/* Glass: a fixed diagonal sheen. Nothing inside the tilted screen animates continuously:
   any repaint under a 3D transform re-snaps the text and makes it shimmer. */
[data-slide="arrive"] .phone-glare {
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .05) 26%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(118deg, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .06) 80%, rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: screen;
}

[data-slide="arrive"] .island {
  position: absolute;
  left: 50%;
  top: 11px;
  z-index: 6;
  width: 124px;
  height: 36px;
  translate: -50% 0;
  border-radius: 20px;
  background: #000;
}

[data-slide="arrive"] .phone-screen {
  position: relative;
  width: 390px;
  height: 864px;
  border-radius: 52px;
  overflow: hidden;
  background: var(--bg);
  font-size: 15px;
  color: var(--label);
}

[data-slide="arrive"] .status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 54px;
  padding: 18px 34px 0;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

[data-slide="arrive"] .status-icons { display: flex; gap: 5px; align-items: center; }
[data-slide="arrive"] .status-icons i { width: 16px; height: 10px; border-radius: 3px; background: var(--label); opacity: .85; }
[data-slide="arrive"] .status-icons i:first-child { width: 12px; }
[data-slide="arrive"] .status-icons i:last-child { width: 24px; }

[data-slide="arrive"] .screen {
  position: absolute;
  inset: 0;
  transition: translate .55s var(--ease-in-out), opacity .55s var(--ease-in-out);
}

/* iOS-style push: schedule slides out left, map slides in from the right. */
[data-slide="arrive"] .screen-map { translate: 100% 0; }
[data-slide="arrive"].s3 .screen-schedule { translate: -30% 0; opacity: 0; }
[data-slide="arrive"].s3 .screen-map { translate: none; }

/* ── App screens: the real FindMyETH design (web/src/styles/tokens.css). ───
   Fixed light tokens, so the phone shows the app as it looks, in either deck theme. */
[data-slide="arrive"] .phone-screen {
  --app-tint: #337691;
  --app-tint-text: #266178;
  --app-tint-fill: #E6EEF2;
  --app-bg: #F5F6F7;
  --app-surface: #FFFFFF;
  --app-fill: #ECEEF0;
  --app-separator: #DFE2E5;
  --app-text: #17191C;
  --app-text-2: #5C6166;
  --app-text-3: #696E73;
  --app-red: #C8281E;
  --app-green: #17763F;
  --app-green-fill: #DFF1E6;
  --app-amber: #8F5600;
  --app-amber-fill: #FBEFD9;
  --app-title: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --app-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  --app-float: 0 2px 10px rgba(20, 28, 32, .14);
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--app-body);
}

[data-slide="arrive"] .phone-screen .status { color: var(--app-text); }
[data-slide="arrive"] .phone-screen .status-icons i { background: var(--app-text); }

[data-slide="arrive"] .app-icons { position: absolute; width: 0; height: 0; overflow: hidden; }

[data-slide="arrive"] .i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header (both screens) */
[data-slide="arrive"] .app-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 104px;
  padding: 54px 18px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 246, 247, .92);
  border-bottom: .5px solid var(--app-separator);
}

[data-slide="arrive"] .app-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--app-title);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--app-text);
}

[data-slide="arrive"] .app-logo svg { width: 28px; height: 28px; }
[data-slide="arrive"] .avatar { width: 36px; height: 36px; border-radius: 50%; }

/* Schedule screen */
[data-slide="arrive"] .sched-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 118px 16px 0;
}

[data-slide="arrive"] .sched-month {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--app-title);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

[data-slide="arrive"] .sched-month .i { color: var(--app-text-2); }

[data-slide="arrive"] .round-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--app-fill);
  color: var(--app-text);
}

[data-slide="arrive"] .days {
  margin: 16px 16px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

[data-slide="arrive"] .day {
  height: 68px;
  padding-top: 9px;
  border-radius: 12px;
  display: grid;
  justify-items: center;
  align-content: start;
  background: var(--app-surface);
  color: var(--app-text-2);
  font-size: 12px;
}

[data-slide="arrive"] .day b { margin-top: 2px; font-size: 21px; font-weight: 500; color: var(--app-text); }
[data-slide="arrive"] .day i { width: 4px; height: 4px; margin-top: 5px; border-radius: 50%; background: var(--app-text-3); }
[data-slide="arrive"] .day.is-today { background: var(--app-tint-fill); color: var(--app-tint-text); }
[data-slide="arrive"] .day.is-today b { color: var(--app-tint-text); }
[data-slide="arrive"] .day.is-today i { background: var(--app-tint); }

[data-slide="arrive"] .agenda { list-style: none; margin: 18px 16px 0 10px; display: grid; gap: 10px; }
[data-slide="arrive"] .agenda-row { display: grid; grid-template-columns: 50px 1fr; gap: 6px; }

[data-slide="arrive"] .agenda-time {
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

[data-slide="arrive"] .agenda-time small { display: block; font-weight: 400; color: var(--app-text-2); }

[data-slide="arrive"] .agenda-item {
  position: relative;
  padding: 13px 14px 12px;
  border-radius: 16px;
  background: var(--app-surface);
  box-shadow: 0 1px 2px rgba(20, 28, 32, .04);
  overflow: hidden;
  transition: scale .1s, background-color .3s;
}

[data-slide="arrive"] .agenda-item.is-next { background: var(--app-tint-fill); }
[data-slide="arrive"] .agenda-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
[data-slide="arrive"] .next-label { font-size: 12px; font-weight: 500; color: var(--app-tint-text); }
[data-slide="arrive"] .agenda-title { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
[data-slide="arrive"] .agenda-type { margin-top: 2px; font-size: 13px; color: var(--app-text-2); }

[data-slide="arrive"] .agenda-foot {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

[data-slide="arrive"] .room { display: flex; align-items: center; gap: 6px; color: var(--app-text-2); }
[data-slide="arrive"] .room .i { width: 14px; height: 14px; }
[data-slide="arrive"] .guide { color: var(--app-tint-text); font-weight: 500; }
[data-slide="arrive"] .guide-pill { padding: 6px 12px; border-radius: 999px; background: var(--app-tint-fill); }

[data-slide="arrive"] .pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--app-fill);
  color: var(--app-text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

[data-slide="arrive"] .pill-warn { background: var(--app-amber-fill); color: var(--app-amber); font-weight: 600; }

/* The tap: a touch ripple on the next session, just before the push. */
[data-slide="arrive"] .tap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--app-tint) 35%, transparent);
  opacity: 0;
  scale: .2;
  pointer-events: none;
}

[data-slide="arrive"].is-tapping .tap { animation: arrive-tap .5s var(--ease-out); }
[data-slide="arrive"].is-tapping .agenda-item.is-next { scale: .97; background: #D3E2E9; }

@keyframes arrive-tap {
  0% { opacity: 1; scale: .2; }
  100% { opacity: 0; scale: 4; }
}

/* Map screen: indoor map in the app's soft room colours */
[data-slide="arrive"] .floorplan { position: absolute; inset: 0; width: 100%; height: 100%; }

[data-slide="arrive"] .fp-land { fill: #EFF1F0; }
[data-slide="arrive"] .fp-street { stroke: #F3D27A; stroke-width: 14; }
[data-slide="arrive"] .fp-building { fill: #F1F1F1; stroke: #B9BFC4; stroke-width: 3; }
[data-slide="arrive"] .fp-corridor { fill: #F7F7F7; }
[data-slide="arrive"] .fp-court { fill: #DCEFDC; }
[data-slide="arrive"] .fp-rooms rect { fill: #ECECEC; stroke: #C4CACE; stroke-width: 1.6; }
[data-slide="arrive"] .fp-rooms .r-lecture { fill: #DFE9F7; }
[data-slide="arrive"] .fp-rooms .r-study { fill: #DCEFDC; }
[data-slide="arrive"] .fp-rooms .r-stairs { fill: #D9E3E8; }
[data-slide="arrive"] .fp-rooms .r-wc { fill: #E5E0F5; }
[data-slide="arrive"] .fp-rooms .r-food { fill: #FDE7CF; }
[data-slide="arrive"] .fp-target { fill: #DFE9F7; stroke: var(--app-tint-text); stroke-width: 4; }
[data-slide="arrive"] .fp-labels text { font-size: 14px; font-weight: 500; fill: var(--app-text-3); text-anchor: middle; }
[data-slide="arrive"] .fp-target-label { font-size: 16px; font-weight: 600; fill: var(--app-text-2); text-anchor: middle; }
[data-slide="arrive"] .fp-stairs circle { fill: #fff; stroke: var(--app-tint); stroke-width: 3; }
[data-slide="arrive"] .fp-stairs path { fill: none; stroke: var(--app-tint-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[data-slide="arrive"] .fp-stairs { opacity: 0; transition: opacity .3s; }
[data-slide="arrive"].s3 .fp-stairs { opacity: 1; transition-delay: 1.1s; }
[data-slide="arrive"] .fp-pin path { fill: var(--app-red); stroke: #fff; stroke-width: 2; }
[data-slide="arrive"] .fp-pin circle { fill: rgba(255, 255, 255, .9); }
[data-slide="arrive"] .fp-pin { opacity: 0; transition: opacity .3s; }

[data-slide="arrive"] .route,
[data-slide="arrive"] .route-casing {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--route-len, 1000);
  stroke-dashoffset: var(--route-len, 1000);
  transition: stroke-dashoffset 1.1s var(--ease-in-out) .55s;
}

/* Route as in the app: tint line with a dark casing. */
[data-slide="arrive"] .route { stroke: #3C87A5; stroke-width: 7; }
[data-slide="arrive"] .route-casing { stroke: #1D4F63; stroke-width: 12; }

[data-slide="arrive"].s3 .route,
[data-slide="arrive"].s3 .route-casing { stroke-dashoffset: 0; }
[data-slide="arrive"].s3 .fp-pin { opacity: 1; transition-delay: 1.5s; }

[data-slide="arrive"] .you-halo { fill: color-mix(in srgb, var(--app-tint) 22%, transparent); }
[data-slide="arrive"] .you-dot { fill: var(--app-tint); stroke: #fff; stroke-width: 4; }

/* Search + chips (hidden while the turn-by-turn banner is up) */
[data-slide="arrive"] .map-top {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 112px;
  z-index: 2;
  transition: opacity .35s, translate .45s var(--ease-out);
}

[data-slide="arrive"].s4:not(.is-arrived) .map-top { opacity: 0; translate: 0 -12px; }

[data-slide="arrive"] .map-search {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--app-surface);
  box-shadow: var(--app-float);
  color: var(--app-text-2);
}

[data-slide="arrive"] .map-q { flex: 1; font-size: 16px; color: var(--app-text); }
[data-slide="arrive"] .map-search .i-mic { color: var(--app-tint); }

[data-slide="arrive"] .chips { margin-top: 10px; display: flex; gap: 8px; }

[data-slide="arrive"] .chip {
  height: 34px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--app-surface);
  box-shadow: var(--app-float);
  font-size: 14px;
  white-space: nowrap;
}

[data-slide="arrive"] .chip .i { width: 16px; height: 16px; }

/* Turn-by-turn banner */
[data-slide="arrive"] .guide-banner {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 112px;
  z-index: 2;
  padding: 12px 14px;
  border-radius: 20px;
  background: var(--app-tint);
  color: #fff;
  box-shadow: var(--app-float);
  opacity: 0;
  translate: 0 -12px;
  transition: opacity .35s, translate .45s var(--ease-out);
}

[data-slide="arrive"].s4:not(.is-arrived) .guide-banner { opacity: 1; translate: none; }

[data-slide="arrive"] .gb-row { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; }

[data-slide="arrive"] .gb-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
}

[data-slide="arrive"] .gb-icon .i { position: absolute; inset: 11px; width: 24px; height: 24px; stroke-width: 2.4; }
[data-slide="arrive"] .gb-text { position: absolute; left: 58px; font-size: 15px; line-height: 1.15; }
[data-slide="arrive"] .gb-text b { display: block; font-family: var(--app-title); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }

[data-slide="arrive"] .gb-floor {
  position: relative;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--app-tint-text);
  font-weight: 700;
  font-size: 16px;
  transition: scale .25s var(--ease-out);
}

[data-slide="arrive"] .gb-floor i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; }
[data-slide="arrive"].is-toast .gb-floor { scale: 1.18; }

[data-slide="arrive"] .gb-then {
  position: relative;
  margin-top: 10px;
  padding: 9px 12px 9px 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  font-size: 13px;
}

[data-slide="arrive"] .gb-then .i { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; }
[data-slide="arrive"] .gb-then span { display: block; }
[data-slide="arrive"] .gb-then .gb-b { position: absolute; left: 36px; top: 9px; }

/* Two banner states: before the stairs (a), after them (b). */
[data-slide="arrive"] .gb-a,
[data-slide="arrive"] .gb-b { transition: opacity .3s; }
[data-slide="arrive"] .gb-b { opacity: 0; }
[data-slide="arrive"].on-floor-e .gb-a { opacity: 0; }
[data-slide="arrive"].on-floor-e .gb-b { opacity: 1; }

/* Floor rail + map buttons */
[data-slide="arrive"] .floors {
  position: absolute;
  right: 10px;
  top: 214px;
  z-index: 1;
  padding: 4px 0;
  display: grid;
  border-radius: 999px;
  background: var(--app-surface);
  box-shadow: var(--app-float);
}

[data-slide="arrive"] .floors span {
  width: 40px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 14px;
  color: var(--app-text);
  transition: background-color .3s, color .3s;
}

[data-slide="arrive"] .floors [data-floor="D"],
[data-slide="arrive"].on-floor-e .floors [data-floor="E"] { background: var(--app-tint); color: #fff; }
[data-slide="arrive"].on-floor-e .floors [data-floor="D"] { background: transparent; color: var(--app-text); }

[data-slide="arrive"] .map-btn {
  position: absolute;
  right: 10px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--app-surface);
  box-shadow: var(--app-float);
}

[data-slide="arrive"] .map-btn-1 { top: 478px; }
[data-slide="arrive"] .map-btn-2 { top: 528px; }

/* Bottom sheet: route → walking → arrived */
[data-slide="arrive"] .sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 84px;
  z-index: 2;
  height: 290px;
  border-radius: 20px 20px 0 0;
  background: var(--app-surface);
  box-shadow: 0 -4px 18px rgba(20, 28, 32, .1);
  translate: 0 100%;
  transition: translate .6s var(--ease-out) .9s;
}

[data-slide="arrive"].s3 .sheet { translate: none; }
[data-slide="arrive"].s4 .sheet { translate: 0 186px; transition-delay: 0s; }
[data-slide="arrive"].is-arrived .sheet { translate: 0 80px; }

[data-slide="arrive"] .sheet-grab { width: 36px; height: 5px; margin: 8px auto 0; border-radius: 5px; background: var(--app-separator); }

[data-slide="arrive"] .sheet-state { position: absolute; left: 16px; right: 16px; top: 24px; transition: opacity .35s, translate .45s var(--ease-out); }
[data-slide="arrive"] .sheet-walk,
[data-slide="arrive"] .sheet-done { opacity: 0; translate: 0 10px; }
[data-slide="arrive"].s4 .sheet-route { opacity: 0; translate: 0 -10px; }
[data-slide="arrive"].s4 .sheet-walk { opacity: 1; translate: none; }
[data-slide="arrive"].is-arrived .sheet-walk { opacity: 0; translate: 0 -10px; }
[data-slide="arrive"].is-arrived .sheet-done { opacity: 1; translate: none; }

[data-slide="arrive"] .sr-head { display: flex; justify-content: space-between; align-items: flex-start; }
[data-slide="arrive"] .sr-to { font-size: 20px; font-weight: 500; }
[data-slide="arrive"] .sr-to small { display: block; font-size: 13px; color: var(--app-text-2); }

[data-slide="arrive"] .soft-btn {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--app-fill);
  font-size: 15px;
}

[data-slide="arrive"] .sr-chips { margin-top: 12px; display: flex; gap: 8px; }

[data-slide="arrive"] .soft-chip {
  height: 34px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--app-fill);
  font-size: 14px;
}

[data-slide="arrive"] .soft-chip .i { width: 15px; height: 15px; }

[data-slide="arrive"] .sr-eta { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }
[data-slide="arrive"] .sheet-walk .sr-eta { margin-top: 0; }
[data-slide="arrive"] .sr-eta p { display: flex; align-items: baseline; gap: 8px; }
[data-slide="arrive"] .sr-eta b { font-family: var(--app-title); font-size: 27px; font-weight: 800; letter-spacing: -0.02em; color: var(--app-green); }
[data-slide="arrive"] .sr-eta span { font-size: 14px; color: var(--app-text-2); font-variant-numeric: tabular-nums; }

[data-slide="arrive"] .start-btn {
  height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--app-tint);
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 500;
}

[data-slide="arrive"] .start-btn .i { width: 17px; height: 17px; }

[data-slide="arrive"] .step-card {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  background: var(--app-tint);
  color: #fff;
  font-size: 16px;
}

[data-slide="arrive"] .step-card .i { width: 22px; height: 22px; }
[data-slide="arrive"] .step-card small { display: block; margin-top: 2px; font-size: 13px; opacity: .8; }

[data-slide="arrive"] .done-row { display: flex; align-items: center; gap: 12px; }

[data-slide="arrive"] .done-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--app-green-fill);
  color: var(--app-green);
}

[data-slide="arrive"] .done-check .i { width: 22px; height: 22px; stroke-width: 2.6; }
[data-slide="arrive"] .sheet-done .sr-to small { color: var(--app-green); font-weight: 600; }
[data-slide="arrive"] .done-meta { margin-top: 10px; font-size: 14px; color: var(--app-text-2); }

[data-slide="arrive"] .done-btn {
  display: block;
  margin-top: 14px;
  height: 46px;
  line-height: 46px;
  border-radius: 999px;
  text-align: center;
  background: var(--app-tint-fill);
  color: var(--app-tint-text);
  font-weight: 500;
  font-size: 16px;
}

/* Tab bar */
[data-slide="arrive"] .tabbar {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  height: 84px;
  padding-top: 9px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, .96);
  border-top: .5px solid var(--app-separator);
}

[data-slide="arrive"] .tab {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  font-size: 11px;
  color: var(--app-text-2);
  transition: color .3s;
}

[data-slide="arrive"] .tab .i { width: 24px; height: 24px; stroke-width: 1.7; }

[data-slide="arrive"].s2 .tab[data-tab="schedule"],
[data-slide="arrive"].s3 .tab[data-tab="nav"] { color: var(--app-tint); }
[data-slide="arrive"].s3 .tab[data-tab="schedule"] { color: var(--app-text-2); }

[data-slide="arrive"].no-anim,
[data-slide="arrive"].no-anim * { transition: none !important; animation: none !important; }

/* Anti-aliasing for the tilted phone: a transparent 1px outline grows each 3D plane's
   texture by a pixel, so its visible outline is drawn (and smoothed) inside the texture
   instead of on the hard edge of the plane. Changes nothing you can see but the edges. */
[data-slide="arrive"] .phone,
[data-slide="arrive"] .phone-edge i,
[data-slide="arrive"] .phone-btn,
[data-slide="arrive"] .phone-screen {
  outline: 1px solid transparent;
}
