:root{font-family:Arial,Helvetica,sans-serif;color:#152a43;background:#b3d2e3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}canvas{position:fixed;inset:0;width:100%;height:100%}header{position:fixed;left:36px;right:36px;top:28px;display:flex;justify-content:space-between;pointer-events:none}.brand{font-size:27px;line-height:.88;letter-spacing:-1.5px;font-weight:700}.brand b{font-size:42px}.brand span{color:#ff633a;font-size:20px;margin-left:4px}.round{text-align:right}.round>span{font-size:14px}.round strong{display:block;font-size:56px;letter-spacing:-3px}.round strong span{font-size:22px;letter-spacing:0}aside{position:fixed;right:36px;top:150px;width:190px;padding:18px;background:#f0f7f4df;border-radius:14px}h2{font-size:16px;margin:0 0 14px}ol{padding:0;list-style:none;margin:0}li{display:flex;justify-content:space-between;font-size:13px;padding:8px 0;border-top:1px solid #152a4318}li.me{font-weight:bold}#connection{font-size:11px;color:#4c6472}button{cursor:pointer;border:0;background:#17394d;color:#fff;font:inherit;font-weight:bold;padding:13px 18px;border-radius:8px}button:hover{background:#285d76}button:focus-visible,input:focus-visible{outline:3px solid #ff633a;outline-offset:3px}#invite{padding:9px 11px;font-size:11px;width:100%}#welcome{position:fixed;inset:0;display:flex;align-items:center;padding:6vw;background:linear-gradient(90deg,#e9f4f5f5,#e9f4f5dd 35%,transparent 75%)}#welcome.hidden{display:none}.intro{max-width:660px}.pill{display:inline-block;border:1px solid #64828b;border-radius:30px;padding:9px 15px;font-size:13px}h1{font-size:clamp(36px,5.1vw,74px);line-height:1.01;letter-spacing:-3px;margin:24px 0}p{font-size:16px;line-height:1.65}label{display:block;font-size:12px;margin:28px 0 8px}.entry{display:flex;gap:8px}input{border:1px solid #94aeb8;border-radius:8px;padding:15px;font:inherit;width:210px;background:#fff}.entry button{background:#ed5935}.instructions{display:flex;gap:25px;margin:25px 0;font-size:12px}kbd{display:inline-block;font:inherit;font-weight:bold;padding:5px 7px;background:#ffffffa8;border-radius:4px}small{font-size:12px;color:#536976}footer{position:fixed;bottom:24px;left:36px;right:36px;display:flex;align-items:center;justify-content:space-between;font-size:12px}footer button{padding:8px 12px;font-size:12px}#notice{position:fixed;top:28px;left:50%;transform:translateX(-50%);background:#17394dec;color:white;padding:14px 24px;border-radius:12px;text-align:center;max-width:50%;font-weight:bold}#notice:empty{display:none}#touch{display:none} @media(pointer:coarse){#touch{position:fixed;bottom:75px;left:20px;right:20px;display:flex;align-items:end;justify-content:space-between;touch-action:none}#touch>div{text-align:center}#touch button{min-width:48px;margin:2px;background:#17394da8}footer>span:first-child{display:none}}@media(max-width:650px){header{left:20px;right:20px;top:20px}aside{right:15px;top:125px;width:140px;padding:12px}.brand{font-size:20px}.brand b{font-size:30px}.round strong{font-size:42px}h1{letter-spacing:-1.5px}#welcome{padding:24px;background:#e9f4f5ed;z-index:2}.entry{flex-direction:column;max-width:300px}input{width:100%}.instructions{gap:10px;flex-wrap:wrap}footer{left:20px;right:20px}#notice{top:90px;font-size:12px;max-width:65%;left:35%}}

#mobile-join{display:flex;align-items:center;gap:18px;margin-top:20px}#mobile-join img{border-radius:8px;flex-shrink:0}#mobile-join b{font-size:16px}#mobile-join p{font-size:12px;margin:7px 0}#join-url{font-size:14px;color:#174d67;overflow-wrap:anywhere}#welcome{overflow:auto}#touch button{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none} @media(max-height:750px){#welcome{align-items:flex-start;padding-top:24px}h1{font-size:40px;margin:16px 0}.intro>p{font-size:14px}label{margin-top:16px}.instructions{margin:16px 0}#mobile-join img{width:104px;height:104px}}

footer>div{display:flex;align-items:center;gap:8px}.volume{display:flex;align-items:center;gap:7px;margin:0;font-size:12px}.volume input{width:80px;padding:0;accent-color:#ed5935}@media(max-width:650px){#height{display:none}}

#garage{margin:18px 0}#garage h2{margin-bottom:5px}#progress{font-size:12px;margin:5px 0 10px}#skins{display:flex;gap:8px;flex-wrap:wrap}#skins button{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#dae7e9;color:#17394d;font-size:12px;border:2px solid transparent}#skins button[aria-pressed=true]{border-color:#ef6039}#skins button:disabled{opacity:.55;cursor:default}.skin-swatch{width:25px;height:25px;border-radius:50%;background:linear-gradient(140deg,#fff 0%,#506375 30%,#fff 48%,#182e42 64%,#b6d8e5 100%);box-shadow:inset -2px -2px 4px #152a4366}.skin-swatch.aurora{background:linear-gradient(135deg,#ecffff,#35ccb4,#854ccf,#d1f6ff)}.skin-swatch.gold{background:linear-gradient(135deg,#fff9ca,#966022,#fff3a0,#5c3110)}.skin-swatch.legendary{background:conic-gradient(#ffffa0,#fc65ce,#8a78ff,#55f0eb,#ffffa0)}#victory{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;min-width:320px;max-width:90vw;text-align:center;padding:26px 40px;border-radius:24px;background:#f2fbf4ee;box-shadow:0 18px 100px #16334966;border:2px solid #fff8bc;pointer-events:none}#victory[hidden]{display:none}.trophy{font-size:65px;line-height:1;color:#d8931f;text-shadow:0 0 25px #ffd96d}#victory h2{font-size:36px;margin:5px 0 12px;letter-spacing:-1px}#victory>strong{font-size:34px;color:#c87714}#victory p{font-size:13px;margin:10px 0}#victory-scores{margin:16px 0;font-size:14px}#victory-scores div{display:flex;justify-content:space-between;gap:25px;padding:4px}#welcome{z-index:2}@media(max-height:850px){#welcome{align-items:flex-start}.intro{padding-bottom:25px}}

#live-qr{position:fixed;right:26px;bottom:80px;z-index:4;background:#f4faf8;padding:12px;border-radius:12px;box-shadow:0 5px 22px #1234;width:194px;text-align:center}#live-qr summary{font-size:12px;font-weight:bold;cursor:pointer;list-style:none}#live-qr img{display:block;margin:8px auto}#live-qr a{display:block;font-size:11px;color:#17394d}#live-qr small{display:block;font-size:10px;margin-top:7px}#live-qr:not([open]){width:auto}@media(max-width:650px){#live-qr{right:12px;bottom:170px;width:150px;padding:8px}#live-qr img{width:132px;height:132px}#live-qr summary{font-size:11px}#live-qr a{font-size:9px}}

#live-qr[hidden]{display:none}#match-picker{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px;font-size:12px}#match-picker button{padding:8px 11px;font-size:11px}#room-code{width:110px;padding:8px;font-size:12px;text-transform:uppercase}#match-picker b{margin-right:5px} @media(pointer:coarse){body.playing #live-qr{display:none}#touch{z-index:1}#welcome,#live-qr{z-index:4}}

@media(max-width:650px){#touch{position:fixed;bottom:75px;left:16px;right:16px;display:flex;align-items:end;justify-content:space-between;touch-action:none}#touch>div{text-align:center}#touch button{min-width:48px;margin:2px;background:#17394de6}footer>span:first-child{display:none}aside{top:100px;width:125px}#scores{max-height:120px;overflow:auto}#match-picker{gap:6px}#match-picker b{flex-basis:100%}}

#team{font:inherit;padding:8px 12px;border:1px solid #94aeb8;border-radius:8px;background:#fff;color:#17394d}#team-scores{font-size:12px;font-weight:bold;margin-bottom:8px;color:#246485}

#welcome.hidden{display:none!important}#welcome.hidden img{display:none!important}

html{width:100%;height:100%;overflow:hidden;background:#a9cede}body{position:fixed;inset:0;width:100%;height:100%;height:100dvh;margin:0;overflow:hidden;overscroll-behavior:none}#game{position:fixed!important;top:0!important;left:0!important;right:auto!important;bottom:auto!important;width:100vw!important;height:100vh!important;height:100dvh!important;display:block;z-index:0;touch-action:none}header,aside,footer,#notice{z-index:1}#welcome{position:fixed;inset:0;height:100%;height:100dvh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#touch{padding-bottom:env(safe-area-inset-bottom)}footer{bottom:max(16px,env(safe-area-inset-bottom))}@media(max-height:500px) and (pointer:coarse){#touch{bottom:45px}aside{top:16px;right:85px;max-height:130px;overflow:auto}header .brand{font-size:16px}.brand b{font-size:24px}}

#game{height:var(--game-height,100dvh)!important}
@media(max-height:500px) and (max-width:1000px){#touch{position:fixed;bottom:48px;left:16px;right:16px;display:flex;justify-content:space-between;align-items:end;touch-action:none;z-index:1}#touch>div{text-align:center}#touch button{min-width:45px;margin:2px;background:#17394de6}aside{top:12px;right:90px;width:145px;max-height:155px;overflow:auto;padding:10px}footer>span{display:none}#scores{max-height:55px;overflow:auto}footer{justify-content:flex-end}#notice{top:12px}header{top:16px;left:20px;right:20px}.brand{font-size:18px}.brand b{font-size:28px}}

aside{top:115px;right:24px;width:auto;min-width:165px;max-width:220px;padding:0;background:#f0f7f4e8;border-radius:9px}#leaderboard summary{padding:11px 13px;cursor:pointer;font-size:12px;font-weight:bold;white-space:nowrap}#leaderboard[open]{padding:0 13px 13px}#leaderboard[open] summary{margin:0 -13px 10px}#leaderboard h2{font-size:13px}#leaderboard #scores{max-height:240px;overflow:auto}#leaderboard #invite{padding:7px 10px}#leaderboard #connection{font-size:10px}#leaderboard li{padding:5px 0;font-size:12px}@media(max-width:650px){aside{top:82px;right:12px;min-width:0;max-width:175px}#leaderboard summary{font-size:11px;padding:9px 10px}#leaderboard[open]{padding:0 10px 10px}#leaderboard[open] summary{margin:0 -10px 8px}}@media(max-height:500px) and (max-width:1000px){aside{top:12px;right:90px;max-height:210px}#leaderboard #scores{max-height:85px}}

#sensor-status{position:fixed;bottom:125px;left:50%;transform:translateX(-50%);max-width:min(90vw,430px);z-index:2;background:#163a4be8;color:white;border-radius:8px;padding:10px 14px;font-size:12px;text-align:center;pointer-events:none}#sensor-status:empty{display:none}footer>div{flex-wrap:wrap;justify-content:flex-end}#gyro,#calibrate{font-size:11px;padding:8px}#calibrate[hidden]{display:none}
#touch,#touch *,header,aside,footer,button,#notice,#victory{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}#touch,#touch button{touch-action:none}input,select,textarea{-webkit-user-select:auto;user-select:auto;touch-action:manipulation}

#sensor-status{pointer-events:auto;cursor:pointer}

body.gyro-active #touch{display:none!important}

footer>div{gap:5px}

#garage h3{font-size:13px;margin:14px 0 8px}#upgrades{display:flex;gap:8px;margin-bottom:8px}#upgrades button{font-size:12px;padding:8px 12px;background:#dae7e9;color:#17394d;border:2px solid transparent}#upgrades button[aria-pressed=true]{border-color:#ed5935}#upgrades button:disabled{opacity:.5}#feedback-dialog{border:0;border-radius:16px;max-width:360px;width:calc(100% - 32px);background:#edf7f4;color:#17394d;padding:24px}#feedback-dialog::backdrop{background:#17394d99}#feedback-dialog label{margin:14px 0 6px}#feedback-dialog select,#feedback-dialog textarea{display:block;width:100%;padding:10px;font:inherit;border:1px solid #95b0b5;border-radius:7px}#feedback-dialog button{font-size:12px;padding:10px}#feedback-dialog small{display:block;margin-top:14px}#feedback-status{font-size:13px}#jet:disabled{opacity:.5}#feedback-open,#jet{font-size:11px;padding:8px}

#help-dialog{max-width:440px;width:calc(100% - 48px);border:1px solid #9ecbd3;border-radius:18px;padding:24px;color:#17394d;background:#eff9f9}#help-dialog::backdrop{background:#10273766}#help-close{float:right}#help-dialog p{line-height:1.6}#victory{top:auto;bottom:80px;transform:translateX(-50%);min-width:0;width:min(340px,85vw);padding:12px 18px;background:#102c43b8;color:white;border:1px solid #ffe39988;box-shadow:none}#victory .trophy{font-size:28px}#victory h2{font-size:23px;margin:3px}#victory>strong{font-size:22px;color:#ffe399}#victory-scores{display:none}#victory p{margin:4px}

#lobby-close{margin-bottom:12px;display:block}#lobby-close[hidden]{display:none}@media(max-width:650px){#welcome{background:linear-gradient(90deg,#e9f4f5ed,#e9f4f5cf 65%,#e9f4f522)}.round>span{font-size:12px}}

#weather-label{display:block;color:#17394d;font-size:11px;background:#ffffff9c;border-radius:4px;margin-top:4px}#weather-label:empty{display:none}

#help-dialog .asset-credit{font-size:10px;line-height:1.4;margin-top:18px}.asset-credit a{color:#266783}

#shop-dialog{width:min(560px,calc(100% - 24px));max-height:85vh;max-height:85dvh;overflow:auto;border:1px solid #b5d6dc;border-radius:18px;padding:24px;color:#17394d;background:#eff9f9}#shop-dialog::backdrop{background:#10273788}#shop-close{float:right}#shop-balance{font-size:24px}#shop-lobby{display:block;background:#ed5935;margin:18px 0}.shop-note{font-size:12px}#shop-dialog #skins,#shop-dialog #upgrades{display:grid;grid-template-columns:1fr 1fr;gap:8px}#shop-dialog #upgrades button{font-size:12px}#shop-dialog button[aria-pressed=true]{outline:2px solid #ed5935}#attempts{display:block;font-size:12px;letter-spacing:0;margin-top:10px}#retry-panel{position:fixed;z-index:3;top:28%;left:50%;transform:translateX(-50%);width:min(340px,90vw);padding:16px;border-radius:16px;text-align:center;background:#153149dd;color:white}#retry-panel[hidden]{display:none}#retry-panel p{font-size:14px}#retry-button{background:#ed5935}#give-up{font-size:11px;margin-top:9px}#purchase-status{font-weight:bold;font-size:13px}
#ghost-panel{position:fixed;z-index:3;left:0;right:0;top:max(78px,env(safe-area-inset-top));width:100%;padding:14px 20px;text-align:center;background:linear-gradient(180deg,#153149f0,#153149d0);color:#fff;box-shadow:0 6px 24px #0006;pointer-events:none}#ghost-panel[hidden]{display:none}#ghost-panel p{margin:0 0 4px;font-size:15px;font-weight:bold}#ghost-panel strong{font-size:13px;font-weight:600;color:#ffd58a}
@media(max-width:650px){#ghost-panel{top:max(64px,env(safe-area-inset-top));padding:10px 16px}#ghost-panel p{font-size:13px}}

#ability-shop{display:grid;grid-template-columns:1fr 1fr;gap:12px}#ability-shop button{width:100%;font-size:12px}#ability-shop small{display:block;line-height:1.4;margin-top:5px}#ability-bar{position:fixed;z-index:1;right:18px;bottom:100px;display:flex;gap:5px;flex-wrap:wrap;max-width:360px;justify-content:flex-end}#ability-bar[hidden]{display:none}#ability-bar button{padding:9px;font-size:11px;background:#183a50dd}#ability-bar button:disabled{opacity:.45}#ability-bar button[hidden]{display:none}#action-status{position:fixed;bottom:155px;right:18px;max-width:300px;color:white;background:#17394ddd;font-size:12px;border-radius:7px;padding:6px;pointer-events:none}#action-status:empty{display:none}#shop-dialog button:disabled{opacity:.55}
.skin-swatch.obsidian{background:radial-gradient(circle at 30% 25%,#b999ff,#252036 48%,#090912)}.skin-swatch.copper{background:radial-gradient(circle at 30% 25%,#fff0cd,#d88d61 45%,#583323)}.skin-swatch.pearl{background:radial-gradient(circle at 30% 25%,#fff,#fff0da 48%,#a69bbd)}.skin-swatch.target{background:repeating-radial-gradient(circle,#e83939 0 3px,#fff0da 3px 6px)}

/* Mobile control layout: pad bottom-left, jump/jet/abilities bottom-right, secondary settings in one ⚙︎ sheet */
#settings-toggle{display:inline-flex;align-items:center;gap:6px;background:#fff;color:#17394d;border:2px solid #17394d;font-weight:bold;box-shadow:0 3px 12px #0005}
#settings-toggle .st-icon{font-size:17px;line-height:1}
#shop-open{background:#ed5935;font-weight:bold}
@media (min-width:651px) and (not (pointer:coarse)){footer>div>:is(.volume,#mute,#announcer-toggle,#gyro,#calibrate){display:none}
body.settings-open footer>div{position:fixed;right:36px;bottom:24px;display:grid;grid-template-columns:1fr 1fr;gap:8px;width:360px;padding:14px;border-radius:14px;background:#10283bf2;box-shadow:0 10px 40px #0007;z-index:3}
body.settings-open footer>div>*:not([hidden]){display:flex;align-items:center;justify-content:center;min-height:40px;margin:0}
body.settings-open footer>div>.volume{grid-column:1/-1;color:#fff;gap:8px}body.settings-open footer>div>.volume input{flex:1}body.settings-open footer>div>select{width:100%}}
#touch button,#jet,#ability-bar button,#settings-toggle,footer button,#game{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#touch,#touch button,#game{touch-action:none}
@media (pointer:coarse),(max-width:650px){:root{--safe-t:max(10px,env(safe-area-inset-top));--safe-l:max(12px,env(safe-area-inset-left));--safe-r:max(12px,env(safe-area-inset-right));--safe-b:max(12px,env(safe-area-inset-bottom))}
header{top:var(--safe-t);left:calc(var(--safe-l) + 56px);right:calc(var(--safe-r) + 56px)}.round{padding-top:52px}
header .brand{font-size:13px}header .brand b{font-size:21px}.round strong{font-size:34px;letter-spacing:-2px}.round strong span{font-size:15px}
aside{top:calc(var(--safe-t) + 80px);right:var(--safe-r);max-width:170px}
#my-standing{min-height:44px;display:flex;align-items:center}
#notice{top:calc(var(--safe-t) + 124px);left:50%;max-width:min(80vw,420px);font-size:12px;padding:10px 14px}
footer{left:auto;right:auto;bottom:auto;top:0;width:0;height:0}
footer>span,footer>div>*{display:none!important}
#settings-toggle{display:flex!important;justify-content:center;position:fixed;z-index:6;top:var(--safe-t);right:var(--safe-r)!important;left:auto!important;bottom:auto!important;width:46px;height:46px;padding:0;border-radius:50%;border-width:3px}#settings-toggle .st-icon{font-size:24px}#settings-toggle .st-label{display:none}
footer>div>#shop-open{display:flex!important;align-items:center;position:fixed;z-index:6;top:var(--safe-t);right:calc(var(--safe-r) + 54px);height:46px;padding:0 14px;border-radius:23px;font-size:14px;border:2px solid #fff;box-shadow:0 3px 12px #0005}
#touch{position:fixed;left:var(--safe-l);right:var(--safe-r);bottom:var(--safe-b);padding-bottom:0;display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none;z-index:1}
#touch>*{pointer-events:auto}
#touch button{min-width:52px;min-height:52px;margin:2px}
#touch>button[data-key=jump]{width:84px;height:84px;border-radius:50%;margin:0}
#jet{display:block!important;position:fixed;z-index:1;right:var(--safe-r);bottom:calc(var(--safe-b) + 94px);width:84px;min-height:48px;padding:6px;font-size:12px}
#ability-bar{right:var(--safe-r);bottom:calc(var(--safe-b) + 160px);max-width:84px;flex-direction:column-reverse;align-items:stretch;gap:12px}
#ability-bar button{min-height:44px;min-width:44px;font-size:12px}
#action-status{right:var(--safe-r);bottom:calc(var(--safe-b) + 256px)}
body.settings-open footer>div{position:fixed;z-index:3;left:var(--safe-l);right:var(--safe-r);bottom:var(--safe-b);width:auto;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;max-height:calc(100vh - var(--safe-t) - var(--safe-b) - 60px);max-height:calc(100dvh - var(--safe-t) - var(--safe-b) - 60px);overflow:auto;padding:14px;border-radius:16px;background:#10283bf2;box-shadow:0 10px 40px #0007}
body.settings-open footer>div>*:not(#jet):not(#feedback-open):not(#menu-open):not(#rival-toggle):not(#help):not([hidden]){display:flex!important;align-items:center;justify-content:center;min-height:44px;margin:0;font-size:14px}
body.settings-open footer>div>select{font-size:16px;width:100%}
body.settings-open footer>div>.volume{color:#fff;gap:8px;grid-column:1/-1}
body.settings-open footer>div>.volume input{flex:1;min-height:44px}
body.settings-open #touch,body.settings-open #jet,body.settings-open #ability-bar,body.settings-open #world-chat{visibility:hidden}
#welcome:not(.hidden)~#touch,#welcome:not(.hidden)~#ability-bar,#welcome:not(.hidden)~footer,#welcome:not(.hidden)~#world-chat,#welcome:not(.hidden)~#sound-hint,#welcome:not(.hidden)~#whats-new-badge,#welcome:not(.hidden)~#tutorial-hint,body:has(#welcome:not(.hidden)) .bet-toggle,body.has-welcome-open .bet-toggle{display:none!important}}
@media (pointer:coarse),(max-width:650px){header{left:calc(var(--safe-l) + 108px)}body #tutorial-hint{top:calc(var(--safe-t) + 180px)}body #tutorial-hint button{min-width:44px;min-height:44px}body.settings-open #tutorial-hint{visibility:hidden}body #sound-hint{min-height:44px;bottom:auto;top:calc(var(--safe-t) + 250px)}}
@media (pointer:coarse) and (max-height:500px){header{left:calc(var(--safe-l) + 108px)}body #tutorial-hint{top:calc(var(--safe-t) + 110px)}body #sound-hint{top:calc(var(--safe-t) + 170px)}aside{top:var(--safe-t);right:calc(var(--safe-r) + 170px)}#notice{top:calc(var(--safe-t) + 50px)}#touch button{min-width:48px;min-height:48px}#touch>button[data-key=jump]{width:76px;height:76px}#jet{bottom:calc(var(--safe-b) + 84px);width:76px}#ability-bar{bottom:calc(var(--safe-b) + 138px);max-width:none;right:calc(var(--safe-r) + 84px)}}
#welcome .share-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}#share-link{min-height:44px}
@media (pointer:coarse),(max-width:650px){body.hud-on:not(.spectating) #view-toggle{display:none}body #view-toggle{top:calc(var(--safe-t) + 56px)}}
@media (max-width:359px){footer>div>#shop-open{width:46px;padding:0;justify-content:center;font-size:0}footer>div>#shop-open::before{content:'🛒';font-size:20px}header .brand{flex:none}html body.hud-on header .brand #attempts{max-width:calc(100vw - var(--safe-l,12px) - var(--safe-r,12px) - 212px)}}
#game-diagnostics button,.whats-new-close,#shop-close,#help-close,#feedback-close,.hud-msg-close,.bet-toggle,#share-victory button{min-height:44px!important;min-width:44px!important}
@media (pointer:coarse),(max-width:650px){header .round>span,header .round>small{display:inline-block;width:fit-content;margin-left:auto;padding:2px 8px;border-radius:9px;background:#0f2536c9;color:#fff!important;-webkit-text-fill-color:#fff;text-shadow:none}header .round>span *{color:inherit!important;-webkit-text-fill-color:inherit}header .round{display:flex;flex-direction:column;align-items:flex-end;gap:3px}}
/* Audio unlock hint (client.js): hidden once the AudioContext runs. */
#sound-hint{position:fixed;left:50%;bottom:calc(var(--safe-b, 0px) + 18px);transform:translateX(-50%);z-index:60;padding:8px 14px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(10,14,24,.78);color:#fff;font:600 14px/1.2 system-ui,sans-serif;cursor:pointer;animation:sound-hint-pulse 1.6s ease-in-out infinite}
#sound-hint[hidden]{display:none}
@keyframes sound-hint-pulse{50%{opacity:.6}}
@media (prefers-reduced-motion:reduce){#sound-hint{animation:none}}

/* One-tap gyro centre, outside the settings sheet. */
#quick-calibrate{display:none;touch-action:manipulation}
@media(pointer:coarse),(max-width:650px){body.gyro-active #quick-calibrate{display:block;position:fixed;z-index:6;top:calc(var(--safe-t) + 56px);bottom:auto;left:var(--safe-l);right:auto;width:46px;height:46px;padding:0;border:3px solid #fff;border-radius:50%;background:#17394d;color:#fff;font-size:22px;line-height:1;box-shadow:0 3px 12px #0005}#calibrate-toast{position:fixed;z-index:6;left:calc(var(--safe-l) + 54px);top:calc(var(--safe-t) + 64px);padding:7px 12px;border-radius:14px;background:#17394df0;color:#fff;font:700 13px Arial,sans-serif;pointer-events:none;opacity:0;transition:opacity .2s}#calibrate-toast.show{opacity:1}body.settings-open #quick-calibrate,html.spectate #quick-calibrate{display:none}}

/* One direct switch between playing and watching the shared arena. */
#view-toggle{position:fixed;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:35;min-height:44px;padding:8px 16px;border-radius:22px;background:#102b3ee8;color:#fff;border:1px solid #8ac6da;cursor:pointer}#view-toggle[hidden]{display:none}
#watch-lobby{display:block;width:100%;margin:18px 0 0;background:#17394d;color:#fff;border:2px solid #ffcf49}
#watch-banner{position:fixed;z-index:95;top:max(10px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:8px 8px 8px 16px;border-radius:18px;background:#ffcf49;color:#10232f;font:700 15px/1.25 system-ui,sans-serif;box-shadow:0 6px 22px #0007;max-width:calc(100vw - 24px)}
#watch-banner[hidden]{display:none}
#watch-banner button{min-height:48px;padding:10px 20px;border:0;border-radius:14px;background:#10232f;color:#fff;font:800 17px system-ui,sans-serif;cursor:pointer;white-space:nowrap}
html.spectate:has(#watch-banner:not([hidden])) #view-toggle{display:none!important}
#view-toggle.watch-armed,.hud-watch.watch-armed{background:#ffcf49!important;color:#10232f!important;border-color:#ffcf49!important}
@media (max-width:650px){#watch-banner{flex-direction:column;gap:6px;width:calc(100vw - 20px);padding:8px 10px;font-size:13px;text-align:center}#watch-banner button{width:100%}
html.spectate:has(#watch-banner:not([hidden])) header{transform:translateY(150px)}
html.spectate:has(#watch-banner:not([hidden])) aside{top:282px!important}
html.spectate:has(#watch-banner:not([hidden])) #world-chat{transform:translateY(150px)}}
@media (min-width:651px){html.spectate:has(#watch-banner:not([hidden])) #world-chat{transform:translateY(40px)}}
