:root{color-scheme:dark;--bg:#081e25;--panel:#102d34;--line:#ffffff15;--text:#f4f8ed;--muted:#97b2b3;--gold:#ffc46a;--mint:#a0ebc8;--p1:#ffd08a;--p2:#ff9aa9;--p3:#bc9aff;--p4:#a4df87}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 40% 0,#163a40 0,#081e25 60%);color:var(--text);font-family:Inter,"Avenir Next",Avenir,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.app-shell{max-width:1600px;margin:0 auto;padding:0 34px}.topbar{height:96px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{color:var(--text);text-decoration:none;display:flex;align-items:center;gap:12px;font-weight:950;letter-spacing:-1.2px;font-size:22px}.brand>svg{width:37px;height:37px}.brand-clash{color:var(--gold);margin-left:2px}.arena-name{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:1.8px;font-weight:750;color:#b4cac7}.status-dot{width:6px;height:6px;border-radius:50%;background:#a1e6b9;box-shadow:0 0 10px #a1e6b966}.prototype{font-size:9px;letter-spacing:1px;padding:5px 7px;border:1px solid #a1e6b922;border-radius:5px;color:#769a99;margin-left:7px}.header-actions{display:flex;align-items:center;gap:8px}.icon-button,.help-button{height:38px;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff12;background:#ffffff04;border-radius:10px;transition:background .2s}.icon-button{width:38px;color:#c2d8d0}.help-button{gap:13px;padding:0 13px;font-size:11px;font-weight:650;color:#d4e6db;margin-left:6px}.help-button span{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;border:1px solid #9bbbb4;color:#9bbbb4;font-size:10px}.icon-button:hover,.help-button:hover{background:#ffffff10}main{padding-bottom:24px}.game-stage{position:relative;width:100%;height:min(740px,calc(100dvh - 176px));min-height:480px;overflow:hidden;border:1px solid #638f822f;border-radius:20px;background:radial-gradient(ellipse at 50% 30%,#26757a,#102f38 65%,#09252b);isolation:isolate;box-shadow:0 25px 100px #0005}canvas{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none!important;touch-action:none}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#031b2c55,transparent 22%,transparent 75%,#031b2c99);z-index:1}.hud{position:absolute;top:20px;left:22px;right:22px;display:grid;grid-template-columns:1fr 145px 1fr;align-items:start;gap:12px;z-index:2;pointer-events:none}.team-side{display:flex;gap:10px}#players-right{justify-content:flex-end}.player-card{--player-color:var(--p1);display:flex;align-items:center;gap:10px;border:1px solid #b0dad525;border-top:2px solid var(--player-color);background:#09232be0;border-radius:12px;padding:10px 12px;min-width:130px;backdrop-filter:blur(12px);box-shadow:0 5px 14px #0002;transition:opacity .3s}.player-card.out{opacity:.38}.player-card[data-id="1"]{--player-color:var(--p2)}.player-card[data-id="2"]{--player-color:var(--p3)}.player-card[data-id="3"]{--player-color:var(--p4)}.avatar{width:38px;height:38px;border-radius:11px;background:#ffffff08;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}.avatar svg{width:100%;height:100%}.player-name{font-size:12px;font-weight:850;display:flex;gap:7px;align-items:baseline}.player-name small{font-size:8px;font-weight:650;letter-spacing:.6px;color:var(--player-color)}.hearts{display:flex;gap:3px;margin-top:5px}.heart{color:var(--player-color);font-size:12px;line-height:1}.heart.empty{color:#ffffff1a}.round-clock{text-align:center;padding-top:6px;text-shadow:0 2px 10px #08272f}.round-clock>div{font-size:8px;letter-spacing:1.6px;font-weight:750;color:#d3e9df;white-space:nowrap}.round-clock strong{display:block;font-size:39px;font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:-2px;line-height:1.3}.round-clock>span{font-size:7px;font-weight:750;letter-spacing:1.8px;color:var(--mint)}.round-clock.urgent strong{color:#ff9587}.world-labels{position:absolute;inset:0;pointer-events:none;z-index:2}.world-tag{position:absolute;transform:translate(-50%,-100%);padding:3px 7px;border-radius:5px;font-size:9px;letter-spacing:.8px;font-weight:900;background:#11242ce8;border:1px solid currentColor;box-shadow:0 2px 7px #0003;white-space:nowrap}.world-tag.you{background:#ffca72;color:#263127!important;border-color:#ffca72}.world-tag.near{box-shadow:0 0 15px #ffca7299}.lobby-panel{position:absolute;z-index:4;bottom:54px;right:40px;width:330px;padding:26px;background:linear-gradient(140deg,#122e34f5,#092229f5);border:1px solid #bbdacf2f;border-radius:18px;box-shadow:0 18px 55px #001b2866;backdrop-filter:blur(18px)}.panel-eyebrow{font-size:8px;font-weight:850;letter-spacing:1.9px;color:var(--mint);display:flex;align-items:center;gap:7px}.tiny-crate{font-size:14px;color:var(--gold)}h1{font-size:48px;line-height:1.02;letter-spacing:-2.3px;font-weight:900;margin:20px 0 15px}h1 em{font-style:normal;color:var(--gold)}.lobby-panel>p{font-size:12px;line-height:1.75;color:#b6ceca;margin:0 0 23px}.your-character{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:16px 0 20px}.your-character .avatar{width:40px;height:40px;background:#ffd18a14}.your-character small{font-size:7px;letter-spacing:1.5px;color:#90aaa7;display:block;margin-bottom:4px}.your-character strong{font-size:12px;font-weight:800}.your-character strong span{display:block;color:#8facaa;font-size:9px;font-weight:500;margin-top:3px}.you-chip{margin-left:auto;background:#ffc46a1a;color:var(--gold);border-radius:4px;padding:4px 5px;font-size:8px;font-weight:800}.start-button{width:100%;border:1px solid #ffd799;background:var(--gold);color:#273129;display:flex;align-items:center;justify-content:space-between;padding:14px 17px;font-size:12px;font-weight:850;border-radius:9px;box-shadow:0 3px 0 #bb833d;transition:transform .15s,background .15s}.start-button:hover:not(:disabled){background:#ffdb98;transform:translateY(-1px)}.start-button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #bb833d}.lobby-footnote{display:flex;gap:9px;align-items:center;justify-content:center;font-size:8px;color:#94b2ae;margin-top:16px}.lobby-footnote i{width:3px;height:3px;background:#688c87;border-radius:50%}.announcement{position:absolute;z-index:5;top:38%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;font-size:75px;font-weight:950;color:var(--gold);letter-spacing:-4px;text-shadow:0 5px 0 #183b3c,0 12px 30px #0005;transition:opacity .2s;white-space:nowrap}.announcement.small{font-size:20px;letter-spacing:-.5px;background:#092b35db;border:1px solid #ffc46a33;padding:12px 19px;border-radius:12px;top:28%;text-shadow:none}.bottom-hud{position:absolute;left:24px;right:24px;bottom:22px;z-index:3;display:flex;align-items:center;gap:24px;pointer-events:none}.action-indicator{background:#0b2831e8;border:1px solid #accdc227;backdrop-filter:blur(10px);border-radius:12px;padding:11px 16px;display:flex;align-items:center;gap:12px;min-width:205px}.crate-symbol{font-size:30px;color:var(--gold);line-height:1}.action-indicator small{display:block;font-size:7px;font-weight:750;letter-spacing:1.2px;color:#92b4ac;margin-bottom:4px}.action-indicator strong{font-size:11px}.dash-indicator{width:110px}.dash-track{height:4px;width:100%;background:#c1f4dc22;border-radius:10px;overflow:hidden;margin-bottom:7px}.dash-track span{display:block;height:100%;width:100%;background:var(--mint);border-radius:10px;transition:width .08s linear}.dash-indicator small{font-size:9px;color:#bedbcf;white-space:nowrap}.dash-indicator kbd{font-size:7px;margin-right:4px}.pause-button{margin-left:auto;width:36px;height:36px;display:grid;place-items:center;pointer-events:auto;background:#0b2831e8;border:1px solid #accdc227;border-radius:10px;color:#c6e1d3}.screen-overlay{position:absolute;inset:0;background:#021a29a8;backdrop-filter:blur(6px);z-index:9;display:grid;place-items:center;padding:20px}.dialog{position:relative;width:min(420px,100%);padding:33px;background:linear-gradient(135deg,#18383d,#0c272f);border:1px solid #8fc8b839;border-radius:20px;box-shadow:0 22px 90px #00121e66}.dialog h2{font-size:38px;font-weight:900;letter-spacing:-1.6px;line-height:1.12;margin:17px 0 12px}.dialog>p,.pause-intro>p{color:#b2ccc7;font-size:13px;line-height:1.7;margin:0 0 23px}.result-dialog{text-align:center}.result-dialog .panel-eyebrow{justify-content:center}.result-icon{font-size:45px;color:var(--gold);margin-bottom:15px;text-shadow:0 0 30px #ffcf7022}.results-table{margin:22px 0;text-align:left;border-top:1px solid var(--line)}.result-row{display:flex;align-items:center;gap:11px;font-size:12px;padding:10px 0;border-bottom:1px solid var(--line)}.result-row .avatar{width:29px;height:29px}.result-row .rank{font-size:10px;color:#7fa99e;width:13px}.result-row .result-score{margin-left:auto;font-size:10px;color:#b4cebb}.result-row.winner{color:var(--gold)}.text-button{background:none;border:0;color:#96b5ac;font-size:11px;padding:14px 5px 0}.pause-dialog .start-button{margin-top:27px}.close-button{position:absolute;top:13px;right:17px;background:none;border:0;color:#a4c6b8;font-size:25px}.help-dialog{width:min(480px,100%)}.instruction{display:flex;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.instruction>span{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;width:102px;flex-shrink:0}.instruction>div strong{font-size:12px}.instruction p{font-size:10px;line-height:1.6;color:#9dbdb0;margin:4px 0 0}kbd{font-family:inherit;font-size:9px;line-height:1;padding:5px 7px;background:#ffffff06;border:1px solid #bbdccb24;border-bottom:2px solid #bbdccb30;border-radius:5px;color:#b7d2c4;font-weight:650;display:inline-block}.instruction kbd{padding:8px 9px}.wide-key{min-width:74px;text-align:center}.tip{font-size:10px;line-height:1.7;padding:13px;background:#9ae4be0c;border-left:2px solid #7cb299;color:#b0d8bf;margin:17px 0}.load-screen{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;background:radial-gradient(ellipse,#163d44,#09252d)}.load-screen span{font-size:12px;color:#b9d4ca}.loading-crate{color:var(--gold);font-size:50px;animation:loadspin 2s infinite ease-in-out}.unsupported{position:absolute;inset:0;z-index:11;display:grid;place-items:center;background:radial-gradient(ellipse,#174047,#09252d);padding:20px}.unsupported .dialog{width:min(430px,100%)}.game-footer{display:flex;align-items:center;justify-content:space-between;height:58px;gap:15px;padding:0 4px}.control-guide{display:flex;gap:24px;align-items:center;font-size:10px;color:#8eaeaa}.control-guide>span{display:flex;align-items:center;gap:7px}.runtime-status{display:flex;gap:16px;align-items:center;font-size:9px;color:#6e9592;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.runtime-status>span{display:flex;align-items:center;gap:5px}.runtime-status i{width:4px;height:4px;background:#567f77;border-radius:50%}.runtime-status .ready{color:#a2bfb5}.runtime-status .ready i{background:#a0ebc8}.fps{min-width:46px;color:#78978e}.mobile-note{display:none}.touch-controls{position:absolute;left:22px;right:22px;bottom:23px;z-index:5;display:flex;align-items:end;justify-content:space-between;pointer-events:none}.joystick{width:106px;height:106px;border:1px solid #d7f3e12a;border-radius:50%;background:#0a273472;position:relative;pointer-events:auto;touch-action:none;box-shadow:inset 0 0 18px #09233788}.joystick span{position:absolute;width:46px;height:46px;top:29px;left:29px;border:1px solid #e3efcc61;border-radius:50%;background:#9dcbc52f;box-shadow:0 4px 12px #001d2833;transition:transform .05s}.touch-actions{display:flex;gap:12px;align-items:end;pointer-events:auto}.touch-actions button{width:68px;height:68px;border-radius:50%;border:1px solid #efc177;background:#ffc46ae8;color:#25362c;font-size:10px;font-weight:900;touch-action:none;box-shadow:0 4px 0 #94704499}.game-stage.hit:after{content:"";position:absolute;inset:0;border:5px solid #fc8a7580;border-radius:20px;pointer-events:none;z-index:7;animation:hitfade .45s forwards}@keyframes loadspin{0%,100%{transform:rotate(-12deg)translateY(0)}50%{transform:rotate(12deg)translateY(-10px)}}@keyframes hitfade{to{opacity:0}}
@media(min-width:1450px){.game-stage{height:min(810px,calc(100dvh - 184px))}.lobby-panel{right:55px;bottom:70px}}@media(max-width:1100px){.player-card{min-width:106px;padding:8px;gap:7px}.avatar{width:29px;height:29px;border-radius:8px}.player-name{font-size:11px}.player-name small{font-size:9px}.hud{grid-template-columns:1fr 110px 1fr;gap:6px}.round-clock strong{font-size:32px}.round-clock>div{font-size:9px}.round-clock>span{font-size:9px}.team-side{gap:7px}.lobby-panel{right:26px;bottom:37px;width:290px;padding:24px}h1{font-size:43px}.arena-name{display:none}}
@media(max-width:760px){.app-shell{padding:0 12px}.topbar{height:70px;gap:10px}.brand{font-size:19px;gap:8px}.brand>svg{width:30px;height:30px}.help-button{font-size:0;width:35px;padding:0;margin-left:2px}.help-button span{font-size:10px}.icon-button{width:34px;height:34px}.header-actions{gap:5px}.game-stage{height:calc(100dvh - 120px);min-height:500px;border-radius:15px}.hud{left:10px;right:10px;top:12px;grid-template-columns:1fr 76px 1fr;gap:4px}.team-side{flex-direction:column;gap:5px}.player-card{min-width:0;padding:6px 8px;width:104px;border-radius:9px;gap:7px}.avatar{width:26px;height:26px}.player-name{font-size:10px;gap:4px}.player-name small{font-size:11px}.hearts{margin-top:3px;gap:2px}.heart{font-size:10px}#players-right{align-items:flex-end}.round-clock{padding-top:8px}.round-clock strong{font-size:29px;letter-spacing:-1.5px}.round-clock>div{font-size:11px;letter-spacing:.7px}.round-clock>span{font-size:11px;letter-spacing:.5px}.lobby-panel{bottom:30px;left:50%;right:auto;transform:translateX(-50%);width:calc(100% - 40px);max-width:340px;padding:22px 24px}.lobby-panel h1{font-size:39px;line-height:1.04;margin:13px 0 12px}.lobby-panel h1 br{display:none}.lobby-panel>p{font-size:11px;margin-bottom:13px}.lobby-panel>p br{display:none}.your-character{padding:13px 0}.lobby-footnote{margin-top:13px}.bottom-hud{bottom:max(12px,env(safe-area-inset-bottom));left:12px;right:12px;gap:10px}.action-indicator{min-width:0;padding:7px 10px;gap:7px;border-radius:9px}.crate-symbol{font-size:24px}.action-indicator small{font-size:11px}.action-indicator strong{font-size:12px}.dash-indicator{width:75px}.dash-indicator small{font-size:11px}.dash-indicator kbd{display:none}.pause-button{width:30px;height:30px}.game-footer{height:39px;justify-content:center}.control-guide{display:none}.runtime-status{font-size:8px;gap:12px}.dialog{padding:25px}.dialog h2{font-size:32px}.dialog>p{font-size:12px}.help-dialog .instruction{gap:10px;padding:12px 0}.instruction>span{width:79px}.instruction kbd{font-size:11px;padding:6px 7px}.instruction>div strong{font-size:11px}.instruction p{font-size:12px}.announcement{font-size:57px}.announcement.small{font-size:16px;max-width:90%;white-space:normal}.world-tag{font-size:11px;padding:2px 6px}}
@media(pointer:coarse){.control-guide{display:none}.mobile-note{display:block;text-align:center;font-size:9px;color:#84a9a1;padding:0 10px}.game-footer{justify-content:center}.game-stage{touch-action:none}}
@media(max-height:600px) and (min-width:760px){.topbar{height:60px}.game-stage{min-height:340px;height:calc(100dvh - 110px)}.game-footer{height:42px}.lobby-panel{bottom:18px;padding:18px;width:280px}.lobby-panel h1{font-size:35px;margin:12px 0 9px}.lobby-panel>p{margin-bottom:10px}.your-character{padding:10px 0}.hud{top:12px}.dialog{padding:22px}.help-dialog .instruction{padding:9px 0}}

.game-stage:fullscreen{width:100vw;height:100dvh;min-height:0;max-width:none;border-radius:0}

.character-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:0 0 14px}.character-choice{padding:7px 3px;background:#ffffff04;border:1px solid #b5e3ce20;border-radius:9px;display:flex;align-items:center;flex-direction:column;gap:5px;color:#9cb9b0;font-size:8px;transition:border-color .2s,background .2s}.character-choice .avatar{width:31px;height:31px}.character-choice[aria-pressed="true"]{border-color:#ffc46a;background:#ffc46a12;color:#ffcf81}.character-choice:hover{background:#ffffff0c}.lobby-panel{width:340px}.lobby-panel h1{font-size:44px;margin-top:15px}.lobby-panel>p{margin-bottom:17px}.your-character{padding-top:13px}
@media(max-width:760px){.lobby-panel{max-width:340px;width:calc(100% - 40px);bottom:24px}.character-picker{margin-bottom:8px}.character-choice{flex-direction:row;justify-content:center;gap:4px;padding:5px 2px;font-size:11px}.character-choice .avatar{width:24px;height:24px}.lobby-panel h1{font-size:37px}.lobby-panel>p{margin-bottom:11px}}

.mode-picker{display:grid;grid-template-columns:1fr 1fr;gap:5px;border-bottom:1px solid var(--line);padding-bottom:12px;margin:12px 0 10px}.mode-picker button{border:1px solid transparent;background:#ffffff05;border-radius:7px;padding:8px;font-size:10px;color:var(--muted)}.mode-picker button[aria-pressed="true"]{background:#ffc46a18;border-color:#ffc46a55;color:var(--gold)}#online-content h2{font-size:30px;letter-spacing:-1.2px;margin:15px 0 9px}.room-intro,.room-hint,#server-unavailable p{font-size:11px;line-height:1.6;color:#b6ceca;margin:9px 0 15px}.room-field{display:block;font-size:8px;font-weight:750;letter-spacing:1px;color:#a6c3bb;margin:13px 0}.room-field input{display:block;width:100%;margin-top:7px;background:#031d27a1;border:1px solid #a1d7be30;border-radius:8px;color:var(--text);padding:11px;font:inherit;font-size:12px;letter-spacing:0;outline:none}.room-field input:focus{border-color:var(--gold)}.secondary-button{width:100%;background:#a0ebc815;border:1px solid #a0ebc840;border-radius:8px;color:var(--mint);padding:11px;font-size:11px;font-weight:800}.room-message{font-size:10px;color:var(--gold);line-height:1.6;margin:12px 0 0;min-height:16px}.room-seats{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:16px}.room-seat{padding:9px;background:#ffffff04;border:1px solid #aadcca20;border-radius:8px;display:flex;align-items:center;gap:7px;min-width:0}.room-seat .avatar{width:28px;height:28px}.room-seat strong{display:block;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:78px}.room-seat small{display:block;font-size:7px;color:#81a79b;margin-top:3px}.room-seat.ready{border-color:#a0ebc850}.room-seat.ready small{color:var(--mint)}.room-seat.empty{min-height:49px;justify-content:center;border-style:dashed;color:#638d80;font-size:9px}.room-picker-label{display:block;color:#85ab9c;font-size:7px;letter-spacing:1.1px;margin-bottom:8px}.character-choice:disabled{opacity:.3;cursor:not-allowed}#network-status{color:var(--gold)}#network-status.connected{color:var(--mint)}.lobby-panel{max-height:calc(100% - 140px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#628f7d transparent}.player-card .player-name{overflow:hidden;max-width:100px;white-space:nowrap;text-overflow:ellipsis}.room-seat.disconnected{opacity:.55}.online-menu .pause-dialog h2{font-size:32px}
@media(max-width:760px){.lobby-panel{max-height:calc(100% - 140px)}#online-content h2{font-size:26px;margin:10px 0}.room-field{margin:10px 0}.room-intro{font-size:10px}.room-seats{margin-bottom:10px}.room-seat{padding:7px}.mode-picker{margin-top:9px}}

.gfx-paused{position:absolute;z-index:12;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:10px;padding:13px 18px;border-radius:12px;background:#092b35e6;border:1px solid #ffc46a40;color:var(--text);font-size:12px;font-weight:750;pointer-events:none;box-shadow:0 12px 40px #0006}.gfx-spinner{color:var(--gold);font-size:20px;animation:loadspin 2s infinite ease-in-out}
.stats-overlay{position:absolute;z-index:8;left:10px;bottom:10px;padding:6px 8px;border-radius:7px;background:#021a29c7;color:#c9f3e0;font:10px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;pointer-events:none;contain:layout paint}
.load-bar{width:150px;height:3px;border-radius:2px;background:#ffffff14;overflow:hidden}.load-bar i{display:block;height:100%;background:var(--gold);transform:scaleX(.1);transform-origin:left;transition:transform .3s}
.quality-field{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;font-size:9px;font-weight:750;letter-spacing:1px;color:#a6c3bb;text-transform:uppercase}.quality-field select{background:#031d27a1;border:1px solid #a1d7be30;border-radius:8px;color:var(--text);padding:8px 10px;font:inherit;font-size:11px;letter-spacing:0;text-transform:none}.quality-field select:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.unsupported .secondary-button{margin-top:10px}.copy-link-value{display:block;width:100%;margin-top:10px;background:#031d27a1;border:1px solid #a1d7be30;border-radius:8px;color:var(--text);padding:11px;font:inherit;font-size:12px}

/* Phones and tablets: a full-bleed arena inside the safe areas (main.js sets .full-bleed/.touch-ui/.tablet and data-mode on #app). */
:root{--edge-t:max(8px,env(safe-area-inset-top));--edge-r:max(12px,env(safe-area-inset-right));--edge-b:max(10px,env(safe-area-inset-bottom));--edge-l:max(12px,env(safe-area-inset-left))}
/* iOS zooms into any field under 16 px on focus, and Safari keeps that zoom: every field on a touch screen stays at 16 px, before main.js tags .touch-ui too. */
@media(pointer:coarse){html{overscroll-behavior:none;touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{overscroll-behavior:none}input,select,textarea{font-size:16px!important}}
.touch-ui{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.zoomed .game-stage,.zoomed .game-stage *{touch-action:manipulation!important}
.touch-ui input,.touch-ui select{-webkit-user-select:text;user-select:text;font-size:16px!important}
.touch-ui button{touch-action:manipulation}
.touch-ui .player-card,.touch-ui .lobby-panel,.touch-ui .action-indicator{backdrop-filter:none}
.touch-ui .screen-overlay{backdrop-filter:none;background:#021a29cc}
.touch-ui .start-button:hover:not(:disabled){transform:none;background:var(--gold)}
.touch-only,.touch-ui .key-only{display:none}
.touch-ui .touch-only{display:block}
.touch-glyph{width:52px;height:52px;flex-shrink:0;display:grid!important;place-items:center;border-radius:50%;border:1px solid #a7d7c566;background:#9ce2c51a;color:#ddf5e5;font-size:22px;font-weight:900}
.touch-glyph.gold{background:#ffc46a;color:#4b3518;border-color:#ffd799}
.full-bleed{padding:0;max-width:none}
.full-bleed main{padding:0}
.full-bleed .game-stage{position:fixed;top:0;left:0;width:100%;height:100vh;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}
.full-bleed .game-stage.hit:after{border-radius:0}
.full-bleed .game-footer,.full-bleed .mobile-note,.full-bleed .arena-name{display:none}
.full-bleed .topbar{position:fixed;z-index:20;top:var(--edge-t);left:var(--edge-l);right:var(--edge-r);height:48px;gap:10px;pointer-events:none}
.full-bleed .topbar>*{pointer-events:auto}
.full-bleed:not([data-mode="lobby"]):not([data-mode="loading"]) .topbar{display:none}
.full-bleed .brand{font-size:19px;gap:8px;text-shadow:0 2px 10px #0008}
.full-bleed .brand>svg{width:30px;height:30px}
.full-bleed .header-actions{gap:6px}
.full-bleed .icon-button,.full-bleed .help-button{width:44px;height:44px;padding:0;margin:0;font-size:0;gap:0;background:#0a2a32e6;border-color:#ffffff1f;border-radius:12px}
.full-bleed .help-button span{width:22px;height:22px;font-size:13px}
.full-bleed:not(.in-match) .hud{visibility:hidden}
.full-bleed .hud{top:var(--edge-t);left:var(--edge-l);right:var(--edge-r)}
.touch-ui .hud{right:calc(var(--edge-r) + 54px)}
.full-bleed .world-tag{font-size:11px;padding:2px 6px;letter-spacing:.6px}
.full-bleed .round-clock>div,.full-bleed .round-clock>span{font-size:11px;letter-spacing:1px}
.full-bleed .stats-overlay{top:calc(var(--edge-t) + 56px);bottom:auto;left:var(--edge-l)}
/* Type and targets: at least 11 px text and 44 px taps in every menu. */
.full-bleed .panel-eyebrow{font-size:11px;letter-spacing:1.4px}
.full-bleed .mode-picker button{min-height:44px;font-size:13px}
.full-bleed .character-choice{min-height:48px;font-size:12px}
.full-bleed .lobby-footnote{font-size:11px}
.full-bleed .your-character small,.full-bleed .your-character strong span,.full-bleed .you-chip{font-size:11px}
.full-bleed .start-button{min-height:48px;font-size:14px}
.full-bleed .secondary-button{min-height:44px;font-size:13px}
.full-bleed .text-button{min-height:44px;font-size:13px;padding:10px 8px}
.full-bleed .room-field,.full-bleed .room-picker-label{font-size:11px}
.full-bleed .room-field input{min-height:44px;font-size:16px}
.full-bleed .room-intro,.full-bleed .room-hint,.full-bleed #server-unavailable p,.full-bleed .room-message{font-size:12px}
.full-bleed .room-seat strong{font-size:12px;max-width:110px}
.full-bleed .room-seat small,.full-bleed .room-seat.empty{font-size:11px}
.full-bleed .screen-overlay{padding:var(--edge-t) var(--edge-r) var(--edge-b) var(--edge-l)}
.full-bleed .dialog{max-height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#628f7d transparent}
.full-bleed .dialog>p{font-size:13px}
.full-bleed kbd{font-size:11px}
.full-bleed .instruction>div strong{font-size:13px}
.full-bleed .instruction p,.full-bleed .tip{font-size:12px}
.full-bleed .quality-field{font-size:11px;min-height:44px}
.full-bleed .quality-field select{min-height:44px;font-size:16px}
.full-bleed .result-row{font-size:13px}
.full-bleed .result-row .rank{font-size:11px}
.full-bleed .result-row .result-score{font-size:12px}
.full-bleed .close-button{width:44px;height:44px;top:6px;right:6px;font-size:28px}
.sound-field{width:100%;background:none;border:0;border-bottom:1px solid var(--line);padding:0 0 12px;color:#a6c3bb}
.sound-field span{color:var(--mint);font-size:13px;letter-spacing:0;text-transform:none;min-width:34px;text-align:right}
.sound-field[aria-pressed="false"] span{color:#ff9a8c}
.pause-dialog .sound-field{margin-top:20px}
.volume-field{margin-top:12px}.volume-field input{-webkit-appearance:none;appearance:none;width:min(170px,58%);height:28px;margin:0;background:transparent;cursor:pointer;accent-color:var(--gold)}
.volume-field input::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(90deg,var(--gold) var(--fill,50%),#a1d7be30 0)}
.volume-field input::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-7px;border-radius:50%;background:var(--gold);border:2px solid #0b2a31;box-shadow:0 1px 3px #0008}
.volume-field input::-moz-range-track{height:4px;border-radius:2px;background:#a1d7be30}.volume-field input::-moz-range-progress{height:4px;border-radius:2px;background:var(--gold)}
.volume-field input::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--gold);border:2px solid #0b2a31}
.volume-field input:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}
.install-dialog{width:min(520px,100%)}
.install-steps{margin:0 0 20px;padding-left:22px;color:#cfe2da;font-size:14px;line-height:1.6}
.install-steps li{padding:3px 0}
.install-steps svg{width:18px;height:18px;vertical-align:-3px;fill:none;stroke:var(--gold);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.instructions{display:block}
/* Touch HUD: the pause button sits in a top corner, the action and dash state live on the buttons. */
.touch-ui .bottom-hud{position:static}
.touch-ui .action-indicator,.touch-ui .dash-indicator{display:none}
.touch-ui .pause-button{position:absolute;z-index:6;top:var(--edge-t);right:var(--edge-r);width:44px;height:44px;border-radius:12px;margin:0;background:#0a2a32eb}
.touch-ui .touch-controls{inset:0;display:block}
.stick-zone{position:absolute;left:0;top:64px;bottom:0;width:42%;pointer-events:auto;touch-action:none}
.touch-controls .joystick{position:absolute;left:calc(var(--edge-l) + 70px);top:calc(100% - var(--edge-b) - 72px);width:128px;height:128px;margin:0;transform:translate(-50%,-50%);border:2px solid #d7f3e140;background:#0a273466;box-shadow:inset 0 0 22px #09233799;opacity:.5;pointer-events:none;transition:opacity .15s}
.touch-controls .joystick.active{opacity:1;transition:none}
.touch-controls .joystick span{width:56px;height:56px;top:34px;left:34px;border:2px solid #e3efcc8c;background:#cfeee2;opacity:.85;box-shadow:0 4px 14px #001d2866;transition:none}
.touch-actions{position:absolute;right:var(--edge-r);bottom:var(--edge-b);width:180px;height:160px;display:block;pointer-events:none}
.touch-actions button{position:absolute;display:grid;place-content:center;justify-items:center;border-radius:50%;pointer-events:auto;touch-action:none;font-weight:900;letter-spacing:.6px;transition:transform .08s,box-shadow .08s,filter .2s,opacity .2s}
.touch-actions .touch-throw{right:6px;bottom:6px;width:88px;height:88px;background:radial-gradient(circle at 50% 32%,#ffdc9d,#f3aa45 70%);border:2px solid #ffe2aa;color:#38281a;box-shadow:0 5px 0 #a36f2f,0 10px 24px #0007}
.touch-throw .crate-symbol{font-size:27px;line-height:.9;color:#7a4a1c}
.touch-throw b{font-size:12px;line-height:1.1}
.touch-throw[data-state="idle"]{filter:saturate(.55) brightness(.82)}
.touch-throw[data-state="near"]{animation:reach 1s ease-in-out infinite}
.touch-throw[data-state="held"]{background:radial-gradient(circle at 50% 32%,#fff0cf,#ffbb4c 70%)}
.touch-throw[data-state="out"]{opacity:.35;filter:grayscale(1)}
.touch-throw[data-state="cooling"]{filter:saturate(.45) brightness(.72)}
@keyframes reach{50%{box-shadow:0 5px 0 #a36f2f,0 0 0 9px #ffc46a59,0 10px 24px #0007}}
.touch-actions .touch-dash{left:0;top:0;width:66px;height:66px;background:#0b2a33eb;border:2px solid #a7e8cc55;color:#cfe6dc;font-size:12px;box-shadow:0 4px 0 #061a20,0 8px 18px #0006}
.touch-dash:before{content:"";position:absolute;inset:-7px;border-radius:50%;background:conic-gradient(var(--mint) calc(var(--ready,1)*360deg),#ffffff24 0);-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 5px),#000 calc(100% - 4.5px));mask:radial-gradient(farthest-side,#0000 calc(100% - 5px),#000 calc(100% - 4.5px));pointer-events:none}
.touch-dash span{font-variant-numeric:tabular-nums}
.touch-dash:not(.ready) span{font-size:17px;letter-spacing:0}
.touch-actions .touch-dash.ready{background:#1b5a52f0;border-color:var(--mint);color:#f1fff7;box-shadow:0 4px 0 #0c3a33,0 0 18px #a0ebc84d}
.touch-actions button.pressed{transform:translateY(3px) scale(.93);filter:brightness(1.15)}
.touch-actions .touch-throw.pressed{box-shadow:0 2px 0 #a36f2f,0 5px 12px #0007}
.touch-actions .touch-dash.pressed{box-shadow:0 1px 0 #061a20}
.rotate-overlay{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;background:radial-gradient(ellipse at 50% 40%,#173f46,#071c23);color:var(--text)}
.rotate-phone{width:96px;height:96px;fill:none;stroke:var(--gold);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;animation:rotatehint 2.6s ease-in-out infinite}
.rotate-phone .rotate-arrow{stroke:var(--mint)}
@keyframes rotatehint{0%,15%{transform:rotate(0)}45%,75%{transform:rotate(-90deg)}100%{transform:rotate(0)}}
.rotate-overlay strong{font-size:28px;font-weight:900;letter-spacing:-.8px}
.rotate-overlay p{margin:0;font-size:15px;line-height:1.5;color:#b6ceca;max-width:290px}
.rotate-overlay .text-button{min-height:44px;font-size:14px;padding:12px 16px;color:#cfe2da;text-decoration:underline;text-underline-offset:3px}
/* Landscape phones (short screens): one row of player chips around the clock, the lobby beside the arena, two-column dialogs. */
@media(orientation:landscape) and (max-height:540px){
.full-bleed .hud{top:max(6px,env(safe-area-inset-top));grid-template-columns:1fr auto 1fr;gap:8px}
.full-bleed .team-side{flex-direction:row;gap:6px;min-width:0}
.full-bleed #players-right{align-items:stretch}
.full-bleed .player-card{min-width:0;width:auto;max-width:136px;padding:4px 9px 4px 4px;gap:7px;border-radius:10px;background:#09232bf0}
.full-bleed .player-card .avatar{width:28px;height:28px;border-radius:8px}
.full-bleed .player-name{font-size:12px;gap:5px}
.full-bleed .player-card .player-name{max-width:84px}
.full-bleed .hearts{margin-top:1px;gap:2px}
.full-bleed .heart{font-size:12px}
.full-bleed .round-clock{padding-top:0;min-width:62px}
.full-bleed .round-clock strong{font-size:26px;line-height:1.15;letter-spacing:-1px}
.full-bleed .round-clock>div,.full-bleed .round-clock>span{display:none}
.full-bleed .announcement{font-size:64px;top:44%}
.full-bleed .stick-zone{top:56px}
.full-bleed .lobby-panel{top:var(--edge-t);bottom:auto;right:var(--edge-r);left:auto;transform:none;width:min(360px,46vw);max-width:none;max-height:calc(var(--viewport-height,100dvh) - var(--edge-t) - var(--edge-b));padding:14px 18px 12px;border-radius:16px}
.full-bleed .topbar{right:calc(min(360px,46vw) + var(--edge-r) + 12px)}
.full-bleed .lobby-panel h1{font-size:28px;letter-spacing:-1.2px;margin:10px 0 4px}
.full-bleed .lobby-panel h1 br,.full-bleed #solo-content>p br,.full-bleed .room-intro br,.full-bleed .dialog h2 br{display:none}
.full-bleed #solo-content>p{font-size:12px;line-height:1.5;color:#b6ceca;margin:0 0 10px}
.full-bleed .mode-picker{margin:10px 0 8px;padding-bottom:10px}
.full-bleed .character-picker{margin-bottom:10px}
.full-bleed .character-choice{flex-direction:row;justify-content:center;gap:5px;padding:4px 2px}
.full-bleed .character-choice .avatar{width:28px;height:28px}
.full-bleed .your-character{display:none}
.full-bleed .lobby-footnote{margin-top:9px}
.full-bleed #online-content h2{font-size:24px;margin:8px 0 4px}
.full-bleed .room-intro{margin:4px 0 6px}
.full-bleed .room-field{margin:8px 0}
.full-bleed .dialog{padding:16px 22px}
.full-bleed .dialog h2{font-size:26px;letter-spacing:-1px;margin:8px 0}
.full-bleed .dialog>p{margin-bottom:12px}
.full-bleed .result-dialog{width:min(700px,100%);display:grid;grid-template-columns:1fr 1.1fr;grid-auto-flow:dense;column-gap:26px;align-items:start;text-align:left}
.full-bleed .result-dialog>*{grid-column:1}
.full-bleed .result-dialog .results-table{grid-column:2;grid-row:1/span 7;margin:0}
.full-bleed .result-dialog .panel-eyebrow{justify-content:flex-start}
.full-bleed .result-icon{font-size:30px;margin-bottom:2px}
.full-bleed .result-row{padding:8px 0}
.full-bleed .pause-dialog{width:min(640px,100%);display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:dense;column-gap:26px;align-items:start}
.full-bleed .pause-dialog>*{grid-column:2}
.full-bleed .pause-dialog>.pause-intro{grid-column:1;grid-row:1/span 8}
.full-bleed .pause-dialog .sound-field{margin-top:0;min-height:44px;padding:0}
.full-bleed .pause-dialog .quality-field{margin-top:4px}
.full-bleed .volume-field input{height:44px}
.full-bleed .pause-dialog .start-button{margin-top:12px}
.full-bleed .help-dialog{width:min(780px,100%)}
.full-bleed .instructions{display:grid;grid-template-columns:1fr 1fr;column-gap:22px}
.full-bleed .help-dialog .instruction{padding:9px 0}
.full-bleed .tip{margin:10px 0}
.full-bleed .install-dialog{width:min(640px,100%)}
}
/* Portrait phones: the lobby docks at the bottom over the framed arena. */
@media(orientation:portrait){
.full-bleed .lobby-panel{left:var(--edge-l);right:var(--edge-r);bottom:var(--edge-b);top:auto;transform:none;width:auto;max-width:460px;margin:0 auto;max-height:calc(var(--viewport-height,100dvh) - var(--edge-t) - var(--edge-b) - 64px)}
.full-bleed .hud{top:calc(var(--edge-t) + 2px)}
}
/* Tablets (iPad, Android tablets): the desktop HUD at full size, bigger thumbs. */
.tablet .hud{top:max(16px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left))}
.tablet .stick-zone{top:120px}
.tablet .touch-controls .joystick{width:150px;height:150px;left:calc(var(--edge-l) + 96px);top:calc(100% - var(--edge-b) - 96px)}
.tablet .touch-controls .joystick span{width:64px;height:64px;top:41px;left:41px}
.tablet .touch-actions{width:210px;height:190px;right:calc(var(--edge-r) + 12px);bottom:calc(var(--edge-b) + 12px)}
.tablet .touch-actions .touch-throw{width:104px;height:104px}
.tablet .touch-throw b{font-size:14px}
.tablet .touch-actions .touch-dash{width:78px;height:78px;font-size:13px}
.tablet .pause-button{top:max(16px,env(safe-area-inset-top));right:max(20px,env(safe-area-inset-right));width:52px;height:52px}
.tablet.touch-ui .hud{right:calc(max(20px,env(safe-area-inset-right)) + 64px)}
.tablet .topbar{left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));top:max(16px,env(safe-area-inset-top))}
@media(prefers-reduced-motion:reduce){*,:before,:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.full-bleed .room-field input{font-weight:500}
.instruction>.touch-glyph{width:52px;margin:0 6px}
.announcement:empty{display:none}
.full-bleed .player-name small,.full-bleed .action-indicator small,.full-bleed .dash-indicator small{font-size:11px}
.full-bleed .action-indicator strong{font-size:12px}
/* Online rooms (protocol 4): Create / Join, a phone-sized code field, and a room screen that leads with its code and the next step. */
.lobby-panel.in-room>.panel-eyebrow,.lobby-panel.in-room>.mode-picker{display:none}
.online-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}
.choice-button{min-height:62px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;text-align:left;padding:10px 12px}
.choice-button b{font-size:14px;font-weight:900}.choice-button small{font-size:11px;font-weight:600;opacity:.78;line-height:1.25}
.back-button{display:inline-flex;align-items:center;gap:2px;min-height:44px;margin:0 0 -4px -6px;padding:0 10px 0 2px;background:none;border:0;color:var(--mint);font-size:13px;font-weight:750}
.back-button svg{width:20px;height:20px}
.code-input,.touch-ui .code-input{display:block;width:100%;min-height:58px;margin:10px 0 6px;padding:8px;background:#031d27;border:2px solid #a1d7be45;border-radius:12px;color:var(--gold);font:800 28px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;letter-spacing:.16em;text-align:center;text-transform:uppercase;outline:none;caret-color:var(--gold);-webkit-user-select:text;user-select:text}
.code-input::placeholder{color:#55796f;letter-spacing:.16em}
.code-input:focus{border-color:var(--gold);box-shadow:0 0 0 3px #ffc46a26}
.code-input[aria-invalid="true"]{border-color:#ff9587}
.join-hint{font-size:12px;line-height:1.45;color:#b6ceca;min-height:18px;margin:0 0 10px}.join-hint.error{color:#ffa596;font-weight:650}
.room-code-block{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 10px;padding:10px 10px 10px 14px;background:#031d27b8;border:1px solid #ffc46a4d;border-radius:14px}
.room-code-block small{display:block;font-size:10px;font-weight:850;letter-spacing:1.5px;color:var(--mint)}
.room-code{display:block;margin-top:2px;font:900 32px/1.1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.1em;color:var(--gold);white-space:nowrap;-webkit-user-select:all;user-select:all}
.room-code-actions{display:grid;gap:6px;flex-shrink:0}
.chip-button{min-height:36px;padding:0 12px;border-radius:9px;border:1px solid #a0ebc85c;background:#a0ebc81a;color:var(--mint);font-size:11px;font-weight:800;white-space:nowrap}
.room-step{margin:0 0 10px;font-size:12px;line-height:1.45;font-weight:700;color:var(--text)}
.room-seat.me{border-color:#ffc46a66}.room-seat.ready small{color:var(--mint)}
.room-actions{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;margin-top:4px}
.room-actions .text-button{padding:0 10px;min-height:44px}
.room-actions .start-button,.room-actions .secondary-button{justify-content:center;min-height:44px}
#room-character[hidden]+.room-actions{grid-template-columns:auto}
.full-bleed .choice-button{min-height:64px}.full-bleed .choice-button b{font-size:15px}.full-bleed .choice-button small{font-size:11px}
.full-bleed .chip-button{min-height:44px;font-size:13px}
.full-bleed .room-step,.full-bleed .join-hint{font-size:13px}
.full-bleed .room-code-block small{font-size:11px}
@media(orientation:landscape) and (max-height:540px){
.full-bleed .room-code-block{padding:6px 8px 6px 12px;margin-bottom:8px}
.full-bleed .room-code{font-size:28px}
.full-bleed .room-code-actions{grid-auto-flow:column}
.full-bleed .chip-button{padding:0 10px}
.full-bleed .room-step{margin-bottom:8px}
.full-bleed .room-seats{gap:6px;margin-bottom:8px}
.full-bleed .room-seat{padding:4px 8px;min-height:44px}
.full-bleed .room-seat .avatar{width:26px;height:26px}
.full-bleed #room-character .room-picker-label{display:none}
.full-bleed .code-input{min-height:52px;margin:6px 0 4px}
.full-bleed .join-hint{margin-bottom:6px}
.full-bleed #join-view h2{margin:2px 0 2px}
.full-bleed .online-choices{margin-top:2px}
}
.room-seat{min-height:44px}.room-seat strong{font-size:11px;max-width:100px}.room-seat small{font-size:10px}
.player-name .name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-name small{flex-shrink:0}
/* Ready / Start and Leave stay in reach when a short screen scrolls the room (iPhone Safari landscape with its toolbars: ~290 px). */
.room-actions{position:sticky;bottom:-12px;z-index:1;margin-bottom:-12px;padding:6px 0 12px;background:linear-gradient(#0a232900,#0a2329 8px)}
@media(max-height:340px){.lobby-panel.online-open>.panel-eyebrow,#online-home>h2,#online-home .room-intro,#join-view>h2,#join-view .room-intro{display:none}.full-bleed .mode-picker{margin-top:0}}
/* Ruins Rumpus parties (protocol 5): party length and bots, the round card, points chips and the podium. */
.party-length{display:flex;align-items:center;gap:8px;margin:0 0 12px}.party-length>small{color:#85ab9c;font-size:7px;letter-spacing:1.1px;font-weight:800}
.length-picker{display:grid;grid-template-columns:repeat(3,minmax(34px,1fr));gap:4px}
.length-choice{padding:6px 0;background:#ffffff04;border:1px solid #b5e3ce20;border-radius:8px;color:#9cb9b0;font-size:12px;font-weight:850;transition:border-color .2s,background .2s}
.length-choice[aria-pressed="true"]{border-color:#ffc46a;background:#ffc46a12;color:#ffcf81}.length-choice:hover{background:#ffffff0c}
.length-note{font-size:8px;color:#94b2ae;margin-left:auto;text-align:right;line-height:1.3}
.toggle-chip{margin-left:auto;background:#ffffff04;border:1px solid #b5e3ce20;border-radius:8px;color:#9cb9b0;font-size:10px;padding:6px 10px;white-space:nowrap}
.toggle-chip[aria-pressed="true"]{border-color:#a0ebc855;color:var(--mint);background:#a0ebc812}.toggle-chip b{font-weight:850}
.room-party{margin:12px 0 4px}#update-reload{margin-top:8px}
.intro-card{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);width:min(380px,calc(100% - 32px));padding:20px 22px 16px;text-align:center;pointer-events:none;background:linear-gradient(135deg,#18383def,#0c272fef);border:1px solid #ffc46a44;border-radius:18px;box-shadow:0 18px 60px #00121e66;animation:intro-in .35s ease-out}
.intro-card .panel-eyebrow{justify-content:center;color:var(--gold)}.intro-card h2{font-size:32px;font-weight:900;letter-spacing:-1.2px;line-height:1.1;margin:8px 0 10px}
.intro-card p{margin:0 0 4px;color:#d6e6df;font-size:13px;line-height:1.5}
.intro-legend{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:12px 0 8px;font-size:10px;font-weight:800;color:var(--mint);letter-spacing:.6px}.intro-legend kbd{margin-right:4px}
.intro-card small{display:block;color:var(--gold);font-size:14px;font-weight:850}
@keyframes intro-in{from{opacity:0;transform:translate(-50%,-46%)}to{opacity:1;transform:translate(-50%,-50%)}}
.points-chip{display:inline-block;color:#273129;background:var(--gold);border-radius:6px;padding:1px 6px;margin-right:5px;font-size:10px;font-weight:850}
.result-row.left{opacity:.45}.podium-row.place-1 .rank{color:var(--gold);font-weight:900}.podium-row.place-2 .rank{color:#d9e3e3;font-weight:900}.podium-row.place-3 .rank{color:#e0a46d;font-weight:900}
.full-bleed .length-choice{min-height:44px;min-width:44px;font-size:14px}.full-bleed .toggle-chip{min-height:44px;font-size:12px}.full-bleed .party-length>small{font-size:10px}.full-bleed .length-note{font-size:10px}
.full-bleed #room-button{min-height:44px;margin-top:6px}.full-bleed .points-chip{font-size:11px}
@media(orientation:landscape) and (max-height:540px){.full-bleed .party-length{margin:4px 0 8px}.full-bleed .intro-card{top:calc(50% + 14px);padding:12px 18px 10px;width:min(420px,calc(100% - var(--edge-l) - var(--edge-r)))}.full-bleed .intro-card h2{font-size:24px;margin:4px 0 6px}.full-bleed .intro-card p{font-size:12px;line-height:1.35}.full-bleed .intro-legend{margin:8px 0 4px}}
.intro-diagram{display:flex;justify-content:center;margin:2px 0 8px}.intro-diagram:empty{display:none}.intro-diagram svg{width:180px;height:63px}
.intro-card .intro-vote{color:var(--mint);font-size:11px;font-weight:800;letter-spacing:.4px;margin:-4px 0 6px}
.first-chip{margin-left:6px;padding:2px 6px;border-radius:5px;background:var(--gold);color:#273129;font-size:8px;letter-spacing:1px}
.vote-card{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100% - 32px));padding:18px 20px 14px;text-align:center;background:linear-gradient(135deg,#18383def,#0c272fef);border:1px solid #ffc46a44;border-radius:18px;box-shadow:0 18px 60px #00121e66;animation:intro-in .35s ease-out}
.vote-card .panel-eyebrow{justify-content:center;color:var(--gold)}.vote-card h2{font-size:28px;font-weight:900;letter-spacing:-1px;line-height:1.1;margin:6px 0 12px}
.vote-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.vote-option{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:150px;padding:10px 8px 8px;background:#ffffff06;border:2px solid #b5e3ce26;border-radius:14px;color:var(--text);transition:transform .15s,border-color .15s,background .15s}
.vote-option:hover{background:#ffffff0d}.vote-option:active{transform:scale(.97)}
.vote-option.mine{border-color:var(--gold);background:#ffc46a14;box-shadow:0 0 0 3px #ffc46a22}
.vote-option strong{font-size:16px;font-weight:900;letter-spacing:-.3px}.vote-option small{font-size:9px;font-weight:800;letter-spacing:1px;color:var(--mint)}
.vote-diagram svg{width:132px;height:46px}.vote-key{position:absolute;left:8px;top:6px;font-size:10px;font-weight:850;color:#9cb9b0}
.touch-ui .vote-key{display:none}
.vote-chips{display:flex;gap:3px;min-height:24px;margin-top:3px}.vote-chip{width:22px;height:22px;border-radius:7px;border:2px solid var(--player-color);animation:chip-in .25s ease-out}
@keyframes chip-in{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
.vote-footer{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:10px;min-height:22px}.vote-footer small{color:var(--gold);font-size:13px;font-weight:850}.vote-footer .text-button{margin:0;padding:4px 8px;font-size:11px}
.side-count{display:none;margin-top:2px;font-size:15px;line-height:1;font-weight:950;color:var(--player-color);font-variant-numeric:tabular-nums}.count-mode .hearts{display:none}.count-mode .side-count{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.idol-hud{position:absolute;inset:0;z-index:3;pointer-events:none}
.side-panel{--player-color:var(--p1);position:absolute;display:flex;align-items:center;gap:7px;padding:3px 10px 3px 4px;border-radius:12px;background:#06121ccc;border:1px solid #b0dad540;box-shadow:0 4px 12px #0005;border:1px solid color-mix(in srgb,var(--player-color) 45%,transparent);box-shadow:0 0 14px color-mix(in srgb,var(--player-color) 30%,transparent),0 4px 12px #0005;color:var(--text);font-size:10px;font-weight:850;letter-spacing:.5px;transition:opacity .3s}
.side-panel .avatar{width:24px;height:24px;border-radius:7px}.side-panel b{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--player-color)}
.side-panel .counter{min-width:1.2ch;text-align:center;font-size:28px;line-height:1;font-weight:950;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:#fff;text-shadow:0 0 10px var(--player-color),0 0 2px var(--player-color)}
.side-panel.mine{padding:4px 14px 4px 5px;border-width:2px;border-color:var(--player-color)}.side-panel.mine .avatar{width:30px;height:30px}.side-panel.mine .counter{font-size:40px}
.side-panel.low .counter{color:#ffd6d6;text-shadow:0 0 12px #ff4d5e,0 0 2px #ff4d5e}
.side-panel.out{opacity:.45;filter:grayscale(.7)}.side-panel.out .counter{font-size:14px;letter-spacing:1px;text-shadow:none;color:#b7c7c0}
.side-panel.pending .counter{animation:side-pending .2s ease-in-out infinite alternate}@keyframes side-pending{to{color:#ff8a96;scale:1.08}}
.side-panel.scored{animation:side-hit .45s ease-out 2;background:#5a1d26e6}.side-panel.scored .counter{color:#ff8a96}
@keyframes side-hit{0%,100%{translate:0 0}25%{translate:-4px 0}75%{translate:4px 0}}
.count-chip{font-size:14px;font-weight:950}
/* Side counters sit off the field: yours bottom-centre under your rail, the far side beside the clock (phones: under it),
   the left/right sides at the screen edges. Rivals' panels are compact (avatar + number); the world tablets carry names. */
.side-panel:not(.mine) b{display:none}
.edge-bottom{left:50%;bottom:4px;transform:translateX(-50%)}
.edge-top{left:calc(50% + 84px);top:24px}
.edge-left{left:var(--edge-l);top:50%;transform:translateY(-50%)}
.edge-right{right:var(--edge-r);top:50%;transform:translateY(-50%)}
.full-bleed .edge-top{left:50%;top:calc(var(--edge-t) + 48px);transform:translateX(-50%)}
.full-bleed .edge-bottom{left:var(--play-cx,50%);bottom:max(2px,env(safe-area-inset-bottom))}
.full-bleed .side-panel{padding:2px 8px 2px 3px;gap:5px}.full-bleed .side-panel .avatar{width:22px;height:22px}.full-bleed .side-panel .counter{font-size:24px}
.full-bleed .side-panel.mine{padding:2px 12px 2px 4px}.full-bleed .side-panel.mine .avatar{width:26px;height:26px}.full-bleed .side-panel.mine .counter{font-size:32px}
.play-hint{position:absolute;z-index:5;left:50%;top:44%;transform:translateX(-50%);padding:9px 14px;border-radius:11px;background:#092b35ee;border:1px solid #ffc46a66;color:var(--gold);font-size:13px;font-weight:850;white-space:nowrap;pointer-events:none;animation:intro-in-x .3s ease-out}
@keyframes intro-in-x{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
.full-bleed .play-hint{font-size:12px}
.throw-hint{display:block;font-size:7px;font-weight:900;letter-spacing:.6px;line-height:1;margin-top:2px;opacity:.85}
.announcement.goal{font-size:46px;letter-spacing:-1.5px;top:34%}
.full-bleed .announcement.goal{font-size:36px;top:36%}
@media(orientation:landscape) and (max-height:540px){.full-bleed .vote-card{top:calc(50% + 6px);padding:10px 14px 8px;width:min(520px,calc(100% - var(--edge-l) - var(--edge-r)))}.full-bleed .vote-card h2{font-size:20px;margin:3px 0 8px}.full-bleed .vote-option{min-height:0;padding:7px 6px 6px}.full-bleed .vote-diagram svg{width:112px;height:39px}.full-bleed .vote-footer{margin-top:6px}.full-bleed .intro-diagram svg{width:150px;height:52px}.full-bleed .intro-diagram{margin:0 0 4px}}
/* Idol Keeper readability: one counter per seat (rivals: their arena tablet; you: the bottom pill; the top cards keep names),
   and the in-play calls and first-play hint off the field. Desktop: calls beside the clock, the hint in the bottom row.
   Phones: main.js frames the arena clear of the SPIN / BOOST column; the calls sit at its top, the hint just above the buttons.
   Tablets keep their framing (a column would crop the arena) and the desktop call spot; the hint still sits above SPIN. */
.side-panel:not(.mine){display:none}
#announcement.call{top:24px;left:calc(50% + 86px);transform:none;text-align:left;font-size:30px;letter-spacing:-.8px;text-shadow:0 3px 0 #183b3c,0 8px 20px #0006}
#announcement.call.small{font-size:15px;letter-spacing:0;padding:7px 12px;border-radius:10px;text-shadow:none}
.play-hint{top:auto;bottom:24px;left:calc(50% + 96px);transform:none;max-width:calc(50% - 160px);white-space:normal}
.phone #announcement.call,.touch-ui .play-hint{left:auto;right:var(--edge-r);width:180px;max-width:none;transform:none;text-align:center;white-space:normal}
.phone #announcement.call{top:calc(var(--edge-t) + 52px);bottom:auto;font-size:26px;line-height:1.05}
.phone #announcement.call.small{font-size:14px;line-height:1.25}
.touch-ui .play-hint{top:auto;bottom:calc(var(--edge-b) + 168px);padding:7px 10px;font-size:12px;line-height:1.3}
.touch-ui .play-hint:after{content:"";position:absolute;right:46px;bottom:-6px;width:10px;height:10px;background:inherit;border:solid #ffc46a66;border-width:0 1px 1px 0;rotate:45deg}
.tablet .play-hint{right:calc(var(--edge-r) + 12px);width:210px}
.tablet .play-hint{bottom:calc(var(--edge-b) + 214px);font-size:14px}
