/* Pump Kart: the start line. Restyles base.css for asphalt, chalk paint and the racer in its kart.
   Reads only tokens.css. One motion moment per page; the footer switch turns all of it off. */

/* ---------- type ---------- */
h1, h2, .display { font-style: var(--display-style); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
h1.display { font-size: clamp(44px, 6.6vw, 96px); line-height: 0.95; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
b { font-weight: 600; color: var(--ink); }
.lede b { color: var(--ink); }

/* ---------- header ---------- */
.brand { color: var(--ink); gap: 0; }
.brand svg { height: 24px; width: auto; }
.brand { gap: 8px; }
.brand-pic { display: block; height: auto; }
.demo-strip { background: #0F0F14; border-bottom: 1px solid var(--line); }
.demo-strip b { color: var(--warn); }
.nav a { font-weight: 500; }
.nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
.ca.small { border-style: dashed; }

/* ---------- buttons ---------- */
.btn { font-weight: 600; }
.btn.primary { background: var(--accent-strong); color: #FFFFFF; box-shadow: 0 2px 0 var(--accent-deep), 0 10px 30px -12px rgba(147, 51, 234, 0.7); }
.btn.primary:hover { filter: none; background: #A043F5; }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 0 0 var(--accent-deep); }
.race-btn { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); background: transparent; }
a.st-row:hover .race-btn { background: var(--accent); color: var(--on-accent); }

/* ---------- the kart ---------- */
.kart-box { display: block; line-height: 0; }
.kart-box svg { width: 100%; height: auto; overflow: visible; }
.kart .wheel { transform-box: fill-box; transform-origin: center; }
.kart.idle .wheel { animation: spin 1.6s linear infinite; }
.kart .pads { transform-box: fill-box; transform-origin: center; }
.kart.idle .pads { animation: hover 2.4s var(--ease) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hover { 50% { transform: translateY(-1.5px); } }
.head { display: inline-block; line-height: 0; }

/* ---------- level: the plate and the XP bar ---------- */
.plate { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 5px; background: var(--ink); color: #17161D; font-weight: 700; font-size: 13px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.plate.top { background: var(--accent); }
.xp { display: grid; gap: 6px; min-width: 0; }
.xp-bar { height: 6px; border-radius: 3px; background: rgba(243, 240, 232, 0.1); overflow: hidden; }
.xp-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.xp-text { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.level { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---------- checkpoint flags: green when the pot bought there ---------- */
.flags { display: inline-flex; gap: 6px; align-items: center; }
.flag { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; }
.flag i { width: 13px; height: 10px; border-radius: 2px; border: 1.5px solid var(--line-3); }
.flag.passed i { border-color: var(--pot); }
.flag.paid i { background: var(--pot); border-color: var(--pot); }
.flag.paid { color: var(--pot); }

/* ---------- start lights: three red, then green ---------- */
.lights { display: inline-flex; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #0A0B10; border: 1px solid var(--line-2); }
.light { width: 16px; height: 16px; border-radius: 50%; background: var(--pot); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.lights:not(.still) .light { animation: light 6s infinite steps(1, end); }
.lights:not(.still) .l2 { animation-name: light2; }
.lights:not(.still) .l3 { animation-name: light3; }
@keyframes light { 0% { background: #2A2D36; } 3% { background: #E5402F; } 35% { background: var(--pot); } 70% { background: #2A2D36; } }
@keyframes light2 { 0% { background: #2A2D36; } 14.6% { background: #E5402F; } 35% { background: var(--pot); } 70% { background: #2A2D36; } }
@keyframes light3 { 0% { background: #2A2D36; } 26.3% { background: #E5402F; } 35% { background: var(--pot); } 70% { background: #2A2D36; } }

/* ---------- home: the start line ---------- */
.start { padding-top: clamp(40px, 6vw, 72px); display: grid; justify-items: center; text-align: center; }
.start .kicker { margin-bottom: 18px; }
.start .lede { margin: 20px auto 0; max-width: 40em; }
.start .ctas { justify-content: center; margin-top: 28px; }
.grid-strip { position: relative; width: 100%; margin-top: 40px; height: 300px; border-radius: var(--r-lg); background: var(--bg-2); border: var(--border); overflow: hidden; text-align: left; }
.grid-strip::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 100%, transparent 60%, rgba(0, 0, 0, 0.35)); }
.grid-line { position: absolute; top: 0; bottom: 0; right: 9%; width: 24px; background: var(--check); opacity: 0.9; }
.grid-lane { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(243, 240, 232, 0.12); }
.grid-lights { position: absolute; top: 14px; right: calc(9% - 30px); z-index: 2; }
.slot { position: absolute; width: 200px; display: grid; gap: 2px; color: var(--ink); }
.slot::before { content: ""; position: absolute; right: -4px; width: 54px; top: 8px; bottom: 26px; border: 2px solid rgba(243, 240, 232, 0.24); border-left: 0; border-radius: 0 4px 4px 0; }
.slot-n { position: absolute; left: 0; top: 4px; font: 800 italic 34px/1 var(--font-display); color: rgba(243, 240, 232, 0.1); }
.slot .kart-box { position: relative; width: 168px; margin-left: 26px; }
.slot-label { position: relative; display: flex; gap: 8px; align-items: center; font: 500 12px/1 var(--font-mono); color: var(--ink-2); padding-left: 30px; white-space: nowrap; }
.slot-label b { color: var(--ink); font-weight: 700; }
.slot-label .plate { height: 20px; min-width: 24px; font-size: 11.5px; }
a.slot:hover .slot-label b { color: var(--accent); }
.slot-open { color: var(--accent); font-weight: 600; }
.slot.p1 { right: calc(9% + 30px); top: 10px; }
.slot.p2 { right: calc(9% + 30px + 140px); top: 152px; }
.slot.p3 { right: calc(9% + 30px + 280px); top: 10px; }
.slot.p4 { right: calc(9% + 30px + 420px); top: 152px; }
.slot.p5 { right: calc(9% + 30px + 560px); top: 10px; }
.slot.p6 { right: calc(9% + 30px + 700px); top: 152px; }
.grid-strip:not(.still) .slot .kart-box { animation: roll 6s var(--ease) infinite; }
@keyframes roll { 0%, 35% { transform: translateX(0); } 45%, 80% { transform: translateX(9px); } 92%, 100% { transform: translateX(0); } }
.start-foot { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; margin-top: 18px; text-align: left; }
.start-foot .ca { margin-top: 0; }
.stats { gap: 10px 32px; }
.stat-value { font-size: 22px; font-weight: 500; }
.stat .pot-v { color: var(--pot); }

/* ---------- home: four stops on a track ---------- */
.stops { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.stops::before { content: ""; position: absolute; left: 20px; right: 20px; top: 15px; border-top: 2px dashed var(--line-3); }
.stop { position: relative; display: grid; gap: 10px; align-content: start; }
.stop-n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); font: 700 12px var(--font-mono); }
.stop:last-child .stop-n { border-color: var(--pot); color: var(--pot); }
.stop h3 { margin-top: 6px; }
.stop-pic { height: 108px; border-radius: var(--r); background: var(--surface); border: var(--border); display: grid; place-items: center; padding: 10px 14px; overflow: hidden; }
.stop-pic .heads { display: flex; gap: 2px; }
.pic-row { display: grid; gap: 10px; width: 100%; }
.pic-split { width: 100%; }
.pic-split .split { margin: 0; height: 30px; }
.pic-lv { display: flex; align-items: center; gap: 12px; width: 100%; }
.pic-lv .xp { flex: 1; }

/* ---------- standings: a timing tower ---------- */
.standings { display: grid; border-radius: var(--r-lg); border: var(--border); background: var(--surface); overflow: hidden; }
.st-row { display: grid; grid-template-columns: 44px 124px minmax(160px, 1fr) minmax(170px, 230px) 120px 140px 84px; align-items: center; gap: 16px; padding: 10px 18px; border-top: var(--border); min-height: 82px; transition: background var(--t) var(--ease); }
.st-row:first-child { border-top: 0; }
a.st-row:hover { background: var(--surface-2); }
.st-headrow { min-height: 40px; padding-top: 10px; padding-bottom: 10px; font: 500 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.st-pos { font-size: 14px; color: var(--muted); }
a.st-row:first-of-type .st-pos { color: var(--accent); }
.st-kart .kart-box { width: 112px; }
.st-coin { display: grid; gap: 2px; min-width: 0; }
.st-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-sym { font-size: 12.5px; color: var(--ink-2); }
.st-racer { font-size: 12.5px; color: var(--muted); }
.st-level { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; }
.st-level .xp { grid-column: 2; }
.st-level .plate { grid-row: span 2; }
.st-wins { font-size: 12px; color: var(--ink-2); }
.st-mcap { display: grid; gap: 2px; font-size: 14.5px; }
.st-mcap span { font-size: 12px; }
.st-go { text-align: right; }
.skeleton.st-row { grid-template-columns: 44px 124px 1fr 1fr; }
.sk-kart { height: 60px; } .sk { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--bg-2), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }

/* ---------- coin card ---------- */
.coin-card { gap: 12px; padding: 0 0 16px; overflow: hidden; }
.coin-card > :not(.card-track) { margin-inline: 16px; }
.card-track { position: relative; background: var(--bg-2); border-bottom: var(--border); padding: 14px 18px 6px; display: grid; justify-items: center; }
.card-track::before { content: ""; position: absolute; right: 22px; top: 0; bottom: 0; width: 12px; background: var(--check); opacity: 0.55; }
.card-track .kart-box { position: relative; width: min(230px, 86%); }
.card-slot { position: absolute; left: 14px; top: 10px; font-size: 12px; color: var(--muted); }
.card-id { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-nums { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.card-nums > div { display: grid; gap: 4px; }
.card-last { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview .card-last { white-space: normal; }

/* ---------- home: the garage ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.rung { position: relative; display: grid; gap: 8px; align-content: start; padding: 12px 12px 14px; border-radius: var(--r); background: var(--surface); border: var(--border); }
.rung .kart-box { width: 100%; }
.rung-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rung-what { font-size: 13.5px; font-weight: 500; }
.rung-wins { font-size: 12px; color: var(--muted); }
.rung.top { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.ladder-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.ladder-pick .muted { font-size: 14px; }

/* ---------- home: the pot ---------- */
.pot-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; margin-top: 28px; align-items: start; }
.pot-card { display: grid; gap: 16px; }
.pot-big { font: 500 clamp(40px, 5vw, 64px)/1 var(--font-mono); color: var(--pot); letter-spacing: -0.02em; }
.pot-big small { font-size: 0.4em; color: var(--ink-2); margin-left: 8px; }
.rules { display: grid; gap: 0; border-top: var(--border); }
.rules li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 0; border-bottom: var(--border); font-size: 14.5px; }
.rules li span:last-child { font-family: var(--font-mono); color: var(--pot); }
.feed { border-radius: var(--r-lg); border: var(--border); background: var(--surface); padding: 4px 18px; }
.feed-row { grid-template-columns: 92px 78px 1fr auto 64px; gap: 12px; }
.feed-row:last-child { border-bottom: 0; }
.feed-kind { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.k-level .feed-kind { color: var(--accent); }
.k-potbuy .feed-kind, .k-fees .feed-kind { color: var(--pot); }
.k-checkpoint .feed-kind { color: var(--ink); }
a.feed-sym:hover { color: var(--accent); }
.feed-text { min-width: 0; }

/* ---------- home: the roster ---------- */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 26px; }
.tile { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: var(--r); background: var(--surface); border: var(--border); text-align: center; font-size: 12.5px; color: var(--ink-2); cursor: pointer; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease); }
.tile:hover { border-color: var(--line-3); color: var(--ink); transform: translateY(-2px); }
.tile[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.tile .head svg { width: 60px; height: 60px; }
.tile-no { font: 500 10.5px var(--font-mono); color: var(--muted); }

/* ---------- band, footer ---------- */
.band { justify-items: center; text-align: center; padding-bottom: 20px; }
.band h2 { font-size: clamp(36px, 5vw, 64px); }
.band h2 .accent { color: var(--accent); }
.band .fine { max-width: 44em; }
#foot { position: relative; padding-top: 0; border-top: 0; }
.foot-check { height: 14px; background: var(--check); background-size: 14px 14px; opacity: 0.85; margin-bottom: 44px; }
.foot { grid-template-columns: 1fr auto; }
.foot-brand .brand svg { height: 26px; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-col { display: grid; gap: 8px; align-content: start; font-size: 14.5px; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-base { align-items: end; }
.foot-base p { max-width: 60em; }

/* ---------- coin page: the garage ---------- */
.garage-head { display: grid; grid-template-columns: minmax(300px, 520px) 1fr; gap: 36px; align-items: center; padding-top: 36px; }
.garage-kart { position: relative; padding: 22px 30px 10px; border-radius: var(--r-lg); background: var(--bg-2); border: var(--border); overflow: hidden; }
.garage-kart::before { content: ""; position: absolute; right: 26px; top: 0; bottom: 0; width: 18px; background: var(--check); opacity: 0.5; }
.garage-kart .kart-box { position: relative; }
.garage-kart .lights { position: absolute; top: 12px; left: 14px; }
.garage-title { display: grid; gap: 14px; align-content: center; }
.garage-title h1 { font-size: clamp(34px, 4.4vw, 58px); }
.garage-title h1 .mono { font-size: 0.42em; font-style: normal; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.level-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.level-line .plate { height: 34px; min-width: 42px; font-size: 18px; }
.level-line .what { font-size: 15px; color: var(--ink-2); }
.level-line .what b { color: var(--ink); }
.garage-title .xp { max-width: 440px; }
.garage-title .xp-bar { height: 8px; }
.garage-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.coin-stats { margin-top: 26px; }
.coin-stats .stat { background: var(--surface); }
.coin-grid { grid-template-columns: 1fr 380px; }
.side { display: grid; gap: 18px; align-content: start; }
.cp-list { display: grid; gap: 0; margin-top: 6px; }
.cp { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: var(--border); }
.cp:first-child { border-top: 0; }
.cp .flag i { margin-top: 4px; }
.cp-title { font-weight: 600; }
.cp-text { font-size: 13.5px; color: var(--ink-2); }
.cp-amt { font-family: var(--font-mono); font-size: 13.5px; text-align: right; }
.cp.paid .cp-amt { color: var(--pot); }
.garage-rows { display: grid; gap: 6px; margin-top: 8px; }
.g-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.g-row .plate { height: 22px; min-width: 26px; font-size: 12px; }
.g-row.locked { color: var(--muted); }
.g-row.locked .plate { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-3); }
.g-row.now .plate { background: var(--accent); }
.g-row .mono { font-size: 12px; color: var(--muted); }
.wins-list { display: grid; gap: 0; }
.wins-list div { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; border-top: var(--border); color: var(--ink-2); }
.chart-mark { stroke: var(--pot); stroke-width: 1; stroke-dasharray: 5 5; opacity: 0.6; }
.chart-mark-text { fill: var(--pot); font: 500 11px var(--font-mono); opacity: 0.85; }
.chart-line { stroke: var(--ink); }
.chart-area { fill: rgba(243, 240, 232, 0.06); }
.split { display: flex; height: 34px; margin-top: 12px; border-radius: var(--r-sm); overflow: hidden; border: var(--border); gap: 2px; background: var(--bg-2); }
.split span { display: grid; place-items: center; font: 500 12px var(--font-mono); white-space: nowrap; overflow: hidden; padding: 0 6px; }
.split .s-you { background: rgba(243, 240, 232, 0.14); color: var(--ink); }
.split .s-pot { background: color-mix(in srgb, var(--pot) 30%, transparent); color: var(--ink); }
.split .s-house { background: rgba(243, 240, 232, 0.06); color: var(--ink-2); }

/* ---------- race page ---------- */
.race-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 16px; padding-top: 22px; }
.race-head .kicker { margin-bottom: 8px; }
.race-head h1 { font-size: clamp(28px, 3.4vw, 44px); }
.race-head .level-line .plate { height: 28px; font-size: 15px; }
.race-stage { position: relative; margin: 16px auto 0; max-width: max(320px, calc((100svh - 150px) * 1.5625)); border-radius: var(--r-lg); overflow: hidden; border: var(--border); background: #1C3526; }
.race-stage canvas { display: block; width: 100%; }
.race-over { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(14, 16, 22, 0.55); }
.race-over[hidden] { display: none; }
.race-card { width: min(480px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: var(--border); box-shadow: var(--shadow); }
.race-card h2 { font-size: clamp(30px, 4vw, 44px); }
.race-card .kart-box { width: min(300px, 80%); }
.race-card .row { justify-content: center; }
.race-place { font: 800 italic 64px/1 var(--font-display); }
.race-place.first { color: var(--accent); }
/* the prompt at the top of every race page, the big Race button, and the chooser it opens */
.launch-banner { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); background: linear-gradient(105deg, color-mix(in srgb, var(--accent-strong) 22%, var(--surface)) 0%, var(--surface) 62%); }
.launch-banner-copy { display: grid; gap: 4px; }
.launch-banner .kicker { margin: 0; }
.launch-banner h2 { font-size: clamp(22px, 2.4vw, 28px); }
.race-start { justify-items: start; }
.race-go { height: 64px; min-width: 220px; padding: 0 40px; font-size: 22px; font-style: italic; font-weight: 800; font-family: var(--font-display); letter-spacing: 0.01em; margin-top: 8px; }
.modal-panel.wide { width: min(960px, 100%); }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; margin-top: 4px; }
.who { display: grid; gap: 8px; padding: 10px 12px 12px; border-radius: var(--r); border: var(--border); background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.who:hover, .who:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.who[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }
.who .kart-box { width: 100%; }
.who-id { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.who-name { display: grid; gap: 2px; min-width: 0; }
.who-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-name .mono { font-size: 13px; }
.race-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.race-bar .muted { font-size: 14px; }
.keys { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.key { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line-3); font: 600 11.5px var(--font-mono); color: var(--ink); }
.reveal { display: grid; gap: 10px; justify-items: center; }
.reveal .gain { font-size: 15px; }
.reveal .gain b { color: var(--accent); }
.reveal .kart-box { animation: reveal 700ms var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateX(-40px); } }
.pick-list .st-row { grid-template-columns: 44px 124px minmax(160px, 1fr) minmax(170px, 230px) 84px; }

/* ---------- launch: the racer picker ---------- */
.picker-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.picker-tools .input { max-width: 260px; height: 40px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 12px; max-height: 420px; overflow: auto; padding: 2px 4px 2px 0; }
.picker .tile { padding: 8px 4px; font-size: 11.5px; }
.picker .tile .head svg { width: 50px; height: 50px; }
.picked { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.picked b { color: var(--ink); }
.preview-box .coin-card { pointer-events: none; }

/* ---------- pot page ---------- */
.pot-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 28px 36px; align-items: start; }
.pot-now { display: grid; gap: 14px; min-width: 0; }
.pot-big-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.pot-bump { color: var(--pot); font-size: 15px; opacity: 0; }
.pot-bump.on { animation: pot-bump 2.4s var(--ease) both; }
@keyframes pot-bump { 0% { opacity: 0; transform: translateY(6px); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
:root[data-motion="off"] .pot-bump.on { animation: none; opacity: 1; }
.pot-how { display: grid; gap: 12px; }
.pot-ladder { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.pot-ladder::before { content: ''; position: absolute; left: 39px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--pot), color-mix(in srgb, var(--pot) 25%, transparent)); }
.pot-ladder li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: center; padding: 10px 0; }
.rung-tag { position: relative; z-index: 1; justify-self: center; min-width: 64px; padding: 6px 8px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--pot) 45%, transparent); background: var(--surface-2); color: var(--pot); font-size: 13px; text-align: center; }
.pot-ladder li > div { display: grid; gap: 2px; font-size: 14.5px; }
.pot-ladder li:last-child .rung-tag { border-style: dashed; }
.pot-list { display: grid; }
.pot-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 0; border-top: var(--border); color: var(--ink); font-size: 14.5px; }
.pot-row:first-child { border-top: 0; }
.pot-row:hover .mono:first-of-type { color: var(--accent); }
.pot-v { color: var(--pot); }
.out-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(60px, 1.2fr) auto 64px; gap: 12px; align-items: center; padding: 10px 0; border-top: var(--border); font-size: 14.5px; }
.out-row:first-child { border-top: 0; }
.out-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.out-bar span { display: block; height: 100%; border-radius: 4px; background: var(--pot); }
.out-n { text-align: right; font-size: 13px; }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addr .mono { font-size: 14px; word-break: break-all; color: var(--ink-2); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: var(--border); }
.table td { padding: 12px; border-bottom: var(--border); vertical-align: middle; }
.table td.mono { font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }
.table .pot-amt { color: var(--pot); }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: var(--border); background: var(--surface); }

/* ---------- how ---------- */
.levels-table td .plate { height: 22px; min-width: 26px; font-size: 12px; }
.how-stop { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 28px 0; border-top: var(--border); }
.how-stop:first-child { border-top: 0; }
.how-stop .step-n { font-size: 13px; color: var(--accent); }
.how-stop h2 { font-size: clamp(26px, 3vw, 38px); margin: 8px 0 10px; }
.how-pic { border-radius: var(--r-lg); background: var(--bg-2); border: var(--border); padding: 22px; display: grid; place-items: center; min-height: 200px; }
.risks { display: grid; gap: 10px; max-width: 760px; margin-top: 18px; }
.risks li { padding-left: 18px; position: relative; color: var(--ink-2); }
.risks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--warn); }

/* ---------- empty states and 404 ---------- */
.empty-slot { position: relative; width: 120px; height: 70px; border: 2px solid var(--line-3); border-left: 0; border-radius: 0 8px 8px 0; display: grid; place-items: center; margin-bottom: 4px; }
.empty-slot span { font: 800 italic 26px var(--font-display); color: var(--line-3); }
.spun { width: min(360px, 80vw); transform: rotate(-24deg); margin: 10px 0 24px; }
.grass { position: relative; display: grid; justify-items: center; padding: 30px 16px 60px; }

/* ---------- phones ---------- */
@media (max-width: 1100px) {
  .st-row { grid-template-columns: 34px 104px minmax(140px, 1fr) minmax(150px, 200px) 110px 76px; }
  .st-flags { display: none; }
  .ladder { grid-template-columns: repeat(4, 1fr); }
  .slot.p5, .slot.p6 { display: none; }
}
@media (max-width: 980px) {
  .garage-head, .pot-band, .how-stop, .pot-hero { grid-template-columns: 1fr; }
  .stops { grid-template-columns: 1fr 1fr; }
  .stops::before { display: none; }
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .slot.p4 { display: none; }
}
@media (max-width: 760px) {
  .grid-strip { height: 340px; }
  .slot { width: 210px; }
  .slot .kart-box { width: 170px; }
  .slot.p1 { right: 54px; top: 30px; }
  .slot.p2 { right: auto; left: 8px; top: 186px; }
  .slot.p3 { display: none; }
  .grid-line { right: 18px; width: 18px; }
  .grid-lights { right: 4px; top: 6px; transform: scale(0.85); transform-origin: right top; }
  .st-row { grid-template-columns: 92px 1fr auto; grid-template-areas: "kart coin go" "kart level level"; gap: 6px 12px; padding: 12px 14px; }
  .st-headrow, .st-pos, .st-mcap, .st-flags { display: none; }
  .st-kart { grid-area: kart; } .st-coin { grid-area: coin; } .st-level { grid-area: level; } .st-go { grid-area: go; }
  .st-kart .kart-box { width: 90px; }
  .feed-row { grid-template-columns: 78px 1fr 52px; }
  .feed-row .feed-sym, .feed-row .tx { display: none; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .coin-grid { grid-template-columns: 1fr; }
  .pick-list .st-row { grid-template-columns: 92px 1fr auto; }
}
@media (max-width: 560px) {
  .stops { grid-template-columns: 1fr; }
  .start-foot { flex-direction: column; align-items: stretch; }
  .start .ctas .btn { width: 100%; }
  .roster { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .tile .head svg { width: 48px; height: 48px; }
  .foot-cols { gap: 28px; }
  .race-bar { flex-direction: column; align-items: stretch; }
  .race-head .keys { display: none; }
}

/* phones: five tabs fit at 360 px; the garage's racer chips wrap */
.ladder-pick .chips { flex-wrap: wrap; }
@media (max-width: 860px) {
  .tabbar { left: 8px; right: 8px; gap: 2px; padding: 5px; }
  .tabbar a { flex: 1; text-align: center; padding: 9px 4px; font-size: 13.5px; min-width: 0; }
  main { padding-bottom: 140px; }
}

/* ---------- purple on black ---------- */
.plate.top { background: var(--accent); color: #17161D; }
.start { position: relative; }
.start::before { content: ""; position: absolute; inset: -80px 0 auto; height: 520px; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 50% 30%, rgba(147, 51, 234, 0.22), transparent 70%); }
.kicker-dot { box-shadow: 0 0 0 4px var(--accent-wash); }
.nav a[aria-current] { background: var(--accent-wash); color: var(--ink); }
.tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }
.seg button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--accent-strong); color: #FFFFFF; }
.xp-bar span { background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }
.grid-strip, .garage-kart, .card-track { background: radial-gradient(120% 120% at 50% 0%, #141019, var(--bg-2) 70%); }
.race-btn { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
a.st-row:hover .race-btn { background: var(--accent-strong); color: #FFFFFF; }
.chip.level { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-wash); }
::selection { background: var(--accent-strong); color: #FFFFFF; }

/* ---------- race: how you drive ---------- */
.controls { display: grid; gap: 8px; justify-items: center; width: 100%; }
.controls-pick { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: var(--r-pill); border: var(--border); background: var(--bg-2); }
.controls-pick button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 0; background: none; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.controls-pick button:hover { color: var(--ink); }
.controls-pick button[aria-checked="true"] { background: var(--accent-strong); color: #FFFFFF; }
.controls-icon { display: inline-flex; }
.controls-hint { font-size: 13.5px; color: var(--ink-2); max-width: 34em; min-height: 2.6em; }

/* ---------- rewards: rarity colours, reward cards, the ladder, the Hall of Fame ---------- */
:root { --r-common: #BDBAC4; --r-rare: #4DA3FF; --r-epic: #A66CFF; --r-legendary: #FFC83D; }
.r-common { --rc: var(--r-common); } .r-rare { --rc: var(--r-rare); } .r-epic { --rc: var(--r-epic); } .r-legendary { --rc: var(--r-legendary); }
.rarity { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rc); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); background: color-mix(in srgb, var(--rc) 10%, transparent); }
.chip.title { color: var(--rc); border-color: color-mix(in srgb, var(--rc) 40%, transparent); background: color-mix(in srgb, var(--rc) 9%, transparent); font-weight: 700; }
.rarity-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 6px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }

.reward { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 14%, var(--surface)), var(--surface) 65%); border: 1px solid color-mix(in srgb, var(--rc) 38%, transparent); }
.reward-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--rc); background: color-mix(in srgb, var(--rc) 16%, transparent); }
.reward-body { display: grid; gap: 2px; min-width: 0; }
.reward-kind { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rc); }
.reward-name { font-size: 15px; }
.reward-text { font-size: 13px; color: var(--ink-2); }
.reward.locked { filter: saturate(0.2); opacity: 0.55; }
.r-legendary.reward { box-shadow: 0 0 0 1px color-mix(in srgb, var(--r-legendary) 25%, transparent), 0 16px 40px -24px rgba(255, 200, 61, 0.55); }

.ladder-rows { display: grid; gap: 12px; margin-top: 18px; }
.rung-row { display: grid; grid-template-columns: 150px minmax(240px, 340px) 1fr; gap: 22px; align-items: center; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid color-mix(in srgb, var(--rc) 28%, var(--line)); position: relative; overflow: hidden; }
.rung-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rc); }
.rung-row.r-legendary { background: radial-gradient(120% 140% at 0% 0%, rgba(255, 200, 61, 0.1), var(--surface) 55%); }
.rung-row.r-epic { background: radial-gradient(120% 140% at 0% 0%, rgba(166, 108, 255, 0.1), var(--surface) 55%); }
.rung-side { display: grid; gap: 8px; justify-items: start; }
.rung-side .plate { height: 34px; min-width: 44px; font-size: 18px; }
.rung-wins { font-size: 12.5px; color: var(--ink-2); }
.rung-title { font-size: 13px; color: var(--muted); }
.rung-title b { color: var(--ink); }
.rung-kart { border-radius: var(--r); background: radial-gradient(120% 120% at 50% 0%, #141019, var(--bg-2) 70%); padding: 8px 12px 0; }
.rung-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

.hall { margin-top: 22px; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.plaque { position: relative; display: grid; gap: 10px; padding: 16px; border-radius: var(--r-lg); border: 1px solid rgba(255, 200, 61, 0.4); background: radial-gradient(120% 100% at 50% 0%, rgba(255, 200, 61, 0.14), var(--surface) 60%); box-shadow: 0 20px 50px -30px rgba(255, 200, 61, 0.5); transition: transform var(--t) var(--ease); }
a.plaque:hover { transform: translateY(-3px); }
.plaque-n { font-size: 11.5px; color: var(--r-legendary); letter-spacing: 0.08em; }
.plaque-id { display: grid; gap: 2px; } .plaque-id span { font-size: 12.5px; color: var(--ink-2); }
.plaque-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.champion-banner { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 18px; border-radius: var(--r); border: 1px solid rgba(255, 200, 61, 0.45); background: linear-gradient(90deg, rgba(255, 200, 61, 0.16), transparent 70%); font-weight: 600; }
.champion-banner .mono { color: var(--r-legendary); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* home: the rewards teaser */
.rw-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.rw-card { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid color-mix(in srgb, var(--rc) 35%, var(--line)); }
.rw-card .kart-box { background: radial-gradient(120% 120% at 50% 0%, #141019, var(--bg-2) 70%); border-radius: var(--r); padding: 8px 8px 0; }
.rw-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rw-card ul { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.rw-card li::before { content: "+ "; color: var(--rc); font-weight: 700; }
.g-row .rarity { height: 20px; font-size: 10px; padding: 0 7px; }

@media (max-width: 980px) {
  .rung-row { grid-template-columns: 1fr; }
  .rung-side { grid-auto-flow: column; align-items: center; justify-content: start; }
  .rw-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rw-cards { grid-template-columns: 1fr; }
  .rung-side { grid-auto-flow: row; }
}
.race-card.levelled { border-color: color-mix(in srgb, var(--rc) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc) 30%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--rc) 60%, transparent); }
.reveal-items { display: grid; gap: 8px; width: 100%; text-align: left; }
.race-card { max-height: calc(100% - 16px); overflow: auto; }

/* karts carry room for a trail on their left: keep them the same visible size */
.slot { width: 224px; }
.slot .kart-box { width: 196px; margin-left: 14px; }
.st-kart .kart-box { width: 128px; }
.st-row { grid-template-columns: 44px 136px minmax(160px, 1fr) minmax(170px, 230px) 120px 140px 84px; }
@media (max-width: 1100px) { .st-row { grid-template-columns: 34px 116px minmax(140px, 1fr) minmax(150px, 200px) 110px 76px; } }
@media (max-width: 760px) { .st-row { grid-template-columns: 100px 1fr auto; } .st-kart .kart-box { width: 100px; } .slot { width: 196px; } .slot .kart-box { width: 176px; } }
.st-wins { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-wins .chip { height: 20px; font-size: 10.5px; padding: 0 8px; }

/* ---------- rendered racer pictures: the same box as the drawn kart, the trail behind, the level plate on top ---------- */
.kart-box.photo { position: relative; display: block; aspect-ratio: 190 / 120; container-type: inline-size; }
.kart-box.photo::after { content: ""; position: absolute; left: 18%; right: 3%; bottom: 1%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); z-index: 0; }
.kart-box.photo img { position: absolute; left: 13%; bottom: 3%; width: 87%; height: 94%; object-fit: contain; object-position: 50% 100%; z-index: 1; user-select: none; }
.kart-box.photo .trail-box { position: absolute; inset: 0; z-index: 0; }
.kart-box.photo .trail-box svg { width: 100%; height: 100%; overflow: visible; }
.photo-plate { position: absolute; right: 3%; bottom: 5%; z-index: 2; display: grid; place-items: center; min-width: 2.1em; height: 1.6em; padding: 0 0.35em; border-radius: 0.3em; font-size: max(9px, 6.2cqw); font-weight: 700; background: var(--ink); color: #17161D; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.photo-plate.top { background: var(--r-legendary, #FFC83D); }
.head.photo img { display: block; object-fit: contain; }
.tile .head.photo img { width: 60px; height: 60px; }
.picker .tile .head.photo img { width: 50px; height: 50px; }

/* the header with five links: keep it on one line on narrower desktops */
.nav a { white-space: nowrap; }
@media (max-width: 1180px) { .top-actions .ca { display: none; } .top-bar { gap: 18px; } }
@media (max-width: 960px) { .nav a { padding: 8px 9px; font-size: 14px; } }
.kart-box.photo img { left: 9%; bottom: 2%; width: 91%; height: 98%; }
.photo-plate { top: 4%; bottom: auto; right: 2%; }
.slot .photo-plate, .st-kart .photo-plate, .rung-kart .photo-plate, .plaque .photo-plate, .who .photo-plate { display: none; }

@media (max-width: 560px) {
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .who { padding: 8px; }
  .race-go, .launch-banner .btn { width: 100%; }
}

@media (max-width: 560px) {
  .out-row { grid-template-columns: 1fr auto; }
  .out-row .out-bar { grid-column: 1 / -1; order: 3; }
  .out-row .out-n { display: none; }
}

/* practice races: the racer grid on /race, the chooser's practice section, the level picker */
.practice { padding-top: 48px; }
.practice-note { margin: -12px 0 18px; }
a.who { text-decoration: none; }
.who-section { margin-top: 18px; display: grid; gap: 2px; }
.who-section h3 { font-size: 18px; }
.level-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.level-pick button { min-width: 36px; height: 34px; padding: 0 10px; border-radius: var(--r-pill); border: var(--border); background: var(--surface); color: var(--ink-2); font: 600 14px var(--font-mono); cursor: pointer; }
.level-pick button:hover { border-color: var(--accent); color: var(--ink); }
.level-pick button[aria-checked="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #FFFFFF; }
.pot-wallet { display: grid; gap: 8px; padding-top: 14px; border-top: var(--border); }
.pot-wallet .fine { margin: 0; max-width: 60ch; }

/* the parade: every racer at level 1 to 9, always moving along above the footer (still with motion off) */
.parade { padding: 8px 0 28px; overflow: hidden; }
.parade-head { display: flex; justify-content: center; margin-bottom: 16px; }
.parade-head .kicker { margin: 0; }
.parade-strip { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.parade-track { display: flex; gap: 14px; width: max-content; animation: parade var(--parade-time, 500s) linear infinite; }
:root[data-motion="off"] .parade-track { animation: none; }
:root[data-motion="off"] .parade-strip { overflow-x: auto; }
@keyframes parade { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.parade-item { margin: 0; width: 130px; flex: none; display: grid; gap: 6px; justify-items: center; }
.parade-item img { width: 130px; height: 86px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }
.parade-item figcaption { display: flex; align-items: center; gap: 6px; min-height: 22px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.parade-item .plate { height: 20px; min-width: 22px; font-size: 11px; }
.parade-name { font-weight: 600; color: var(--ink); }

/* the race preview: the 3D start grid in a frame, a placeholder until it loads, the track's name and a button on top */
.race-preview { position: relative; display: block; aspect-ratio: 21 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: radial-gradient(120% 90% at 50% 20%, #2B1A47 0%, #120C1E 55%, #09090B 100%); box-shadow: 0 30px 80px -40px rgba(147, 51, 234, 0.55), var(--shadow); color: var(--ink); isolation: isolate; }
.race-preview::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%) 0 0 / 200% 100%; animation: rp-shine 1.6s linear infinite; }
.race-preview.live::before, .race-preview.flat::before { display: none; }
@keyframes rp-shine { to { background-position: -200% 0; } }
.rp-stage { position: absolute; inset: 0; }
.rp-stage canvas { width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 0.6s var(--ease); }
.race-preview.live .rp-stage canvas { opacity: 1; }
.rp-top, .rp-bottom { position: absolute; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.rp-top .lights { transform: scale(0.85); transform-origin: right center; }
.rp-top { top: 14px; }
.rp-bottom { bottom: 14px; justify-content: flex-end; }
.rp-chip { padding: 6px 11px; border-radius: var(--r-pill); background: rgba(9, 9, 11, 0.78); border: 1px solid var(--line-2); font-size: 12px; letter-spacing: 0.04em; backdrop-filter: blur(6px); }
.rp-go { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--accent-strong); color: #FFFFFF; font-weight: 700; box-shadow: 0 2px 0 var(--accent-deep), 0 10px 30px -12px rgba(147, 51, 234, 0.8); transition: transform var(--t-fast) var(--ease); }
.race-preview:hover .rp-go { transform: translateY(-2px); }
.race-preview:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.race-start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 48px; align-items: center; }
.race-start-grid .race-preview { margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 900px) {
  .race-start-grid { grid-template-columns: 1fr; }
  .race-start-grid .race-preview { margin: 0 0 28px; }
  .race-preview { aspect-ratio: 16 / 9; }
  .rp-go { height: 34px; padding: 0 13px; font-size: 14px; }
  .rp-chip { font-size: 11px; }
}
