:root{--shop-accent:#547a68}
[hidden]{display:none!important}
body.game-app{padding:0;overflow:hidden;height:100vh;height:100dvh;background:#e8eddf}
body.game-app>header,body.game-app>main>:not(#gameShell){display:none!important}
body.game-app>main{margin:0;padding:0;max-width:none;height:100%;width:100%}
.game-app .pinned-status{height:108px;z-index:12}
.game-app .pinned-status-inner{max-width:1600px;padding:8px 24px;grid-template-columns:1fr 340px;gap:20px}
.game-app .status-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.game-app .status-detail:nth-child(n+3){display:none}.game-app .status-money{grid-column:auto}
.game-app .status-money strong{font-size:23px}
.game-app .resource-card{padding:7px 12px}.game-app .resource-card .resource-value{font-size:27px;margin:3px 0}
.game-app .resource-heading{font-size:11px}.game-app .resource-card .resource-hint{font-size:9px}
#gameShell{height:100%;padding:108px max(20px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(20px,env(safe-area-inset-left));max-width:1600px;margin:auto;display:grid;grid-template-rows:62px minmax(0,1fr) 58px 64px;gap:8px}
.shell-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.shell-heading h1{font-size:22px;line-height:1.2;margin:3px 0;max-width:65vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--shop-accent)}
.shell-heading small{font-size:11px;color:#526a5d}.shell-heading button{padding:8px 12px}
.shell-stage{min-height:0;position:relative;overflow:hidden;border-radius:22px;background:#f5f3e8;border:1px solid #cbd5bf;box-shadow:0 12px 38px #264e3710;isolation:isolate}
.shell-scene{height:100%;display:flex;flex-direction:column;justify-content:center;min-height:0;overflow:hidden}
#shellScene{min-height:0;flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden}
#shellScene .scene-card{width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;display:flex;flex-direction:column;justify-content:center;background:#e9eee2;overflow:hidden}
#shellScene .scene-card>svg,#shellScene .shop-interaction{width:100%;min-height:0;flex:1;display:flex;align-items:center;justify-content:center}
#shellScene .shop-interaction svg,#shellScene .scene-card>svg{width:100%;height:100%;max-height:100%;object-fit:contain}
#shellScene .scene-card>.sub,#shellScene .shop-delivery{display:none}
#shellScene .scene-caption{margin:0;padding:8px 16px;background:#fffdf4;font-size:11px;gap:6px;display:flex;flex-wrap:wrap;justify-content:center}
#shellScene .scene-caption span:nth-child(n+4){display:none}
#shellScene .live-shop-bar,#shellScene .studio-live-bar{margin:0;padding:6px 14px;font-size:10px;flex-shrink:0}
.shell-story{padding:10px 18px;background:#fffdf4;border-top:1px solid #dce2d1;display:flex;align-items:center;gap:12px;font-size:12px;flex-wrap:wrap}
.shell-story span{color:#667362}.shell-story button{margin-left:auto;font-size:11px;padding:6px 10px}
#shellIsland{height:100%;overflow:auto}
#shellIsland .world{height:100%;min-height:0;border:0;display:flex;flex-direction:column}
#shellIsland #island{flex:1;min-height:0;aspect-ratio:auto;display:flex;align-items:center;justify-content:center}
#shellIsland #island svg{width:100%;max-height:100%;height:100%}
#shellIsland .world-top,#shellIsland .world-bottom{flex-shrink:0;padding:8px 16px}
#shellDrawer{position:absolute;inset:0 0 0 auto;width:min(540px,55%);padding:0;border:0;border-left:1px solid #ccd6c3;border-radius:0;background:#fffdf7;z-index:3;box-shadow:-12px 0 35px #183b3520;display:flex;flex-direction:column;min-height:0}
.shell-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #e1e4d6;flex-shrink:0}
.shell-drawer-heading h2{font-size:18px;margin:0}.shell-drawer-heading button{padding:6px 11px}
#shellDrawerScroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:14px 18px;scrollbar-gutter:stable;flex:1}
#shellDrawerScroll section{max-width:100%}
#shellWork .experience{margin:0;padding:0;border:0;display:block}
#shellWork .experience-heading,#shellWork .week-progress,#shellWork .play-steps,#shellWork .opportunity-summary,#shellWork #growthQuickAccess,#shellWork .schedule-resource-hint,#shellWork .planner-heading,#shellWork .bench-heading{display:none}
#shellWork .task-palette{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#shellWork .task-palette button{padding:10px;min-height:0}#shellWork .task-palette small{font-size:10px}#shellWork .task-add{display:none}
#shellWork .calendar-slots{grid-template-columns:1fr;gap:5px}#shellWork .calendar-slot{padding:7px 10px;min-height:0;display:flex;justify-content:space-between;align-items:center}
#shellWork .slot-pick{display:flex;align-items:center;gap:12px}#shellWork .slot-pick strong{font-size:12px}
#shellWork .plan-preview{font-size:11px;padding:10px}#shellWork .plan-preview small{display:none}
#shellWork .planner-controls,#shellWork .bench-start{display:none}
#shellWork .bench-columns{grid-template-columns:1fr}#shellWork .bench-metrics{gap:6px}#shellWork .bench-metrics strong{font-size:19px}
.shell-plan-shortcuts{display:flex;gap:8px;margin-bottom:12px}.shell-plan-shortcuts button{flex:1;font-size:12px}
.shell-menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shell-menu{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;gap:8px;padding:16px 12px;margin-bottom:8px;background:#f3f5ea;font-size:13px;border:1px solid #d5decb}
.shell-menu-grid .shell-menu{margin:0;min-height:68px}.shell-menu span{color:#6a8467}
#shellLegacy #panel{padding:0;border:0;box-shadow:none;background:transparent}#shellLegacy .main-tools{display:none}
.shell-actionbar{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:stretch;padding:2px 0}
.shell-actionbar button{font-size:14px}.shell-actionbar .primary{background:var(--shop-accent);font-weight:700}
.shell-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding-bottom:4px}
.shell-nav button{display:flex;align-items:center;justify-content:center;gap:9px;border:0;background:transparent;border-radius:12px;font-size:13px;color:#63765f}
.shell-nav button span{font-size:20px}.shell-nav button[aria-current=page]{background:#fffdf4;color:var(--shop-accent);font-weight:700;box-shadow:0 2px 8px #28472d10}
.game-app dialog{position:fixed;inset:0 18px 0 auto;margin:auto 0;width:min(620px,90vw);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:28px 24px;border-radius:20px;z-index:30}
.shell-modal-close{position:sticky;top:0;float:right;margin:-12px -8px 4px 8px;background:#fffdf7;z-index:2;padding:8px 12px}
.game-app .toast{z-index:50;bottom:140px;pointer-events:none}.game-app button:focus-visible,.game-app input:focus-visible,.game-app select:focus-visible{outline:3px solid #bf913c;outline-offset:2px}
@media(max-width:720px){
 .game-app .pinned-status{height:146px}.game-app .pinned-status-inner{padding:6px 12px;grid-template-columns:1fr;grid-template-rows:40px 88px;gap:5px}
 .game-app .status-details{gap:10px}.game-app .status-money strong{font-size:18px}.game-app .status-detail span{font-size:10px}
 .game-app .status-resources{gap:8px}.game-app .resource-card{min-height:0;padding:6px 10px}.game-app .resource-card .resource-value{font-size:25px}.game-app .resource-heading{font-size:11px}.game-app .resource-heading em{font-size:9px}.game-app .resource-card .resource-hint{font-size:9px}
 #gameShell{padding-top:146px;padding-left:10px;padding-right:10px;grid-template-rows:54px minmax(0,1fr) 50px 54px;gap:5px}
 .shell-heading h1{font-size:19px;max-width:54vw}.shell-heading small{font-size:10px}.shell-heading button{font-size:11px;padding:7px 9px}
 .shell-stage{border-radius:16px}.shell-story{padding:8px 10px;gap:4px;font-size:11px}.shell-story span{display:none}.shell-story button{font-size:10px;padding:5px 8px}
 #shellScene .scene-caption{padding:5px 8px;font-size:10px}#shellScene .scene-caption span:nth-child(n+3){display:none}#shellScene .live-shop-bar{padding:4px 8px;gap:3px;font-size:9px}#shellScene .live-shop-bar button{font-size:9px;padding:4px}
 #shellScene .shop-hotspots button{font-size:10px;padding:5px 6px}
 #shellDrawer{inset:10% 0 0;width:100%;border-radius:18px 18px 0 0;border-top:1px solid #ccd6c3;border-left:0;box-shadow:0 -8px 28px #183b3525}
 #shellDrawerScroll{padding:12px}.shell-drawer-heading{padding:10px 12px}.shell-drawer-heading h2{font-size:16px}
 .shell-actionbar{grid-template-columns:90px 1fr;gap:7px}.shell-actionbar button{font-size:12px;padding:8px}.shell-nav button{flex-direction:column;gap:0;font-size:10px}.shell-nav button span{font-size:19px}
 .game-app dialog{inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:90dvh;padding:22px 18px calc(18px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}
 .game-app .supplier-cards{grid-template-columns:1fr}.game-app .store-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-height:600px){.game-app .pinned-status{height:80px}.game-app .pinned-status-inner{grid-template-columns:1fr 280px;grid-template-rows:1fr;gap:10px}.game-app .resource-card .resource-value{font-size:20px}.game-app .resource-heading em,.game-app .resource-hint,.game-app .resource-meter{display:none}.game-app .resource-card{padding:4px 9px}#gameShell{padding-top:80px;grid-template-rows:40px minmax(0,1fr) 40px 42px;gap:3px}.shell-story{display:none}.shell-heading h1{font-size:17px}}
@media(prefers-reduced-motion:reduce){#gameShell *{scroll-behavior:auto!important}}
