/* Mistward — quiet tactical view, commander banners and an open sea. */
#play{--north-ink:#26323a;--north-muted:#81928f;--north-paper:#f1f0e6;--north-line:#d1d7cf;--north-sea:#a9c3c4;--north-accent:#e7c98f;padding-top:84px;padding-bottom:90px;border-top:1px solid var(--line,#d5d9cc);color:var(--north-ink);scroll-margin-top:22px}
.north-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:48px;padding-bottom:35px}
.north-heading .eyebrow{margin-bottom:20px;color:#788579}
.north-heading h2{font-family:Georgia,'Songti SC',SimSun,serif;font-size:clamp(40px,4.2vw,62px);letter-spacing:-.045em}
.north-subtitle{display:block;margin-top:10px;font-family:var(--serif,Georgia,serif);font-size:23px;font-style:italic;letter-spacing:.02em;color:#82918a}
.north-introduction{max-width:360px;padding-bottom:2px}
.north-introduction p{font-size:13px;line-height:1.9;color:#66776f}
.north-introduction span{display:block;margin-top:17px;font-size:10px;font-weight:600;letter-spacing:.12em;color:#79857c}
.north-game{position:relative;isolation:isolate;width:100%;background:#283840;border:0;overflow:hidden;box-shadow:0 25px 75px #263f3922;color:#edf1ed}
.north-game button{font:inherit;line-height:1.4;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.north-game button:focus-visible,.north-game canvas:focus-visible,.north-game input:focus-visible{outline:2px solid #ecd59d;outline-offset:-3px}
.north-game button:disabled{cursor:default;opacity:.38}
.north-hud{position:relative;z-index:5;min-height:65px;padding:12px 25px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:#28363eed;border-bottom:1px solid #dbe9e519;box-shadow:0 5px 16px #11252b0b}
.north-metrics{display:flex;align-items:center;gap:32px;min-width:0}
.north-metric{min-width:54px}
.north-metric>span{display:block;font-size:10px;color:#a9b9ba;letter-spacing:.11em;text-transform:uppercase}
.north-metric strong{display:block;padding-top:3px;font-weight:400;font-size:17px;letter-spacing:.025em;line-height:1.3;white-space:nowrap;color:#edf1e9}
.north-metric:first-child{padding-right:27px;border-right:1px solid #e0e9e324}
.north-metric:first-child strong{color:#d5ddc6}
.north-settings{display:flex;gap:6px;align-items:center;flex-shrink:0}
.north-icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:36px;height:36px;padding:5px 8px;border:1px solid transparent;border-radius:0;background:transparent;color:#d4e0dd;font-size:17px!important;transition:background .16s,border-color .16s}
.north-icon-button:hover,.north-icon-button[aria-pressed=true]{background:#d9e5dd15;border-color:#cfddd033}
.north-icon-button svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none}
#north-speed{font-size:13px!important;letter-spacing:-.04em}
.north-music{display:flex;align-items:center;gap:9px;min-width:0;border-left:1px solid #e0e9e324;padding-left:17px;margin-left:7px}
#north-music-label{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#aebfbc;letter-spacing:.02em}
#north-volume{width:64px;height:24px;padding:0;accent-color:#d9dcbe;cursor:pointer;background:transparent}
.north-viewport{position:relative;height:660px;min-height:380px;background:var(--north-sea);overflow:hidden}
#north-canvas{display:block;width:100%;height:100%;outline-offset:-4px;touch-action:none}
.north-viewport-label{position:absolute;left:26px;top:22px;display:flex;align-items:center;gap:10px;font-size:10px;font-weight:500;letter-spacing:.16em;color:#4b68628c;pointer-events:none}
.north-viewport-label::before{content:'+';font-size:19px;font-weight:300;line-height:1}
.north-view-tools{position:absolute;z-index:3;display:flex;gap:3px;right:23px;bottom:22px;padding:3px;background:#263e4359;backdrop-filter:blur(8px)}
.north-view-tools .north-icon-button{color:#f2f3e8;min-width:35px;height:34px;border:0}
.north-view-tools .north-icon-button:hover{background:#f4f4eb22}
.north-view-tools .north-tool-divider{align-self:center;width:1px;height:18px;background:#dbe9de40;margin:0 4px}
.north-wave-dots{position:absolute;right:28px;top:28px;display:flex;gap:7px;z-index:2;pointer-events:none}
.north-wave-dots i,.north-wave-dots span{width:6px;height:6px;border-radius:50%;border:1px solid #3c625b80}
.north-wave-dots .is-complete,.north-wave-dots .is-active{background:#426659}
.north-overlay{position:absolute;z-index:4;inset:0;display:flex;align-items:center;justify-content:flex-start;padding:42px 5%;background:transparent;pointer-events:none}
.north-overlay[hidden],.north-overlay.is-hidden{display:none}
.north-overlay.is-deploying{align-items:flex-start;padding:24px}
.north-overlay.is-deploying .north-intro{width:280px;padding:22px}
.north-overlay.is-deploying .north-intro h3{font-size:25px}
.north-overlay.is-deploying .north-intro .north-kicker{margin-bottom:10px}
.north-overlay.is-deploying .north-intro p{margin-top:9px;font-size:12px}
.north-overlay.is-deploying .north-actions{margin-top:17px;gap:8px}
.north-overlay.is-deploying .north-actions button{font-size:12px!important;padding:10px 15px}
.north-overlay.is-centered,.north-overlay:has(.north-upgrades),.north-overlay:has(.north-result-stats){justify-content:center;background:#4a696254;backdrop-filter:blur(4px)}
.north-dialog{pointer-events:auto;width:min(380px,100%);max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a9b8a3 transparent;padding:34px;background:#f0f0e7f0;border:1px solid #fffffc8a;border-radius:1px;box-shadow:0 20px 75px #263f4228;color:var(--north-ink);backdrop-filter:blur(14px)}
.north-overlay.is-centered .north-dialog,.north-dialog:has(.north-upgrades),.north-dialog:has(.north-result-stats){width:min(560px,100%)}
.north-kicker{display:block;margin:0 0 19px;font-size:10px!important;font-weight:500;letter-spacing:.17em;text-transform:uppercase;color:#7d8979!important}
.north-dialog h3{font-family:Georgia,'Songti SC',SimSun,serif;font-size:34px;font-weight:400;line-height:1.32;letter-spacing:-.045em}
.north-dialog p{margin-top:16px;font-size:13px;line-height:1.8;color:#637268}
.north-dialog p.north-kicker{margin-top:0}
.north-dialog .north-small-note{font-size:10px;line-height:1.65;color:#7f8b78;margin-top:15px}
.north-difficulty{display:flex;gap:2px;margin-top:22px;padding:3px;border:1px solid #acb9a5;background:#dce2d3}
.north-difficulty button{flex:1;min-width:0;min-height:36px;padding:6px 10px;border:1px solid transparent;background:transparent;font-size:12px;color:#6f7e65}
.north-difficulty button[aria-pressed=true]{border-color:#a9b7a0;background:#f5f3e8;color:#344637}
.north-difficulty button:hover{color:#344637;background:#f6f4e996}
.north-dialog .north-divider{width:28px;height:1px;margin:22px 0;background:#b2bba8}
.north-dialog ul,.north-dialog ol{margin:18px 0;padding-left:21px;font-size:12px;line-height:1.85;color:#63715f}
.north-dialog li+li{margin-top:9px}
.north-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:25px}
.north-primary,.north-secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:45px;border:1px solid #334b43;padding:11px 19px;border-radius:0;font-size:12px!important;font-weight:500!important;letter-spacing:.025em;transition:background .16s,color .16s}
.north-primary{background:#334b43;color:#f6f3e8}
.north-primary:hover{background:#213d32}
.north-secondary{border-color:#aab7a0;background:transparent;color:#506547}
.north-secondary:hover{background:#dce4d1}
.north-result-stats{display:flex;flex-wrap:wrap;gap:24px;padding:19px 0;margin:20px 0 0;border-top:1px solid var(--north-line);border-bottom:1px solid var(--north-line)}
.north-result-stats>div{flex:1;min-width:70px}
.north-result-stats strong{display:block;font-size:27px;font-weight:400;line-height:1.3}
.north-result-stats span{display:block;margin-top:5px;font-size:11px;color:#798474}
.north-upgrades{display:grid;grid-template-columns:1fr;gap:8px;margin-top:20px}
.north-upgrade{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px;border:1px solid #b4c0ae;border-radius:0;background:#ffffff30;color:#455642;font-size:12px!important;text-align:left}
.north-upgrade:hover{background:#dfe6d5}
.north-upgrade strong{font-size:12px;font-weight:600}
.north-upgrade small,.north-upgrade span{font-size:11px}
.north-settlement .north-upgrade>strong{min-width:0}.north-settlement .north-upgrade small{display:block;margin-top:4px;font-weight:400;color:#7b8973}.north-settlement .north-upgrade>span{max-width:58%;text-align:right;line-height:1.5;overflow-wrap:anywhere}
.north-dialog .north-reward-note{margin-top:10px;font-size:11px;line-height:1.7;color:#76836d}.north-settlement>.north-kicker{margin-bottom:10px}
.north-campaign{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:23px 0 6px;padding:20px 0}
.north-campaign::before{content:'';position:absolute;left:7%;right:7%;top:43px;height:1px;border-top:1px dashed #9ba996}
.north-island-node{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;background:transparent;border:0;color:#8a9783;font-size:10px!important;text-align:center}
.north-island-node::before{content:'';width:40px;height:32px;background:#cbd3bd;clip-path:polygon(18% 12%,72% 0,100% 50%,73% 100%,16% 87%,0 48%);box-shadow:0 4px #839581}
.north-island-node.is-complete,.north-island-node.is-visited{color:#546e50}
.north-island-node.is-complete::before,.north-island-node.is-visited::before{background:#779172}
.north-island-node.is-current,.north-island-node.is-next,.north-island-node[aria-current]{color:#354d3e;font-weight:600}
.north-island-node.is-current::before,.north-island-node.is-next::before,.north-island-node[aria-current]::before{background:#d5b472}
.north-island-node strong{font-size:13px;font-weight:500}
.north-island-node>span{max-width:100%;line-height:1.5;overflow-wrap:anywhere}
.north-command{display:grid;grid-template-columns:minmax(410px,1.2fr) minmax(160px,.6fr) auto;align-items:center;gap:25px;padding:17px 23px;background:linear-gradient(180deg,#30444a,#293b43);border-top:1px solid #e0eee72c}
.north-squads{display:flex;gap:10px;align-self:stretch}
.north-squad{position:relative;display:flex;align-items:center;gap:13px;flex:1 1 0;min-width:0;min-height:92px;padding:9px 12px;color:#d7e0d8;border:1px solid #d9e6db20;border-bottom-color:#d9e6db35;background:#1c333b3d;border-radius:0;text-align:left;transition:border-color .16s,background .16s,transform .16s}
.north-squad:hover{background:#41575a;border-color:#c9d9ca68;transform:translateY(-2px)}
.north-squad.is-selected{border-color:#ece7c2;background:#4b6060;box-shadow:inset 0 -3px #e0d49f;color:#fffced}
.north-squad.is-dead{opacity:.36;filter:grayscale(1)}
.north-portrait{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:62px;flex:0 0 44px;padding-bottom:7px;background:var(--squad-color,var(--unit-color,#709ca1));color:#fbf9e9;clip-path:polygon(0 0,100% 0,100% 100%,50% 86%,0 100%);font-size:24px;line-height:1;box-shadow:inset 4px 0 #ffffff16,inset -4px 0 #00000013}
.north-portrait::before{content:'';position:absolute;top:5px;left:5px;right:5px;border-top:1px solid #ffffe778}
.north-portrait svg{width:28px;height:31px;fill:none;stroke:currentColor;stroke-width:1.55;filter:drop-shadow(0 2px #00000015)}
.north-squad-copy{display:block;min-width:0;flex:1;font-size:14px}
.north-squad-copy strong{display:block;font-size:14px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.north-squad-copy span,.north-squad-copy small{display:block;font-size:11px;line-height:1.55;white-space:nowrap;color:#b6c8c1}
.north-health{display:block;height:3px;background:#d6e3ce29;margin-top:7px;overflow:hidden}
.north-health i{display:block;height:100%;background:var(--squad-color,#8caf98);transition:width .2s}
.north-key{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:21px;padding:1px 5px;border:1px solid #9daa9566;color:#82927d;font:10px/1.3 var(--sans,sans-serif)}
.north-squad>.north-key{position:absolute;top:5px;right:5px;min-width:12px;height:13px;font-size:10px;border:0;padding:0;color:#b8c8c1}
.north-selection{border-left:1px solid #d9e6db29;padding-left:24px}
.north-selection strong{display:block;font-size:13px;font-weight:500;color:#e8ece1}
.north-selection p{font-size:11px;color:#abbeb4;margin-top:6px;line-height:1.65}
.north-orders{display:flex;gap:7px;align-items:center}
.north-orders button{min-height:41px;padding:9px 12px;font-size:11px!important;white-space:nowrap;color:#dbe5d2;border-color:#b9ceb348;background:#3550484d}
.north-orders button:hover{background:#72867644;border-color:#c0d1b67a}
#north-retreat{color:#c7c8bd}
.north-hint-row{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:39px;padding:9px 23px;background:#27383e;border-top:1px solid #dce8df15}
.north-hint-row p{font-size:11px;line-height:1.6;color:#9ab0a8}
#north-status{text-align:right;color:#cedbbd}
.north-controls-legend{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;padding-top:22px;font-size:11px;color:#82917e}
.north-controls-legend p{display:flex;gap:6px;align-items:center;flex-wrap:wrap;line-height:2}
.north-controls-legend .north-legend-divider{width:8px}
.north-controls-legend>span{padding-top:2px;font-size:10px;letter-spacing:.11em;white-space:nowrap}
.north-touch-hint{display:none!important}
.north-noscript{padding:24px;font-size:13px;line-height:1.8;border:1px solid var(--north-line);background:var(--north-paper)}
.north-game:fullscreen,.north-game.is-fullscreen{display:flex;flex-direction:column;width:100%;height:100dvh;max-height:none;border:0}
.north-game:fullscreen .north-viewport,.north-game.is-fullscreen .north-viewport{flex:1 1 auto;min-height:0;height:auto}
.north-game:fullscreen .north-hud,.north-game:fullscreen .north-command,.north-game:fullscreen .north-hint-row,.north-game.is-fullscreen .north-hud,.north-game.is-fullscreen .north-command,.north-game.is-fullscreen .north-hint-row{flex:0 0 auto}
.north-game.is-fullscreen{position:fixed;inset:0;z-index:100}
.north-fullscreen-active{overflow:hidden}
@media(max-width:1200px){
.north-command{grid-template-columns:minmax(380px,1fr) auto;gap:20px}.north-selection{display:none}.north-metrics{gap:22px}.north-metric:first-child{padding-right:22px}#north-music-label{max-width:85px}.north-squad{gap:10px;padding:9px 10px}.north-portrait{width:38px;flex-basis:38px}
}
@media(max-width:900px){
.north-command{grid-template-columns:1fr;padding:16px 20px;gap:13px}.north-orders{justify-content:center}.north-orders button{flex:1}.north-squad{min-height:89px}.north-metrics{gap:17px}.north-hud{padding:12px 18px;gap:12px}.north-music{margin-left:1px;padding-left:9px;gap:5px}#north-music-label{display:none}#north-volume{width:55px}.north-settings{gap:2px}.north-metric:first-child{padding-right:17px}
}
@media(max-width:760px){
#play{padding-top:62px;padding-bottom:63px}.north-heading{gap:25px;padding-bottom:29px}.north-introduction{max-width:250px}.north-introduction p{font-size:12px}.north-introduction span{font-size:9px}.north-metrics{gap:13px}.north-metric{min-width:45px}.north-metric:first-child{padding-right:13px}.north-metric>span{font-size:10px}.north-metric strong{font-size:15px}.north-icon-button{min-width:32px;height:36px;padding:5px 7px}.north-viewport{height:560px}.north-hint-row{padding:10px 20px}.north-controls-legend>span{display:none}.north-controls-legend{padding-top:17px}
}
@media(max-width:620px){
.north-hud{flex-wrap:wrap;gap:9px;padding:12px 15px 9px}.north-metrics{width:100%;justify-content:space-between;gap:12px}.north-settings{gap:8px;width:100%;justify-content:center;border-top:1px solid #dbe5df1c;padding-top:6px}.north-music{padding-left:12px;margin-left:3px}#north-volume{width:61px}.north-icon-button{min-width:36px;height:36px}
}
@media(max-width:560px){
#play{padding-top:56px;padding-bottom:55px}.north-heading{display:block;padding-bottom:26px}.north-heading .eyebrow{margin-bottom:20px;font-size:11px}.north-heading h2{font-size:40px}.north-subtitle{font-size:21px;margin-top:9px}.north-introduction{max-width:340px;margin-top:19px}.north-introduction p{font-size:12px}.north-introduction span{margin-top:13px;font-size:9px}
.north-game{margin-left:-8px;width:calc(100% + 16px)}.north-hud{padding:11px 14px 7px;gap:8px}.north-metric{min-width:42px}.north-metric>span{font-size:10px;letter-spacing:.06em}.north-metric strong{font-size:15px}.north-settings{gap:5px}.north-icon-button{min-width:34px;height:34px}.north-viewport{height:440px;min-height:360px}
.north-viewport-label{left:15px;top:17px;font-size:9px;letter-spacing:.10em}.north-view-tools{right:12px;bottom:12px;gap:2px;padding:2px}.north-view-tools .north-icon-button{min-width:33px;height:34px}.north-wave-dots{right:16px;top:23px;gap:5px}
.north-overlay{align-items:center;justify-content:center;padding:25px 15px 56px}.north-dialog{padding:23px;width:min(350px,100%)}.north-overlay.is-intro,.north-overlay:has(.north-intro){align-items:flex-end;padding:12px 15px 57px}.north-dialog.north-intro{padding:17px 19px}.north-dialog.north-intro .north-kicker{display:none}.north-dialog.north-intro h3{font-size:26px}.north-dialog.north-intro>p:not(.north-small-note){display:none}.north-dialog.north-intro .north-small-note{font-size:10px;line-height:1.5;margin-top:11px}
.north-dialog.north-intro .north-actions{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px;margin-top:14px}.north-dialog.north-intro .north-actions button{padding-left:8px;padding-right:8px;gap:6px}.north-difficulty{margin-top:16px}.north-difficulty button{min-height:34px;font-size:12px;padding:5px 6px}.north-kicker{font-size:10px!important;margin-bottom:15px}.north-dialog h3{font-size:29px}.north-dialog p{font-size:12px;margin-top:13px}.north-dialog ol,.north-dialog ul{font-size:12px;line-height:1.85}.north-actions{margin-top:20px;gap:8px}.north-primary,.north-secondary{min-height:44px;padding:10px 13px;font-size:12px!important}
.north-command{display:flex;flex-wrap:wrap;padding:13px 11px 12px;gap:12px}.north-squads{width:100%;gap:7px}.north-squad{flex-direction:column;justify-content:center;gap:5px;min-height:119px;padding:9px 6px 8px;text-align:center}.north-portrait{width:37px;flex-basis:50px;height:50px;padding-bottom:6px}.north-portrait svg{width:24px;height:27px}.north-squad-copy{width:100%}.north-squad-copy strong{font-size:13px}.north-squad-copy small{font-size:10px}.north-health{margin-top:5px;height:3px}.north-squad>.north-key{font-size:10px}.north-selection{display:none}.north-orders{width:100%;gap:6px}.north-orders button{min-height:43px;flex:1;padding:8px 5px;font-size:11px!important;white-space:normal}
.north-hint-row{display:block;padding:9px 13px;min-height:38px}.north-hint-row p{font-size:10px;line-height:1.65}#north-status{text-align:left;margin-top:3px}#north-status:empty{display:none}.north-controls-legend{font-size:11px;padding-top:16px}.north-controls-legend .north-desktop-hint{display:none}.north-controls-legend .north-touch-hint{display:block!important;line-height:1.8}
.north-result-stats{gap:12px}.north-result-stats strong{font-size:23px}.north-result-stats span{font-size:10px}.north-campaign{gap:5px;padding:13px 0}.north-campaign::before{top:32px}.north-island-node::before{width:28px;height:26px}.north-island-node{gap:6px;font-size:9px!important}.north-island-node strong{font-size:11px}
.north-settlement>.north-kicker{display:none}.north-dialog.north-settlement h3{font-size:25px;line-height:1.25}.north-dialog.north-settlement>p:first-of-type{font-size:11px;line-height:1.65;margin-top:10px}.north-settlement .north-result-stats{padding:13px 0;margin-top:14px;gap:9px}.north-settlement .north-result-stats>div{min-width:58px}.north-settlement .north-result-stats strong{font-size:21px}.north-settlement .north-upgrade{padding:10px;gap:8px}.north-settlement .north-upgrade strong{font-size:11px}.north-settlement .north-upgrade span,.north-settlement .north-upgrade small{font-size:10px}
.north-game:fullscreen,.north-game.is-fullscreen{margin:0}.north-game:fullscreen .north-hud,.north-game.is-fullscreen .north-hud{padding:7px 12px 5px;gap:5px}.north-game:fullscreen .north-command,.north-game.is-fullscreen .north-command{padding:8px 10px;gap:8px}.north-game:fullscreen .north-squad,.north-game.is-fullscreen .north-squad{min-height:93px;padding:7px 5px}.north-game:fullscreen .north-portrait,.north-game.is-fullscreen .north-portrait{flex-basis:36px;height:36px;width:30px}.north-game:fullscreen .north-portrait svg,.north-game.is-fullscreen .north-portrait svg{width:21px;height:23px}
}
@media(max-width:360px){
.north-metrics{gap:6px}.north-metric:first-child{padding-right:10px}.north-metric strong{font-size:14px}.north-settings{gap:3px}.north-icon-button{min-width:32px}.north-music{padding-left:7px;margin-left:1px}#north-volume{width:48px}.north-dialog{padding:20px}.north-dialog h3{font-size:27px}.north-dialog.north-intro{padding:15px}.north-dialog.north-intro h3{font-size:24px}.north-dialog.north-intro .north-actions{margin-top:12px}.north-dialog.north-intro .north-actions button{font-size:11px!important;padding-top:8px;padding-bottom:8px}.north-dialog.north-intro .north-small-note{margin-top:8px}.north-squad{padding:9px 4px 7px}.north-squad-copy strong{font-size:12px}.north-squad-copy small{font-size:10px}.north-orders button{font-size:10px!important}.north-dialog .north-small-note{font-size:10px}html[lang=en] .north-dialog.north-intro h3{font-size:22px;line-height:1.18}
}
@media(prefers-reduced-motion:reduce){.north-game *,.north-game *::before,.north-game *::after{transition:none!important;animation:none!important}}
@media(max-width:560px){
.north-overlay.is-deploying{align-items:flex-end;padding:12px 15px 57px}
.north-overlay.is-deploying .north-intro{width:100%;padding:13px 16px}
.north-overlay.is-deploying .north-intro h3{font-size:21px}
.north-overlay.is-deploying .north-intro .north-actions{margin-top:9px}
}
/* Ten commanders share a scrollable roster; keep cards large enough to read. */
.north-squads{min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#9daf97 #263b37;padding:3px 1px 11px;scroll-padding-inline:1px}
.north-squads::-webkit-scrollbar{height:6px}.north-squads::-webkit-scrollbar-track{background:#263b37}.north-squads::-webkit-scrollbar-thumb{background:#9daf97;border-radius:0}
.north-squad{flex:0 0 132px;min-width:132px;scroll-snap-align:start;padding:9px 8px;gap:9px}
.north-squad .north-portrait{flex-basis:33px;width:33px}.north-squad-copy small{font-size:10px}
@media(min-width:1321px){.north-command{grid-template-columns:minmax(0,1fr) auto;gap:23px}.north-selection{display:none}}
@media(min-width:901px) and (max-width:1320px){.north-command{grid-template-columns:minmax(0,1fr) auto}.north-selection{display:none}}
@media(max-width:560px){.north-squads{padding-bottom:10px;flex:1 1 100%;width:100%}.north-squad{flex-basis:calc((100% - 14px)/3);min-width:calc((100% - 14px)/3);padding:9px 6px 8px;gap:5px}.north-squad .north-portrait{flex-basis:50px;width:37px}.north-game:fullscreen .north-squad .north-portrait,.north-game.is-fullscreen .north-squad .north-portrait{flex-basis:36px;width:30px}}
@media(max-width:360px){.north-squad{padding:9px 4px 7px}}
/* Commander detail stays beside the flags on wide screens and below them on touch. */
.north-command{grid-template-columns:minmax(0,1fr) minmax(265px,340px);gap:9px 22px;padding:16px 23px 14px;align-items:stretch}
.north-squads{grid-column:1;grid-row:1 / 3}
.north-selection{display:block;grid-column:2;grid-row:1;min-width:0;padding:0;border:0;align-self:end}
.north-selection-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:20px}
.north-selection strong{font-size:13px;font-weight:500;line-height:1.55;color:#f0f0df;min-width:0;overflow-wrap:anywhere}
.north-selected-state{flex:0 0 auto;max-width:45%;padding:2px 7px;border:1px solid #c3d1ad4d;color:#d8e0b7;background:#d2dcb809;font-size:10px;line-height:1.4;text-align:center;white-space:normal}
.north-selected-state:empty{display:none}
.north-selected-state[data-state=braced],.north-selected-state[data-state=defending],.north-selected-state.is-defending{color:#e3ebc2;border-color:#bfce9299;background:#acc47816}
.north-selected-state[data-state=stunned],.north-selected-state[data-state=retreating],.north-selected-state.is-warning{color:#ecd0ad;border-color:#d4a57677;background:#ca966616}
.north-selection p{margin-top:4px;font-size:10px;line-height:1.6;color:#95aaa2}
#north-selected-role{font-size:11px;line-height:1.55;color:#c0cec0}
#north-selected-role:empty{display:none}
.north-orders{grid-column:2;grid-row:2;gap:6px;align-self:start}.north-orders button{flex:1;min-height:40px;padding:8px 7px;white-space:normal}
.north-battle-notice{position:absolute;z-index:3;left:25px;top:49px;max-width:min(350px,calc(100% - 50px));padding:10px 14px 10px 13px;background:#273e44de;border-left:2px solid #ddc591;box-shadow:0 5px 24px #24454a14;color:#eeeddc;pointer-events:none;backdrop-filter:blur(3px);animation:north-notice-in .22s ease-out}
.north-battle-notice[hidden]{display:none}.north-battle-notice strong{display:block;font:400 17px/1.45 Georgia,'Songti SC',SimSun,serif;letter-spacing:.015em}.north-battle-notice span{display:block;margin-top:3px;font-size:11px;line-height:1.6;color:#c0cfbe}.north-battle-notice span:empty{display:none}
.north-battle-notice[data-kind=danger],.north-battle-notice[data-kind=landing],.north-battle-notice[data-kind=loss]{border-left-color:#dfaa80}.north-battle-notice[data-kind=supply],.north-battle-notice[data-kind=clear],.north-battle-notice[data-kind=success]{border-left-color:#bdd69c}
.north-game[data-paused=true] .north-battle-notice,.north-game:has(.north-overlay:not([hidden]):not(.is-hidden)) .north-battle-notice{visibility:hidden}
#north-reset-view{margin-left:3px;border-left:1px solid #54776b3b}
@keyframes north-notice-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.north-command{grid-template-columns:minmax(0,1fr) minmax(250px,290px);gap:9px 16px}.north-selection strong{font-size:12px}.north-orders button{font-size:10px!important}}
@media(max-width:900px){.north-command{grid-template-columns:minmax(0,1fr);gap:10px;padding:14px 20px}.north-squads{grid-column:1;grid-row:1}.north-selection{grid-column:1;grid-row:2;padding-top:2px}.north-selection-heading{justify-content:flex-start;gap:12px}.north-selection p{display:inline;margin-right:14px}.north-selection p:empty{display:none}.north-orders{grid-column:1;grid-row:3}.north-orders button{min-height:41px;font-size:11px!important}}
@media(max-width:560px){.north-command{gap:9px;padding:11px}.north-squads{order:1}.north-selection{order:2;width:100%;padding:0 2px}.north-selection-heading{justify-content:space-between;gap:8px}.north-selection strong{font-size:12px;line-height:1.5}.north-selected-state{font-size:9px;padding:2px 6px}.north-selection p{display:block;margin:3px 0 0;font-size:10px;line-height:1.5}#north-selected-role{font-size:10px;line-height:1.5}.north-orders{order:3}.north-battle-notice{left:15px;top:40px;max-width:calc(100% - 70px);padding:8px 11px 8px 10px}.north-battle-notice strong{font-size:15px}.north-battle-notice span{font-size:10px;line-height:1.5}.north-view-tools .north-icon-button{min-width:31px}.north-view-tools{gap:1px}#north-reset-view{margin-left:2px}}
@media(max-width:560px){.north-game:fullscreen .north-selection,.north-game.is-fullscreen .north-selection{padding:0 1px}.north-game:fullscreen .north-selection p,.north-game.is-fullscreen .north-selection p{margin-top:2px;font-size:9px}.north-game:fullscreen #north-selected-role,.north-game.is-fullscreen #north-selected-role{font-size:10px}.north-game:fullscreen .north-selected-state,.north-game.is-fullscreen .north-selected-state{font-size:9px}.north-game:fullscreen .north-command,.north-game.is-fullscreen .north-command{gap:7px}}
@media(prefers-reduced-motion:reduce){.north-battle-notice{animation:none}}
@media(max-width:560px),(max-height:500px) and (orientation:landscape){
 .north-game:fullscreen .north-overlay.is-deploying,.north-game.is-fullscreen .north-overlay.is-deploying{padding:8px 12px 56px;align-items:flex-end}
 .north-game:fullscreen .north-overlay.is-deploying .north-intro,.north-game.is-fullscreen .north-overlay.is-deploying .north-intro{width:100%;padding:0;background:transparent;border:0;box-shadow:none;backdrop-filter:none;overflow:visible}
 .north-game:fullscreen .north-overlay.is-deploying .north-intro>h3,.north-game:fullscreen .north-overlay.is-deploying .north-intro>p,.north-game:fullscreen .north-overlay.is-deploying .north-intro>.north-kicker,.north-game.is-fullscreen .north-overlay.is-deploying .north-intro>h3,.north-game.is-fullscreen .north-overlay.is-deploying .north-intro>p,.north-game.is-fullscreen .north-overlay.is-deploying .north-intro>.north-kicker{display:none}
 .north-game:fullscreen .north-overlay.is-deploying .north-actions,.north-game.is-fullscreen .north-overlay.is-deploying .north-actions{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px;margin:0}
 .north-game:fullscreen .north-overlay.is-deploying .north-actions button,.north-game.is-fullscreen .north-overlay.is-deploying .north-actions button{min-height:42px;height:42px;padding:8px 10px;font-size:11px!important}
 .north-game:fullscreen .north-overlay.is-deploying .north-secondary,.north-game.is-fullscreen .north-overlay.is-deploying .north-secondary{background:#ecede0ef}
}
/* A short landscape screen needs a side command column to keep the island usable. */
@media(min-width:561px) and (max-height:500px) and (orientation:landscape){
 .north-game:is(:fullscreen,.is-fullscreen){display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:48px minmax(0,1fr) auto}
 .north-game:is(:fullscreen,.is-fullscreen) .north-hud{grid-column:1 / -1;grid-row:1;min-height:48px;height:48px;padding:5px 12px;gap:12px}
 .north-game:is(:fullscreen,.is-fullscreen) .north-metrics{gap:18px}.north-game:is(:fullscreen,.is-fullscreen) .north-metric>span{font-size:9px}.north-game:is(:fullscreen,.is-fullscreen) .north-metric strong{font-size:13px;padding-top:1px}
 .north-game:is(:fullscreen,.is-fullscreen) .north-viewport{grid-column:1;grid-row:2 / 4;min-height:0;height:auto;width:100%}
 .north-game:is(:fullscreen,.is-fullscreen) .north-command{grid-column:2;grid-row:2;display:flex;flex-direction:column;justify-content:flex-start;min-height:0;padding:9px 10px;gap:7px;border-top:0;border-left:1px solid #dce8df15;overflow:auto}
 .north-game:is(:fullscreen,.is-fullscreen) .north-squads{order:1;flex:0 0 auto;width:100%;min-height:0;gap:6px;padding:2px 0 7px;align-self:auto}
 .north-game:is(:fullscreen,.is-fullscreen) .north-squad{flex:0 0 calc((100% - 12px)/3);min-width:calc((100% - 12px)/3);flex-direction:column;justify-content:center;min-height:90px;padding:6px 3px;gap:4px;text-align:center}
 .north-game:is(:fullscreen,.is-fullscreen) .north-squad .north-portrait{width:27px;flex-basis:34px;height:34px;padding-bottom:4px}.north-game:is(:fullscreen,.is-fullscreen) .north-portrait svg{width:20px;height:22px}
 .north-game:is(:fullscreen,.is-fullscreen) .north-squad-copy{width:100%;flex:0 0 auto}.north-game:is(:fullscreen,.is-fullscreen) .north-squad-copy strong{font-size:11px}.north-game:is(:fullscreen,.is-fullscreen) .north-squad-copy small{font-size:9px}.north-game:is(:fullscreen,.is-fullscreen) .north-health{margin-top:4px}
 .north-game:is(:fullscreen,.is-fullscreen) .north-selection{order:2;width:100%;padding:0;align-self:auto}.north-game:is(:fullscreen,.is-fullscreen) .north-selection-heading{justify-content:space-between;gap:6px}.north-game:is(:fullscreen,.is-fullscreen) .north-selection strong{font-size:11px}.north-game:is(:fullscreen,.is-fullscreen) .north-selected-state{font-size:9px;padding:2px 5px}
 .north-game:is(:fullscreen,.is-fullscreen) .north-selection p{display:block;margin:3px 0 0;font-size:9px;line-height:1.5}.north-game:is(:fullscreen,.is-fullscreen) #north-selected-role{font-size:10px;line-height:1.5}
 .north-game:is(:fullscreen,.is-fullscreen) .north-orders{order:3;width:100%;gap:5px;margin-top:2px}.north-game:is(:fullscreen,.is-fullscreen) .north-orders button{padding:7px 3px;min-height:38px;font-size:10px!important}
 .north-game:is(:fullscreen,.is-fullscreen) .north-support-bar{grid-column:2;grid-row:3;padding:8px 10px;gap:8px;align-items:center;border-left:1px solid #dce8df15}.north-game:is(:fullscreen,.is-fullscreen) .north-support-copy{display:block}.north-game:is(:fullscreen,.is-fullscreen) .north-support-copy strong{font-size:10px}.north-game:is(:fullscreen,.is-fullscreen) .north-support-note{display:block;font-size:9px;line-height:1.4;margin-top:3px}.north-game:is(:fullscreen,.is-fullscreen) .north-roster-scroll{font-size:9px;line-height:1.4;margin-top:2px}
 .north-game:is(:fullscreen,.is-fullscreen) .north-recruit-toggle{min-height:38px;padding:7px 9px;gap:4px;font-size:10px!important}.north-game:is(:fullscreen,.is-fullscreen) .north-recruit-toggle kbd{display:none}
 .north-game:is(:fullscreen,.is-fullscreen) .north-hint-row{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 .north-game:is(:fullscreen,.is-fullscreen) .north-overlay.is-deploying .north-intro{width:min(320px,100%)}
 .north-game:is(:fullscreen,.is-fullscreen) .north-battle-notice{left:15px;top:42px;max-width:min(300px,calc(100% - 30px));padding:8px 11px}.north-game:is(:fullscreen,.is-fullscreen) .north-battle-notice strong{font-size:15px}.north-game:is(:fullscreen,.is-fullscreen) .north-battle-notice span{font-size:10px}
}

