/* A reserved header keeps persistent status clear of the illustrated play area. */
.game-shell{width:min(100vw,calc((100dvh - 146px)*1.59879));margin:auto}
.game-shell .stage{width:100%;z-index:5}
.game-shell>.hud{position:relative;inset:auto;pointer-events:auto;flex-wrap:wrap;gap:8px 14px;padding:10px 14px;background:#102e39;border-bottom:1px solid #d3bd8144;z-index:4}
.hud-tools{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.hud-tools .career-toggle,.hud-tools .transport-toggle,.hud-tools .household-toggle{position:static;margin:0;min-height:34px;min-width:0;max-width:none;padding:6px 10px;font-size:11px;box-shadow:none;white-space:normal}
.hud-tools .career-toggle{flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.hud-tools .transport-toggle{max-width:31%}
.hud-tools .household-toggle{margin-left:auto;flex-shrink:0;max-width:45%;text-align:right}
.home-view-controls .housing-toggle{position:static;max-width:none;min-height:34px;padding:6px 10px}
.living-panel.essentials-panel{left:auto;right:14px;top:14px;bottom:auto;width:min(430px,calc(100% - 28px));max-height:calc(100% - 95px);padding:20px;z-index:6}
.essentials-panel h2{font-size:25px;margin:8px 30px 12px 0}
.bill-section{border-top:1px solid #c9b985;padding-top:10px;margin-top:10px}
.bill-section h3{font-size:11px;letter-spacing:.12em;color:#755729;margin:0 0 6px}
.bill-section p{font-size:12px;margin:6px 0;line-height:1.45}
.bill-section .gold-button{width:100%;margin-top:5px}
.bill-section .fine{font-size:11px}
.essentials-panel .action-row{gap:6px;margin-top:9px}
@media(max-width:1100px){.game-shell{width:min(100vw,calc((100dvh - 150px)*1.59879))}.game-shell>.hud{padding:8px 10px;gap:7px}.game-shell .hud .identity h1{font-size:22px}.game-shell .status-strip .stat{min-width:65px;padding:7px 9px}.game-shell .goals-toggle{grid-template-columns:repeat(4,minmax(42px,1fr));gap:7px;padding:7px 9px}.hud-tools .transport-toggle{max-width:27%}}
@media(max-width:800px){body{display:block}.game-shell{width:100%}.game-shell>.hud{display:flex}.game-shell .stage{display:block;height:auto;min-height:0;aspect-ratio:1586/992;overflow:visible}.game-shell .stage canvas{width:100%;height:100%}.game-shell .footer{position:relative;margin-top:0;bottom:auto}.hud-tools{flex-wrap:wrap}.hud-tools .career-toggle{flex-basis:45%}.hud-tools .transport-toggle{max-width:45%}.hud-tools .household-toggle{max-width:100%;margin-left:auto}.living-panel.essentials-panel{position:fixed;top:auto;bottom:12px;right:12px;left:12px;width:auto;max-height:75dvh}.game-shell .hud .identity{width:100%}}
