/* Amiga-inspired bevels, copper accents and readable terminal typography. */
:root{--font:'VT323',monospace;--panel:#152b42;--light:#829bb3;--shade:#06101d;--paper:#f1f5e8;--gold:#ffcf72}
body,button,select,option,kbd{font-family:var(--font);font-weight:400;font-synthesis:none}
button,select{line-height:1.1}button:disabled{opacity:1;cursor:default}
.hud>.player,.energy-meters .meter,.controls,.menu,.briefing,.nation-picker .nation{border:2px solid;border-color:#8fa9ba #061322 #061322 #8fa9ba;box-shadow:2px 2px 0 #06101d;background:#172d45;color:var(--paper)}
.hud>.player{gap:.7cqw;padding:.55cqw .7cqw;max-width:24cqw}
.hud>.player canvas{width:6.4cqw;height:7.4cqw}
.hud>.player[data-role='attack']{border:3px solid #ee6458;background:#39282f;box-shadow:inset 0 0 0 1px #ffbc87,2px 2px 0 #06101d}
.identity>span,.cpu .identity>span{font-size:clamp(20px,2.2cqw,34px);line-height:1;color:#fff5d9;letter-spacing:0}
.pilot-tag,.cpu .pilot-tag{font-size:clamp(12px,1.05cqw,17px);color:#bddde8;letter-spacing:.04em}
.hud>.player .combat-role{font-size:clamp(15px,1.5cqw,24px);padding:.18em .35em;margin:.18em 0;background:#21718b;color:#fff;letter-spacing:.02em;box-shadow:none}
.player[data-role='attack'] .combat-role{background:#b33c36}
.hud>.player strong{font-size:clamp(18px,1.9cqw,30px);line-height:1;color:#ffdb85;letter-spacing:.04em}
.hud>.player .stock{font-size:clamp(12px,1.2cqw,19px);color:#c5d8e7;line-height:1.1;margin-top:.15em}
.hud>.player .stock.low-stock{color:#ffa18e}.country-flag{width:2.5cqw;height:1.7cqw}
.round{padding-top:6.7cqw;gap:.12cqw}.round>span{font-size:clamp(14px,1.3cqw,21px);color:#17394d;background:#e8f0df;padding:0 .3em;letter-spacing:0}
.round>strong{font-size:clamp(34px,4.2cqw,64px);color:#162c42;line-height:.95;text-shadow:1px 1px #fff4cf}
.round>small{font-size:clamp(12px,1.12cqw,18px);color:#153349;background:#e8f0df;letter-spacing:0;padding:0 .25em}
header{top:1cqw;width:11cqw}.brand-logo{width:11cqw;height:3.65cqw}.header-buttons{gap:.4cqw}
.header-buttons button,.cabinet:has(.overlay:not(.hidden)) .header-buttons button{font-size:clamp(12px,1.3cqw,20px);color:#e9f1fa;background:#203a53;border:1px solid;border-color:#9aafbf #06101d #06101d #9aafbf;padding:.15em .35em;box-shadow:1px 1px #07131f;min-height:22px;white-space:nowrap}
#help,#fullscreen{width:auto;min-width:22px;font-size:clamp(14px,1.4cqw,22px);padding:.1em .3em}
.energy-meters{top:2.2cqw;left:28cqw;right:28cqw;gap:13.5cqw}
.energy-meters .meter{padding:.55cqw .65cqw .65cqw;border-top:2px solid #8fa9ba}
.energy-meters .city-meter{border-top-color:#b8cc92}
.meter-label{font-size:clamp(12px,1.3cqw,20px);line-height:1;letter-spacing:0;color:#e7f1f8;margin-bottom:.45cqw;gap:.3cqw;white-space:nowrap}
.meter-label strong{font-size:clamp(18px,2cqw,30px);color:#ffdc8c;font-weight:400}
.energy{height:.8cqw;min-height:7px;background:#070f20;border:1px solid #8093a4}.energy>div{box-shadow:inset 0 2px #ffffff48,inset 0 -2px #18303855}
.controls{left:11cqw;right:11cqw;bottom:1.3cqw;padding:.6cqw;min-height:0}
.weapons{grid-template-columns:1fr 1fr 1fr 1.12fr 3.4cqw;gap:.55cqw}
.weapon,#repair,#god,#pause{min-width:0;min-height:4.5cqw;background:#25425a;color:#eff4e9;border:2px solid;border-color:#7895ad #071a2c #071a2c #7895ad;padding:.45cqw .55cqw;gap:.5cqw;box-shadow:none;font-weight:400}
.weapon.active{background:#1e596d;color:#fff1bd;border-color:#a6f3ec #082c42 #082c42 #a6f3ec;box-shadow:inset 0 0 0 1px #5ac2cb}
.weapon:hover,#repair:hover,#god:hover{background:#35596d}.weapon-icon{width:2.8cqw;height:2.8cqw}
.weapon>span{font-size:clamp(17px,1.85cqw,29px);line-height:1.05;font-weight:400;min-width:0}
.weapon small{font-size:clamp(12px,1.25cqw,20px);margin-top:.2cqw;display:flex;flex-wrap:wrap;gap:0 .6cqw;line-height:1.1;font-weight:400}
.ammo-left{color:#f1e3aa;font-weight:400}.energy-cost{color:#c3dfed;font-style:normal}
#repair{background:#264a42;color:#c4f0ae;font-size:clamp(17px,1.8cqw,28px)}
#god{background:#4a344f;color:#ffe2a1}#godLabel{font-size:clamp(14px,1.35cqw,22px);font-weight:400;line-height:1.1;white-space:normal}
#repair small,#god small{font-size:clamp(12px,1.2cqw,19px);margin-top:.2em;color:#d9e8dc}
#pause{font-size:clamp(22px,2.2cqw,34px);background:#25425a;color:#e7f4ee}
kbd{font-size:clamp(11px,1cqw,16px);top:.1cqw;left:.25cqw;color:#bcd2df}
.weapon:disabled,.weapon.empty,.weapon.unaffordable,#repair:disabled,#god:disabled{opacity:1;background:#243343;border-color:#596e7d #0d1b29 #0d1b29 #596e7d;color:#b5c1ce}
.weapon:disabled .ammo-left,.weapon.empty .ammo-left{color:#ffb58d}.weapon:disabled .energy-cost{color:#a6b9c8}
.weapon:disabled .weapon-icon,#repair:disabled kbd,#god:disabled kbd{opacity:.55}
.arena-location{position:absolute;z-index:2;top:23%;left:2cqw;padding:.12em .5em;background:#142c42;color:#e4eff3;border-left:3px solid #ffca73;font-size:clamp(15px,1.6cqw,26px);line-height:1.2;pointer-events:none}
.district-labels{position:absolute;z-index:2;inset:0;pointer-events:none}
.district-label{position:absolute;bottom:27.6%;transform:translateX(-50%);width:13.2cqw;padding:.3cqw .4cqw;background:#10253ef5;border:1px solid #6b8a9d;box-shadow:1px 1px 0 #06101d;color:#f7f2dc;text-align:center}
.district-label strong{display:flex;flex-direction:column;justify-content:center;min-height:2.2em;font-size:clamp(12px,1.6cqw,24px);line-height:1.05;font-weight:400;letter-spacing:0;white-space:nowrap}
.district-status{display:flex;align-items:center;gap:.35cqw;margin-top:.15cqw}
.district-track{height:.6cqw;min-height:5px;flex:1;background:#061223;border:1px solid #8ca1ad}
.district-fill{height:100%;box-shadow:inset 0 1px #ffffff55;transition:width .16s}
.district-status>span{font-size:clamp(12px,1.25cqw,19px);line-height:1;color:#d9edcf;min-width:2.4em;text-align:right}
.district-label[data-condition='destroyed']{background:#263343;color:#a9b5c0;border-color:#536377}.district-label[data-condition='destroyed'] .district-status>span{color:#ffac94}
.district-label[data-condition='critical']{border-color:#f18e6b}.district-label[data-condition='damaged']{border-color:#e3c67a}
.menu{width:55cqw;max-width:780px;padding:1.3cqw 2cqw;background:#17283e;border-top:3px solid #eeb65f}
.menu-kicker{font-size:clamp(13px,1.2cqw,19px);letter-spacing:.08em;color:#c6d5e0;line-height:1.1}
.setup-menu .game-logo{width:24cqw;height:8cqw}.mode-switch{margin:.6cqw 0;gap:.65cqw}
.mode-tab{font-size:clamp(17px,1.75cqw,28px);font-weight:400;padding:.45em .4em;background:#203d59;border:2px solid;border-color:#7b93ac #071827 #071827 #7b93ac;color:#e7eff5}
.mode-tab.active{background:#e6aa51;border-color:#ffe5a2 #714922 #714922 #ffe5a2;color:#172338}
.setup-menu #modeHint{font-size:clamp(15px,1.5cqw,23px);line-height:1.15;min-height:1.2em;color:#d0dfeb}
.nation-picker{gap:1.3cqw;margin:.6cqw 0 1cqw}.nation-picker .nation{width:23cqw;padding:.65cqw;background:#1c334a}
.pick-role{font-size:clamp(14px,1.4cqw,22px);line-height:1;color:#a7e6ee;margin-bottom:.4cqw}
.nation select{font-size:clamp(16px,1.6cqw,25px);min-height:2.7cqw;padding:.2em .4em;background:#0f2033;color:#f1f1e5;border:1px solid #7592a5}
.nation option{font-size:20px;font-family:var(--font)}
.nation-picker .nation canvas{width:11cqw;height:11cqw;margin:.2cqw auto}
.nation-picker .nation strong{font-size:clamp(21px,2.2cqw,34px);line-height:1.05;font-weight:400;color:#fff0c5}
.nation-picker .nation small{font-size:clamp(14px,1.4cqw,22px);line-height:1.1;color:#b9cfdc}
.primary,.menu .primary,.coronation-actions .primary{font-size:clamp(21px,2.1cqw,32px);font-weight:400;letter-spacing:.04em;padding:.3em 1.1em;background:#edb65c;color:#17243b;border:2px solid;border-color:#fff0b3 #7b4d27 #7b4d27 #fff0b3;box-shadow:2px 2px #07121e}
.setup-menu .start-note,.start-note,.setup-menu #newTournament{font-size:clamp(13px,1.3cqw,20px);line-height:1.15;color:#b9ccdc}
.text-button,.dialog-menu .primary{font-size:clamp(17px,1.7cqw,26px)}
.dialog-menu h2{font-size:clamp(28px,3cqw,44px);font-weight:400}.dialog-menu p{font-size:clamp(17px,1.6cqw,25px);line-height:1.25}.score-line{font-size:clamp(22px,2.2cqw,32px)}
.capital-report strong{font-size:clamp(18px,1.8cqw,28px);font-weight:400}.capital-report small{font-size:clamp(15px,1.4cqw,22px)}
.speech-bubble{font-size:clamp(18px,1.8cqw,28px);line-height:1.15;font-weight:400;box-shadow:2px 2px #15253c}
.speech-bubble strong{font-size:clamp(14px,1.35cqw,21px);color:#31536b;font-weight:400}
.event{font-size:clamp(24px,2.7cqw,42px);font-weight:400;text-shadow:2px 2px #15263e}
.briefing-top{font-size:clamp(16px,1.6cqw,25px)}.briefing-top strong{font-size:clamp(18px,1.8cqw,28px)}
.briefing-role{font-size:clamp(25px,2.6cqw,39px);font-weight:400}.briefing-role>span{font-size:clamp(14px,1.4cqw,22px)}
.briefing-identity strong{font-size:clamp(25px,2.5cqw,38px);font-weight:400}.briefing-identity small{font-size:clamp(16px,1.6cqw,24px)}
.briefing-map-title{font-size:clamp(18px,1.8cqw,28px)}.briefing-target,.briefing-map>small{font-size:clamp(15px,1.4cqw,22px)}.briefing-map>strong{font-size:clamp(22px,2.2cqw,34px)}
.briefing-footer h2{font-size:clamp(28px,3cqw,44px);font-weight:400}.briefing-footer p,.briefing-clock small{font-size:clamp(16px,1.6cqw,24px)}.briefing-clock strong{font-size:clamp(50px,5.3cqw,80px)}
.round-show{width:76cqw}.round-show .menu-kicker{font-size:clamp(18px,1.8cqw,28px)}.round-show h2{font-size:clamp(32px,3.6cqw,54px);font-weight:400;line-height:1}
.round-points,.round-show .capital-report small,.anthem-status{font-size:clamp(16px,1.5cqw,24px);line-height:1.1}.round-show .capital-report strong{font-size:clamp(21px,2.1cqw,32px);font-weight:400;line-height:1.1}
.round-punchline,.round-show .text-button{font-size:clamp(19px,1.9cqw,29px);font-weight:400;line-height:1.1}.anthem-status{min-height:1em}
.coronation-scene .menu-kicker,.coronation-score,.coronation-joke{font-size:clamp(17px,1.6cqw,25px)}.coronation-scene h2{font-size:clamp(36px,4cqw,60px);font-weight:400}#coronationChampion{font-size:clamp(24px,2.5cqw,38px)}.coronation-actions .text-button{font-size:clamp(18px,1.8cqw,28px)}
@media(max-width:850px){.controls{left:4cqw;right:4cqw;padding:.5cqw}.weapons{grid-template-columns:1fr 1fr 1fr 1.12fr 4cqw}.weapon,#repair,#god,#pause{min-height:6cqw}.weapon-icon{width:3cqw;height:3cqw}.weapon>span{font-size:17px}.weapon small{font-size:12px}.energy-meters{left:27cqw;right:27cqw;gap:14cqw}.meter-label{flex-wrap:wrap;font-size:12px}.hud>.player canvas{width:6cqw}.hud>.player .stock{font-size:12px}.menu{width:70cqw}.nation-picker .nation{width:29cqw}.setup-menu .game-logo{width:21cqw;height:7cqw}.nation-picker .nation canvas{width:10cqw;height:10cqw}.primary,.menu .primary{font-size:20px;padding:.2em 1em}.mode-tab{padding:.3em;font-size:16px}.setup-menu #modeHint{font-size:14px}.district-label{width:13.8cqw;padding:.4cqw}.district-label strong{font-size:13px}.district-status>span{font-size:12px}.district-status{gap:3px}.briefing-matchup{padding:.8cqw}.briefing-footer h2{font-size:25px}}

/* A dedicated visual arsenal leaves the entire city unobstructed. */
.cabinet{background:#101e30}
.cabinet>#landscape{position:absolute;top:0;left:0;width:85%;height:100%;display:block;image-rendering:auto;pointer-events:none}
.arena{inset:auto auto 0 0;width:85%;height:85%;aspect-ratio:16/9}
.hud{right:16.3cqw}.hud>.player{max-width:22cqw}
header{left:42.5%}.energy-meters{left:23cqw;right:38cqw;gap:13.5cqw}
.energy-meters .meter{padding:.55cqw}.meter-label{font-size:clamp(12px,1.2cqw,19px)}
.arena-location{top:15%;font-size:clamp(15px,1.5cqw,24px)}
.district-label{width:11.1cqw;padding:.3cqw}.district-label strong{font-size:clamp(12px,1.4cqw,22px)}
.district-status>span{font-size:clamp(12px,1.15cqw,18px)}
.controls{top:1.1cqw;bottom:1.1cqw;right:1.1cqw;left:auto;width:12.8cqw;display:flex;flex-direction:column;gap:.6cqw;padding:.55cqw;background:#14283c}
.arsenal-heading{display:flex;flex-direction:column;align-items:center;gap:.1cqw;border-bottom:1px solid #7c96ad;padding:.3cqw 0 .6cqw;line-height:1}
.arsenal-heading strong{font-size:clamp(20px,2.1cqw,32px);font-weight:400;letter-spacing:.06em;color:#ffe09b}
.arsenal-heading>span{font-size:clamp(13px,1.3cqw,20px);color:#a2d9e7}
.controls .weapons{display:flex;flex-direction:column;flex:1;min-height:0;gap:.55cqw;width:100%}
.controls .weapon{display:block;flex:1;min-height:0;width:100%;padding:.5cqw;position:relative;text-align:left;color:#eef3df;--weapon-color:#8edbd2}
.controls .weapon>span{display:block;font-size:clamp(17px,1.8cqw,28px);line-height:1;white-space:nowrap;color:inherit}
.controls .weapon small{display:contents}
.controls .weapon-icon{position:absolute;left:.2cqw;top:27%;width:5.4cqw;height:5.4cqw;max-height:53%;object-fit:contain}
.controls .ammo-left{position:absolute;right:.5cqw;top:32%;width:4.3cqw;display:flex;align-items:center;flex-direction:column;gap:.1cqw;color:#ffdf93;font-weight:400}
.controls .ammo-number{display:block;font-size:clamp(30px,3.3cqw,50px);line-height:.9;font-weight:400}
.controls .ammo-unit{font-size:clamp(13px,1.3cqw,20px);line-height:1;font-style:normal;color:#cce4eb}
.controls .energy-cost{position:absolute;left:0;right:0;bottom:1.55cqw;text-align:center;display:block;font-size:clamp(12px,1.22cqw,19px);line-height:1;color:#cce4eb;font-style:normal;white-space:nowrap}
.controls .ammo-belt{position:absolute;left:.5cqw;right:.5cqw;bottom:.55cqw;height:.55cqw;min-height:5px;display:flex;gap:2px}
.ammo-belt i{display:block;flex:1;background:var(--weapon-color);border-top:1px solid #fff7;box-shadow:0 1px #071827}
.ammo-belt i.spent{background:#0d1b2b;border-top-color:#456073;box-shadow:none}
.controls .weapon.active{background:#20566a;border-color:#aaf8e9 #0a2739 #0a2739 #aaf8e9;box-shadow:inset 3px 0 var(--weapon-color)}
.controls .weapon.active:after{content:'◀';position:absolute;right:.4cqw;top:.55cqw;color:#fff0aa;font-size:clamp(13px,1.3cqw,20px)}
.controls .weapon.empty{background:#293443;color:#acbdcb}.controls .weapon.empty .ammo-number{color:#ff9b7c}
.controls .weapon.unaffordable:not(.empty){border-left-color:#e4af68}
.controls #repair,.controls #god{flex:0 0 8.9cqw;min-height:0;padding:.5cqw;display:flex;flex-direction:column;justify-content:center;gap:.2cqw;text-align:center;width:100%}
.controls .utility-icon{width:4.5cqw;height:4.5cqw;object-fit:contain;flex-shrink:0}
.controls #repair>span{font-size:clamp(17px,1.65cqw,25px);line-height:1}
.controls #godLabel{font-size:clamp(14px,1.4cqw,22px);line-height:1;max-width:10cqw}
.controls #repair small,.controls #god small{font-size:clamp(12px,1.2cqw,18px);margin-top:.18em;line-height:1}
.controls #repair:disabled .utility-icon,.controls #god:disabled .utility-icon{opacity:.6}
.controls #pause{flex:0 0 2.8cqw;min-height:26px;font-size:clamp(20px,2cqw,30px)}
.controls kbd{left:.3cqw;top:.2cqw;font-size:clamp(11px,1cqw,15px);line-height:1}
.controls .weapon kbd{left:auto;right:.5cqw;top:.55cqw}
.controls .weapon.active kbd{right:1.6cqw}
.cabinet:has(.overlay:not(.hidden)) header{right:16cqw}
@media(max-width:850px){
 .cabinet>#landscape{width:81%}.arena{width:81%;height:81%}
 .controls{width:16.5cqw;right:1cqw;top:1cqw;bottom:1cqw;padding:.55cqw;gap:.4cqw}
 .controls .weapons{gap:.55cqw}.arsenal-heading{padding:.15cqw 0 .35cqw}.arsenal-heading strong{font-size:19px}.arsenal-heading>span{font-size:12px}
 .controls .weapon>span{font-size:17px}.controls .weapon-icon{width:6cqw;height:6cqw;top:25%}
 .controls .ammo-left{width:5.8cqw;right:.3cqw;top:30%}.controls .ammo-number{font-size:29px}.controls .ammo-unit{font-size:12px}
 .controls .energy-cost{font-size:12px;bottom:1.8cqw}.controls .ammo-belt{bottom:.5cqw;height:.65cqw;gap:1px}
 .controls #repair,.controls #god{flex-basis:10cqw}.controls .utility-icon{width:4cqw;height:4cqw}.controls #repair>span{font-size:16px}.controls #godLabel{font-size:13px;max-width:14cqw}
 .controls #repair small,.controls #god small{font-size:12px}.controls #pause{flex-basis:3.2cqw;min-height:22px;font-size:20px}
 .hud{right:20cqw}.hud>.player{max-width:24cqw;gap:.4cqw}.hud>.player canvas{width:5.2cqw;height:6.5cqw}
 header{left:40.5%}.energy-meters{left:25cqw;right:43cqw;gap:12cqw}.meter-label{font-size:12px}.meter-label strong{font-size:19px}
 .round{padding-top:7cqw}.round>small{font-size:11px}.identity>span,.cpu .identity>span{font-size:20px}.hud>.player .combat-role{font-size:14px}
 .district-label{width:10.8cqw}.district-label strong{font-size:12px}.district-status{gap:2px}.district-status>span{font-size:11px;min-width:2.2em}
 .cabinet:has(.overlay:not(.hidden)) header{right:20cqw}
}

.controls .weapon-name{position:absolute;top:.65cqw;left:.55cqw;right:2.3cqw;display:block;font-size:clamp(17px,1.8cqw,28px);font-weight:400;line-height:1;color:inherit}
@media(max-width:850px){.controls .weapon-name{font-size:17px;top:.65cqw}}
.controls #repair.active{background:#25644f;color:#fff1bc;border-color:#b2efac #103b31 #103b31 #b2efac;box-shadow:inset 3px 0 #b2efac}
.controls #god.active{background:#62502d;color:#fff0b4;border-color:#ffe593 #38291c #38291c #ffe593;box-shadow:inset 3px 0 #ffe593}

/* Clear building names, quiet portrait dialogue and a single way forward. */
.district-label,.district-label[data-condition]{background:none;border:0;box-shadow:none;color:#173149}
.district-label strong,.district-status>span,.district-label[data-condition='destroyed'] .district-status>span{color:#173149;text-shadow:0 1px #fff3d4,1px 0 #fff3d4}
.hud>.player{position:relative;overflow:visible}
.hud>.player .speech-bubble{position:absolute;z-index:6;top:calc(100% + .6cqw);left:.2cqw;max-width:20cqw;width:max-content;padding:.5cqw .7cqw;text-align:left;font-size:clamp(16px,1.65cqw,26px);line-height:1.05;color:#21384a;pointer-events:none}
.hud>.player .enemy-bubble{left:auto;right:.2cqw}
.hud>.player .speech-bubble:before{left:3cqw;top:-.7cqw}
.hud>.player .enemy-bubble:before{left:auto;right:3cqw}
#playerBubbleName,#enemyBubbleName{display:none}
.round-show{grid-template-rows:auto auto minmax(0,1fr) auto;gap:.3cqw}
.round-show .menu-kicker,.round-points,.round-punchline,.anthem-status,.round-show .capital-report small{display:none}
.round-show .capital-report,.round-show .capital-report[data-condition]{background:none;padding:0;margin:0;border:0;box-shadow:none}
.round-show .capital-report strong{font-size:clamp(18px,1.9cqw,29px);color:#c7dce5}
.round-show>.primary{justify-self:center;margin:.4cqw 0}
.coronation-scene{grid-template-rows:auto auto minmax(0,1fr) auto}
.coronation-scene .menu-kicker,.coronation-score,.coronation-joke,#coronationNew{display:none}
.coronation-actions{justify-content:center}

/* The player climbs one portrait rung after each tournament victory. */
.ladder-overlay{z-index:10;background:radial-gradient(ellipse at 50% 60%,#283c51,#0c1425 80%);padding:1.4cqw}
.ladder-scene{width:76cqw;height:100%;display:flex;flex-direction:column;align-items:center;gap:.5cqw;text-align:center}
.ladder-scene .menu-kicker{color:#c0cddc;font-size:clamp(15px,1.5cqw,23px)}
.ladder-scene h2{margin:0;color:#ffda85;font-size:clamp(32px,3.8cqw,58px);font-weight:400;line-height:1}
.ladder-progress{color:#bdcedf;font-size:clamp(17px,1.8cqw,28px);line-height:1}
.ladder-window{position:relative;width:66cqw;flex:1;min-height:0;max-height:34cqw;overflow:hidden;isolation:isolate;mask-image:linear-gradient(transparent,#000 5%,#000 94%,transparent)}
.ladder-track{position:absolute;inset:0;will-change:transform}
.ladder-rung{position:absolute;display:grid;grid-template-columns:2.5cqw 4.2cqw 2.4cqw minmax(0,1fr) 3.8cqw;align-items:center;gap:.6cqw;width:35cqw;height:4.65cqw;padding:.15cqw .65cqw;background:#172b42;border:2px solid;border-color:#748da4 #050d19 #050d19 #748da4;box-shadow:2px 2px #050d19;color:#ebf0e6;text-align:left}
.ladder-rung canvas{width:4.2cqw;height:4.2cqw;image-rendering:pixelated}
.ladder-rung img{width:2.4cqw;height:1.6cqw;object-fit:contain}
.ladder-rung strong,.ladder-rung small{display:block;font-weight:400;line-height:1;white-space:nowrap}
.ladder-rung strong{font-size:clamp(18px,2cqw,31px);color:#f5e7bc}
.ladder-rung small{font-size:clamp(13px,1.4cqw,22px);color:#b5cadb}
.ladder-rank,.ladder-rung-state{font-size:clamp(17px,1.8cqw,28px);font-weight:400;text-align:center;color:#b8c9da}
.ladder-rung[data-state='next']{background:#544325;border-color:#ffe59a #84602f #84602f #ffe59a;box-shadow:0 0 0 1px #b88b45,3px 3px #050d19}
.ladder-rung[data-state='next'] .ladder-rung-state{color:#ffe99b}
.ladder-rung[data-state='defeated']{background:#17282f;border-color:#4d676c #07121b #07121b #4d676c;opacity:.6}
.ladder-rung[data-state='defeated'] .ladder-rung-state{color:#93d2ad}
.ladder-token{position:absolute;z-index:2;top:0;left:0;display:flex;flex-direction:column;align-items:center;width:6.5cqw;will-change:transform;pointer-events:none}
.ladder-token>span{font-size:clamp(15px,1.5cqw,23px);line-height:1;color:#ffdf89}
.ladder-token canvas{width:5cqw;height:5cqw;image-rendering:pixelated;filter:drop-shadow(2px 2px #050d19)}
.ladder-token:after{content:'▶';position:absolute;right:-.7cqw;top:2.3cqw;color:#ffdc80;font-size:2cqw}
.ladder-scene>.primary{margin-top:.2cqw;flex-shrink:0}
.ladder-scene>.primary:disabled{color:#8995a0;background:#344152;border-color:#637586 #101b2a #101b2a #637586}

/* A higher location label keeps the sky open for incoming fire. */
.arena-location{top:10%;font-size:clamp(14px,1.5cqw,24px);background:none;border:0;padding:0;color:#173149;text-shadow:0 1px #fff3d4,1px 0 #fff3d4}
.district-warning{display:block;width:max-content;margin:0 auto .3cqw;padding:0 .25em;background:#ffd66d;color:#3c271e;font-size:clamp(14px,1.4cqw,22px);line-height:1;box-shadow:1px 1px #613c2b}
.district-warning[hidden]{display:none}
.district-label[data-threat='incoming'] .district-track{border-color:#ffc647;box-shadow:0 0 0 1px #b27a31}
.district-label[data-threat='urgent'] .district-warning{background:#f75f4d;color:#fff5ce;animation:impact-pulse .42s steps(2,end) infinite}
.district-label[data-threat='urgent'] .district-track{border-color:#ff5448;box-shadow:0 0 0 1px #b03932}
@keyframes impact-pulse{50%{background:#ffbe64;color:#732c26}}
.intro-overlay{z-index:20;background:#070d20;padding:0}
.intro-overlay>canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}
.intro-actions{position:absolute;bottom:3.2cqw;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:2cqw}
.intro-actions .text-button{color:#bed8eb;font-size:clamp(17px,1.8cqw,28px);margin:0}
@media(prefers-reduced-motion:reduce){.district-label[data-threat='urgent'] .district-warning{animation:none}}

/* A full-screen round call lands before the role briefing and countdown. */
.round-callout{position:absolute;z-index:3;inset:0;display:grid;place-items:center;background:#081222ed;pointer-events:none}
.round-callout strong{display:block;font-size:clamp(65px,15cqw,230px);font-weight:400;line-height:1;letter-spacing:.035em;color:#ffe395;text-shadow:0 .4cqw #b16c35,0 .8cqw #422f40;white-space:nowrap}
#roundCountdown:not(.hidden)[data-stage='round'] .round-callout{animation:round-call 1.6s ease-out both}
#roundCountdown[data-stage='briefing'] .round-callout{visibility:hidden;opacity:0}
@keyframes round-call{0%{opacity:0;transform:scale(1.15)}12%,78%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.98)}}
@media(prefers-reduced-motion:reduce){#roundCountdown:not(.hidden)[data-stage='round'] .round-callout{animation:none}}

/* Flags follow the battlefield country and the actual round or match winner. */
.arena-location{display:flex;align-items:center;gap:.55cqw}
.location-flag{width:2.6cqw;height:1.7cqw;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
#roundShowTitle,#coronationChampion{display:flex;align-items:center;justify-content:center;gap:1.2cqw}
.victory-flag{display:block;width:5.2cqw;height:3.5cqw;object-fit:contain;image-rendering:pixelated;flex-shrink:0;filter:drop-shadow(1px 2px #050d19)}
.victory-flag[hidden]{display:none}
#coronationChampion .victory-flag{width:4cqw;height:2.7cqw}

/* Bigger face close-ups make reactions legible during the battle. */
.hud>.player canvas{width:8.8cqw;height:8.8cqw}
.hud>.player .speech-bubble:before{left:4cqw}
.hud>.player .enemy-bubble:before{left:auto;right:4cqw}
@media(max-width:850px){.hud>.player canvas{width:7.8cqw;height:7.8cqw}}

/* Dark backing for the status strip above the battlefield. */
.cabinet:after{content:'';position:absolute;z-index:1;top:0;left:0;width:100%;height:15%;background:#101e30;pointer-events:none}
@media(max-width:850px){.cabinet:after{height:19%}}

/* Final seconds stay readable; the recap keeps the actual city in view. */
#timer.timer-urgent{color:#ff3838;font-weight:700;-webkit-text-stroke:.55px currentColor;text-shadow:2px 2px #081526,0 0 8px #ff4a4633}
#timer.timer-moving{animation:timer-alarm .2s ease-in-out infinite alternate;transform-origin:center}
@keyframes timer-alarm{from{transform:translateX(-2px) rotate(-4deg) scale(1.04)}to{transform:translateX(2px) rotate(4deg) scale(1.13)}}
.round-recap{position:absolute;z-index:22;left:50%;top:20%;transform:translateX(-50%);width:43cqw;max-width:88%;padding:1.4cqw 1.7cqw;text-align:center;color:#f1f5e8;background:#11283bef;border:2px solid;border-color:#9fb9c7 #051421 #051421 #9fb9c7;box-shadow:3px 3px #061421;pointer-events:auto}
.round-recap h2{font:400 clamp(23px,2.7cqw,42px)/1 var(--font);color:#ffdb85;margin:0 0 1cqw}
.recap-stats{display:grid;grid-template-columns:1fr 1fr;gap:1cqw}
.recap-stats div{display:grid;gap:.35cqw}.recap-stats strong{font-size:clamp(28px,3.3cqw,50px);font-weight:400;line-height:1;color:#fff4cf}
.recap-stats span{font-size:clamp(14px,1.45cqw,23px);color:#bddde8;line-height:1}
.round-recap .recap-winner{font-size:clamp(24px,2.7cqw,42px);line-height:1;color:#ffdc73;margin:1cqw 0 .2cqw}
.round-recap .primary{font-size:clamp(18px,1.8cqw,29px);padding:.35em 1.5em;margin:1.2cqw 0 0}
@media(prefers-reduced-motion:reduce){#timer.timer-moving{animation:none;transform:none}}
/* An open, globe-backed arcade front end. Only the portrait grid gets selection borders. */
#setup.selection-screen{padding:0;background:#030811;overflow:hidden;isolation:isolate}
.selection-world{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;pointer-events:none;z-index:-1}
.legacy-setup{display:none!important}
.selection-screen [hidden]{display:none!important}
.mode-choices{position:absolute;inset:0;display:flex;align-items:center;flex-direction:column;padding-top:7cqw}
.mode-logo{width:38cqw;height:auto;image-rendering:pixelated}
.mode-links{display:flex;flex-direction:column;align-items:center;gap:1.9cqw;margin-top:6cqw}
.mode-links button,.selection-confirm,.selection-back,.intro-actions #introStart{border:0;border-radius:0;box-shadow:none;background:none;color:#e9efd9;text-shadow:3px 3px #02050b;padding:.25em .5em;font:400 clamp(22px,3cqw,46px)/1 var(--font);letter-spacing:.04em;min-width:0}
.mode-links button span{color:#80b9d5}.mode-links button:hover,.mode-links button:focus-visible,.selection-confirm:hover,.selection-confirm:focus-visible,.intro-actions #introStart:hover,.intro-actions #introStart:focus-visible{color:#ffdf72;outline:none;text-shadow:3px 3px #02050b,0 0 18px #eeb84955}
.mode-links button.mode-selected:before{content:'▶';color:#ffe080;font-size:.65em;position:absolute;transform:translateX(-1.5em);padding-top:.2em}
.character-choices{position:absolute;inset:0;color:#f1f2db}
.character-choices>h2{font:400 clamp(25px,3.25cqw,50px)/1 var(--font);color:#ffdf72;text-align:center;margin:3.2cqw 0 1.6cqw;text-shadow:3px 3px #000;letter-spacing:.025em}
.selection-back{position:absolute;top:2cqw;left:2cqw;font-size:clamp(16px,1.7cqw,26px);color:#8daaba}
.selection-back:hover{color:#ffdf72}.fighter-layout{display:grid;grid-template-columns:23cqw 36cqw 23cqw;gap:2cqw;justify-content:center;align-items:start}
.fighter-stage{position:relative;height:36cqw;text-align:center;align-self:center}
.fighter-stage>span{position:absolute;top:1cqw;left:0;right:0;color:#86c4e2;font-size:1.4cqw;letter-spacing:.15em}
.fighter-stage>canvas{width:25cqw;height:32.8cqw;max-width:none;position:absolute;left:50%;top:0;transform:translateX(-50%);image-rendering:pixelated}
.fighter-stage>strong{position:absolute;bottom:0;left:0;right:0;font:400 clamp(25px,3.1cqw,47px)/1 var(--font);color:#ffdd7a;text-shadow:3px 3px #000}
.fighter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.42cqw;width:36cqw}
.fighter-cell{position:relative;aspect-ratio:1/1;min-width:0;min-height:0;margin:0;padding:0;border:1px solid #627b8844;border-radius:0;background:#1c324844;box-shadow:none;overflow:visible;transition:none}
.fighter-cell>canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}
.fighter-cell>img{position:absolute;left:.2cqw;top:.2cqw;width:1.35cqw;height:.9cqw;object-fit:cover;image-rendering:pixelated}
.fighter-cell>span{position:absolute;bottom:0;left:0;right:0;font:400 clamp(11px,1.17cqw,18px)/1.1 var(--font);color:#e6e9df;text-shadow:1px 1px #000,-1px -1px #000;background:linear-gradient(transparent,#06101cdd);padding:.2cqw 0}
.fighter-cell:hover{background:#38556766}.fighter-cell.selected,.fighter-cell:focus-visible{outline:3px solid #91fa75;outline-offset:-1px;z-index:1;box-shadow:0 0 14px #65d96155;background:#21483c55}
.selection-screen[data-stage='opponent'] .fighter-cell.selected{outline-color:#ff7865;box-shadow:0 0 14px #ff594d44}.fighter-cell:disabled{opacity:.22;filter:grayscale(1);cursor:default}
.fighter-details{text-align:left;padding:.3cqw 0 0;color:#c7d6df;text-shadow:2px 2px #020810;font-size:clamp(15px,1.55cqw,24px);line-height:1.1}
.fighter-country-line{display:flex;align-items:center;gap:.7cqw;margin-bottom:.3cqw}.fighter-country-line img{width:2.7cqw;height:1.8cqw;image-rendering:pixelated}.fighter-country-line strong{font-size:clamp(20px,2cqw,31px);font-weight:400;color:#e8ecdc}
#fighterRegion,#fighterOffice{color:#83a1b3;font-size:clamp(13px,1.35cqw,21px)}
.fighter-details h3{font:400 clamp(22px,2.45cqw,38px)/.95 var(--font);color:#ffdc81;margin:1.4cqw 0 .3cqw}
.fighter-traits{margin:1.5cqw 0 .5cqw}.fighter-traits dt{font-size:clamp(12px,1.17cqw,18px);color:#80c5cf;letter-spacing:.05em;margin-top:.9cqw}.fighter-traits dd{margin:.2cqw 0 0;min-height:2.6cqw;color:#f0efda}
.satire-label{font-size:clamp(10px,.93cqw,15px);color:#76909f;letter-spacing:.025em}
.fighter-city-info{margin-top:1.4cqw}.fighter-city-info h4{font:400 clamp(20px,2cqw,31px)/1 var(--font);margin:0 0 .6cqw;color:#ffe0a2}
.fighter-city-info>div{display:flex;justify-content:space-between;gap:.5cqw;align-items:baseline;margin:.3cqw 0}.fighter-city-info span{font-size:clamp(11px,1.1cqw,17px);color:#83a1b3}.fighter-city-info strong{font-weight:400;font-size:clamp(16px,1.7cqw,26px);color:#e9eee0;white-space:nowrap}
.fighter-city-info a{display:block;color:#7896a7;font-size:clamp(10px,.95cqw,15px);text-decoration:none;margin-top:.65cqw}.fighter-city-info a:hover{color:#e5d585}
.selection-confirm{display:block;margin:2cqw auto 0;font-size:clamp(23px,2.5cqw,38px);color:#ffe389;border-bottom:1px solid #82774688;padding:.2em .75em}
.intro-actions #introStart{font-size:clamp(26px,3cqw,46px);animation:press-start-glow 1.8s ease-in-out infinite alternate}.intro-actions{bottom:5cqw}
@keyframes press-start-glow{to{color:#ffe075;text-shadow:3px 3px #02050b,0 0 18px #f2c45a66}}
.round-recap{background:none;border:0;box-shadow:none;color:#fff3cc;text-shadow:2px 2px #122c3d,-1px -1px #122c3d,1px -1px #122c3d,-1px 1px #122c3d;top:16%}
.round-recap .primary{background:none;border:0;box-shadow:none;color:#fff0a8;text-shadow:2px 2px #122c3d;font-size:clamp(21px,2.3cqw,35px)}
.round-recap .primary:hover{color:white}.recap-stats span{color:#f5f5dd}
@media(prefers-reduced-motion:reduce){.intro-actions #introStart{animation:none}}

.cabinet:has(#setup:not(.hidden)) .header-buttons button{background:none;border:0;box-shadow:none;color:#a1b5c1}
/* Shared title/mode screen and two-sided fighter selection. */
.mode-links{align-items:stretch;min-width:32cqw;gap:1.4cqw;margin-top:5cqw}
.mode-links button{text-align:left;white-space:nowrap}.mode-links button span{color:inherit}.mode-links button:disabled{opacity:.35}
.title-credits{position:absolute;display:flex!important;flex-direction:column;align-items:center;gap:.3cqw;left:0;right:0;bottom:1.5cqw;font:400 clamp(11px,1.15cqw,18px)/1 var(--font);color:#7b95a9;letter-spacing:.02em;text-shadow:1px 1px #000}
.title-credits a{color:inherit;text-decoration:none}.title-credits a:hover{color:#ffdf83}
.fighter-layout{grid-template-columns:24cqw 36cqw 24cqw;gap:2cqw}
.fighter-stage{height:22cqw}.fighter-stage>canvas{width:17cqw;height:22.3cqw;top:-1.4cqw}.fighter-stage>span{top:-.2cqw;font-size:1.5cqw}.fighter-stage>strong{bottom:0;font-size:2.3cqw}
.cpu-side .fighter-stage>span{color:#ff8b7a}.fighter-side .fighter-details{padding:.8cqw 0 0;font-size:1.25cqw;line-height:1.05}
.fighter-side .fighter-details h3{font-size:1.8cqw;line-height:1;margin:.35cqw 0 .2cqw}.fighter-side .fighter-details small{display:block;font-size:1.05cqw;color:#89a1b1}
.fighter-side .fighter-details p{font-size:1.2cqw;line-height:1.1;margin:.55cqw 0;min-height:1.4cqw}.fighter-side .fighter-details p b{font-weight:400;color:#80c5cf}.fighter-side .fighter-details h4{font:400 1.6cqw/1 var(--font);color:#ffe0a2;margin:.7cqw 0 .35cqw}
.fighter-side .fighter-country-line{margin:0}.fighter-side .fighter-country-line strong{font-size:1.5cqw}.fighter-side .fighter-country-line img{width:2cqw;height:1.3cqw}.side-city-stats{display:flex;justify-content:space-between;gap:.5cqw;color:#f1f1d6;font-size:1.2cqw}
.fighter-side .fighter-details>a{display:inline-block;color:#7993a3;font-size:.85cqw;margin-top:.45cqw;text-decoration:none}.fighter-side .fighter-details .satire-label{display:inline-block;font-size:.75cqw;margin-left:.4cqw}
.fighter-cell.player-picked{outline:2px solid #83ec75;outline-offset:-2px}.fighter-cell.player-picked:after{content:'YOU';position:absolute;top:0;right:0;color:#99ff83;font:400 1cqw var(--font);text-shadow:1px 1px #000}
.selection-confirm{margin:.8cqw auto 0}
.round-callout{flex-direction:column;gap:1cqw}.round-callout #roleAnnouncement{font:400 5.4cqw/1 var(--font);color:#8adff4;text-shadow:4px 4px #020c15}
.countdown-overlay[data-role='attack'] #roleAnnouncement{color:#ff8777}
#countdownRole{font-size:3.2cqw}
.round>span#roleTag{font-size:clamp(18px,2cqw,32px);padding:.1em .35em;background:#15445e;color:#a9f1ff;text-shadow:1px 1px #06111d}
.round>span#roleTag[data-role='attack']{background:#742f31;color:#ffdfbd}
#arsenalRole{font-size:clamp(18px,1.9cqw,30px);color:#94e4fa}.controls[data-role='attack'] #arsenalRole{color:#ff9c87}
.live-role{position:absolute;z-index:15;top:15%;left:0;right:0;text-align:center;pointer-events:none;font:400 6cqw/1 var(--font);color:#c0f4ff;text-shadow:3px 3px #12354a,-1px -1px #12354a}
.live-role[data-role='attack']{color:#ffb49c;text-shadow:3px 3px #672c2d,-1px -1px #672c2d}
.round-recap .recap-winner{font-size:7cqw;margin:1.2cqw 0 .3cqw;color:#ffe27b}
.round-recap{width:65cqw}
#landscape{filter:saturate(.55) brightness(.88)}
.weapon[data-unlimited='true'] .ammo-belt{visibility:hidden}.weapon[data-unlimited='true'] .ammo-unit{font-size:0}.weapon[data-unlimited='true'] .ammo-unit:after{content:'UNLIMITED';font-size:1cqw}
.marathon-finale{z-index:18;flex-direction:column;background:#06101fe8;padding:2cqw;gap:.6cqw}.marathon-finale h2{font:400 7cqw/1 var(--font);color:#ffe17d;margin:0}.marathon-finale p{font:400 1.7cqw var(--font);color:#bcd9e1;margin:0}.marathon-finale canvas{width:65cqw;height:36cqw;object-fit:contain;image-rendering:pixelated}.marathon-finale .selection-confirm{margin:0}
#fighterConfirm.fight-action{font-family:Impact,'Arial Black',sans-serif;font-size:7cqw;font-style:italic;font-weight:900;letter-spacing:-.06em;line-height:.9;color:#ff342f;-webkit-text-stroke:.1cqw #ffe27c;border:0;text-shadow:.25cqw .25cqw #9b151e,.5cqw .5cqw #020711;transform:skew(-9deg);padding:0 .8em;margin:1.2cqw auto 0}
#fighterConfirm.fight-action:hover{color:#ff6c39;filter:drop-shadow(0 0 12px #f04a2844)}
.round-callout{display:flex;justify-content:center;align-items:center;flex-direction:column}

/* Bold arcade lettering and color, with open space rather than extra panels. */
@font-face{font-family:Pixelify;src:url('assets/fonts/PixelifySans.ttf') format('truetype');font-weight:400 700;font-display:swap}
#setup.selection-screen{--menu-font:Pixelify,VT323,monospace;background:radial-gradient(ellipse at 50% 65%,#122350,#040916 78%)}
.selection-world{opacity:.95;filter:saturate(1.65) brightness(1.25)}
.mode-links{min-width:34cqw;margin-top:3.7cqw;gap:1.4cqw}
.mode-links button{font:700 2.65cqw/1.15 var(--menu-font);letter-spacing:0;padding:.2em 0;color:#7ae5ff;text-shadow:2px 3px #07224d,0 0 20px #2089b92b}
.mode-links button:nth-child(2){color:#ffe080}.mode-links button:nth-child(3){color:#ff9d94}.mode-links button span{color:#fff}
.mode-links button:hover,.mode-links button:focus-visible{color:#fff;text-shadow:2px 3px #513b79,0 0 18px #7dd8ff77}
.mode-logo{width:42cqw}.mode-choices{padding-top:4.4cqw}
.title-credits{font:700 .95cqw/1.2 var(--menu-font);color:#9bbad0;gap:.35cqw;bottom:1.6cqw}
.character-choices>h2{font:700 2.5cqw/1 var(--menu-font);margin:2.4cqw 0 1.9cqw;color:#ffdf78}
.selection-back,.selection-confirm{font-family:var(--menu-font);font-weight:700;letter-spacing:0}.selection-back{font-size:1.25cqw}.selection-confirm{font-size:1.55cqw;color:#ffdf85}
.fighter-stage>span{font:700 1.15cqw var(--menu-font);color:#6bddff;letter-spacing:.06em}.fighter-stage>strong{font:700 1.65cqw var(--menu-font);color:#ffe08c}
.fighter-cell{background:linear-gradient(145deg,#123c5355,#192a6344);border-color:#7095ad66}.fighter-cell>span{font:700 .95cqw/1.1 var(--menu-font);padding:.25cqw 0;color:#fff}
.fighter-side .fighter-details{font-family:var(--menu-font);font-weight:500;font-size:1.02cqw;line-height:1.15}.fighter-side .fighter-details h3{font:700 1.25cqw/1.1 var(--menu-font);margin:.45cqw 0 .25cqw;color:#ffe28c}.fighter-side .fighter-details small{font-size:.84cqw;color:#a7bdcb}
.fighter-side .fighter-country-line strong{font:700 1.15cqw var(--menu-font)}.fighter-side .fighter-details p{font-size:1cqw;line-height:1.2;margin:.6cqw 0;min-height:2.2cqw}.fighter-side .fighter-details p b{font-weight:700;color:#8ee4e6}.fighter-side .fighter-details h4{font:700 1.1cqw/1.1 var(--menu-font);margin:.7cqw 0 .4cqw}.side-city-stats{font-size:.87cqw;line-height:1.2}.fighter-side .fighter-details>a{font-size:.68cqw}.fighter-side .fighter-details .satire-label{font-size:.6cqw}
.fighter-cell.player-picked:after{font:700 .75cqw var(--menu-font)}
.selection-world{z-index:0}.mode-choices,.character-choices{z-index:1}.mode-choices{pointer-events:none}.mode-choices button,.mode-choices a{pointer-events:auto}

.battle-fight{position:absolute;z-index:15;top:29%;left:0;right:0;pointer-events:none;text-align:center;font:italic 900 13cqw/.9 Impact,'Arial Black',sans-serif;color:#ff342f;-webkit-text-stroke:.12cqw #ffdf79;text-shadow:.4cqw .4cqw #941528,.7cqw .7cqw #142038;transform:skew(-9deg);animation:fight-hit .7s ease-out both}
@keyframes fight-hit{0%{transform:skew(-9deg) scale(1.7);opacity:0}16%,72%{transform:skew(-9deg) scale(1);opacity:1}100%{transform:skew(-9deg) scale(1.08);opacity:0}}
@media(prefers-reduced-motion:reduce){.battle-fight{animation:none}}

/* Keep player labels clear of tall heads, and attach a red role insignia to each portrait. */
.fighter-stage>span{z-index:2;top:-.5cqw;text-shadow:2px 2px #020811}
.hud>.player .portrait-wrap{position:relative;flex:0 0 8.8cqw;width:8.8cqw;height:8.8cqw;align-self:center}
.hud>.player .portrait-wrap canvas{display:block;width:100%;height:100%}
.attacker-badge{position:absolute;z-index:3;bottom:-.45cqw;left:-.35cqw;right:-.35cqw;display:flex;gap:.35cqw;align-items:center;justify-content:center;min-height:1.7cqw;padding:.18cqw .25cqw;background:#d72e37;color:#fff8d5;border:2px solid #ffcf72;box-shadow:2px 2px 0 #530e20;font:700 1.05cqw/1 var(--menu-font);letter-spacing:.03em;transform:rotate(-4deg);text-shadow:1px 1px #711126}
.attacker-badge b{font:700 1.3cqw/1 var(--menu-font);color:#ffdc78}
.player[data-role="defense"] .attacker-badge{display:none}
.cpu .attacker-badge{transform:rotate(4deg)}
@media(max-width:850px){.hud>.player .portrait-wrap{flex-basis:7.8cqw;width:7.8cqw;height:7.8cqw}.attacker-badge{font-size:.95cqw}}

/* White mode names, a large battle clock, and an unmistakable armed selection. */
.mode-links button,.mode-links button:nth-child(2),.mode-links button:nth-child(3),.mode-links button span,.mode-links button:hover,.mode-links button:focus-visible{color:#fff}
.round #timer{font-size:clamp(52px,6cqw,96px);line-height:.92;letter-spacing:.03em;text-shadow:3px 3px #081526}
.controls .weapon.active,.controls #god.active,.controls #repair.active{border:3px solid #fff2a0;background:#27566d;box-shadow:inset 0 0 0 2px #152635,0 0 0 1px #ffe779,0 0 14px #ffcf4855}
.controls .weapon.active:after{content:'SELECTED';top:-.52cqw;bottom:auto;left:50%;right:auto;transform:translateX(-50%);padding:.16cqw .4cqw;background:#ffe779;color:#162335;text-shadow:none;font:700 .68cqw/1 var(--menu-font);letter-spacing:.04em}
.controls .weapon.active .weapon-icon{filter:drop-shadow(0 0 4px var(--weapon-color))}
.event.praise{top:35%;bottom:auto;font:700 clamp(32px,4.2cqw,70px)/1 var(--menu-font);color:#fff1a0;background:none;border:0;padding:0;text-shadow:3px 4px #173d50,-1px -1px #173d50;animation:praise-in .22s ease-out;pointer-events:none;white-space:nowrap}
@keyframes praise-in{from{opacity:0;scale:.75}to{opacity:1;scale:1}}
@media(prefers-reduced-motion:reduce){.event.praise{animation:none}}

/* Clear ownership above each head, freestanding role outlines below the cards. */
.hud>.player .portrait-wrap{height:10.6cqw}
.hud>.player .portrait-wrap canvas{position:absolute;bottom:0;left:0;width:8.8cqw;height:8.8cqw}
.hud>.player .portrait-wrap>.pilot-tag{position:absolute;top:0;left:0;right:0;display:block;text-align:center;font:700 2.05cqw/1 var(--menu-font);color:#8ee8ff;letter-spacing:.04em;text-shadow:2px 2px #030b16}
.hud>.cpu .portrait-wrap>.pilot-tag{color:#ff9a8a}
.hud>.player .attacker-badge{top:calc(100% + .75cqw);bottom:auto;left:0;right:0;min-height:1.6cqw;padding:.2cqw .25cqw;border:2px solid #ff8b77;background:transparent;box-shadow:0 0 0 1px #132337;color:#fff1dc;transform:none;font:700 .95cqw/1 var(--menu-font);text-shadow:1px 1px #102235,-1px -1px #102235,1px -1px #102235,-1px 1px #102235}
.arena-location{top:15.3cqw}
.briefing-matchup{position:relative}
.briefing-flight-overlay{position:absolute;z-index:2;inset:0;width:100%;height:100%;pointer-events:none;image-rendering:pixelated}
.briefing-fighter>canvas{background:transparent}
.briefing-role>span{font:700 1.5cqw/1 var(--menu-font)}
@media(max-width:850px){.hud>.player .portrait-wrap{height:9.6cqw}.hud>.player .portrait-wrap canvas{width:7.8cqw;height:7.8cqw}.hud>.player .portrait-wrap>.pilot-tag{font-size:1.8cqw}}

:root{--menu-font:Pixelify,VT323,monospace}
.title-credits .music-attribution{font-size:.7cqw;line-height:1.2;color:#97b0c4}

/* Player ownership fixes the sides, attack/defense only changes the role. */
.briefing-matchup>.briefing-map{grid-column:2;grid-row:1}
.briefing-matchup>.briefing-fighter{grid-row:1}
#roundCountdown[data-attacker-side="right"] .attack-fighter{grid-column:3}
#roundCountdown[data-attacker-side="right"] .defense-fighter{grid-column:1}
#roundCountdown[data-attacker-side="left"] .attack-fighter{grid-column:1}
#roundCountdown[data-attacker-side="left"] .defense-fighter{grid-column:3}

/* Point-of-click errors and a local arcade score table. */
.click-feedback{position:absolute;inset:0;z-index:7;pointer-events:none}
.click-feedback-label{position:absolute;white-space:nowrap;pointer-events:none;font:700 clamp(14px,1.6cqw,25px)/1 var(--menu-font);color:#ffd05b;text-shadow:2px 2px #102336,-1px -1px #102336,1px -1px #102336,-1px 1px #102336;transform:translate(-50%,-100%);animation:click-warning 1.35s ease-out both}
@keyframes click-warning{0%{opacity:1;transform:translate(-50%,-90%)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-160%)}}
.menu-highscores{margin-top:1.7cqw;padding:.2em .6em;background:none;border:0;color:#9feaff;font:700 1.3cqw/1.2 var(--menu-font);text-shadow:2px 2px #071525}.menu-highscores:hover,.menu-highscores:focus-visible{color:#fff}
.highscores-overlay{z-index:23;background:radial-gradient(ellipse at 50% 40%,#122c46,#040b18 85%);color:#eef4e7;padding:1.5cqw}
.score-panel{width:74cqw;max-height:52cqw;display:flex;flex-direction:column;align-items:center;text-align:center;font-family:var(--menu-font);min-height:0}
.score-panel h2{font:700 3.2cqw/1.1 var(--menu-font);margin:.2cqw 0 .5cqw;color:#ffe28c;text-shadow:3px 3px #020710}.score-points{font:700 1.8cqw/1 var(--menu-font);color:#fff;margin:0 0 .7cqw;min-height:1.8cqw}
.score-mode-tabs{display:flex;gap:2cqw;justify-content:center}.score-mode-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:.3cqw .2cqw;color:#96b4cb;font:700 1.15cqw var(--menu-font)}.score-mode-tabs button[aria-pressed="true"]{color:#fff2a0;border-bottom-color:#ffe28c}.score-mode-tabs button:disabled{opacity:.35}
.score-panel h3{font:700 1.15cqw var(--menu-font);color:#89dcec;letter-spacing:.04em;margin:.7cqw 0}
.score-entry{display:flex;align-items:center;justify-content:center;gap:1.1cqw;margin:.2cqw 0}.score-entry[hidden]{display:none}.score-entry label{font-size:1cqw;color:#95e4f0}.score-entry input{width:19cqw;font:700 clamp(16px,1.5cqw,24px) var(--menu-font);text-transform:uppercase;text-align:center;color:#fff9dd;background:#091729;border:0;border-bottom:2px solid #ffe18b;padding:.4cqw .5cqw;border-radius:0}.score-entry button,.score-continue{background:none;color:#ffe18b;font:700 1.35cqw var(--menu-font);padding:.4cqw .7cqw;border:0}.score-entry button:hover,.score-continue:hover{color:#fff}
.score-status{color:#9ae6cc;font-size:1cqw;line-height:1.2;min-height:1.2cqw;margin:.6cqw 0}.score-scroll{width:100%;overflow:auto;min-height:0;max-height:25cqw}.score-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left}.score-table th{color:#82a3bd;font:700 .95cqw var(--menu-font);border-bottom:1px solid #40617b;padding:.5cqw .65cqw}.score-table td{padding:.55cqw .65cqw;font:700 1.2cqw/1.15 var(--menu-font);color:#e2ebed;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score-table th:first-child{width:9%}.score-table th:nth-child(2){width:34%}.score-table th:nth-child(3){width:29%}.score-table th:last-child{width:28%}.score-table td:last-child,.score-table th:last-child{text-align:right}.score-table td:last-child{color:#ffe28c}.score-table .your-score{background:#1a455452;outline:1px solid #88dcdb;outline-offset:-1px}.score-table .your-score td{color:#a4fff1}.score-empty{font:700 1.3cqw var(--menu-font);margin:2cqw 0;color:#b6cdda}.score-local{font-size:.75cqw;color:#6e96b1;margin:.8cqw 0 .3cqw}.score-continue{font-size:1.5cqw}
@media(prefers-reduced-motion:reduce){.click-feedback-label{animation:none}}
@media(max-width:650px){.score-panel{width:91cqw}.score-table td{font-size:1.6cqw}.score-mode-tabs button{font-size:1.5cqw}.score-entry label{font-size:1.3cqw}.score-entry input{width:28cqw}.score-entry button{font-size:1.7cqw}}

/* Round endings announce themselves while the battlefield keeps moving. */
.round-end-notice{position:absolute;z-index:21;inset:15% 0 auto;text-align:center;pointer-events:none;font:700 8.5cqw/1 var(--menu-font);color:#ffdf7b;text-shadow:4px 5px #101f30,-2px -2px #101f30;animation:round-end-arrival .45s cubic-bezier(.15,.85,.25,1) both}
.round-recap{top:9%;width:74cqw;padding:1.2cqw 2cqw 1.6cqw;display:flex;flex-direction:column;align-items:center;background:radial-gradient(ellipse,#102a3bb8,transparent 72%);border:0;box-shadow:none}
.round-recap h2{font:700 6.8cqw/1 var(--menu-font);margin:0 0 1.5cqw;color:#ffe38c;white-space:nowrap;text-shadow:4px 4px #132638,-2px -2px #132638;animation:round-end-arrival .45s cubic-bezier(.15,.85,.25,1) both}
.round-recap .recap-stats{width:85%;margin:.5cqw 0}.round-recap .recap-stats strong{font:700 3cqw/1 var(--menu-font)}
.round-recap .recap-winner{order:-1;font:700 9cqw/1 var(--menu-font);margin:0 0 1cqw;white-space:nowrap;color:#ffe37b;text-shadow:5px 5px #112438,-2px -2px #112438;animation:round-end-arrival .5s cubic-bezier(.15,.85,.25,1) both}
.round-recap[data-finished="true"] h2{font-size:2.5cqw;margin:0 0 1cqw;color:#d3edf4}
.round-recap .primary{margin:.9cqw 0 .7cqw;font:700 2cqw/1 var(--menu-font)}
.round-recap:after{content:'';display:block;width:52%;height:.35cqw;min-height:3px;background:#ffe08a;transform:scaleX(var(--recap-progress,1));transform-origin:left;box-shadow:0 0 8px #ffdf7b44}
#roundShowTitle{font:700 6.6cqw/1 var(--menu-font);color:#ffe28c;margin:.2cqw 0;white-space:nowrap;text-shadow:4px 4px #060f20;animation:round-end-arrival .45s ease-out both}
#roundShow[data-outcome="lose"] #roundShowTitle{color:#ff8475}#roundShow[data-outcome="win"] #roundShowTitle{color:#ffe28c}
@keyframes round-end-arrival{from{opacity:0;transform:scale(1.3) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}
@media(prefers-reduced-motion:reduce){.round-end-notice,.round-recap h2,.round-recap .recap-winner,#roundShowTitle{animation:none}}

/* Ownership is clear before character selection; production lives on each weapon. */
.fighter-stage>span{top:-1.8cqw;font:700 2.8cqw/1 var(--menu-font);letter-spacing:.04em;text-shadow:3px 3px #020811,-1px -1px #020811}
.fighter-stage>canvas{width:16cqw;height:21cqw;top:-.4cqw}
.controls .weapon.restocking:disabled{opacity:1;background:#1a3243;color:#c9e8ee}
.restock-progress{position:absolute;left:.5cqw;right:.5cqw;bottom:.5cqw;text-align:left;pointer-events:none}.restock-progress[hidden]{display:none}
.restock-progress>span{display:block;font:700 clamp(9px,.83cqw,16px)/1.2 var(--menu-font);color:#9deaf3;margin-bottom:.25cqw;white-space:nowrap}
.restock-progress>[role=progressbar]{height:.55cqw;min-height:5px;background:#071b2c;outline:1px solid #5a8a9b}
.restock-progress i{display:block;height:100%;background:#79dfed;box-shadow:0 0 6px #74deed44}
.weapon.restocking .ammo-belt,.weapon.restocking .energy-cost{visibility:hidden}

/* Marathon celebrates distance reached, including runs that end before level 50. */
.marathon-finale h2{font-size:clamp(26px,4.8cqw,96px);line-height:1.1;text-align:center;max-width:92cqw}

/* A small inline role choice, visible only in Marathon character selection. */
.marathon-role-choice{display:flex;justify-content:center;align-items:center;gap:.8cqw;font:700 1.2cqw/1.1 var(--menu-font)}
.marathon-role-choice>span{color:#a2bac9;font-size:1cqw}
.marathon-role-choice button{background:none;border:2px solid #536d7d;border-radius:0;box-shadow:none;color:#aebfc8;padding:.45em .6em;font:inherit;text-shadow:1px 1px #020b17}
.marathon-role-choice [data-marathon-role=attack][aria-pressed=true]{color:#ff9b88;border-color:#ff9b88;box-shadow:0 0 12px #e6654a33}
.marathon-role-choice [data-marathon-role=defense][aria-pressed=true]{color:#93e5ef;border-color:#93e5ef;box-shadow:0 0 12px #6dcee633}
.marathon-role-choice button:focus-visible{outline:2px solid #ffe184;outline-offset:3px}
#characterChoices #fighterConfirm{position:absolute;bottom:1.3cqw;left:50%;margin:0;transform:translateX(-50%);white-space:nowrap}
#characterChoices #fighterConfirm.fight-action{font-size:4cqw;line-height:1;padding:.08em .6em;transform:translateX(-50%) skew(-9deg)}

/* Mode-specific settings share a separate row above the confirmation button. */
.difficulty-choice{display:flex;align-items:center;justify-content:center;gap:1.1cqw;margin:0;font:700 1.1cqw/1.15 var(--menu-font)}
.difficulty-choice>span{font-size:.85cqw;color:#8fb5cc;margin-right:.25cqw}
.difficulty-choice button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;box-shadow:none;padding:.35em .1em;color:#9bb6c8;font:inherit;text-shadow:1px 2px #020710}
.difficulty-choice button[aria-pressed=true]{color:#ffdf7b;border-bottom-color:#ffdf7b}
.difficulty-choice button[data-cpu-difficulty=insane][aria-pressed=true]{color:#ff8c82;border-bottom-color:#ff8c82}
.difficulty-choice button:focus-visible{outline:2px solid #d6f6ff;outline-offset:3px}
.selection-settings{position:absolute;bottom:8cqw;left:8cqw;right:8cqw;display:flex;align-items:center;justify-content:center;gap:3cqw;white-space:nowrap}
