:root {
  --asphalt: #0d1b21;
  --asphalt-2: #12262e;
  --panel: #102229;
  --ink: #1c1f25;
  --paper: #eaeaeb;
  --mist: #d2d3d4;
  --yellow: #ffcc2a;
  --yellow-2: #f0bc12;
  --line: rgba(210, 211, 212, 0.16);
  --line-strong: rgba(210, 211, 212, 0.32);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --nav: 76px;
  --max: 1180px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font: "Barlow", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--asphalt);
  color: var(--mist);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 12;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: linear-gradient(to bottom, rgba(13, 27, 33, 0.92), rgba(13, 27, 33, 0.55) 70%, transparent);
}
.brand img { height: 36px; width: auto; }
.nav-cluster {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--yellow);
  color: var(--ink);
  clip-path: polygon(36px 0, 100% 0, 100% 100%, 0 100%, 14px 50%, 0 0);
  padding: 0 28px 0 48px;
  height: 64px;
}
.checks {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 28px;
  height: 48px;
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--ink) 75%),
    linear-gradient(-45deg, transparent 75%, var(--ink) 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  opacity: 0.9;
}
.nav-cluster ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-cluster a {
  font-family: var(--display);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-cluster a:hover,
.nav-cluster a[aria-current="true"] { text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle {
  display: none;
  background: var(--yellow);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  position: relative;
  z-index: 2;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.tower {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  width: 132px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  background: rgba(13, 27, 33, 0.78);
  backdrop-filter: blur(8px);
}
.tower-kicker,
.eyebrow {
  margin: 0 0 8px;
  font-family: var(--display);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tower ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tower a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  font-size: 12px;
  color: var(--mist);
  opacity: 0.55;
}
.tower a[aria-current="true"] { opacity: 1; color: var(--yellow); }
.tower-speed {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tower-speed strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 120px 7vw 0;
  overflow: hidden;
}
.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video { opacity: 0.55; }
.hero-shade {
  background:
    linear-gradient(to top, var(--asphalt) 0%, rgba(13, 27, 33, 0.2) 42%, rgba(13, 27, 33, 0.45) 100%),
    radial-gradient(ellipse at 70% 40%, transparent, rgba(13, 27, 33, 0.45));
}
.hero-copy { position: relative; z-index: 1; max-width: 760px; padding-bottom: 28px; }
.welcome {
  display: block;
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 0.85;
  color: var(--paper);
  text-transform: uppercase;
}
.hero-logo { width: min(420px, 78vw); margin: 8px 0 14px; }
.tagline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper);
}
.tagline em { color: var(--yellow); font-style: italic; }
.lede, .section-lede {
  color: var(--mist);
  font-size: 17px;
  max-width: 62ch;
}
.radio {
  min-height: 1.5em;
  margin: 18px 0 0;
  font-style: italic;
  color: var(--yellow);
}
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.avail { margin: 0; font-style: italic; }
.avail strong { font-style: italic; }
.stores { display: flex; gap: 10px; margin-top: 18px; }
.stores img { height: 52px; width: auto; }
.store {
  display: inline-flex;
  line-height: 0;
}
.store.is-disabled {
  opacity: 0.4;
  filter: grayscale(1);
  cursor: not-allowed;
  user-select: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 16px;
}
.btn:hover { background: var(--yellow-2); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-block { width: 100%; }

.sectors {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  margin: 0 -7vw;
}
.sectors a {
  text-decoration: none;
  padding: 18px 22px 22px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 2px;
  background: rgba(13, 27, 33, 0.55);
}
.sectors a:last-child { border-right: 0; }
.sectors a:hover { background: rgba(255, 204, 42, 0.08); }
.sectors span { color: var(--yellow); font-size: 12px; letter-spacing: 0.14em; }
.sectors strong { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper); }
.sectors small { color: var(--mist); opacity: 0.8; }

.tape { background: var(--yellow); color: var(--ink); overflow: hidden; transform: rotate(-1.4deg) scale(1.04); margin: 8px 0 28px; }
.tape-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.tape p {
  margin: 0;
  padding: 14px 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 72px 7vw 40px; scroll-margin-top: 84px; }
.section-head { max-width: 820px; margin-bottom: 32px; }
.section h2, .close h2, .cups h3, .chapter-stage h3 {
  margin: 0 0 12px;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 76px);
}
.cups h3 { font-size: clamp(28px, 3vw, 44px); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.proof-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.proof-card b {
  font-family: var(--display);
  color: var(--yellow);
  letter-spacing: 0.16em;
  font-size: 13px;
}
.proof-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--paper);
}
.proof-card p { margin: 0; font-size: 15px; }
.proof-film { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.proof-film img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.proof-scene {
  position: relative;
  height: 72px;
  margin-top: 6px;
  background: #0b171c;
  border: 1px solid var(--line);
  overflow: hidden;
}
.proof-scene .line {
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(210, 211, 212, 0.35);
}
.proof-scene .you,
.proof-scene .ghost {
  position: absolute;
  height: 8px;
  top: calc(50% - 14px);
}
.proof-scene .you { width: 28px; background: var(--yellow); animation: drive 2.8s linear infinite; }
.proof-scene .ghost { width: 22px; top: calc(50% + 6px); background: rgba(210, 211, 212, 0.45); animation: drive 3.6s linear infinite; }
.eq {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 72px;
  margin-top: 6px;
  padding: 10px 12px;
  background: #0b171c;
  border: 1px solid var(--line);
}
.eq i {
  flex: 1;
  height: 100%;
  background: var(--yellow);
  transform-origin: bottom;
  animation: eq 1.15s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: 0.1s; }
.eq i:nth-child(3) { animation-delay: 0.22s; }
.eq i:nth-child(4) { animation-delay: 0.05s; }
.eq i:nth-child(5) { animation-delay: 0.28s; }
.eq i:nth-child(6) { animation-delay: 0.14s; }
.eq i:nth-child(7) { animation-delay: 0.32s; }
.eq i:nth-child(8) { animation-delay: 0.08s; }
.eq i:nth-child(9) { animation-delay: 0.2s; background: var(--paper); }
@keyframes eq {
  0%, 100% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
}
.trailer { width: min(900px, 100%); margin: 28px auto 0; }
.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
}
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-link {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--yellow);
}
.trailer-link:hover { color: var(--paper); }

