:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f7f6ef;background:#08172b;--gold:#f5d35e;--blue:#1e4770}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #fff;outline-offset:3px}[hidden]{display:none!important}#game{position:fixed;inset:0;overflow:hidden;background:#b9c9c9}#city,#race{position:absolute;inset:0;width:100%;height:100%}#city{pointer-events:none}#race{touch-action:none}.brand{position:absolute;z-index:5;top:0;left:0;right:0;display:flex;align-items:center;gap:9px;padding:9px max(12px,env(safe-area-inset-left));background:linear-gradient(180deg,#08172bf5,#08172bdc);box-shadow:0 2px 14px #08172b66}.brand img{object-fit:contain}.brand div{min-width:0;flex:1}.brand strong,.brand span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand strong{font-size:13px}.brand span{font-size:10px;font-weight:900;letter-spacing:.12em;color:var(--gold)}.brand span i{font-style:normal;font-weight:500;letter-spacing:0;color:#d2dbe4}.brand button{width:43px;height:43px;border-radius:11px;background:#17385f;color:#fff;border:1px solid #ffffff77;font-size:24px}.brand button:disabled{opacity:.5}.hud{position:absolute;z-index:3;top:66px;left:12px;right:12px;pointer-events:none}.stats{display:flex;gap:7px;width:max-content;max-width:calc(100% - 160px)}.stats>div,.target{background:#081b32e9;border:1px solid #dfcb76a3;border-radius:12px;padding:8px 10px;box-shadow:0 4px 14px #00132955}.stats small,.target small{display:block;color:var(--gold);font-size:9px;font-weight:850;letter-spacing:.12em}.stats b{display:block;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}.stats em{font-style:normal;font-size:9px;font-weight:500}.target{margin-top:7px;max-width:min(310px,calc(100% - 160px));min-width:180px}.target strong{display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.target span{font-size:11px;color:#d3e2ed}#mini{position:absolute;right:0;top:0;width:142px;height:142px;border:1px solid #dfcb76a3;border-radius:13px;background:#0a223bea;box-shadow:0 4px 14px #00132955}.banner{position:absolute;z-index:4;top:32%;left:50%;transform:translate(-50%,-50%);max-width:calc(100% - 30px);padding:10px 15px;border:1px solid #f6df8f;border-radius:12px;background:#0a223bed;font-weight:800;text-align:center;box-shadow:0 8px 22px #07142488;opacity:0;transition:opacity .2s;pointer-events:none}.banner.show{opacity:1}.load{position:absolute;z-index:4;left:50%;bottom:18px;transform:translateX(-50%);background:#0b203adf;color:#e7ebee;border-radius:8px;padding:6px 10px;font-size:11px;white-space:nowrap}.touch-controls{position:absolute;z-index:4;left:0;right:0;bottom:max(27px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:end;padding:0 14px;gap:14px;pointer-events:none}.touch-controls>div{display:flex;gap:9px;pointer-events:auto}.touch-controls button{width:68px;height:68px;border-radius:19px;border:2px solid #f2dc85bd;background:#0b2446dc;color:#fff;font-size:29px;font-weight:900;box-shadow:0 6px 14px #09132270;touch-action:none;user-select:none;-webkit-user-select:none}.touch-controls button.pressed{background:#f5d35e;color:#14253b;transform:scale(.96)}.pedals button{font-size:11px}.pedals button:last-child{width:82px;background:#d8aa29ed;color:#10213b}.attribution{position:absolute;z-index:2;bottom:0;left:0;right:0;text-align:center;background:#08172bcc;color:#cad7dc;padding:3px 5px;font-size:9px;pointer-events:none}.veil{position:absolute;z-index:7;inset:0;display:grid;place-items:center;padding:75px 16px 28px;background:#061428cf;backdrop-filter:blur(5px);overflow:auto}.menu-card{width:min(640px,100%);max-height:100%;overflow:auto;padding:24px;border:1px solid #f5d35eaa;border-radius:19px;background:#0c2038f5;box-shadow:0 20px 60px #0009}.eyebrow{color:var(--gold);font-size:11px;font-weight:900;letter-spacing:.18em;margin:0 0 5px}.menu-card h1,.menu-card h2{font-size:clamp(25px,4vw,38px);line-height:1.1;margin:0 0 9px}.intro{color:#e7eef3;margin:0 0 13px;line-height:1.45;font-size:14px}.controls-hint{color:#cddae3;font-size:12px;line-height:1.55;margin:0 0 13px}.categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.categories button{min-height:46px;text-align:left;padding:7px 8px;border-radius:9px;border:1px solid #7695ad75;background:#17395c;color:#fff;font-size:11px;line-height:1.2}.categories button span{display:block;margin-top:3px;color:#f6dc78;font-weight:800}.categories button[aria-pressed="true"]{background:#f5d35e;color:#13263e;border-color:#fff}.categories button[aria-pressed="true"] span{color:#293c4f}.eligibility{min-height:30px;color:#e3e7e9;font-size:11px;line-height:1.35}.primary,.secondary{display:block;width:100%;min-height:48px;border-radius:11px;font-size:13px;font-weight:900;letter-spacing:.07em}.primary{border:0;background:var(--gold);color:#14253b}.primary:disabled{opacity:.45;cursor:default}.secondary{margin-top:10px;background:#17395c;color:#fff;border:1px solid #ffffff66}.source-note{font-size:10px;color:#aabfce;line-height:1.4;margin:14px 0 0}.result-card{text-align:center;max-width:430px}.final-time{display:block;color:var(--gold);font-size:46px;font-variant-numeric:tabular-nums;margin:15px 0}.result-card p:not(.eyebrow){color:#cfdae3;font-size:13px}
@media(max-width:650px){.brand{padding:6px 9px}.brand img{width:35px;height:35px}.brand strong{font-size:11px}.brand span{font-size:9px}.hud{top:55px;left:7px;right:7px}.stats{max-width:calc(100% - 121px);gap:4px}.stats>div{padding:6px 7px}.stats small,.target small{font-size:8px}.stats b{font-size:14px}.stats em{display:none}.target{max-width:calc(100% - 121px);min-width:0;padding:6px 8px}.target strong{font-size:11px}.target span{font-size:9px}#mini{width:115px;height:115px}.touch-controls{padding:0 8px;bottom:max(25px,env(safe-area-inset-bottom))}.touch-controls>div{gap:5px}.touch-controls button{width:62px;height:62px}.pedals button:last-child{width:75px}.veil{padding:55px 10px 20px}.menu-card{padding:17px}.categories{grid-template-columns:repeat(2,minmax(0,1fr))}.categories button{min-height:40px;font-size:10px}.intro{font-size:12px}.controls-hint{font-size:10px}.source-note{font-size:9px}}
@media(max-height:600px){.veil{padding:50px 12px 15px}.menu-card{padding:14px}.categories{grid-template-columns:repeat(4,minmax(0,1fr))}.intro{font-size:11px}.controls-hint{font-size:10px}.touch-controls button{width:56px;height:56px}.pedals button:last-child{width:70px}.hud{top:55px}#mini{width:100px;height:100px}}
@media(prefers-reduced-motion:reduce){.banner{transition:none}}
