:root{font-family:Arial,Helvetica,sans-serif;color:#25272b;background:#eeeade;--pink:#f52b91;--cyan:#13cde0;--team:var(--pink);--paper:#fffdf7;--muted:#85837f}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,input:focus-visible{outline:3px solid #26272b;outline-offset:4px}[hidden]{display:none!important}#game,#game canvas,#vignette{position:fixed;inset:0;width:100%;height:100%}#vignette{pointer-events:none;box-shadow:inset 0 0 160px #9c94751c}.topbar{position:fixed;top:0;left:0;right:0;z-index:5;padding:26px 34px;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}.topbar>*{pointer-events:auto}.wordmark{color:inherit;text-decoration:none;display:flex;align-items:center;gap:11px;font-weight:900;font-size:16px;line-height:.94;letter-spacing:-.7px}.mark{width:43px;height:43px;border-radius:13px;background:#26272b;color:#fffdf7;display:grid;place-items:center;font-size:36px;transform:rotate(-9deg);letter-spacing:-4px;padding-right:4px}.tiny-dot{font-size:9px;vertical-align:top;padding-left:2px}.match-score{position:absolute;left:50%;transform:translateX(-50%);width:360px;padding:15px 19px 10px;background:#fffdf7ee;border:1px solid #fff;border-radius:16px;box-shadow:0 6px 25px #5a503d0c}.score-labels{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:800;letter-spacing:.5px}.score-labels b{font-size:19px;letter-spacing:-.6px;margin:0 4px}#timer{font-size:19px;font-variant-numeric:tabular-nums;letter-spacing:-.8px}.pink{color:#b61768}.cyan{color:#007985}.pink-bg{background:var(--pink)}.cyan-bg{background:var(--cyan)}.territory{height:8px;border-radius:3px;background:#e9e5db;position:relative;overflow:hidden;margin-top:11px}.territory i{position:absolute;top:0;bottom:0;transition:width .2s}#pink-bar{left:0;background:var(--pink)}#cyan-bar{right:0;background:var(--cyan)}.score-caption{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;color:var(--muted);margin-top:7px}.top-actions{display:flex;gap:8px}.top-actions button{background:#fffdf7cc;border:1px solid #ffffffaa;border-radius:10px;padding:12px 15px;font-size:12px;font-weight:700;color:#333}.top-actions .icon-button{font-size:20px;padding:7px 13px}.menu-card{position:absolute;left:6.5%;top:50%;transform:translateY(-47%);width:350px;z-index:3}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.65px;display:flex;align-items:center;gap:7px}.live-dot{width:7px;height:7px;background:#6caa77;border-radius:50%;box-shadow:0 0 0 4px #6caa7718}h1{position:relative;font-size:clamp(64px,6.2vw,96px);line-height:.88;letter-spacing:-7px;margin:25px 0 21px;font-weight:900}h1 em{font-style:normal;color:var(--pink)}.heading-star{position:absolute;right:1px;bottom:3px;color:var(--cyan);font-size:77px;transform:rotate(12deg)}.intro{font-size:15px;line-height:1.6;color:#77756e;margin-bottom:21px}.instructions{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}.instructions>div{display:flex;align-items:center;gap:13px}.instructions>div>b{font-size:10px;color:#959087;border:1px solid #cdc8ba;border-radius:50%;width:27px;height:27px;display:grid;place-items:center}.instructions span{font-size:12px;font-weight:700}.instructions small{font-size:11px;font-weight:400;color:#939086;padding-left:7px}.input-label{display:block;font-size:9px;font-weight:800;letter-spacing:1.2px;margin-bottom:8px}#name{background:#fffdf7;border:1px solid #d9d5c9;border-radius:9px;width:100%;padding:13px 15px;font-size:14px;color:#333}.team-picker{display:flex;gap:6px;margin:9px 0 12px}.team-picker button{flex:1;white-space:nowrap;border:1px solid #d9d5c9;background:transparent;padding:9px 6px;font-size:11px;border-radius:7px;color:#6b6963}.team-picker button.selected{background:#fffdf7;border-color:#353631;color:#25272b}.team-picker i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px}.play{width:100%;border:0;background:#26272b;color:#fffdf7;border-radius:9px;padding:15px 18px;font-size:14px;font-weight:700;text-align:left;box-shadow:0 6px 0 #26272b12;transition:transform .15s}.play:hover{transform:translateY(-2px)}.play span{float:right;font-size:20px}.menu-note{text-align:center;font-size:10px;color:#8c887f;margin:13px 0 22px}.menu-controls{display:flex;gap:15px;font-size:10px;color:#78766e}kbd{font:700 9px Arial,sans-serif;border:1px solid #bdb8ab77;border-radius:4px;padding:3px 5px;margin-right:4px;background:#fffdf777}.arena-note{position:absolute;right:7%;bottom:15%;transform:rotate(-7deg);pointer-events:none}.arena-note strong{font-size:25px;font-weight:900;letter-spacing:-1px;line-height:1.1}.arena-note small{display:block;font-size:10px;margin-top:12px;color:#77756e}.note-arrow{position:absolute;left:-54px;top:-40px;font-size:64px;color:var(--pink)}#menu-footer{position:fixed;bottom:23px;left:34px;right:34px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.5px;color:#969187;z-index:4}.team-pill{position:fixed;top:128px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:1.6px;font-weight:800;background:var(--team);color:white;padding:8px 13px;border-radius:30px;box-shadow:0 3px 10px #0001}.player-panel{position:fixed;bottom:31px;left:30px;width:250px;background:#fffdf7f0;border:1px solid white;border-radius:14px;padding:17px 18px 13px;box-shadow:0 8px 30px #3f332914}.player-title{display:flex;justify-content:space-between;font-size:12px;font-weight:800}#health-text{font-size:10px;color:#777;line-height:15px}.meter{height:5px;background:#e8e5df;border-radius:5px;overflow:hidden;margin-top:9px}.meter i{display:block;width:100%;height:100%;transition:width .13s}.hp i{background:#6fac8d}.ink{height:10px;margin-top:7px}.ink i{background:var(--team)}.ink-label{display:flex;justify-content:space-between;font-size:9px;font-weight:800;letter-spacing:1px;margin-top:16px}.ink-label b{color:var(--team)}.player-bottom{display:flex;justify-content:space-between;font-size:10px;color:#8b867b;margin-top:12px}.player-bottom b{color:#333;font-size:13px}#refill-hint{border-top:1px solid #e9e5dc;margin-top:12px;padding-top:10px;font-size:9px;color:#8c877c}.burst-button{position:fixed;bottom:39px;left:303px;display:flex;gap:12px;align-items:center;background:#fffdf7f2;border:1px solid white;padding:14px 20px 14px 12px;border-radius:13px;color:#282a2e;box-shadow:0 8px 30px #3f332914}.burst-icon{font-size:39px;color:var(--team);width:45px;text-align:center}.burst-button b{display:block;font-size:10px;letter-spacing:1px}.burst-button small{display:block;font-size:9px;margin-top:5px;color:#8c877c;text-align:left}.burst-button svg{position:absolute;left:11px;width:47px;height:47px;transform:rotate(-90deg);fill:none;stroke:#e8e5df;stroke-width:2}#burst-ring{stroke:var(--team);stroke-dasharray:132;transition:stroke-dashoffset .1s}.burst-button.unavailable{opacity:.65}.map-panel{position:fixed;bottom:30px;right:30px;background:#fffdf7ed;border:1px solid white;border-radius:12px;padding:12px}.map-panel>div{display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:.8px;gap:10px;margin-bottom:9px}.map-panel button{border:0;background:transparent;color:#8d897f;font-size:8px;cursor:pointer;padding:0}#minimap{display:block;width:144px;height:144px;border-radius:5px}.bottom-hint{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);font-size:9px;color:#8b867b;white-space:nowrap}.bottom-hint span{margin:0 5px}#feed{position:fixed;right:31px;top:103px;display:flex;flex-direction:column;align-items:flex-end;gap:6px}.feed-item{background:#fffdf7e8;border-radius:7px;padding:8px 11px;font-size:10px;color:#777;animation:slide-in .2s ease}.feed-item b{font-weight:800}#reticle{position:fixed;pointer-events:none;width:22px;height:22px;border:2px solid #fff;box-shadow:0 0 0 1px #2225;border-radius:50%;display:none;transform:translate(-50%,-50%);z-index:4}#reticle i{position:absolute;width:4px;height:4px;left:7px;top:7px;background:var(--team);border-radius:50%}body.playing #reticle{display:block}body.playing #game{cursor:none}.center-message{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;background:#fffdf7ec;border:1px solid white;padding:33px 46px;border-radius:20px;z-index:6;box-shadow:0 20px 90px #3332}.center-message .eyebrow{justify-content:center}.center-message h2{font-size:40px;letter-spacing:-2px;line-height:1;margin:17px 0}.center-message p{color:#888;font-size:13px}.results,#scoreboard{position:fixed;inset:0;z-index:9;display:grid;place-items:center;background:#ebe6da77;backdrop-filter:blur(8px)}.result-card{width:440px;max-width:calc(100vw - 32px);background:var(--paper);border:1px solid white;border-radius:24px;padding:36px 36px 26px;box-shadow:0 30px 100px #3332;text-align:center}.result-card .eyebrow{justify-content:center}.result-splat{font-size:95px;line-height:1.2;color:var(--team);margin-top:20px}.result-card h2{font-size:37px;letter-spacing:-1.8px;margin:10px 0}.result-card>p{color:#8b867d;font-size:13px}.result-scores{display:flex;justify-content:center;align-items:center;gap:25px;margin:30px 0}.result-scores small{display:block;font-size:9px;letter-spacing:2px}.result-scores b{display:block;font-size:44px;letter-spacing:-2px;margin-top:6px}.result-divider{color:#d1ccbf;font-size:36px}.next-round{border-top:1px solid #e6e1d6;padding-top:20px}.scoreboard-card{width:480px;max-width:calc(100vw - 30px);max-height:85vh;overflow:auto;background:var(--paper);border-radius:20px;padding:25px 30px;box-shadow:0 20px 70px #3332}.board-title{display:flex;justify-content:space-between;align-items:center}.board-title h2{font-size:26px;letter-spacing:-1px}.board-title button{border:0;background:transparent;font-size:28px;color:#777}.board-head,.score-row{display:grid;grid-template-columns:1fr 65px 65px;align-items:center;gap:10px}.board-head{font-size:9px;letter-spacing:1px;color:#999;padding-bottom:12px}.score-row{font-size:12px;padding:12px 0;border-top:1px solid #e9e4d9}.score-row small{font-size:8px;color:#a6a095;padding-left:7px}.score-row>span:not(:first-child),.board-head>span:not(:first-child){text-align:right}.scoreboard-card>p{font-size:10px;color:#999;line-height:1.5;margin-top:20px}#toast{position:fixed;left:50%;bottom:95px;transform:translate(-50%,12px);background:#26272b;color:#fffdf7;padding:12px 20px;border-radius:10px;font-size:12px;opacity:0;transition:.2s;z-index:12;pointer-events:none}#toast.show{opacity:1;transform:translate(-50%,0)}#offline{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#282a2e;color:#fff;padding:18px 22px;border-radius:14px;z-index:20;box-shadow:0 10px 50px #0003;min-width:300px}#offline strong,#offline span{display:block;font-size:12px;margin-bottom:6px}#offline span{color:#bbb;font-size:11px}#offline button{margin-top:7px;background:#fffdf7;color:#333;border:0;border-radius:6px;padding:8px 12px;font-size:11px}.stick{position:fixed;bottom:33px;left:28px;width:108px;height:108px;background:#fffdf74d;border:2px solid #fffdf788;border-radius:50%;touch-action:none;z-index:7}.stick.aim{left:auto;right:28px;border-color:#fffa}.stick i{position:absolute;left:32px;top:32px;width:40px;height:40px;border-radius:50%;background:#fffdf7bc;box-shadow:0 2px 12px #3331;pointer-events:none}.stick span{position:absolute;top:-21px;width:100%;text-align:center;font-size:8px;letter-spacing:1px;color:#555;pointer-events:none}.stick.aim i{background:var(--team)}@keyframes slide-in{from{transform:translateX(15px);opacity:0}to{transform:translateX(0);opacity:1}}
@media(min-width:1500px){.menu-card{left:9%;width:380px}.arena-note{right:10%}}
@media(max-height:820px) and (min-width:761px){.menu-card{width:310px;top:51%;transform:translateY(-45%)}h1{font-size:70px;letter-spacing:-5px;margin:18px 0 13px}.intro{font-size:13px;margin:0 0 13px}.instructions{gap:7px;margin-bottom:15px}.instructions small{font-size:10px}.instructions span{font-size:11px}.heading-star{font-size:65px}.menu-note{margin:11px 0 15px}.menu-controls{font-size:9px;gap:8px}}
@media(max-width:1000px){.topbar{padding:20px}.top-actions button{padding:10px}.top-actions button span{display:none}.match-score{width:310px}.menu-card{left:5%}.arena-note{right:5%;bottom:10%}.map-panel{right:20px;bottom:25px}.player-panel{left:20px;bottom:25px}.burst-button{left:286px;bottom:33px}}
@media(max-width:760px){.topbar{padding:15px}.wordmark{font-size:12px;gap:7px}.mark{width:34px;height:34px;font-size:29px}.top-actions{gap:4px}.top-actions button{padding:7px 10px}.top-actions .icon-button{font-size:18px;padding:5px 9px}.match-score{top:69px;width:280px;padding:11px 15px 9px}.score-labels b,#timer{font-size:16px}.score-caption{font-size:7px}.menu-card{width:290px;max-height:calc(100dvh - 165px);overflow:auto;top:151px;left:50%;transform:translateX(-50%);padding:18px;background:#f5f1e8eb;border-radius:15px;scrollbar-width:none}.menu-card h1{font-size:60px;letter-spacing:-4px;margin:17px 0}.heading-star{font-size:53px;right:8px}.eyebrow{font-size:7px;letter-spacing:1.1px}.intro{font-size:12px;margin:0 0 16px}.instructions{gap:7px;margin-bottom:16px}.instructions span{font-size:11px}.instructions small{display:none}.instructions>div>b{width:23px;height:23px;font-size:8px}#name{padding:11px 13px}.menu-controls{font-size:8px;gap:6px}.menu-note{margin:10px 0 14px}.play{padding:13px 15px}.arena-note,#menu-footer{display:none}.team-pill{top:166px;font-size:8px;padding:7px 10px}#feed{top:206px;right:15px;max-width:200px}.feed-item{font-size:9px;padding:7px}.player-panel{width:190px;padding:12px;bottom:160px;left:15px}.player-title{font-size:10px}#refill-hint{display:none}.player-bottom{font-size:8px}.ink-label{margin-top:10px}.map-panel{bottom:164px;right:15px;padding:8px}#minimap{width:88px;height:88px}.map-panel>div{font-size:6px;gap:2px;margin-bottom:5px}.map-panel button{font-size:6px}.burst-button{left:50%;bottom:45px;transform:translateX(-50%);padding:7px;width:61px;height:66px;display:block}.burst-button>span:nth-child(2){position:absolute;top:-20px;left:50%;transform:translateX(-50%);white-space:nowrap}.burst-button b{font-size:7px}.burst-button small{font-size:7px;text-align:center}.burst-button svg{left:6px;top:9px}.burst-icon{font-size:40px}.bottom-hint{display:none}#toast{bottom:240px;font-size:10px;max-width:90vw;text-align:center}.center-message{padding:25px;min-width:240px}.center-message h2{font-size:34px}.scoreboard-card{padding:18px 22px}body.playing #reticle{display:none}.result-card{padding:25px}.result-card h2{font-size:30px}}
@media(pointer:coarse){body.playing #reticle{display:none}.menu-controls{display:none}.bottom-hint{display:none}.player-panel{bottom:164px}.map-panel{bottom:164px}.burst-button{left:50%;bottom:45px;transform:translateX(-50%)}}

/* Full viewport canvas and a quieter, compact gameplay HUD. */
html, body { width: 100%; height: 100%; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
#game canvas { display: block; touch-action: none; }
#vignette { box-shadow: inset 0 0 100px #293c4314; }
:root { --glass: rgba(24, 29, 39, .91); --cyan: #13cde0; }
.topbar { padding: max(18px, env(safe-area-inset-top)) 22px 0; }
.top-actions { gap: 7px; }
.top-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 37px; padding: 0 12px; font-size: 11px; border-radius: 9px; }
.top-actions .icon-button { width: 37px; padding: 0; font-size: 20px; }
#fullscreen svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fullscreen-option { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #77746c; margin: 0 0 14px; cursor: pointer; }
.fullscreen-option input { margin: 0; accent-color: #292e3a; }
.fullscreen-option kbd { margin-left: auto; }
.match-score { width: 330px; padding: 12px 16px 9px; border-radius: 12px; }
.score-labels { font-size: 9px; }
.score-labels b { font-size: 21px; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
#timer { font-size: 20px; }
#timer.urgent { color: #ff9284; animation: countdown-pulse 1s ease-in-out infinite; }
.territory { height: 5px; margin-top: 9px; }
.score-caption { font-size: 7px; }
body.playing .wordmark { color: #fff; background: var(--glass); padding: 9px 11px; border-radius: 11px; font-size: 11px; gap: 8px; box-shadow: 0 4px 20px #161b2720; }
body.playing .mark { width: 27px; height: 27px; font-size: 25px; background: #ffffff17; border-radius: 7px; }
body.playing .match-score, body.playing .top-actions button { background: var(--glass); color: #f7f8fd; border-color: #ffffff19; backdrop-filter: blur(14px); }
body.playing .match-score .pink { color: #ff8abe; }
body.playing .match-score .cyan { color: #74f3ff; }
body.playing .score-caption { color: #b0b6c0; }
body.playing .territory { background: #ffffff20; }
body.playing .top-actions button:hover { background: #343b4b; }

/* Health, ink, and burst share one bar instead of separate floating cards. */
#hud { pointer-events: none; }
.combat-dock { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; width: 414px; background: var(--glass); color: #f5f7ff; border: 1px solid #ffffff20; border-radius: 15px; box-shadow: 0 8px 30px #16212d25; backdrop-filter: blur(14px); padding: 13px 16px; gap: 17px; pointer-events: auto; }
.combat-dock .player-panel { position: static; flex: 1; min-width: 0; width: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.player-title { align-items: center; gap: 7px; font-size: 11px; font-weight: 700; }
#player-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 105px; }
.combat-dock .team-pill { position: static; transform: none; padding: 0; background: none; color: var(--team); font-size: 8px; letter-spacing: .8px; box-shadow: none; }
#health-text { margin-left: auto; color: #a8dcb8; font-size: 9px; white-space: nowrap; }
.meter { height: 3px; background: #ffffff1c; margin-top: 7px; }
.hp i { background: #89cea0; }
.ink { height: 7px; margin-top: 5px; }
.ink-label { font-size: 8px; font-weight: 700; margin-top: 10px; color: #b7bdca; }
.ink-label b { color: #fff; font-size: 10px; }
.player-bottom, #refill-hint { display: none; }
.low-ink .ink-label b { color: #ffb88c; }
.low-ink .ink { box-shadow: 0 0 0 1px #ffb88c; }
.combat-dock .burst-button { position: relative; left: auto; bottom: auto; transform: none; display: flex; align-items: center; flex-direction: column; justify-content: center; width: 88px; height: auto; min-height: 72px; gap: 1px; flex-shrink: 0; background: #ffffff08; border: 1px solid #ffffff14; padding: 3px 7px 7px; border-radius: 10px; color: #f7f8ff; box-shadow: none; }
.combat-dock .burst-button:hover { background: #ffffff17; }
.burst-button .burst-icon { font-size: 34px; line-height: 42px; height: 42px; color: var(--team); }
.combat-dock .burst-button > span:nth-child(2) { position: static; transform: none; }
.burst-button b { display: none; }
.burst-button small { font-size: 8px; margin-top: 0; color: #d8dce8; text-align: center; white-space: nowrap; }
.burst-button svg { top: 4px; left: 50%; width: 39px; height: 39px; transform: translateX(-50%) rotate(-90deg); stroke: #ffffff19; }
.burst-button.unavailable { opacity: .48; }

.map-panel { bottom: max(18px, env(safe-area-inset-bottom)); right: 22px; background: var(--glass); border: 1px solid #ffffff20; border-radius: 12px; padding: 9px; box-shadow: 0 4px 25px #16212d20; pointer-events: auto; }
.map-panel > div { font-size: 7px; letter-spacing: 1px; gap: 10px; margin-bottom: 7px; color: #b5bdca; }
.map-panel button { color: #d9ddeb; font-size: 7px; }
#minimap { width: 112px; height: 112px; }
.bottom-hint { bottom: 24px; left: 22px; transform: none; font-size: 9px; color: #333d46; background: #fffdf7b0; padding: 9px 11px; border-radius: 8px; }
.bottom-hint span { margin: 0 3px; }
#feed { right: 22px; top: 77px; gap: 5px; }
.feed-item { border-radius: 6px; padding: 7px 10px; }
.avatar-label { position: absolute; left: 0; top: 0; font: 700 9px Arial; color: #f7f8ff; background: #232b3acc; padding: 3px 6px; border-radius: 4px; white-space: nowrap; will-change: transform; }
.avatar-label.self { font-size: 8px; letter-spacing: 1.5px; padding: 4px 7px; color: #fff; background: #222a39; border-bottom: 2px solid var(--team); }
#reticle { width: 18px; height: 18px; box-shadow: 0 0 0 1px #2226; }
#reticle i { left: 5px; top: 5px; }
.center-message { top: 45%; padding: 28px 38px; pointer-events: none; }
.center-message h2 { font-size: 36px; }
.results, #scoreboard { background: #16202e50; }
.result-card { max-height: 95dvh; overflow: auto; }
#toast { bottom: 140px; background: #232b3a; padding: 11px 17px; font-size: 11px; }
.stick { background: #232b3a36; }
@keyframes countdown-pulse { 50% { opacity: .65; } }

#hit-confirm { position: fixed; width: 34px; height: 34px; opacity: 0; pointer-events: none; z-index: 8; transform: translate(-50%, -50%); color: #fff; filter: drop-shadow(0 1px 2px #122334); }
#hit-confirm::before, #hit-confirm::after { content: ''; position: absolute; top: 16px; left: 0; width: 34px; height: 3px; border-radius: 2px; background: linear-gradient(to right, currentColor 0 28%, transparent 28% 72%, currentColor 72%); transform: rotate(45deg); }
#hit-confirm::after { transform: rotate(-45deg); }
#hit-confirm.fatal { color: #ffe47b; }
#damage-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 4; opacity: 0; box-shadow: inset 0 0 100px 25px #ff5d6580; }
.damage-number { position: absolute; top: 0; left: 0; color: #fff9d5; font: 900 22px Arial, sans-serif; letter-spacing: -.5px; text-shadow: -1px -1px 0 #152533, 1px -1px 0 #152533, -1px 1px 0 #152533, 1px 1px 0 #152533, 0 3px 7px #15253380; pointer-events: none; will-change: transform; }
.damage-number.fatal { color: #ffe47b; font-size: 25px; letter-spacing: 1px; }
.avatar-health { position: absolute; top: 0; left: 0; display: none; width: 38px; height: 5px; background: #132333d9; padding: 1px; border-radius: 3px; pointer-events: none; }
.avatar-health i { display: block; height: 3px; background: #fff3ae; border-radius: 2px; transition: width .08s; }
.avatar-label.self { border-bottom-color: #ffe178; color: #ffe9a0; }
.avatar-label.self { background: #332706; color: #ffed6c; font-size: 10px; padding: 5px 9px; box-shadow: 0 2px 6px #0005; }
.avatar-label.enemy { background: #4a0923ee; color: #ffb6ca; border-bottom: 2px solid #ff4a79; font-size: 9px; letter-spacing: .8px; }
.avatar-label.ally { background: #073e3cee; color: #9cfff0; border-bottom: 2px solid #53fff0; font-size: 9px; letter-spacing: .8px; }
.player-key { position: fixed; bottom: 68px; left: 22px; display: flex; gap: 12px; padding: 9px 12px; border-radius: 8px; background: var(--glass); font-size: 9px; font-weight: 800; letter-spacing: .5px; }
.key-self { color: #ffed6c; }.key-ally { color: #53fff0; }.key-enemy { color: #ff8cac; }
@media (max-width: 1100px) { .player-key { bottom: 21px; left: 14px; gap: 7px; font-size: 8px; } }
@media (max-width: 760px), (pointer: coarse) { .player-key { top: 127px; bottom: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 7px; padding: 6px 9px; } }

/* The arena now sits in a fully built 3D stadium. */
body { background: #293f4b; }
body:not(.playing) .wordmark { color: #fff; }
.menu-card { width: 380px; padding: 24px; background: #fffdf7f2; border: 1px solid #ffffff90; border-radius: 20px; box-shadow: 0 22px 90px #071e3a40; }
.menu-card h1 { font-size: clamp(62px, 5vw, 80px); letter-spacing: -5px; }
.menu-card .instructions small { display: none; }
.arena-note { color: #f5f9ff; text-shadow: 0 2px 14px #142d45; }
.arena-note small, #menu-footer { color: #cfdee8; }

@media (max-height: 860px) and (min-width: 761px) {
  .menu-card { top: 52%; transform: translateY(-45%); max-height: calc(100dvh - 125px); overflow-y: auto; scrollbar-width: none; }
  h1 { font-size: 66px; margin: 16px 0 13px; }
}
@media (max-width: 1100px) {
  .bottom-hint { display: none; }
  .top-actions button span { display: none; }
}
@media (max-width: 760px) {
  .topbar { padding: max(12px, env(safe-area-inset-top)) 12px 0; }
  .top-actions { gap: 4px; }
  .top-actions button, .top-actions .icon-button { width: 31px; height: 31px; padding: 0; }
  .top-actions .icon-button { font-size: 18px; }
  .match-score { top: 65px; width: 276px; padding: 10px 14px 8px; }
  .score-labels b, #timer { font-size: 18px; }
  .score-caption { font-size: 6px; }
  body.playing .wordmark { padding: 6px 8px; font-size: 9px; }
  body.playing .mark { width: 24px; height: 24px; font-size: 23px; }
  .menu-card { max-height: calc(100dvh - 160px); top: 146px; background: #f5f1e8f2; }
  .menu-card { width: 290px; padding: 18px; }
  .menu-card h1 { font-size: 58px; }
  #feed { top: 142px; right: 12px; }
  .feed-item { font-size: 9px; padding: 6px 8px; }
  .combat-dock { width: min(330px, calc(100vw - 24px)); bottom: 12px; padding: 10px 12px; gap: 12px; }
  .player-title { font-size: 10px; gap: 5px; }
  #player-name { max-width: 83px; }
  .combat-dock .team-pill { font-size: 7px; }
  .combat-dock .burst-button { width: 66px; min-height: 65px; }
  .burst-button small { font-size: 7px; }
  .map-panel { top: auto; bottom: 117px; right: 12px; padding: 7px; }
  #minimap { width: 76px; height: 76px; }
  .map-panel > div { font-size: 6px; gap: 3px; margin-bottom: 5px; }
  .map-panel button { font-size: 6px; }
  #toast { bottom: 225px; }
  body.playing #reticle { display: block; }
}
@media (pointer: coarse) {
  body.playing #reticle, .menu-controls, .bottom-hint { display: none; }
  .combat-dock { bottom: 164px; width: min(340px, calc(100vw - 24px)); }
  .map-panel { top: 144px; bottom: auto; right: 12px; padding: 7px; }
  #minimap { width: 72px; height: 72px; }
  #feed { display: none; }
  #toast { bottom: 275px; }
}
@media (pointer: coarse) and (orientation: landscape) {
  .combat-dock { bottom: 14px; width: 310px; padding: 8px 12px; }
  .map-panel { top: 73px; right: 12px; }
  .match-score { top: 12px; width: 280px; }
  .score-caption { display: none; }
  #toast { bottom: 120px; }
  .stick { width: 96px; height: 96px; bottom: 18px; }
  .stick i { left: 26px; top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.avatar-label.self { background: #163d48; color: #a9fff2; border-bottom-color: #53fff0; }

.player-key .key-self { color: #53fff0; }

/* Third-person paint arena controls and match HUD. */
body.playing #reticle { left: 50% !important; top: 50% !important; width: 26px; height: 26px; border: 2px solid #fff; border-top-color: transparent; border-bottom-color: transparent; box-shadow: none; filter: drop-shadow(0 1px 2px #000); }
body.playing #reticle i { background: white; left: 9px; top: 9px; width: 4px; height: 4px; }
#resume-game { position: fixed; left: 50%; top: 47%; transform: translate(-50%,-50%); z-index: 8; border: 1px solid #ffffff70; border-radius: 16px; background: #172730ed; color: white; padding: 20px 28px; font-weight: 900; letter-spacing: 1px; box-shadow: 0 12px 50px #0004; }
#resume-game small { display: block; margin-top: 10px; color: #b9d1da; font-size: 11px; font-weight: 400; letter-spacing: 0; }
body.playing .combat-dock { left: 20px; bottom: 24px; transform: none; width: 310px; }
.paint-crews { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; background: #12232bce; padding: 12px 18px; border-radius: 18px; color: white; pointer-events: none; }
.paint-crews>b { font-size: 18px; font-weight: 900; font-style: italic; }
.crew { display: flex; gap: 9px; color: var(--pink); }.cyan-crew { color: var(--cyan); }
.crew-slot { position: relative; width: 21px; height: 34px; filter: drop-shadow(0 1px 1px #0007); }
.crew-slot::before { content: ''; position: absolute; left: 4px; top: 0; width: 13px; height: 13px; border-radius: 50%; background: currentColor; border: 2px solid #fff; }
.crew-slot::after { content: ''; position: absolute; left: 1px; bottom: 0; width: 19px; height: 20px; border-radius: 9px 9px 4px 4px; background: currentColor; border: 2px solid #fff; }
.crew-slot.out { opacity: .32; }.crew-slot.out::before { background: #1b2630; }.crew-slot.out::after { background: #1b2630; }
.crew-slot.you { filter: drop-shadow(0 0 4px #53fff0); }
body.playing .player-key { bottom: 125px; left: 20px; }.bottom-hint { display: none; }
@media(max-width: 950px) { body.playing .combat-dock { width: 250px; padding: 10px; }.paint-crews { bottom: 140px; gap: 12px; }.crew { gap: 6px; } }
@media(pointer: coarse) { #resume-game { display: none; } body.playing #reticle { display: block; } body.playing .combat-dock { bottom: 140px; width: 250px; } .paint-crews { bottom: 25px; } body.playing .player-key { display: none; } }

@media(pointer: coarse) { .paint-crews { top: 124px; bottom: auto; padding: 8px 12px; } }

#mobile-scores { display: none; }
#ink-notice { position: fixed; left: 50%; top: 26%; transform: translate(-50%, -8px); max-width: calc(100vw - 32px); padding: 12px 20px; border: 1px solid #67efc7; border-radius: 12px; background: #102d28ed; color: #bcffe5; font-size: 13px; font-weight: 800; text-align: center; opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none; z-index: 12; }
#ink-notice.show { opacity: 1; transform: translate(-50%, 0); }
#ink-notice.empty { color: #ffe2a0; border-color: #f0b958; background: #35291bef; }
#damage-splashes { position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0; background: radial-gradient(ellipse at 0% 35%, var(--hit-ink) 0 5%, transparent 17%), radial-gradient(ellipse at 100% 67%, var(--hit-ink) 0 4%, transparent 16%), radial-gradient(ellipse at 30% 105%, var(--hit-ink) 0 5%, transparent 20%); }
#damage-direction { position: fixed; left: 50%; top: 50%; width: 150px; height: 150px; border: 5px solid transparent; border-top-color: var(--hit-ink, #ff577c); border-radius: 50%; filter: drop-shadow(0 1px 2px #151d24); opacity: 0; pointer-events: none; z-index: 5; }
@media(pointer: coarse) and (max-width: 760px) {
  .paint-crews { top: 148px; }
  .map-panel { display: none; }
  #mobile-scores { display: inline-block; }
  body.playing .combat-dock { bottom: 172px; }
}

.map-rotation { display: flex; gap: 6px; margin: 0 0 9px; }
.map-rotation button { flex: 1; padding: 10px 6px; min-height: 40px; cursor: pointer; background: transparent; border: 1px solid #344b4a33; border-radius: 7px; font-size: 10px; color: #576564; text-align: center; }
.map-rotation .current { color: #fff; background: #254843; border-color: #254843; }
.map-tip { font-size: 10px; line-height: 1.6; color: #56605b; margin: 0 0 15px; }
.map-tip span { display: block; font-size: 8px; letter-spacing: 1px; }

.map-rotation button:hover { border-color: #254843; }
.map-rotation button:focus-visible { outline: 3px solid #f52b91; outline-offset: 2px; }
