/* Final presentation rules for both public simulation and owner portfolio. */
html body .stage .hud-fold,html body .stage #tacticalConsoleToggle,html body .stage .panel-toggle{display:none!important}
html body .stage .tc-divider{display:none!important}
html body .stage #portfolioMode,html body .stage #demoMarket{display:none!important}
html body.settings-open #portfolioMode:not([hidden]){display:block!important;width:100%;min-height:40px}
html body #battleMenu button[data-menu=inventory],html body #battleMenu button[data-menu=store]{opacity:.35;cursor:not-allowed;filter:grayscale(1)}
.compact-settings-card label{display:grid;gap:6px;margin:14px 0;font-size:13px}.compact-settings-card button{width:100%}.compact-settings-card small{display:block;color:#a0c0d2;line-height:1.6}
#battlefieldStatus{min-height:2em;color:#f4ce83;font-size:12px}#battlefieldDialog{max-width:min(420px,90vw);text-align:center;border:1px solid #61ddff;border-radius:12px;background:linear-gradient(145deg,#143249,#041321);color:white;padding:28px}#battlefieldDialog::backdrop{background:#000b}#battlefieldDialog h2{font-size:22px}#battlefieldDialog p{line-height:1.7}#battlefieldDialog .switch-orb{display:block;font-size:38px;color:#69e4ff;animation:bfPulse 1s ease-in-out infinite alternate}@keyframes bfPulse{to{opacity:.35;transform:scale(.9)}}
html body .stage #reinforcementToggle{position:absolute;left:1.2%;top:126px;z-index:12;display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:5px;border:1px solid #72b5d1;border-radius:8px;background:#082334e8}#reinforcementToggle svg{width:24px;height:24px;stroke:#bcefff;fill:none;stroke-width:1.8}
html body .stage:not(.reinforcements-active) #reinforcementToggle{display:none!important}
html body.portfolio-redesign:not(.normal-ui) .stage:not(.reinforcement-open) .army-side{display:none!important}
html body.portfolio-redesign:not(.normal-ui) .stage .army-side{padding-top:0!important}
@media(min-width:701px){
 html body.portfolio-redesign:not(.normal-ui) .stage{--reinforcement-panel-width:clamp(89px,10.2%,147px)!important;--reinforcement-buy-width:var(--reinforcement-panel-width)!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side{top:170px!important;width:var(--reinforcement-panel-width)!important}
 html body.portfolio-redesign:not(.normal-ui) .stage.chart-expanded .army-side{top:370px!important}
 html body .stage.chart-expanded #reinforcementToggle{top:330px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.manual-entry{min-height:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.recall-entry{width:100%!important;height:40px!important;min-height:40px!important;font-size:14px!important;padding-left:27px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 html body.portfolio-redesign:not(.normal-ui) .stage:has(.reference-neon){height:auto!important;min-height:calc(100dvh - 8px)!important;grid-template-rows:42px 36px 0px calc((100vw - 18px)*.56) 160px 96px 24px 64px!important;gap:3px!important;overflow:hidden}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar{height:42px!important;padding-right:8px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-rail{margin-top:3px!important;margin-bottom:2px!important;height:5px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-legend{font-size:7px!important;line-height:9px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #goldQuotePanel{height:36px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #playerProfile{width:100px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #scene{width:100%!important;height:100%!important;min-height:0!important;align-self:stretch!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side{position:absolute!important;grid-area:auto!important;top:122px!important;width:29%!important;height:auto!important;align-self:start!important;z-index:11}
 html body.portfolio-redesign:not(.normal-ui) .stage .buy-army{left:46px!important;right:auto!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .sell-army{left:calc(29% + 51px)!important;right:auto!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.manual-entry{min-height:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.recall-entry{height:30px!important;min-height:30px!important;font-size:10px!important;padding-left:26px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .battle-hud.reference-neon-host,html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon{height:160px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon{grid-template-rows:32px 50px 9px 13px 29px!important;gap:2px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #roundAction{height:50px!important;font-size:30px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #balanceValue,html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #todayPnl{font-size:16px!important;line-height:1.05!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #np{font-size:26px!important;line-height:1!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .intel-stack.tactical-console:not(.tc-folded){height:96px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console #regimeContent dd{font-size:12px!important;line-height:1!important;translate:0 -1px}
 html body.portfolio-redesign:not(.normal-ui) .stage #resourceTank{top:88px!important;height:28px!important;max-width:72%!important}
 html body .stage #reinforcementToggle{left:5px!important;top:126px!important;width:30px!important;height:30px!important;min-height:30px!important}
 html body .stage #marketChartPanel.chart-collapsed{top:89px!important;width:30px!important;height:30px!important}
 html body .stage #marketChartToggle{min-height:30px!important}
 html body .stage.chart-expanded #reinforcementToggle{top:260px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage.chart-expanded .army-side{top:260px!important}
 html body .stage #battleMenu>button{font-size:9px!important;padding:2px!important}
 html body .stage #battleMenu svg{width:20px!important;height:20px!important}
}
@media(prefers-reduced-motion:reduce){#battlefieldDialog .switch-orb{animation:none}}
