:root{--paper:#f4efdf;--ink:#223b37;--muted:#6f7c6b;--orange:#ed6942;--teal:#3a8e83;--line:#d8d9c5;--yellow:#efc64d;--body:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--display:Impact,"Arial Narrow",sans-serif;color-scheme:light}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:var(--body)}body{background-image:radial-gradient(#c5c8b744 .75px,transparent .75px);background-size:8px 8px}button,input{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #2f9a94;outline-offset:4px}[hidden]{display:none!important}button{touch-action:manipulation}a{color:inherit}button,input{border-radius:0}button{border:0}input{min-width:0}button:active{transform:translateY(2px)}.site-header{height:104px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;max-width:1440px;margin:auto;padding:0 44px}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;font-size:20px;letter-spacing:2px;font-weight:400;line-height:1.05}.brand strong{font-weight:900}.brand small{display:block;letter-spacing:.3px;font-size:9px;margin-top:6px;font-weight:600;color:var(--muted)}.brand-icon{font-size:37px;color:var(--orange);line-height:1}.header-right{display:flex;align-items:center;gap:14px}.wifi-badge{font-size:10px;font-weight:800;letter-spacing:1.3px;margin-right:17px;display:flex;align-items:center;gap:8px}.wifi-badge i,.preview-top i{width:7px;height:7px;background:var(--teal);display:inline-block;border-radius:50%;box-shadow:0 0 0 4px #3a8e8310}.icon-button{position:relative;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:transparent;font-weight:700;font-size:17px}.icon-button:hover{background:#e9e4d2}.sound-slash{position:absolute;left:17px;top:4px;color:var(--orange)}.home{max-width:1440px;padding:50px 44px 22px;margin:0 auto;display:grid;grid-template-columns:minmax(320px,.77fr) minmax(0,1.3fr);gap:65px;align-items:start}.eyebrow{font-size:10px;font-weight:850;letter-spacing:1.6px;display:flex;gap:10px;align-items:center}.little-star{color:var(--orange);font-size:20px}h1{font-family:var(--display);font-weight:900;font-stretch:condensed;font-size:clamp(70px,6.5vw,105px);line-height:.85;letter-spacing:-2px;margin:20px 0 24px;position:relative;width:max-content}h1 span{color:var(--orange)}h1 i{font-family:var(--body);font-size:27px;position:absolute;right:-28px;top:0;transform:rotate(20deg);color:var(--orange)}.lede{font-size:23px;font-weight:720;line-height:1.25;letter-spacing:-.6px;margin:0 0 13px}.description{font-size:13px;line-height:1.7;color:var(--muted);max-width:330px;margin:0 0 28px}.mode-label{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.2px;font-weight:800;padding-bottom:11px}.mode-label span{color:#909b88}.mode-picker{display:grid;gap:9px}.mode-card{display:flex;align-items:center;gap:13px;width:100%;text-align:left;background:#f9f6ec;border:1.5px solid var(--line);border-radius:8px;padding:12px 15px;transition:background .2s,border-color .2s;position:relative}.mode-card.selected{border-color:var(--ink);background:#fff9e8;box-shadow:2px 3px 0 var(--ink)}.mode-card:hover{background:#fff9e8}.mode-symbol{width:30px;line-height:1;text-align:center;color:var(--teal);font-size:29px;font-weight:900}.mode-card strong{font-size:13px;display:block}.mode-card small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.radio-dot{width:12px;height:12px;border:1px solid #9da38e;border-radius:50%;margin-left:auto;flex-shrink:0}.selected .radio-dot{border:3px solid var(--paper);outline:1px solid var(--ink);background:var(--ink)}.team-switch{display:flex;background:#e8e6d7;border-radius:6px;padding:3px;margin:17px 0}.team-switch button{flex:1;background:transparent;border-radius:4px;font-size:10px;font-weight:650;padding:8px 4px;color:var(--muted)}.team-switch button.selected{background:#fffcf3;color:var(--ink);box-shadow:0 1px 4px #223b3710}.main-actions{display:grid;gap:9px}.button{display:flex;justify-content:space-between;align-items:center;gap:18px;width:100%;padding:15px 19px;border-radius:6px;font-size:11px;font-weight:850;letter-spacing:.8px;transition:filter .15s,box-shadow .15s}.button span{font-size:20px;line-height:1}.primary{background:var(--orange);color:#fff9ee;box-shadow:0 4px 0 #b64326}.primary:hover{filter:brightness(1.05);box-shadow:0 5px 0 #b64326}.secondary{background:transparent;border:1px solid var(--ink);margin-top:4px}.secondary:hover{background:#eae7d9}.play-note{font-size:9px;color:var(--muted);margin:15px 0 0;text-align:center}.play-note span{font-size:7px;color:var(--teal);margin-right:4px}.showcase{min-width:0;padding-top:26px}.preview-top{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.2px;font-weight:800;margin:0 2px 14px}.preview-top span:first-child{display:flex;gap:9px;align-items:center}.preview-top span:last-child{color:var(--muted)}.stage{position:relative;width:100%;aspect-ratio:1.13;overflow:hidden;background:#e9c796;border-radius:12px;border:2px solid var(--ink);box-shadow:7px 8px 0 #223b3722;isolation:isolate}canvas{display:block;width:100%;height:100%}.preview-label{position:absolute;inset:0;pointer-events:none}.preview-sticker{position:absolute;left:20px;top:20px;transform:rotate(-8deg);background:#f7cd4e;border:1.5px solid var(--ink);box-shadow:3px 4px 0 #223b3725;border-radius:3px;font-size:11px;font-weight:700;line-height:1.2;padding:13px 16px;letter-spacing:.7px}.preview-sticker strong{font-family:var(--display);font-size:23px;font-weight:400;letter-spacing:.3px}.preview-caption{position:absolute;bottom:17px;left:50%;transform:translateX(-50%) rotate(-2deg);white-space:nowrap;background:var(--paper);padding:9px 14px;font-size:8px;font-weight:800;letter-spacing:1.1px;box-shadow:2px 3px 0 #223b3722}.preview-bottom{display:flex;justify-content:space-between;padding:27px 4px 16px;border-bottom:1px solid var(--line);gap:15px}.stat{display:flex;flex-direction:column;gap:8px}.stat strong{font-family:var(--display);font-size:27px;letter-spacing:.7px;font-weight:400}.stat:last-child strong{font-family:var(--body);font-weight:600;line-height:1.15}.stat span{font-size:7px;letter-spacing:1px;font-weight:700;color:var(--muted)}.toy-caption{display:flex;gap:15px;align-items:center;justify-content:center;font-size:11px;font-style:italic;color:var(--muted);padding-top:12px}.dashed-arrow{font-size:32px;color:var(--orange);transform:rotate(-12deg)}.site-footer{display:flex;gap:20px;align-items:center;justify-content:space-between;max-width:1352px;margin:28px auto 0;border-top:1px solid var(--line);padding:24px 0 30px;font-size:8px;letter-spacing:1.4px;font-weight:750}.site-footer p{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted);margin:0}.prototype-tag{font-size:7px;color:var(--muted)}
/* Shared playground */
body.playing{overflow:hidden;background:#c9ad7d}body.playing .stage{position:fixed;inset:0;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;z-index:10;box-shadow:none}body.playing .intro,body.playing .site-header,body.playing .site-footer,body.playing .preview-top,body.playing .preview-bottom,body.playing .toy-caption{visibility:hidden}.hud{position:absolute;inset:0;pointer-events:none;padding:max(18px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));display:flex;flex-direction:column;justify-content:space-between}.hud button{pointer-events:auto}.hud-top{display:flex;align-items:start;justify-content:space-between;gap:12px}.hud-button{border-radius:8px;background:#f9f4e3ed;border:1px solid #223b3733;box-shadow:0 3px 0 #223b3720;padding:12px 17px;font-weight:800;font-size:14px}.hud-button span{font-size:9px;margin-left:7px;letter-spacing:1px}.score-pill,.timer-pill{background:#fcf8e9ed;padding:10px 22px;border-radius:10px;box-shadow:0 3px 0 #223b3720;text-align:center;display:flex;flex-direction:column;gap:4px;min-width:132px}.score-pill{position:absolute;left:50%;transform:translateX(-50%)}.score-pill span,.timer-pill span{font-size:8px;letter-spacing:1.1px;font-weight:800}.score-pill strong,.timer-pill strong{font-family:var(--display);font-size:29px;font-weight:400;letter-spacing:1px}.score-pill em{color:#8b9787;font-style:normal;margin:0 8px}.timer-pill{min-width:115px;padding:10px 12px}.hud-bottom{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-top:auto;margin-bottom:25px}.player-readout{width:200px;background:#f9f4e3ec;border-radius:10px;padding:13px 16px;box-shadow:0 3px 0 #223b371a}.player-readout>span{font-size:10px;font-weight:850;letter-spacing:.5px}.wobble-label{font-size:8px;font-weight:800;letter-spacing:1.4px;display:flex;justify-content:space-between;margin-top:10px}.wobble-label strong{font-size:11px;letter-spacing:0}.wobble-track{height:7px;border-radius:6px;background:#dcdccb;margin:6px 0}.wobble-track i{height:100%;display:block;background:var(--orange);border-radius:6px;transition:width .15s;width:0}.player-readout small{font-size:9px;color:#71806f}.gadget-readout{display:flex;align-items:center;gap:13px;background:#f9f4e3ec;border-radius:10px;padding:13px 18px;box-shadow:0 3px 0 #223b371a;min-width:190px}.gadget-readout>span{font-size:34px;color:#379cbd;line-height:1}.gadget-readout>div{display:flex;flex-direction:column;gap:3px}.gadget-readout small{font-size:7px;letter-spacing:1.3px;font-weight:750}.gadget-readout strong{font-size:10px}.gadget-readout div>span{font-size:8px;color:var(--muted)}.desktop-hint{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);font-size:9px;color:#344c41;background:#f9f4e3b0;padding:7px 10px;border-radius:20px;white-space:nowrap}kbd{font-family:inherit;font-size:8px;border:1px solid #88947b;border-radius:3px;padding:2px 4px;margin:0 4px}.connection-badge{position:absolute;left:22px;bottom:10px;font-size:7px;font-weight:800;letter-spacing:1px;color:#314f44}.status-banner{position:absolute;top:110px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:12px 24px;border-radius:8px;font-weight:750;font-size:13px;text-align:center;max-width:85%;box-shadow:0 4px 0 #152b2866}.event-feed{position:absolute;top:105px;left:22px;font-size:11px;font-weight:750;text-shadow:0 1px var(--paper)}.event-feed div{background:#fff8e5d9;margin-bottom:6px;padding:6px 10px;border-radius:5px;max-width:250px}.touch-controls{position:absolute;left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));bottom:max(26px,env(safe-area-inset-bottom));display:none;align-items:end;justify-content:space-between;pointer-events:none}.joystick{position:relative;width:132px;height:132px;border-radius:50%;background:#fcf6e344;border:2px solid #fff8e899;box-shadow:0 2px 12px #223b3712;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none}.joystick-ring{position:absolute;inset:27px;border-radius:50%;border:1px dashed #fff8e8a0}.joystick-knob{position:absolute;top:43px;left:43px;width:42px;height:42px;border:2px solid #f7f0dc;background:#fff8e8a0;border-radius:50%;box-shadow:0 3px 4px #223b3722}.joystick>span{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);font-size:7px;letter-spacing:1.4px;font-weight:800;color:#3a5147}.action-buttons{display:flex;gap:17px;align-items:end}.fire-button,.boost-button{border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none;pointer-events:auto}.fire-button{width:91px;height:91px;font-size:36px;color:#fff8e7;background:#ed6942e8;border:3px solid #ffd8a6;box-shadow:0 5px 0 #a84029bb}.fire-button span{font-size:9px;font-weight:900;letter-spacing:1.5px}.boost-button{width:62px;height:62px;background:#eac951df;border:2px solid #fff1b7;box-shadow:0 4px 0 #9f883a99;font-size:23px;margin-bottom:8px}.boost-button span{font-size:7px;letter-spacing:.5px;font-weight:850}.boost-button.cooling{opacity:.45}.results{position:absolute;inset:0;background:#203c389c;backdrop-filter:blur(7px);display:grid;place-items:center;z-index:4;overflow:auto;padding:20px}.results-card{width:min(460px,100%);background:var(--paper);border-radius:12px;padding:30px;box-shadow:8px 8px 0 #17333080}.results-card h2{font-family:var(--display);font-size:58px;letter-spacing:-.5px;line-height:.92;margin:20px 0;color:var(--orange)}.results-card p{font-size:13px;color:var(--muted)}.result-list{margin:22px 0}.result-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:9px 0;font-size:12px}.result-row span{display:flex;align-items:center;gap:8px}.result-row i{width:9px;height:9px;border-radius:50%}.result-row small{color:var(--muted);font-size:9px}.text-button{display:block;background:transparent;margin:15px auto 0;font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:5px}
/* Private room */
.dialog{background:var(--paper);color:var(--ink);border:1.5px solid var(--ink);border-radius:12px;width:min(480px,calc(100% - 28px));padding:30px;box-shadow:9px 10px 0 #132b294d;max-height:calc(100dvh - 32px);overflow:auto}.dialog::backdrop{background:#17393580;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:13px;top:10px;background:transparent;font-size:25px;color:var(--muted);width:34px;height:34px}.dialog h2{font-family:var(--display);font-size:49px;line-height:.95;margin:20px 0 14px;font-weight:400;letter-spacing:-.5px}.dialog-copy{font-size:12px;line-height:1.6;color:var(--muted)}.field-label{display:block;font-size:9px;font-weight:800;letter-spacing:1px;margin:19px 0 8px}.field-label span{font-size:9px;font-weight:400;letter-spacing:0;color:var(--muted);margin-left:7px}input{border:1.5px solid #c4cabb;background:#fffaf0;color:var(--ink);padding:12px;width:100%;border-radius:5px;font-size:14px}#room-code{text-transform:uppercase;letter-spacing:4px;font-weight:800}.color-picker{display:flex;gap:13px;margin:16px 0 18px}.color-swatch{width:27px;height:27px;border-radius:50%;border:3px solid var(--paper);box-shadow:0 0 0 1px #c9cbbc}.color-swatch.selected{box-shadow:0 0 0 2px var(--ink)}#connect-button{margin-top:22px}.form-error{background:#ffe0ce;border-radius:5px;color:#9e4025;padding:10px;font-size:12px;line-height:1.5}.local-footnote{font-size:9px;color:var(--muted);text-align:center;margin:22px 0 0;line-height:1.6}.room-code-panel{display:flex;justify-content:space-between;align-items:center;border:1px dashed var(--teal);border-radius:8px;background:#e8eee0;padding:17px;margin-top:20px}.room-code-panel small{font-size:8px;letter-spacing:1px;font-weight:750;display:block}.room-code-panel strong{font-size:28px;letter-spacing:6px;font-weight:850;display:block;margin-top:7px}.room-code-panel>span{font-size:9px;line-height:1.7;color:var(--muted);text-align:right}.share-row{display:flex;gap:6px}.share-row input{font-size:10px;padding:10px}.small-button{background:var(--ink);color:var(--paper);border-radius:5px;font-size:9px;letter-spacing:1px;padding:0 10px}.player-slots{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.player-slot{display:flex;align-items:center;gap:9px;padding:10px;background:#e7e7d7;border-radius:5px;min-width:0;font-size:11px}.player-slot.empty{border:1px dashed #d0d4c4;background:transparent;color:#87917f;font-size:10px}.slot-car{display:inline-block;width:17px;height:11px;border-radius:4px;box-shadow:0 2px 0 #34443855;flex-shrink:0}.player-slot strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-slot small{margin-left:auto;font-size:7px;color:var(--muted)}.help-steps{margin:25px 0}.help-steps p{display:flex;gap:14px;font-size:12px;line-height:1.6;color:var(--muted)}.help-steps b{font-family:var(--display);color:var(--orange);font-size:23px;font-weight:400}.help-steps strong{display:block;color:var(--ink)}.help-tip{font-size:11px;font-weight:650;border-top:1px solid var(--line);padding-top:15px;line-height:1.7}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:var(--ink);color:var(--paper);border-radius:8px;padding:12px 20px;box-shadow:0 4px 8px #223b3733;max-width:90%;font-size:12px;text-align:center}
@media(min-width:1550px){.home{padding-top:65px;gap:85px}.showcase{padding-top:22px}.description{margin-bottom:33px}.stage{aspect-ratio:1.19}.site-footer{margin-top:40px}}
@media(max-width:1100px){.home{padding:35px 28px 20px;gap:32px;grid-template-columns:minmax(290px,.82fr) minmax(0,1fr)}.site-header{padding:0 28px;height:85px}h1{font-size:78px}.showcase{padding-top:25px}.stage{aspect-ratio:.88}.preview-top span:last-child{display:none}.site-footer{margin:25px 28px 0}.preview-bottom{gap:10px}.stat span{font-size:6px}.description{font-size:12px}.lede{font-size:21px}.preview-caption{font-size:7px}.toy-caption{font-size:9px}}
@media(max-width:730px){.site-header{height:76px;padding:0 20px}.wifi-badge{font-size:8px;margin-right:0;letter-spacing:.8px}.header-right{gap:9px}.brand{font-size:16px;gap:7px}.brand-icon{font-size:31px}.brand small{font-size:7px}.icon-button{width:28px;height:28px;font-size:14px}.sound-slash{top:3px;left:15px}.home{display:flex;flex-direction:column;padding:29px 22px 10px;gap:26px}.intro{width:100%}h1{font-size:83px;margin:18px 0 20px}.lede{font-size:23px}.description{max-width:370px;margin-bottom:22px}.showcase{width:100%;padding-top:5px}.stage{aspect-ratio:1.25}.preview-top span:last-child{display:block}.preview-bottom{padding-top:20px}.stat span{font-size:7px}.toy-caption{font-size:10px}.site-footer{margin:22px;flex-wrap:wrap;gap:13px;padding:20px 0}.site-footer p{font-size:10px}.prototype-tag{width:100%;font-size:7px}.mode-card{padding:13px 14px}.mode-card strong{font-size:14px}.mode-card small{font-size:11px}.button{padding:17px 19px;font-size:12px}.team-switch button{font-size:11px;padding:9px 5px}.play-note{font-size:10px}.dialog{padding:25px}.dialog h2{font-size:46px}.preview-sticker{padding:9px 12px;font-size:9px;left:15px;top:15px}.preview-sticker strong{font-size:21px}}
@media(pointer:coarse),(max-width:900px){.touch-controls{display:flex}.desktop-hint{display:none}.hud-bottom{margin-bottom:166px}.player-readout{width:155px;padding:10px 12px}.gadget-readout{min-width:150px;padding:10px 12px;gap:8px}.gadget-readout>span{font-size:27px}.gadget-readout strong{font-size:9px}.connection-badge{bottom:8px}.event-feed{top:95px;font-size:9px}.hud{padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left))}.score-pill,.timer-pill{padding:8px 12px;min-width:96px}.score-pill strong,.timer-pill strong{font-size:25px}.hud-button{padding:10px 12px}.status-banner{top:88px;font-size:11px}.hud-button span{display:none}}
@media(pointer:coarse) and (orientation:landscape),(max-width:900px) and (orientation:landscape){.hud-bottom{position:absolute;left:175px;right:190px;bottom:18px;margin:0;gap:10px;justify-content:center}.player-readout{width:135px;padding:8px 10px}.player-readout>span{font-size:8px}.wobble-label{margin-top:5px;font-size:7px}.player-readout small{font-size:7px}.gadget-readout{min-width:145px;padding:10px}.touch-controls{bottom:19px;left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right))}.joystick{width:108px;height:108px}.joystick-knob{top:32px;left:32px}.joystick-ring{inset:20px}.fire-button{width:77px;height:77px;font-size:29px}.boost-button{width:53px;height:53px}.score-pill strong,.timer-pill strong{font-size:22px}.timer-pill span,.score-pill span{font-size:7px}.hud-top{padding-top:0}.score-pill,.timer-pill{padding:7px 12px}.results-card{padding:20px;max-width:480px}.results-card h2{font-size:35px;margin:12px 0}.result-list{margin:12px 0}.result-row{padding:5px 0}.results-card .eyebrow{font-size:8px}.results-card .button{padding:12px 16px}.results-card p{margin:8px 0;font-size:11px}.event-feed{top:75px}}
@media(max-width:380px){.wifi-badge{display:none}.preview-top{font-size:7px}.hud-bottom{gap:8px}.player-readout{width:135px}.gadget-readout{min-width:130px}.gadget-readout strong{font-size:8px}.gadget-readout>span{font-size:23px}.action-buttons{gap:8px}.joystick{width:115px;height:115px}.joystick-knob{top:34px;left:34px}.fire-button{width:78px;height:78px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.hud-left{display:flex;gap:8px}.rotate-hint{display:none}
@media(max-width:600px) and (orientation:portrait){.rotate-hint{display:block;position:absolute;bottom:22px;left:50%;transform:translateX(-50%);font-size:8px;color:#355d4c;white-space:nowrap}.connection-badge{font-size:6px}.touch-controls{bottom:48px}}

.radar-3d{position:absolute;right:22px;top:105px;width:120px;height:75px;border:2px solid #fff8dfcc;border-radius:7px;background:#243f3c73;box-shadow:0 2px 8px #20383120;pointer-events:none;z-index:2}.radar-3d i{position:absolute;width:5px;height:5px;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #15352a}.radar-3d .you{width:7px;height:7px;box-shadow:0 0 0 2px #fff9cc}.webgl-note{position:absolute;inset:0;display:grid;place-content:center;padding:40px;background:#223b37;color:#fff5db;text-align:center;font-size:17px;line-height:1.6}.stage{background:#a9c4c2}.playing .radar-3d[hidden]{display:none}@media(max-width:900px){.radar-3d{top:78px;right:17px;width:88px;height:55px}}@media(max-width:600px) and (orientation:portrait){.radar-3d{top:90px;width:80px;height:50px}}
.boost-button{position:relative;--dash-progress:100%;opacity:1}.boost-button::before{content:'';position:absolute;inset:-6px;border-radius:50%;background:conic-gradient(#fff8b5 var(--dash-progress),#2c4f4540 0);mask:radial-gradient(transparent 62%,#000 65%);pointer-events:none}.boost-button.cooling{opacity:1;background:#a9b8a9;color:#304941;box-shadow:0 4px 0 #647e69}.boost-button.cooling b{font-size:19px}.boost-button.dashing{background:#fff0a1}.boost-button b{font:inherit;line-height:1.1}.desktop-hint strong{font-size:8px;color:#36746c;margin-left:3px}#aim-status{font-size:7px;color:#366e62;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:900px){#aim-status{max-width:145px;font-size:6px}}
/* Stunt garage and equal-rules combat picker */
.garage{margin:24px 0}.vehicle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.vehicle-option{background:#e3e9e1;border:1.5px solid #cbd4c8;border-radius:9px;min-width:0;padding:0 3px 8px;overflow:hidden;transition:background .15s,transform .15s}.vehicle-option img{display:block;width:100%;height:74px;object-fit:contain}.vehicle-option strong{font-size:9px;display:block;white-space:nowrap}.vehicle-option.selected{border-color:#ec6942;background:#fff1d2;box-shadow:0 2px 0 #ec6942}.garage-note{font-size:9px;color:#5b7567;margin:10px 0 0}.combat-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}.combat-picker button{border:1.5px solid #c2cfca;padding:12px 8px;border-radius:7px;background:#e9eee6;text-align:left}.combat-picker b{display:block;font-size:12px;letter-spacing:1px}.combat-picker small{display:block;font-size:9px;margin-top:6px;color:#658274}.combat-picker .selected{background:#254c47;color:#fff5d7;border-color:#254c47}.combat-picker .selected small{color:#b9d7c2}#room-vehicle{width:100%;border:1.5px solid #c4cabb;background:#fffaf0;padding:12px;color:var(--ink);font:inherit;border-radius:5px}.showcase{position:sticky;top:24px}.home{gap:45px;padding-top:34px;grid-template-columns:minmax(340px,.8fr) minmax(0,1.3fr)}h1{font-size:clamp(70px,6vw,94px);margin-bottom:19px}.description{margin-bottom:18px}.stage{aspect-ratio:1.05}.jump-button{position:relative;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:none;user-select:none;pointer-events:auto;width:62px;height:62px;background:#5faac8;color:#fff8df;border:2px solid #b4eaff;box-shadow:0 4px 0 #30677f;font-size:27px;margin-bottom:8px;--jump-progress:100%}.jump-button b{font:inherit;line-height:1.1}.jump-button span{font-size:7px;font-weight:850;letter-spacing:.5px}.jump-button::before{content:'';position:absolute;inset:-6px;border-radius:50%;background:conic-gradient(#c5f4ff var(--jump-progress),#2c4f4540 0);mask:radial-gradient(transparent 62%,#000 65%);pointer-events:none}.jump-button.cooling{background:#96b9bf;color:#315967}.jump-button.cooling b{font-size:18px}.action-buttons{gap:15px}.timer-pill{max-width:220px}.timer-pill>span{line-height:1.35;max-width:210px}.desktop-hint{font-size:8px}.desktop-hint strong{font-size:7px}#jump-status{color:#397687}.playing .showcase{position:static}.melee-mode .action-buttons{gap:22px}.melee-mode .jump-button,.melee-mode .boost-button{width:74px;height:74px;font-size:30px}.melee-mode .jump-button span,.melee-mode .boost-button span{font-size:8px}.melee-mode .boost-button.cooling b,.melee-mode .jump-button.cooling b{font-size:21px}
@media(max-width:1100px){.home{grid-template-columns:minmax(300px,.85fr) minmax(0,1fr);gap:28px}.vehicle-option img{height:66px}.vehicle-option strong{font-size:8px}.stage{aspect-ratio:.9}}
@media(max-width:730px){.home{display:flex;gap:24px}.showcase{position:static;width:100%}.stage{aspect-ratio:1.25}.vehicle-option img{height:76px}.vehicle-option strong{font-size:9px}.garage{margin:23px 0}.garage-note{font-size:9px}.combat-picker button{padding:14px 10px}}
@media(max-width:900px) and (orientation:landscape){.jump-button{width:51px;height:51px;margin-bottom:8px;font-size:25px}.action-buttons{gap:12px}.boost-button{width:51px;height:51px}.hud-bottom{left:160px;right:250px;gap:7px}.player-readout{width:128px;padding:7px 9px}.gadget-readout{min-width:140px;padding:9px}.gadget-readout strong{font-size:8px}.melee-mode .hud-bottom{right:205px}.melee-mode .jump-button,.melee-mode .boost-button{width:65px;height:65px}.timer-pill>span{font-size:6px;max-width:120px}}
@media(max-width:600px) and (orientation:portrait){.action-buttons{position:relative;display:grid;grid-template-columns:53px 75px;grid-template-rows:55px 80px;gap:6px 15px}.jump-button{grid-column:1;grid-row:1;width:52px;height:52px;margin-bottom:0}.boost-button{grid-column:1;grid-row:2;align-self:center;width:52px;height:52px;margin-bottom:0}.fire-button{grid-column:2;grid-row:2;width:75px;height:75px;font-size:28px}.melee-mode .action-buttons{display:flex;gap:15px}.melee-mode .jump-button,.melee-mode .boost-button{width:62px;height:62px}.timer-pill>span{max-width:105px;font-size:6px}.score-pill{min-width:96px}.hud-bottom{margin-bottom:190px}.gadget-readout{min-width:145px}.player-readout{width:150px}}
@media(max-width:600px) and (orientation:portrait){.hud-top{gap:8px}.hud-left{gap:4px}.hud-left .hud-button{width:38px;padding:10px 0}.score-pill{position:static;transform:none;min-width:0;flex:1;padding:8px 4px}.score-pill span{font-size:6px;letter-spacing:.7px}.timer-pill{width:115px;min-width:0;padding:8px 5px;flex-shrink:0}.score-pill strong,.timer-pill strong{font-size:25px}.score-pill em{margin:0 5px}}
/* Thumb-first controls: a floating, precise steering pad and two actions. */
.playing .stage,.playing #game{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.shots-toggle{position:absolute;top:76px;left:22px;display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 11px;border:1px solid #b9d9cd;border-radius:19px;background:#f5f8e9ed;box-shadow:0 2px 0 #243b3733;color:#254a42;font-size:8px;font-weight:850;letter-spacing:.7px;z-index:6;touch-action:manipulation}
.shots-toggle i{width:7px;height:7px;background:#30a883;border-radius:50%;box-shadow:0 0 0 3px #30a88320}.shots-toggle b{font-size:8px}.shots-toggle.shots-off{background:#ddded3;color:#697a71;border-color:#bbc3b9}.shots-toggle.shots-off i{background:#83958c;box-shadow:none}
.event-feed{top:124px}.status-banner{pointer-events:none}.floating-stick{display:none!important;position:absolute;width:204px!important;height:204px!important;transform:translate(-50%,-50%);border:2px solid #fff9e6aa;background:radial-gradient(circle,#fff8e815 50%,#fff8e840 100%);box-shadow:0 0 0 6px #184c4920,inset 0 0 24px #fff6de22;pointer-events:none!important;z-index:8}
.floating-stick.active{display:block!important}.floating-stick .joystick-ring{inset:22px;border:1px dashed #fff9e699}.floating-stick .joystick-knob{width:46px;height:46px;left:77px;top:77px;background:#fff8e7cc;border:3px solid #fffbed;box-shadow:0 4px 12px #204c4566}
.drive-hint{display:none;position:absolute;left:max(26px,env(safe-area-inset-left));bottom:55px;align-items:center;gap:9px;color:#fffbea;text-shadow:0 2px 3px #234842;pointer-events:none;opacity:.86}.drive-hint>b{font-size:33px;font-weight:400}.drive-hint span{font-size:8px;font-weight:850;letter-spacing:1px}.drive-hint small{display:block;font-size:7px;margin-top:5px;letter-spacing:1.5px}.drive-hint.steering{opacity:0}
.touch-controls{justify-content:flex-end}.action-buttons,.melee-mode .action-buttons{display:flex;position:static;gap:20px;align-items:center}.action-buttons .jump-button,.action-buttons .boost-button{width:84px;height:84px;margin:0;font-size:34px;box-shadow:0 6px 0 #163e4766,inset 0 0 0 3px #ffffff26}.action-buttons .jump-button span,.action-buttons .boost-button span{font-size:9px;letter-spacing:1px}.action-buttons .cooling b{font-size:24px}.boost-button{background:#f0cc4b;color:#3d4937}.jump-button{background:#44aace}.vehicle-option:disabled{cursor:default}
.results{z-index:20}
.recovery-status{display:block;margin-top:7px;font-size:7px;letter-spacing:.55px;color:#4d7569}.player-readout.recovering{border-color:#59d29b;box-shadow:0 0 0 3px #64dca84d}.recovering .recovery-status{color:#0b8d5e}.super-meter{margin-top:7px;padding-top:6px;border-top:1px solid #8daf9c50;position:relative;min-width:118px}.super-meter b{font-size:8px;color:#456b5d;letter-spacing:.7px;display:block}.super-meter small{display:block;font-size:6px;margin:3px 0 5px;color:#577c68;letter-spacing:.3px}.super-meter i{display:block;height:4px;border-radius:3px;background:linear-gradient(90deg,#9d73d6 0 var(--super-progress,100%),#c9d1bd var(--super-progress,100%) 100%)}.super-meter.ready b{color:#814cae}.super-meter.ready i{background:#a46ce0;box-shadow:0 0 6px #bf84e38c}.action-buttons .boost-button.super-ready{background:#ba87e8;color:#fff7ed;border-color:#ead1ff;box-shadow:0 6px 0 #6a4a92,inset 0 0 0 3px #ffffff26,0 0 18px #d8afffa6}.boost-button.super-ready::before{background:#e7c7ff}.action-buttons .boost-button.super-active{background:#fff2bd;color:#81529f;box-shadow:0 0 25px #ffe1af}.status-banner.danger{background:#ad4c36eb;color:#fff3cf;border:2px solid #ffd375;max-width:75%}.gadget-readout{align-items:flex-start}
@media(max-width:900px) and (orientation:landscape){.super-meter{min-width:115px;margin-top:5px;padding-top:4px}.super-meter b{font-size:7px}.super-meter small{font-size:6px}.recovery-status{font-size:6px}.gadget-readout{padding:8px}.hud-bottom,.melee-mode .hud-bottom{bottom:16px}}
@media(max-width:600px) and (orientation:portrait){.super-meter{min-width:103px}.super-meter b{font-size:7px}.super-meter small{font-size:6px}.recovery-status{font-size:6px}.hud-bottom{margin-bottom:148px}.status-banner.danger{top:135px;font-size:9px}}
@media(pointer:coarse),(max-width:900px){.drive-hint{display:flex}.shots-toggle{left:16px;top:69px;min-height:36px;padding:0 10px}.event-feed{top:115px}.touch-controls{bottom:max(30px,env(safe-area-inset-bottom))}.hud-bottom{margin-bottom:145px}}
@media(pointer:coarse) and (orientation:landscape),(max-width:900px) and (orientation:landscape){.hud-bottom,.melee-mode .hud-bottom{left:172px;right:225px;bottom:20px;margin:0;gap:7px}.action-buttons .jump-button,.action-buttons .boost-button{width:76px;height:76px}.drive-hint{bottom:45px}.gadget-readout{min-width:136px}.player-readout{width:122px}.shots-toggle{top:65px}.event-feed{top:109px;font-size:8px}}
@media(max-width:600px) and (orientation:portrait){.touch-controls{bottom:49px}.action-buttons,.melee-mode .action-buttons{gap:16px}.action-buttons .jump-button,.action-buttons .boost-button{width:72px;height:72px;font-size:32px}.drive-hint{left:18px;bottom:64px;gap:6px}.drive-hint>b{font-size:26px}.drive-hint span{font-size:6px;letter-spacing:.4px}.drive-hint small{font-size:6px;letter-spacing:.8px}.hud-bottom{margin-bottom:150px}.event-feed{top:115px}.shots-toggle{top:78px}.status-banner{top:129px;font-size:10px;max-width:78%}.floating-stick{opacity:.88}}
/* Clear match formats and room team choices. */
.match-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;background:transparent;padding:0}.match-picker button{grid-column:span 2;border:1px solid #c2cfca;background:#e9eee6;padding:11px 5px;border-radius:6px;font-size:11px}.match-picker button:nth-child(-n+2){grid-column:span 3}.match-picker button.selected{background:#254c47;color:#fff5d7}.match-picker button:disabled{opacity:.55}
.room-dialog select{width:100%;border:1.5px solid #c4cabb;background:#fffaf0;padding:10px;color:var(--ink);font:inherit;border-radius:5px;min-width:0}.room-rules{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.room-rules label{font-size:8px;letter-spacing:1px;font-weight:800;min-width:0}.room-rules select{margin-top:6px;font-size:11px;letter-spacing:0;font-weight:500}.room-rules select:disabled{opacity:.7}.player-slots.teams{align-items:start}.team-column{min-width:0;display:grid;gap:7px}.team-column h3{font-size:11px;padding:9px 10px;margin:0;border-radius:5px}.team-column.mint h3{background:#b6ecdb;color:#145247}.team-column.coral h3{background:#ffd0bb;color:#853b2c}.team-column .player-slot{padding:9px 7px}.player-slot.bot-seat{background:#eeeddf;color:#778372;font-style:italic}.player-slot small{white-space:nowrap}#lobby-error{margin-top:8px}.player-readout[data-team="mint"]{border-left:4px solid #25b995}.player-readout[data-team="coral"]{border-left:4px solid #f18360}
@media(max-width:380px){.room-rules{gap:8px}.room-rules select{font-size:10px;padding:8px 5px}.team-column h3{font-size:10px}.team-column .player-slot strong{font-size:9px}}
/* Keep the front-row audience visible; race scores sit below the minimap. */
.playing #stage[data-world="run"] .score-pill{position:absolute;left:auto;right:22px;top:190px;transform:none;min-width:120px}
@media(max-width:900px){.playing #stage[data-world="run"] .score-pill{right:17px;top:148px;min-width:88px;width:88px;padding:6px}.playing #stage[data-world="run"] .score-pill span{font-size:6px;letter-spacing:.7px}}
.player-readout.shielded{box-shadow:0 0 0 2px #69d9ed,inset 0 0 20px #b4f2ee55}.player-readout.shielded .recovery-status{color:#087a8b}
