*{box-sizing:border-box;user-select:none;-webkit-user-select:none}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:#0b1424;font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif;color:#f8fafc}#game-canvas{display:block;width:100vw;height:100vh}.speed-lines{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .14s ease-out;background:radial-gradient(circle at 50% 50%,transparent 48%,rgba(56,189,248,.24) 100%),repeating-conic-gradient(from 0deg at 50% 50%,rgba(224,247,255,.24) 0deg 1.1deg,transparent 1.1deg 7.5deg);mask-image:radial-gradient(circle at 50% 50%,transparent 45%,black 85%);-webkit-mask-image:radial-gradient(circle at 50% 50%,transparent 45%,black 85%);mix-blend-mode:screen}.speed-lines.active{opacity:.9}.menu-overlay{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;display:flex;flex-direction:column;padding:18px 24px;gap:14px;background:linear-gradient(90deg,#080e1ae0,#080e1a73 48%,#080e1a14)}.menu-header,.menu-tabs,.menu-panel{pointer-events:auto}.menu-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px}.brand-title{font-size:30px;font-weight:900;letter-spacing:.12em;background:linear-gradient(90deg,#38bdf8,#f8fafc 52%,#fb923c);-webkit-background-clip:text;color:transparent}.brand-sub{font-size:11px;font-weight:700;letter-spacing:.24em;color:#94a3b8}.rank-pill-bar{display:flex;align-items:center;gap:12px;padding:8px 14px;border-radius:14px;background:#0c1424d9;border:1px solid rgba(148,163,184,.28);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.rank-badge{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:900;background:#38bdf82e;border:2px solid #38bdf8;color:#38bdf8}.rank-meta{min-width:170px}.rank-top{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:4px}.rank-top span{color:#94a3b8}.rank-progress-track{width:100%;height:6px;border-radius:999px;background:#94a3b833;overflow:hidden}.rank-progress-fill{height:100%;background:linear-gradient(90deg,#38bdf8,#fbbf24)}.coins-pill{display:flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#f59e0b24;border:1px solid rgba(251,191,36,.45);font-size:11px}.coin-dot{width:9px;height:9px;border-radius:50%;background:#fbbf24;box-shadow:0 0 8px #fbbf24}.menu-mute-btn{flex:none;padding:7px 10px!important}.menu-tabs{display:flex;gap:8px;width:fit-content}.menu-tab{padding:9px 16px;border-radius:10px;border:1px solid rgba(148,163,184,.28);background:#0f172ac2;color:#94a3b8;font-size:12px;font-weight:800;letter-spacing:.08em;cursor:pointer}.menu-tab.active{background:#38bdf838;border-color:#38bdf8;color:#f8fafc}.menu-body{flex:1;display:flex;align-items:flex-start;justify-content:space-between;min-height:0}.menu-panel{width:min(490px,100%);max-height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding-right:4px}.panel-card{padding:15px 16px;border-radius:14px;background:#0a1220d6;border:1px solid rgba(148,163,184,.25);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.hero-card{border-color:#38bdf880;background:linear-gradient(135deg,#0c182ceb,#0e2642d6)}.panel-card h2,.panel-card h3{margin:4px 0 8px;letter-spacing:.06em}.panel-card p{margin:0 0 12px;font-size:12px;color:#cbd5e1;line-height:1.45}.card-kicker{font-size:10px;font-weight:800;letter-spacing:.14em;color:#38bdf8}.cta-btn{width:100%;padding:11px 16px;border-radius:10px;border:none;font-size:13px;font-weight:900;letter-spacing:.08em;cursor:pointer}.cta-btn.primary{background:linear-gradient(90deg,#0284c7,#38bdf8);color:#04111d}.cta-btn.primary:hover{filter:brightness(1.1)}.cta-btn.secondary{background:#1e293beb;border:1px solid rgba(148,163,184,.35);color:#f8fafc}.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mode-btn{padding:12px 8px;border-radius:10px;border:1px solid rgba(148,163,184,.28);background:#141f34e0;color:#f8fafc;display:flex;flex-direction:column;gap:4px;cursor:pointer;text-align:center}.mode-btn strong{font-size:13px;color:#fbbf24}.mode-btn span{font-size:10px;color:#94a3b8}.mode-btn:hover{border-color:#fbbf24;background:#f59e0b29}.active-car-strip{display:flex;align-items:center;justify-content:space-between;gap:10px}.active-car-strip strong{display:block;font-size:16px}.active-car-strip span{font-size:11px;color:#94a3b8}.strip-btn{flex:none!important;padding:8px 12px!important}.garage-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.team-toggle{display:flex;gap:6px}.team-chip{padding:5px 10px;border-radius:8px;border:1px solid rgba(148,163,184,.3);background:#0f172acc;color:#94a3b8;font-size:10px;font-weight:800;cursor:pointer}.team-chip.blue.active{border-color:#38bdf8;background:#38bdf83d;color:#f8fafc}.team-chip.orange.active{border-color:#fb923c;background:#fb923c3d;color:#f8fafc}.garage-car-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:12px}.car-tile{padding:9px 10px;border-radius:10px;border:1px solid rgba(148,163,184,.24);background:#121c30d6;cursor:pointer;display:flex;flex-direction:column;gap:4px}.car-tile.selected{border-color:#38bdf8;background:#38bdf829}.car-tile.locked{opacity:.82}.car-tile-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:800}.car-tile-sub{font-size:10px;color:#94a3b8;line-height:1.3}.car-tile-badge{font-size:9px;font-weight:800;padding:2px 6px;border-radius:999px;background:#38bdf833;color:#38bdf8}.car-tile-badge.locked{background:#f59e0b33;color:#fbbf24}.car-unlock-btn{margin-top:3px;padding:4px 6px;border-radius:6px;border:1px solid rgba(251,191,36,.6);background:#f59e0b33;color:#fde047;font-size:10px;font-weight:800;cursor:pointer}.paint-row{display:flex;flex-direction:column;gap:8px}.paint-label{display:block;font-size:10px;font-weight:800;letter-spacing:.1em;color:#94a3b8;margin-bottom:5px}.swatch-row{display:flex;flex-wrap:wrap;gap:7px}.swatch-btn{width:24px;height:24px;border-radius:50%;border:2px solid rgba(255,255,255,.25);cursor:pointer}.swatch-btn.active{border-color:#fff;transform:scale(1.14);box-shadow:0 0 10px #ffffffa6}.keybind-grid{display:grid;grid-template-columns:1fr;gap:6px;font-size:11px;color:#cbd5e1}.keybind-grid kbd,.controls-legend kbd{display:inline-block;padding:1px 6px;margin-right:4px;border-radius:5px;background:#1e293bf2;border:1px solid rgba(148,163,184,.45);color:#f8fafc;font-family:inherit;font-size:10px;font-weight:700}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;font-size:12px;color:#e2e8f0;border-bottom:1px solid rgba(148,163,184,.14)}.garage-drag-hint{align-self:flex-end;padding:7px 13px;border-radius:999px;background:#0a1220b8;border:1px solid rgba(148,163,184,.25);font-size:11px;font-weight:700;color:#cbd5e1}.hud-score{position:fixed;top:14px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:14px;padding:7px 18px;border-radius:14px;background:#0a1220c7;border:1px solid rgba(148,163,184,.28);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 8px 24px #00000059}.score-team{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;letter-spacing:.06em}.score-team strong{font-size:24px;font-weight:900;min-width:24px;text-align:center}.score-team.blue .team-tag{color:#38bdf8}.score-team.orange .team-tag{color:#fb923c}.score-mid{display:flex;flex-direction:column;align-items:center;min-width:82px;font-size:17px;font-weight:900;letter-spacing:.08em;color:#f8fafc;padding:0 12px;border-left:1px solid rgba(148,163,184,.25);border-right:1px solid rgba(148,163,184,.25)}.mode-sub{font-size:9px;font-weight:800;letter-spacing:.14em;color:#94a3b8}.hud-telemetry{position:fixed;top:14px;left:14px;width:222px;padding:10px 12px;border-radius:12px;background:#0a1220c2;border:1px solid rgba(148,163,184,.25);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;flex-direction:column;gap:6px}.tele-row{display:flex;justify-content:space-between;font-size:12px;font-weight:600}.tele-label{color:#94a3b8;letter-spacing:.05em}.tele-val{color:#f8fafc;font-weight:700}.accent-cyan{color:#38bdf8}.badge-ballcam{color:#fde047}.tele-actions{display:flex;gap:5px;margin-top:3px}.hud-btn{flex:1;padding:5px 6px;border-radius:7px;border:1px solid rgba(148,163,184,.32);background:#1e293bd9;color:#e2e8f0;font-size:10px;font-weight:700;letter-spacing:.04em;cursor:pointer}.hud-btn:hover{background:#38bdf838;border-color:#38bdf8}.hud-btn.muted{color:#f87171;border-color:#f871718c}.overhead-badge{position:fixed;top:84px;left:50%;transform:translate(-50%);padding:5px 14px;border-radius:999px;background:#eab30833;border:1px solid rgba(250,204,21,.7);color:#fde047;font-size:12px;font-weight:800;letter-spacing:.08em}.flip-reset-badge{position:fixed;top:118px;left:50%;transform:translate(-50%);padding:6px 16px;border-radius:999px;background:#06b6d440;border:1px solid #00ffff;color:#67e8f9;font-size:13px;font-weight:900;letter-spacing:.1em;box-shadow:0 0 22px #00ffff73;pointer-events:none}.countdown-banner{position:fixed;top:36%;left:50%;transform:translate(-50%,-50%);font-size:68px;font-weight:900;letter-spacing:.12em;color:#fde047;text-shadow:0 6px 28px rgba(0,0,0,.75);pointer-events:none}.goal-banner{position:fixed;top:28%;left:50%;transform:translate(-50%,-50%);text-align:center;padding:18px 42px;border-radius:18px;background:#090f1cd6;border:2px solid #38bdf8;box-shadow:0 12px 42px #0000008c;pointer-events:none}.goal-banner.orange{border-color:#fb923c}.goal-title{font-size:48px;font-weight:900;letter-spacing:.08em}.goal-sub{font-size:15px;font-weight:700;letter-spacing:.16em;color:#bae6fd}.match-end-modal{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#060a14b8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.match-end-card{width:min(420px,92vw);padding:24px;border-radius:18px;background:#0c1424f2;border:1px solid rgba(56,189,248,.45);text-align:center;display:flex;flex-direction:column;gap:10px}.match-end-card h2{margin:0;font-size:36px;font-weight:900;letter-spacing:.1em}.end-score-line{font-size:18px;font-weight:800;color:#fde047}.end-stats-line{font-size:13px;color:#cbd5e1}.end-rewards-box{padding:10px 12px;border-radius:10px;background:#0f172ad9;border:1px solid rgba(148,163,184,.24);font-size:12px;line-height:1.55}.end-actions{display:flex;gap:10px;margin-top:6px}.controls-legend{position:fixed;bottom:14px;left:14px;padding:8px 12px;border-radius:11px;background:#0a1220bd;border:1px solid rgba(148,163,184,.24);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;flex-wrap:wrap;gap:6px 12px;max-width:520px;font-size:11px;color:#cbd5e1}.boost-panel{position:fixed;bottom:14px;right:16px;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}.boost-dial{position:relative;width:116px;height:116px}.boost-svg{width:100%;height:100%;transform:rotate(-90deg)}.boost-bg{fill:#0a1220c7;stroke:#94a3b840;stroke-width:10}.boost-fill{fill:none;stroke:#f59e0b;stroke-width:10;stroke-linecap:round;stroke-dasharray:289.027;stroke-dashoffset:0;transition:stroke .15s}.boost-fill.recharging{stroke:#38bdf8}.boost-center{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.boost-center strong{font-size:28px;font-weight:900;line-height:1}.boost-center span{font-size:10px;font-weight:700;letter-spacing:.14em;color:#94a3b8;margin-top:2px}.boost-badges{display:flex;gap:6px}.mini-pill{padding:3px 9px;border-radius:999px;background:#0f172ad9;border:1px solid rgba(148,163,184,.35);font-size:10px;font-weight:800;letter-spacing:.06em}.hidden{display:none!important}.header-right{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.account-pill{display:flex;align-items:center;gap:8px;padding:7px 12px;border-radius:12px;background:#0c1424d9;border:1px solid rgba(148,163,184,.28);font-size:11px;font-weight:800;letter-spacing:.06em}.acct-btn{flex:none!important;padding:5px 10px!important}.online-card{border-color:#fbbf2473;background:linear-gradient(135deg,#0e162aeb,#1c1830db)}.quickplay-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.small-cta{padding:9px 10px;font-size:12px}.party-divider{font-size:10px;font-weight:800;letter-spacing:.14em;color:#94a3b8;margin:4px 0 6px}.party-create-row,.party-join-row{display:flex;align-items:center;gap:8px;margin-top:6px}.party-select,.code-input,.auth-input{padding:8px 10px;border-radius:8px;border:1px solid rgba(148,163,184,.35);background:#0f172aeb;color:#f8fafc;font-size:12px;font-weight:700}.code-input{flex:1;text-transform:uppercase;letter-spacing:.18em}.party-ai-toggle{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:#cbd5e1}.party-create-btn,.party-join-btn{padding:8px 12px!important;flex:none!important}.online-status-msg{margin-top:8px;font-size:11px;font-weight:700;color:#fde047}.party-lobby-overlay{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;display:flex;align-items:center;justify-content:flex-start;padding:24px;background:linear-gradient(90deg,#080e1ae0,#080e1a61 54%,#080e1a14)}.party-lobby-card{pointer-events:auto;width:min(520px,95vw);padding:20px;border-radius:16px;background:#0a1222eb;border:1px solid rgba(56,189,248,.42);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);display:flex;flex-direction:column;gap:14px}.lobby-top-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.lobby-top-row h2{margin:4px 0 0;font-size:22px}.lobby-code-val{color:#fde047;letter-spacing:.16em;font-weight:900}.lobby-top-actions{display:flex;gap:6px}.copy-code-btn{padding:7px 11px!important;flex:none!important}.lobby-host-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:10px;background:#0f172acc}.lobby-mode-pills{display:flex;gap:5px}.lobby-mode-pill{padding:5px 10px;border-radius:7px;border:1px solid rgba(148,163,184,.3);background:#1e293bcc;color:#94a3b8;font-size:11px;font-weight:800;cursor:pointer}.lobby-mode-pill.active{border-color:#38bdf8;background:#38bdf83d;color:#f8fafc}.lobby-role-note{font-size:10px;font-weight:700;color:#94a3b8}.lobby-teams-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lobby-team-col{padding:10px;border-radius:12px;background:#0f172ac7;border:1px solid rgba(148,163,184,.2)}.lobby-team-col.blue{border-color:#38bdf866}.lobby-team-col.orange{border-color:#fb923c66}.lobby-team-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px}.lobby-player-list{display:flex;flex-direction:column;gap:6px}.lobby-player-row{display:flex;justify-content:space-between;align-items:center;padding:6px 8px;border-radius:8px;background:#1e293bc7;font-size:11px}.lobby-player-rank{font-weight:900;color:#fde047;margin-right:5px}.lobby-player-car{font-size:10px;color:#94a3b8}.auth-card{gap:11px}.auth-sub{margin:0;font-size:12px;color:#94a3b8}.auth-input{width:100%;user-select:text;-webkit-user-select:text}.auth-error{font-size:12px;font-weight:700;color:#f87171}.auth-close-btn{padding:8px!important}
