@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}

header{z-index:5}.audio-controls{position:relative}.volume-panel{position:absolute;right:0;top:calc(100% + 10px);width:220px;padding:16px;background:#102024f5;border:1px solid #c6ad7880;box-shadow:0 8px 25px #0006;letter-spacing:0}.volume-panel label{display:flex;justify-content:space-between;margin-bottom:12px;font-size:14px}.volume-panel input{width:100%;accent-color:#edc18a;cursor:pointer}.volume-panel output{color:#edc18a}.top-status button[aria-expanded=true]{border-color:#edc18a;background:#344747}
#weapon-health-bars{position:fixed;inset:0;pointer-events:none}.weapon-health{position:absolute;transform:translate(-50%,-100%);width:106px;padding:6px 8px;background:#102024e8;border:1px solid #c6ad7870;border-radius:3px;text-align:center;font-size:11px;color:#f3f1e8;white-space:nowrap}.weapon-health-track{height:6px;background:#4b3433;margin-top:5px}.weapon-health-track i{display:block;height:100%;background:#e9c184}.weapon-health[data-disabled=true]{color:#ffb69d;border-color:#bc6d58}
@media(max-width:600px){header{padding:16px 12px;gap:8px}.brand{font-size:14px;letter-spacing:.1em}.sigil{margin-right:4px}.top-status{gap:6px}.top-status button{padding:9px 8px;font-size:11px}.volume-panel{position:fixed;right:12px;top:65px;width:220px}}


#network-panel{position:fixed;left:16px;bottom:74px;z-index:6;max-width:calc(100vw - 32px);padding:8px 12px;background:#102024ed;border:1px solid #c6ad7860;color:#e5e5d9;font-size:12px;font-variant-numeric:tabular-nums}#network-panel summary{cursor:pointer}#network-stats{white-space:pre-line;line-height:1.7;margin-top:8px}
#archer-warning{position:fixed;left:50%;top:206px;transform:translateX(-50%);z-index:3;padding:7px 14px;background:#102024e0;border:1px solid #c6ad7880;border-radius:3px;color:#f1d5a6;font-size:13px;font-weight:700;letter-spacing:.08em;pointer-events:none;white-space:nowrap}#archer-warning[data-range=true]{background:#5a1d16e8;border-color:#ff9c7d;color:#fff0e6}#vault-warning{position:fixed;left:50%;top:76px;transform:translateX(-50%);z-index:3;padding:7px 14px;background:#5a1d16e8;border:1px solid #ff9c7d;border-radius:3px;color:#fff0e6;font-size:13px;font-weight:700;letter-spacing:.08em;pointer-events:none;white-space:nowrap}
.weapon-health[data-kind=fence] .weapon-health-track i{background:#b8864f}
.hire-row{position:absolute;left:24px;top:calc(50% + 40px);transform:translateY(-50%);display:flex;flex-direction:column;gap:8px;width:190px}.hire-card{width:100%;pointer-events:auto;text-shadow:none}.hire-card[hidden]{display:none}.hire-button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:12px;background:#182325f2;color:#f1d5a6;border:1px solid #c6ad7880;font-size:12px;font-weight:700;text-align:left}.hire-button span small{display:block;font-size:10px;font-weight:400;margin-top:4px;opacity:.8}.hire-button strong{font-size:24px;line-height:1;text-align:right}.hire-button strong small{display:block;font-size:10px;font-weight:400;margin-top:4px}.hire-button:disabled{cursor:default;opacity:.55}.hire-button:hover:not(:disabled){background:#344747;border-color:#edc18a}.hire-status{margin-top:6px;text-align:center;font-size:11px;color:#f1d5a6}@media(max-width:600px){.hire-row{left:8px;width:150px;top:44%}.hire-button{padding:8px;font-size:11px}.hire-button span small{display:none}}.unit-options{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}.unit-options legend{grid-column:1/-1}
#crossbow-hud{position:fixed;right:24px;bottom:64px;z-index:3;padding:8px 14px;background:#102024e0;border:1px solid #c6ad7880;border-radius:3px;color:#f1d5a6;font-size:13px;font-weight:700;letter-spacing:.08em;pointer-events:none}
#aim-reticle{position:fixed;left:50%;top:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border:2px solid #fff3d5d0;border-radius:50%;z-index:3;pointer-events:none;box-shadow:0 0 0 1px #0008}#aim-reticle::after{content:'';position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:#ff7a5c}
/* The hire buttons moved to a side column; keep SPACE where it sat above the platform markers. */
#return-to-battle{top:calc(48% - 56px)}@media(max-height:600px){#return-to-battle{top:calc(43% - 48px)}}
/* Keep Create Game above the fold at 1280x720 with the hired-help toggles. */
.unit-options{margin-top:10px!important}.unit-options .strength-option{padding:8px 12px;margin-bottom:0}.unit-options .strength-option strong{font-size:15px}.unit-options .strength-option small{display:none}
#game-setup fieldset{margin:12px 0 8px}#game-setup .strength-option{padding-top:7px;padding-bottom:7px;margin-bottom:5px}#game-setup .unit-options .strength-option{padding-top:6px;padding-bottom:6px;margin-bottom:0}
/* Opening purchases: Begin Battle sits in the lower right, clear of the platform markers and weapon picker. */
#prematch{position:absolute;right:24px;bottom:76px;width:270px;display:flex;flex-direction:column;gap:10px;text-shadow:none}
#prematch .primary{width:100%;margin:0;padding:16px 18px;font-size:20px;pointer-events:auto;box-shadow:0 8px 28px #071213a6}#prematch .primary:disabled{cursor:default}
#prematch-status{margin:0;text-align:center;font-size:14px;font-weight:600;line-height:1.35;color:#fff3d5;background:#102126e8;padding:8px 12px;border-radius:6px}
@media(max-width:600px){#prematch{right:8px;bottom:52px;width:170px}#prematch .primary{padding:12px;font-size:15px}#prematch-status{font-size:12px}}@media(max-height:600px){#prematch{bottom:30px}}
/* The opening panel lists this player's own purchases above Begin Battle. */
#prematch-purchases{padding:10px 12px;background:#102126e8;border:1px solid #c6ad7870;border-radius:6px;color:#fff3d5}#prematch-purchases h3{margin:0 0 6px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#edc18a}
#prematch-bought{margin:0;padding:0;list-style:none;font-size:14px;line-height:1.45}#prematch-bought[data-empty=true]{color:#ced5cc;font-style:italic}
@media(max-width:600px){#prematch-purchases{padding:8px}#prematch-bought{font-size:12px}}
/* Health: nine points, split into three sword hits. */
.fighter-health{margin-top:8px;font-size:14px;letter-spacing:.06em;color:#e9d4b1}.fighter-health>div:first-child{display:flex;justify-content:space-between}.fighter-health strong{color:#fff0d3}
.health-track,.unit-health-track{position:relative;height:7px;margin-top:5px;background:#3b2c2b}.health-track i,.unit-health-track i{display:block;height:100%;background:#e0735f}
.health-track i[data-team="1"],.unit-health[data-team="1"] .unit-health-track i{background:#6fb6d6}
/* One segment per sword hit: three for nine health, more with a handicap (--segments). */
.health-track::after,.unit-health-track::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#102024 2px,transparent 0) -1px 0/calc(100% / var(--segments,3)) 100% repeat-x;clip-path:inset(0 1px)}
.city-view .fighter-health{display:none}
#unit-health-bars{position:fixed;inset:0;pointer-events:none;z-index:1}.unit-health{position:absolute;transform:translate(-50%,-100%);width:62px;padding:3px 5px 4px;background:#102024d8;border-radius:3px;text-align:center;font-size:10px;font-weight:700;letter-spacing:.04em;color:#f3f1e8;white-space:nowrap}.unit-health .unit-health-track{height:5px;margin-top:3px}
/* Handicap and catch-up choices sit under Hired help on the create-game form. */
.balance-options{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px}.balance-options legend{grid-column:1/-1}.balance-options .catch-up-option{margin-bottom:0}.balance-options .catch-up-option input{flex:none}.balance-options .catch-up-option small{font-size:11px}.handicap-option{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px 6px 12px;border:1px solid #dce4d242;background:#142126a6;font-size:15px;font-weight:600}.handicap-option select{padding:3px 4px;background:#102024;color:#fff;border:1px solid #dce4d269;border-radius:0;font:inherit;cursor:pointer}
.catch-up-rate{color:#9fe0a8;font-size:12px;letter-spacing:.04em;align-self:center}
/* Wide screens: strength on the left, hired help and handicap on the right, so Create Game stays in view. */
@media(min-width:900px){main:has(#game-setup:not([hidden])){width:724px}#game-setup{width:700px;display:grid;grid-template-columns:1fr 1fr;column-gap:24px;align-items:start}#game-setup>*{grid-column:1/-1}#game-setup>.setup-main{grid-column:1;grid-row:span 4}#game-setup>.setup-side,#game-setup>#setup-status{grid-column:2}#game-setup>.primary,#game-setup>#setup-back{grid-column:2;justify-self:start}#game-setup>.primary{width:100%}}

/* Art: Classic or AAA, two choices side by side under the city strength. */
.art-options{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px}.art-options legend{grid-column:1/-1}#game-setup .art-options .strength-option{margin-bottom:0;align-items:flex-start}.art-options .strength-option input{flex:none;margin-top:2px}.art-options .strength-option small{font-size:11px}
/* AAA art loading note, under the scoreboard. */
#art-status{position:fixed;left:50%;bottom:58px;transform:translateX(-50%);z-index:6;margin:0;padding:6px 14px;border-radius:4px;background:rgba(18,26,30,.72);color:#f3e6c8;font-size:12px;letter-spacing:.12em;text-transform:uppercase;pointer-events:none}

.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}
