/* Command interface v8.2: one screen, one decision, no nested scrolling. */
:root{--panel:#101d20;--line:#93a89530;--muted:#93a79b;--gold:#e2c18a}
.icon-button{display:grid;place-items:center;width:42px;height:42px;min-width:42px;padding:0;border:1px solid var(--line);background:#14282ad9;border-radius:6px;color:#d6d8c5;font-size:23px;line-height:1}.icon-button:hover{background:#334740;border-color:#e2c18a99}.icon-button svg{width:23px;height:23px}.army-flag{display:block;width:64px;height:48px;object-fit:cover;flex-shrink:0;box-shadow:0 3px 12px #0004;border-radius:2px}.team-standard{display:grid;place-items:center;background:linear-gradient(135deg,#193848,#247294);border:1px solid #729caf44}.team-standard.team-1{background:linear-gradient(135deg,#411d22,#a64542)}.team-standard>img{width:24px;height:32px}.menu-account-tools #shop-wallet{display:flex;align-items:center;gap:9px;border-radius:6px;letter-spacing:0;font-size:12px;padding:8px 12px}.menu-account-tools #shop-wallet svg{width:21px;height:21px}.menu-account-tools #account-open{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-account-tools{flex-wrap:nowrap;max-width:none}
#menu{height:100dvh;min-height:0}#menu .menu-header{flex-shrink:0;min-height:84px}#menu .menu-footer{flex-shrink:0;min-height:52px}#menu .menu-panel{min-height:0;padding:22px 0}#menu:has(#play-lobby:not(.hidden)) .menu-panel,#menu:has(#lobby:not(.hidden)) .menu-panel{width:640px;align-self:center;margin:auto;padding:18px 0}#menu:has(#play-lobby:not(.hidden)) .landing-shade,#menu:has(#lobby:not(.hidden)) .landing-shade{background:linear-gradient(0deg,#08161bec,#0a161abb 50%,#08151a99)}
#play-lobby,#lobby{padding:28px 32px;border:1px solid #72857455;border-top:2px solid #d8bf8d88;border-radius:10px;background:linear-gradient(130deg,#182b2bf5,#101d20fa);box-shadow:0 30px 100px #0006}#play-lobby h2,#lobby h2{font:700 34px/1 BarlowCondensed,Impact,sans-serif;text-transform:uppercase;letter-spacing:1.4px;margin:0!important}.lobby-heading{display:flex;align-items:center;gap:16px;margin-bottom:22px}.lobby-index{margin-left:auto;color:#8ca092;font:10px monospace;letter-spacing:2px}#lobby-back,#leave-lobby{padding:0;margin:0;min-height:42px;color:#ccd1bc;font-size:23px}.army-loadout{display:flex;align-items:center;gap:18px;padding:18px;text-align:left;width:100%;border:1px solid #89977944;border-radius:6px;background:linear-gradient(115deg,#374c3c77,#20332e66);color:#f0ead7;margin-bottom:24px}.army-loadout>span:not(.army-flag){min-width:0}.army-loadout>span>small{display:block;font-size:9px;letter-spacing:1.5px;color:#b3bba0;margin-bottom:6px}.army-loadout strong{display:block;overflow-wrap:anywhere;font-size:18px;font-weight:500}.army-loadout em{font-size:11px;color:#91ab9b;font-style:normal;display:block;margin-top:5px}.army-loadout .warehouse-symbol{margin-left:auto;width:28px;height:28px;flex-shrink:0;color:#dfc28f}.warehouse-symbol svg{width:100%;height:100%}#play-lobby label{font-size:11px;letter-spacing:.4px;color:#abbcaf;margin-bottom:8px}#play-lobby .join-row{gap:10px}#play-lobby .join-row input{font-size:15px;padding:13px 15px;border:1px solid #61776b66;background:#09181bd9}#play-lobby .join-row button{font-size:13px;padding:10px 18px;background:#263b34}.lobby-or{margin:18px 0;font-size:10px;text-transform:uppercase;letter-spacing:1px}.menu-panel #host-game,.menu-panel #start{min-height:56px;font-size:16px;padding:14px 20px}.menu-panel #resume{font-size:12px;min-height:38px;padding:8px;margin-bottom:0}.room-players{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:0 0 20px}.commander-seat{position:relative;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:18px;background:linear-gradient(130deg,#2a4b5577,#14282c);border:1px solid #60a9c744;border-radius:6px}.commander-seat.opponent{background:linear-gradient(130deg,#51342d77,#251e20);border-color:#bc685244}.commander-seat>div{min-width:0;width:100%}.commander-seat small{display:block;font:9px monospace;letter-spacing:1px;color:#91b2b8;margin-bottom:6px}.commander-seat.opponent small{color:#b19b8b}.commander-seat strong{display:block;font-size:15px;font-weight:500;overflow-wrap:anywhere}.commander-seat .icon-button{position:absolute;right:12px;top:14px;width:34px;height:34px;min-width:34px;background:#0e2428;opacity:.9}.commander-seat .icon-button svg{width:20px}.room-vs{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#d1bf90;background:#122223;border:1px solid #6b7e6255;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font:700 12px BarlowCondensed,sans-serif}.room-map{display:flex;gap:14px;align-items:center;padding:0 14px 0 0;width:100%;text-align:left;border:1px solid var(--line);background:#162a28;border-radius:5px;color:#dae0cd;overflow:hidden;margin-bottom:18px;min-height:62px}.room-map-art{width:94px;height:62px;display:grid;place-items:center;background:#81936511;flex-shrink:0;color:#dfc28f;font-size:36px}.room-map-art svg{height:62px;width:116px}.room-map>span:nth-child(2){flex:1;min-width:0}.room-map small{display:block;font:8px monospace;letter-spacing:1.4px;color:#8a9f90;margin-bottom:5px}.room-map strong{display:block;font-size:14px;font-weight:500}.room-rules{font-size:10px;color:#92a99b}.room-map>svg{width:18px;height:18px;color:#d2c49b}.room-code{border:0;padding:0;margin:0 0 20px}.room-code small{font-size:8px;letter-spacing:1.4px}.room-code strong{font:19px/1.2 monospace;letter-spacing:3px;margin:6px 0 0}.room-code .secondary{font-size:11px;min-height:40px;padding:8px 13px;background:#21372f}.match-search{padding:26px 0}.match-search h2{font-size:30px!important;letter-spacing:.5px!important;text-transform:none!important}.search-army{display:flex;align-items:center;justify-content:center;gap:12px;margin:24px 0}.search-army .army-flag{width:40px;height:30px}.search-army strong{font-size:13px;font-weight:400;color:#a3b5a9}.match-search>.secondary{min-width:160px}.search-radar{margin-bottom:38px}
/* Maps: six terrain thumbnails, not another list of descriptions. */
#play-options{width:700px;padding:24px;max-height:calc(100dvh - 24px);overflow:hidden;border-radius:10px;background:#132324;border-color:#677e6855;--setup-pad-y:0px;--setup-pad-x:0px}#play-options h2{font:700 29px BarlowCondensed,sans-serif;text-transform:uppercase;letter-spacing:1px;margin:0 0 18px}#play-options .close{top:15px;right:15px}#play-options .ruleset-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px;padding:0;border:0}#play-options .ruleset-switch legend{display:none}#play-options .ruleset-switch label{padding:10px 12px;min-height:44px;align-items:center;margin:0;gap:8px}#play-options .ruleset-switch label span{display:flex;gap:9px;align-items:center}#play-options .ruleset-switch strong{font-size:12px}#play-options .ruleset-switch small{font-size:10px}.map-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.map-card{position:relative;min-width:0;padding:0;border:1px solid #57715d55;border-radius:6px;background:#162d2b;overflow:hidden;text-align:left;color:#dce4d5}.map-card:hover{border-color:#cbb888}.map-card[aria-pressed=true]{border-color:#e2c18a;background:#374537;box-shadow:0 0 0 1px #e2c18a33}.map-art{height:88px;overflow:hidden;display:grid;place-items:center;background:repeating-linear-gradient(0deg,transparent,transparent 19px,#8aab910c 20px),repeating-linear-gradient(90deg,transparent,transparent 19px,#8aab910c 20px),#1d3027}.map-art svg{width:100%;height:100%;object-fit:cover}.map-shuffle{font-size:54px;font-weight:400;color:#b1ba91}.map-card>span{display:block;padding:10px 12px}.map-card strong{display:block;font-size:13px}.map-card small{display:block;font-size:9px;color:#9fb29e;margin-top:4px}.map-card>i{position:absolute;right:8px;top:8px;width:20px;height:20px;background:#0c2024b0;border-radius:50%;display:grid;place-items:center;color:#ebd5a1;font-size:13px;font-style:normal}#play-options .match-start{position:static;background:none;border:0;padding:0;margin:18px 0 0}#play-options .match-start .primary{height:46px;min-height:46px;padding:10px;margin:0;font-size:14px}
/* Shared fixed shells and pagers. The content changes page instead of overflowing. */
.game-dialog .dialog-close{width:36px;height:36px;min-height:36px;padding:0;display:grid;place-items:center;font:26px/1 Arial!important;border:1px solid #72846c44;border-radius:5px;background:#172a28;color:#bfc8b6}.item-pager{display:flex;align-items:center;justify-content:center;gap:18px;flex-shrink:0;min-height:36px}.item-pager button{width:36px;height:36px;min-height:36px;padding:0;border:1px solid #81987244;border-radius:5px;background:#1b302b;color:#d9d4b6;font-size:20px}.item-pager button:disabled{opacity:.3}.item-pager>span{font:10px monospace;color:#91a68f;min-width:100px;text-align:center}.shop-dialog{width:min(900px,calc(100vw - 32px));height:min(730px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:24px!important;background:linear-gradient(130deg,#192b28,#101e20)!important;overflow:hidden;border-radius:10px!important}.shop-dialog>h2{font-size:28px;line-height:30px;margin:0 60px 16px 0!important}.shop-dialog .dialog-close{top:18px;right:18px}.shop-content{height:calc(100% - 46px);min-height:0;display:flex;flex-direction:column;gap:12px}.shop-mast{padding:0;margin:0;gap:12px;min-height:40px;flex-shrink:0}.shop-equipped{display:flex;align-items:center;gap:10px;color:#9bab98;font-size:10px}.shop-equipped .army-flag{width:42px;height:30px}.shop-equipped small{display:block;color:#d9ddc6;font-size:12px;margin-top:4px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shop-balance{padding:0;border:0}.shop-balance strong{font-size:30px}.shop-tabs{gap:0;flex-shrink:0}.shop-dialog .shop-tabs button{min-height:40px;padding:8px 10px;font-size:12px}.shop-status{margin:0;min-height:0;font-size:11px;line-height:1.3;flex-shrink:0}.shop-main{min-height:0;flex:1;display:flex;flex-direction:column;gap:12px}.flag-feature{margin:0;grid-template-columns:130px minmax(0,1fr);gap:22px;padding:18px;min-height:124px;border-radius:6px;flex-shrink:0}.flag-preview{height:88px;padding:0;display:flex;align-items:center;justify-content:center}.flag-preview img{width:112px;height:84px}.flag-preview-pole{display:none}.flag-feature h3{font:700 28px/1.1 BarlowCondensed,sans-serif;margin:0 0 12px}.flag-feature .shop-primary{max-width:340px;min-height:40px;padding:8px 12px;font-size:12px}.flag-feature small{margin-top:6px;font-size:10px}.flag-search{flex-shrink:0}.flag-search input{margin:0;min-height:40px;padding:10px 12px;font-size:13px}.flag-browser{flex:1;min-height:90px;overflow:hidden}.flag-grid{height:100%;max-height:none;padding:0;gap:8px;overflow:hidden;align-content:start;grid-auto-rows:1fr}.flag-card{min-height:0;padding:8px 6px;gap:4px;border-radius:5px}.flag-card img{width:40px;height:30px}.flag-card strong{font-size:11px;line-height:1.1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.flag-card small{font-size:9px}.shop-feature{margin:0;flex:1;min-height:0;grid-template-columns:1.1fr 1fr;overflow:hidden;border-radius:6px}.shop-showcase{min-height:0;overflow:hidden}.shop-render{height:100%;min-height:0!important;max-height:none!important}.shop-render img{height:100%;width:100%;object-fit:contain}.shop-detail{min-height:0;padding:20px;display:flex;flex-direction:column;justify-content:center;gap:10px}.shop-detail h3{font-size:38px;line-height:1;margin:0}.shop-detail p{margin:0;font-size:10px}.shop-eyebrow{font-size:9px;line-height:1.4}.shop-purchase{margin:0;gap:8px;flex-wrap:wrap}.shop-purchase>strong{font-size:22px}.shop-primary{min-height:40px;padding:10px 12px;font-size:12px}.shop-fine{line-height:1.3}.shop-edition{display:none}.shop-inspect{bottom:12px;left:12px;font-size:10px;padding:8px}.shop-cards{flex-shrink:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0}.shop-card{padding:6px;border-radius:5px;min-width:0}.shop-cards img{width:100%;height:65px!important;max-height:65px;object-fit:contain}.shop-card-title{font-size:16px;line-height:1.1;overflow-wrap:anywhere;margin:5px 0}.shop-card-meta{font-size:9px;display:block;margin:0}.shop-card-meta b{font-size:9px}.shop-confirm{margin:0;padding:8px;font-size:12px}.shop-confirm p{margin:6px 0}.shop-confirm>div{display:flex;gap:8px}.shop-confirm button{min-height:36px;padding:8px;font-size:11px}.shop-service{display:block;flex-shrink:0}.shop-service>section{padding:15px;border-radius:6px}.shop-service h3,.shop-history h3{font:700 24px BarlowCondensed,sans-serif;margin:0 0 10px}.shop-service .shop-rates{gap:12px}.shop-rates>div{padding:10px}.shop-rates strong{font-size:26px}.shop-rates small{font-size:9px}.shop-service .quiet{font-size:11px;min-height:32px;padding:4px 0}.shop-history{margin:0;padding:12px 0 0;flex:1;min-height:0}.shop-history [data-history]>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #7a8c6622;font-size:11px}.shop-history [data-history]>div>span{min-width:0}.shop-history strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shop-history small{font-size:9px;color:#8fa18c;display:block;margin-top:4px}
/* Synchronized commander reveal. The army is inert until the countdown ends. */
#match-intro{position:fixed;inset:0;z-index:900;background:radial-gradient(ellipse at 23% 40%,#22495655,transparent 55%),radial-gradient(ellipse at 78% 40%,#75403344,transparent 55%),#091317;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;color:#f1ead5;padding:36px;isolation:isolate}#match-intro:before{content:'';position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(0deg,transparent,transparent 49px,#acbca308 50px),repeating-linear-gradient(90deg,transparent,transparent 49px,#acbca308 50px);mask-image:linear-gradient(0deg,transparent,#000,transparent)}.intro-top{position:absolute;top:30px;left:36px;right:36px;display:flex;align-items:center;gap:12px;font-size:12px;font-weight:700;letter-spacing:3px}.intro-top img{width:20px;height:26px}.intro-top small{margin-left:auto;font-size:10px;letter-spacing:2px;color:#9ba89b}.intro-match{display:grid;grid-template-columns:1fr 80px 1fr;width:min(920px,100%);gap:15px;align-items:center}.intro-commander{height:min(58vh,510px);min-height:270px;position:relative;border:1px solid #5b9dad66;background:linear-gradient(155deg,#406b7366,#15282d66 70%);overflow:hidden;animation:commander-enter .65s cubic-bezier(.16,1,.3,1) both;clip-path:polygon(0 0,100% 0,100% 95%,94% 100%,0 100%)}.intro-enemy{border-color:#b5746366;background:linear-gradient(205deg,#86504466,#251d2066 70%);animation-name:commander-enemy}.intro-flag{position:absolute;inset:20px 20px auto;opacity:.8}.intro-flag>.army-flag{width:100%;height:auto;aspect-ratio:4/3;box-shadow:none;filter:saturate(.7);mask-image:linear-gradient(#0009,transparent)}.intro-flag>.team-standard{min-height:240px}.intro-flag .team-standard>img{width:80px;height:110px}.commander-portrait{position:absolute;bottom:64px;left:50%;transform:translateX(-50%);width:90%;height:80%;filter:drop-shadow(0 0 20px #0006)}.portrait-shoulders{fill:#132527;stroke:#809894;stroke-width:1.1}.portrait-neck{fill:#243934;stroke:#829485;stroke-width:.8}.portrait-face{fill:#445247;stroke:#91a08d;stroke-width:1}.portrait-helmet{fill:#263d38;stroke:#91a18d;stroke-width:1.5}.portrait-visor{fill:#091b21;stroke:#719caa;stroke-width:1.3}.portrait-seams{fill:none;stroke:#65817a;stroke-width:1.2}.intro-enemy .portrait-shoulders,.intro-enemy .portrait-helmet{fill:#352a29;stroke:#957c6d}.intro-enemy .portrait-visor{stroke:#ae7767}.intro-enemy .commander-portrait{transform:translateX(-50%) scaleX(-1)}.intro-identity{position:absolute;bottom:0;left:0;right:0;padding:45px 24px 24px;background:linear-gradient(transparent,#0c1c20 40%)}.intro-identity>span{font:10px monospace;letter-spacing:3px;color:#83c0d4}.intro-enemy .intro-identity>span{color:#dfa08b}.intro-identity h2{font:700 clamp(24px,4vw,48px)/1.05 BarlowCondensed,Impact,sans-serif;margin:10px 0 7px;overflow-wrap:anywhere}.intro-identity>small{font-size:11px;color:#a5b3a3}.intro-versus{font:700 42px BarlowCondensed,sans-serif;color:#ead0a0;text-align:center;animation:versus-reveal .45s .4s both}.intro-bottom{margin-top:30px;text-align:center;min-width:220px}.intro-bottom>span{font:10px monospace;color:#9daea2;letter-spacing:2px;text-transform:uppercase}.intro-bottom>strong{display:block;font:700 35px BarlowCondensed,sans-serif;margin-top:8px}.intro-progress{height:2px;background:#e2c18a22;margin-top:12px;overflow:hidden}.intro-progress>i{display:block;width:100%;height:100%;background:#e2c18a;transform-origin:left;animation:intro-count linear both}.intro-active #quick-tip,.intro-active #battle-loading{display:none!important}@keyframes commander-enter{from{opacity:0;transform:translateX(-100px)}to{opacity:1;transform:none}}@keyframes commander-enemy{from{opacity:0;transform:translateX(100px)}to{opacity:1;transform:none}}@keyframes versus-reveal{from{opacity:0;transform:scale(1.8)}to{opacity:1;transform:none}}@keyframes intro-count{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:700px){#menu{padding-inline:20px}#menu .menu-header{min-height:68px}#menu .menu-footer{min-height:42px}#menu:has(#play-lobby:not(.hidden)) .menu-panel,#menu:has(#lobby:not(.hidden)) .menu-panel{padding:12px 0}#play-lobby,#lobby{padding:22px}.lobby-heading{gap:12px;margin-bottom:18px}#play-lobby h2,#lobby h2{font-size:29px}.army-loadout{padding:14px;gap:13px;margin-bottom:22px}.army-loadout strong{font-size:15px}.army-loadout .army-flag{width:56px;height:42px}.army-loadout em{font-size:10px}.army-loadout .warehouse-symbol{width:24px;height:24px}.room-players{gap:16px;margin-bottom:14px}.commander-seat{padding:12px;gap:12px}.commander-seat .army-flag{width:48px;height:36px}.commander-seat .icon-button{top:9px;right:8px;width:28px;min-width:28px;height:30px}.commander-seat strong{font-size:12px}.commander-seat small{font-size:8px}.room-vs{width:26px;height:26px;font-size:10px}.room-map{gap:10px;margin-bottom:14px}.room-map-art{width:60px}.room-map strong{font-size:12px}.room-rules{display:none}.room-code{margin-bottom:15px}.menu-account-tools #account-open{max-width:115px}.shop-dialog{width:calc(100vw - 24px);padding:18px!important}.shop-dialog .dialog-close{top:12px;right:12px}.shop-dialog>h2{font-size:25px}.shop-content{gap:10px}.shop-equipped small{max-width:150px;font-size:11px}.flag-feature{grid-template-columns:80px minmax(0,1fr);gap:14px;padding:12px;min-height:108px}.flag-preview{height:68px}.flag-preview img{width:80px;height:60px}.flag-feature h3{font-size:22px;margin-bottom:8px}.flag-feature .shop-primary{font-size:11px;min-height:36px;padding:8px}.flag-feature small{font-size:9px}.flag-card strong{font-size:10px}.flag-card img{width:36px;height:27px}.flag-grid{gap:6px}.shop-tabs button{min-height:36px!important}.shop-main{gap:10px}.shop-feature{grid-template-columns:1fr;grid-template-rows:minmax(70px,1fr) auto}.shop-detail{padding:12px;gap:7px;display:grid;grid-template-columns:1fr auto;align-items:center}.shop-detail .shop-eyebrow{grid-column:1/-1;font-size:8px}.shop-detail h3{font-size:28px}.shop-purchase{flex-direction:column;align-items:flex-end;grid-column:2;grid-row:2/4;gap:4px}.shop-purchase>strong{font-size:17px}.shop-detail .shop-fine{font-size:9px;max-width:145px}.shop-confirm{grid-column:1/-1}.shop-cards{gap:4px}.shop-cards img{height:40px!important}.shop-card{padding:4px}.shop-card-title{font-size:11px!important;margin:3px 0;min-height:24px}.shop-card-meta b{font-size:8px}.shop-inspect{bottom:6px;left:6px;padding:6px;font-size:9px}.shop-service>section{padding:12px}.shop-service h3{font-size:23px}.shop-rates>div{padding:8px}.shop-rates strong{font-size:23px}.shop-rates small{font-size:8px}.shop-history{padding-top:6px}.shop-history h3{font-size:22px}.shop-history [data-history]>div{padding:8px 0}#play-options{padding:20px}.map-picker{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.map-art{height:65px}.map-card>span{padding:8px 10px}.map-card strong{font-size:12px}.map-card small{font-size:9px}#play-options .ruleset-switch label{padding:8px}#play-options .ruleset-switch label span{display:block}#play-options .ruleset-switch small{font-size:9px}#play-options h2{font-size:27px}#match-intro{padding:18px}.intro-top{top:24px;left:20px;right:20px;font-size:10px;letter-spacing:2px}.intro-top small{font-size:8px;max-width:120px;text-align:right;letter-spacing:1px}.intro-match{gap:6px;grid-template-columns:1fr 28px 1fr}.intro-versus{font-size:23px}.intro-commander{height:390px;min-height:0}.intro-flag{inset:12px 8px auto}.intro-identity{padding:35px 12px 18px}.intro-identity h2{font-size:27px}.intro-identity>span{font-size:9px;letter-spacing:1px}.intro-identity>small{font-size:9px}.commander-portrait{width:150%;height:76%;bottom:55px}.intro-bottom{margin-top:28px}}
@media(max-width:360px){#menu{padding-inline:14px}.menu-account-tools #shop-wallet{padding:7px 8px;gap:5px;font-size:10px}.menu-account-tools #shop-wallet svg{width:18px;height:18px}.menu-account-tools #account-open{max-width:82px;font-size:10px}.menu-header .brand{font-size:10px;letter-spacing:.5px;gap:5px}.menu-header .brand-mark{width:20px;height:28px}#play-lobby,#lobby{padding:16px}.lobby-heading{margin-bottom:14px}.lobby-index{font-size:9px;letter-spacing:1px}.army-loadout{padding:10px;gap:10px;margin-bottom:16px}.army-loadout .army-flag{width:48px;height:36px}.army-loadout strong{font-size:13px}.army-loadout>span>small{font-size:8px}.lobby-or{margin:14px 0}#play-lobby .join-row button{font-size:11px;padding:8px 11px}#play-lobby .join-row input{font-size:13px;padding:12px 10px;letter-spacing:1px}.commander-seat{padding:10px 8px}.commander-seat .icon-button{position:static;width:100%;height:26px;min-height:26px;margin-top:-5px}.commander-seat .icon-button svg{width:17px;height:17px}.room-players{align-items:stretch}.commander-seat strong{font-size:12px}.room-code strong{font-size:17px}.room-code .secondary{padding:8px;font-size:10px}.shop-dialog{padding:14px!important;width:calc(100vw - 16px)}.shop-content,.shop-main{gap:8px}.shop-dialog>h2{font-size:24px;margin-bottom:12px!important}.shop-content{height:calc(100% - 42px)}.shop-equipped small{max-width:118px}.shop-equipped .army-flag{width:32px;height:24px}.shop-equipped{gap:7px}.shop-balance strong{font-size:26px}.shop-dialog .shop-tabs button{font-size:11px;padding:7px}.flag-feature{grid-template-columns:62px minmax(0,1fr);gap:10px;padding:10px;min-height:100px}.flag-preview img{width:62px;height:47px}.flag-feature h3{font-size:20px}.flag-feature .shop-primary{font-size:10px;padding:7px 4px}.flag-card{padding:6px 3px}.flag-card strong{font-size:9px}.flag-card small{font-size:8px}.map-art{height:52px}#play-options{padding:16px}#play-options h2{margin-bottom:12px}#play-options .ruleset-switch{margin-bottom:12px}#play-options .match-start{margin-top:12px}.intro-commander{height:330px}.intro-identity{padding:30px 10px 16px}.intro-identity h2{font-size:24px}.intro-bottom{margin-top:22px}}
@media(max-height:700px) and (min-width:701px){#menu .menu-header{min-height:65px}#menu .menu-footer{min-height:40px}#play-lobby,#lobby{padding:18px 26px}.lobby-heading{margin-bottom:15px}.room-players{margin-bottom:12px}.commander-seat{flex-direction:row;align-items:center;gap:12px;padding:14px}.commander-seat .icon-button{display:none}.commander-seat .army-flag{width:42px;height:32px}.commander-seat strong{font-size:12px}.room-map{margin-bottom:12px}.room-code{margin-bottom:12px}.army-loadout{margin-bottom:14px;padding:12px}.lobby-or{margin:14px 0}.shop-detail h3{font-size:32px}.shop-cards img{height:48px!important}.shop-card-title{font-size:14px}.shop-service>section{padding:10px}.shop-history [data-history]>div{padding:7px 0}}
@media(max-height:500px) and (min-width:600px){#menu .menu-header{min-height:50px}#menu .menu-footer{min-height:34px}#menu:has(#play-lobby:not(.hidden)) .menu-panel,#menu:has(#lobby:not(.hidden)) .menu-panel{width:700px;padding:7px 0}#play-lobby,#lobby{padding:14px 20px;display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;align-items:center}.lobby-heading{grid-column:1/-1;margin:0!important}#play-lobby h2,#lobby h2{font-size:25px}.lobby-heading .icon-button{height:32px;width:32px;min-height:32px;min-width:32px}#play-lobby .army-loadout{grid-column:1;grid-row:2/5;margin:0;padding:18px;align-self:stretch}#join-form{grid-column:2}#play-lobby label{display:none}.lobby-or{display:none}.menu-panel #host-game{min-height:44px;font-size:14px}.menu-panel #resume{grid-column:2;margin:0;min-height:30px;font-size:10px;padding:5px}#lobby .room-players{grid-column:1;grid-row:2/4;margin:0;gap:12px}.commander-seat{flex-direction:column;padding:10px}.commander-seat .army-flag{width:42px;height:32px}.commander-seat strong{font-size:11px}.commander-seat small{font-size:8px}.room-map{grid-column:2;margin:0;min-height:44px}.room-map-art{height:44px;width:54px}.room-map-art svg{height:44px}.room-code{grid-column:2;margin:0}.room-code .secondary{min-height:32px}.room-code strong{font-size:16px}.lobby-buttons{grid-column:1/-1}.menu-panel #start{min-height:40px;padding:10px 16px;font-size:14px}.match-search{grid-column:1/-1;padding:8px;display:grid;grid-template-columns:60px 1fr auto;align-items:center;gap:20px}.search-radar{width:42px;height:42px;margin:10px}.match-search h2{font-size:23px!important}.match-search .search-army{display:none}.match-search>.secondary{min-width:100px}.shop-dialog{padding:14px 20px!important;height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}.shop-dialog>h2{font-size:23px;line-height:26px;margin-bottom:8px!important}.shop-content{height:calc(100% - 34px);gap:7px}.shop-mast{position:absolute;top:12px;right:74px;min-height:30px}.shop-equipped{display:none}.shop-balance strong{font-size:25px}.shop-dialog .shop-tabs button{min-height:32px!important;padding:5px}.shop-main{gap:7px}.shop-dialog[data-section=flags] .shop-main{display:grid;grid-template-columns:230px minmax(0,1fr);grid-template-rows:36px minmax(90px,1fr) 32px;gap:8px 18px}.flag-feature{grid-row:1/4;min-height:0;padding:16px;grid-template-columns:1fr;text-align:center;align-content:center;gap:12px}.flag-feature h3{font-size:25px;margin-bottom:10px}.flag-preview{height:62px}.flag-preview img{width:80px;height:60px}.flag-feature small{font-size:9px}.flag-feature .shop-primary{font-size:11px;min-height:36px}.flag-search{grid-column:2}.flag-search input{min-height:36px;padding:8px 12px}.flag-browser{grid-column:2;min-height:0;height:100%}.item-pager{min-height:30px}.item-pager button{width:30px;height:30px;min-height:30px}.shop-dialog[data-section=flags] .item-pager{grid-column:2}.flag-card img{width:32px;height:24px}.flag-card strong{font-size:10px}.flag-card{gap:3px;padding:5px}.shop-feature{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr)}.shop-detail{padding:10px;display:flex;gap:5px}.shop-detail h3{font-size:27px}.shop-purchase{flex-direction:row;align-items:center}.shop-purchase>strong{font-size:18px}.shop-primary{min-height:32px;padding:7px;font-size:11px}.shop-detail .shop-fine{font-size:9px;max-width:none}.shop-cards img{display:none}.shop-cards{gap:8px}.shop-card{padding:7px}.shop-card-title{font-size:13px!important;min-height:0;margin:0 0 4px}.shop-dialog[data-section=service] .shop-main{display:grid;grid-template-columns:1fr 1fr}.shop-service{grid-row:1/3}.shop-history{padding:0}.shop-service>section{padding:10px}.shop-service h3{font-size:22px}.shop-history h3{font-size:19px}.shop-history [data-history]>div{padding:6px 0}.shop-rates{margin-top:10px}.shop-rates strong{font-size:23px}#play-options[open]{width:660px;padding:14px 20px;display:grid;grid-template-columns:1fr 180px;gap:10px 20px}#play-options h2{font-size:24px;margin:0;grid-column:1}#play-options .ruleset-switch{grid-column:2;grid-row:2;display:flex;flex-direction:column;justify-content:center;margin:0;gap:10px}#play-options .ruleset-switch label span{display:block}#play-options .map-picker{grid-column:1;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.map-art{height:48px}.map-card>span{padding:7px 9px}.map-card strong{font-size:11px}.map-card small{font-size:8px;margin-top:3px}#play-options .match-start{grid-column:1/-1;margin:0}#play-options .match-start .primary{height:38px;min-height:38px}.intro-top{top:16px}.intro-match{width:640px;grid-template-columns:1fr 60px 1fr;margin-top:30px}.intro-commander{height:240px;min-height:0}.intro-identity{padding:20px 18px 13px}.intro-identity h2{font-size:27px;margin:5px 0}.intro-identity>small{font-size:9px}.commander-portrait{bottom:25px;height:95%;width:90%}.intro-bottom{position:absolute;bottom:16px;margin:0;width:160px;min-width:0}.intro-bottom>span{font-size:8px;letter-spacing:1px}.intro-bottom>strong{font-size:24px;margin:4px}.intro-progress{margin-top:4px}.intro-versus{font-size:27px}.intro-match{transform:translateY(-10px)}}
@media(prefers-reduced-motion:reduce){.intro-commander,.intro-versus,.intro-progress>i{animation:none!important}.search-radar{animation:none!important}}
body.reduced .intro-commander,body.reduced .intro-versus,body.reduced .intro-progress>i{animation:none!important}
#play-lobby h2,#lobby h2,#play-options h2,.account-dialog>h2,.account-dialog .account-callsign,.intro-identity h2,.intro-versus,.intro-bottom>strong,.flag-feature h3{font-family:BarlowCondensed,Impact,sans-serif!important}.lobby-index{white-space:nowrap}#play-options .map-card small{display:block}#play-options .map-art .theater-sketch{height:100%}
@media(max-width:360px){.flag-browser{min-height:74px}.flag-card{min-height:0}}
.shop-history>[data-history]{display:block;padding:0;border:0;min-width:0}.shop-history [data-history]>div>span{flex:1}.shop-history [data-history]>div>b{flex-shrink:0}
#play-options #map-preview .map-card small{display:block}#play-options #map-preview .map-art .theater-sketch{height:100%}
#settings{width:min(580px,calc(100vw - 24px));height:min(480px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden;padding:24px;border-radius:10px;background:#122224;border:1px solid #60775f77}#settings h2{font:700 28px BarlowCondensed,Impact,sans-serif!important;letter-spacing:1px;text-transform:uppercase;margin:0 0 20px}#settings .eyebrow{display:none}.settings-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);margin-bottom:18px}.settings-tabs button{min-width:0;flex:1;background:none;border:0;border-bottom:2px solid transparent;color:#99ad9e;padding:10px 6px;font-size:12px;border-radius:0;min-height:40px}.settings-tabs button[aria-pressed=true]{color:#e2c18a;border-color:#e2c18a}.setting-page{min-height:0;display:flex;flex-direction:column;gap:12px}#settings .setting{padding:10px 0;margin:0;min-height:46px;border-bottom:1px solid #8aa27b22;gap:12px;font-size:12px}#settings .control-setting{display:flex;flex-direction:row!important;align-items:center!important}#settings .choice-trigger{width:60%;max-width:280px;min-height:40px;padding:8px 10px;font-size:12px}#settings .choice-trigger>span{display:none}#settings .setting-note{display:none}#settings .setting input[type=range]{width:45%}#settings .setting-page>.secondary,#settings .setting-page>.danger{min-height:42px;margin:0;padding:10px 12px;font-size:12px;border-radius:5px}#settings .release-detail{font-size:10px;color:#849a8c;margin:0}#settings #fpv-sensitivity-setting{flex-wrap:wrap}#settings #fpv-sensitivity-setting input{width:42%}#settings #fpv-sensitivity-setting output{margin-left:auto}.setting-page[data-setting-page=display],.setting-page[data-setting-page=game]{gap:12px}#more-menu[open]{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:22px;overflow:hidden;max-height:calc(100dvh - 24px);width:min(450px,calc(100vw - 24px))}#more-menu h2{grid-column:1/-1;margin:0 0 12px;font-family:BarlowCondensed,sans-serif!important}#more-menu>.secondary{display:flex;align-items:center;margin:0;padding:10px;font-size:12px;min-height:44px}#more-menu .quiet{grid-column:1/-1;font-size:11px}#more-menu .offline-menu{font-size:10px}
@media(max-width:400px){#settings{padding:18px;height:min(455px,calc(100dvh - 24px))}#settings h2{margin-bottom:14px}.settings-tabs{margin-bottom:12px}.settings-tabs button{font-size:11px}#settings .setting{font-size:11px}#settings .choice-trigger{font-size:11px;width:58%}#settings .setting-page{gap:8px}#settings #fpv-sensitivity-setting{font-size:10px}.setting-page[data-setting-page=game]{gap:10px}}
@media(max-height:500px) and (min-width:600px){#settings{width:650px;padding:16px 24px}#settings h2{font-size:23px;margin-bottom:8px}.settings-tabs{margin-bottom:10px}.settings-tabs button{min-height:32px;padding:5px}.setting-page{gap:6px}.setting-page[data-setting-page=controls]{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}#settings .control-setting{flex-direction:column!important;align-items:stretch!important;gap:8px}#settings .choice-trigger{width:100%;font-size:11px}.setting-page[data-setting-page=display],.setting-page[data-setting-page=game]{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}#settings .setting-page>.secondary,#settings .setting-page>.danger{min-height:40px}#settings #release-detail{grid-column:1/-1}#more-menu[open]{width:550px;grid-template-columns:repeat(3,1fr);padding:16px 22px;gap:8px}#more-menu>.secondary{min-height:38px;padding:8px;font-size:11px}#more-menu h2,#more-menu .quiet{grid-column:1/-1}}
/* Original key art, preloaded before the search finishes. */
img.commander-portrait{width:100%;height:100%;object-fit:cover;object-position:center top;bottom:0;filter:drop-shadow(0 0 18px #0005);mask-image:linear-gradient(#000 70%,transparent 98%)}.intro-flag{z-index:2;inset:18px 18px auto;opacity:1}.intro-flag>.army-flag{width:64px;height:48px;aspect-ratio:auto;mask-image:none;filter:none;box-shadow:0 3px 18px #0006;border:1px solid #c1c8af55}.intro-flag>.team-standard{min-height:0}.intro-flag .team-standard>img{width:22px;height:30px}.intro-identity{z-index:3}.intro-enemy img.commander-portrait{filter:sepia(.12) saturate(.75) drop-shadow(0 0 18px #0005)}
@media(max-width:700px){img.commander-portrait{width:150%;height:100%;object-fit:cover;bottom:0}.intro-flag{inset:12px 10px auto}.intro-flag>.army-flag{width:46px;height:34px}.intro-identity h2{font-size:clamp(20px,5.6vw,27px);overflow-wrap:anywhere}}
@media(max-height:500px) and (min-width:600px){img.commander-portrait{width:100%;height:150%;object-fit:cover;object-position:top;top:0;bottom:auto}.intro-flag>.army-flag{width:46px;height:34px}}
#lobby .lobby-buttons{margin:0}.menu-panel .lobby-heading h2{min-width:0}
#menu .menu-footer{padding:6px 0}#menu .menu-footer .quiet{min-height:28px}
#settings .idle-note{font-size:10px;line-height:1.5;color:#94a78f;margin:0;grid-column:1/-1}
@media(max-width:700px){.intro-identity h2.long-name{font-size:18px}}

