/* ===========================================
   HAVFUN — future.css
   Future page: Earth, car, phase cards,
   quote, time travel CTA
   =========================================== */

/* ── Body override for future page ─────────── */
body { background: #05070d; }

/* ── HEADER PILL (shared from about) ───────── */
.header-pill-wrap {
  position: fixed;
  top: 24px; left: 0; width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 40px; /* Increased for ample space */
  padding: 8px 12px 8px 24px;
  border-radius: 100px;
  height: 58px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-brand img { height: 24px; width: auto; margin-top: 4px; }
.nav-pill-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 16px; /* Added internal padding for space between links */
  transition: color 0.3s ease;
}
.nav-pill-link:hover, .nav-pill-link.is-active { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.btn-pill-menu {
  background: rgba(255,255,255,0.06);
  padding: 8px 24px;
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
}
.btn-pill-menu:hover { background: rgba(255,255,255,0.1); }
.btn-pill-cta {
  background: var(--accent-cta, #FF003C);
  color: #fff;
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 0.8rem; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.3s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-pill-cta:hover { transform: translateY(-2px); }

/* Countdown in nav */
.nav-countdown {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-primary);
  background: rgba(123,47,255,0.15);
  border: 1px solid rgba(123,47,255,0.35);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-count-label {
  font-size: 0.58rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-right: 6px;
}
.nav-count-group { display: inline-flex; align-items: baseline; gap: 1px; }
.nav-count-unit  { font-size: 0.58rem; color: var(--text-muted); }
.nav-count-sep   { color: var(--text-muted); font-size: 0.7rem; margin: 0 1px; }
.live-badge      { font-size: 0.75rem; font-weight: 800; color: var(--accent-2); }
.pc-only         { display: flex; align-items: center; gap: 8px; }

/* ══════════════════════════════════════════
   FUTURE HERO — Full Viewport Space Scene
   ══════════════════════════════════════════ */

#future-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #05070d;
}

/* ── Space Particles Canvas ─────────────── */
#future-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Toggle Bar ─────────────────────────── */
.future-toggle-bar {
  position: absolute;
  top: 116px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 6px;
  padding: 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; /* animated in by JS */
}

.toggle-btn {
  padding: 9px 26px;
  border-radius: 50px;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  border: 1px solid transparent;
  color: rgba(255,255,255,0.45);
  background: transparent;
  white-space: nowrap;
}

.toggle-btn.is-active {
  background: linear-gradient(135deg, #7B2FFF 0%, #00D4FF 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(123,47,255,0.45);
}

.toggle-btn:hover:not(.is-active) {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.15);
}

/* ── Phase Card ─────────────────────────── */
.phase-card {
  position: absolute;
  z-index: 25;
  width: min(500px, 92vw);
  background: rgba(10, 8, 22, 0.45);
  border-left: 2px solid rgba(123,47,255,0.6);
  border-radius: 4px;
  padding: 40px 50px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow:
    -20px 0 60px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.03);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: transform, opacity, top, left, bottom, right;
}

/* Position: Top Left (Phase 1 & 4) */
.phase-card.pos-tl {
  top: clamp(120px, 18vh, 200px);
  left: clamp(20px, 5vw, 64px);
  right: auto;
  bottom: auto;
  transform: none;
}

/* Position: Bottom Right (Phase 2 & 3) */
.phase-card.pos-br {
  bottom: clamp(140px, 18vh, 180px);
  right: clamp(40px, 8vw, 100px);
  left: auto;
  top: auto;
  transform: none;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(123,47,255,0.18);
  border: 1px solid rgba(123,47,255,0.4);
  color: #a87fff;
  margin-bottom: 7px;
}

.phase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.phase-number {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

.phase-users {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.phase-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.phase-feature {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phase-desc {
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.52);
  margin-bottom: 24px;
}

/* Progress dots */
.phase-progress {
  display: flex;
  align-items: center;
  gap: 7px;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  flex-shrink: 0;
}

.progress-dot.is-active {
  width: 22px;
  border-radius: 3px;
  background: linear-gradient(90deg, #7B2FFF, #00D4FF);
  box-shadow: 0 0 8px rgba(123,47,255,0.6);
}

/* ── Aim Placeholder ────────────────────── */
#aim-section {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.aim-placeholder-inner {
  padding: 40px;
}

.aim-placeholder-inner h2 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #7B2FFF, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.1;
}

.aim-placeholder-inner p {
  color: rgba(255,255,255,0.35);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* ── Track Scene ────────────────────────── */
.track-scene {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 50%, rgba(10, 15, 30, 0.4) 0%, #05070d 100%),
    repeating-linear-gradient(rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px);
}

.track-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.2));
}

.track-line {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 12;
  animation: track-flow 3s linear infinite;
}

.track-line-outer {
  stroke: rgba(0, 212, 255, 0.4);
}

.track-line-inner {
  stroke: rgba(0, 212, 255, 0.3);
}

@keyframes track-flow {
  from { stroke-dashoffset: 64; }
  to { stroke-dashoffset: 0; }
}

.track-station {
  fill: #05070d;
  stroke: #00D4FF;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px #00D4FF);
  transition: all 0.4s ease;
}

.track-station.is-active {
  fill: #00D4FF;
  r: 9;
  filter: drop-shadow(0 0 15px #00D4FF);
}

.track-grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: 
    radial-gradient(ellipse at 50% 100%, rgba(123, 47, 255, 0.15) 0%, transparent 70%);
}

/* ── Car ────────────────────────────────── */
#future-car {
  position: absolute;
  z-index: 25;
  top: 0;
  left: 0;
  width: 50px; /* Reduced for top-down proportions */
  height: auto;
  pointer-events: none;
  /* MotionPathPlugin handles placement */
  filter: drop-shadow(0 15px 15px rgba(0,0,0,0.8));
  opacity: 0;
  will-change: transform;
}

