@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Barlow:wght@400;500;600;700&display=swap');
:root{font-family:Barlow,Arial,sans-serif;color:#f3f1e8;font-synthesis:none;background:#182325;color-scheme:dark}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,input:focus-visible{outline:2px solid #ffd99a;outline-offset:5px}[hidden]{display:none!important}#game{width:100vw;height:100dvh;display:block}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(9,18,21,.86),rgba(9,18,21,.3) 41%,transparent 75%),linear-gradient(0deg,rgba(9,18,21,.65),transparent 22%,transparent 75%,rgba(9,18,21,.4))}body.playing .vignette{background:linear-gradient(0deg,#071213a0,transparent 18%,transparent 82%,#07121380)}header{position:fixed;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:30px 42px;gap:20px}.brand{font-weight:700;letter-spacing:.19em;font-size:18px;color:inherit;text-decoration:none;white-space:nowrap}.sigil{color:#e8bd7b;font-size:25px;margin-right:12px}.top-status{display:flex;align-items:center;gap:26px;font-size:12px;letter-spacing:.12em;font-weight:600}.top-status button{border:1px solid #dce4d23d;color:#e9eadd;background:#14202255;padding:10px 14px;font-size:12px;letter-spacing:.1em}#connection{color:#e2e8d9}main{position:fixed;left:7.1%;top:50%;transform:translateY(-47%);width:430px;max-width:85vw}.eyebrow{font-size:12px;letter-spacing:.23em;font-weight:600;color:#e8bd7b;display:flex;align-items:center;gap:12px}.eyebrow>span{width:24px;height:1px;background:#e8bd7b}h1{font:700 clamp(65px,7.9vw,120px)/.91 'Barlow Condensed',Impact,sans-serif;text-transform:uppercase;letter-spacing:-.025em;margin:23px 0 24px}.intro{font-size:17px;line-height:1.7;color:#d2d9d2;margin:0 0 28px}.room-actions{width:340px;max-width:100%}.primary{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;padding:19px 22px;background:#edc18a;color:#192326;font-weight:700;font-size:14px;letter-spacing:.09em;transition:background .2s,transform .2s}.primary:hover{background:#ffdbab;transform:translateY(-1px)}.primary span{font-size:20px}.join-row{display:flex;border:1px solid #e0e4d64d;margin-top:10px;background:#14212670}.join-row input{min-width:0;flex:1;background:transparent;border:0;padding:17px;color:#fff;font-size:13px;letter-spacing:.1em;text-transform:uppercase}.join-row input::placeholder{color:#c8d0c5}.join-row button{border:0;border-left:1px solid #e0e4d64d;background:transparent;color:#eee9dc;padding:0 24px;font-size:13px;font-weight:700;letter-spacing:.08em}.text-button{background:none;border:0;color:#dce1d4;padding:18px 0;font-size:13px;text-align:left}.text-button span{margin-left:8px;color:#edc18a}.text-button:hover{color:white}#lobby-status{font-size:13px;line-height:1.5;color:#c3ccbf;margin:0;max-width:340px}#invite{margin-top:22px}#room-code{font:600 42px 'Barlow Condensed',Impact,sans-serif;letter-spacing:.15em;display:block;margin:6px 0}#copy{padding:9px 12px;border:1px solid #e8bd7b;background:transparent;color:#e8bd7b;font-size:12px}#invite p{font-size:14px}footer{position:fixed;bottom:27px;left:42px;right:42px;display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.1em;color:#d2dace;pointer-events:none}.controls{display:flex;align-items:center;gap:24px}.controls>span{display:flex;align-items:center;gap:5px}kbd{border:1px solid #d8e1ce65;min-width:21px;height:25px;padding:5px 5px;font:11px Barlow,Arial;display:inline-block;text-align:center;background:#11202440;border-bottom-width:2px}.footer-note{font-size:11px;letter-spacing:.15em}.footer-note i{margin:0 16px;color:#edc18a}#hud{position:fixed;top:105px;left:50%;transform:translateX(-50%);width:min(880px,85vw);display:flex;gap:42px;align-items:center}.fighter-info{flex:1}.fighter-info>div:first-child{display:flex;justify-content:space-between;font-size:13px;letter-spacing:.1em;margin-bottom:10px}.round-info{text-align:center;white-space:nowrap}.round-info span{display:block;letter-spacing:.16em;font-size:11px;color:#e9d4b1}.round-info strong{display:block;font:600 27px 'Barlow Condensed',Impact;margin-top:6px}#announcement{position:fixed;top:30%;left:0;right:0;text-align:center;pointer-events:none;font:600 60px 'Barlow Condensed',Impact;text-shadow:0 3px 20px #0008;letter-spacing:.03em}#crosshair{position:fixed;left:50%;top:50%;font-size:28px;pointer-events:none}#capture{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#0b191bd9;color:#eee2c8;font-size:14px;text-align:center;pointer-events:none}#result{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);padding:40px;width:380px;max-width:90vw;text-align:center;background:#102024ed;border:1px solid #bdc3a547;box-shadow:0 25px 100px #0004}#result .eyebrow{justify-content:center}h2{font:700 72px 'Barlow Condensed',Impact;margin:10px 0}#result p{font-size:15px;color:#d2d9cd;margin-bottom:28px}#hit-flash{position:fixed;inset:0;pointer-events:none;box-shadow:inset 0 0 130px 15px #b42c1f;opacity:0;transition:opacity .15s}@media(max-width:800px){header{padding:20px}.top-status{gap:10px}#connection,.footer-note,.mouse-help{display:none}main{left:7%;width:360px}h1{font-size:80px}footer{left:20px;right:20px;bottom:18px}.controls{gap:14px;font-size:10px}#hud{gap:15px;top:88px}.intro{font-size:16px}}@media(max-height:700px){main{top:49%;transform:translateY(-44%)}h1{font-size:76px;margin:15px 0}.intro{margin-bottom:16px;line-height:1.4}.primary{padding:14px 20px}.join-row input{padding:14px}#invite{margin-top:12px}#invite p{margin:8px 0}footer{bottom:15px}}

#lobby:has(#invite:not([hidden])) h1{font-size:64px;margin:14px 0}#lobby:has(#invite:not([hidden])) .intro{display:none}#hud{text-shadow:0 1px 5px #102021}#lobby-status{font-size:14px}.text-button{font-size:14px}@media(max-height:600px){#lobby{max-height:calc(100dvh - 150px);overflow-y:auto;top:80px;transform:none;padding-right:12px}h1{font-size:58px}.intro{font-size:14px}.controls{gap:9px}}

.controls{flex-wrap:wrap;row-gap:8px}
#capture{line-height:1.45}
.city-health{margin-top:12px}.city-health>div:first-child{display:flex;justify-content:space-between;font-size:13px;letter-spacing:.07em;margin-bottom:6px;color:#f1d6a7}.city-track{height:9px;background:#152423bb}.city-track i{display:block;height:100%;width:100%;background:#e9c184;transition:width .15s}.opponent .city-track i{background:#ce715f}#weapon-panel button:disabled{cursor:default;opacity:.55}#weapon-panel button[aria-pressed=true]{opacity:1}
#platform-markers{position:fixed;inset:0;pointer-events:none}.platform-marker{position:absolute;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;border:2px solid #ead4a5;background:#172829ec;color:#fff1d0;font-size:16px;font-weight:700;pointer-events:auto;box-shadow:0 3px 14px #0008}.platform-marker:hover,.platform-marker[aria-pressed=true]{background:#ecc88e;color:#172325}#weapon-panel{position:fixed;z-index:3;overflow-y:auto;overscroll-behavior:contain;width:260px;max-width:90vw;padding:20px;background:#102024f5;border:1px solid #c6ad7880;box-shadow:0 12px 40px #0004}#weapon-panel h3{margin:0;font-size:18px;letter-spacing:.07em;color:#f1d5a6}#weapon-panel p{font-size:14px;margin:8px 0 14px;color:#d0d9d1}#weapon-panel>div{display:flex;flex-direction:column;gap:8px}#weapon-panel button{font-size:14px;padding:11px 10px;border:1px solid #8e9b91;background:#213333;color:#eef0dc;flex:1}#weapon-panel button[aria-pressed=true]{background:#edc18a;color:#192326;border-color:#edc18a}@media(max-width:600px){#weapon-panel{padding:14px;width:235px}}
.resource-count{margin-top:10px;font-size:14px;letter-spacing:.06em;color:#e9d4b1;display:flex;justify-content:space-between}.resource-count strong{color:#fff0d3}#mining-panel{position:fixed;bottom:175px;left:50%;transform:translateX(-50%);width:min(330px,88vw);padding:14px 18px;background:#102024ed;border:1px solid #c6ad7855;text-align:center;pointer-events:none;font-size:14px;letter-spacing:.05em}#mining-progress{height:7px;background:#364544;margin-top:11px}#mining-bar{display:block;height:100%;width:0;background:#e9c68e}@media(max-width:600px){#mining-panel{bottom:205px}}

#game:focus{outline:none}#game[data-look-mode=locked]{cursor:none}#hud,#crosshair,#announcement{pointer-events:none}.fighter-info{position:relative}#capture{max-width:90vw;width:max-content;bottom:110px;font-size:13px}@media(max-width:600px){#capture{bottom:135px}.controls{column-gap:12px}}

.platform-marker[data-ammo]:not([data-ammo=""])::after{content:attr(data-ammo);position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:5px;padding:3px 6px;background:#102024ed;color:#fff0d3;font-size:12px;white-space:nowrap;border-radius:3px}.platform-marker[data-ammo="EMPTY"]::after,.platform-marker[data-ammo="DISABLED"]::after{color:#ffb69d}
#weapon-panel h3{letter-spacing:0;line-height:1.25}#weapon-panel #weapon-level{margin:4px 0 0;color:#ced5cc}#weapon-options{margin-top:16px}#weapon-panel .weapon-option{display:flex;align-items:center;gap:12px;text-align:left;min-height:64px}#weapon-panel .weapon-option:hover:not(:disabled){background:#344747;border-color:#edc18a}.weapon-option svg{width:38px;height:38px;flex:none;fill:none;stroke:#e9c68e;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.weapon-label{display:flex;flex-direction:column;gap:4px;font-size:16px;font-weight:600;line-height:1.2}.weapon-label small{font-size:14px;font-weight:400;color:#ced5cc}.weapon-option[data-action=remove]{color:#e8c1b2}

#weapon-panel{width:320px}#weapon-panel .weapon-option{gap:10px}.weapon-label{flex:1;min-width:0}.weapon-cost{margin-left:auto;flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:48px;color:#edc18a}.weapon-cost strong{font-size:28px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}.weapon-cost small{font-size:10px;font-weight:400;color:#ced5cc}@media(max-width:600px){#weapon-panel{width:300px}.weapon-option svg{width:30px;height:30px}}
#city-hud{position:fixed;inset:0;pointer-events:none;z-index:2;text-shadow:0 2px 12px #071213cc}
.city-view .resource-count,.city-view footer{display:none}
#city-inventory{position:absolute;left:50%;bottom:76px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;white-space:nowrap}
#city-inventory strong{font:700 106px/1 'Barlow Condensed',Impact,sans-serif;color:#f5d49a;font-variant-numeric:tabular-nums}
#city-inventory span{font-size:20px;letter-spacing:.04em}
#return-to-battle{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:18px}
#return-to-battle kbd{display:flex;align-items:center;justify-content:center;width:246px;height:74px;padding:12px 24px;border:3px solid #fff3d5;border-bottom:8px solid #c99c59;border-radius:10px;background:#ffdf9d;font-size:30px;font-weight:800;letter-spacing:.14em;color:#14272b;text-shadow:none;box-shadow:0 5px 0 #102126,0 8px 28px #071213a6}
#return-to-battle>span{font-size:20px;font-weight:600;letter-spacing:.05em;white-space:nowrap;color:#fff3d5;background:#102126e8;padding:8px 16px;border-radius:6px}
.return-arrow{width:52px;height:52px;fill:none;stroke:#ffe5b0;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 2px #071213) drop-shadow(0 0 5px #071213);animation:return-arrow-rise 1.4s ease-in-out infinite}
@keyframes return-arrow-rise{0%,100%{transform:translateY(4px)}50%{transform:translateY(-8px)}}
@media(prefers-reduced-motion:reduce){.return-arrow{animation:none}}
@media(max-width:600px){#city-inventory{bottom:52px}#city-inventory strong{font-size:84px}#city-inventory span{font-size:18px}#return-to-battle kbd{width:220px;height:68px;font-size:28px}}
@media(max-height:600px){#city-inventory{bottom:30px}#city-inventory strong{font-size:72px}#city-inventory span{font-size:18px}#return-to-battle{top:43%;gap:12px}.return-arrow{width:44px;height:44px}#return-to-battle kbd{height:62px}#return-to-battle>span{font-size:18px;padding:6px 14px}}

/* The final shot stays visible above a compact rematch bar. */
.match-ended #hud,.match-ended footer,.match-ended #announcement{display:none}
#result{top:auto;bottom:20px;transform:translateX(-50%);width:720px;max-width:calc(100vw - 32px);padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;background:#102024ed;border-radius:6px}
#result-title{font-size:40px;line-height:1;margin:0 0 5px}
#result #result-detail{font-size:14px;line-height:1.4;margin:0;max-width:310px}
.result-actions{flex:0 0 220px;display:flex;flex-direction:column;gap:4px}
.result-actions .primary{margin:0;padding:12px 18px}
.result-actions .text-button{margin:0;padding:7px 4px;font-size:14px}
@media(max-width:600px){#result{bottom:12px;padding:12px 14px;gap:10px}#result-title{font-size:32px}.result-actions{flex-basis:145px}.result-actions .primary{padding:12px;font-size:14px}.result-actions .text-button{font-size:14px}}
@media(max-height:500px){#result{bottom:8px;padding:8px 16px}#result-title{font-size:30px}#result-detail{display:none}.result-actions{flex-direction:row;flex-basis:auto;align-items:center;gap:12px}}

#lobby{max-height:calc(100dvh - 170px);overflow-y:auto;padding-right:10px;scrollbar-width:thin}
#open-games{margin-top:20px;border-top:1px solid #dce4d23d;padding-top:14px}
.games-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
#open-games-title{font:600 14px Barlow,Arial,sans-serif;letter-spacing:.12em;margin:0}
#refresh-games{background:none;border:0;color:#edc18a;padding:6px;font-size:14px}
#open-games-list{max-height:164px;overflow-y:auto;scrollbar-width:thin}
.open-game{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #dce4d220;font-size:15px}
.open-game>span:first-child{flex:1}.game-count{color:#edc18a;font-variant-numeric:tabular-nums}
.open-game button{border:1px solid #e8bd7b;background:#142126;color:#f4d2a1;padding:8px 12px;font-size:14px;font-weight:700}
#open-games-status{font-size:14px;line-height:1.45;color:#d2d9d2;margin:8px 0}
#room-code{font-size:26px;letter-spacing:.06em}#cancel-room{display:block;padding:12px 0}#join-invite{padding-bottom:0}
.stand-label{margin-top:10px;font-weight:700;font-size:14px;letter-spacing:.14em;text-transform:uppercase;color:#f8d69c}
.stand-label[data-team=red]{color:#ffb19d}.stand-label[data-team=blue]{color:#a6def5}
#announcement.city-fallen{top:27%;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:90vw;box-sizing:border-box;padding:18px 36px;border-block:2px solid #edc18a;background:linear-gradient(90deg,#12252b00,#12252bf0 15%,#12252bf0 85%,#12252b00);font-size:clamp(32px,5vw,66px);color:#ffe1a5}
#announcement[data-team=red]{color:#ffb19d}#announcement[data-team=blue]{color:#a6def5}
#game-setup{width:340px;max-width:100%}#game-setup h2{font-size:48px;line-height:1.05;margin:20px 0 26px}
.setup-label,#game-setup legend{display:block;font-size:14px;letter-spacing:.08em;margin-bottom:10px}
#game-name{box-sizing:border-box;width:100%;padding:14px 16px;background:#142126b8;border:1px solid #dce4d269;color:#fff;border-radius:0;font-size:17px}
#game-setup fieldset{padding:0;border:0;margin:24px 0 18px}.strength-option{display:flex;align-items:center;gap:14px;padding:13px 16px;margin-bottom:8px;border:1px solid #dce4d242;background:#142126a6;cursor:pointer}.strength-option:has(input:checked){border-color:#edc18a;background:#3d3c2fd9}
.strength-option input{accent-color:#edc18a;width:18px;height:18px;margin:0}.strength-option strong{display:block;font-size:18px;font-weight:600}.strength-option small{display:block;color:#d2d9d2;font-size:13px;margin-top:3px}
#setup-status{color:#ffd7b3;font-size:14px;line-height:1.4}#setup-status:empty{display:none}.game-list-name{min-width:0;overflow-wrap:anywhere}.game-list-name small{display:block;color:#bfcac7;font-size:12px;line-height:1.5;margin-top:4px}#room-code{overflow-wrap:anywhere}
body:has(#game-setup:not([hidden])) footer{display:none}
#game-setup h2{font-size:42px;margin:12px 0 16px}#game-name{padding:11px 14px}
#game-setup fieldset{margin:18px 0 12px}.strength-option{padding:9px 14px}.strength-option strong{font-size:17px}.strength-option small{font-size:12px;margin-top:2px}
#game-setup .primary{padding:14px 18px}#setup-back{padding:12px 0}

.disaster-home{display:inline-block;margin-bottom:18px;color:#edc18a;font-size:14px;text-decoration:none}.disaster-home:hover{text-decoration:underline}.disaster-home:focus-visible{outline:2px solid #edc18a;outline-offset:4px}
