*{box-sizing:border-box;-webkit-user-select:none;user-select:none;margin:0;padding:0;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}body{background:#0f172a;overflow:hidden}#start-menu,#result-modal{backdrop-filter:blur(8px);z-index:50;background:#0f172ae0;justify-content:center;align-items:center;padding:12px;display:flex;position:fixed;inset:0;overflow-y:auto}.menu-box{text-align:center;color:#f8fafc;background:#1e293b;border:1px solid #ffffff26;border-radius:16px;width:100%;max-width:440px;padding:20px;box-shadow:0 20px 40px #0000008c}.top-wallet{background:#0f172a;border:1px solid #334155;border-radius:8px;justify-content:space-between;margin-bottom:12px;padding:8px 14px;font-size:14px;display:flex}.top-wallet b{color:#4ade80;font-size:16px}.menu-box h1{color:#38bdf8;margin-bottom:4px;font-size:24px}.subtitle{color:#94a3b8;margin-bottom:14px;font-size:13px}.menu-section{text-align:left;margin-bottom:14px}.menu-section label{color:#cbd5e1;margin-bottom:6px;font-size:13px;font-weight:600;display:block}.garage-box{background:#0f172aa6;border:1px solid #334155;border-radius:10px;padding:10px 12px}.upgrade-row{border-bottom:1px solid #ffffff14;justify-content:space-between;align-items:center;padding:6px 0;display:flex}.upgrade-row:last-child{border-bottom:none}.upgrade-row b{color:#f1f5f9;font-size:13px;display:block}.upgrade-row small{color:#38bdf8;font-size:12px}.upg-btn{color:#0f172a;cursor:pointer;background:#f59e0b;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:700}.upg-btn:disabled{color:#94a3b8;cursor:not-allowed;background:#475569}.color-options{justify-content:center;gap:12px;display:flex}.color-btn{cursor:pointer;border:3px solid #0000;border-radius:50%;width:38px;height:38px}.color-btn.active{border-color:#fff;transform:scale(1.12)}.track-options{flex-direction:column;gap:6px;display:flex}.track-btn{color:#e2e8f0;cursor:pointer;text-align:left;background:#0f172a;border:1px solid #334155;border-radius:8px;padding:10px 12px;font-size:13px}.track-btn.active{color:#fff;background:#0284c7;border-color:#38bdf8;font-weight:700}#start-btn,#back-menu-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#22c55e,#16a34a);border:none;border-radius:10px;width:100%;margin-top:4px;padding:13px;font-size:16px;font-weight:800}.res-stats{text-align:left;background:#0f172a;border-radius:10px;margin:14px 0;padding:14px;font-size:15px;line-height:2}#countdown-overlay{color:#facc15;text-shadow:0 6px 20px #000c;z-index:30;pointer-events:none;font-size:84px;font-weight:900;position:fixed;top:32%;left:50%;transform:translate(-50%,-50%)}#hud{pointer-events:none;z-index:10;justify-content:space-between;display:flex;position:fixed;top:12px;left:12px;right:12px}.panel{color:#f8fafc;backdrop-filter:blur(6px);background:#0f172ac7;border:1px solid #ffffff26;border-radius:10px;padding:10px 14px;font-size:14px;line-height:1.5}.speed-panel{text-align:right;min-width:125px}#speed-val{color:#38bdf8;font-size:32px;font-weight:800}#nitro-bar-wrap{background:#334155;border-radius:3px;width:100%;height:6px;margin-top:4px;overflow:hidden}#nitro-bar{background:#06b6d4;width:100%;height:100%}#drift-badge{color:#fff;text-align:center;background:#f97316;border-radius:4px;margin-top:4px;padding:2px 6px;font-size:11px;font-weight:700;display:none}#minimap{z-index:10;pointer-events:none;background:#0f172ac7;border:1px solid #fff3;border-radius:10px;position:fixed;top:110px;right:12px}#controls-hint{color:#e2e8f0;pointer-events:none;white-space:nowrap;background:#0f172abf;border-radius:20px;padding:8px 16px;font-size:13px;position:fixed;bottom:14px;left:50%;transform:translate(-50%)}#touch-controls{z-index:20;pointer-events:none;justify-content:space-between;align-items:flex-end;display:none;position:fixed;bottom:20px;left:14px;right:14px}.touch-left,.touch-right{pointer-events:auto;gap:10px;display:flex}.touch-right{flex-direction:column;align-items:flex-end}.touch-row{gap:10px;display:flex}.t-btn{color:#fff;touch-action:manipulation;background:#1e293bbf;border:2px solid #ffffff40;border-radius:14px;width:64px;height:64px;font-size:16px;font-weight:700}.t-btn:active{background:#38bdf8a6}.t-gas{background:#22c55ea6;height:74px}.t-nitro{background:#06b6d4a6;height:48px;font-size:13px}.t-drift{background:#f97316a6;height:48px;font-size:13px}@media (width<=820px),(pointer:coarse){#touch-controls{display:flex}#controls-hint{display:none}}