.car-light {
  filter: blur(1px);
}

.car-light-rear {
  filter: drop-shadow(0 0 5px #00D4FF);
}

.car-light-front {
  filter: drop-shadow(0 0 8px #F8FAFC);
}

/* ── Car Headlight glow (pseudo) ────────── */
#future-car::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(220,240,255,0.9) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(3px);
}

/* ── Navigation Buttons ─────────────────── */
.future-nav-btns {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

.future-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 50px;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  border: 1px solid rgba(123,47,255,0.35);
  background: rgba(10,8,22,0.65);
  color: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.future-nav-btn:hover:not(:disabled) {
  border-color: rgba(123,47,255,0.65);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(123,47,255,0.35);
}

.future-nav-btn:active:not(:disabled) {
  transform: translateY(0);
}

.future-nav-btn.btn-next {
  background: linear-gradient(135deg, rgba(123,47,255,0.85), rgba(0,180,220,0.75));
  border-color: rgba(123,47,255,0.5);
  color: #fff;
  box-shadow: 0 0 18px rgba(123,47,255,0.3);
}

.future-nav-btn.btn-next:hover:not(:disabled) {
  box-shadow: 0 0 35px rgba(123,47,255,0.55);
  transform: translateY(-2px);
}

.future-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Phase counter label (e.g. "1 / 4") */
.phase-counter {
  position: absolute;
  bottom: 134px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  opacity: 0;
}

/* ══════════════════════════════════════════
   VISION SECTION — Premium Arc Canvas
   ══════════════════════════════════════════ */

#vision-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#vision-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/*
  ══════════════════════════════════════════
  VISION SECTION — layout geometry
  ══════════════════════════════════════════

  Arc canvas geometry (set in JS):
    BASE_R = W × 0.85 → arc radius
    BASE_Y = BASE_R + H × 0.65 → arc center Y
    → arc top visible at  Y ≈ 65vh from section top
    → arc body occupies bottom 35% of section

  Text block: top = 14vh  (upper zone)
  Button:     top = 42vh  = midpoint of gap (14vh…65vh)
              Centering: transform: translate(-50%,-50%)
              → button visual center sits exactly at 42vh ✓
*/

/* ── Text block ── */
.vision-text-wrap {
  position: absolute;
  top: 14vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  width: min(92vw, 1360px);
  padding: 0 2rem;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.vision-headline {
  font-family: 'Nippo', 'Space Grotesk', sans-serif;
  margin: 0;
  letter-spacing: -0.018em;
  line-height: 1.30;
  /* Nowrap: each <span> is display:block → one DOM line each.
     white-space:nowrap prevents internal wrapping on desktop. */
  white-space: nowrap;
}

/* Line 1 — setup, slightly receded */
.vision-line-1 {
  display: block;
  font-family: 'Nippo', 'Space Grotesk', sans-serif;
  /*
    1.35vw caps at 1.35rem ≈ 21.6px:
    — Line 1 is 65 chars. 65 × 11px ≈ 715px → fits in 1320px container ✓
  */
  font-size: min(1.35vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.80) 0%,
    rgba(220, 220, 255, 0.72) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Line 2 — payoff, larger + gold, commands attention */
.vision-line-2 {
  display: block;
  font-family: 'Nippo', 'Space Grotesk', sans-serif;
  /*
    1.58vw caps at 1.58rem:
    — Line 2 now 85 chars ("interactive AI" added). 85 × 11.5px ≈ 978px → fits in 1320px container ✓
    — Intentionally larger than Line 1 for hierarchy.
  */
  font-size: min(1.58vw, 1.58rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  background: linear-gradient(90deg,
    rgba(255, 248, 200, 0.92)  0%,
    rgba(248, 205,  65, 1.00) 38%,
    rgba(255, 220,  60, 1.00) 65%,
    rgba(232, 180,  42, 0.96) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.34em;
  filter: drop-shadow(0 0 14px rgba(240, 195, 50, 0.32));
}

/* ═══════════════════════════════════════════
   CONNECT BUTTON
   — absolutely positioned at the mathematical
     midpoint between text bottom and arc top.
   Gap: text ≈ 20vh … arc ≈ 65vh → mid = 42.5vh
   button top: 42vh + transform:-50% → center at 42vh ✓
   ═══════════════════════════════════════════ */
.vision-connect-btn {
  position: absolute;
  top: 38vh;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 2.4rem;

  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;

  border-radius: 50px;
  /* Layered glass background */
  background: linear-gradient(135deg,
    rgba(123, 47, 255, 0.18) 0%,
    rgba(40,  20, 110, 0.22) 50%,
    rgba(0,  212, 255, 0.10) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;          /* clips ::after shimmer */
  -webkit-font-smoothing: antialiased;

  box-shadow:
    0 0  22px rgba(123, 47, 255, 0.28),
    0 0  44px rgba(0,  212, 255, 0.12),
    0 6px 28px rgba(0,    0,   0, 0.50),
    inset 0  1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0,   0,   0, 0.30);

  transition:
    transform  0.36s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Gradient border ring via mask technique */
.vision-connect-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(160,  90, 255, 0.80),
    rgba( 90, 200, 255, 0.50),
    rgba(160,  90, 255, 0.40)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Shimmer sweep — repeats every 3.8 s */
.vision-connect-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(100deg,
    transparent          0%,
    rgba(255,255,255,0.10) 48%,
    rgba(255,255,255,0.14) 52%,
    transparent         100%
  );
  transform: translateX(-120%);
  animation: vcb-shimmer 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes vcb-shimmer {
  0%       { transform: translateX(-120%); }
  38%, 100% { transform: translateX(120%); }
}

/* Arrow nudge on hover */
.vcb-arrow {
  display: inline-block;
  transition: transform 0.30s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity   0.30s ease;
  opacity: 0.70;
}

.vision-connect-btn:hover {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow:
    0 0  36px rgba(123, 47, 255, 0.48),
    0 0  72px rgba(0,  212, 255, 0.22),
    0 8px 36px rgba(0,    0,   0, 0.55),
    inset 0  1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0,   0,   0, 0.30);
}

.vision-connect-btn:hover .vcb-arrow {
  transform: translateX(5px);
  opacity: 1;
}

/* ── Tablet (768–1023px): allow wrapping, smaller font ── */
@media (max-width: 1023px) {
  .vision-text-wrap {
    top: 10vh;
    width: min(88vw, 720px);
    padding: 0 1.5rem;
  }
  .vision-headline {
    white-space: normal;
  }
  .vision-line-1 {
    font-size: clamp(0.82rem, 2.4vw, 1.05rem);
    font-weight: 500;
  }
  .vision-line-2 {
    font-size: clamp(0.90rem, 2.7vw, 1.15rem);
    font-weight: 700;
  }
  .vision-connect-btn {
    top: 36vh;
  }
}

/* ── Mobile (<768px): single column, allow wrapping ── */
@media (max-width: 767px) {
  .vision-text-wrap {
    top: 8vh;
    width: min(90vw, 440px);
    padding: 0 1rem;
  }
  .vision-headline { white-space: normal; }
  .vision-line-1 {
    font-size: clamp(0.76rem, 3.4vw, 0.96rem);
    letter-spacing: -0.012em;
  }
  .vision-line-2 {
    font-size: clamp(0.84rem, 3.8vw, 1.06rem);
    letter-spacing: -0.016em;
    margin-top: 0.3em;
  }
  .vision-connect-btn {
    top: 34vh;
    padding: 0.66rem 1.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }
}

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 1023px) {
  .future-toggle-bar { top: 108px; }
  /* pos-tl only — do not set top on pos-br (it uses bottom) */
  .phase-card.pos-tl { top: clamp(160px, 20vh, 220px); }
}

@media (max-width: 767px) {
  /* ── Nav: same pill structure as PC, scaled to fit ── */
  .pc-only        { display: flex; gap: 4px; }
  .nav-countdown  { display: none; }
  .header-pill-wrap { padding: 0 12px; }
  .nav-pill       { gap: 10px; height: 48px; padding: 5px 6px 5px 12px; border-radius: 100px; flex-wrap: nowrap; }
  .nav-actions    { gap: 6px; }
  .nav-brand img  { height: 18px; margin-top: 2px; }
  .nav-pill-link  { font-size: 0.7rem; letter-spacing: 0.04em; padding: 0 4px; white-space: nowrap; }
  .btn-pill-menu  { padding: 5px 10px; font-size: 0.7rem; white-space: nowrap; }
  .btn-pill-cta   { display: inline-flex; align-items: center; gap: 2px; padding: 5px 8px; font-size: 0.68rem; white-space: nowrap; }

  /* ── Toggle bar — below nav, above cards ── */
  /* Nav bottom: 24px top + 48px height = 72px; toggle 28px below = 100px */
  .future-toggle-bar {
    top: 100px;
    transform: translateX(-50%);
  }

  /* Toggle buttons — slightly smaller on mobile to avoid overlap */
  .toggle-btn {
    padding: 7px 18px !important;
    font-size: 0.72rem !important;
  }

  /* ── Phase cards — corner-anchored, same as PC ── */
  /* Reset all positioning then reapply per class */
  .phase-card {
    position: absolute !important;
    width: 188px !important;
    padding: 12px 14px !important;
    border-radius: 6px !important;
    z-index: 25;
    transition: opacity 0.5s ease;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  /* Top-left (phases 1 & 4) — bar bottom ≈ 138px, card 42px below = 180px */
  .phase-card.pos-tl {
    top: 180px !important;
    left: 22px !important;
  }

  /* Bottom-right (phases 2 & 3) — clear of counter + buttons */
  .phase-card.pos-br {
    bottom: 118px !important;
    right: 22px !important;
  }

  /* ── Card typography (shrunk to match scaled layout) ── */
  .phase-title   { font-size: 0.83rem !important; margin-bottom: 4px !important; line-height: 1.2 !important; }
  .phase-feature { font-size: 0.50rem !important; margin-bottom: 4px !important; letter-spacing: 0.03em !important; }
  .phase-desc    { font-size: 0.59rem !important; line-height: 1.42 !important; margin-bottom: 8px !important; }
  .phase-badge   { padding: 2px 5px !important; font-size: 0.49rem !important; margin-bottom: 5px !important; }
  .phase-users   { font-size: 0.50rem !important; }
  .phase-number  { font-size: 0.50rem !important; }

  /* ── Nav buttons — bottom center, below both cards ── */
  .future-nav-btns {
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) scale(0.78) !important;
    z-index: 40;
  }

  /* ── Phase counter — between pos-br card and nav buttons ── */
  .phase-counter {
    bottom: 64px !important;
    left: 50% !important;
    transform: translateX(-50%) scale(0.78) !important;
    font-size: 0.52rem !important;
    z-index: 40;
  }

  /* ── Track scene — NO SCALING. SVG fills viewport naturally.
        The track-svg has width:100% height:100% with viewBox="0 0 1000 500"
        so it stretches edge-to-edge on any screen size, same as PC. ── */
  .track-scene {
    transform: none;
  }

  /* ── Car — slightly smaller for mobile proportions ── */
  #future-car {
    width: 40px;
    height: auto;
  }
}
