@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Orbitron:wght@500;700;900&display=swap";*{box-sizing:border-box;margin:0;padding:0}body{font-family:Inter,sans-serif;background-color:#0b0c10;color:#c5c6c7;overflow:hidden;height:100vh;width:100vw}#game-container{width:100vw;height:100vh;position:absolute;top:0;left:0;z-index:1}.safe-zone-badge{display:inline-flex;align-items:center;gap:8px;font-family:Orbitron,sans-serif;font-size:.72rem;font-weight:800;letter-spacing:.12em;color:#86efac;background:#064e3b8c;border:1px solid rgba(52,211,153,.55);border-radius:999px;padding:5px 12px 5px 10px;text-shadow:0 0 8px rgba(52,211,153,.45);box-shadow:0 0 16px #10b98133}.safe-zone-badge[hidden]{display:none!important}.safe-zone-dot{width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 8px #34d399;animation:safe-zone-pulse 1.4s ease-in-out infinite}@keyframes safe-zone-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.85)}}.garage-prompt-pill{position:absolute;left:50%;bottom:120px;transform:translate(-50%);z-index:12;display:inline-flex;align-items:center;gap:12px;pointer-events:none;font-family:Orbitron,sans-serif;font-size:.78rem;font-weight:800;letter-spacing:.06em;color:#ecfdf5;background:#0f172ab8;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(103,232,249,.35);border-radius:999px;padding:10px 16px 10px 18px;box-shadow:0 8px 28px #00000073,0 0 18px #22d3ee1f}.garage-prompt-pill[hidden]{display:none!important}.garage-prompt-pill.is-mobile{bottom:168px}.garage-prompt-pill.is-mobile .garage-prompt-keys{display:none}.garage-prompt-keys{display:inline-flex;align-items:center;gap:6px}.garage-prompt-or{opacity:.45;font-size:.7rem}.key-badge{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 7px;border-radius:7px;font-family:Orbitron,sans-serif;font-size:.78rem;font-weight:900;border:1px solid transparent;box-shadow:0 2px #00000059}.key-badge-cyan{color:#042f2e;background:linear-gradient(180deg,#67e8f9,#22d3ee);border-color:#a5f3fcb3}.key-badge-green{color:#052e16;background:linear-gradient(180deg,#86efac,#34d399);border-color:#bbf7d0b3}.hud-panel{position:absolute;z-index:10;background:#0f172a73;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:18px;box-shadow:0 8px 32px #0000005e;display:flex;flex-direction:column;gap:12px}#telemetry-hud{bottom:24px;left:24px;width:350px}#telemetry-hud.is-damaged{border-color:#fbbf2473;box-shadow:0 0 18px #fbbf241f}.telemetry-damage-panel{display:block;padding:4px 0 2px}.telemetry-damage-panel[hidden]{display:none!important}.telemetry-damage-title{font-family:Orbitron,sans-serif;font-size:.78rem;font-weight:800;color:#fbbf24;letter-spacing:.06em;margin-bottom:6px;text-shadow:0 0 10px rgba(251,191,36,.35)}.telemetry-damage-warn{margin:0 0 8px;font-size:.68rem;line-height:1.35;color:#fecaca;font-family:system-ui,sans-serif}.telemetry-damage-warn strong{color:#f87171}.telemetry-damage-list{margin:0 0 8px;padding-left:16px;font-size:.7rem;font-family:Orbitron,sans-serif}.telemetry-damage-list li{margin-bottom:3px}.telemetry-damage-list li.damage-light{color:#fbbf24}.telemetry-damage-list li.damage-critical{color:#f87171}.telemetry-damage-list li.damage-lost{color:#9ca3af}.telemetry-damage-list .damage-lost-label{font-size:.58rem;letter-spacing:.08em;color:#6b7280;margin-left:4px}#telemetry-hud.is-damaged-critical{border-color:#f871718c;box-shadow:0 0 14px #f8717138}.telemetry-damage-hint{margin:0;font-size:.65rem;color:#86efac;font-family:system-ui,sans-serif}h2{font-family:Orbitron,sans-serif;color:#66fcf1;font-size:1.1rem;letter-spacing:1.5px;border-bottom:2px solid rgba(102,252,241,.2);padding-bottom:8px;margin-bottom:8px;text-transform:uppercase}.hud-row{display:flex;justify-content:space-between;align-items:center;font-size:.75rem}.hud-label{color:#8b9bb4;font-weight:500}.hud-value{font-family:Orbitron,sans-serif;color:#fff;font-weight:700;font-size:.75rem}.hud-value.drift{color:#f05;text-shadow:0 0 8px rgba(255,0,85,.6)}.hud-value.grip{color:#0f8;text-shadow:0 0 8px rgba(0,255,136,.6)}.tuning-group{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}.tuning-header{display:flex;justify-content:space-between;font-size:.8rem;color:#a8b2c1}.tuning-slider{-webkit-appearance:none;width:100%;height:6px;border-radius:3px;background:#ffffff1a;outline:none;transition:background .15s ease}.tuning-slider:hover{background:#fff3}.tuning-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#66fcf1;cursor:pointer;box-shadow:0 0 10px #66fcf199;transition:transform .1s ease}.tuning-slider::-webkit-slider-thumb:hover{transform:scale(1.2)}.tuning-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.8rem;color:#a8b2c1;cursor:pointer;-webkit-user-select:none;user-select:none}.tuning-toggle input[type=checkbox]{width:16px;height:16px;accent-color:#66fcf1;cursor:pointer;flex-shrink:0}.tuning-hint{font-size:.65rem;color:#64748b;line-height:1.3}#audio-overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;background:#0b0c10d9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:100;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px}.lobby-title{font-family:Orbitron,sans-serif;font-size:2.5rem;color:#66fcf1;text-align:center;text-shadow:0 0 15px rgba(102,252,241,.5);margin:0}.lobby-panel{display:flex;flex-direction:column;align-items:center;gap:inherit;width:100%}#lobby-options-panel[hidden],#lobby-main-panel[hidden]{display:none!important}.lobby-blurb{color:#8b9bb4;max-width:500px;text-align:center;margin:0 0 8px;font-weight:300;line-height:1.45}.lobby-options-link,.lobby-options-back{font-family:Orbitron,sans-serif;background:transparent;border:1px solid rgba(102,252,241,.45);color:#66fcf1;padding:16px 32px;border-radius:30px;font-size:1.2rem;font-weight:900;letter-spacing:.06em;cursor:pointer;box-sizing:border-box;width:min(320px,90vw);text-align:center;flex-shrink:0;transition:all .2s ease}.lobby-options-link:hover,.lobby-options-back:hover{background:#66fcf11f;transform:scale(1.05)}.lobby-options-kicker{font-family:Orbitron,sans-serif;font-size:.72rem;letter-spacing:.18em;color:#66fcf1;margin:0}.lobby-options-hint{color:#8b9bb4;font-size:.72rem;text-align:center;max-width:280px;margin:0}.start-btn{font-family:Orbitron,sans-serif;background:linear-gradient(135deg,#66fcf1,#45a29e);color:#0b0c10;border:none;padding:16px 32px;border-radius:30px;font-size:1.2rem;font-weight:900;cursor:pointer;box-shadow:0 0 20px #66fcf166;transition:all .2s ease;margin-top:10px;box-sizing:border-box;width:min(320px,90vw);text-align:center;flex-shrink:0}.start-btn:hover{transform:scale(1.05);box-shadow:0 0 30px #66fcf1cc}#connecting-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:110;display:flex;align-items:center;justify-content:center;background:#0b0c10e0;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}#connecting-overlay[hidden]{display:none!important}.connecting-card{display:flex;flex-direction:column;align-items:center;gap:14px;padding:28px 36px;border-radius:14px;border:1px solid rgba(102,252,241,.28);background:#0f172ad9;box-shadow:0 12px 40px #00000073;max-width:min(420px,90vw);text-align:center}.connecting-spinner{width:42px;height:42px;border-radius:50%;border:3px solid rgba(102,252,241,.2);border-top-color:#66fcf1;animation:connecting-spin .85s linear infinite}@keyframes connecting-spin{to{transform:rotate(360deg)}}.connecting-title{font-family:Orbitron,sans-serif;font-size:1.35rem;font-weight:800;letter-spacing:.12em;color:#66fcf1;text-shadow:0 0 12px rgba(102,252,241,.35)}.connecting-sub{color:#8b9bb4;font-size:.9rem;line-height:1.4;margin:0}.reconnect-banner{position:absolute;top:16px;left:50%;transform:translate(-50%);z-index:120;padding:10px 18px;border-radius:999px;border:1px solid rgba(251,191,36,.55);background:#451a03eb;color:#fde68a;font-family:Orbitron,sans-serif;font-size:.78rem;font-weight:700;letter-spacing:.04em;box-shadow:0 8px 24px #00000073;pointer-events:none;white-space:nowrap;max-width:calc(100vw - 24px);overflow:hidden;text-overflow:ellipsis}.reconnect-banner[hidden]{display:none!important}#controls-card{display:none}.key-cap{background:#ffffff26;border:1px solid rgba(255,255,255,.25);border-radius:4px;padding:2px 6px;font-family:Orbitron,sans-serif;font-weight:700}.lobby-input-group{display:flex;flex-direction:column;gap:6px;width:100%;max-width:320px;margin-bottom:12px}#lobby-garage[hidden]{display:none!important}.lobby-input-group label{font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:#66fcf1;font-family:Orbitron,sans-serif}.lobby-input{background:#ffffff0d;border:1px solid rgba(102,252,241,.3);border-radius:8px;padding:12px 16px;color:#fff;font-size:1rem;outline:none;font-family:Inter,sans-serif;transition:border-color .2s ease,box-shadow .2s ease}.lobby-input:focus{border-color:#66fcf1;box-shadow:0 0 10px #66fcf133}#leaderboard-hud{position:absolute;top:24px;left:24px;width:350px;max-height:420px;overflow-y:auto;gap:4px}#leaderboard-hud h2{padding-bottom:4px;margin-bottom:0}.leaderboard-list{display:flex;flex-direction:column;gap:6px;margin-top:2px}.server-log{margin-top:10px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:6px;max-height:148px;overflow-y:auto;overflow-x:hidden;font-family:Inter,system-ui,sans-serif;font-size:.72rem;line-height:1.45;letter-spacing:.01em}.server-log-line{color:#9fb0c7;white-space:normal;overflow-wrap:anywhere;word-break:break-word;opacity:.98;padding:2px 0;min-height:1.45em}.server-log-line.kind-join{color:#86efac}.server-log-line.kind-leave{color:#94a3b8}.server-log-line.kind-takedown{color:#fde68a;font-weight:600}.server-log-line.kind-death{color:#fca5a5}.server-log-line.kind-loss{color:#fb923c;font-weight:600}.leaderboard-item{display:grid;grid-template-columns:28px 1fr 40px 75px;align-items:center;gap:6px;padding:4px 8px;background:#ffffff08;border-radius:6px;border-left:3px solid #45a29e}.leaderboard-header{display:grid;grid-template-columns:28px 1fr 40px 75px;align-items:center;gap:6px;padding:0 8px;font-family:Orbitron,sans-serif;font-size:.62rem;font-weight:700;line-height:1;text-transform:uppercase;color:#8b9bb4;margin:0}.leaderboard-header .header-tk,.leaderboard-header .header-pts{text-align:right;padding:0;line-height:1}.leaderboard-item.self{border-left-color:#66fcf1;background:#66fcf11a}.leaderboard-rank{font-family:Orbitron,sans-serif;font-weight:700;color:#66fcf1;font-size:.75rem}.leaderboard-name{display:flex;align-items:center;gap:4px;min-width:0;font-weight:500;color:#fff;font-size:.75rem}.leaderboard-name-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.leaderboard-ai-chip{flex-shrink:0;font-family:Orbitron,sans-serif;font-size:.48rem;font-weight:700;letter-spacing:.06em;padding:1px 4px;border-radius:3px;background:linear-gradient(135deg,#312e81,#4338ca);color:#c7d2fe;border:1px solid rgba(129,140,248,.45);line-height:1.35;box-shadow:0 0 6px #6366f140}.leaderboard-takedowns{font-family:Orbitron,sans-serif;font-weight:700;color:#fa0;text-align:right;white-space:nowrap;font-size:.75rem}.leaderboard-score{font-family:Orbitron,sans-serif;font-weight:700;color:#f05;text-align:right;white-space:nowrap;font-size:.75rem}.anti-cheat-toast{position:absolute;top:20px;left:50%;transform:translate(-50%);background:#ff0055d9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;padding:12px 24px;border-radius:8px;font-weight:700;z-index:1000;font-family:Orbitron,sans-serif;box-shadow:0 0 20px #f056;transition:opacity .5s ease;pointer-events:none}.lobby-mobile-opts{gap:10px}.lobby-check{display:flex;align-items:center;gap:10px;font-size:.85rem;color:#c5c6c7;cursor:pointer;-webkit-user-select:none;user-select:none}.lobby-check input{width:18px;height:18px;accent-color:#66fcf1}#touch-controls{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;pointer-events:none;touch-action:none;user-select:none;-webkit-user-select:none;isolation:isolate;padding:env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0)}#touch-controls[hidden]{display:none!important}.touch-power-belt{position:absolute;left:50%;bottom:max(18px,env(safe-area-inset-bottom,0px));transform:translate(-50%);display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;pointer-events:auto;z-index:2;padding:8px 10px;border-radius:16px;background:#0f172a8c;border:1px solid rgba(102,252,241,.22);box-shadow:0 6px 20px #00000073;max-width:min(320px,calc(100vw - 24px))}.touch-power-hint{flex:0 0 100%;order:-1;text-align:center;font-family:Orbitron,sans-serif;font-size:.62rem;font-weight:800;letter-spacing:.04em;color:#7dd3fc;text-shadow:0 1px 2px #0f172a;pointer-events:none;margin-bottom:2px}.touch-power-hint[hidden]{display:none!important}.touch-power-slot{position:relative;width:56px;height:56px;border:2px solid rgba(100,116,139,.65);border-radius:12px;background:#0f172ae0;padding:0;touch-action:none;-webkit-tap-highlight-color:transparent;opacity:1;overflow:hidden}.touch-power-slot.is-empty{opacity:.45}.touch-power-slot.is-selected{border-color:#fbbf24f2;box-shadow:0 0 0 1px #fde68a8c,0 0 12px #fbbf2459}.touch-power-slot.is-hook.is-selected{border-color:#38bdf8f2;box-shadow:0 0 0 1px #7dd3fc8c,0 0 12px #38bdf866}.touch-power-slot.is-cooling{opacity:.65}.touch-power-slot.is-pressed{transform:scale(.94);background:#1e293bf2}.touch-power-icon{display:block;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:72%;pointer-events:none}.touch-power-icon[hidden]{display:none!important}.touch-power-label{position:absolute;left:0;right:0;bottom:2px;text-align:center;font-family:Orbitron,sans-serif;font-size:.48rem;font-weight:900;letter-spacing:.02em;color:#e2e8f0;text-shadow:0 0 3px #0f172a,0 1px 2px #0f172a;pointer-events:none;line-height:1}.touch-power-slot.is-hook .touch-power-label{color:#7dd3fc}.touch-power-label[hidden]{display:none!important}.touch-power-badge{position:absolute;top:2px;right:4px;font-family:Orbitron,sans-serif;font-size:.7rem;font-weight:900;color:#f8fafc;text-shadow:0 0 4px #0f172a,0 1px 2px #0f172a;pointer-events:none}.touch-power-badge[hidden]{display:none!important}.touch-cluster{position:absolute;display:flex;pointer-events:auto;gap:10px}.touch-cluster-left{left:max(12px,env(safe-area-inset-left,0px));bottom:max(18px,env(safe-area-inset-bottom,0px));flex-direction:column;align-items:flex-start;gap:10px}.touch-actions-col{display:flex;flex-direction:row;align-items:center;gap:8px;pointer-events:auto}.touch-actions-col>.touch-shop[hidden]{display:none!important}.touch-joystick-zone{position:relative;width:200px;height:200px;touch-action:none;-webkit-tap-highlight-color:transparent;pointer-events:auto}.touch-joystick{position:absolute;left:50%;top:50%;width:118px;height:118px;margin-left:-59px;margin-top:-59px;border-radius:50%;touch-action:none;pointer-events:none;opacity:.88;transition:opacity .12s ease}.touch-joystick.is-active{opacity:1}.touch-joystick-base{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;border:2px solid rgba(102,252,241,.4);background:radial-gradient(circle at 50% 50%,rgba(102,252,241,.12) 0%,transparent 55%),#0f172ab8;box-shadow:inset 0 0 24px #00000073,0 4px 16px #00000073}.touch-joystick-knob{position:absolute;left:50%;top:50%;width:46px;height:46px;border-radius:50%;transform:translate(-50%,-50%);border:2px solid rgba(102,252,241,.85);background:#66fcf173;box-shadow:0 2px 10px #00000080;transition:background .08s ease;pointer-events:none;will-change:transform}.touch-joystick.is-active .touch-joystick-knob{background:#66fcf1bf}.touch-cluster-right{right:max(12px,env(safe-area-inset-right,0px));bottom:max(18px,env(safe-area-inset-bottom,0px));flex-direction:row;align-items:flex-end;gap:10px}.touch-pedals{display:flex;flex-direction:column;gap:10px}.touch-btn{touch-action:none;-webkit-tap-highlight-color:transparent;border:1px solid rgba(102,252,241,.55);background:#0f172ae0;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#e8f6f5;font-family:Orbitron,sans-serif;font-weight:700;font-size:.85rem;border-radius:14px;min-width:64px;min-height:64px;opacity:.92;box-shadow:0 4px 16px #0000008c;transition:opacity .08s ease,background .08s ease,transform .08s ease}.touch-btn.is-pressed{opacity:1;background:#66fcf18c;transform:scale(.96)}.touch-pedal{width:88px;height:72px}.touch-throttle{border-color:#00ff8873}.touch-brake{border-color:#ff505080}.touch-action{width:48px;height:48px;min-width:48px;min-height:48px;font-size:.68rem;border-radius:50%}.touch-handbrake{width:64px;height:64px;min-width:64px;min-height:64px;font-size:.8rem;border-radius:16px;border-color:#fbbf248c}.touch-gear{border-color:#94a3b88c}.touch-shop{width:auto;min-width:72px;height:40px;min-height:40px;padding:0 12px;border-radius:12px;font-size:.68rem;letter-spacing:.06em;border-color:#86efacb3;background:#166534bf;color:#bbf7d0}body.mobile-play{overscroll-behavior:none;height:100dvh;width:100vw;position:fixed;top:0;right:0;bottom:0;left:0}#rotate-landscape-gate{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px;background:#071526f5;color:#e2e8f0;text-align:center;touch-action:none}#rotate-landscape-gate[hidden]{display:none!important}.rotate-landscape-card{max-width:320px}.rotate-landscape-icon{font-size:3rem;line-height:1;margin-bottom:12px;animation:rotate-phone-hint 1.6s ease-in-out infinite;display:inline-block}@keyframes rotate-phone-hint{0%,to{transform:rotate(0)}40%{transform:rotate(90deg)}60%{transform:rotate(90deg)}}.rotate-landscape-title{font-family:Orbitron,sans-serif;font-size:1.05rem;letter-spacing:.08em;color:#66fcf1;margin-bottom:8px}.rotate-landscape-sub{margin:0;font-size:.9rem;line-height:1.4;color:#8b9bb4}body.mobile-play.wants-fullscreen:after{content:"Tap to return to fullscreen";position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom,0px));transform:translate(-50%);z-index:99990;padding:8px 14px;border-radius:999px;font-family:Orbitron,sans-serif;font-size:.65rem;letter-spacing:.06em;color:#0f172a;background:#66fcf1eb;pointer-events:none}body.mobile-play #game-container{height:100dvh}body.mobile-play #gauge-hud{display:none!important}body.mobile-play #telemetry-hud{top:max(10px,env(safe-area-inset-top,0px));left:max(10px,env(safe-area-inset-left,0px));bottom:auto;width:min(148px,38vw);padding:6px 8px;gap:2px}body.mobile-play #telemetry-hud h2{font-size:.52rem;letter-spacing:.4px;padding-bottom:2px;margin-bottom:0;border-bottom-width:1px}body.mobile-play #telemetry-hud #telemetry-arrow{font-size:.55rem!important}body.mobile-play #telemetry-hud .hud-row,body.mobile-play #telemetry-hud .hud-value{font-size:.55rem}body.mobile-play #telemetry-hud-body[hidden],body.mobile-play #telemetry-hud-body[style*="display: none"]{display:none!important}body.mobile-play #leaderboard-hud{top:max(10px,env(safe-area-inset-top,0px));right:max(10px,env(safe-area-inset-right,0px));left:auto;width:min(148px,38vw);max-height:34vh;padding:6px 8px;gap:4px}body.mobile-play #leaderboard-hud h2{font-size:.52rem;letter-spacing:.4px;padding-bottom:2px;margin-bottom:0;border-bottom-width:1px}body.mobile-play #leaderboard-hud .leaderboard-header{display:none}body.mobile-play #leaderboard-hud .leaderboard-list{gap:4px}body.mobile-play #leaderboard-hud .leaderboard-item.stacked{display:flex;flex-direction:column;align-items:stretch;gap:1px;padding:3px 5px;grid-template-columns:none}body.mobile-play #leaderboard-hud .leaderboard-item.stacked .leaderboard-name{font-size:.58rem;font-weight:600;line-height:1.15;min-width:0}body.mobile-play #leaderboard-hud .leaderboard-item.stacked .leaderboard-name-text{font-size:inherit;font-weight:inherit}body.mobile-play #leaderboard-hud .leaderboard-item.stacked .leaderboard-ai-chip{font-size:.42rem;padding:0 3px}body.mobile-play #leaderboard-hud .leaderboard-stats{display:flex;justify-content:space-between;align-items:center;gap:4px}body.mobile-play #leaderboard-hud .leaderboard-item.stacked .leaderboard-rank,body.mobile-play #leaderboard-hud .leaderboard-item.stacked .leaderboard-takedowns,body.mobile-play #leaderboard-hud .leaderboard-item.stacked .leaderboard-score{font-size:.5rem;line-height:1.1}body.mobile-play #leaderboard-hud .leaderboard-sep{text-align:center;font-size:.55rem;color:#8b9bb4;letter-spacing:2px;line-height:1;padding:0}body.mobile-play #audio-overlay{height:100dvh;padding:max(8px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));gap:8px;overflow:hidden;justify-content:center}body.mobile-play .lobby-title{font-size:1.35rem}body.mobile-play .lobby-blurb{font-size:.78rem;max-width:min(460px,92vw);margin:0}body.mobile-play .lobby-input-group{max-width:min(300px,86vw);gap:4px;margin-bottom:0}body.mobile-play .lobby-input-group label{font-size:.7rem}body.mobile-play .lobby-input{padding:8px 10px;font-size:.9rem}body.mobile-play .lobby-mobile-opts{gap:4px;max-width:min(300px,86vw)}body.mobile-play .lobby-check{font-size:.75rem;gap:8px}body.mobile-play .lobby-panel{gap:6px}body.mobile-play .lobby-options-link,body.mobile-play .lobby-options-back,body.mobile-play .start-btn{width:min(300px,86vw);padding:12px 18px;font-size:.95rem}body.mobile-play .start-btn{margin-top:4px}@media (orientation: landscape) and (max-height: 500px){body.mobile-play.touch-controls-on .touch-cluster-left,body.mobile-play.touch-controls-on .touch-cluster-right{bottom:max(10px,env(safe-area-inset-bottom,0px));gap:8px}body.mobile-play.touch-controls-on .touch-actions-col{gap:6px}body.mobile-play.touch-controls-on .touch-joystick-zone{width:168px;height:168px}body.mobile-play.touch-controls-on .touch-joystick{width:96px;height:96px;margin-left:-48px;margin-top:-48px}body.mobile-play.touch-controls-on .touch-joystick-knob{width:38px;height:38px}body.mobile-play.touch-controls-on .touch-power-slot{width:48px;height:48px}body.mobile-play.touch-controls-on .touch-power-belt{bottom:max(12px,env(safe-area-inset-bottom,0px));gap:8px;padding:6px 8px}body.mobile-play.touch-controls-on .touch-pedal{width:76px;height:56px}body.mobile-play.touch-controls-on .touch-action{width:44px;height:44px;min-width:44px;min-height:44px}body.mobile-play.touch-controls-on .touch-handbrake{width:56px;height:56px;min-width:56px;min-height:56px}body.mobile-play.touch-controls-on .touch-shop{height:36px;min-height:36px;padding:0 8px;font-size:.62rem}body.mobile-play #audio-overlay{flex-direction:column;flex-wrap:nowrap;justify-content:center;gap:6px}body.mobile-play .lobby-title{font-size:1.15rem}body.mobile-play .lobby-blurb{font-size:.68rem;line-height:1.35;max-width:min(520px,92vw)}body.mobile-play .lobby-options-link,body.mobile-play .lobby-options-back,body.mobile-play .start-btn{padding:10px 16px;font-size:.88rem}}@media (orientation: landscape) and (max-height: 420px){#audio-overlay{height:100dvh;max-height:100dvh;gap:6px;overflow:hidden;justify-content:center;padding:8px 12px}#audio-overlay .lobby-title,#audio-overlay h1{font-size:1.15rem!important;margin:0}#audio-overlay .lobby-panel{gap:6px}#audio-overlay .lobby-blurb{display:block!important;font-size:.65rem;line-height:1.35;max-width:min(520px,92vw);margin:0}#audio-overlay .lobby-input-group{margin-bottom:0;max-width:min(280px,80vw)}#audio-overlay .lobby-input{padding:8px 10px;font-size:.9rem}#audio-overlay .lobby-options-link,#audio-overlay .lobby-options-back,#audio-overlay .start-btn{width:min(280px,80vw);padding:10px 16px;font-size:.88rem;flex-shrink:0}#audio-overlay .start-btn{margin-top:4px}}@media (max-width: 600px){body.mobile-play #telemetry-hud{width:min(132px,36vw)}body.mobile-play #leaderboard-hud{width:min(132px,36vw);max-height:32vh}}body.shop-open #telemetry-hud,body.shop-open #leaderboard-hud,body.shop-open #gauge-hud,body.shop-open #garage-prompt-pill,body.shop-open #touch-controls,body.shop-open #controls-card{visibility:hidden!important;pointer-events:none!important}#mechanics-shop-hud{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;background:radial-gradient(ellipse at 20% 0%,rgba(34,197,94,.18),transparent 45%),radial-gradient(ellipse at 80% 100%,rgba(102,252,241,.12),transparent 40%),linear-gradient(160deg,#071018,#0b1a14 45%,#0a1520);color:#e8f1f0;font-family:Orbitron,system-ui,sans-serif;overflow:auto}#mechanics-shop-hud[hidden]{display:none!important}.shop-shell{min-height:100%;display:flex;flex-direction:column;padding:16px 20px 24px;box-sizing:border-box;max-width:1280px;margin:0 auto}.shop-header{display:grid;grid-template-columns:1fr auto auto auto auto;gap:16px;align-items:center;margin-bottom:14px}.shop-title{font-size:clamp(1.4rem,3vw,2rem);font-weight:800;letter-spacing:.06em;color:#86efac;text-shadow:0 0 18px rgba(134,239,172,.35)}.shop-subtitle{font-size:.75rem;color:#8b9bb4;margin-top:4px;letter-spacing:.12em;text-transform:uppercase}.shop-car-card{display:flex;gap:12px;align-items:center;background:#0f172ab8;border:1px solid rgba(134,239,172,.35);border-radius:12px;padding:8px 14px;min-width:220px}.shop-car-card img{width:72px;height:56px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(102,252,241,.45))}.shop-car-meta #shop-car-name{font-size:.9rem;font-weight:700;color:#66fcf1}.shop-car-name-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.car-origin-flag{font-size:1rem;line-height:1}.car-origin-badge{display:inline-flex;align-items:center;gap:4px;font-size:.68rem;color:#94a3b8}.car-origin-label{font-size:.68rem;color:#94a3b8}.shop-car-lot-card .shop-card-top,.dealership-card h3{padding-right:42px}.dealership-card h3,.shop-car-lot-card .shop-card-top h3{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}.car-specs-link{position:absolute;top:8px;right:10px;z-index:2;font-family:inherit;font-size:.58rem;font-weight:700;letter-spacing:.1em;padding:0;border:none;background:none;color:#67e8f4;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.car-specs-link:hover{color:#99f6e4}.car-specs-link.ui-pad-focus{position:absolute;top:8px;right:10px;outline:none!important;box-shadow:none!important;color:#99f6e4;text-decoration-thickness:2px}.shop-btn.specs{background:#1e293bd9;border:1px solid rgba(102,252,241,.35);color:#99f6e4;font-size:.68rem;padding:8px 10px}.shop-btn.specs:hover:not(:disabled){background:#0f766e73}.shop-car-lot-actions{display:flex;flex-direction:column;gap:8px;margin-top:8px}.shop-car-lot-actions .shop-btn{width:100%}.shop-card-foot-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.shop-car-sell-link{font-family:inherit;font-size:.62rem;font-weight:700;letter-spacing:.06em;padding:0;border:none;background:none;color:#f87171;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.shop-car-sell-link:hover:not(:disabled){color:#fca5a5}.shop-car-sell-link:disabled{opacity:.45;cursor:not-allowed;text-decoration:none}.car-specs-modal .car-specs-dialog{width:min(460px,100%);border-color:#66fcf173}#car-specs-modal{z-index:10100}.car-specs-header{display:flex;gap:14px;align-items:center;margin-bottom:14px}.car-specs-header img{width:96px;height:72px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(102,252,241,.35))}.car-specs-header h2{margin:0 0 4px;font-size:1.05rem;color:#f8fafc}.car-specs-rows dd{text-align:right}.shop-car-meta #shop-car-family,.shop-car-meta #shop-car-asp{font-size:.68rem;color:#a7b4c8;margin-top:2px}.shop-wallet{font-size:1.35rem;font-weight:800;color:#fde68a;text-shadow:0 0 12px rgba(253,230,138,.35);padding:10px 14px;background:#0f172aa6;border:1px solid rgba(253,230,138,.35);border-radius:10px}.shop-power-card{min-width:110px;padding:8px 14px;background:#0f172ab8;border:1px solid rgba(102,252,241,.4);border-radius:12px;text-align:center}.shop-power-label{font-size:.62rem;letter-spacing:.14em;color:#8b9bb4}.shop-power-value{font-size:1.55rem;font-weight:900;color:#66fcf1;line-height:1.1;text-shadow:0 0 12px rgba(102,252,241,.35)}.shop-hp-unit{font-size:.7rem;margin-left:4px;color:#94a3b8;font-weight:700}.shop-power-sub{margin-top:2px;font-size:.62rem;color:#a7b4c8}.shop-hp-delta{font-size:.72rem;font-weight:700;color:#86efac;margin:4px 0 6px;font-family:Orbitron,sans-serif}.shop-hp-delta span{color:#e2e8f0;font-weight:600}.shop-hp-delta.muted{color:#64748b;font-weight:500}.shop-hp-delta.ok{color:#67e8f9}.shop-hp-delta.warn{color:#fbbf24}.shop-card.is-damaged{border-color:#fbbf24a6;box-shadow:0 0 0 1px #fbbf2433}.shop-card.is-damaged-critical{border-color:#f87171bf;box-shadow:0 0 0 1px #f8717140}.shop-badge.damaged{background:#92400e;color:#fde68a}.shop-badge.damaged-critical{background:#7f1d1d;color:#fecaca}.shop-hp-delta.critical{color:#f87171}.shop-btn.repair:not(:disabled){background:linear-gradient(135deg,#a16207,#b45309);border-color:transparent;color:#fffbeb}.shop-durable{color:#94a3b8;font-size:.58rem;margin-left:4px}.shop-close-btn{font-family:inherit;font-weight:700;letter-spacing:.08em;padding:12px 18px;border-radius:10px;border:1px solid rgba(248,113,113,.55);background:#7f1d1d8c;color:#fecaca;cursor:pointer}.shop-close-btn:hover{background:#b91c1cb3}.shop-tabs,.shop-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.shop-filters[hidden]{display:none!important}.shop-tab,.shop-filter{font-family:inherit;font-size:.78rem;letter-spacing:.04em;padding:8px 14px;border-radius:999px;border:1px solid rgba(102,252,241,.25);background:#0f172a8c;color:#9fb0c7;cursor:pointer;position:relative}.shop-tab-badge{position:absolute;top:-7px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:.65rem;font-weight:800;line-height:18px;text-align:center;box-shadow:0 0 0 2px #0f172ae6;pointer-events:none}.shop-tab-badge[hidden]{display:none!important}.shop-tab.active,.shop-filter.active{color:#04120c;background:linear-gradient(135deg,#86efac,#66fcf1);border-color:transparent;font-weight:700}.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;flex:1;align-content:start}.shop-grid[hidden]{display:none!important}.shop-empty{grid-column:1 / -1;padding:40px;text-align:center;color:#8b9bb4}.shop-setup-panel{flex:1;display:grid;grid-template-columns:minmax(220px,320px) minmax(280px,420px);gap:24px;align-content:start;padding:8px 4px 16px}.shop-setup-panel[hidden]{display:none!important}.shop-setup-intro{display:flex;flex-direction:column;gap:10px}.shop-setup-title{margin:0;font-family:Orbitron,sans-serif;font-size:1rem;letter-spacing:.08em;color:#86efac;text-transform:uppercase}.shop-setup-blurb{margin:0;font-family:system-ui,sans-serif;font-size:.82rem;line-height:1.5;color:#8b9bb4}.shop-setup-controls{background:#0f172ac7;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:16px 18px}.shop-setup-controls .tuning-group{margin-bottom:14px}.shop-setup-controls .tuning-reset-btn{margin-top:8px;width:100%}@media (max-width: 720px){.shop-setup-panel{grid-template-columns:1fr}}.shop-card{display:grid;grid-template-columns:72px 1fr;gap:10px;background:#0f172ac7;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px;transition:border-color .15s ease,transform .15s ease}.shop-card.is-equipped{border-color:#86efaca6;box-shadow:0 0 0 1px #86efac33}.shop-card.is-owned:not(.is-equipped){border-color:#66fcf159}.shop-card.is-locked{opacity:.55}.shop-card.tier-3{background:linear-gradient(145deg,#1e140ae6,#0f172ad9)}.shop-icon{width:72px;height:72px;border-radius:10px;image-rendering:auto;background-color:#0b1220;box-shadow:inset 0 0 0 1px #ffffff0f;overflow:hidden;flex-shrink:0}.shop-card-top{display:flex;justify-content:space-between;gap:6px;align-items:flex-start;min-width:0}.shop-card>:nth-child(2){min-width:0}.shop-card-top h3{margin:0;font-size:.82rem;line-height:1.25;color:#f1f5f9;min-width:0;flex:1 1 auto}.shop-blurb{margin:6px 0;font-size:.68rem;color:#94a3b8;line-height:1.35;font-family:system-ui,sans-serif}.shop-card-foot{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.shop-tier{font-size:.65rem;color:#66fcf1}.shop-price{font-size:.85rem;font-weight:700;color:#fde68a}.shop-badge{font-size:.58rem;letter-spacing:.06em;padding:3px 6px;border-radius:4px;white-space:nowrap}.shop-badge.equipped{background:#166534;color:#bbf7d0}.shop-badge.owned{background:#0e7490;color:#cffafe}.shop-badge.locked{background:#334155;color:#cbd5e1}.shop-badge.broke{background:#7f1d1d;color:#fecaca}.shop-btn{width:100%;font-family:inherit;font-size:.72rem;font-weight:700;letter-spacing:.04em;padding:8px 10px;border-radius:8px;border:1px solid rgba(102,252,241,.35);background:#082f49cc;color:#67e8f9;cursor:pointer}.shop-btn.buy:not(:disabled){background:linear-gradient(135deg,#166534,#0f766e);border-color:transparent;color:#ecfdf5}.shop-car-actions{display:flex;flex-direction:column;gap:6px}.shop-btn.sell:not(:disabled){background:linear-gradient(135deg,#9a3412,#7f1d1d);border-color:transparent;color:#ffedd5}.shop-sell-hint{font-size:.62rem;color:#94a3b8;line-height:1.3;font-family:system-ui,sans-serif}.shop-sell-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10020;display:flex;align-items:center;justify-content:center;background:#02060cb8;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:18px}.shop-sell-modal[hidden]{display:none!important}.shop-sell-dialog{width:min(420px,100%);background:linear-gradient(165deg,#0f172af5,#080f18fa);border:1px solid rgba(251,191,36,.45);border-radius:14px;padding:22px 22px 18px;box-shadow:0 18px 40px #00000073}.shop-sell-kicker{font-size:.68rem;letter-spacing:.18em;color:#fbbf24;margin-bottom:6px}.shop-sell-dialog h2{margin:0 0 6px;font-size:1.15rem;color:#f8fafc}.shop-sell-car{margin:0 0 16px;color:#67e8f9;font-size:.92rem}.shop-sell-rows{margin:0 0 18px;display:flex;flex-direction:column;gap:8px}.shop-sell-rows>div{display:flex;justify-content:space-between;gap:12px;font-size:.82rem;color:#94a3b8}.shop-sell-rows dd{margin:0;color:#e2e8f0;font-weight:700}.shop-sell-result{padding-top:8px;border-top:1px solid rgba(102,252,241,.22);color:#67e8f9!important}.shop-sell-result dd{color:#86efac!important;font-size:1rem}.shop-sell-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shop-btn:disabled{opacity:.55;cursor:default}.shop-footer{margin-top:16px;display:flex;justify-content:space-between;align-items:center;color:#64748b;font-size:.7rem}.shop-footer-controls{flex-shrink:0;margin-left:12px;white-space:nowrap}.shop-footer-controls kbd{border:1px solid #475569;border-radius:4px;padding:2px 6px;color:#cbd5e1;margin:0 1px}.ui-pad-focus{outline:2px solid #66fcf1!important;outline-offset:2px;box-shadow:0 0 0 3px #66fcf159,0 0 18px #66fcf140!important;position:relative;z-index:1}.shop-tab.ui-pad-focus,.shop-filter.ui-pad-focus{border-color:#66fcf1;color:#e2e8f0}.shop-btn.ui-pad-focus,.dealership-buy.ui-pad-focus,.shop-close-btn.ui-pad-focus{filter:brightness(1.12)}.dealership-card:has(.ui-pad-focus){border-color:#66fcf1bf;box-shadow:0 0 20px #66fcf133}.shop-card:has(.ui-pad-focus),.shop-car-lot-card:has(.ui-pad-focus){border-color:#66fcf1a6}@media (max-width: 800px){.shop-header{grid-template-columns:1fr 1fr}.shop-brand{grid-column:1 / -1}}#dealership-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10050;background:radial-gradient(ellipse at 30% 0%,rgba(102,252,241,.12),transparent 50%),linear-gradient(165deg,#071018,#0b1520 55%,#0a1018);overflow:auto;padding:28px 18px 40px}#dealership-overlay[hidden]{display:none!important}.dealership-shell{max-width:980px;margin:0 auto}.dealership-kicker{font-family:Orbitron,sans-serif;font-size:.7rem;letter-spacing:.18em;color:#66fcf1;margin-bottom:6px}.dealership-title{font-family:Orbitron,sans-serif;font-size:clamp(1.4rem,4vw,2.2rem);color:#e8f1f0;margin:0 0 8px}.dealership-sub{color:#94a3b8;margin:0 0 22px}.dealership-sub strong{color:#86efac}.dealership-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}.dealership-card{background:#0f172abf;border:1px solid rgba(102,252,241,.22);border-radius:10px;padding:12px;text-align:center;position:relative}.dealership-card img{width:100%;height:90px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(102,252,241,.35))}.dealership-card h3{font-family:Orbitron,sans-serif;font-size:.85rem;color:#e2e8f0;margin:8px 0 4px}.dealership-meta{color:#94a3b8;font-size:.72rem;margin-bottom:10px}.dealership-buy{width:100%;border:none;border-radius:6px;padding:8px 10px;font-family:Orbitron,sans-serif;font-size:.78rem;background:linear-gradient(135deg,#0f766e,#166534);color:#ecfdf5;cursor:pointer}.dealership-buy:disabled{opacity:.45;cursor:not-allowed;background:#334155}.dealership-hint{color:#64748b;font-size:.8rem;margin-top:18px;text-align:center}.dealership-link{background:none;border:none;color:#86efac;font:inherit;cursor:pointer;text-decoration:underline;padding:0}body.first-drive-active #telemetry-hud,body.first-drive-active .credential-hud,body.first-drive-active #demo-end-btn,body.first-drive-active #leaderboard-hud{display:none!important}#first-drive-overlay,#first-drive-commit-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:120;display:flex;align-items:flex-start;justify-content:center;padding:28px 16px;background:linear-gradient(180deg,rgba(2,6,23,.72) 0%,rgba(2,6,23,.08) 45%,transparent 100%);pointer-events:none}#first-drive-overlay[hidden],#first-drive-commit-overlay[hidden]{display:none!important}.first-drive-shell,.first-drive-commit-shell{pointer-events:auto;max-width:360px;width:100%;background:#0f172ae0;border:1px solid rgba(102,252,241,.25);border-radius:14px;padding:18px 20px;box-shadow:0 12px 40px #00000073}#first-drive-commit-overlay{align-items:center;background:#020617e0;pointer-events:auto}.first-drive-commit-shell{max-width:980px;width:min(980px,96vw)}.first-drive-kicker{font-family:Orbitron,sans-serif;font-size:.65rem;letter-spacing:.14em;color:#66fcf1;margin-bottom:6px}.first-drive-step{font-family:Orbitron,sans-serif;font-size:.72rem;letter-spacing:.1em;color:#fde68a;margin-bottom:4px}.first-drive-cash{font-family:Orbitron,sans-serif;font-size:.82rem;letter-spacing:.04em;color:#86efac;margin:0 0 8px}.first-drive-title{font-family:Orbitron,sans-serif;font-size:1.35rem;color:#f8fafc;margin:0 0 8px}.first-drive-hint{color:#e2e8f0;font-size:.88rem;margin:0 0 8px;line-height:1.45;font-weight:600}.first-drive-detail{color:#94a3b8;font-size:.8rem;margin:0 0 14px;line-height:1.45}.first-drive-progress{display:flex;gap:6px;margin-bottom:14px}.first-drive-progress .fd-pip{flex:1;height:4px;border-radius:999px;background:#334155}.first-drive-progress .fd-pip.is-done{background:#22c55e}.first-drive-progress .fd-pip.is-current{background:#66fcf1;box-shadow:0 0 10px #66fcf18c}.first-drive-shell.is-cleared,#first-drive-overlay.is-cleared .first-drive-shell{border-color:#86efac;box-shadow:0 0 0 2px #86efac59,0 12px 40px #00000073}#first-drive-overlay.is-cleared .first-drive-kicker,#first-drive-overlay.is-cleared .first-drive-title,#first-drive-overlay.is-cleared .first-drive-hint,#first-drive-overlay.is-cleared .first-drive-detail{color:#86efac}.first-drive-actions{display:flex;justify-content:flex-end}.first-drive-skip{font-family:Orbitron,sans-serif;font-size:.72rem;letter-spacing:.04em;padding:8px 14px;border-radius:8px;border:1px solid rgba(148,163,184,.35);background:#1e293bcc;color:#cbd5e1;cursor:pointer}.first-drive-skip.ghost{margin-top:16px}.first-drive-skip:hover{border-color:#66fcf1;color:#f8fafc}.first-drive-skip.is-finish{border-color:#86efac;background:#22c55e38;color:#f8fafc;letter-spacing:.12em;text-transform:uppercase}.first-drive-skip.is-finish:hover{border-color:#bbf7d0;background:#22c55e61}#first-drive-car-switcher{position:fixed;bottom:20px;left:50%;transform:translate(-50%);z-index:115;display:flex;align-items:center;gap:10px;padding:8px 12px;background:#0f172aeb;border:1px solid rgba(102,252,241,.2);border-radius:999px;box-shadow:0 8px 24px #0006}#first-drive-car-switcher[hidden]{display:none!important}.fd-switch-label{font-family:Orbitron,sans-serif;font-size:.62rem;letter-spacing:.12em;color:#66fcf1}.fd-switch-cars{display:flex;gap:6px}.fd-switch-car{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 6px;border-radius:10px;border:1px solid transparent;background:#1e293b99;cursor:pointer;color:#94a3b8;font-size:.58rem}.fd-switch-car img{width:44px;height:28px;object-fit:contain}#first-drive-car-switcher.is-teaching{border-color:#86efac;box-shadow:0 0 0 2px #86efac59,0 8px 24px #0006;animation:fd-switch-pulse 1.4s ease-in-out infinite}@keyframes fd-switch-pulse{0%,to{box-shadow:0 0 0 2px #86efac40,0 8px 24px #0006}50%{box-shadow:0 0 0 6px #86efac1f,0 8px 24px #0006}}.fd-switch-car.is-active{border-color:#86efac;background:#22c55e1f;color:#f8fafc}body.mobile-play.first-drive-active #leaderboard-hud,body.mobile-play.first-drive-active #gauge-hud{display:none!important}body.mobile-play #first-drive-overlay{align-items:flex-start;justify-content:flex-start;padding:max(8px,env(safe-area-inset-top,0px)) 10px 0 max(10px,env(safe-area-inset-left,0px));background:linear-gradient(180deg,rgba(2,6,23,.5) 0%,transparent 64%)}body.mobile-play .first-drive-shell{max-width:min(420px,calc(100vw - 20px));padding:8px 10px;border-radius:10px;display:grid;grid-template-columns:1fr auto;grid-template-areas:"meta skip" "title title" "hint hint" "pips pips";column-gap:8px;row-gap:2px;box-shadow:0 8px 20px #00000059}body.mobile-play .first-drive-kicker{display:none}body.mobile-play .first-drive-step{grid-area:meta;margin:0;font-size:.58rem;align-self:center}body.mobile-play .first-drive-cash{display:none}body.mobile-play .first-drive-title{grid-area:title;font-size:.92rem;margin:0;line-height:1.15}body.mobile-play .first-drive-hint{grid-area:hint;font-size:.7rem;margin:0;line-height:1.25;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}body.mobile-play .first-drive-detail{display:none}body.mobile-play .first-drive-progress{grid-area:pips;margin:4px 0 0;gap:4px}body.mobile-play .first-drive-progress .fd-pip{height:3px}body.mobile-play .first-drive-actions{grid-area:skip;margin:0;align-self:start}body.mobile-play .first-drive-skip{padding:5px 8px;font-size:.56rem;white-space:nowrap}body.mobile-play #first-drive-car-switcher{bottom:max(96px,calc(env(safe-area-inset-bottom,0px) + 84px));left:50%;transform:translate(-50%);padding:4px 8px;gap:6px;max-width:min(420px,calc(100vw - 176px));overflow-x:auto;-webkit-overflow-scrolling:touch}body.mobile-play .fd-switch-label{font-size:.5rem;letter-spacing:.08em}body.mobile-play .fd-switch-car{padding:2px 4px;font-size:.5rem}body.mobile-play .fd-switch-car img{width:32px;height:20px}@media (orientation: landscape) and (max-height: 500px){body.mobile-play #first-drive-overlay{padding:max(6px,env(safe-area-inset-top,0px)) 8px 0 max(8px,env(safe-area-inset-left,0px))}body.mobile-play .first-drive-shell{max-width:min(380px,calc(100vw - 168px));padding:6px 8px}body.mobile-play .first-drive-title{font-size:.82rem}body.mobile-play .first-drive-hint{font-size:.64rem;-webkit-line-clamp:1}body.mobile-play #first-drive-car-switcher{bottom:max(78px,calc(env(safe-area-inset-bottom,0px) + 70px));max-width:min(360px,calc(100vw - 200px))}}body.mobile-play #first-drive-commit-overlay{padding:12px 10px;overflow:auto;-webkit-overflow-scrolling:touch}body.mobile-play .first-drive-commit-shell{max-width:min(980px,100%);padding:12px}.shop-car-lot-card{background:#0f172a8c;border:1px solid rgba(148,163,184,.25);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px;position:relative}.shop-car-lot-card img{width:100%;height:72px;object-fit:contain}.shop-car-lot-card.owned{border-color:#86efac73}.shop-car-lot-card.is-driving{border-color:#66fcf1d9;background:linear-gradient(160deg,#082f49b8,#0f172ae6);box-shadow:0 0 0 1px #66fcf159,0 8px 22px #0284c738;transform:translateY(-2px)}.shop-car-lot-card.is-driving .shop-btn:disabled:not(.sell){background:#0e7490;color:#ecfeff;border:1px solid rgba(103,232,249,.55);opacity:1;letter-spacing:.06em}.shop-car-lot-card.is-driving img{filter:brightness(1.08) saturate(1.1)}.shop-car-lot-card.is-full-game,.shop-card.is-full-game{opacity:.72;filter:grayscale(.35);border-color:#fbbf2459}.shop-badge.full-game{background:#78350f;color:#fde68a;letter-spacing:.03em;flex-shrink:0;max-width:5rem;text-align:center;line-height:1.2;white-space:normal}.shop-btn.full-game{background:#44403c;color:#fde68a;border:1px solid rgba(251,191,36,.45);opacity:1;font-size:.62rem;letter-spacing:.02em;line-height:1.25;white-space:normal;padding:7px 6px;box-sizing:border-box;cursor:pointer}.shop-btn.full-game:hover{filter:brightness(1.08);border-color:#fbbf24b3}.shop-btn.full-game.ui-pad-focus{filter:brightness(1.12)}.shop-sku-pill{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:4px;background:#92400e;color:#fde68a;font-size:.65rem;font-weight:800;letter-spacing:.08em;vertical-align:middle}.sku-badge{position:fixed;top:14px;right:14px;z-index:40;padding:6px 12px;border-radius:6px;font-family:Orbitron,sans-serif;font-size:.72rem;font-weight:800;letter-spacing:.12em;pointer-events:none;background:#1e293b;color:#e2e8f0;border:1px solid rgba(148,163,184,.35)}body.sku-demo .sku-badge{background:#78350f;color:#fde68a;border-color:#fbbf2480}.demo-end-btn{position:fixed;bottom:18px;right:18px;z-index:40;padding:10px 14px;border-radius:8px;border:1px solid rgba(251,191,36,.55);background:#78350feb;color:#fde68a;font-family:Orbitron,sans-serif;font-size:.72rem;font-weight:800;letter-spacing:.08em;cursor:pointer}.demo-end-btn:hover{filter:brightness(1.08)}body.shop-open .demo-end-btn,body.connecting .demo-end-btn,body.demo-end-open .demo-end-btn{display:none}#demo-end-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10200;display:flex;align-items:center;justify-content:center;padding:24px;background:#020617d1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}#demo-end-overlay[hidden]{display:none!important}.demo-end-shell{max-width:560px;width:100%;padding:28px 26px;border-radius:16px;border:1px solid rgba(251,191,36,.35);background:linear-gradient(160deg,#1c1917,#0f172a);box-shadow:0 20px 60px #00000073}.demo-end-kicker{font-family:Orbitron,sans-serif;font-size:.7rem;letter-spacing:.16em;color:#fbbf24;margin-bottom:8px}.demo-end-title{font-family:Orbitron,sans-serif;font-size:1.6rem;color:#f8fafc;margin:0 0 10px}.demo-end-message{color:#94a3b8;margin:0 0 18px;line-height:1.45}.demo-end-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0 0 20px}.demo-end-stats div{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:8px;background:#0f172aa6;border:1px solid rgba(148,163,184,.12)}.demo-end-stats dt{color:#64748b;font-size:.72rem}.demo-end-stats dd{margin:0;font-family:Orbitron,sans-serif;color:#e2e8f0;font-size:.85rem}.demo-end-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}.demo-end-cta{flex:1 1 140px;padding:11px 12px;border-radius:8px;border:1px solid rgba(148,163,184,.25);background:#1e293b;color:#e2e8f0;font-family:Orbitron,sans-serif;font-size:.72rem;font-weight:700;cursor:pointer}.demo-end-cta.primary{background:#b45309;border-color:#fbbf2473;color:#fff7ed}.demo-end-cta.ghost{background:transparent}.demo-end-cta:disabled{opacity:.45;cursor:not-allowed}.demo-end-hint{color:#64748b;font-size:.75rem;margin:0;line-height:1.4}body:not(.connected) #telemetry-hud,body:not(.connected) #controls-card,body:not(.connected) #leaderboard-hud,body:not(.connected) #gauge-hud,body:not(.connected) #garage-prompt-pill,body:not(.connected) #touch-controls{display:none!important;visibility:hidden!important;pointer-events:none!important}
