/* Ultimate Racing 3D — interface
   Layout: full-bleed WebGL canvas, glass panels docked to edges, HUD in the four corners. */
:root {
  --ink: #07090e;
  --panel: rgba(12, 16, 26, 0.72);
  --panel-solid: #0f1420;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef2f8;
  --muted: #93a1b5;
  --hot: #ff6a1a;      /* nitro orange */
  --hot2: #ffb020;
  --cool: #22d3ee;     /* telemetry cyan */
  --win: #ffd23f;
  --bad: #ff3b5c;
  --display: 'Orbitron', 'Arial Black', Impact, sans-serif;
  --body: 'Rajdhani', 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 16px; }
body { touch-action: none; user-select: none; -webkit-user-select: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--cool); outline-offset: 2px; }

.screen { position: absolute; inset: 0; display: none; flex-direction: column; pointer-events: none;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.screen.show { display: flex; }
.screen.show > * { pointer-events: auto; }
.screen.dim { background: linear-gradient(90deg, rgba(7,9,14,0.92) 0%, rgba(7,9,14,0.75) 60%, rgba(7,9,14,0.55) 100%); pointer-events: auto; overflow-y: auto; }
.screen.overlay { background: rgba(5, 7, 12, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); align-items: center; justify-content: center; pointer-events: auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 16px; }

/* ---------- branding */
.logo { display: flex; flex-direction: column; line-height: 0.95; font-family: var(--display); letter-spacing: 0.06em; }
.logo span { font-size: 15px; font-weight: 700; color: var(--hot); letter-spacing: 0.5em; }
.logo b { font-size: clamp(30px, 5vw, 58px); font-weight: 900; font-style: italic; background: linear-gradient(180deg, #fff 30%, #9fb3c8); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.logo.small b { font-size: 34px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar h2 { font-family: var(--display); font-size: clamp(18px, 2.6vw, 28px); margin: 0; letter-spacing: 0.08em; text-transform: uppercase; }
.wallet { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-family: var(--display); font-size: 16px; font-variant-numeric: tabular-nums; }
.coin { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6b0, #ffc400 45%, #b07800); box-shadow: 0 0 10px rgba(255, 196, 0, 0.5); display: inline-block; }
.back { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 16px; font-weight: 600; background: var(--panel); }
.back:hover { border-color: var(--hot); }

/* ---------- DRNO brand */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 24px rgba(34,211,238,0.35); flex: none; }
.brand-logo.big { width: 140px; height: 140px; }
.logo em { font-family: var(--body); font-style: normal; font-weight: 700; font-size: 13px; letter-spacing: 0.35em; color: var(--cool); margin-top: 6px; }
.legal-link { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 4px 0; }
.legal-link:hover { color: var(--text); }
.legal { max-height: calc(100% - 20px); }
.legal-head { display: flex; align-items: center; gap: 14px; }
.legal-head .brand-logo { width: 56px; height: 56px; }
.legal-body { overflow-y: auto; max-height: 55vh; padding-right: 8px; color: #cfd8e4; font-size: 15px; line-height: 1.5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-body h1 { display: none; }
.modal .legal-body h2 { font-family: var(--body); font-size: 17px; text-transform: none; letter-spacing: 0; margin: 16px 0 4px; color: var(--text); }
.legal-body ul { padding-left: 20px; margin: 4px 0; }
.legal-body a { color: var(--cool); }
.legal-body .updated { color: var(--muted); font-size: 13px; }
a.btn { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
@media (max-height: 520px) { .brand-logo { width: 44px; height: 44px; } .brand-logo.big { width: 80px; height: 80px; } }

/* ---------- loading */
#s-loading { align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #141a28, var(--ink)); pointer-events: auto; }
.loader { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bar { width: min(320px, 70vw); height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, var(--hot), var(--hot2)); transition: width 0.3s; }
#load-text { color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; margin: 0; }

/* ---------- main menu */
#s-menu { justify-content: space-between; background: linear-gradient(90deg, rgba(7,9,14,0.85), rgba(7,9,14,0.1) 55%); }
.menu-list { display: flex; flex-direction: column; gap: 10px; width: min(380px, 100%); }
.mbtn { text-align: left; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; transition: transform 0.15s, border-color 0.15s, background 0.15s; transform: skewX(-6deg); }
.mbtn > * { transform: skewX(6deg); }
.mbtn b { font-family: var(--display); font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; }
.mbtn small { color: var(--muted); font-size: 14px; font-weight: 500; }
.mbtn:hover, .mbtn:focus-visible { border-left-color: var(--hot); background: rgba(255, 106, 26, 0.12); transform: skewX(-6deg) translateX(6px); }
.mbtn.primary { background: linear-gradient(90deg, rgba(255,106,26,0.85), rgba(255,106,26,0.35)); border-color: rgba(255,106,26,0.6); }
.mbtn.primary small { color: #ffe3d1; }
.mbtn.ghost { opacity: 0.85; }
.menu-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.car-chip { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-family: var(--display); font-size: 15px; display: flex; gap: 10px; align-items: center; }
.car-chip em { font-style: normal; color: var(--hot); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.keys { color: var(--muted); font-size: 13px; margin: 0; max-width: 560px; text-align: right; }

/* ---------- garage */
.garage { flex: 1; display: grid; grid-template-columns: 250px 1fr 360px; gap: 16px; min-height: 0; margin-top: 14px; }
.garage-spacer { pointer-events: none !important; }
.car-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.car-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid transparent; text-align: left; }
.car-item b { font-family: var(--display); font-size: 13px; letter-spacing: 0.04em; display: block; }
.car-item small { color: var(--muted); font-size: 12px; }
.car-item .state { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.car-item.owned .state { color: var(--cool); }
.car-item.sel { border-color: var(--hot); background: rgba(255,106,26,0.14); }
.car-item.view { border-color: rgba(255,255,255,0.35); }
.car-info { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ci-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ci-head h3 { font-family: var(--display); font-size: 22px; margin: 0; }
.tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hot); border: 1px solid var(--hot); border-radius: 4px; padding: 2px 6px; }
.blurb { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.35; }
h4 { margin: 4px 0 6px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stats { display: grid; gap: 7px; }
.stat { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 8px; font-size: 14px; }
.stat .track { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; position: relative; }
.stat .track i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--cool), #7af0ff); border-radius: 3px; }
.stat .track i.up { background: var(--hot); opacity: 0.85; }
.stat span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); box-shadow: inset 0 -6px 10px rgba(0,0,0,0.35), inset 0 4px 8px rgba(255,255,255,0.25); }
.swatch.sel { border-color: #fff; transform: scale(1.12); }
.upgrades { display: grid; gap: 8px; }
.upg { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: rgba(255,255,255,0.03); border-radius: 8px; padding: 8px 10px; }
.upg b { font-size: 15px; }
.upg small { display: block; color: var(--muted); font-size: 12px; }
.pips { display: flex; gap: 3px; }
.pips i { width: 12px; height: 6px; border-radius: 2px; background: rgba(255,255,255,0.15); }
.pips i.on { background: var(--hot); }
.upg button { background: rgba(255,106,26,0.15); border: 1px solid rgba(255,106,26,0.6); border-radius: 6px; padding: 5px 10px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.upg button:disabled { opacity: 0.4; cursor: default; }

.cta { background: linear-gradient(90deg, var(--hot), #ff8a3a); border: 0; border-radius: 10px; padding: 14px 22px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; box-shadow: 0 6px 24px rgba(255,106,26,0.35); }
.cta:hover { filter: brightness(1.1); }
.cta:disabled { filter: grayscale(1); opacity: 0.5; cursor: default; }
.btn { background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.btn:hover { border-color: rgba(255,255,255,0.35); }
.btn.ghost { background: none; }
.btn.danger { border-color: rgba(255,59,92,0.6); color: #ff8aa0; }

/* ---------- track select */
.select { flex: 1; display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-top: 14px; min-height: 0; }
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-content: start; overflow-y: auto; padding: 2px; }
.tcard { position: relative; text-align: left; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--panel-solid); padding: 0; display: flex; flex-direction: column; transition: transform 0.15s, border-color 0.15s; }
.tcard:hover { transform: translateY(-2px); }
.tcard.sel { border-color: var(--hot); box-shadow: 0 0 0 4px rgba(255,106,26,0.18); }
.tcard .art { height: 118px; position: relative; }
.tcard .art svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.tcard .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.tcard .meta b { font-family: var(--display); font-size: 14px; letter-spacing: 0.04em; }
.tcard .meta small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.tcard .len { position: absolute; top: 8px; right: 10px; font-size: 11px; letter-spacing: 0.15em; background: rgba(0,0,0,0.45); padding: 2px 6px; border-radius: 4px; }
.sel-opts { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.chip.sel { border-color: var(--hot); background: rgba(255,106,26,0.18); }
.chip.wide { width: 100%; text-align: left; border-radius: 10px; }
.records ol { margin: 0; padding-left: 22px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.records li { padding: 2px 0; }
.hint { color: var(--muted); margin: 10px 0; }

/* ---------- career / champ */
.career { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.event { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.event b { font-family: var(--display); font-size: 15px; }
.event small { color: var(--muted); font-size: 14px; }
.event .st { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cool); }
.event.locked { opacity: 0.45; cursor: default; }
.event.next { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255,106,26,0.15); }
.event.next .st { color: var(--hot); }
.champ { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; margin-top: 14px; }
.rounds { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.rounds li.done { color: var(--muted); text-decoration: line-through; }
.rounds li.cur { color: var(--hot); font-weight: 700; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.table td, .table th { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; }
.table tr.me td { color: var(--win); font-weight: 700; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; justify-content: flex-end; }
.settings { max-width: 640px; margin-top: 14px; display: flex; flex-direction: column; gap: 16px; }
.settings small { color: var(--muted); display: block; margin-top: 6px; }
input[type=range] { width: 100%; accent-color: var(--hot); }
.keys-table td:first-child { color: var(--muted); }

/* ---------- HUD */
#hud { padding: 0; }
.hud-tl { position: absolute; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 6px; }
.hpos { font-family: var(--display); font-style: italic; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.hpos b { font-size: 64px; font-weight: 900; }
.hpos span { font-size: 24px; color: var(--muted); }
.hlap, .htimes > div { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
.hlap b { font-family: var(--display); font-size: 24px; }
.hlap small, .htimes small { color: var(--hot); font-weight: 700; font-size: 12px; width: 40px; }
.htimes b { font-family: var(--display); font-size: 18px; }
.htimes span { font-size: 16px; }
.hlist { list-style: none; margin: 6px 0 0; padding: 6px; background: rgba(5,8,14,0.5); border-radius: 8px; font-size: 14px; min-width: 190px; }
.hlist li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; padding: 2px 4px; font-variant-numeric: tabular-nums; }
.hlist li.me { color: var(--win); font-weight: 700; background: rgba(255,210,63,0.1); border-radius: 4px; }
.hlist i { font-style: normal; color: var(--muted); font-size: 12px; }
.hud-tr { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: flex; flex-direction: column; align-items: center; gap: 6px; }
#minimap { width: 170px; height: 170px; }
.hcam { font-size: 12px; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; }
.pause-btn { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; width: 46px; height: 40px; font-size: 14px; }
.hud-br { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.speedo-wrap { position: relative; width: 200px; height: 200px; }
#speedo { width: 100%; height: 100%; }
.speed { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
.speed b { font-family: var(--display); font-size: 52px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.speed small { color: var(--muted); font-size: 12px; }
.speed em { font-style: normal; font-family: var(--display); font-size: 22px; color: var(--hot2); margin-top: 6px; }
.nitro { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.2em; font-weight: 700; color: #7cc4ff; }
.nbar { width: 150px; height: 10px; background: rgba(255,255,255,0.12); border-radius: 5px; overflow: hidden; border: 1px solid rgba(124,196,255,0.4); }
.nbar i { display: block; height: 100%; background: linear-gradient(90deg, #1e6bff, #3ad1ff); transform-origin: left; }
.nbar.active { box-shadow: 0 0 14px #3ad1ff; }
.nbar.active i { background: linear-gradient(90deg, #3ad1ff, #fff); }
#h-msg { position: absolute; top: 24%; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(26px, 5vw, 54px); opacity: 0; transform: scale(0.9); transition: opacity 0.25s, transform 0.25s; text-shadow: 0 4px 24px rgba(0,0,0,0.7); pointer-events: none; }
#h-msg.show { opacity: 1; transform: none; }
#h-msg.gold { color: var(--win); }
#h-msg.hot { color: var(--hot); }
#h-wrong { position: absolute; top: 38%; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 900; font-size: 40px; color: var(--bad); opacity: 0; pointer-events: none; }
#h-wrong.show { opacity: 1; animation: blink 0.6s infinite; }
#h-drift { position: absolute; bottom: 24%; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 26px; color: var(--cool); opacity: 0; transition: opacity 0.2s; pointer-events: none; text-shadow: 0 0 18px rgba(34,211,238,0.7); }
#h-drift.show { opacity: 1; }
#countdown { opacity: 0; position: absolute; top: 32%; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 900; font-size: clamp(80px, 16vw, 160px); pointer-events: none; text-shadow: 0 6px 40px rgba(0,0,0,0.6); }
#countdown.pop { animation: pop 0.9s ease-out forwards; }
#countdown.go { color: #4dff7a; }
@keyframes pop { 0% { transform: scale(1.8); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.9); opacity: 0; } }
@keyframes blink { 50% { opacity: 0.3; } }

/* ---------- touch */
#touch { position: absolute; inset: 0; display: none; pointer-events: none; }
#touch.show { display: block; }
#touch button { pointer-events: auto; position: absolute; border-radius: 18px; border: 2px solid rgba(255,255,255,0.22); background: rgba(10,14,22,0.42); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; color: rgba(255,255,255,0.85); backdrop-filter: blur(4px); touch-action: none; }
#touch button.on { background: rgba(255,106,26,0.45); border-color: var(--hot); }
.t-left button { bottom: max(22px, env(safe-area-inset-bottom)); width: 86px; height: 86px; font-size: 28px; }
.t-left button[data-t=left] { left: max(18px, env(safe-area-inset-left)); }
.t-left button[data-t=right] { left: calc(max(18px, env(safe-area-inset-left)) + 100px); }
.t-gas { right: max(18px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); width: 84px; height: 124px; }
.t-brake { right: calc(max(18px, env(safe-area-inset-right)) + 96px); bottom: max(22px, env(safe-area-inset-bottom)); width: 78px; height: 92px; }
.t-nitro { right: max(18px, env(safe-area-inset-right)); bottom: calc(max(22px, env(safe-area-inset-bottom)) + 136px); width: 84px; height: 62px; color: #7cc4ff !important; border-color: rgba(124,196,255,0.5) !important; }
.t-hand { right: calc(max(18px, env(safe-area-inset-right)) + 96px); bottom: calc(max(22px, env(safe-area-inset-bottom)) + 104px); width: 78px; height: 62px; }
.t-cam { right: max(18px, env(safe-area-inset-right)); top: calc(max(12px, env(safe-area-inset-top)) + 200px); width: 64px; height: 40px; border-radius: 999px !important; font-size: 12px !important; }
body.touch .hud-br { bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 4px); right: calc(max(12px, env(safe-area-inset-right)) + 140px); transform: scale(0.62); transform-origin: top right; }
body.touch #minimap { width: 120px; height: 120px; }
body.touch .hlist { display: none; }
body.touch .hpos b { font-size: 44px; }

/* ---------- modals */
.modal { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(360px, 100%); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); max-height: 100%; overflow-y: auto; }
.modal.wide { width: min(720px, 100%); }
.modal h2 { font-family: var(--display); margin: 0 0 6px; font-size: 28px; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow { margin: 0; color: var(--hot); font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 700; }
.results td:nth-child(n+4) { text-align: right; }
.results th:nth-child(n+4) { text-align: right; }
.rewards { display: flex; flex-wrap: wrap; gap: 10px; }
.reward { background: rgba(255,210,63,0.08); border: 1px solid rgba(255,210,63,0.35); border-radius: 10px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; font-weight: 700; }
.reward.info { background: rgba(34,211,238,0.08); border-color: rgba(34,211,238,0.35); }

/* ---------- replay */
#s-replay { justify-content: space-between; }
.replay-badge { align-self: flex-start; color: var(--bad); font-family: var(--display); font-weight: 900; letter-spacing: 0.2em; animation: blink 1.4s infinite; background: rgba(0,0,0,0.4); padding: 6px 12px; border-radius: 6px; }
.replay-ctrl { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.replay-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.1); }
.replay-prog i { display: block; height: 100%; background: var(--hot); width: 0; }

/* ---------- responsive */
@media (max-width: 900px) {
  .garage { grid-template-columns: 1fr; grid-template-rows: auto 30vh auto; overflow-y: auto; }
  .car-list { flex-direction: row; overflow-x: auto; max-height: none; }
  .car-item { min-width: 170px; }
  .select { grid-template-columns: 1fr; overflow-y: auto; }
  .tracks { overflow: visible; }
  .champ { grid-template-columns: 1fr; }
  .keys { display: none; }
  #s-garage { overflow-y: auto; pointer-events: auto; }
}
@media (max-height: 520px) {
  .mbtn { padding: 7px 14px; }
  .mbtn small { display: none; }
  .menu-list { gap: 6px; }
  .logo b { font-size: 30px; }
  .hlist { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
