/* Field edition: quiet surfaces, one clear action, comfortable reading. */
.gameShell{--hud-height:64px;color-scheme:dark;letter-spacing:0;font-weight:400}
.gameShell :is(button,a,summary){-webkit-tap-highlight-color:transparent}.gameShell button{font-weight:550}.gameShell :is(button,a,summary,input,select,textarea):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.gameShell :is(dialog,#commandDock,#fieldSelection) :is(p,li){line-height:1.65}.gameShell :is(dialog,#commandDock,#fieldSelection) button{border-radius:12px;box-shadow:none;font-size:14px;line-height:1.4;min-height:46px}.gameShell button:disabled{opacity:.65}.gameShell dialog::backdrop{background:var(--ui-overlay);backdrop-filter:blur(4px)}
.gameShell :is(dialog,#commandDock) :is(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){background:var(--ui-input);border:1px solid var(--ui-edge);color:var(--ui-text);border-radius:12px;min-height:50px;font-size:16px;padding:13px 14px;line-height:1.45;box-shadow:none}.gameShell :is(dialog,#commandDock) label{font-size:14px;color:var(--ui-muted);font-weight:500}
/* Map furniture stays out of the terrain. */
.gameShell .topbar{left:14px;right:14px;width:auto;max-width:520px;padding:0;min-height:64px;display:flex;gap:0;background:var(--ui-hud);border:1px solid var(--ui-border);border-radius:16px;box-shadow:0 6px 24px #0002;backdrop-filter:blur(14px)}
.gameShell .topbar .nationIdentity,.gameShell .topbar .resources>button{background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;min-height:62px;padding:10px 12px}.gameShell .nationIdentity{max-width:none;flex:1;gap:10px}.gameShell .nationIdentity b{font-size:14px;font-weight:650}.gameShell #nationName{max-width:none}.gameShell .nationIdentity small{font-size:11px;color:var(--ui-muted);margin-top:2px}.gameShell #nationRankMark .rank-insignia{width:24px;min-width:24px;height:34px;min-height:34px}.gameShell .resources{flex-shrink:0;border-left:1px solid var(--ui-border);margin:10px 0}.gameShell .topbar .resources>button{min-height:42px;padding:0 12px;gap:12px}.gameShell .resources b{font-size:14px;font-weight:600}.gameShell .resources small{font-size:10px}
.gameShell button.missionChip{top:calc(var(--hud-top) + 76px);left:14px;width:calc(100% - 84px);max-width:360px;min-height:64px;padding:12px 14px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-hud);box-shadow:0 4px 16px #0002;gap:10px}.gameShell .missionIcon{border:0;background:var(--ui-selected);border-radius:8px;width:28px;min-width:28px;height:30px;color:var(--ui-accent)}.gameShell #orderTitle{font-size:14px;line-height:1.4;font-weight:600}.gameShell #orderStep{font-size:11px;line-height:1.5}.gameShell button.missionChip:after{height:2px;opacity:.65}.gameShell .maptools{top:calc(var(--hud-top) + 76px);right:14px;left:auto;gap:10px}.gameShell .maptools :is(#activityOpen,#intelOpen,#chatOpen){background:var(--ui-hud);border:1px solid var(--ui-border);box-shadow:0 4px 12px #0002;width:46px;min-width:46px;height:46px;padding:12px;border-radius:50%}.gameShell #activityOpen .updatesCount{background:var(--ui-accent);border-color:var(--ui-bg);color:var(--ui-ink)}.gameShell .toolCount{background:var(--ui-accent);color:var(--ui-ink);border:2px solid var(--ui-bg);font-weight:650;height:20px;min-width:20px}
.gameShell nav.bottomNav{background:var(--ui-hud);border:1px solid var(--ui-border);backdrop-filter:blur(14px);border-radius:18px;min-height:72px;padding:6px;box-shadow:0 8px 28px #0003;gap:4px}.gameShell .bottomNav button{min-height:58px;font-size:12px;color:var(--ui-muted);border-radius:12px;gap:6px}.gameShell .bottomNav button.active{background:var(--ui-selected);color:var(--ui-text)}.gameShell .bottomNav button.active:after{display:none}.gameShell .bottomNav svg{width:22px;height:22px}.gameShell #quickForces{background:var(--ui-hud);border-color:var(--ui-border);border-radius:30px;box-shadow:0 4px 16px #0002}.gameShell #quickToggle{font-size:13px;padding:12px 16px;min-height:46px}.gameShell #quickSummary{font-weight:500}.gameShell .vignette{background:linear-gradient(#0b22261a,transparent 24%,transparent 80%,#0c24282b)}
/* Menus share a simple page header and flat, legible rows. */
.gameShell #panel{background:var(--ui-panel);padding:0 24px 32px;border:1px solid var(--ui-border);border-radius:20px;scrollbar-color:var(--ui-border) transparent}.gameShell #panel .panelhead{background:var(--ui-panel);border-bottom:1px solid var(--ui-border);padding:18px 20px;margin:0 -24px 24px;gap:12px}.gameShell #panel .panelhead h2{font-size:26px;letter-spacing:-.035em;font-weight:600}.gameShell #panel .panelhead>button{background:transparent;border:0;border-radius:50%;padding:11px}.gameShell #panel .panelhead>button:hover{background:var(--ui-surface)}.gameShell #panelContent{font-size:calc(15px * var(--reading-scale,1))}.gameShell #panelContent :is(p,.panelIntro){font-size:calc(15px * var(--reading-scale,1));line-height:1.65;color:var(--ui-muted)}.gameShell #panelContent :is(h3,.sectionHeading){color:var(--ui-text);letter-spacing:-.02em}.gameShell #panelContent .sectionHeading{font-size:17px;margin:28px 0 14px}
.gameShell #panelContent>details,.gameShell #panelContent .learningTopics>details{border:0;border-bottom:1px solid var(--ui-border);border-radius:0;padding:0;margin:0}.gameShell #panelContent summary{font-size:15px;min-height:54px;padding:16px 0;font-weight:550}.gameShell #panelContent summary:after{font-size:19px;color:var(--ui-dim)}.gameShell #panelContent :is(.card,.lifeCard,.theatreCard,.advancedCard,.allianceCard){padding:22px 0;border-bottom-color:var(--ui-border)}.gameShell #panelContent :is(.card,.lifeCard,.advancedCard,.theatreCard) h3{font-size:18px;line-height:1.4}.gameShell #panelContent .chips{gap:10px;margin:14px 0}.gameShell #panelContent .chips span{border-radius:5px;background:var(--ui-surface);color:var(--ui-muted);padding:5px 7px;font-size:12px}.gameShell #panelContent .empty{border-left:2px solid var(--ui-accent);background:var(--ui-surface);border-radius:0}
/* Command: one recommendation, useful destinations, then the directory. */
.gameShell #panelContent .commanderProfile{padding:0 0 20px;border:0;border-bottom:1px solid var(--ui-border);gap:12px}.gameShell .commanderProfile>.rank-insignia{width:30px;min-width:30px;height:44px}.gameShell .commanderIdentity>b{font-size:18px;font-weight:600}.gameShell .commanderIdentity>span{font-size:14px;color:var(--ui-muted)}.gameShell .commanderIdentity>small{font-size:12px}.gameShell .careerMeter{height:3px;margin:5px 0 2px;background:var(--ui-border)}.gameShell .commandPriorities{margin:20px 0;gap:0}.gameShell #panelContent .commandPriority.priority-0{background:var(--ui-surface);border:1px solid var(--ui-edge);border-radius:14px;padding:18px;gap:12px}.gameShell .commandPriority .priorityIndex{font-size:22px;width:24px;flex:0 0 24px}.gameShell .commandPriority b{font-size:18px}.gameShell .commandPriority small{font-size:14px;line-height:1.6}.gameShell .commandPriority strong{font-size:14px;margin-top:5px}.gameShell #panelContent .commandShortcuts{margin:18px 0 24px;gap:8px}.gameShell #panelContent .commandShortcuts button{min-height:72px;background:var(--ui-surface);border:0;border-radius:12px;flex-direction:column;gap:8px;font-size:13px;padding:12px 6px}.gameShell #panelContent .commandSearch{margin:24px 0 12px}.gameShell #panelContent .commandSearch input{background:var(--ui-input);min-height:50px;font-size:15px;border-color:var(--ui-edge);border-radius:12px}.gameShell #panelContent .commandCategoryTiles{grid-template-columns:1fr;border-top:0}.gameShell #panelContent .commandCategoryTiles>button{min-height:74px;border-bottom-color:var(--ui-border);padding:16px 0}.gameShell #panelContent .commandCategoryTiles b{font-size:16px;font-weight:550}.gameShell #panelContent .commandCategoryTiles small{font-size:13px;line-height:1.5;margin-top:3px}.gameShell #panelContent .commandRow{min-height:72px;border-bottom-color:var(--ui-border)}.gameShell .directoryHint{display:none}.gameShell #panelContent .guidedDirectory>summary{font-size:16px}.gameShell #panelContent .guidedDirectory{border-top:1px solid var(--ui-border)}.gameShell #panelContent .commandCareerDetails{padding:0;border:0;border-bottom:1px solid var(--ui-border);border-radius:0}
.gameShell .nextCommandCard{background:var(--ui-surface);border:1px solid var(--ui-edge);border-radius:16px;padding:22px;gap:12px}.gameShell .nextCommandCard .guideCount{color:var(--ui-muted);font-size:12px}.gameShell .nextCommandCard h3{font-size:26px!important;line-height:1.25!important;margin:0!important}.gameShell .nextCommandCard p{color:var(--ui-text)!important;font-size:15px!important;line-height:1.65!important}.gameShell .nextCommandCard small{color:var(--ui-muted);font-size:12px}.gameShell .nextCommandCard .primary{font-size:15px;min-height:50px;border-radius:12px}.gameShell .firstCommand ol li{border-bottom-color:var(--ui-border)}.gameShell .firstCommandProgress{background:transparent}.gameShell .firstStepNumber{background:var(--ui-surface);color:var(--ui-accent)}
/* Signup asks for the three decisions needed to begin. */
.gameShell #welcome{width:470px;max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid var(--ui-border);border-radius:20px;background:var(--ui-panel);text-align:left;overflow:auto;scrollbar-width:thin}.gameShell #joinForm{display:block}.gameShell #welcome .brand{display:flex;align-items:center;justify-content:flex-start;gap:8px;font-size:14px;line-height:1.3;margin:0 0 22px;height:20px;color:var(--ui-accent);letter-spacing:0}.gameShell #welcome .brand b{font-size:13px;font-weight:650;letter-spacing:.04em}.gameShell #welcome .brand span{display:none}.gameShell #welcome h2{font-size:34px;line-height:1.15;font-weight:600;letter-spacing:-.045em;margin:0 0 10px}.gameShell #welcome #welcomeIntro{font-size:15px;line-height:1.6;color:var(--ui-muted);margin:0 0 24px;max-width:31ch}.gameShell #welcome label{display:block;margin:18px 0 8px;font-size:14px;color:var(--ui-muted)}.gameShell #welcome :is(input,select){margin:0;min-height:50px;background:var(--ui-input);border:1px solid var(--ui-edge);border-radius:12px;padding:12px 14px;width:100%;font-size:16px;color:var(--ui-text)}.gameShell #flagChoices{display:block;margin:0}.gameShell #joinCareerPreview{margin:18px 0 0}.gameShell .joinStartingRank{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--ui-border)}.gameShell .joinStartingRank>.rank-insignia{width:24px;height:34px;min-width:24px}.gameShell .joinStartingRank>span{display:grid;gap:4px}.gameShell .joinStartingRank b{font-size:14px;font-weight:600}.gameShell .joinStartingRank small{font-size:12px;line-height:1.4;color:var(--ui-muted)}.gameShell #welcome .joinProtection{font-size:12px;color:var(--ui-muted);margin:12px 0}.gameShell #welcome .joinOptions{margin:0 0 18px;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;padding:0}.gameShell #welcome .joinOptions>summary{display:flex;align-items:center;min-height:44px;font-size:13px;color:var(--ui-muted);list-style:none;cursor:pointer;gap:12px}.gameShell #welcome .joinOptions>summary:after{content:'⌄';margin-left:auto;font-size:17px}.gameShell #welcome .joinOptions[open]>summary:after{content:'⌃'}.gameShell #joinBonusPreview{padding:12px 0}.gameShell #joinBonusPreview h3{font-size:15px}.gameShell #joinBonusPreview p{font-size:13px}.gameShell #welcome #joinButton{width:100%;font-size:16px;min-height:52px;border-radius:12px;padding:14px;margin:0}.gameShell #welcome .practice{display:block;margin:12px 0 0;text-align:center;padding:10px;min-height:44px;font-size:13px;color:var(--ui-muted);border:0;background:transparent}.gameShell #joinError{font-size:14px;color:var(--ui-danger);margin:12px 0}
/* A compact review keeps the decision and its consequences together. */
.gameShell #commandDock{width:390px;max-width:calc(100% - 28px);max-height:calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom));bottom:calc(96px + env(safe-area-inset-bottom));padding:18px 18px 0;border-radius:18px;background:var(--ui-panel);border:1px solid var(--ui-border);box-shadow:0 12px 38px #0003;scroll-padding-top:16px}.gameShell #commandDock .dockhead{margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid var(--ui-border);gap:10px}.gameShell #commandDock #sectorIcon{display:none}.gameShell #commandDock #sectorName{font-size:18px;line-height:1.3;letter-spacing:-.025em;white-space:normal;overflow-wrap:anywhere}.gameShell #commandDock #sectorOwner{font-size:12px;color:var(--ui-muted);margin-top:4px}.gameShell #commandDock #closeDock{background:transparent;border:0;width:40px;min-width:40px;min-height:40px;height:40px;padding:10px;border-radius:50%}.gameShell .dockTroopControls{gap:8px;margin:0 0 16px}.gameShell #chooseArmy{background:var(--ui-surface);border:0;border-radius:10px;font-size:13px;text-align:left}.gameShell #groupAtTarget{background:transparent;border-color:var(--ui-edge);border-radius:10px;font-size:13px;padding:10px 12px}.gameShell .battleBrief{padding:0;margin:0}.gameShell .battleBriefTitle{display:flex;gap:9px;align-items:center}.gameShell .battleBriefTitle h3{font-size:17px;line-height:1.35;letter-spacing:-.02em;margin:0;flex:1;color:var(--ui-text)}.gameShell .battleBriefTitle>span:last-child{font-size:13px;color:var(--ui-muted);white-space:nowrap}.gameShell .briefStatus{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;background:var(--ui-selected);color:var(--ui-accent);border-radius:50%;font-size:16px;font-weight:600}.gameShell .battleBrief[data-risk=danger] .briefStatus,.gameShell .battleBrief[data-risk=unknown] .briefStatus{background:var(--ui-surface);color:var(--ui-warning)}.gameShell .battleBriefAdvice{font-size:14px;line-height:1.6;color:var(--ui-muted);margin:12px 0}.gameShell .battleBriefOutcome{display:flex;gap:14px;justify-content:space-between;align-items:center;margin:14px 0;padding:12px 0;border-top:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border);font-size:13px;color:var(--ui-muted)}.gameShell .battleBriefOutcome b{font-size:18px;font-weight:600;color:var(--ui-text)}.gameShell #commandDock :is(.forecastDetails,#dockPlanOptions,#dockMore){margin:0;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:transparent;padding:0}.gameShell #commandDock :is(.forecastDetails,#dockPlanOptions,#dockMore)>summary{min-height:46px;font-size:13px;color:var(--ui-muted);padding:12px 0;list-style:none;cursor:pointer;display:flex;align-items:center}.gameShell #commandDock :is(.forecastDetails,#dockPlanOptions,#dockMore)>summary:after{content:'+';margin-left:auto;color:var(--ui-dim);font-size:18px}.gameShell #commandDock :is(.forecastDetails,#dockPlanOptions,#dockMore)[open]>summary:after{content:'−'}.gameShell #commandDock .forecastDetails :is(p,li){font-size:13px;color:var(--ui-muted)}.gameShell .forecastPower{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0}.gameShell .forecastPower>div{display:grid;gap:6px}.gameShell .forecastPower dt{font-size:12px;color:var(--ui-muted)}.gameShell .forecastPower dd{margin:0;font-size:22px;font-weight:600}.gameShell #commandDock .orderrow{position:sticky;bottom:0;display:flex;gap:8px;background:var(--ui-panel);padding:14px 0 18px;margin:0;z-index:4;border-top:0}.gameShell #commandDock .orderrow button{font-size:15px;min-height:50px;border-radius:12px}.gameShell #commandDock .orderrow #march{flex:1}.gameShell #commandDock #armyHint{font-size:12px;margin:0;padding:0 0 16px;line-height:1.5}.gameShell #commandDock:has(#march:not(:disabled)) #armyHint{display:none}.gameShell .tacticChoices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.gameShell #battleTactics .tacticsHeading{display:none}.gameShell #battleTactics{padding:8px 0 16px}.gameShell #battleTactics button{background:var(--ui-surface);border:1px solid transparent;border-radius:10px;min-height:60px}.gameShell #battleTactics button[aria-pressed=true]{background:var(--ui-selected);border-color:var(--ui-edge)}.gameShell .tacticSummary{font-size:12px;color:var(--ui-muted);display:block;padding:12px 0 0}.gameShell #commandDock .tacticalNotes p{font-size:13px}
/* Formation, research and inbox screens follow the same rhythm. */
.gameShell #fieldSelection{background:var(--ui-panel);border-color:var(--ui-border);border-radius:18px;box-shadow:0 8px 32px #0003;padding:18px;bottom:calc(96px + env(safe-area-inset-bottom));max-height:calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.gameShell #fieldUnit{font-size:17px;line-height:1.4}.gameShell #fieldInstruction{font-size:12px;color:var(--ui-muted);line-height:1.5}.gameShell .unitSheetHead img{width:58px;height:48px;flex-basis:58px}.gameShell .unitSheetMeters{gap:18px}.gameShell .unitSheetMeters b{font-size:18px;font-weight:600}.gameShell .unitSheetGuidance{font-size:14px;color:var(--ui-muted)}.gameShell #fieldPrimary{min-height:50px;border-radius:12px;font-size:15px}.gameShell .fieldActions button{background:transparent;border-color:var(--ui-border)}.gameShell #fieldCancel{border:0;background:transparent;border-radius:50%}.gameShell #panelContent .researchTrack{border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:transparent;margin:0;padding:0}.gameShell #panelContent .researchTrack>summary{padding:20px 0;min-height:80px}.gameShell .researchSymbol{background:var(--ui-surface);border:0;border-radius:12px;width:40px;min-width:40px;height:40px}.gameShell #panelContent .researchIdentity b{font-size:16px}.gameShell #panelContent .researchIdentity small{font-size:13px;line-height:1.5}.gameShell .researchLevel{color:var(--ui-text);font-size:18px}.gameShell .researchLevel small{color:var(--ui-muted)}.gameShell .recruitFilters,.gameShell .forceTabs{background:var(--ui-input);border:0;border-radius:12px;padding:4px;gap:4px}.gameShell :is(.recruitFilters,.forceTabs) button{background:transparent;border:0;color:var(--ui-muted);border-radius:9px;min-height:42px}.gameShell :is(.recruitFilters,.forceTabs) button[aria-pressed=true]{background:var(--ui-surface);color:var(--ui-text)}.gameShell #panelContent .forceUnitRow{border:0;border-bottom:1px solid var(--ui-border);border-radius:0;padding:0;margin:0}.gameShell #panelContent .forceUnitRow>summary{padding:18px 0;min-height:88px}.gameShell .forceUnitArt{width:58px;min-width:58px}.gameShell .forceUnitIdentity b{font-size:16px;line-height:1.4}.gameShell .forceUnitIdentity small{font-size:13px;line-height:1.6}.gameShell .forceUnitStrength{font-size:14px}.gameShell .inboxEntry header{align-items:center}.gameShell .inboxEntry b{font-size:16px;font-weight:550}.gameShell .inboxEntry p{font-size:14px!important;margin:8px 0 12px}.gameShell .inboxEntry button{background:transparent;border-color:var(--ui-border)}.gameShell .noticeBanner{background:var(--ui-panel);border-color:var(--ui-border);border-radius:16px;box-shadow:0 12px 32px #0003}.gameShell .noticeBanner[data-urgent=true]{background:var(--ui-surface);border-color:var(--ui-warning)}.gameShell .noticeBanner button{border-radius:10px}.gameShell .baseIdentity{background:var(--ui-hud);border-color:var(--ui-border);border-radius:12px}
@media(max-width:600px){.gameShell #panel{width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border:0;border-radius:0;padding:0 22px calc(28px + env(safe-area-inset-bottom))}.gameShell #panel .panelhead{margin:0 -22px 24px;padding:calc(14px + env(safe-area-inset-top)) 18px 14px}.gameShell #welcome{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom))}.gameShell #welcome .brand{margin-bottom:18px}.gameShell #welcome #welcomeIntro{margin-bottom:20px}.gameShell #commandDock,.gameShell #fieldSelection{left:14px;right:14px;transform:none;width:auto;max-width:none}.gameShell #panelContent .commandCategoryTiles{grid-template-columns:1fr}}
@media(max-width:350px){.gameShell .topbar{left:12px;right:12px}.gameShell .topbar .nationIdentity{padding:10px 9px;gap:7px}.gameShell .topbar .resources>button{padding:0 9px;gap:9px}.gameShell .resources b{font-size:12px}.gameShell .nationIdentity b{font-size:13px}.gameShell #nationRankMark .rank-insignia{width:21px;min-width:21px}.gameShell button.missionChip{left:12px;width:calc(100% - 84px);padding:10px 12px}.gameShell .missionIcon{display:none}.gameShell #panel{padding-left:18px;padding-right:18px}.gameShell #panel .panelhead{margin-left:-18px;margin-right:-18px}.gameShell .nextCommandCard{padding:18px}.gameShell .nextCommandCard h3{font-size:23px!important}.gameShell #welcome{padding-left:22px;padding-right:22px}.gameShell #welcome h2{font-size:31px}.gameShell #commandDock{padding-left:16px;padding-right:16px}.gameShell .battleBriefTitle h3{font-size:16px}}
@media(min-width:760px){.gameShell .topbar{right:auto;width:480px}.gameShell .maptools{left:14px;right:auto;top:calc(var(--hud-top) + 154px);flex-direction:row}.gameShell #commandDock{left:14px;right:auto;transform:none;bottom:100px}.gameShell #fieldSelection{left:14px;right:auto;transform:none;max-width:390px}.gameShell button.missionChip{width:360px}}
@media(max-height:450px) and (min-width:600px){.gameShell #commandDock,.gameShell #fieldSelection{max-height:calc(100dvh - 32px);top:16px;bottom:auto;left:auto;right:16px;width:370px}.gameShell nav.bottomNav{left:14px;right:auto;transform:none;width:360px!important}.gameShell #welcome{max-height:100dvh;margin:0 auto}.gameShell button.missionChip{max-width:270px;width:270px}.gameShell .maptools{top:172px;left:14px;right:auto;flex-direction:row}}
@media(prefers-reduced-motion:reduce){.gameShell :is(button,dialog,.missionChip,.noticeBanner){animation:none!important;transition:none!important}}

.gameShell #forecastDetailContent{padding:0 0 16px}.gameShell #forecastDetailContent :is(p,li){font-size:13px;color:var(--ui-muted)}.gameShell #returnBriefing{padding:26px 24px;border:1px solid var(--ui-border);border-radius:20px;background:var(--ui-panel);width:440px;max-width:calc(100% - 28px)}.gameShell #returnTitle{font-size:28px;line-height:1.2;margin:0 0 12px;letter-spacing:-.035em}.gameShell #returnContent>p{font-size:13px;color:var(--ui-muted);margin:0 0 24px}.gameShell #returnContent .briefingNext{padding:0 0 24px;margin:0;border:0;background:transparent}.gameShell #returnContent .briefingNext h3{font-size:22px;line-height:1.35;margin:0 0 18px}.gameShell #returnAction{min-height:50px;width:100%;font-size:15px}.gameShell #returnContent .briefingDetails{border:0;border-top:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border);border-radius:0;padding:0;margin:0}.gameShell #returnContent .briefingDetails>summary{display:flex;align-items:center;min-height:50px;padding:12px 0;font-size:14px;color:var(--ui-muted)}.gameShell #returnContent .briefingDetails :is(p,li){font-size:14px}.gameShell #returnContent .briefingWork{margin:16px 0;padding-left:20px}.gameShell #returnDismiss{width:100%;min-height:46px;background:transparent;border:0;margin:14px 0 0;color:var(--ui-muted)}.gameShell #closeBriefing{border:0;background:transparent;width:40px;height:40px;min-height:40px;padding:10px;top:16px;right:14px}.gameShell #returnContent .briefingSignal{padding:16px 0;border-top:1px solid var(--ui-border)}.gameShell #returnContent .briefingSignal h3{font-size:17px}.gameShell #returnContent .briefingGains{margin:18px 0}.gameShell #returnContent .briefingGains b{font-size:18px}
.gameShell #commandDock .dockhead{position:sticky;top:0;z-index:6;background:var(--ui-panel)}.gameShell #fieldSelection .fieldHeader{position:sticky;top:0;z-index:5;background:var(--ui-panel);padding-bottom:8px}.gameShell nav.bottomNav button>span,.gameShell nav.bottomNav #commandMenu>span{font-size:12px}.gameShell #commandDock #chooseArmy{margin:0;min-height:46px}.gameShell #commandDock .dockTroopControls{margin-bottom:14px}.gameShell #welcome .joinOptions>summary{background:transparent}.gameShell #panelContent .learningEntry{background:transparent;border:0;color:var(--ui-muted);padding:14px 0;border-bottom:1px solid var(--ui-border);border-radius:0}.gameShell #commandDock .battleBriefOutcome{margin:10px 0;padding:10px 0}.gameShell #commandDock .battleBriefAdvice{margin:10px 0}.gameShell #commandDock #march{font-size:15px}.gameShell .topbar .resources b{font-size:14px}
.gameShell #commandDock #battleTactics .tacticChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gameShell #commandDock #battleTactics .tacticChoices button{min-width:0;min-height:58px;padding:11px 10px}.gameShell #commandDock #battleTactics .tacticChoices button b{font-size:14px;line-height:1.4}.gameShell #commandDock #battleTactics .tacticChoices button small{font-size:12px;line-height:1.4}.gameShell #commandDock #battleTactics .tacticChoices button[aria-pressed=true]{color:var(--ui-text);background:var(--ui-selected);border-color:var(--ui-edge)}
.gameShell #panelContent .commandSearch input{padding-left:44px}.gameShell #panelContent .completeDirectory{border-top:0;padding-top:0}.gameShell #panelContent .completeDirectory>summary{display:none}.gameShell #panelContent .commandShortcuts button{min-height:62px;padding:10px 6px;gap:6px}.gameShell #panelContent .commanderProfile{padding-bottom:16px}.gameShell .commanderIdentity>small{line-height:1.4}
@media(max-height:450px) and (min-width:600px){.gameShell .topbar{width:calc(100% - 420px);max-width:360px}.gameShell button.missionChip{width:calc(100% - 420px);max-width:270px}.gameShell .topbar .resources>button{padding-left:8px;padding-right:8px;gap:8px}}
@media(max-height:450px) and (min-width:600px) and (max-width:759px){.gameShell:has(#commandDock:not([hidden])) .bottomNav{display:none}.gameShell:has(#commandDock:not([hidden])) .topbar{display:none}}

/* Troop selection keeps the battlefield open; readiness is an explicit disclosure. */
.gameShell #fieldSelection{padding:10px 12px;border-radius:15px}
.gameShell #fieldSelection .fieldHeader{position:sticky;top:0;padding:0;margin:0;gap:8px;min-height:48px}
.gameShell #fieldSelection .fieldSummary{min-width:0}
.gameShell #fieldSelection #fieldUnit{font-size:14px;line-height:1.4}
.gameShell #fieldSelection #fieldInstruction{font-size:12px;line-height:1.4;margin-top:3px}
.gameShell #fieldSelection #fieldMore{flex:0 0 auto;min-height:44px;padding:8px 10px;background:transparent;border:1px solid var(--ui-border);font-size:12px}
.gameShell #fieldSelection #fieldCancel{flex:0 0 36px;width:36px;min-width:36px;min-height:44px}
.gameShell #fieldDetails{padding-top:16px;margin-top:12px;border-top:1px solid var(--ui-border)}
.gameShell #fieldDetails[hidden]{display:none!important}
@media(max-height:450px) and (min-width:600px){.gameShell #fieldSelection{top:auto;bottom:16px;max-height:calc(100dvh - 32px)}}

/* Shared field components: visual rules live here; feature files own layout only. */
.gameShell{font-family:var(--brand-font);font-variant-numeric:tabular-nums}
.gameShell :is(#welcome,#loading) .brand.frontlineLockup{justify-content:flex-start;gap:12px;color:var(--ui-text);font-size:inherit}
.gameShell :is(#welcome,#loading) .brand.frontlineLockup>span{font-size:inherit;letter-spacing:0;color:inherit}
.gameShell #loading .brand.frontlineLockup{justify-content:center}
.gameShell .brand.frontlineLockup b{font-family:var(--brand-font);font-size:20px;font-weight:750;letter-spacing:.1em}
.gameShell .brand.frontlineLockup small{font-size:11px;letter-spacing:.18em;color:var(--ui-muted)}
.gameShell :is(dialog,#commandDock,#fieldSelection) button{border-radius:var(--ui-radius);font-weight:550}
.gameShell :is(dialog,#commandDock) :is(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){border-color:var(--ui-edge)}
.gameShell :is(dialog,#commandDock,#fieldSelection) button:disabled{opacity:1;color:var(--ui-dim);background:var(--ui-surface);border-color:var(--ui-border)}
.gameShell .primary:disabled,.gameShell #confirmAdvanced:disabled{background:var(--ui-surface)!important;color:var(--ui-dim)!important;border-color:var(--ui-border)!important}
.gameShell :is(.error,.commandError){color:var(--ui-danger)}
.gameShell :is(.commandWarning,.supplyBadge.urgent){color:var(--ui-warning)}
.gameShell #panelContent :is(.researchIdentity small,.forceUnitIdentity small,.readinessIdentity small,.crossingCheck small,.journeyCard p){font-size:13px;line-height:1.55}
.gameShell #panelContent :is(.readinessIdentity b,.crossingCheck b){font-size:15px;line-height:1.4}
.gameShell :is(.readinessBars,.unitSheetMeters) progress{accent-color:var(--ui-success)}
.gameShell .unitSheetMeters [data-low=true] progress{accent-color:var(--ui-warning)}
.gameShell :is(#baseInspector,#baseBuildingMenu,.baseTop,.baseNavigation button,.baseTools button){background:var(--ui-hud);border-color:var(--ui-border);color:var(--ui-text)}
.gameShell #baseHint{background:var(--ui-hud);border-color:var(--ui-border);color:var(--ui-muted)}
.gameShell #panelContent .allianceChat .chatBubble{background:var(--ui-surface);border-color:var(--ui-border)}
.gameShell #panelContent .allianceChat .chatBubble.mine{background:var(--ui-selected);border-color:var(--ui-edge)}
.gameShell #panelContent .allianceChat .chatBubble p{font-size:15px;line-height:1.6}
.gameShell :is(.noticeBanner,#journeyArrival,.battleResult){background:var(--ui-panel);border-color:var(--ui-border);box-shadow:var(--ui-shadow)}
.gameShell .noticeBanner[data-urgent=true]{border-left:3px solid var(--ui-warning)}
.gameShell :is(.promotionCard,.officerPromotion){background:var(--ui-panel);border-color:var(--ui-brass)}
.gameShell :is(.promotionCard,.officerPromotion) h3{color:var(--ui-text)}
.gameShell :is(.promotionCard,.officerPromotion) small{color:var(--ui-brass)}
@media(hover:hover){.gameShell :is(dialog,#commandDock,#fieldSelection) button:not(:disabled):hover{border-color:var(--ui-edge)}.gameShell .primary:not(:disabled):hover{background:var(--brand-sage-hover)!important}}
.gameShell :is(#welcome,#loading) .brand.frontlineLockup{display:flex;min-height:40px;height:auto;line-height:1.2}
.gameShell :is(#welcome,#loading) .brand.frontlineLockup>span{display:grid;gap:3px}
.gameShell :is(#welcome,#loading) .brand.frontlineLockup b{font-family:var(--brand-font);font-size:20px;font-weight:750;letter-spacing:.1em}

/* Field play: readable targeting, clear acknowledgements, useful depth on demand. */
.gameShell .frontierTarget{position:absolute;pointer-events:auto;transform:translate(-50%,-100%);display:grid;place-items:center;width:48px;height:48px;padding:0;border:2px solid var(--ui-accent);border-radius:50%;background:var(--ui-hud);color:var(--ui-text);font:650 14px/1 var(--brand-font);box-shadow:0 0 0 4px #c0d4b41a;touch-action:manipulation}
.gameShell .frontierTarget:before{content:'↗';position:absolute;right:-5px;top:-6px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ui-accent);color:var(--ui-ink);font-size:13px}
.gameShell .mapbadge.army{max-width:240px;background:var(--ui-hud);color:var(--ui-text);border-color:var(--ui-border);border-bottom-color:var(--army-color);border-radius:10px}
.gameShell .mapbadge.army.selected{background:var(--ui-selected);border:2px solid var(--ui-accent);box-shadow:0 0 0 3px #c0d4b41a;z-index:4}
.gameShell .mapbadge.army.compact{width:46px;min-width:46px;min-height:46px;padding:8px}
.gameShell .mapbadge.army.compact .mapOfficer{display:none}
.gameShell .mapUnitTitle{font-size:13px;line-height:1.4}.gameShell .mapUnitHealth{font-size:11px}
.gameShell .troopStack{min-height:44px;padding:10px 14px;background:var(--ui-hud);border:1px solid var(--ui-edge);color:var(--ui-text);border-radius:12px}
.gameShell .stackFanArt img{width:60px;height:48px;object-fit:contain}.gameShell .stackFanGrid button[aria-pressed=true]{background:var(--ui-selected);border-color:var(--ui-accent)}
.gameShell #connectionBanner{left:14px;right:14px;top:calc(env(safe-area-inset-top,0px) + 88px);bottom:auto;max-width:520px;margin:auto;z-index:12;display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--ui-edge);border-radius:12px;background:var(--ui-panel);color:var(--ui-text);font-size:13px;line-height:1.5;box-shadow:var(--ui-shadow)}
.gameShell #connectionBanner[data-state=unconfirmed]{border-left:3px solid var(--ui-warning)}.gameShell #connectionMessage{flex:1;min-width:0}.gameShell #retry{flex:0 0 auto;min-height:44px;padding:8px 12px;border-radius:10px;background:var(--ui-surface);color:var(--ui-text);font-size:12px}.gameShell #retry:disabled{opacity:.7}
.gameShell #loading h2{font:600 26px/1.25 var(--brand-font);color:var(--ui-text);margin:28px 0 12px}.gameShell #loading .primary{min-height:48px;margin:12px 0;padding:12px 24px;border-radius:12px;background:var(--ui-accent);color:var(--ui-ink)}
.gameShell .routeFeedback{padding:4px 0 14px;border-bottom:1px solid var(--ui-border);margin-bottom:14px}.gameShell .routeFeedback b{font-size:15px;line-height:1.45}.gameShell .routeFeedback small{display:block;margin-top:6px;font-size:12px;color:var(--ui-muted);line-height:1.5}.gameShell .routeFeedback.blocked b{color:var(--ui-warning)}
.gameShell .baseUpgradePreview{padding:16px 0 0;margin-top:16px;border-top:1px solid var(--ui-border)}.gameShell .baseUpgradePreview button{width:100%;border:1px solid var(--ui-edge);color:var(--ui-accent);background:transparent}.gameShell .baseUpgradePreview button[aria-pressed=true]{background:var(--ui-selected);border-color:var(--ui-accent)}.gameShell .baseUpgradePreview small{display:block;color:var(--ui-muted);font-size:12px;line-height:1.5;margin-top:9px}
.gameShell #fieldAlliance{grid-column:1/-1;color:var(--ui-accent)}.gameShell #panelContent .chatAttachment{display:block;max-width:100%;text-align:left;overflow-wrap:anywhere;min-height:36px;padding:8px 0;margin-bottom:6px;border:0;border-radius:0;color:var(--ui-accent);background:transparent;font-size:12px;line-height:1.4}
.gameShell .battleFormationStrip{display:flex;align-items:center;gap:8px;min-height:44px;margin-bottom:12px}.gameShell .battleFormationStrip img{width:52px;height:44px;object-fit:contain;filter:drop-shadow(0 4px 3px #0003)}
.gameShell .battleLanes img{width:64px;height:56px;object-fit:contain;filter:drop-shadow(0 5px 3px #0003)}.gameShell .battleLatestDispatch{color:var(--ui-text);padding-left:12px;border-left:2px solid var(--ui-accent)}
.gameShell #panelContent .engagementSummary{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--ui-border)}.gameShell .engagementSummary>div{display:flex;gap:28px;margin:20px 0;color:var(--ui-muted);font-size:12px}.gameShell .engagementSummary>div b{display:block;font-size:26px;color:var(--ui-text);font-weight:600}.gameShell .engagementSummary>.primary{width:100%;min-height:48px;margin:16px 0}.gameShell .engagementSummary details{margin-top:18px}.gameShell .engagementNext{color:var(--ui-text)}
@media(hover:hover){.gameShell .frontierTarget:hover{background:var(--ui-selected)}}
@media(prefers-reduced-motion:reduce){.gameShell :is(.battleLanes,.battleLanes *,.frontierTarget){animation:none!important;transition:none!important}}

.gameShell .mapUnitArrival{display:block;font-size:11px;color:var(--ui-accent);margin-top:5px;line-height:1.4}.gameShell .mapbadge.army.compact .mapUnitArrival{display:none}

.gameShell #battleCommand>details[data-battle-detail=visual]{background:transparent;border-color:var(--ui-border);padding:0;border-radius:0}
.gameShell #battleCommand .battleStoryboard{background:var(--ui-surface);border:0;border-radius:12px;padding:16px;color:var(--ui-text)}
.gameShell #battleCommand .battleLanes{background:var(--ui-bg);border-color:var(--ui-border);border-radius:10px}
.gameShell #battleCommand .battleLanes img{width:88px;height:72px}
.gameShell #battleCommand .battlePhases .current i{background:var(--ui-accent);color:var(--ui-ink);box-shadow:none}
.gameShell #battleCommand .battleStageTrack li[aria-current=step]{border-color:var(--ui-accent);color:var(--ui-text)}
.gameShell #battleCommand .battleSummaryLabel{font-size:13px;margin:0 0 12px;color:var(--ui-muted)}

/* Crossing plans keep the selected destination and force in view. */
.gameShell .crossingBrief{padding:0 0 16px;border-bottom:1px solid var(--ui-border);margin-bottom:18px}
.gameShell .crossingBrief h3{font-size:21px;line-height:1.3;margin:0 0 6px;overflow-wrap:anywhere}
.gameShell .crossingBrief>p{margin:5px 0;font-size:14px}
.gameShell .crossingManifest{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}
.gameShell .crossingManifest>span{padding:7px 10px;border:1px solid var(--ui-border);border-radius:7px;font-size:13px}
.gameShell .crossingNext{display:grid;gap:6px;padding:12px;background:var(--ui-surface);border-left:3px solid var(--ui-accent);line-height:1.5}
.gameShell .crossingNext span{font-size:13px;color:var(--ui-muted)}
.gameShell #crossingForm>.crossingRoute{margin:0;padding:0;border:0;border-bottom:1px solid var(--ui-border);border-radius:0}
.gameShell .crossingRoute>label{display:grid;gap:8px;margin:16px 0}
.gameShell .crossingRoute summary{min-height:48px;display:flex;align-items:center}
.gameShell .careerPacing{font-size:13px;color:var(--ui-muted);line-height:1.6}
.gameShell .crossingBrief .crossingReady{border:0;margin:0;padding:0}
.gameShell .crossingBrief .crossingReady p{font-size:14px;line-height:1.6;margin:12px 0 6px}
.gameShell .crossingReady small{display:block;color:var(--ui-muted);font-size:12px;line-height:1.5;margin-top:9px}
