/* TurboToons marketing pages (index, leaderboard, pro, privacy, terms, 404). The game uses its own CSS. */
:root {
  --navy: #0b1026; --navy2: #121a3d; --navy3: #1b2552;
  --orange: #ff6b2c; --magenta: #ff3d81; --sun: #ffc23d; --sky: #4fc3ff; --mint: #4ee6a6;
  --ink: #f6f7ff; --mut: #b7bfdc; --mut2: #8a94bd;
  --line: rgba(170, 190, 255, .16); --card: rgba(22, 30, 70, .72);
  --grad: linear-gradient(100deg, var(--orange), var(--magenta));
  --r: 22px; --wrap: 1180px;
  --display: "Lilita One", "Baloo 2", system-ui, sans-serif;
  --text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--ink); font: 400 16px/1.6 var(--text); overflow-x: clip; }
img { max-width: 100%; display: block; height: auto; }
a { color: #ffb08a; text-underline-offset: 3px; }
a:hover { color: #ffd0b8; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: #1a1000; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.top.solid, .top.always { background: rgba(11, 16, 38, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 24px/1 var(--display); letter-spacing: .01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 14px rgba(255, 61, 129, .35); }
.brand:hover { color: var(--ink); }
.beta-badge { font: 700 10px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; background: var(--sun); color: #2a1a00; padding: 4px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 4px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { color: var(--mut); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .07); }
.top .btn { padding: 10px 16px; font-size: 15px; }
.menu { display: none; margin-left: auto; background: rgba(255, 255, 255, .08); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; font-size: 20px; cursor: pointer; }

/* ---------- buttons, chips ---------- */
.btn { --b: var(--grad); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 999px; border: 0; font: 800 17px/1 var(--text); text-decoration: none; cursor: pointer; color: #fff; background: var(--b); box-shadow: 0 10px 30px rgba(255, 77, 92, .35), inset 0 -3px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .25); transition: transform .18s ease, box-shadow .18s ease, filter .18s; }
.btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 40px rgba(255, 77, 92, .45), inset 0 -3px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .25); }
.btn:active { transform: translateY(1px); }
.btn.big { padding: 19px 30px; font-size: 19px; }
.btn.ghost { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(11, 16, 38, .62); border: 1px solid rgba(255, 255, 255, .18); font-size: 14px; font-weight: 600; color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; }
a.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, .45); }
.chip b { font-weight: 800; }
.chip code { font-weight: 700; color: var(--sun); letter-spacing: .06em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(78, 230, 166, .6); animation: ping 2s ease-out infinite; }
.kick { display: inline-flex; align-items: center; gap: 10px; font: 800 13px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.kick::before { content: ""; width: 26px; height: 4px; border-radius: 4px; background: var(--grad); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--mut); max-width: 700px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: center; isolation: isolate; overflow: hidden; padding: 110px 0 120px; }
.hero .bg { position: absolute; inset: -4% 0 0; z-index: -3; will-change: transform; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 62%; animation: heroZoom 30s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(11, 16, 38, .92) 0%, rgba(11, 16, 38, .74) 30%, rgba(11, 16, 38, .3) 50%, rgba(11, 16, 38, 0) 66%),
  linear-gradient(0deg, var(--navy) 0%, rgba(11, 16, 38, 0) 30%),
  linear-gradient(180deg, rgba(11, 16, 38, .7) 0%, rgba(11, 16, 38, 0) 20%); }
