:root{color-scheme:dark;font-family:ui-monospace,Consolas,monospace;color:#caffde;background:#030b07}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button{background:#39ff88;color:#05200e;border:0;padding:12px 16px;border-radius:8px;font-weight:bold;cursor:pointer}button:disabled{opacity:.45;cursor:default}button.secondary{background:#123823;color:#caffde}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid white;outline-offset:3px}[hidden]{display:none!important}#game{position:fixed;inset:0;width:100%;height:100%;touch-action:none}#panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(590px,94vw);max-height:92dvh;overflow:auto;padding:28px;border:1px solid #267c47;border-radius:18px;background:rgba(4,19,11,.96);box-shadow:0 0 80px #39ff8818}h1{margin:10px 0;font-size:32px}.eyebrow{color:#39ff88;font-size:11px;letter-spacing:1px}.hint{font-size:12px;color:#89b899;line-height:1.5}p{line-height:1.5}label{display:block;margin:14px 0;font-size:13px}input,select{display:block;width:100%;padding:10px;margin-top:7px;border:1px solid #245c38;border-radius:7px;background:#071e10;color:#dcffe8}.actions{display:flex;gap:10px;flex-wrap:wrap}#status{font-size:12px;color:#b6d4bf}#roster{white-space:pre-line}summary{cursor:pointer;color:#89b899;font-size:12px}#hud{position:fixed;top:max(10px,env(safe-area-inset-top));left:12px;font-size:12px;background:#031008db;padding:8px;border-radius:8px;pointer-events:none;max-width:calc(100vw - 180px);white-space:pre-line}#radar{position:fixed;right:12px;top:max(10px,env(safe-area-inset-top));border:1px solid #39ff88}#radar canvas{display:block}#leave{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);font-size:11px;background:#153c24;color:#caffde;padding:8px}#effects{position:fixed;left:12px;top:100px;font-size:12px;pointer-events:none;white-space:pre-line}#feed{position:fixed;right:12px;top:175px;max-width:350px;font-size:11px;text-align:right;pointer-events:none;white-space:pre-line}#joy{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:max(24px,env(safe-area-inset-left));width:120px;height:120px;border-radius:50%;border:2px solid #39ff8877;background:#062d1855;touch-action:none}#stick{position:absolute;top:50%;left:50%;width:44px;height:44px;border-radius:50%;background:#39ff88aa;transform:translate(-50%,-50%);pointer-events:none}#fire{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(38px,env(safe-area-inset-bottom));width:90px;height:90px;border-radius:50%;background:#39ff8877;border:2px solid #39ff88;color:#dcffe8;touch-action:none;user-select:none}#fire:active{background:#39ff88;color:#001c09}@media(max-height:500px){#panel{padding:16px}h1{font-size:24px}#radar canvas{width:90px;height:90px}#feed{top:108px}#hud{max-width:calc(100vw - 125px)}#joy{width:100px;height:100px;bottom:16px}#fire{width:74px;height:74px;bottom:28px}}@media(max-width:600px){#radar canvas{width:90px;height:90px}#hud{max-width:calc(100vw - 120px);font-size:10px}#feed{top:112px;font-size:10px}#panel{padding:20px}}
/* Rocket Melee identity: mint, ivory, charcoal, pixel edges. */
:root{color:#f6f5eb;background:#050e13}button{border-radius:2px;border:2px solid #b0ffdd;background:#58e5a4;color:#082627;box-shadow:4px 4px 0 #103c40;min-height:44px}button.secondary{background:#16383c;color:#ecfff5;border-color:#377a71}button:hover{filter:brightness(1.13)}
#intro{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:22px;background:radial-gradient(ellipse at center,#06121a33,#02080b99);text-align:center;gap:12px}
.introLogo{width:min(460px,70vw);max-height:53dvh;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 8px 1px #00171b)}
.demoLabel{position:absolute;left:18px;top:max(18px,env(safe-area-inset-top));font-size:10px;letter-spacing:2px;color:#b4dfd1;background:#081b24c9;padding:8px;border-left:3px solid #58e5a4}
.tagline{font-size:clamp(12px,2vw,16px);margin:0 0 6px;text-shadow:0 2px 3px black}.introFoot{font-size:10px;color:#b6cec9;letter-spacing:1px;margin:8px 0 0}#enter{font-size:15px;padding:15px 22px}
#panel{width:min(540px,94vw);padding:22px;border:2px solid #60d6b3;border-radius:3px;background:#071820f5;box-shadow:8px 8px 0 #01090dcc}.menuLogo{display:block;width:210px;max-height:150px;object-fit:contain;margin:auto;image-rendering:pixelated}.menuLead{text-align:center;margin:10px 0;font-size:13px;color:#b1e8d0}.textButton{display:block;margin:14px auto 0;background:transparent;color:#a3c9c3;border:0;box-shadow:none;font-size:11px;text-decoration:underline}.srOnly{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#matchCard{position:fixed;top:15%;left:50%;transform:translateX(-50%);width:min(360px,80vw);z-index:10;pointer-events:none;text-align:center}.matchInner{padding:12px 18px;background:#071820db;border:2px solid #60d6b3;box-shadow:5px 5px 0 #001316}#matchArt{display:block;width:210px;height:102px;object-fit:contain;margin:0 auto 5px;image-rendering:pixelated}#matchTitle{font-size:clamp(18px,4vw,28px);margin:6px 0;color:#f6f5eb;text-shadow:2px 2px #246653}#matchDetail{font-size:12px;line-height:1.6;margin:8px 0;color:#b5dfd2}#matchCard.modal{inset:0;transform:none;width:auto;display:grid;place-items:center;pointer-events:auto;background:#020a10a6;padding:20px}#matchCard.modal .matchInner{width:min(460px,94vw);padding:25px}#matchCard.modal #matchArt{width:290px;max-width:100%;height:160px}#matchClose{margin-top:12px}
@media(max-height:500px){#intro{gap:5px;padding:10px}.introLogo{max-height:45dvh;width:270px}.tagline{font-size:12px}#enter{padding:10px 18px;font-size:12px}.introFoot{font-size:9px}.demoLabel{font-size:8px}.menuLogo{width:130px;max-height:85px}#panel{padding:14px 20px}#matchCard{top:8%;width:290px}#matchArt{height:58px;width:145px}#matchTitle{font-size:19px}#matchDetail{margin:4px 0}#matchCard.modal .matchInner{padding:14px}#matchCard.modal #matchArt{height:95px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.menuLogo.compactLogo{width:min(360px,100%);height:auto;max-height:120px}@media(max-height:500px){.menuLogo.compactLogo{width:260px;max-height:86px}}
.audioOptions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.audioOptions button{font-size:11px;padding:8px}.killEntry{margin:4px 0;padding:8px 10px;background:#06121ded;border-left:3px solid #58e5a4;color:#f6f5eb;font-size:12px;line-height:1.5;overflow-wrap:anywhere}#feed{max-width:min(350px,70vw);white-space:normal;z-index:3}#commentary{position:fixed;top:22%;left:50%;transform:translateX(-50%);text-align:center;font-size:clamp(13px,2vw,19px);font-weight:bold;color:#fff2ae;text-shadow:2px 2px #051019;pointer-events:none;max-width:80vw}#commentary:not(:empty){background:#071820d9;padding:10px 16px;border:1px solid #615b30}#scoreButton{position:fixed;bottom:12px;left:12px;font-size:11px;padding:7px;z-index:4}#spectatorBar{position:fixed;bottom:64px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:#071820e8;padding:5px;z-index:4}#spectatedName{font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#spectatorBar button{padding:4px 12px}#resultScores{display:none;font-size:11px;margin:8px}#matchCard.modal #resultScores{display:inline-block}#scorePanel{position:fixed;inset:0;z-index:30;background:#020a10c9;display:grid;place-items:center;padding:12px}.scoreInner{width:min(740px,96vw);max-height:92dvh;overflow:auto;padding:20px;background:#071820;border:2px solid #58e5a4}#scoreNote{font-size:12px;color:#aac5bc}#scoreRows{font-size:12px}.scoreRow,.scoreHeader{display:grid;grid-template-columns:50px minmax(85px,1fr) 65px 72px 70px;align-items:center;gap:8px;padding:10px 5px;border-bottom:1px solid #254238}.scoreRow span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scoreHeader{font-size:11px;color:#aac5bc}.scoreRow.me{background:#173c32;border-left:3px solid #58e5a4}#scoreClose{margin-top:18px}#scoreHistoryFilters button{font-size:12px;margin:5px}#joy:not([hidden])~#scoreButton{bottom:160px}@media(max-width:600px){.scoreInner{padding:12px}.scoreRow,.scoreHeader{grid-template-columns:35px minmax(70px,1fr) 46px 52px 56px;gap:4px;font-size:10px}.scoreHeader{font-size:9px}.killEntry{font-size:11px}#scoreButton{bottom:160px}#feed{top:116px;max-width:65vw}#commentary{top:34%;font-size:13px}}@media(max-height:500px){#scoreButton{bottom:132px}.scoreInner{max-height:94dvh}#commentary{top:8%;max-width:45vw}#feed{max-width:36vw}}
.scoreInner{display:flex;flex-direction:column;overflow:hidden}.scoreInner h2{margin:0 0 8px;font-size:22px}.scoreInner h2,.scoreInner>p,.scoreHeader,#scoreHistoryFilters,#scoreClose{flex-shrink:0}#scoreRows{overflow:auto;min-height:0}#scoreClose{align-self:flex-start}.scoreHeader{background:#0f252a}#scoreRows .scoreRow{min-height:38px}

/* Controls stay near the radar; the lower corners are reserved for play. */
#gameMenuButton{position:fixed;z-index:12;right:max(12px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));width:44px;height:44px;padding:3px;font-size:24px;background:#102a36;color:#baffdc;border-color:#408c7c}
#radar{top:calc(max(10px,env(safe-area-inset-top)) + 52px)}#feed{top:225px}
#gameMenu{position:fixed;right:12px;top:64px;z-index:20;width:min(310px,calc(100vw - 24px));max-height:calc(100dvh - 85px);overflow:auto;background:#071820f7;border:2px solid #60d6b3;padding:16px;box-shadow:5px 5px #001316}
#gameMenu h2{font-size:18px;margin:0}#gameMenu>button{display:block;width:100%;margin:9px 0;text-align:left;font-size:13px;min-height:44px}#gameMenu p{font-size:12px}#gameMenu #leave,#gameMenu #scoreButton{position:static;transform:none;left:auto;bottom:auto;font-size:13px;padding:10px}#gameMenu #leave{background:#402329;color:#ffd8ce;border-color:#a86561}
#effects{top:112px;display:flex;gap:5px;flex-direction:column;max-width:195px;white-space:normal}.effectBadge{display:grid;grid-template-columns:24px 1fr 25px;gap:5px;align-items:center;padding:6px 8px;background:#071820ed;border-left:3px solid var(--effect-color);font:12px system-ui;color:#f4fff9}.effectBadge small{display:block;font-size:10px;color:#c2d8d6}.effectBadge b{font-size:12px}.effectBadge i{font-style:normal;font-size:19px;color:var(--effect-color)}.effectBadge time{font-weight:bold}
@media(max-width:600px),(max-height:500px){#feed{top:164px;max-width:46vw}.effectBadge{padding:4px 6px;font-size:11px}.effectBadge b{font-size:11px}.effectBadge small{font-size:10px}#effects{top:100px;max-width:176px}}
@media(max-height:500px){#effects{left:12px;top:88px;max-width:176px}.effectBadge small{display:none}#feed{max-width:33vw}#gameMenu{max-height:calc(100dvh - 75px)}}
.effectBadge{--effect-color:#b9eddf}.effectBadge[data-effect="TIR ×2"]{--effect-color:#ffb28a}.effectBadge[data-effect="BOUCLIER"]{--effect-color:#79cfff}.effectBadge[data-effect="VITESSE"]{--effect-color:#7affb5}.effectBadge[data-effect="CANONS NOVA"]{--effect-color:#ffd24d}

/* Requested overlay: radar stays high; only the menu icon overlaps its top-right corner. */
#radar{top:max(10px,env(safe-area-inset-top))}#gameMenuButton{top:max(6px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));background:transparent;border:0;box-shadow:none;font-size:0;padding:6px;width:44px;height:44px}#gameMenuButton::before{content:'☰';display:grid;place-items:center;width:32px;height:32px;background:#102a36ed;border:1px solid #408c7c;font-size:22px;color:#baffdc}#feed{top:175px}
@media(max-width:600px),(max-height:500px){#feed{top:116px}}

/* Arcade typography is bundled locally; no web font service is needed. */
@font-face{font-family:VT323;src:url('assets/fonts/VT323-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{font-family:VT323,monospace;background:#07121d;color:#f5f1d8;font-size:20px}
button,input,select{border-radius:0}button{font-size:20px;font-weight:400;border-color:#8fe9bc;box-shadow:4px 4px 0 #0a3035}button:active{transform:translate(2px,2px);box-shadow:2px 2px 0 #0a3035}
#intro{background:#030d1c45;gap:14px}.introLogo{filter:drop-shadow(6px 6px 0 #03111c);width:min(420px,75vw)}
.demoLabel{font-size:18px;letter-spacing:1px;border:2px solid #395d65;background:#071520;padding:5px 10px;box-shadow:3px 3px #020b14}
.tagline{font-family:VT323,monospace;font-size:22px;color:#f5f1d8;text-shadow:2px 2px #03111c;letter-spacing:1px}
#enter{font-size:30px;min-width:220px;min-height:54px;padding:6px 28px;border:3px solid #a2edc4;box-shadow:6px 6px #11363c;letter-spacing:3px}#enter::before{content:'▶';font-size:19px;margin-right:16px}
.introFoot{font-size:17px;letter-spacing:1px;background:#071520d9;padding:3px 10px;color:#98bec0}
#panel,.matchInner,.scoreInner,#gameMenu{border-radius:0;background:#091b28f5;border:2px solid #5b9d97;box-shadow:6px 6px #020c17}
.menuLead,label,summary,#status,.hint{font-family:VT323,monospace;font-weight:400;font-size:18px}.hint,#status{font-size:17px}input,select{font-size:20px}.audioOptions button,#gameMenu>button,#gameMenu #scoreButton,#gameMenu #leave,#matchClose,#resultScores,#scoreClose{font-family:VT323,monospace;font-size:20px;font-weight:400}#gameMenu p,#matchDetail{font-size:17px}#gameMenu h2,#matchTitle{font-family:VT323,monospace;font-weight:400;font-size:28px}
#hud{border-radius:0;border-left:2px solid #4c877d}.effectBadge{font-family:VT323,monospace;font-size:18px;background:#091b28e8}.effectBadge b{font-size:18px;font-weight:400}.effectBadge small{font-size:15px}.effectBadge time{font-size:18px;font-weight:400}.effectBadge i{font-family:monospace}
@media(max-width:600px){.demoLabel{font-size:15px}.tagline{font-size:19px}.introFoot{font-size:14px}.effectBadge b,.effectBadge time{font-size:16px}.effectBadge small{font-size:14px}.effectBadge{grid-template-columns:19px 1fr 22px;gap:4px}}
@media(max-height:500px){#intro{gap:5px}.introLogo{max-height:43dvh;width:280px}.tagline{font-size:18px}#enter{font-size:24px;min-height:44px;padding:3px 24px}.introFoot{font-size:14px}.demoLabel{font-size:14px}.effectBadge b,.effectBadge time{font-size:16px}#gameMenu>button{margin:5px 0;padding:6px 10px}.menuLead{margin:5px 0}}

/* Responsive combat HUD: essential information only, details in the menu. */
#hud{font:18px/1.05 VT323,monospace;max-width:calc(100vw - 118px);padding:5px 8px;background:#06131bbb}
#effects{top:64px;max-width:170px;gap:3px}.effectBadge{min-height:27px;padding:3px 6px;grid-template-columns:18px minmax(0,1fr) 25px;gap:5px}.effectBadge b,.effectBadge time{font-size:16px;white-space:nowrap}.effectBadge small{display:none}.effectBadge i{font-size:16px}.effectBadge span{min-width:0}
.killEntry{background:none;border:0;padding:1px 0;margin:3px 0;font:17px/1.05 VT323,monospace;text-shadow:-1px -1px #020912,1px -1px #020912,-1px 1px #020912,1px 1px #020912,0 2px #020912;overflow-wrap:anywhere}
#feed{top:174px;max-width:min(330px,36vw)}#commentary{font:19px/1.05 VT323,monospace;max-width:min(520px,70vw)}
#matchCard.modal .matchInner{max-height:calc(100dvh - 24px);overflow:auto}#matchClose,#resultScores{max-width:100%;white-space:normal}#scoreClose{min-height:44px}
@media(max-width:600px){#effects{top:64px;max-width:151px}#feed{top:112px;max-width:calc(100vw - 184px);right:10px}.killEntry{font-size:16px}#feed .killEntry:nth-child(n+4){display:none}#hud{font-size:17px}#radar canvas{width:84px;height:84px}#scoreRows .scoreRow,.scoreHeader{grid-template-columns:28px minmax(0,1fr) 40px 44px 46px;font-size:12px}.scoreHeader{font-size:11px}.scoreInner{width:calc(100vw - 20px);padding:10px}#scoreNote{font-size:15px;line-height:1.1;margin:4px 0 8px}#scoreClose{margin-top:8px}.scoreInner h2{font-size:22px}}
@media(max-width:350px){#effects{max-width:144px}#feed{max-width:calc(100vw - 166px)}.killEntry{font-size:15px}#joy{width:100px;height:100px;left:16px;bottom:max(16px,env(safe-area-inset-bottom))}#fire{width:76px;height:76px;right:16px;bottom:max(28px,env(safe-area-inset-bottom))}.demoLabel{font-size:14px}.tagline{font-size:17px}.introFoot{font-size:13px}}
@media(max-height:500px){#effects{top:61px;left:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:min(310px,55vw);gap:3px}.effectBadge{min-height:25px;padding:2px 5px;grid-template-columns:16px minmax(0,1fr) 22px;gap:3px}.effectBadge b,.effectBadge time{font-size:15px}#feed{top:108px;max-width:32vw}#feed .killEntry:nth-child(n+3){display:none}.killEntry{font-size:16px}#commentary{top:40%;max-width:55vw;font-size:16px}#commentary:not(:empty){padding:4px 8px}#spectatorBar{bottom:12px}#gameMenu{top:56px;max-height:calc(100dvh - 64px)}#gameMenu p{line-height:1.1;margin:8px 0}#gameMenu>button{min-height:44px}#matchCard{top:7%;width:min(320px,60vw)}#matchCard:not(.modal) .matchInner{padding:5px 10px}#matchCard:not(.modal) #matchArt{height:42px}#matchCard:not(.modal) #matchTitle{font-size:22px}#matchCard:not(.modal) #matchDetail{margin:3px 0;font-size:15px}#matchCard.modal #matchArt{height:64px}#matchCard.modal .matchInner{padding:10px 14px}#matchCard.modal #matchTitle{margin:3px 0;font-size:24px}#matchCard.modal #matchDetail{line-height:1.1;margin:4px 0}#matchClose,#resultScores{margin:4px;min-height:44px;padding:5px 10px}}
@media(min-width:2200px){.introLogo{width:min(620px,24vw)}#enter{font-size:36px;min-width:280px;min-height:64px}.tagline{font-size:28px}.introFoot{font-size:22px}.demoLabel{font-size:22px}#panel{width:660px;padding:28px}.menuLogo.compactLogo{width:440px;max-height:150px}#panel button,#panel input,#panel select{font-size:24px}#panel label,#panel summary,.menuLead{font-size:22px}#hud{font-size:22px}#radar canvas{width:180px;height:180px}#feed{top:205px}.killEntry{font-size:22px}}
@media(min-width:2200px){#effects{top:80px}}

/* Final 30 seconds: compact readable warning, no flashing overlay. */
#hud.finalAlert{color:#ff8992;text-shadow:0 2px 2px #000,1px 0 #000,-1px 0 #000}

/* Language selection stays compact, with real touch targets. */
.languageChoices{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:6px 0 12px}.languageChoices button{min-height:44px;min-width:86px;padding:6px 10px;font-size:21px;background:#0a2030;color:#c4d9e0;border:2px solid #345463;box-shadow:none}.languageChoices button[aria-pressed=true]{border-color:#79efb8;color:#b5ffdb;background:#12372d}.languageSetting{display:flex;align-items:center;gap:16px;margin:16px 0}.languageSetting select{min-height:44px;max-width:100%}
@media(max-height:500px){#intro .introLogo{max-height:32vh}#intro .tagline{margin:3px}#intro .introFoot{margin:5px;font-size:15px}.languageChoices{margin:3px}.languageChoices button{font-size:18px}}
.languageHint{margin:3px 0 5px;font-size:18px;color:#c7d8df}#languageOnboarding[hidden]{display:none}@media(max-height:500px){.languageHint{font-size:15px}}

#connectionNotice{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:45;width:min(390px,calc(100vw - 24px));padding:20px;background:#091b26;border:2px solid #77dec0;text-align:center;font:21px VT323,monospace}#connectionNotice p{font-size:19px;line-height:1.3}#connectionNotice button{min-height:44px;border-radius:0;font:20px VT323,monospace}

/* Gameplay gestures only; account fields and menus keep native text editing. */
#game,#joy,#fire,#raceSlots,#raceSlots *,.raceHudCanvas,.racePerspectiveCanvas{
 touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;
}