.mode-board {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: stretch;
}
.mode-list { display: grid; gap: 8px; align-content: start; }
.mode-btn, .car-btn, .chapter-btn, .chip, .class-card {
  background: var(--panel);
  color: var(--mist);
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}
.mode-btn, .chapter-btn {
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}
.mode-btn small, .chapter-btn small, .car-btn small { display: block; color: var(--yellow); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.car-btn span { display: grid; gap: 2px; min-width: 0; }
.car-btn strong { line-height: 1.2; }
.mode-btn strong, .chapter-btn strong, .car-btn strong { color: var(--paper); font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.03em; text-transform: uppercase; }
.mode-btn[aria-selected="true"],
.chapter-btn[aria-selected="true"],
.car-btn[aria-selected="true"],
.chip[aria-selected="true"],
.class-card[aria-selected="true"] {
  border-color: var(--yellow);
  background: linear-gradient(90deg, rgba(255, 204, 42, 0.16), transparent 55%), var(--panel);
}
.mode-stage, .sheet, .chapter-stage, .class-card {
  background: var(--panel);
  border: 1px solid var(--line);
}
.mode-stage { padding: 28px; min-height: 0; position: relative; }
.mode-copy { max-width: 62ch; margin: 14px 0 0; }
.scene {
  position: relative;
  height: 148px;
  margin-top: 18px;
  background: #0b171c;
  border: 1px solid var(--line);
  overflow: hidden;
}
.scene .mark, .scene small {
  position: absolute;
  z-index: 2;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 13px;
}
.scene .mark { top: 14px; left: 14px; }
.scene .mark.end { left: auto; right: 14px; }
.scene .you, .scene .ghost, .scene .rival, .scene .npc, .scene .racer {
  position: absolute;
  height: 10px;
  background: var(--yellow);
}
.scene-sprint .line, .scene-elim .line, .scene-chase .line {
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(210, 211, 212, 0.35);
}
.scene-sprint .you { width: 34px; top: calc(50% - 14px); animation: drive 2.6s ease-in-out infinite; }
.scene-sprint .ghost { width: 26px; background: rgba(210, 211, 212, 0.45); }
.scene-sprint .g1 { top: calc(50% - 2px); animation: drive 3.4s linear infinite; }
.scene-sprint .g2 { top: calc(50% + 12px); width: 22px; animation: drive 4s linear infinite; }
.scene-circuit { height: 210px; }
.scene-circuit svg { display: block; width: 100%; height: 100%; }
.scene-circuit .asphalt {
  fill: none;
  stroke: rgba(210, 211, 212, 0.35);
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.scene-circuit .sf {
  stroke: var(--yellow);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}
.scene-circuit .car { fill: var(--yellow); }
.scene-circuit .bot { fill: rgba(210, 211, 212, 0.62); }
.scene-circuit .car,
.scene-circuit .bot {
  offset-path: url("#circuit-line");
  offset-rotate: auto;
  animation: orbit 6.4s linear infinite;
}
.scene-circuit .t1 { animation-delay: -2.1s; }
.scene-circuit .t2 { animation-delay: -4.3s; }
.scene-drag .tree {
  position: absolute;
  left: 12%;
  top: 28px;
  bottom: 36px;
  width: 3px;
  background: var(--yellow);
}
.scene-drag .you { width: 36px; top: 46px; animation: launch 2.2s ease-in infinite; }
.scene-drag .rival { width: 36px; top: 70px; background: rgba(210, 211, 212, 0.55); animation: launch 2.2s ease-in infinite; animation-delay: .15s; }
.scene-drag .tach {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 16px;
  height: 8px;
  background: rgba(210, 211, 212, 0.15);
}
.scene-drag .tach b {
  position: absolute;
  left: 58%;
  width: 14%;
  top: 0;
  bottom: 0;
  background: var(--yellow);
}
.scene-drift .bend {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 36px;
  height: 70px;
  border: 2px solid rgba(210, 211, 212, 0.35);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 80px 0 0;
}
.scene-drift .you {
  width: 28px;
  top: 48px;
  transform: rotate(-18deg);
  animation: slide-drift 2.8s ease-in-out infinite;
}
.scene-drift .puff {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(210, 211, 212, 0.35);
  top: 70px;
  animation: smoke 2.8s ease-out infinite;
}
.scene-drift b {
  position: absolute;
  right: 16px;
  top: 16px;
  font-family: var(--display);
  font-size: 36px;
  color: var(--yellow);
}
.scene-highway .line { position: absolute; left: 0; right: 0; height: 1px; background: rgba(210, 211, 212, 0.28); }
.scene-highway .a { top: 36px; }
.scene-highway .b { top: 78px; }
.scene-highway .npc { width: 22px; height: 8px; background: rgba(210, 211, 212, 0.55); animation: pass 3.2s linear infinite; }
.scene-highway .n1 { top: 24px; }
.scene-highway .n2 { top: 86px; width: 30px; animation-duration: 4.4s; }
.scene-highway .you { width: 30px; top: 58px; animation: weave 3s ease-in-out infinite; }
.scene-trial .line {
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(210, 211, 212, 0.35);
}
.scene-trial .you, .scene-chase .you { width: 34px; top: calc(50% - 14px); animation: drive 3.2s linear infinite; }
.scene-trial .gate, .scene-chase .gate {
  position: absolute;
  top: calc(50% - 34px);
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--yellow);
}
.scene-trial .gate i, .scene-chase .gate i { width: 2px; height: 28px; background: var(--yellow); }
.scene-trial .g3 { left: 46%; }
.scene-trial .g2 { left: 64%; }
.scene-trial .g1 { left: 82%; }
.scene-chase .c1 { left: 40%; }
.scene-chase .c2 { left: 58%; }
.scene-chase .c3 { left: 76%; }
.scene-elim .gate {
  position: absolute;
  left: 82%;
  top: calc(50% - 34px);
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--yellow);
}
.scene-elim .gate i { width: 2px; height: 28px; background: var(--yellow); }
.scene-elim .racer { width: 24px; background: rgba(210, 211, 212, 0.55); animation: pack 2.8s linear infinite; }
.scene-elim .r1 { top: calc(50% - 26px); }
.scene-elim .you { width: 32px; top: calc(50% - 14px); animation: pack 2.3s linear infinite; }
.scene-elim .r3 { top: calc(50% - 2px); width: 22px; animation-duration: 3.2s; }
.scene-elim .last { top: calc(50% + 10px); width: 22px; animation: drop 2.8s linear infinite; background: rgba(210, 211, 212, 0.4); }
@keyframes drive { from { left: 12%; } to { left: 74%; } }
@keyframes orbit { to { offset-distance: 100%; } }
@keyframes launch { from { left: 16%; } to { left: 70%; } }
@keyframes slide-drift { from { left: 14%; } to { left: 62%; } }
@keyframes smoke { from { left: 14%; opacity: 0.7; } to { left: 40%; opacity: 0; } }
@keyframes pass { from { left: -12%; } to { left: 110%; } }
@keyframes weave { 0%, 100% { left: 18%; top: 58px; } 50% { left: 46%; top: 34px; } }
@keyframes pack { from { left: 8%; } to { left: 68%; } }
@keyframes drop { 0% { left: 8%; opacity: 1; } 62% { left: 50%; opacity: 1; } 100% { left: 54%; opacity: 0; } }
.mode-art {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: min(420px, 50%);
  opacity: 0.28;
  pointer-events: none;
  mask-image: linear-gradient(to top, transparent, #000 30%);
}
.mode-kicker { color: var(--yellow); letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.mode-stage h3 {
  margin: 8px 0 8px;
  font-family: var(--display);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 0.85;
}
.mode-hook { max-width: 46ch; font-size: 18px; }
.instrument {
  margin: 22px 0;
  padding: 16px;
  border: 1px dashed rgba(255, 204, 42, 0.45);
  background: rgba(13, 27, 33, 0.45);
  position: relative;
}
.instrument p { margin: 8px 0 0; font-size: 14px; }
.gauge, .rpm, .combo, .lanes, .gates, .laps {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pip, .gate, .lap {
  height: 18px;
  flex: 1;
  background: rgba(210, 211, 212, 0.15);
  position: relative;
  overflow: hidden;
}
.pip.on, .gate.out { background: var(--yellow); }
.pip.charge::after, .lane-car {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: var(--yellow);
  animation: slide 1.6s ease-in-out infinite;
}
@keyframes slide { 50% { width: 100%; } }
.rpm { height: 22px; background: rgba(210, 211, 212, 0.12); position: relative; }
.rpm .zone {
  position: absolute;
  left: 56%;
  width: 14%;
  top: 0;
  bottom: 0;
  background: rgba(255, 204, 42, 0.85);
}
.rpm .needle {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--paper);
  left: 62%;
  animation: needle 2.4s ease-in-out infinite;
}
@keyframes needle { 50% { left: 68%; } }
.combo { font-family: var(--display); font-size: 52px; font-weight: 700; color: var(--yellow); letter-spacing: 0.02em; }
.combo span { font-size: 14px; letter-spacing: 0.12em; color: var(--mist); font-style: normal; margin-left: 8px; }
.lanes { height: 54px; position: relative; }
.lane {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.lane:nth-child(1) { top: 10px; }
.lane:nth-child(2) { top: 27px; }
.lane:nth-child(3) { top: 44px; }
.traffic {
  position: absolute;
  width: 18px;
  height: 8px;
  background: var(--mist);
  top: 6px;
  animation: traffic 3.2s linear infinite;
}
.traffic.b { top: 23px; animation-duration: 4.4s; width: 26px; opacity: 0.7; }
.traffic.c { top: 40px; animation-duration: 2.6s; background: var(--yellow); }
@keyframes traffic { from { left: -10%; } to { left: 110%; } }
.clockface {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  line-height: 1;
}
.clockface em { color: var(--yellow); font-style: italic; }
.time-marks { display: grid; grid-template-columns: 1.03fr 0.07fr 0.1fr; height: 10px; margin-top: 10px; }
.time-marks i { background: var(--yellow); }
.time-marks i:nth-child(2) { background: rgba(255, 204, 42, 0.55); }
.time-marks i:nth-child(3) { background: rgba(255, 204, 42, 0.28); }
.gates .gate.danger { outline: 1px solid var(--yellow); }
.stars { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; position: relative; }
.star {
  flex: 1 1 140px;
  min-width: 140px;
  border-top: 2px solid var(--yellow);
  padding-top: 8px;
}
.star b { display: block; color: var(--yellow); letter-spacing: 0.08em; font-size: 12px; }
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; position: relative; }
.meta-row div { min-width: 140px; }
.meta-row span { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.meta-row strong { color: var(--paper); font-weight: 600; }

.class-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.class-card { padding: 14px; }
.class-card b { display: block; font-family: var(--display); color: var(--paper); font-size: 22px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.class-card span { color: var(--yellow); font-variant-numeric: tabular-nums; }
.garage-layout { display: grid; grid-template-columns: 1fr 400px; gap: 16px; align-items: start; }
.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 8px 12px; }
.search input {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 12px;
  min-width: 180px;
}
.search input:focus { outline: 1px solid var(--yellow); }
.car-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}
.car-btn { padding: 8px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.car-btn img { width: 72px; height: 44px; object-fit: cover; flex: none; background: #071014; }
.car-btn em { font-style: normal; font-size: 12px; opacity: 0.7; white-space: nowrap; }
.sheet-shot { width: calc(100% + 40px); margin: -20px -20px 16px; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #071014; }
.empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line); }

.sheet { padding: 20px; position: sticky; top: 92px; overflow: hidden; }
.sheet-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.plate {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 4px 8px;
  font-weight: 700;
}
.sheet h3 {
  margin: 10px 0 4px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 0.9;
}
.role { margin-top: 0; }
.stat { display: grid; grid-template-columns: 72px 1fr auto; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.stat b { font-variant-numeric: tabular-nums; font-weight: 600; }
.stat small { margin-left: 4px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.55; font-weight: 500; }
.bar { height: 8px; background: rgba(210, 211, 212, 0.12); }
.bar i { display: block; height: 100%; background: var(--yellow); }
.slider-row { margin: 16px 0; }
.slider-row input { width: 100%; accent-color: var(--yellow); }
.rating-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.rating-readout strong { font-family: var(--display); font-size: 48px; font-weight: 700; color: var(--paper); letter-spacing: 0.02em; }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 14px; }
.slot-col span { display: block; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
.dots { display: grid; gap: 3px; }
.dots i { display: block; height: 8px; background: rgba(210, 211, 212, 0.15); }
.dots i.on { background: var(--yellow); }
.tier-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tier-line span {
  border: 1px solid var(--line);
  padding: 4px 7px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chapter-shot { width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; margin: 0 0 14px; display: block; }
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: start;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.team-card {
  position: relative;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 340px;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.team-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 16px 16px;
  background: linear-gradient(to top, rgba(5, 10, 14, 0.94), transparent);
}
.team-meta b {
  font-family: var(--display);
  color: var(--yellow);
  letter-spacing: 0.16em;
  font-size: 13px;
}
.team-meta h3 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--paper);
}
.team-meta p { margin: 6px 0 0; font-size: 15px; }
.loc { background: var(--panel); border: 1px solid var(--line); }
.loc .shot { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; position: relative; }
.loc img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.loc-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(5, 10, 14, 0.9), transparent);
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 0.9;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.loc:hover .loc-name,
.loc:focus-within .loc-name { opacity: 1; transform: none; }
@media (hover: none) {
  .loc-name { opacity: 1; transform: none; }
}
.lightbox {
  width: min(1100px, calc(100vw - 32px));
  border: 1px solid var(--line);
  background: var(--asphalt);
  color: var(--mist);
  padding: 14px;
}
.lightbox::backdrop { background: rgba(5, 10, 14, 0.84); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.lightbox p { margin: 10px 0 0; }
.lightbox-close {
  font-family: var(--display);
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  padding: 8px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  cursor: pointer;
}

.fine { color: rgba(210, 211, 212, 0.72); font-size: 13px; }

.loop { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0; margin: 0 0 22px; }
.loop li { border-top: 2px solid var(--yellow); padding-top: 8px; }
.loop b { display: block; color: var(--paper); }
.career-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.chapter-list { display: grid; gap: 8px; }
.chapter-stage { padding: 24px; min-height: 320px; }
.mix { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.mix span { background: rgba(255, 204, 42, 0.12); color: var(--yellow); padding: 4px 8px; font-size: 12px; }
.rank-rail { display: grid; gap: 0; margin-top: 16px; padding: 0; list-style: none; }
.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.rank-item b { color: var(--yellow); font-variant-numeric: tabular-nums; }

.cups { margin-top: 28px; }
.cup-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cup {
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(16, 34, 41, 0.8);
  min-height: 210px;
}
.cup.hard { border-color: var(--yellow); }
.cup strong { display: block; color: var(--paper); font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: 0.04em; }
.cup p { margin: 8px 0 0; font-size: 14px; }

.close {
  padding: 80px 7vw 100px;
  text-align: center;
}
.close p { margin-left: auto; margin-right: auto; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 7vw 40px;
  border-top: 1px solid var(--line);
}
.footer-brand img { height: 42px; margin-bottom: 8px; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.socials a { color: var(--yellow); }
.footer-meta { max-width: 420px; text-align: right; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

@media (min-width: 1101px) {
  .hero { padding-left: 196px; padding-right: 56px; }
  .section { padding-left: 196px; padding-right: 56px; }
  .close { padding-left: 196px; padding-right: 56px; }
  .footer { padding-left: 196px; padding-right: 56px; }
  .sectors { margin-left: -196px; margin-right: -56px; }
}

@media (max-width: 1100px) {
  .tower { display: none; }
  .mode-board, .garage-layout, .career-layout, .cup-list, .class-row, .loop, .loc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 340px)); }
  .cup-list, .class-row { grid-template-columns: 1fr 1fr; }
  .loop { grid-template-columns: 1fr 1fr; }
  .car-list { max-height: none; }
  .sheet { position: static; }
}

@media (max-width: 780px) {
  .nav { padding: 0 14px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cluster {
    display: none;
    position: absolute;
    top: 64px;
    right: 12px;
    left: 12px;
    height: auto;
    clip-path: none;
    padding: 16px;
  }
  .nav-cluster.open { display: block; }
  .nav-cluster ul { flex-direction: column; gap: 12px; }
  .checks { display: none; }
  .hero { padding: 104px 18px 0; }
  .sectors { margin: 0 -18px; grid-template-columns: 1fr 1fr; }
  .sectors a { border-bottom: 1px solid var(--line); }
  .section { padding: 48px 18px 24px; }
  .mode-board, .garage-layout, .career-layout, .class-row, .car-list, .cup-list, .loop, .loc-grid, .proof-grid {
    grid-template-columns: 1fr;
  }
  .team-grid { grid-template-columns: minmax(0, 340px); }
  .footer { flex-direction: column; padding: 24px 18px 36px; }
  .footer-meta { text-align: left; }
  .mode-stage h3 { font-size: 46px; }
  .clockface { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene .you, .scene .ghost, .scene .rival, .scene .npc, .scene .racer, .scene .puff, .scene .meter, .scene-circuit .car, .scene-circuit .bot, .proof-scene .you, .proof-scene .ghost, .eq i, .tape-track { animation: none; }
  .loc-name { transition: none; }
}
