/* Taxi Simulator: Real Paris 3D — site styles.
   The game's own brand (its logo and UI): taxi-sign amber #FFB829 on dark #10141B, in Barlow. Around it, the street at
   night: sodium-lamp amber for the streets, the green of a free cab's roof light for the fare in progress, and the
   limestone of Haussmann fronts for the daylight sections. */

@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }

@property --reveal {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --night: #10141B;
  --night-2: #161C26;
  --night-3: #232C3A;
  --plaque: #1E3F7A;
  --enamel: #F5F7FA;
  --amber: #FFB829;
  --lamp: #5BE38C;
  --stone: #E9E1CF;
  --stone-2: #DDD3BD;
  --ink: #142033;
  --ink-soft: #46536A;
  --mist: #A9B4C6;
  --red: #E5484D;
  --premium: #D9C59A;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.6vw, 3.75rem);
  --step-4: clamp(2.7rem, 1.7rem + 4.6vw, 5.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius-s: 6px;
  --radius-m: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--enamel);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--amber); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.02; font-weight: 800; font-stretch: 72%; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
sup { font-size: 0.6em; vertical-align: 0.5em; line-height: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lamp); color: var(--night); padding: 10px 14px; border-radius: var(--radius-s); font-weight: 700; }
.skip:focus { left: 8px; }
.todo { background: #FFE58A; color: #3A2C00; padding: 0 0.3em; border-radius: 3px; }

/* ---- Header ---------------------------------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-solid, .page-contact .site-header, .page-terms .site-header, .page-privacy .site-header, .page-legal .site-header, .page-404 .site-header {
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06);
}
.site-header__bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 60px; height: 32px; flex: none; }
.logo__sign { fill: var(--amber); }
.logo__shadow { fill: #2A313C; }
.logo__word { fill: #1A1408; font: 800 15px/1 var(--display); letter-spacing: 2.5px; }
.logo__text { display: grid; line-height: 1; gap: 3px; }
.logo__line1 { font: 800 1.12rem/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.logo__line2 { font: 700 0.68rem/1 var(--display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--amber); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; font-weight: 550; color: var(--mist); transition: color 0.2s, background-color 0.2s; }
.site-nav a:hover { color: var(--enamel); background: rgb(255 255 255 / 0.06); }
.lang-switch { font-size: 0.9rem; font-weight: 600; text-decoration: none; padding: 7px 12px; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 999px; }
.lang-switch:hover { border-color: var(--lamp); }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .lang-switch { margin-left: auto; }
}

/* ---- Buttons --------------------------------------------------------------------------------------------------- */
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 12px; background: var(--amber); color: #1A1408; font-weight: 700; text-decoration: none;
  box-shadow: 0 0 0 1px rgb(255 184 41 / 0.4), 0 10px 30px -10px rgb(255 184 41 / 0.6);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
a.store-btn:hover, button.store-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(255 184 41 / 0.6), 0 16px 34px -12px rgb(255 184 41 / 0.8); }
.store-btn--soon { background: rgb(255 184 41 / 0.1); color: var(--amber); box-shadow: inset 0 0 0 1.5px rgb(255 184 41 / 0.6); }
.store-btn--soon .lamp { background: var(--amber); box-shadow: 0 0 10px 2px rgb(255 184 41 / 0.7); }
.lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px 2px rgb(91 227 140 / 0.7); animation: lamp 2.4s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: 0.55; box-shadow: 0 0 4px 1px rgb(91 227 140 / 0.4); } }
.text-link { font-weight: 650; text-decoration: none; border-bottom: 1.5px solid rgb(255 255 255 / 0.3); padding-bottom: 2px; transition: border-color 0.2s; }
.text-link:hover { border-color: var(--lamp); }

