/* Rash Riders website. Gritty 90s highway poster made modern: asphalt, sunset, chrome and flame.
   Self-hosted Roboto Black (display) and Roboto Condensed Bold (labels); system font for reading. */
@font-face { font-family: "RR Display"; src: url("../fonts/Roboto-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "RR Label"; src: url("../fonts/RobotoCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #130c11;
  --bg-deep: #0c080b;
  --surface: #1d161b;
  --surface-2: #261d24;
  --line: rgba(255, 236, 220, 0.09);
  --line-strong: rgba(255, 236, 220, 0.2);
  --text: #f7eee6;
  --text-2: #e3d5ca;
  --muted: #b5a59a;
  --flame-1: #ffd23f;
  --flame-2: #ff8a1f;
  --flame-3: #e8361c;
  --gold: #ffc23e;
  --link: #ffb35c;
  --flame: linear-gradient(180deg, #ffe066 0%, #ff8a1f 55%, #e0301c 100%);
  --radius: 18px;
  --display: "RR Display", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --label: "RR Label", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: url("../img/grain.svg") repeat, radial-gradient(1200px 600px at 50% -200px, rgba(232, 54, 28, 0.12), transparent 70%), var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #ffd29a; }
b, strong { color: #fff; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--flame-1); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--flame-2); color: #1a0a05; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--flame-1); color: #1a0a05;
  font: 700 16px var(--label); text-decoration: none;
}
.skip:focus { top: 10px; }
.eyebrow {
  margin: 0 0 12px;
  font: 700 14px/1 var(--label); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--flame-2);
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.08em; }

/* --- top bar ------------------------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 62px;
  padding: 8px max(var(--gutter), env(safe-area-inset-left)) 8px max(var(--gutter), env(safe-area-inset-right));
  background: rgba(19, 12, 17, 0.78);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-word { font: 900 20px/1 var(--display); letter-spacing: 0.01em; color: #fff; white-space: nowrap; }
.brand-word em { font-style: normal; color: var(--flame-2); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav-link {
  display: none;
  color: var(--text-2); text-decoration: none;
  font: 700 15px var(--label); letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-link:hover { color: #fff; }
@media (min-width: 760px) { .nav-link { display: inline; } }
.nav .btn { white-space: nowrap; }
@media (max-width: 419px) { .wide-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* --- buttons ------------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 12px; cursor: pointer;
  font: 700 17px/1.1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 60px; padding: 12px 26px; font-size: 19px; border-radius: 14px; }
.btn small { display: block; font-size: 0.6em; letter-spacing: 0.14em; opacity: 0.8; }
.btn-lg .ic { width: 26px; height: 26px; }
.btn-play {
  color: #fff; text-align: left;
  background: linear-gradient(180deg, #24242b, #0d0d10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 4px 0 #000, 0 14px 30px -12px rgba(0, 0, 0, 0.8);
}
.btn-play .ic { color: var(--flame-1); }
.btn-play:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.7), 0 6px 0 #000, 0 18px 34px -12px rgba(0, 0, 0, 0.8); }
.btn-flame {
  color: #1f0b04; background: var(--flame);
  box-shadow: 0 4px 0 #8c1d10, 0 14px 30px -10px rgba(232, 54, 28, 0.6);
}
.btn-flame:hover { color: #1f0b04; box-shadow: 0 6px 0 #8c1d10, 0 18px 36px -10px rgba(232, 54, 28, 0.7); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* --- hero --------------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: max(660px, calc(100svh - 62px));
  background: #160b1f;
  text-align: center;
}
.hero-grid {
  position: relative; z-index: 3;
  display: grid; gap: clamp(28px, 5vw, 44px); align-items: center;
  padding-top: clamp(32px, 6vh, 72px);
}
.kicker { margin: 0; font: 700 13px/1.2 var(--label); letter-spacing: clamp(0.14em, 0.8vw, 0.32em); text-transform: uppercase; color: #ffcf9a; }
.hero-logo { margin: 14px 0 16px; line-height: 0; }
.hero-logo img {
  display: block; width: min(100%, 600px); height: auto; margin-inline: auto;
  filter: drop-shadow(0 14px 22px rgba(24, 4, 18, 0.55));
}
.tagline {
  max-width: 24em; margin: 0 auto 10px; text-wrap: balance;
  font: 700 clamp(21px, 2.6vw, 28px)/1.2 var(--label); color: #fff3e6;
}
.lede { max-width: 52ch; margin: 0 auto 26px; color: #f0dccd; text-wrap: pretty; }
.tagline, .lede, .facts { text-shadow: 0 1px 3px rgba(20, 6, 18, 0.55); }
/* Stat row: big number over a small label, hairline dividers. */
.facts {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: center;
  margin: 30px 0 0; padding: 0; list-style: none;
}
.facts li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-inline: clamp(10px, 2vw, 22px);
  font: 700 12px/1.15 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: #f4d9c4;
}
.facts li + li { border-left: 1px solid rgba(255, 236, 220, 0.2); }
.facts b { font: 400 clamp(26px, 3vw, 34px)/1 var(--display); letter-spacing: 0; color: var(--flame-1); }

/* A landscape phone showing real gameplay; the shots cross-fade (first one is the static base). */
.hero-device { position: relative; width: min(100%, 640px); margin-inline: auto; perspective: 1800px; }
.device {
  position: relative; aspect-ratio: 16 / 9; padding: clamp(7px, 1.1vw, 11px);
  border-radius: clamp(20px, 3vw, 32px);
  background: linear-gradient(150deg, #474a52 0%, #16171b 28%, #0b0c0f 62%, #2a2c32 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    0 0 0 1px #050506,
    0 34px 60px -22px rgba(10, 2, 8, 0.85),
    0 0 90px -10px rgba(255, 138, 31, 0.45);
  transform: rotateX(5deg) rotateY(-9deg) rotateZ(0.6deg);
  animation: float 7s ease-in-out infinite alternate;
}
.device::before {
  content: ""; position: absolute; z-index: 2; left: clamp(3px, 0.45vw, 5px); top: 50%;
  width: clamp(5px, 0.6vw, 8px); aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; background: #050608; box-shadow: inset 0 0 0 1.5px #2b2e35;
}
.device-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: clamp(13px, 2vw, 22px); background: #000;
}
.device-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 32%, transparent 33%);
}
.device-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device-screen img + img { opacity: 0; animation: shot 20s linear infinite both; }
.device-screen img:nth-child(2) { animation-delay: 5s; }
.device-screen img:nth-child(3) { animation-delay: 10s; }
.device-screen img:nth-child(4) { animation-delay: 15s; }
@keyframes shot { 0% { opacity: 0; } 3%, 25% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes float { from { translate: 0 -6px; } to { translate: 0 6px; } }

/* The highway: sky gradient above the horizon, sun and mesas on it, road.js draws the road. */
.hero-road {
  position: relative; z-index: 1;
  flex: 1 0 clamp(150px, 24vh, 300px);
  margin-top: calc(clamp(54px, 8vw, 120px) - clamp(36px, 6vw, 84px));
  background: rgb(255, 170, 102);
}
.hero-road::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 1400px; z-index: -1;
  background: linear-gradient(to top, #ffb35e 0, #ff8a45 60px, #f0574a 150px, #b33059 280px, #5c1d52 450px, #2a1035 660px, #160b1f 950px);
}
.hero-road::after {
  content: ""; position: absolute; inset: auto 0 0; height: 46%; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.sun {
  position: absolute; left: 50%; bottom: 100%;
  width: clamp(300px, 46vw, 680px); aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 100%, #fff8dc 0%, #ffe08a 30%, #ffae55 56%, #ff8a45 59%, rgba(255, 120, 60, 0.32) 61%, rgba(255, 120, 60, 0) 100%);
}
.mesas { position: absolute; left: 0; bottom: 100%; width: 100%; height: clamp(54px, 8vw, 120px); }
.mesa-far { fill: #a7445a; opacity: 0.85; }
.mesa-near { fill: #5b1f38; }
.road { position: absolute; z-index: 2; left: 0; top: -48px; width: 100%; height: calc(100% + 48px); }

@media (min-width: 1040px) {
  .hero { text-align: left; }
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; padding-top: clamp(40px, 8vh, 96px); }
  .hero-logo img { margin-inline: 0; }
  .tagline, .lede { margin-inline: 0; }
  .hero-copy .cta-row, .facts { justify-content: flex-start; }
  .facts li { align-items: flex-start; }
  .facts li:first-child { padding-left: 0; }
  .hero-device { width: 92%; margin-bottom: calc(-1 * clamp(40px, 5vw, 80px)); }
  .hero-road { flex-basis: clamp(150px, 24vh, 260px); margin-top: calc(clamp(54px, 8vw, 120px) - 12px); }
  .sun { left: 72%; }
}
@media (prefers-reduced-motion: reduce) {
  .device { animation: none; }
  .device-screen img + img { display: none; }
}

/* --- sections ----------------------------------------------------------------------------- */
.section { padding-block: clamp(64px, 10vw, 120px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2, .finale h2, .legal h1, .invite h1, .lost h1 {
  font: 900 clamp(38px, 6.4vw, 66px)/0.95 var(--display); text-transform: uppercase; letter-spacing: -0.005em;
  transform: skewX(-6deg); transform-origin: 0 100%;
}
.section-head h2 { margin-bottom: 18px; }
.section-head p:last-child { color: var(--text-2); font-size: 18px; margin: 0; }

.modes { background: linear-gradient(180deg, #1b0f16, transparent 240px); }
.mode-grid, .feature-grid { display: grid; gap: 18px; }
@media (min-width: 560px) { .mode-grid, .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .mode-grid, .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.mode, .feature {
  position: relative; overflow: hidden;
  padding: 26px 24px 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.mode::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--flame); }
.mode:hover, .feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.mode h3, .feature h3 { margin: 18px 0 8px; font: 900 24px/1.05 var(--display); text-transform: uppercase; }
.mode p, .feature p { color: var(--text-2); font-size: 16px; }
.mode-icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--flame); color: #2a0e06;
  transform: skewX(-8deg);
}
.mode-icon .ic { width: 28px; height: 28px; }
.mode-ranked { background: linear-gradient(180deg, #33201d, var(--surface)); border-color: rgba(255, 194, 62, 0.28); }
.tag {
  display: inline-block; margin-top: 4px; padding: 5px 10px;
  border-radius: 999px; background: rgba(255, 138, 31, 0.12); color: #ffc78f;
  font: 700 12px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase;
}

.brawl {
  background:
    radial-gradient(700px 400px at 85% 30%, rgba(232, 54, 28, 0.16), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(255, 210, 63, 0.05) 0 14px, transparent 14px 28px) top / 100% 10px no-repeat,
    var(--bg-deep);
  border-block: 1px solid var(--line);
}
.brawl-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 920px) { .brawl-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.brawl-copy h2 {
  margin-bottom: 20px;
  font: 900 clamp(40px, 6.4vw, 70px)/0.92 var(--display); text-transform: uppercase;
  transform: skewX(-6deg); transform-origin: 0 100%;
}
.brawl-copy > p { color: var(--text-2); font-size: 18px; }
.ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 16px; height: 8px;
  background: var(--flame); transform: skewX(-20deg);
}
.powerups {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, #221a20, #17111a); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.powerups h3 { margin-bottom: 16px; font: 700 15px var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.powerups ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pu { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.pu b { display: block; font: 900 17px/1.3 var(--display); text-transform: uppercase; color: var(--pu); }
.pu-icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  color: var(--pu); background: color-mix(in srgb, var(--pu) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pu) 40%, transparent);
}
.pu-icon .ic { width: 24px; height: 24px; }
.pu-nitro { --pu: #4cc9ff; }
.pu-shield { --pu: #b294ff; }
.pu-repair { --pu: #5ce68f; }
.pu-club { --pu: #ffb02e; }
.pu-chain { --pu: #d5dbe2; }

/* --- bikes -------------------------------------------------------------------------------- */
.group-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin: 0 0 18px; font: 700 15px var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.group-premium { margin-top: 48px; color: var(--gold); }
.group-premium span { color: var(--muted); letter-spacing: 0.1em; font-size: 13px; }
.bike-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.bike-grid-premium { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.bike {
  --paint: #c8102e;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.bike:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.bike.is-premium {
  border-color: rgba(255, 194, 62, 0.4);
  background: linear-gradient(180deg, #2a1f17, var(--surface) 55%);
  box-shadow: 0 24px 50px -30px rgba(255, 150, 40, 0.5);
}
.bike-art {
  position: relative; display: grid; place-items: end center;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(180deg, #2b1233 0%, #7d2550 46%, #e8613f 78%, #ffb15e 100%);
  color: var(--paint);
}
.bike-art::after {
  content: ""; position: absolute; inset: auto 0 0; height: 20%;
  background:
    repeating-linear-gradient(90deg, #f2ece2 0 26px, transparent 26px 52px) center 46% / 100% 3px no-repeat,
    linear-gradient(180deg, #3d353b, #221d22);
}
.bike-art svg { position: relative; z-index: 1; width: 78%; margin-bottom: 5%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.bike-art img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.is-premium .bike-art { background: linear-gradient(180deg, #170c22 0%, #4b1950 40%, #c43c46 76%, #ffb04a 100%); }
.badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 6px 11px; border-radius: 7px; transform: skewX(-10deg);
  background: linear-gradient(180deg, #ffe680, #ffb21f); color: #2b1600;
  font: 700 12px/1 var(--label); letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 3px 0 #9c5f00;
}
.bike-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 18px; }
.bike h4 { font: 900 26px/1 var(--display); text-transform: uppercase; transform: skewX(-6deg); transform-origin: 0 100%; }
.bike-blurb { margin: 8px 0 16px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0 0 16px; }
.stats dt { font: 700 12px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stats dd { margin: 0; }
.bar { display: flex; gap: 3px; }
.bar i { flex: 1; height: 8px; border-radius: 1px; background: rgba(255, 255, 255, 0.1); transform: skewX(-24deg); }
.bar i.on { background: linear-gradient(180deg, #ffc04a, #ff7a1f); }
.is-premium .bar i.on { background: linear-gradient(180deg, #ffe680, #ffb21f); }
.ability {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: auto; padding: 12px 14px;
  border-radius: 12px; background: rgba(255, 138, 31, 0.08); border-left: 3px solid var(--flame-2);
}
.ability p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.ability b { display: block; font: 700 14px/1.3 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--flame-1); }
.ability-icon { flex: none; color: var(--flame-1); margin-top: 2px; }
.unlock {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-strong);
  font: 700 13px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.is-premium .unlock { color: var(--gold); }
/* Phones: swipe through the garage instead of scrolling past ten tall cards. */
@media (max-width: 699px) {
  .bike-grid, .bike-grid-premium {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: var(--flame-2) transparent;
  }
  .bike { scroll-snap-align: start; }
}
.bike[data-bike="shank_250"] { --paint: #b9552b; }
.bike[data-bike="viper_400"] { --paint: #7ed321; }
.bike[data-bike="brawler_600"] { --paint: #d0182f; }
.bike[data-bike="drifter_500"] { --paint: #00b3b3; }
.bike[data-bike="juggernaut_900"] { --paint: #8d96a3; }
.bike[data-bike="volt_750"] { --paint: #ffc20e; }
.bike[data-bike="phantom_x"] { --paint: #3b3f48; }
.bike[data-bike="inferno_gt"] { --paint: #ff5f1f; }
.bike[data-bike="raptor_rr"] { --paint: #2f62ff; }
.bike[data-bike="nightmare_v8"] { --paint: #8a3ad6; }

/* --- features, highways, screenshots ------------------------------------------------------- */
.features { padding-top: 0; }
.feature > .ic { width: 34px; height: 34px; color: var(--flame-2); }
.tracks { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.track { padding: 6px 0 6px 12px; border-left: 3px solid var(--theme, var(--flame-2)); font-size: 15px; line-height: 1.3; }
.track b { display: block; }
.track span { color: var(--muted); font-size: 13px; text-transform: capitalize; }
.track-coast { --theme: #4cc9ff; }
.track-forest { --theme: #5ce68f; }
.track-desert { --theme: #ff9a3d; }
.track-city { --theme: #d36bff; }
.track-snow { --theme: #e6f2ff; }
.screen-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.shot {
  display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot:hover, .shot:focus-visible {
  transform: translateY(-3px); border-color: var(--line-strong);
  box-shadow: 0 22px 44px -22px rgba(255, 138, 31, 0.45);
}
/* Phones: swipe through the shots. */
@media (max-width: 699px) {
  .screen-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(86%, 420px);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .screen-grid::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: start; }
}

/* --- FAQ & details ------------------------------------------------------------------------ */
.faq { background: linear-gradient(180deg, transparent, #1b0f16); }
.faq-wrap { max-width: 860px; }
details { border-bottom: 1px solid var(--line-strong); }
details:first-of-type { border-top: 1px solid var(--line-strong); }
summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0;
  font: 700 20px/1.3 var(--label); color: #fff;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 3px solid var(--flame-2); border-bottom: 3px solid var(--flame-2);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
summary:hover { color: var(--flame-1); }
details > p { margin: -4px 0 20px; color: var(--text-2); }
.faq-more { margin: 28px 0 0; }
.faq-more a, .faq-more a:hover { display: inline-flex; align-items: center; gap: 8px; font: 700 17px var(--label); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }

/* --- finale ------------------------------------------------------------------------------- */
.finale {
  position: relative; overflow: hidden; text-align: center; color: #1f0b06;
  background: linear-gradient(180deg, #ff9a4a 0%, #ff6a3d 45%, #e2453f 100%);
}
.finale::after {
  content: ""; position: absolute; inset: auto 0 0; height: 18px;
  background: repeating-linear-gradient(90deg, #f2ece2 0 40px, #c8231c 40px 80px);
}
.finale-inner { position: relative; }
.finale h2 { display: inline-block; font-size: clamp(42px, 8vw, 92px); transform-origin: 50% 100%; }
.finale p { margin: 16px 0 28px; font: 700 clamp(19px, 2.6vw, 24px) var(--label); color: #2b0e07; }

/* --- footer ------------------------------------------------------------------------------- */
.footer { padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.4fr; } .footer-brand { grid-column: auto; } }
.footer-brand .brand-word { font-size: 26px; }
.footer-brand p { margin: 10px 0 18px; color: var(--muted); max-width: 34ch; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h2 { margin-bottom: 4px; font: 700 13px var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.footer-links a { color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-fine { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-fine p { margin: 0 0 6px; }

/* --- legal & support ---------------------------------------------------------------------- */
.legal { padding-block: clamp(48px, 8vw, 88px) clamp(64px, 10vw, 112px); }
.legal h1 { margin-bottom: 14px; }
.legal-date { font: 700 14px var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.legal .lead { font-size: 19px; color: var(--text-2); }
.legal h2 {
  scroll-margin-top: 80px;
  display: flex; align-items: center; gap: 12px;
  margin: 48px 0 14px; font: 900 26px/1.15 var(--display); text-transform: uppercase;
}
.legal h2 .ic { width: 28px; height: 28px; color: var(--flame-2); }
.legal h3 { margin: 26px 0 8px; font: 700 19px/1.3 var(--label); letter-spacing: 0.04em; text-transform: uppercase; color: #ffd9b3; }
.legal p, .legal li { color: var(--text-2); line-height: 1.7; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--flame-2); }
.tldr {
  margin: 28px 0 8px; padding: 22px 24px 8px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--flame-2);
}
.tldr h2 { margin: 0 0 12px; font: 700 15px var(--label); letter-spacing: 0.2em; color: var(--flame-1); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.toc a {
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); text-decoration: none; font: 700 14px var(--label); letter-spacing: 0.06em; text-transform: uppercase;
}
.toc a:hover { color: #fff; border-color: var(--line-strong); }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child > * { border-bottom: 0; }
thead th { background: var(--surface-2); font: 700 13px var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
tbody th { width: 28%; font: 700 17px var(--label); text-transform: uppercase; letter-spacing: 0.04em; color: var(--flame-1); }
td { color: var(--text-2); }
.legal details > p { margin-top: 0; }
.steps { display: grid; gap: 16px; margin: 32px 0 8px; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
.step-card { padding: 22px 24px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.legal .step-card h2 { margin: 0 0 14px; font-size: 22px; flex-wrap: wrap; }
.step-card small { font: 700 12px var(--label); letter-spacing: 0.14em; color: var(--flame-1); }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--flame); color: #2a0e06; font-size: 18px; transform: skewX(-8deg);
}
.rules { list-style: none; counter-reset: rule; padding: 0 !important; margin: 32px 0; display: grid; gap: 14px; }
.rules li {
  counter-increment: rule; position: relative; margin: 0;
  padding: 18px 20px 18px 74px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.rules li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute; left: 20px; top: 14px;
  font: 900 30px/1 var(--display); color: transparent;
  background: var(--flame); -webkit-background-clip: text; background-clip: text;
}
.rules b { display: block; font: 700 18px var(--label); text-transform: uppercase; letter-spacing: 0.04em; }

/* --- invite & 404 ------------------------------------------------------------------------- */
.invite, .lost { padding-block: clamp(48px, 9vw, 104px); text-align: center; }
.invite h1, .lost h1 { display: inline-block; margin-bottom: 14px; transform-origin: 50% 100%; }
.invite .lead, .lost .lead { max-width: 46ch; margin: 0 auto 30px; font-size: 19px; color: var(--text-2); }
.invite-card {
  display: grid; gap: 26px; justify-items: center;
  padding: clamp(24px, 5vw, 40px); border-radius: 22px;
  background: radial-gradient(500px 220px at 50% 0, rgba(255, 138, 31, 0.18), transparent 70%), var(--surface);
  border: 1px solid var(--line-strong);
}
.plate {
  position: relative; display: grid; gap: 4px; padding: 14px 34px 16px;
  border-radius: 14px; background: linear-gradient(180deg, #fbf8ef, #e7e1d2); color: #16151a;
  box-shadow: inset 0 0 0 3px #fbf8ef, inset 0 0 0 6px #1d1c22, 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 14px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #8a8f98);
}
.plate::before { left: 14px; }
.plate::after { right: 14px; }
.plate-label { font: 700 13px/1 var(--label); letter-spacing: 0.4em; color: #c8231c; }
.plate-code { font: 900 clamp(44px, 13vw, 68px)/1 var(--display); letter-spacing: 0.12em; }
.cta-col { display: grid; gap: 12px; width: min(100%, 360px); }
@media (max-width: 419px) { .cta-col .btn-lg { padding-inline: 18px; font-size: 17px; } }
.invite-steps { max-width: 540px; margin: 36px auto 0; padding-left: 1.4em; text-align: left; color: var(--text-2); }
.invite-steps li { margin-bottom: 10px; }
.invite-steps li::marker { color: var(--flame-2); font-weight: 700; }
.lost-code {
  margin: 0; font: 900 clamp(120px, 30vw, 220px)/0.9 var(--display);
  background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: skewX(-9deg);
}

/* --- motion ------------------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head, .mode, .feature, .powerups, .group-title {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
