/* VT323 (SIL Open Font License, see fonts/VT323-OFL.txt): the race HUD's miles and lap progress */
@font-face { font-family: 'VT323'; src: url('../fonts/vt323.woff2') format('woff2'); font-weight: 400; font-display: block; }
/* Layout: a night highway. Sticky road scene up top where the car drives your score in miles; one card per round below. Single dark look by design. */
:root {
  color-scheme: dark;
  --bg: #0a1020; --surface: #111a2e; --ink: #eef2fa; --muted: #93a0b9; --line: #25314d;
  --plate: #f5c518; --plate-ink: #13203d; --sign: #0c6a3b;
  --good: #5ad18f; --bad: #ff7a5c;
  --t-base: #aab3c5; --t-sport: #6fa2ff; --t-limited: #c58cff; --t-collector: #ff9a52; --t-barn: #ffd23f;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Overpass", "Segoe UI", system-ui, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --signfont: "Overpass", "Arial", sans-serif;
}

html, body { min-height: 100%; }
body { background: radial-gradient(1100px 520px at 50% -12%, #1a2850 0%, transparent 62%) var(--bg); background-color: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 20px 48px; }
.wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 2px; }

header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plate { background: var(--plate); color: var(--plate-ink); border: 3px solid var(--plate-ink); border-radius: 10px;
  padding: 4px 16px 4px 10px; display: inline-flex; flex-direction: row; align-items: center; gap: 8px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.plate-text { display: flex; flex-direction: column; align-items: center; }
.plug { width: 20px; height: 46px; flex: none; overflow: visible; }
.plug .metal { fill: #8f969e; stroke: var(--plate-ink); stroke-width: 1.2; }
.plug .hex { fill: #6c737b; stroke: var(--plate-ink); stroke-width: 1.2; }
.plug .ceramic { fill: #f7f4ea; stroke: var(--plate-ink); stroke-width: 1.2; }
.plug .rib { stroke: #c9c4b4; stroke-width: 1; fill: none; }
.plug .thread { stroke: var(--plate-ink); stroke-width: .9; fill: none; opacity: .6; }
.plug .ground { stroke: var(--plate-ink); stroke-width: 2.2; fill: none; stroke-linecap: square; }
.plug .spark { stroke: #fff; stroke-width: 2; fill: none; stroke-linejoin: round; filter: drop-shadow(0 0 2px #3fa9ff) drop-shadow(0 0 4px #3fa9ff); }
@media (prefers-reduced-motion: no-preference) {
  .plug .spark { animation: zap 3.2s infinite steps(1); }
  @keyframes zap { 0%, 6%, 12%, 100% { opacity: 1 } 3%, 9% { opacity: 0 } 15%, 96% { opacity: 1 } }
}
.answers { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; }
.answers h3 { margin: 0 0 2px; }
.ans-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; align-items: start; }
@media (max-width: 440px) { .ans-row { grid-template-columns: 1fr; gap: 4px; } }
.ans-tier { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: currentColor; padding-top: 3px; }
.ans-tier b { font-family: var(--display); font-size: 16px; letter-spacing: 0; margin-left: 2px; }
.ans-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ans { font-size: 14px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.ans.mine { border-color: currentColor; color: currentColor; font-weight: 600; }
.ans.mine::after { content: ' \2190 you'; font-weight: 400; font-size: 12px; }
.ans-more { font-size: 13px; color: var(--muted); align-self: center; }
.spoil { font: inherit; font-size: 14px; font-weight: 600; color: currentColor; background: transparent; border: 1.5px dashed currentColor; border-radius: 999px; padding: 2px 12px; cursor: pointer; }
.quip { font-family: var(--label); font-weight: 700; font-size: 21px; letter-spacing: .02em; line-height: 1.2; text-wrap: balance; }
.plate small { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.4; }
.plate b { font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: .08em; line-height: .95; }
.odo { text-align: right; }
.odo span { display: block; font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.odo strong { font-family: var(--display); font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1; }

.odo strong { font-size: 26px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.trip { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; height: 150px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b1430; box-shadow: 0 10px 24px -14px #000; }
@media (max-width: 440px) { .trip { height: 128px; } }
.trip.big { position: relative; top: auto; z-index: auto; height: auto; aspect-ratio: 4 / 3; max-width: 100%; box-shadow: 0 0 0 1px #ffffff14, 0 18px 40px -18px #000; }
body.bigdrive #tripTop { display: none; }
.mute { position: absolute; right: 10px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #3a4666; background: #05080fcc; color: #f6f1e3; cursor: pointer; padding: 0; display: grid; place-items: center; }
.mute svg { width: 16px; height: 16px; }
.trip canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.leg { position: absolute; left: 10px; top: 10px; font-family: var(--signfont); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--sign); border: 2px solid #ffffffd9; border-radius: 6px; padding: 3px 8px 1px; box-shadow: 0 2px 0 #0006; }
.leg.flash { animation: legpop .6s ease-out; }
@keyframes legpop { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.odometer { position: absolute; right: 10px; top: 9px; display: flex; align-items: baseline; gap: 4px; background: #05080f; border: 1.5px solid #3a4666; border-radius: 6px; padding: 2px 8px 1px; box-shadow: inset 0 0 8px #000; }
.odometer b { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: #f6f1e3; line-height: 1.05; }
.odometer i { font-style: normal; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--plate); }
.card > .eyebrow:first-child { align-self: flex-start; font-family: var(--signfont); font-weight: 800; font-size: 12px; letter-spacing: .06em; color: #fff; background: var(--sign); border: 2px solid #ffffffd9; border-radius: 6px; padding: 3px 9px 1px; }
.trip-end { display: flex; flex-direction: column; gap: 2px; }
.trip-end .leg-name { font-family: var(--signfont); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--plate); }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.strip i { height: 8px; border-radius: 2px; background: var(--line); }
.strip i.bonus { background: transparent; border: 1.5px dashed var(--line); height: 8px; }
.strip i.now { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 10px #ffffff55; }
.strip i.done { background: var(--plate); border-color: var(--plate); }
.strip-labels { display: flex; justify-content: space-between; font-family: var(--label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: -10px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: 40px; } h2 { font-size: 30px; }
p { margin: 0; }
.muted { color: var(--muted); }

.timer { display: flex; align-items: center; gap: 10px; }
.timer .track { flex: 1; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.timer .bar { height: 100%; width: 100%; background: var(--plate); transform-origin: left center; }
.timer .bar.low { background: var(--bad); }
.timer.mini { gap: 8px; }
.timer.mini .track { height: 6px; }
.timer.mini .tnum { font-size: 17px; }
.tunit { font-family: var(--label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: -4px; }
.tnum { font-family: var(--display); font-weight: 900; font-size: 24px; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; line-height: 1; }
.gauge-wrap { display: flex; justify-content: center; }
.gauge { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.gauge .zone { fill: none; stroke: currentColor; stroke-width: 16; opacity: .9; transition: opacity .3s; }
.gauge .tick { stroke: var(--muted); stroke-width: 1.5; }
.gauge .tick.major { stroke: var(--ink); stroke-width: 2.5; }
.gauge .zlabel text { fill: currentColor; text-anchor: middle; }
.gauge .zpts { font-family: var(--display); font-weight: 900; font-size: 19px; }
.gauge .zname { font-family: var(--label); font-weight: 600; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
.gauge .needle { fill: var(--bad); }
.gauge .hub { fill: var(--ink); } .gauge .hub-dot { fill: var(--plate); }
.gauge .gread { font-family: var(--display); font-weight: 900; font-size: 30px; fill: var(--ink); text-anchor: middle; font-variant-numeric: tabular-nums; }
.gauge .gunit { font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); text-anchor: middle; }
.gauge.redline .zone.t-barn { opacity: 1; filter: drop-shadow(0 0 6px currentColor); }
.gauge.settled .zone:not(.hit), .gauge.settled .zlabel:not(.hit) { opacity: .22; }
.gauge.settled .zone.hit { stroke-width: 20; filter: drop-shadow(0 0 8px currentColor); }
@media (prefers-reduced-motion: no-preference) { .gauge.settled .zlabel.hit { animation: pop .4s ease-out; transform-box: fill-box; transform-origin: center; } }
.frame { position: relative; border-radius: 10px; overflow: hidden; background: var(--bg); aspect-ratio: 4/3; max-width: 100%; border: 1px solid var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clue { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px;
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--bg) 14px 28px); }
.clue p { font-size: 19px; font-weight: 500; max-width: 40ch; }
.clue .tag { align-self: flex-start; font-family: var(--label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--surface); padding: 2px 8px; border-radius: 4px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 440px) { .fields { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 4px; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-width: 0; }
input[type=text] { font-family: var(--body); font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; box-sizing: border-box; }
input[type=text]:focus { border-color: var(--ink); outline: none; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fix { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-family: var(--label); font-size: 16px; font-weight: 600; }
.fix s { color: var(--bad); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.fix span { color: var(--muted); font-size: 18px; }
.fixbtn { font: inherit; font-weight: 700; color: var(--plate-ink); background: var(--plate); border: 1.5px solid var(--plate-ink); border-radius: 6px; padding: 2px 10px; cursor: pointer; }
.fixbtn:hover { filter: brightness(1.06); }
@media (prefers-reduced-motion: no-preference) { .fix:not([hidden]) { animation: pop .25s ease-out; } }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { font-family: var(--label); font-weight: 700; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; border-radius: 8px; padding: 10px 20px; cursor: pointer; border: 2px solid var(--ink); background: var(--ink); color: var(--surface); }
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.go { background: var(--plate); color: var(--plate-ink); border-color: var(--plate-ink); }
.btn:disabled { opacity: .45; cursor: default; }

.result { border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.verdict { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; border: 1.5px solid currentColor; }
.chip.ok { color: var(--good); } .chip.no { color: var(--bad); }
.pts { font-family: var(--display); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }

.prompt { font-family: var(--display); font-weight: 900; font-size: 44px; text-transform: uppercase; line-height: 1; }
.prompt em { font-style: normal; background: var(--plate); color: var(--plate-ink); padding: 0 8px; border-radius: 6px; }
.tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 440px) { .tiers .tier { font-size: 9.5px; letter-spacing: 0; padding-inline: 1px; overflow-wrap: anywhere; } .tiers .tier b { font-size: 19px; } }
.tier { border: 1.5px solid currentColor; border-radius: 8px; padding: 6px 4px; text-align: center; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .5; }
.tier b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: 0; }
.tier.hit { opacity: 1; box-shadow: inset 0 0 0 2px currentColor; }
.t-base { color: var(--t-base); } .t-sport { color: var(--t-sport); } .t-limited { color: var(--t-limited); } .t-collector { color: var(--t-collector); } .t-barn { color: var(--t-barn); }

.tally { display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; }
.tally div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tally div span:first-child { min-width: 0; overflow-wrap: anywhere; }
.big { font-family: var(--display); font-size: 64px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.share { font-family: ui-monospace, Menlo, monospace; font-size: 15px; white-space: pre; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }

.note { font-size: 14px; color: var(--muted); }
.garage h2 { font-size: 28px; }
body.playing #garage, body.playing #howto { display: none !important; }
.credit { font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .pop { animation: pop .35s ease-out; } @keyframes pop { from { transform: scale(.9); opacity: .4 } } }

/* ===== Revamp: full screen, minimal =====
   Layout: one quiet top bar; the game fills the rest of the viewport.
   Wide screens: the car photo (or road, or gauge) fills the left, a narrow control column sits on the right.
   Phones: photo edge to edge on top, controls below. Single dark look by design. */
:root {
  --bg: #0b0f17; --surface: #121826; --ink: #eef1f6; --muted: #8590a6; --line: #212a3b;
  --plate: #f5c518; --plate-ink: #13203d;
  --barH: 60px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gutR: max(20px, env(safe-area-inset-right, 0px));
  --stageH: calc(100vh - var(--barH) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}
@supports (height: 100dvh) { :root { --stageH: calc(100dvh - var(--barH) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); padding: 0; }
body::before { background: var(--bg); }
.wrap { max-width: none; margin: 0; gap: 0; }

/* top bar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; height: var(--barH); box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: nowrap;
  padding-left: var(--gut); padding-right: var(--gutR); background: var(--bg); border-bottom: 1px solid var(--line); }
.mark { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.topbar .strip { display: flex; gap: 6px; }
.topbar .strip i { width: 24px; height: 4px; border-radius: 2px; background: var(--line); box-sizing: border-box; box-shadow: none; }
.topbar .strip i.bonus { background: transparent; border: 1px solid var(--muted); height: 4px; }
.topbar .strip i.now { background: var(--ink); border-color: var(--ink); }
.topbar .strip i.done { background: var(--plate); border-color: var(--plate); }
.hud { display: flex; align-items: center; gap: 16px; }
.day { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.score { display: flex; align-items: baseline; gap: 4px; }
.score b { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .06em; font-variant-numeric: tabular-nums; line-height: 1; }
.score i { font-style: normal; font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--plate); }
.topbar .mute { position: static; width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.topbar .mute:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 560px) {
  .day { display: none; }
  .mark { font-size: 22px; letter-spacing: .1em; }
  .topbar .strip { gap: 4px; } .topbar .strip i { width: 14px; }
  .hud { gap: 10px; }
}

/* shared quiet type */
.eyebrow, .card > .eyebrow:first-child { align-self: auto; font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 0; border-radius: 0; }
label { font-size: 12px; letter-spacing: .18em; }
input[type=text] { background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 8px 0 10px; font-size: 22px; }
input[type=text]:focus { border-bottom-color: var(--plate); }
input[type=text]::placeholder { color: var(--muted); opacity: .55; }
.btn { border-radius: 6px; font-size: 16px; padding: 11px 22px; }
.result { border-top: 1px solid var(--line); padding-top: 18px; gap: 10px; }
.chip { border-width: 1px; }
.quip { font-size: 22px; }

/* intro: the whole first screen */
.intro { position: relative; min-height: var(--stageH); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding-block: 48px 96px; padding-left: max(var(--gut), 8vw); padding-right: var(--gutR); }
.intro .title { font-size: clamp(96px, 22vw, 300px); line-height: .8; letter-spacing: .01em; margin-left: -.04em; }
.lede { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-family: var(--label); font-weight: 600; font-size: clamp(17px, 2vw, 24px); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); max-width: 62ch; }
.lede i { font-style: normal; color: var(--plate); }
.lede span { white-space: nowrap; }
.down { position: absolute; left: max(var(--gut), 8vw); bottom: 32px; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.down:hover { color: var(--ink); }

/* play screens */
.play { display: flex; flex-direction: column; }
.media { position: relative; min-width: 0; background: var(--surface); }
.media > .frame, .media > .trip.big { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; width: 100%; max-width: 100%; }
.media.stagewide { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding-block: 32px; padding-left: var(--gut); padding-right: var(--gutR); background: none; }
.media .prompt { font-size: clamp(40px, 6vw, 84px); text-align: center; text-wrap: balance; }
.media .gauge-wrap { width: 100%; }
.media .gauge { max-width: min(560px, 100%); }
.panel { display: flex; flex-direction: column; gap: 20px; min-width: 0; box-sizing: border-box; padding-block: 24px 40px; padding-left: var(--gut); padding-right: var(--gutR); }
.phead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.phead .tnum { font-size: 40px; min-width: 2ch; }
.panel .timer { margin-top: -14px; }
.panel .timer .track { height: 3px; border-radius: 0; }
.guessform { display: flex; flex-direction: column; gap: 18px; }
.clue .tag { background: var(--plate); color: var(--plate-ink); }
.clue { background: var(--surface); }
.clue p { font-size: clamp(19px, 2vw, 28px); }

@media (min-width: 900px) {
  .play { flex-direction: row; height: var(--stageH); }
  .media { flex: 1 1 auto; display: flex; border-right: 1px solid var(--line); }
  .media > .frame, .media > .trip.big { flex: 1; aspect-ratio: auto; height: 100%; }
  .media.stagewide { background: var(--bg); }
  .panel { flex: 0 0 clamp(360px, 30vw, 460px); overflow-y: auto; padding: 44px 40px; }
}

/* results */
/* final rank */
.rank { --rk: var(--t-base); display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border: 2px solid var(--rk); border-radius: 10px; background: color-mix(in srgb, var(--rk) 12%, transparent); }
.rank-badge { font-size: 30px; line-height: 1; }
.rank-name { display: block; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--rk); }
.rank-blurb { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.rank-hyper { --rk: var(--t-barn); } .rank-super { --rk: var(--t-collector); } .rank-sports { --rk: var(--t-limited); } .rank-daily { --rk: var(--t-sport); } .rank-project { --rk: var(--t-base); }
.rank.rank-hyper { box-shadow: 0 0 22px -6px var(--rk); animation: rankpop .7s ease-out; }
@keyframes rankpop { 0% { transform: scale(.94); opacity: 0; } 60% { transform: scale(1.03); opacity: 1; } 100% { transform: scale(1); } }
.ranks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.ranks li { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px 4px 4px; border-top: 4px solid var(--line); text-align: center; opacity: .55; }
.ranks li.on { border-top-color: var(--rk); opacity: 1; }
.ranks b { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: 0; line-height: 1.1; }
.ranks li.on b { color: var(--rk); }
.ranks i { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .rank.rank-hyper { animation: none; } }
.trip-end .big { font-size: 80px; }
.tally div { border-bottom-color: var(--line); }
.share { background: var(--surface); border-color: var(--line); white-space: pre-wrap; }
.answers { border-top: 1px solid var(--line); }
.ans { background: transparent; border-width: 1px; }

/* community garage: a plain section below the fold */
.garage { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); gap: 18px;
  padding-block: 64px 80px; padding-left: var(--gut); padding-right: var(--gutR); scroll-margin-top: var(--barH); }
.garage > * { width: 100%; max-width: 640px; margin-inline: auto; box-sizing: border-box; }
.garage h2 { font-size: 36px; }
.howto + .garage { border-top: 1px solid var(--line); }
.howto ol.mail-list { gap: 10px; }
.howto b { color: var(--plate); font-weight: 700; }

/* home screen: the night drive runs behind the title; a left-side shade keeps the words readable */
.intro { isolation: isolate; overflow: hidden; }
.introbg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 50%, transparent) 42%, transparent 72%); }
@media (max-width: 700px) { .intro::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 35%, transparent) 60%, transparent 100%); } }
.intro .title, .lede { text-shadow: 0 2px 24px color-mix(in srgb, var(--bg) 70%, transparent); }

/* photo + road sized as a 4:3 picture inside a grey surround, never edge to edge */
:root { --mpad: 10px; }
.media:not(.stagewide) { display: flex; align-items: center; justify-content: center; background: var(--surface);
  padding-block: var(--mpad); padding-left: max(var(--mpad), env(safe-area-inset-left, 0px)); padding-right: max(var(--mpad), env(safe-area-inset-right, 0px)); box-sizing: border-box; }
.media > .frame, .media > .trip.big { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px #000; }
@media (min-width: 900px) {
  .media > .frame, .media > .trip.big { width: min(100%, calc((var(--stageH) - 2 * var(--mpad)) * 4 / 3)); height: auto; aspect-ratio: 4 / 3; }
}

/* 8-bit circuit: the scene draws its own pixel HUD, so the old HTML sign and odometer stay hidden on it */
.trip.big .leg, .trip.big .odometer { display: none; }
.trip.big { background: #2c8443; }
.introbg { filter: brightness(.5) saturate(.85); }

/* ---------- account ---------- */
.topbar .acct { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; padding: 0; display: grid; place-items: center; }
.topbar .acct svg { width: 16px; height: 16px; }
.topbar .acct:hover { color: var(--ink); border-color: var(--muted); }
.topbar .acct.in { color: var(--plate-ink); background: var(--plate); border-color: var(--plate); }
.acct:focus-visible, .mute:focus-visible, .link:focus-visible { outline: 2px solid var(--plate); outline-offset: 2px; }
.acct-dlg { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px 20px; }
.acct-dlg::backdrop { background: #05080fcc; }
.acct-dlg h2 { margin: 0 32px 10px 0; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.acct-dlg p { margin: 0 0 12px; }
.acct-dlg .eyebrow { margin: 16px 0 8px; }
.acct-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 8px; }
.acct-x:hover { color: var(--ink); }
.acct-form { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 12px; }
input[type=email] { font-family: var(--body); font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 8px 0 10px; }
input[type=email]:focus { border-color: var(--ink); outline: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 4px; }
.stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; }
.stats b { font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.hist { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; }
.hist li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hist li span { color: var(--muted); min-width: 0; }
.hist li i { font-style: normal; letter-spacing: 1px; white-space: nowrap; }
.hist li b { font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
.link { background: none; border: 0; padding: 0; color: var(--plate); font: inherit; text-decoration: underline; cursor: pointer; }
.save-note:empty { display: none; }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) {
  .topbar { gap: 10px; }
  .topbar .strip { gap: 3px; } .topbar .strip i { width: 10px; }
  .hud { gap: 8px; }
  .score b { font-size: 21px; }
  .topbar .acct, .topbar .mute { width: 30px; height: 30px; }
}
@media (max-width: 350px) { .topbar .strip { display: none; } }

/* ---------- community garage by email ---------- */
.mailbox { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mail-addr { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 6.2vw, 34px); letter-spacing: .01em; color: var(--plate); text-decoration: none; overflow-wrap: anywhere; line-height: 1.05; }
.mail-addr:hover { text-decoration: underline; }
a.btn { text-decoration: none; display: inline-block; }
.mail-list { margin-block: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.mail-list li::marker { color: var(--plate); }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--ink); text-decoration: underline; }
body.playing .foot { display: none; }

/* Volume: the header speaker opens a small slider. */
.vol { position: relative; display: flex; }
.vol-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px #0008; }
.vol-pop[hidden] { display: none; }
.vol-pop::before { content: ""; position: absolute; top: -6px; right: 11px; width: 10px; height: 10px; background: var(--surface);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.vol-mute { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; padding: 0; display: grid; place-items: center; }
.vol-mute svg { width: 16px; height: 16px; }
.vol-mute:hover { border-color: var(--muted); }
.vol-num { font-family: "VT323", monospace; font-size: 20px; line-height: 1; color: var(--ink); min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; }
#vol { -webkit-appearance: none; appearance: none; width: 140px; height: 28px; margin: 0; background: transparent; cursor: pointer; --fill: 80%; }
#vol::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--plate) var(--fill), var(--line) var(--fill)); }
#vol::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
#vol::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--plate); }
#vol::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--ink); border: 2px solid var(--plate); }
#vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--plate); }
#vol:focus-visible { outline: 2px solid var(--plate); outline-offset: 4px; border-radius: 4px; }
.vol-mute:focus-visible { outline: 2px solid var(--plate); outline-offset: 2px; }
@media (max-width: 420px) { #vol { width: 120px; } }

/* view a round's picture again */
.tally div span:first-child { flex: 1; }
.tally .view-pic { font-size: 14px; color: var(--muted); align-self: center; }
.tally .view-pic:hover { color: var(--plate); }
.pic-dlg { padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); max-width: min(92vw, 1000px); max-height: 90vh; overflow: hidden; }
.pic-dlg::backdrop { background: #000c; }
.pic-dlg figure { margin: 0; display: flex; flex-direction: column; }
.pic-dlg img { display: block; max-width: 100%; max-height: calc(90vh - 48px); object-fit: contain; background: #000; }
.pic-dlg figcaption { font-family: var(--label); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 52px 12px 16px; }
.pic-close { position: absolute; right: 8px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; cursor: pointer; }
.pic-close:hover { border-color: var(--plate); color: var(--plate); }

/* phones: the photo and the race run edge to edge, right down to the round header */
@media (max-width: 899px) {
  .media:not(.stagewide) { padding: 0; background: #000; }
  .media > .frame, .media > .trip.big { border: 0; border-radius: 0; box-shadow: none; width: 100%; }
  .play > .panel { padding-top: 16px; }
}

/* hidden buttons stay hidden even though .btn sets its own display */
.btn[hidden] { display: none !important; }

/* Car facts after each answer: years, power, engine, one line */
.facts { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.specs { display: grid; grid-template-columns: auto auto; gap: 6px 18px; margin: 0; justify-content: start; }
.specs > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.specs .wide { grid-column: 1 / -1; }
.specs dt { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); }
.facts .fact { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); opacity: .86; text-wrap: pretty; }
@media (max-width: 440px) { .facts { padding: 8px 10px; gap: 6px; } .specs dd { font-size: 14px; } .facts .fact { font-size: 13px; } }
@media (max-width: 700px) { .result .facts { order: 10; } }
.acct-form[hidden] { display: none; }

/* The account area: header, tabs, finishes chart, full history */
.acct-dlg:has(.acct-tabs) { width: min(560px, calc(100vw - 24px)); }
.acct-head { display: flex; align-items: center; gap: 14px; margin: 0 32px 14px 0; }
.acct-head h2 { margin: 0; overflow-wrap: anywhere; }
.acct-head p { margin: 2px 0 0; }
.acct-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--plate); color: var(--plate-ink, #0b0f17); font-family: var(--display); font-weight: 900; font-size: 24px; }
.acct-initial { font-family: var(--display); font-weight: 900; font-size: 15px; line-height: 1; }
.acct-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.acct-tabs [role=tab] { flex: 1; padding: 10px 6px 9px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); cursor: pointer;
  font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.acct-tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--plate); }
.acct-tabs [role=tab]:focus-visible { outline: 2px solid var(--plate); outline-offset: -2px; }
.stats.stats3 { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.dist { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dist li { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; align-items: center; font-size: 14px; }
.dist li > span { white-space: nowrap; color: var(--muted); }
.dist li i { display: flex; justify-content: flex-end; width: var(--w); min-width: 22px; height: 22px; border-radius: 4px; background: var(--line); font-style: normal; }
.dist li i b { padding: 0 7px; line-height: 22px; font-variant-numeric: tabular-nums; font-size: 13px; }
.dist li.mine > span { color: var(--ink); }
.dist li.mine i { background: var(--plate); color: var(--plate-ink, #0b0f17); }
.hist-all > li { display: block; padding: 0; }
.hrow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; width: 100%; padding: 9px 2px; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.hrow span { color: var(--muted); min-width: 0; }
.hrow i { font-style: normal; letter-spacing: 1px; white-space: nowrap; }
.hrow b { font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
.hrow:hover span, .hrow[aria-expanded=true] span { color: var(--ink); }
.hrow:focus-visible { outline: 2px solid var(--plate); outline-offset: 1px; border-radius: 4px; }
.hlog { list-style: none; margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 60%, transparent); font-size: 14px; }
.hlog li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.hlog li span { color: var(--muted); }
.danger { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--line); }
.danger-btn { color: #ff8a80; border-color: #6a2a2a; }
.danger-go { background: #c62828; color: #fff; border-color: #c62828; }
@media (max-width: 420px) { .dist li { grid-template-columns: 8.2em 1fr; font-size: 13px; } .stats.stats3 b { font-size: 22px; } }
.acct-dlg a { color: var(--plate); }
.danger + .note { margin-top: 18px; }

/* Today's leaderboard */
.board { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.board[hidden] { display: none; }
.board .eyebrow { margin: 0; }
.beat { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.beat-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.beat-main { font-size: 17px; line-height: 1.2; color: var(--ink); }
.beat-main b { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--plate); font-variant-numeric: tabular-nums; vertical-align: -2px; margin: 0 2px; }
.beat-sub { font-size: 13px; line-height: 1.3; color: var(--muted); }
.beat > i { font-style: normal; display: flex; flex-direction: column; align-items: center; font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1; }
.beat > i small { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lb li { display: grid; grid-template-columns: 2em 1fr auto auto; gap: 10px; align-items: baseline; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.lb .pos { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.lb .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb i { font-style: normal; letter-spacing: 1px; white-space: nowrap; font-size: 13px; }
.lb b { font-variant-numeric: tabular-nums; text-align: right; min-width: 60px; }
.lb li.me { background: color-mix(in srgb, var(--plate) 16%, transparent); border-radius: 6px; border-bottom-color: transparent; }
.lb li.me .nm { color: var(--plate); font-weight: 700; }
.lb li.gap { display: block; text-align: center; color: var(--muted); padding: 2px 0; border: 0; }
.board-dlg .board { margin-top: 6px; }
@media (max-width: 420px) { .lb i { display: none; } .lb li { grid-template-columns: 1.8em 1fr auto; } .beat-main b { font-size: 26px; } }

/* today's scores as a curve: everyone in gray, the drivers you beat in yellow, your score marked */
.curve { margin: 2px 0 2px; }
.curve svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; border-radius: 6px; }
.curve svg:focus { outline: none; }
.curve svg:focus-visible { outline: 2px solid var(--plate); outline-offset: 4px; }
.dist-area { fill: var(--muted); fill-opacity: .12; }
.dist-line { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dist-area.beat { fill: var(--plate); fill-opacity: .24; }
.dist-line.beat { stroke: var(--plate); }
.dist-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dist-you { stroke: var(--plate); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dist-dot { fill: var(--plate); stroke: var(--bg); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dist-band { fill: var(--ink); fill-opacity: .07; }
.dist-lab { fill: var(--ink); font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .04em; }
.dist-tick { fill: var(--muted); font-family: var(--label); font-weight: 500; font-size: 9px; }
.dist-read { font-size: 13px; color: var(--muted); min-height: 1.4em; margin-top: 2px; }
.dist-read b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* the streak and the countdown to the next Carle */
.daily-next { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.daily-next > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 78%, transparent); }
.daily-next .lbl { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.daily-next b { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--ink); }
.daily-next small { font-size: 12px; color: var(--muted); line-height: 1.2; }
.streak-box b { color: var(--plate); }
.streak-box .flame { font-size: 22px; }
.next-box .btn { padding-block: 8px; }
.streak-chip { margin: 0; font-size: 15px; color: var(--ink); }
.streak-chip b { color: var(--plate); font-variant-numeric: tabular-nums; }
.intro .js-streakwrap { width: 100%; max-width: 440px; }
.intro .js-streakwrap:empty { display: none; }
@media (max-width: 380px) { .daily-next { grid-template-columns: 1fr; } }

/* the admin Insights tab: daily columns, and meter lists for referrers, devices and time zones */
.ins-chart { margin: 14px 0 6px; }
.ins-chart figcaption { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.ins-chart .key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.ins-chart .key.v::before { background: var(--muted); }
.ins-chart .key.f::before { background: var(--plate); }
.ins-chart .note { margin-left: auto; font-size: 13px; }
.ins-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ins-v { fill: var(--muted); }
.ins-f { fill: var(--plate); }
.ins-hit { fill: transparent; }
.ins-chart g:hover > .ins-hit { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.ins-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ins-tick { fill: var(--muted); font-family: var(--label); font-size: 9px; font-weight: 500; }
.meters { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.meters li { display: grid; grid-template-columns: minmax(0, 11em) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.meters li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meters i { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 18%, transparent); position: relative; overflow: hidden; }
.meters i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--plate); border-radius: 4px; }
.meters b { font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: right; }
/* ?engines sound board */
.eng-list { list-style: none; margin: 0; padding: 0; display: grid; }
.eng-list li { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.eng-name b { font-size: 17px; }
.eng-name code { font-size: 13px; color: var(--muted); margin-left: 6px; }
.eng-list .muted { font-size: 14px; line-height: 1.4; }
.eng-list .row { flex-wrap: wrap; gap: 8px; }
.eng-list .btn { padding: 7px 12px; font-size: 14px; min-height: 0; }