.speed { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.speed i { position: absolute; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .85)); opacity: 0; animation: zoom 2.6s linear infinite; }
.speed i:nth-child(1) { top: 18%; width: 220px; animation-delay: 0s; }
.speed i:nth-child(2) { top: 31%; width: 140px; animation-delay: .7s; animation-duration: 2.1s; }
.speed i:nth-child(3) { top: 47%; width: 260px; animation-delay: 1.3s; }
.speed i:nth-child(4) { top: 63%; width: 180px; animation-delay: .35s; animation-duration: 1.9s; background: linear-gradient(90deg, rgba(255, 107, 44, 0), rgba(255, 140, 80, .9)); }
.speed i:nth-child(5) { top: 74%; width: 300px; animation-delay: 1.9s; animation-duration: 2.3s; }
.speed i:nth-child(6) { top: 86%; width: 160px; animation-delay: 1s; background: linear-gradient(90deg, rgba(255, 61, 129, 0), rgba(255, 110, 160, .9)); }
.hero .wrap { position: relative; min-width: 0; }
.hero-copy { max-width: 640px; }
.wordmark { font: 400 clamp(56px, 12vw, 152px)/.86 var(--display); letter-spacing: .005em; margin: 18px 0 18px; color: #fff; text-shadow: 0 4px 0 #b8264f, 0 9px 0 rgba(60, 10, 40, .55), 0 20px 50px rgba(0, 0, 0, .45); transform: rotate(-3deg); transform-origin: left center; }
.wordmark span { background: linear-gradient(180deg, #ffd23d 0%, #ff8a2c 55%, #ff4f6e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font: 800 clamp(22px, 2.6vw, 32px)/1.2 var(--text); margin: 0 0 14px; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.hero .lead { color: #dfe4f7; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.scroll-cue { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); width: 28px; height: 44px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .5); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }

/* ---------- stat strip ---------- */
.strip { position: relative; z-index: 2; margin-top: -64px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: linear-gradient(180deg, rgba(27, 37, 82, .92), rgba(18, 26, 61, .92)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
.strip li { padding: 22px 20px; text-align: center; border-left: 1px solid var(--line); }
.strip li:first-child { border-left: 0; }
.strip b { display: block; font: 400 clamp(32px, 4vw, 46px)/1 var(--display); }
.strip span { font-size: 14px; color: var(--mut); font-weight: 600; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.sec h2 { font-size: clamp(36px, 5.4vw, 64px); margin: 14px 0 16px; }
.sec-head { max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.alt { background: radial-gradient(1000px 500px at 85% 0%, rgba(255, 61, 129, .12), transparent 70%), radial-gradient(900px 500px at 0% 100%, rgba(255, 107, 44, .1), transparent 70%), var(--navy2); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 107, 44, .45); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.card h3 { font-size: 26px; margin: 14px 0 8px; }
.card p { color: var(--mut); margin: 0; }
.icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 10px 24px rgba(255, 61, 129, .35); }
.icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon.blue { background: linear-gradient(135deg, #4fc3ff, #6b5bff); box-shadow: 0 10px 24px rgba(79, 140, 255, .35); }
.icon.green { background: linear-gradient(135deg, #4ee6a6, #1fa3b5); box-shadow: 0 10px 24px rgba(40, 200, 160, .3); }
.icon.sun { background: linear-gradient(135deg, #ffd23d, #ff8a2c); box-shadow: 0 10px 24px rgba(255, 170, 40, .35); }
.sparks { display: flex; gap: 6px; margin-top: 16px; }
.sparks span { font: 800 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.sparks .s1 { background: rgba(79, 195, 255, .18); color: #8fd8ff; }
.sparks .s2 { background: rgba(255, 140, 50, .18); color: #ffb27a; }
.sparks .s3 { background: rgba(170, 110, 255, .2); color: #c9a6ff; }

/* worlds */
.worlds { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.world { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid var(--line); background: var(--navy3); isolation: isolate; }
.world img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.world:hover img { transform: scale(1.05); }
.world figcaption { position: absolute; inset: auto 0 0; padding: 70px 24px 22px; background: linear-gradient(0deg, rgba(11, 16, 38, .95), rgba(11, 16, 38, 0)); }
.world h3 { font-size: clamp(26px, 3vw, 34px); }
.world p { margin: 6px 0 0; color: #d7dcf2; font-size: 15px; }
.world .letter { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 400 24px/1 var(--display); color: #fff; background: rgba(11, 16, 38, .6); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.world .wx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.world .wx span { font: 700 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; }

/* track maker demo */
.maker { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; align-items: stretch; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.code-out { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: #070b1c; border: 1px solid rgba(255, 194, 61, .35); margin-bottom: 22px; }
.code-out output { font: 800 clamp(26px, 3.4vw, 36px)/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--sun); }
.code-anat { display: grid; grid-template-columns: repeat(5, auto); justify-content: start; gap: 4px 12px; font-size: 12px; color: var(--mut2); margin: -10px 0 20px; }
.code-anat b { color: var(--ink); font-weight: 700; }
.field { margin-bottom: 18px; }
.field label, .field .lbl { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field label output { color: var(--sun); font-weight: 800; }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border: 0; padding: 0; margin: 0; }
.themes legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.themes label { cursor: pointer; display: block; }
.themes input { position: absolute; opacity: 0; pointer-events: none; }
.themes span { display: block; text-align: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-size: 13px; font-weight: 700; color: var(--mut); transition: all .2s; }
.themes span b { display: block; font: 400 22px/1 var(--display); color: var(--ink); margin-bottom: 4px; }
.themes input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(255, 61, 129, .3); }
.themes input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--orange), var(--magenta)); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--magenta); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--magenta); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); cursor: grab; }
.maker-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.dice { --b: linear-gradient(135deg, #4fc3ff, #6b5bff); box-shadow: 0 10px 26px rgba(79, 120, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .25); }
.dice.roll svg { animation: roll .5s ease; }
.preview { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1d2a63, #0a0f26 75%); }
.preview canvas { width: 100%; flex: 1; min-height: 320px; display: block; }
.preview .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(7, 11, 28, .6); font-size: 14px; color: var(--mut); }
.preview .meta b { color: var(--ink); }
.preview .tag { position: absolute; top: 14px; left: 14px; }

/* ghost duels */
.duel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 400 24px/1 var(--display); background: var(--grad); color: #fff; }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--mut); }
.ghost-card { position: relative; border-radius: var(--r); padding: 26px; background: linear-gradient(160deg, rgba(79, 195, 255, .14), rgba(107, 91, 255, .1)), var(--card); border: 1px solid rgba(120, 180, 255, .3); overflow: hidden; }
.ghost-card .url { font: 600 14px/1.5 ui-monospace, Menlo, monospace; color: #bfe6ff; background: rgba(7, 11, 28, .7); border: 1px dashed rgba(120, 180, 255, .4); padding: 12px 14px; border-radius: 12px; overflow-wrap: anywhere; margin-top: 14px; }
.race-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 22px; text-align: center; }
.race-vs .p { padding: 16px 10px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.race-vs .p b { display: block; font: 400 22px/1.1 var(--display); }
.race-vs .p small { color: var(--mut); font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.race-vs .p.ghost { opacity: .7; border: 1px dashed rgba(170, 210, 255, .5); }
.race-vs .vs { font: 400 28px/1 var(--display); color: var(--sun); }
.lane { position: relative; height: 54px; margin-top: 22px; border-radius: 14px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 24px, transparent 24px 48px) center / 100% 3px no-repeat, #232c55; overflow: hidden; }
.lane i { position: absolute; top: 9px; left: 0; width: 46px; height: 20px; border-radius: 10px 14px 6px 6px; background: var(--orange); animation: drive 4.2s cubic-bezier(.45, 0, .3, 1) infinite; }
.lane i::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -6px; height: 10px; background: radial-gradient(circle at 5px 5px, #111 4px, transparent 5px) 0 0 / calc(100% - 10px) 10px repeat-x; }
.lane i.g { top: 27px; background: rgba(170, 210, 255, .55); animation-duration: 4.4s; animation-delay: .1s; }

/* garage */
.garage-hero { margin: 44px 0 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #d9dde6; aspect-ratio: 16 / 7; }
.garage-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.cars { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.car { position: relative; padding: 18px 18px 16px 52px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.car::before { content: ""; position: absolute; left: 18px; top: 21px; width: 20px; height: 20px; border-radius: 7px; background: var(--c, #888); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 4px 14px var(--c, #888); }
.car b { display: block; font: 400 22px/1.1 var(--display); }
.car span { font-size: 13px; color: var(--mut); }
.car em { position: absolute; top: 14px; right: 14px; font: 800 10px/1 var(--text); letter-spacing: .12em; font-style: normal; padding: 5px 7px; border-radius: 6px; }
.car .free { background: rgba(78, 230, 166, .16); color: var(--mint); }
.car .pro { background: rgba(255, 61, 129, .2); color: #ff9cc0; }
.c-pip { --c: #ff5a4e; } .c-comet { --c: #2f8cff; } .c-bruno { --c: #ffb020; } .c-nova { --c: #9b5cff; }
.c-wasp { --c: #ffe14d; } .c-orca { --c: #3a5272; } .c-fern { --c: #2fbf71; } .c-rainier { --c: #e9f3ff; }
.note { font-size: 14px; color: var(--mut2); margin-top: 16px; }

/* online */
.online { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.big-num { font: 400 clamp(90px, 14vw, 170px)/.85 var(--display); margin: 6px 0 18px; }
.big-num small { font-size: .3em; color: var(--mut); margin-left: 10px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.feat { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.feat svg { width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 21px; margin: 10px 0 4px; }
.feat p { margin: 0; font-size: 15px; color: var(--mut); }
.devices { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* plans */
.plans { margin-top: 44px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.plans table { width: 100%; border-collapse: collapse; font-size: 16px; }
.plans th, .plans td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plans thead th { padding: 26px 22px; vertical-align: top; }
.plans thead th:first-child { vertical-align: bottom; color: var(--mut2); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.plans tbody th { font-weight: 600; width: 44%; }
.plans tr:last-child > * { border-bottom: 0; }
.plans .pn { display: block; font: 400 28px/1 var(--display); }
.plans .pp { display: block; margin-top: 8px; font: 800 30px/1 var(--text); }
.plans .pp small { font-size: 14px; font-weight: 500; color: var(--mut); }
.plans .pt { display: block; margin-top: 6px; font-size: 13px; color: var(--mint); font-weight: 700; }
.plans .pro { background: linear-gradient(180deg, rgba(255, 61, 129, .14), rgba(255, 107, 44, .05)); }
.plans thead .pro { box-shadow: inset 0 4px 0 var(--magenta); }
.plans .btn { margin-top: 16px; padding: 11px 18px; font-size: 15px; }
.plans .y { color: var(--mint); font-weight: 800; font-size: 20px; }
.plans .no { color: #5d6790; font-weight: 800; }
.plans .hint { display: block; font-size: 13px; color: var(--mut2); }

/* faq */
.faq { margin-top: 36px; display: grid; gap: 12px; max-width: 880px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 107, 44, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--display); color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--mut); margin: 0 0 20px; }

/* final */
.final { position: relative; text-align: center; border-radius: 30px; overflow: hidden; padding: clamp(56px, 9vw, 110px) 24px; isolation: isolate; border: 1px solid rgba(255, 107, 44, .35); }
.final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 55%, rgba(11, 16, 38, .55), rgba(11, 16, 38, .9) 78%); }
.final h2 { font-size: clamp(40px, 6.4vw, 78px); margin: 12px 0 10px; }
.final p { color: #dfe4f7; max-width: 560px; margin: 0 auto; }
.final .cta { justify-content: center; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--mut2); font-size: 14px; background: #080c1e; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.foot .brand { font-size: 20px; }
.foot .brand img { width: 30px; height: 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.foot a { color: var(--mut); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .legal { width: 100%; font-size: 13px; color: #6a7399; }

/* ---------- sub pages ---------- */
.page-hero { position: relative; padding: 140px 0 50px; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 400px at 80% -10%, rgba(255, 61, 129, .3), transparent 70%), radial-gradient(800px 400px at 0% 0%, rgba(255, 107, 44, .25), transparent 70%); }
.page-hero h1 { font: 400 clamp(44px, 7vw, 84px)/1 var(--display); margin: 14px 0 14px; }
.prose { max-width: 780px; padding-bottom: 90px; }
.wrap.prose { width: min(780px, 100% - 40px); margin-left: max(20px, calc((100% - var(--wrap)) / 2)); }
.prose h2 { font-size: 30px; margin: 40px 0 12px; }
.prose p, .prose li { color: #cfd5ee; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--mut2); font-size: 14px; }
.callout { padding: 18px 20px; border-radius: 16px; background: rgba(255, 194, 61, .08); border: 1px solid rgba(255, 194, 61, .3); color: #f1e3c0; }

/* leaderboard */
.board-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 90px; }
.board-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.board-head h2 { font-size: 30px; }
.daynav { display: flex; gap: 8px; }
.daynav button, .iconbtn { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; height: 42px; min-width: 42px; padding: 0 12px; font: 700 15px/1 var(--text); cursor: pointer; }
.daynav button:hover:not([disabled]) { background: rgba(255, 255, 255, .16); }
.daynav button[disabled] { opacity: .4; cursor: not-allowed; }
table.board { width: 100%; border-collapse: collapse; font-size: 15px; }
table.board th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.board td { padding: 12px; border-bottom: 1px solid rgba(170, 190, 255, .08); }
table.board .n { text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, monospace; }
table.board tbody tr:nth-child(1) td:first-child:not(.empty) { color: #ffd23d; }
table.board tbody tr:nth-child(2) td:first-child:not(.empty) { color: #dfe7f5; }
table.board tbody tr:nth-child(3) td:first-child:not(.empty) { color: #ff9a5a; }
table.board td:first-child:not(.empty) { font: 400 20px/1 var(--display); width: 48px; }
.pbadge { font: 800 9px/1 var(--text); letter-spacing: .1em; padding: 3px 5px; border-radius: 5px; background: var(--grad); color: #fff; margin-left: 6px; vertical-align: 2px; }
.empty { text-align: center; padding: 40px 16px; color: var(--mut); }
.empty b { display: block; font: 400 26px/1.2 var(--display); color: var(--ink); margin-bottom: 6px; }
.codebox { display: flex; gap: 10px; margin-top: 14px; }
.codebox input { flex: 1; min-width: 0; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: #070b1c; color: var(--sun); padding: 0 14px; font: 800 20px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.codebox input::placeholder { color: #4a557f; }
.codebox .btn { padding: 0 20px; height: 50px; font-size: 16px; }
.err { color: #ff8fa6; font-size: 14px; min-height: 1.4em; margin: 8px 0 0; }
.mini-track { width: 100%; height: 190px; display: block; margin-top: 16px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #1d2a63, #0a0f26 75%); }

/* pro */
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin-top: 30px; }
.price { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); position: relative; }
.price.best { border-color: transparent; background: linear-gradient(var(--navy2), var(--navy2)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.price .ribbon { position: absolute; top: -12px; right: 18px; background: var(--grad); color: #fff; font: 800 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.price h3 { font-size: 26px; }
.price .amt { font: 800 44px/1 var(--text); margin: 12px 0 4px; }
.price .amt small { font-size: 16px; font-weight: 500; color: var(--mut); }
.price p { color: var(--mut); font-size: 15px; margin: 0 0 18px; }
.price .btn { width: 100%; }
.benefits { margin-top: 56px; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 20px 60px; }
.lost .num { font: 400 clamp(120px, 26vw, 260px)/.9 var(--display); }
.lost p { color: var(--mut); max-width: 460px; margin: 0 auto 26px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes zoom { 0% { left: 105%; opacity: 0; } 10% { opacity: .9; } 70% { opacity: .5; } 100% { left: -30%; opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(78, 230, 166, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(78, 230, 166, 0); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes roll { to { transform: rotate(360deg); } }
@keyframes drive { 0% { left: -50px; } 100% { left: calc(100% + 10px); } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .g4, .cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .maker, .duel, .online, .board-wrap { grid-template-columns: minmax(0, 1fr); }
  .top nav { display: none; }
  .menu { display: block; }
  .top .btn { display: none; }
  .top.open { background: rgba(11, 16, 38, .97); }
  .top.open nav { display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; padding: 10px 20px 20px; background: rgba(11, 16, 38, .97); border-bottom: 1px solid var(--line); }
  .top.open nav a { padding: 14px 12px; font-size: 17px; }
}
@media (max-width: 700px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .wrap.prose { width: auto; margin-inline: 16px; }
  .hero { min-height: auto; padding: min(70vw, 300px) 0 100px; align-items: end; }
  .hero .bg { inset: 0 0 auto; height: min(120vw, 560px); }
  .hero .bg img { object-position: 55% 70%; }
  .hero::before { background: linear-gradient(0deg, var(--navy) 0%, var(--navy) calc(100% - min(120vw, 560px)), rgba(11, 16, 38, .55) calc(100% - min(66vw, 280px)), rgba(11, 16, 38, .15) calc(100% - min(30vw, 120px)), rgba(11, 16, 38, .55) 100%); }
  .wordmark { transform: rotate(-2deg); }
  .cta .btn { flex: 1 1 100%; }
  .scroll-cue, .speed { display: none; }
  .strip { margin-top: -40px; }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .worlds, .g2, .feats, .price-cards { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr; }
  .cars { grid-template-columns: 1fr 1fr; gap: 10px; }
  .car { padding: 14px 12px 12px 40px; }
  .car::before { left: 12px; top: 17px; width: 18px; height: 18px; }
  .car b { font-size: 19px; }
  .car em { position: static; display: inline-block; margin-top: 6px; }
  .card { padding: 22px; }
  .panel { padding: 20px; }
  .code-anat { grid-template-columns: repeat(3, auto); }
  .plans th, .plans td { padding: 12px 10px; font-size: 14px; }
  .plans thead th { padding: 18px 10px; }
  .plans .pn { font-size: 21px; }
  .plans .pp { font-size: 22px; }
  .plans tbody th { width: auto; }
  .plans .btn { padding: 9px 12px; font-size: 13px; }
  .foot nav { margin-left: 0; }
  .race-vs .p b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .speed { display: none; }
  .hero .bg { transform: none !important; }
  .card:hover, .btn:hover, .world:hover img { transform: none; }
}
.cards-top { margin-top: 44px; }
.card-title { font-size: 26px; margin: 0 0 4px; }
.prose-wide { padding-bottom: 90px; }
.prose-wide .faq { margin-top: 56px; }
.code-out output { white-space: nowrap; }
@media (max-width: 700px) {
  .code-out { padding: 12px 12px 12px 16px; }
  .code-out output { font-size: clamp(20px, 6.6vw, 30px); letter-spacing: .04em; }
  .code-out .btn { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .world { aspect-ratio: 4 / 3; }
  .world figcaption { padding: 60px 18px 16px; }
  .world p { font-size: 14px; }
  .plans thead th:first-child { font-size: 0; }
  .plans .pp small { display: block; font-size: 12px; margin-top: 2px; }
  .plans .pt { font-size: 11px; }
  .plans tbody th { font-size: 13px; }
  .maker-actions .btn { flex: 1 1 auto; }
  .garage-hero { aspect-ratio: 16 / 9; }
}
.board-wrap > *, .maker > *, .grid > * { min-width: 0; }