/* ---- Hero ------------------------------------------------------------------------------------------------------ */
.hero { position: relative; min-height: max(100svh, 720px); display: grid; align-items: center; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 32px) 0 48px; }
.hero__map {
  position: absolute; z-index: -1; top: 52%; right: max(-4vw, calc((100vw - 1600px) / 2)); height: min(104%, 1100px); aspect-ratio: 1403 / 1354;
  transform: translateY(-50%);
}
.hero__map::after { /* the street fades into the copy side */
  content: ""; position: absolute; inset: 0 auto 0 -2px; width: 34%;
  background: linear-gradient(90deg, var(--night), transparent);
}
.hero__streets {
  width: 100%; height: 100%; opacity: 0.85;
  /* Street lamps coming on from the Étoile outwards, once, on load. */
  -webkit-mask-image: radial-gradient(circle at 8% 47%, #000 var(--reveal), transparent calc(var(--reveal) + 18%));
          mask-image: radial-gradient(circle at 8% 47%, #000 var(--reveal), transparent calc(var(--reveal) + 18%));
  --reveal: 140%;
  animation: lights-on 2.6s var(--ease-out) both;
}
@keyframes lights-on { from { --reveal: 0%; } to { --reveal: 140%; } }
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-route__district { fill: rgb(91 227 140 / 0.035); stroke: rgb(245 247 250 / 0.45); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; }
.hero-route__line, .hero-route__glow { fill: none; stroke: var(--lamp); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: var(--dash, 0); }
.hero-route__line { stroke-width: 7; }
.hero-route__glow { stroke-width: 26; opacity: 0.35; filter: blur(9px); }
.hero-mark circle { fill: var(--night); stroke: var(--enamel); stroke-width: 3; transition: fill 0.4s, stroke 0.4s, r 0.4s var(--ease-out); }
.hero-mark text { fill: var(--enamel); font: 650 26px/1 var(--font); font-stretch: 85%; paint-order: stroke; stroke: var(--night); stroke-width: 7px; opacity: 0.7; transition: opacity 0.4s; }
.hero-mark--route circle { stroke: var(--amber); }
.hero-mark.is-passed circle { fill: var(--lamp); stroke: var(--lamp); r: 12; }
.hero-mark.is-passed text { opacity: 1; }
.hero-taxi { transform: translate(var(--tx, -100px), var(--ty, -100px)); }
.hero-taxi__dot { fill: #fff; stroke: var(--lamp); stroke-width: 5; }
.hero-taxi__halo { fill: var(--lamp); opacity: 0.25; animation: halo 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(0.4); opacity: 0.45; } to { transform: scale(1.4); opacity: 0; } }

.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__copy { max-width: 36rem; }
.hero__title { font-size: var(--step-4); font-weight: 860; font-stretch: 66%; line-height: 0.95; letter-spacing: -0.02em; margin: 18px 0 22px; }
.hero__lede { font-size: var(--step-1); line-height: 1.45; color: #D5DCE8; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-size: var(--step--1); color: var(--mist); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* The Paris street plaque: blue enamel, white rim, the arrondissement over the name. */
.plaque {
  display: inline-grid; justify-items: center; padding: 6px 16px 8px; border-radius: 7px;
  background: var(--plaque); color: #fff; box-shadow: inset 0 0 0 2px var(--plaque), inset 0 0 0 4px #fff, 0 6px 20px -8px rgb(0 0 0 / 0.6);
  line-height: 1.05;
}
.plaque__arr { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; }
.plaque__name { font-size: 1.05rem; font-weight: 800; font-stretch: 78%; }
.hero__place { margin: 0; }

/* The taxi phone running the example fare. */
.meter {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); top: calc(var(--header-h) + 5svh); width: 300px;
  padding: 18px 18px 16px; border-radius: 22px;
  background: linear-gradient(180deg, rgb(22 28 38 / 0.92), rgb(16 20 27 / 0.95));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 30px 60px -20px rgb(0 0 0 / 0.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 0.92rem;
  animation: rise 0.9s 0.6s var(--ease-out) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.meter__head { display: flex; justify-content: space-between; align-items: center; }
.meter__stars { color: rgb(255 255 255 / 0.15); letter-spacing: 2px; font-size: 1rem; }
.meter__stars span.on { color: var(--amber); }
.meter__trip { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; font-weight: 700; font-stretch: 85%; font-size: 1.05rem; }
.meter__arrow { flex: 1; height: 2px; background: linear-gradient(90deg, var(--lamp) var(--progress, 0%), rgb(255 255 255 / 0.2) var(--progress, 0%)); border-radius: 2px; min-width: 20px; }
.meter__checklist { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.meter__checklist li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: rgb(255 255 255 / 0.06); color: var(--mist); font-size: 0.82rem; transition: background-color 0.3s, color 0.3s; }
.meter__checklist li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background 0.3s; }
.meter__checklist li.is-done { color: var(--lamp); background: rgb(91 227 140 / 0.12); }
.meter__checklist li.is-done::before { background: var(--lamp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%2306210F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; box-shadow: none; }
.meter dl { margin: 0; }
.meter dl div { display: flex; justify-content: space-between; align-items: baseline; }
.meter dt { color: var(--mist); }
.meter dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.meter__readout { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / 0.08); }
.meter__readout div:last-child dd { font-size: 1.6rem; font-stretch: 80%; color: var(--amber); }
.meter__receipt { display: grid; gap: 2px; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.6s var(--ease-out), opacity 0.4s, margin 0.6s var(--ease-out); }
.meter.is-done .meter__receipt { max-height: 140px; opacity: 1; margin-top: 6px; }
.meter__total { padding-top: 6px; margin-top: 4px; border-top: 1px dashed rgb(255 255 255 / 0.2); }
.meter__total dd { font-size: 1.6rem; font-stretch: 80%; color: var(--lamp); }
.meter__replay { all: unset; cursor: pointer; display: none; margin-top: 12px; font-size: 0.85rem; font-weight: 650; color: var(--mist); }
.meter__replay:hover { color: var(--enamel); }
.meter__replay:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.meter.is-done .meter__replay { display: inline-block; }

@media (max-width: 1100px) {
  .hero { align-items: start; min-height: 0; }
  .hero__stage { position: relative; padding: 70vw var(--gutter) 24px; margin: 28px calc(-1 * var(--gutter)) 0; overflow: hidden; }
  .hero__map { width: 118vw; height: auto; left: -6vw; right: auto; top: -30vw; transform: none; }
  .hero__map::after { display: none; }
  .hero-mark text { font-size: 40px; stroke-width: 10px; }
  .meter { position: relative; right: auto; top: auto; margin: -4vw auto 0; width: min(100%, 360px); }
}
@media (min-width: 700px) and (max-width: 1100px) {
  .hero__stage { padding-top: 56vw; }
  .hero__map { width: 96vw; left: 2vw; top: -26vw; }
}

/* ---- Sections -------------------------------------------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section__head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section__title { font-size: var(--step-3); font-stretch: 68%; font-weight: 850; }
.section__lede { font-size: var(--step-1); line-height: 1.45; margin-top: 18px; color: inherit; opacity: 0.86; }
.light { background: var(--stone); color: var(--ink); color-scheme: light; }

/* Badges: one colour per ride type, the same as in the game's phone. */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 700 0.82rem/1.2 var(--font); border: 0; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--standard { background: rgb(245 247 250 / 0.12); color: var(--enamel); }
.badge--rush { background: rgb(255 184 41 / 0.16); color: var(--amber); }
.badge--strict { background: rgb(229 72 77 / 0.16); color: #FF7B7F; }
.badge--tourist { background: rgb(110 160 255 / 0.18); color: #8DB6FF; }
.badge--premium { background: rgb(217 197 154 / 0.18); color: var(--premium); }

/* Shift: the screen sticks while the steps scroll past. */
.shift { background: var(--night-2); }
.shift__layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.shift__screen { position: sticky; top: calc(var(--header-h) + 5vh); }
.phone-frame {
  position: relative; aspect-ratio: 3120 / 1440; border-radius: 26px; padding: 10px; background: #05080E;
  box-shadow: 0 0 0 1.5px #2C3A52, 0 40px 80px -30px rgb(0 0 0 / 0.9);
}
.phone-frame::before { content: ""; position: absolute; left: 22px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #1A2233; z-index: 2; }
.phone-frame .shot { position: absolute; inset: 10px; margin: 0; border-radius: 17px; overflow: hidden; opacity: 0; transform: scale(1.03); transition: opacity 0.6s, transform 0.9s var(--ease-out); }
.phone-frame .shot.is-active { opacity: 1; transform: none; }
.phone-frame .shot img { width: 100%; height: 100%; object-fit: cover; }
/* The in-game card over the street view: the phone's offer, the GPS, the gauge, the receipt, the unlock. */
.hud { position: absolute; inset: 10px; pointer-events: none; z-index: 3; }
.hud__card {
  position: absolute; top: 7%; right: 4%; width: min(40%, 250px); padding: 12px 14px; border-radius: 16px;
  background: rgb(16 20 27 / 0.88); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 20px 40px -16px rgb(0 0 0 / 0.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: clamp(0.62rem, 0.5rem + 0.45vw, 0.88rem); line-height: 1.3;
  opacity: 0; transform: translateY(-10px) scale(0.97); transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.hud__card.is-active { opacity: 1; transform: none; transition-delay: 0.15s; }
.hud__card p { margin: 0; }
.hud__big { font-weight: 800; font-stretch: 78%; font-size: 1.45em; margin: 6px 0 2px !important; }
.hud__line { color: var(--mist); }
.hud__turn { color: var(--lamp); font-weight: 700; }
.hud__pay { margin-top: 6px !important; font-weight: 800; font-size: 1.3em; color: var(--amber); }
.hud__pay span { font-size: 0.65em; font-weight: 500; color: var(--mist); }
.hud__accept { display: block; margin-top: 8px; padding: 6px 0; border-radius: 9px; text-align: center; font-weight: 750; background: var(--lamp); color: #06210F; }
.hud__card.is-active .hud__accept { animation: lamp 1.6s ease-in-out infinite; }
.hud__timer { font-weight: 850; font-stretch: 75%; font-size: 2.4em; color: var(--amber); font-variant-numeric: tabular-nums; margin: 4px 0 !important; }
.hud__bar { display: block; height: 6px; border-radius: 6px; background: rgb(255 255 255 / 0.12); overflow: hidden; }
.hud__bar span { display: block; height: 100%; width: 64%; background: var(--amber); border-radius: inherit; }
.hud__card.is-active .hud__bar span { animation: drain 6s linear both; }
@keyframes drain { from { width: 92%; } to { width: 40%; } }
.hud__receipt { margin: 0; display: grid; gap: 2px; }
.hud__receipt div { display: flex; justify-content: space-between; gap: 8px; }
.hud__receipt dt { color: var(--mist); }
.hud__receipt dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.hud__sum { border-top: 1px dashed rgb(255 255 255 / 0.25); padding-top: 4px; margin-top: 2px; }
.hud__sum dd { color: var(--lamp); font-size: 1.25em; }
.hud__stars { color: var(--amber); letter-spacing: 2px; margin-top: 4px !important; }
.shift__steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 0 0 0 64px; min-height: 42vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.38; transition: opacity 0.4s; }
.step:last-child { min-height: 40vh; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-stretch: 75%; font-size: 1.15rem; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.25);
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.step.is-active { opacity: 1; }
.step.is-active::before { background: var(--lamp); color: #06210F; box-shadow: 0 0 20px -2px rgb(91 227 140 / 0.7); }
.step h3 { font-size: var(--step-2); margin-bottom: 10px; }
.step p { color: #C9D2E0; max-width: 30em; }
@media (max-width: 900px) {
  .shift__layout { grid-template-columns: 1fr; }
  .shift__screen { top: calc(var(--header-h) + 8px); z-index: 2; }
  .step { min-height: 46vh; }
}

/* Screenshots and their drawn stand-in. */
.shot { margin: 0; }
.shot img { border-radius: inherit; width: 100%; height: auto; }
.shot__placeholder { position: relative; width: 100%; height: 100%; aspect-ratio: 3120 / 1440; background: radial-gradient(120% 90% at 70% 30%, #23365A, var(--night) 70%); overflow: hidden; }
.shot__placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.6) rotate(-8deg); opacity: 0.4; }
.phone-frame .shot__placeholder { aspect-ratio: auto; }

/* Rides */
.rides { background: var(--stone); color: var(--ink); color-scheme: light; }
.rides .section__lede { color: var(--ink-soft); opacity: 1; }
.rides__panel { background: var(--night); color: var(--enamel); border-radius: 28px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 70px -40px rgb(20 32 51 / 0.8); }
.rides__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 4vw, 40px); }
.rides__tabs .badge { cursor: pointer; padding: 9px 16px; font-size: 0.95rem; opacity: 0.6; transition: opacity 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s; }
.rides__tabs .badge:hover { opacity: 0.9; }
.rides__tabs .badge[aria-selected="true"] { opacity: 1; box-shadow: inset 0 0 0 1.5px currentColor; transform: translateY(-1px); }
.ride { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: 260px; }
.ride[hidden] { display: none; }
.ride:not([hidden]) .ride__text { animation: ride-in 0.5s var(--ease-out) both; }
@keyframes ride-in { from { opacity: 0; transform: translateX(14px); } }
.ride h3 { font-size: var(--step-3); font-stretch: 66%; margin-bottom: 14px; }
.ride p { color: #C9D2E0; max-width: 34em; }
.ride__facts { display: grid; gap: 8px; margin: 22px 0 0; }
.ride__facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding-top: 8px; border-top: 1px solid rgb(255 255 255 / 0.08); }
.ride__facts dt { color: var(--mist); font-size: 0.9rem; }
.ride__facts dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) { .ride { grid-template-columns: 1fr; } }

/* Gauges, drawn as the game shows them, and set going when their tab opens. */
.gauge { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 220px; border-radius: 20px; background: radial-gradient(circle at 50% 40%, var(--night-3), var(--night-2)); padding: 24px; flex-wrap: wrap; }
.gauge__label { font-weight: 800; font-stretch: 75%; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.gauge--route { flex-direction: column; }
.gauge__track { width: 80%; height: 10px; border-radius: 10px; background: rgb(255 255 255 / 0.1); overflow: hidden; }
.gauge__fill { display: block; height: 100%; width: 62%; background: var(--enamel); border-radius: inherit; }
.ride:not([hidden]) .gauge__fill { animation: fill 1.4s var(--ease-out) both; }
@keyframes fill { from { width: 5%; } }
.gauge--timer svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.gauge--timer .gauge__label { position: absolute; color: var(--amber); font-size: 2rem; }
.gauge__ring-bg { fill: none; stroke: rgb(255 255 255 / 0.1); stroke-width: 10; }
.gauge__ring { fill: none; stroke: var(--amber); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 30; }
.ride:not([hidden]) .gauge__ring { animation: ring 1.6s var(--ease-out) both; }
@keyframes ring { from { stroke-dashoffset: 0; } }
.strike { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgb(255 123 127 / 0.35); }
.strike.is-hit { background: var(--red); box-shadow: 0 0 22px -2px rgb(229 72 77 / 0.8); }
.ride:not([hidden]) .strike.is-hit { animation: pop 0.5s 0.3s var(--ease-out) both; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.gauge--strikes .gauge__label, .gauge--smooth .gauge__label { flex-basis: 100%; text-align: center; font-size: 1.05rem; color: var(--mist); }
.gauge--sights { flex-direction: column; align-items: stretch; }
.sight { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgb(255 255 255 / 0.05); font-weight: 650; color: var(--mist); }
.sight::before { content: ""; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; flex: none; }
.sight.is-done { color: #8DB6FF; }
.sight.is-done::before { background: #8DB6FF; }
.ride:not([hidden]) .sight { animation: ride-in 0.5s var(--ease-out) both; }
.ride:not([hidden]) .sight:nth-child(2) { animation-delay: 0.12s; }
.ride:not([hidden]) .sight:nth-child(3) { animation-delay: 0.24s; }
.dot { width: 26px; height: 26px; border-radius: 50%; background: rgb(255 255 255 / 0.1); }
.dot.is-on { background: var(--lamp); box-shadow: 0 0 14px -2px var(--lamp); }
.ride:not([hidden]) .dot.is-on { animation: pop 0.4s var(--ease-out) both; }
.ride:not([hidden]) .dot:nth-child(2) { animation-delay: 0.08s; }
.ride:not([hidden]) .dot:nth-child(3) { animation-delay: 0.16s; }
.ride:not([hidden]) .dot:nth-child(4) { animation-delay: 0.24s; }

/* City: a screenshot and a map legend. */
.city__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.city__layout .section__head { grid-column: 1 / -1; margin-bottom: 0; }
.garage__shot { border-radius: 20px; overflow: hidden; margin: 0 0 clamp(36px, 5vw, 56px); box-shadow: 0 30px 70px -40px rgb(20 32 51 / 0.9); }
.city__shot { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08); position: sticky; top: calc(var(--header-h) + 24px); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legend__item { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 18px 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.legend__item::before { content: ""; grid-row: span 2; width: 56px; height: 24px; margin-top: 6px; }
.legend__item h3 { font-size: var(--step-1); font-stretch: 80%; margin-bottom: 6px; }
.legend__item p { color: #C9D2E0; }
.legend__item--streets::before { background: linear-gradient(var(--amber), var(--amber)) center / 100% 5px no-repeat; border-radius: 3px; }
.legend__item--traffic::before { background: repeating-linear-gradient(90deg, var(--enamel) 0 10px, transparent 10px 16px) center / 100% 4px no-repeat; }
.legend__item--sky::before { background: radial-gradient(circle at 50% 50%, var(--amber) 0 7px, rgb(255 184 41 / 0.25) 8px 12px, transparent 13px); }
.legend__item--monuments::before { background: radial-gradient(circle at 50% 50%, var(--night) 0 6px, var(--amber) 6.5px 9px, transparent 9.5px); }
.legend__item--life::before { background: radial-gradient(circle, var(--lamp) 0 3px, transparent 3.5px) 0 50% / 14px 14px repeat-x; }
@media (max-width: 900px) { .city__layout { grid-template-columns: 1fr; } .city__shot { position: static; } }

/* Garage: the car range as a line, each car a stop. */
.garage { background: var(--stone); color: var(--ink); color-scheme: light; }
.garage .section__lede { color: var(--ink-soft); opacity: 1; }
.cars { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.cars::before { content: ""; position: absolute; left: 12px; right: 12px; top: 9px; height: 6px; border-radius: 6px; background: var(--plaque); }
.car { position: relative; padding-top: 40px; }
.car::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--stone); box-shadow: inset 0 0 0 5px var(--plaque); }
.car:first-child::before { background: var(--lamp); box-shadow: inset 0 0 0 5px var(--plaque), 0 0 0 4px rgb(91 227 140 / 0.35); }
.car h3 { font-size: var(--step-1); font-stretch: 78%; }
.car p { margin-top: 4px; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 900px) {
  .cars { grid-template-columns: 1fr; gap: 0; }
  .cars::before { left: 9px; right: auto; top: 18px; bottom: 18px; width: 6px; height: auto; }
  .car { padding: 12px 0 12px 44px; }
  .car::before { top: 14px; }
}
.garage__more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 7vw, 96px); padding-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--ink); }
.feature h3 { font-size: var(--step-2); font-stretch: 70%; margin-bottom: 12px; }
.feature p { color: var(--ink-soft); }
@media (max-width: 900px) { .garage__more { grid-template-columns: 1fr; } }

/* Districts */
.districts__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.districts__layout p { color: #C9D2E0; max-width: 34em; }
.districts__layout .section__lede { color: var(--enamel); }
.districts-map { width: 100%; height: auto; overflow: visible; }
.arr path { fill: var(--night-2); stroke: #3A4D6E; stroke-width: 2; stroke-linejoin: round; transition: fill 0.3s; }
.arr text { fill: var(--mist); font: 700 22px/1 var(--font); font-stretch: 80%; text-anchor: middle; pointer-events: none; }
.arr--soon:hover path { fill: var(--night-3); }
.arr--open path { fill: rgb(91 227 140 / 0.22); stroke: var(--lamp); stroke-width: 4; filter: drop-shadow(0 0 14px rgb(91 227 140 / 0.55)); }
.arr--open text { fill: var(--lamp); font-size: 34px; }
@media (max-width: 900px) { .districts__layout { grid-template-columns: 1fr; } }

/* FAQ */
.faq { background: var(--stone); color: var(--ink); color-scheme: light; }
.faq__layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); }
.faq__item { border-top: 1.5px solid rgb(20 32 51 / 0.2); }
.faq__item:last-child { border-bottom: 1.5px solid rgb(20 32 51 / 0.2); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: var(--step-1); font-weight: 750; font-stretch: 85%; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 8px; border-right: 2.5px solid var(--plaque); border-bottom: 2.5px solid var(--plaque); transform: rotate(45deg); transition: transform 0.3s var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: 14px; }
.faq__answer { padding: 0 0 22px; color: var(--ink-soft); max-width: 40em; }
.faq__item[open] .faq__answer { animation: ride-in 0.4s var(--ease-out); }
.faq a { color: var(--plaque); font-weight: 600; }
@media (max-width: 900px) { .faq__layout { grid-template-columns: 1fr; } }

/* Finale */
.finale { overflow: hidden; isolation: isolate; text-align: center; }
.finale::before { content: ""; position: absolute; inset: -20% -10%; z-index: -1; background: url("/assets/img/map-8e.svg") center / cover no-repeat; opacity: 0.18; }
.finale::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, transparent, var(--night)); }
.finale__inner { max-width: 44rem; }
.finale__logo { width: min(100%, 420px); height: auto; margin: 0 auto 28px; }
.lost__logo { width: 220px; height: auto; margin: 0 auto 24px; }
.finale__title { font-size: var(--step-4); font-stretch: 66%; font-weight: 860; margin-bottom: 20px; }
.finale p { font-size: var(--step-1); color: #D5DCE8; }
.finale .hero__actions { justify-content: center; }

/* ---- Inner pages ----------------------------------------------------------------------------------------------- */
.doc { padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(64px, 9vw, 120px); }
.doc__head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.doc__title { font-size: var(--step-4); font-stretch: 66%; font-weight: 860; margin-bottom: 16px; }
.doc__meta { color: var(--mist); font-size: var(--step--1); }
.doc__layout { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.92rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--night-3); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--mist); text-decoration: none; }
.toc a:hover, .toc a.is-current { color: var(--enamel); border-left-color: var(--lamp); }
.prose { color: #D5DCE8; }
.prose h2 { font-size: var(--step-2); font-stretch: 72%; color: var(--enamel); margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); font-stretch: 85%; color: var(--enamel); margin: 1.6em 0 0.5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--amber); }
.prose a { color: var(--lamp); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.prose th { color: var(--enamel); font-weight: 700; }
.prose .card { background: var(--night-2); border-radius: var(--radius-m); padding: 20px 22px; margin: 0 0 1.4em; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.prose .card dl { display: grid; grid-template-columns: minmax(8rem, 0.5fr) 1fr; gap: 8px 18px; margin: 0; }
.prose .card dt { color: var(--mist); }
.prose .card dd { margin: 0; color: var(--enamel); }
@media (max-width: 900px) { .doc__layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* Contact */
.contact__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 22px; background: var(--night-2); border-radius: 24px; padding: clamp(20px, 3vw, 36px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .form label { display: block; font-weight: 700; margin-bottom: 10px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label { margin: 0; cursor: pointer; padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; background: rgb(255 255 255 / 0.06); color: var(--mist); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.topics input:checked + label { background: rgb(91 227 140 / 0.14); color: var(--lamp); box-shadow: inset 0 0 0 1.5px var(--lamp); }
.topics input:focus-visible + label { outline: 3px solid var(--lamp); outline-offset: 2px; }
.form input[type="text"], .form input[type="email"], .form textarea, .form select {
  width: 100%; font: inherit; color: var(--enamel); background: var(--night); border: 1.5px solid var(--night-3); border-radius: 12px; padding: 13px 14px; transition: border-color 0.2s;
}
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--lamp); }
.form__hint { font-size: var(--step--1); color: var(--mist); margin-top: 8px; }
.form__error { color: #FF9EA1; font-size: 0.92rem; margin-top: 8px; }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.form__done { display: none; padding: 14px 16px; border-radius: 12px; background: rgb(91 227 140 / 0.1); color: var(--lamp); }
.form.is-sent .form__done { display: block; }
.contact__aside h2 { font-size: var(--step-2); font-stretch: 72%; margin-bottom: 16px; }
.contact__aside .channel { padding: 18px 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.contact__aside .channel h3 { font-size: var(--step-1); font-stretch: 85%; margin-bottom: 6px; }
.contact__aside .channel p { color: #C9D2E0; }
.contact__aside a { color: var(--lamp); font-weight: 600; }
@media (max-width: 900px) { .contact__layout { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 80svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 60px; }
.lost .plaque { transform: rotate(-4deg); margin-bottom: 26px; }
.lost .plaque__name { font-size: 1.6rem; }
.lost .hero__actions { justify-content: center; }

/* ---- Footer ---------------------------------------------------------------------------------------------------- */
.site-footer { background: #0B0E13; padding: 64px 0 36px; font-size: 0.95rem; color: var(--mist); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer__brand p { margin-top: 14px; max-width: 22em; }
.site-footer h2 { font-size: 0.95rem; font-stretch: 100%; font-weight: 700; color: var(--enamel); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--enamel); }
.site-footer__base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.08); display: grid; gap: 6px; font-size: 0.85rem; }
.site-footer__base p { margin: 0; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---- Motion preferences ---------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-taxi__halo { display: none; }
}
