@font-face { font-family: Nohemi; src: url(assets/NohemiBold.ttf); font-weight: 700; font-display: block; }
:root { --green: #8DFF00; --ink: #f4f6ef; --dim: #a9b5a4; --bg: #0b0f0a; --panel: #10160f; --line: #2a3527; --bad: #ffb44d; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.45 ui-sans-serif, system-ui, "Segoe UI", sans-serif; overflow: hidden; }
[hidden] { display: none !important; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
h1, .place, #count, #brand span, .go { font-family: Nohemi, ui-sans-serif, sans-serif; font-weight: 700; }

#brand { position: fixed; left: 24px; top: 20px; display: flex; align-items: center; gap: 14px; pointer-events: none; }
#brand img { height: 26px; }
#brand span { font-size: 18px; color: var(--green); padding-left: 14px; border-left: 2px solid rgba(244, 246, 239, .35); }

#board { position: fixed; left: 24px; top: 74px; margin: 0; padding: 10px 14px; list-style: none; width: max-content; min-width: 236px; max-width: calc(100vw - 48px); background: rgba(8, 12, 8, .93); border-radius: 6px; font-variant-numeric: tabular-nums; }
#board li { display: flex; gap: 10px; height: 26px; align-items: center; white-space: nowrap; overflow: hidden; }
#board li b { width: 18px; color: var(--dim); font-weight: 600; }
#board li:first-child { color: var(--green); }
#board li:first-child b { color: var(--green); }

#tags span { position: fixed; left: 0; top: 0; padding: 2px 8px; background: rgba(8, 12, 8, .86); border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; will-change: transform; }
#tags span.lead { color: #0b0f0a; background: var(--green); }

#count { position: fixed; left: 24px; bottom: 64px; font-size: clamp(120px, 24vh, 260px); line-height: .8; color: var(--green); text-shadow: 0 4px 0 rgba(0, 0, 0, .55); pointer-events: none; }

#track { position: fixed; left: 24px; right: 24px; bottom: 24px; height: 6px; background: rgba(8, 12, 8, .7); border-radius: 3px; }
#trackFill { height: 100%; width: 100%; background: var(--green); border-radius: 3px; transform-origin: left; transform: scaleX(0); }
#trackText { position: absolute; left: 0; bottom: 14px; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(8, 12, 8, .82); padding: 3px 9px; border-radius: 4px; }
#credit { position: fixed; right: 24px; top: 22px; margin: 0; font-size: 12px; color: var(--ink); background: rgba(8, 12, 8, .7); padding: 3px 8px; border-radius: 4px; }

#gate, #result, #landing, #join { position: fixed; left: 24px; bottom: 56px; max-width: min(560px, calc(100vw - 48px)); padding: 26px 28px; background: rgba(8, 12, 8, .9); border-radius: 8px; }
#gate h1 { margin: 0 0 6px; font-size: 44px; line-height: 1; }
#gate p { margin: 0 0 18px; color: var(--dim); }
#result .place { margin: 0; color: var(--green); font-size: 22px; }
#result h1 { margin: 2px 0 12px; font-size: 54px; line-height: 1.05; white-space: nowrap; }
#others { margin: 0 0 18px; padding: 0; list-style: none; font-size: 19px; font-weight: 600; }
#others li { display: flex; gap: 12px; padding: 3px 0; }
#others b { color: var(--dim); width: 34px; font-variant-numeric: tabular-nums; }
#proof { margin: 12px 0 0; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
#proof:empty { display: none; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

button { font: inherit; font-weight: 600; min-height: 44px; padding: 0 16px; color: var(--ink); background: #1b2419; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:active:not(:disabled) { transform: scale(.98); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.go { background: var(--green); color: #0b0f0a; border-color: var(--green); font-size: 17px; }
@media (hover: hover) and (pointer: fine) { button:hover:not(:disabled) { border-color: var(--green); } .go:hover:not(:disabled) { background: #a6ff3a; } }

#host, #lobbyHost { position: fixed; right: 0; top: 0; bottom: 0; width: min(400px, 100vw); padding: 22px 22px 28px; background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; }
#host h1, #lobbyHost h1 { margin: 0 0 12px; font-size: 30px; line-height: 1; }
#host details, #lobbyHost details { margin-bottom: 8px; color: var(--dim); }
#host summary, #lobbyHost summary { cursor: pointer; color: var(--ink); font-weight: 600; min-height: 32px; }
#host details p, #lobbyHost details p { margin: 4px 0 0; }
#host label, #lobbyHost label { display: block; margin: 16px 0 6px; font-weight: 600; }
#host input, #host select, #host textarea, #lobbyHost input, #lobbyHost select { width: 100%; min-height: 44px; padding: 9px 11px; font: inherit; color: var(--ink); background: #0b0f0a; border: 1px solid var(--line); border-radius: 6px; }
#host textarea { font: 13px/1.4 ui-monospace, Consolas, monospace; resize: vertical; }
#host button, #lobbyHost button { width: 100%; margin-top: 8px; }
#receipt { width: 100%; margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#receipt th { text-align: left; font-weight: 600; color: var(--dim); font-size: 13px; padding-bottom: 4px; }
#receipt td { padding: 3px 8px 3px 0; }
#receipt .shown { width: 84px; min-height: 36px; padding: 4px 8px; }
#receipt .state { font-weight: 600; white-space: nowrap; }
#receipt .ok { color: var(--green); }
#receipt .short { color: var(--bad); }
.two { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
#host .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--dim); }
#host .check input { width: 20px; min-height: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--green); }
#tally { margin: 18px 0 0; font-size: 17px; }
#tally b { font-family: Nohemi, sans-serif; font-size: 34px; color: var(--green); margin-right: 6px; font-variant-numeric: tabular-nums; }
#warn { margin: 4px 0 0; color: var(--bad); min-height: 1.45em; }
#lockInfo { margin: 12px 0 0; color: var(--dim); overflow-wrap: anywhere; }


/* lobby */
#landing h1, #join h1 { margin: 0 0 8px; font-size: 44px; line-height: 1; }
#landing p, #join p { margin: 0 0 14px; color: var(--dim); }
#landing label, #join label { display: block; margin: 14px 0 6px; font-weight: 600; }
#landing input, #join input { min-height: 44px; padding: 9px 11px; font: inherit; color: var(--ink); background: #0b0f0a; border: 1px solid var(--line); border-radius: 6px; min-width: 0; flex: 1; }
#code { text-transform: uppercase; letter-spacing: .12em; max-width: 140px; }
.inline { display: flex; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; color: var(--ink); }
.check input { width: 20px; height: 20px; min-height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--green); }
.fine { margin: 8px 0 0 !important; font-size: 13px; }
#landMsg, #joinMsg, #lobbyMsg { color: var(--bad); min-height: 1.45em; margin: 8px 0 0; }
#joined { color: var(--ink) !important; }
#joinCount { margin: 0 !important; font-variant-numeric: tabular-nums; }
.alt a { color: var(--dim); }
#joinBanner { position: fixed; left: 24px; top: 62px; margin: 0; padding: 10px 16px; background: rgba(8, 12, 8, .93); border-radius: 6px; font-size: 22px; font-weight: 600; }
#joinBanner b { color: var(--green); font-family: Nohemi, sans-serif; }
#joinBanner span { margin-left: 18px; color: var(--dim); }
#tallyLobby { margin: 18px 0 8px; font-size: 17px; }
#tallyLobby b { font-family: Nohemi, sans-serif; font-size: 34px; color: var(--green); margin-right: 6px; font-variant-numeric: tabular-nums; }
#roster { list-style: none; margin: 0; padding: 0; max-height: 34vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; }
#roster:empty { display: none; }
#roster li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 2px 12px; border-bottom: 1px solid var(--line); }
#roster li:last-child { border-bottom: 0; }
#roster button { width: auto; margin: 0; min-height: 36px; padding: 0 10px; font-size: 13px; background: none; border-color: transparent; color: var(--dim); }
#you { margin: 0 0 12px; font-weight: 600; }
#you:empty { display: none; }
#nextRound { margin-top: 12px; }
#waitNext { margin: 12px 0 0; color: var(--dim); }
#sound { position: fixed; right: 24px; top: 56px; }
#tags span.me { color: #0b0f0a; background: var(--ink); }

#loading { position: fixed; left: 24px; bottom: 24px; margin: 0; color: var(--dim); }

@media (max-width: 720px) {
  #host { top: auto; height: 62vh; border-left: 0; border-top: 1px solid var(--line); }
  #board { min-width: 180px; max-width: calc(100vw - 32px); top: 80px; padding: 8px 10px; font-size: 14px; }
  #board li { gap: 6px; }
  #credit { top: 50px; right: auto; left: 16px; font-size: 11px; white-space: nowrap; max-width: calc(100vw - 32px); }
  #brand, #board, #gate, #result, #landing, #join { left: 16px; }
  #lobbyHost { top: auto; height: 62vh; border-left: 0; border-top: 1px solid var(--line); }
  #joinBanner { left: 16px; top: 78px; font-size: 15px; }
  #sound { right: 16px; top: 78px; }
  #landing, #join { bottom: 40px; }
  #track { left: 16px; right: 16px; }
  #count { left: 16px; }
}
@media (max-width: 400px) { #credit { font-size: 9.5px; letter-spacing: -.01em; } }

/* rockets */
#fire { position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 5; padding: 16px 34px; font: 600 22px Nohemi, sans-serif; letter-spacing: .02em; color: #0b0f0a; background: var(--green); border: 0; border-radius: 8px; cursor: pointer; box-shadow: 0 6px 0 #4f8f00, 0 14px 30px rgba(0, 0, 0, .45); transition: transform .12s cubic-bezier(.2, .8, .2, 1), box-shadow .12s cubic-bezier(.2, .8, .2, 1); touch-action: manipulation; }
#fire:active:not(:disabled) { transform: translateX(-50%) translateY(5px); box-shadow: 0 1px 0 #4f8f00, 0 6px 14px rgba(0, 0, 0, .45); }
#fire:disabled { background: #2a3327; color: var(--dim); box-shadow: 0 6px 0 #171c15; cursor: default; }
#feed { position: fixed; right: 24px; top: 74px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; max-width: min(360px, calc(100vw - 48px)); pointer-events: none; }
#feed li { padding: 7px 12px; background: rgba(8, 12, 8, .93); border-radius: 6px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#feed li.me { color: var(--green); font-weight: 600; }
@media (max-width: 720px) { #fire { bottom: 96px; padding: 15px 28px; font-size: 20px; } #feed { right: 12px; top: 264px; } #feed li { font-size: 13px; padding: 5px 9px; } }
@media (prefers-reduced-motion: reduce) { #fire { transition: none; } }

@media (max-width: 720px) {
  #board li:nth-child(n+4) { display: none; }
  #feed { top: auto; bottom: 83px; right: 16px; }
  #feed li:nth-child(n+3) { display: none; }
  body:has(#fire:not([hidden])) #feed { bottom: 160px; }
  body.ufo-shot #feed li:nth-child(n+2), body.ufo-shot #tags { display: none; }
}

#frameRate { position: fixed; bottom: 38px; right: 16px; padding: 3px 7px; background: #101813; color: #fff; border-radius: 4px; pointer-events: none; font-variant-numeric: tabular-nums; }

#worldCard {display:flex;align-items:center;gap:12px;margin:8px 0 12px} #worldCard img {border-radius:5px} #demoWorldLabel:not([hidden]) {display:block;margin:12px 0} #demoWorld {width:100%}

/* Race-control panels use the broadcast colours and a finish-line detail throughout. */
:is(#landing,#gate,#join,#result,#lobbyHost,#host) {
  color: #f4f6ec; background: linear-gradient(128deg,#202b27 0%,#141c1a 40%,#101614 100%);
  border: 1px solid #46564c; border-top: 3px solid #adf442; box-shadow: 0 12px 32px #03090660;
  max-height: calc(100dvh - 94px); overflow-y: auto; overscroll-behavior: contain;
}
:is(#landing,#gate,#join,#result) { width: min(420px,calc(100vw - 48px)); border-radius: 3px 12px 12px 3px; padding: 22px; bottom: max(24px,env(safe-area-inset-bottom)); }
:is(#landing,#gate,#join,#lobbyHost,#host) h1 { font-size:clamp(29px,4.8vw,40px); letter-spacing:-.045em; }
:is(#landing,#gate,#join,#lobbyHost,#host) p {line-height:1.45}
:is(#landMsg,#joinMsg,#lobbyMsg,#worldCount):empty {display:none}
:is(#lobbyHost,#host) {max-height:100dvh; padding:22px;}
#lobbyHost .invite {align-items:stretch}
#lobbyHost .invite input {min-width:0; flex:1;}
#lobbyHost .invite button {width:auto; margin:0; flex:none}
#lobbyHost .raceSettings {display:grid; grid-template-columns:1fr 1.45fr;gap:12px}
#lobbyHost .raceSettings select {margin-top:5px}
.raceRules {margin:10px 0 12px; border-block:1px solid #344039}
#lobbyHost .raceRules .check {display:flex; align-items:center; gap:12px; margin:0; padding:9px 0}
#lobbyHost .raceRules input,#landing #needX {width:19px;height:19px;min-height:19px;min-width:19px;flex:none;accent-color:var(--green)}
.raceRules small {display:block; color:#b7c4b9;font-size:12px;font-weight:400}
#landing .check {display:flex;align-items:center}
#lobbyHost #worldCard {background:#0d1612;border-left:2px solid var(--green);padding:7px;font-weight:650}
#lobbyHost details {font-size:13px}
#lobbyHost #startRace {margin:3px 0 0;}
#gate select,#ballot select {color:var(--ink);background:#101914;border:1px solid #49584e;border-radius:5px;min-height:44px;padding:7px 10px;font:inherit}
#gate #watch,#landing #openLobby {width:100%}
#gate #demoWorldLabel {color:#bac9bb;font-size:13px;font-weight:650}
#gate #demoWorld {margin-top:4px}
#landing #codeForm {border-top:1px solid #405046;margin-top:16px}
#landing .alt {margin:13px 0 0;font-size:13px}
#result {width:min(460px,calc(100vw - 48px));padding:0;transform:translateY(var(--entry-y,0px));}
.finishHeader {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 18px;border-bottom:1px solid #415046;font:700 11px/1.15 Nohemi,sans-serif;text-transform:uppercase;letter-spacing:.13em;}
.finishHeader::before {content:"";flex:none;width:22px;height:12px;background:repeating-conic-gradient(#d6e6c5 0 25%,transparent 0 50%) 0 0/8px 8px;}
.finishHeader span:first-child {margin-right:auto}
#resultWorld {color:#c0cbbd;letter-spacing:.05em;text-align:right}
.winnerLine {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;margin:18px}
#result .place {font:700 clamp(46px,8vw,68px)/.92 Nohemi,sans-serif;color:#bbfa60;letter-spacing:-.08em;border-right:1px solid #49564b;padding-right:14px}
#finishTime {font:700 10px/1.3 ui-monospace,monospace;letter-spacing:.12em;color:#c4cfc2;margin:0 0 6px}
#result h1 {font:700 clamp(22px,4.9vw,32px)/1.05 Nohemi,sans-serif;letter-spacing:-.035em;white-space:normal;overflow-wrap:anywhere;margin:0}
#others {margin:0 18px 12px;font-size:15px}
#others li {align-items:center;border-top:1px solid #344038;padding:7px 0;overflow-wrap:anywhere}
#others li b {width:34px;flex:none;color:#bed0bc}
#others small {margin-left:auto;font:12px ui-monospace,monospace;color:#bdc7bd;white-space:nowrap}
#result .row {padding:10px 18px 14px;border-top:1px solid #344038;gap:5px}
#result .row button {padding:0 11px;font-size:13px}
#result :is(#nextRound,#proof,#waitNext,#you,#gpResult,#pickResult):not(:empty) {margin:0 18px 12px}
#cheerDuck {--charge:0%;z-index:5;position:fixed;right:22px;bottom:71px;background:linear-gradient(to right,#416627 var(--charge),#17241b var(--charge));border:1px solid #9bcf5b;color:#edffd7;display:flex;align-items:center;gap:12px;touch-action:manipulation;user-select:none}
#cheerCount {min-width:32px;font:12px ui-monospace,monospace}
@media(max-width:720px) {
  :is(#landing,#gate,#join,#result){width:calc(100vw - 28px);max-width:460px;left:14px;bottom:max(14px,env(safe-area-inset-bottom));}
  #lobbyHost,#host {height:min(71dvh,680px);border-radius:12px 12px 0 0;padding:16px 18px 22px}
  #joinBanner {max-width:calc(100vw - 28px);overflow-wrap:anywhere;font-size:13px}
  #cheerDuck {right:14px;bottom:78px}
  body:has(#cheerDuck:not([hidden])) #fire {left:14px;bottom:78px;transform:none;min-height:44px;font-size:15px;padding:8px 14px}
  body:has(#cheerDuck:not([hidden])) #feed {bottom:138px}
}
@media(prefers-reduced-motion:reduce) {#result {transform:none} button:active:not(:disabled){transform:none}}

.gateHeading {display:flex;align-items:center;gap:12px;margin-bottom:12px}
.gateHeading img {border-radius:4px;object-fit:cover}
#gate .gateHeading h1 {margin:0}

#joinBanner {display:grid;gap:4px;max-width:min(480px,calc(100vw - 32px));background:#111a16;border-left:3px solid var(--green);border-radius:0 5px 5px 0;padding:8px 14px}
#joinBanner span {margin:0;display:flex;align-items:center;gap:12px;font:650 11px ui-sans-serif,sans-serif;letter-spacing:.1em;text-transform:uppercase}
#bannerCode {font-size:clamp(23px,4vw,38px);letter-spacing:.09em;line-height:1}
#joinBanner #bannerUrl {font:12px ui-sans-serif,sans-serif;overflow-wrap:anywhere;color:#d3dcd1}

#cheerDuck {touch-action:none;user-select:none;-webkit-touch-callout:none}
#photoStrip {position:fixed;z-index:5;bottom:max(7vh,24px);left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;padding:12px 16px;background:#101911f2;color:#fff;border-top:3px solid #abfa2f;pointer-events:none}
#photoStrip div {display:flex;align-items:center;justify-content:space-between;gap:22px}
#photoStrip b {font-size:18px;text-transform:uppercase;letter-spacing:.04em}
#photoGap {color:#b9fc60;font-variant-numeric:tabular-nums}
#photoNames {display:block;margin-top:5px;overflow-wrap:anywhere;font-size:13px;color:#d4ddd3}

#raceCamera {position:fixed;top:max(56px,env(safe-area-inset-top));right:12px;z-index:5;background:#101910e8;color:#fff;padding:3px 8px;border-radius:6px;font-size:12px;display:flex;gap:5px;align-items:center}
#raceCamera select {font:inherit;min-height:36px;max-width:100px}
#confirmFinish {position:fixed;bottom:8vh;left:50%;transform:translateX(-50%);background:#101910;color:white;padding:12px;z-index:6}
#walletEntry {margin:0 18px 10px} #walletEntry summary {min-height:32px;cursor:pointer;font-weight:700}
#walletForm {display:flex;align-items:end;gap:8px} #walletForm label {min-width:0;flex:1} #walletForm input {width:100%;box-sizing:border-box} #walletStatus {display:block}
#result {max-height:72dvh;overflow-y:auto} #walletReport {margin:0 18px 10px}

.mimu #brand img {width:86px;height:auto;object-fit:contain}.mimu #brand span,.mimu #result .place {color:#83f5d3}.mimu #watch,.mimu #replay {background:#83f5d3;color:#092920}

#fire[data-state="ready"] {background:#b5ff35;color:#102000;border:2px solid #edffc4;box-shadow:0 4px 0 #526f12,0 0 15px #b4ff4077;isolation:isolate}
#fire[data-state="ready"]::before {content:'\1F680';margin-right:.35em}
#fire[data-state="ready"]::after {content:'';position:absolute;inset:-4px;border:2px solid #c4ff6c;border-radius:inherit;pointer-events:none;animation:rocket-ready 1.35s ease-out infinite}
@keyframes rocket-ready {from{transform:scale(1);opacity:.85}to{transform:scale(1.10,1.23);opacity:0}}
#fire[data-state="notice"] {color:#fff;background:#22391e}
#cheerDuck {min-height:44px;box-shadow:inset 0 1px 0 #c9f3a755,0 3px 0 #10190e}
:is(button,select,summary):focus-visible {outline:3px solid #cdff79;outline-offset:3px}
:is(#watch,#openLobby,#joinBtn,#startRace):enabled {box-shadow:0 3px 0 #4e750f,0 0 12px #97d74350}
.mimu #brand img {width:96px;height:auto}
@media(prefers-reduced-motion:reduce){#fire[data-state="ready"]::after {animation:none;opacity:.5}}

#joinUrl,#joinBanner #bannerUrl{color:#83caff;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere} #joinUrl{flex:1;min-width:0;align-self:center;font-size:14px}

/* Mimu uses the mint sampled from its head mark, with cool blue-black paneling. */
body.mimu {
  --green:#7fffd4; --ink:#effaf9; --dim:#a7bdc4; --bg:#0a141b; --panel:#101d25; --line:#39525c;
  --mimu-edge:#4c6976; --mimu-key:#163d42;
}
.mimu :is(#landing,#gate,#join,#result,#lobbyHost,#host) {
  background:linear-gradient(120deg,#1c303c,#101d25 48%,#0d1820);
  border-color:var(--mimu-edge); border-top:2px solid var(--green); color:var(--ink);
  box-shadow:inset 0 1px #284653,0 10px 28px #04101977;
}
.mimu :is(#landing,#gate,#join,#result,#lobbyHost,#host)::before {
  content:""; display:block; width:44px; height:4px; margin:0 0 12px;
  background:repeating-linear-gradient(115deg,var(--green) 0 5px,transparent 5px 8px);
}
.mimu #result::before {margin:0 0 0 18px}
.mimu :is(#code,#bannerCode,#finishTime,#trackText,.finishHeader,#lobbyCount) {font-family:ui-monospace,monospace}
.mimu :is(#code,#bannerCode) {letter-spacing:.14em}
.mimu button {background:#203640;border-color:var(--mimu-edge)}
.mimu :is(.go,#watch,#replay) {background:var(--green);color:#09242a;border-color:#b7ffe9}
.mimu :is(#watch,#openLobby,#joinBtn,#startRace):enabled {box-shadow:0 3px #347a75,0 0 10px #7fffd426}
.mimu .go:enabled:hover {background:#afffe4}
.mimu :is(input,textarea,select):not([type=checkbox]) {background:#09161e!important;color:var(--ink)!important;border:1px solid var(--mimu-edge)!important}
.mimu :focus-visible {outline-color:var(--green)}
.mimu :is(#board,#feed li,#joinBanner,#raceCamera,#photoStrip,#confirmFinish,#trackText,#lobbyHost #worldCard) {background:#101d25f5;border-color:var(--green)}
.mimu :is(.finishHeader,.raceRules,#landing #codeForm,#others li,#result .row) {border-color:var(--line)}
.mimu :is(#photoGap,#result .place) {color:var(--green)}
.mimu :is(.raceRules small,#resultWorld,#finishTime,#others li b,#others small) {color:#bdcdd2}
.mimu #cheerDuck {background:linear-gradient(to right,#22645e var(--charge),#152f39 var(--charge));color:#e5fff6;border-color:#75b9ac;box-shadow:0 3px #0a1820}
.mimu #fire[data-state=ready] {background:var(--green);color:#09242a;border-color:#cefff0;box-shadow:0 4px #24766c,0 0 12px #7fffd455}
.mimu #fire[data-state=ready]::after {border-color:var(--green)}
.mimu #fire[data-state=notice] {background:var(--mimu-key)}
@media(prefers-reduced-motion:no-preference) {
  .mimu :is(#landing,#join,#lobbyHost,#result):not([hidden])::before {animation:mimu-sync 240ms steps(1) 1}
  @keyframes mimu-sync {0%{transform:translateX(5px)}35%{transform:translateX(-2px)}65%{transform:translateX(1px)}100%{transform:none}}
}

/* colours, picks, Grand Prix, season board, clip */
#myLook { margin: 4px 0 10px; }
#myLook > span { display: block; font-weight: 600; margin-bottom: 6px; }
#swatches { display: flex; gap: 8px; flex-wrap: wrap; }
#swatches button { width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 50%; border: 2px solid rgba(244, 246, 239, .25); background: var(--sw); cursor: pointer; }
#swatches button[aria-checked="true"] { border-color: var(--green); box-shadow: 0 0 0 2px #0b0f0a, 0 0 0 4px var(--green); }
#pickBox { margin: 6px 0 12px; }
#pickBox strong { display: block; margin-bottom: 6px; }
#pickBox select { flex: 1; min-height: 44px; padding: 9px 11px; font: inherit; color: var(--ink); background: #0b0f0a; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
#pickBox small { display: block; margin-top: 6px; color: var(--dim); }
#gpLine, #gpStatus, #gpResult, #pickResult { margin: 0 0 10px; font-weight: 600; }
#gpLine:empty, #gpResult:empty, #pickResult:empty { display: none; }
.seasonBox { margin-top: 12px; color: var(--ink); }
.seasonBox summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.season { margin: 6px 0 0; padding: 0; list-style: none; max-height: 30vh; overflow-y: auto; font-variant-numeric: tabular-nums; }
.season li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.season li b { color: var(--dim); }
.season li span:last-child { color: var(--dim); white-space: nowrap; }
.season li:first-child span:nth-child(2) { color: var(--green); }
.season .empty { display: block; color: var(--dim); border: 0; }
#clipNote { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 9; margin: 0; padding: 10px 16px; background: rgba(8, 12, 8, .93); border-radius: 6px; font-weight: 600; }
@media (max-width: 720px) { .season { max-height: 22vh; } }
#result :is(#gpResult,#pickResult):not(:empty) { margin: 0 18px 12px; }
#join label.check, #landing label.check { display: flex; font-weight: 400; }
#join .check input, #landing .check input { flex: none; width: 20px; height: 20px; min-height: 20px; padding: 0; }
