/* Integrated controls approved in mobile-repair-v1 r4. */
/* Proposed changes, isolated from the player release. */
body{overflow:hidden}.preview-bar{height:44px;display:flex;align-items:center;gap:5px;padding:4px 8px;background:#263726;border-bottom:1px solid var(--line);overflow-x:auto}.preview-bar button{min-height:34px;padding:4px 10px;white-space:nowrap;background:#102019;border:1px solid var(--line);border-radius:5px;font-size:11px}.preview-bar span{font-size:10px;color:var(--muted);white-space:nowrap;margin-right:auto}.game-shell{height:calc(100dvh - 44px);margin:0 auto}.preview-content{flex:1;min-height:0;position:relative;overflow:hidden;display:flex;flex-direction:column}.game-shell .interior-screen{height:100%;min-height:0;flex:1}.scene-top{position:relative;left:auto;right:auto;top:auto;padding:8px 12px;gap:8px}.scene-top button{min-height:44px}.scene-top>span{font-size:15px}.scene-top small{display:block;font:10px/1.5 system-ui;color:var(--muted)}.scene-top [data-journal]{font-size:12px;text-align:left}.scene-status{position:relative;top:auto;left:auto;right:auto;padding:0 12px 8px}.scene-status b{display:inline;margin-left:8px}.scene-status button{min-height:44px}.scene-stage{display:flex;flex-direction:column;min-height:180px}.scene-map{position:relative;inset:auto;flex:1;min-height:0;margin:0 56px 8px 8px}.scene-camera{top:112px;right:8px;gap:6px}.scene-camera button{width:44px;min-height:44px;font-size:12px;padding:4px}.scene-camera button:first-child{font-size:10px}.scene-context-map{display:none}.scene-floors{bottom:12px;left:12px}.scene-floors button{min-height:44px}.scene-credit{display:none}.scene-tray{max-height:48%;padding:10px 14px 8px;overflow:auto}.scene-inline-feedback{font:11px/1.45 system-ui;color:#c8d7b8;text-align:left!important;margin:0 0 8px}.scene-heading{margin-bottom:8px}.scene-heading h2{font-size:23px}.scene-tray>.action{min-height:46px;font-size:18px}.scene-requirement{font:12px/1.4 system-ui;color:#e6cc93!important;margin:0 0 8px;text-align:left!important}.scene-nearby{margin:8px 0;gap:6px}.scene-nearby button{min-height:44px;font-size:12px;padding:8px 12px}.scene-leave{min-height:44px;font-size:12px;text-align:center}.scene-summary{padding:25px 20px;display:flex;flex-direction:column;gap:16px;text-align:left}.scene-summary h1{font-size:30px;margin:0}.scene-summary>p{font-size:14px}.scene-summary .action{margin:0;min-height:48px}.scene-summary .empty-state{padding:20px 12px}.scene-summary .empty-state h3{font-size:22px}.summary-count{display:flex;align-items:center;gap:10px;font-size:13px;padding:12px;border:1px solid var(--line);border-radius:6px;background:#14271c}.summary-count strong{margin-left:auto;color:var(--lime)}.scene-summary details{font-size:13px;color:var(--muted)}.scene-summary summary{min-height:44px;padding:12px 0;cursor:pointer}.scene-summary .scene-preview{height:220px}.scene-summary .item-grid{margin:0}.preview-list{height:100%;overflow:auto;padding:20px 16px}.preview-list>p{font-size:12px;color:var(--muted);margin:8px 0 18px}.signal-row{min-height:76px}.signal-row b{font-size:19px}.signal-row small{font-size:12px}.signal-row svg{width:26px;flex:none}.signal-sheet{bottom:12px;left:12px;right:12px;padding:16px}.signal-sheet-header{grid-template-columns:48px minmax(0,1fr) 36px;margin-bottom:14px}.building-thumb{width:44px;height:54px}.building-thumb svg{width:27px}.signal-sheet h2{font-size:24px}.signal-sheet .action{min-height:48px;font-size:19px}.signal-sheet .distance{font-size:16px}.map-status:empty{display:none}.preview-map-note{position:absolute;top:12px;left:12px;right:65px;padding:8px 10px;background:#102019ed;border:1px solid var(--line);border-radius:8px;font-size:12px}.preview-map-note b{color:var(--lime)}.preview-content .explore-map{position:absolute;inset:0}
@media(max-height:650px){.scene-top{padding:4px 10px}.scene-status{padding-bottom:4px}.scene-tray{max-height:51%;padding:7px 10px}.scene-inline-feedback{display:none}.scene-heading h2{font-size:20px}.scene-nearby{margin:5px 0}.scene-summary{padding:16px;gap:12px}.scene-summary h1{font-size:26px}}
@media(min-width:761px){.game-shell{height:calc(100dvh - 64px);margin:10px auto}.game-shell::after{display:none}}
.interior-mode .game-nav{display:none}.scene-object text{font-size:.65px}.scene-status{min-height:44px}.scene-status button{min-height:36px}.scene-inline-feedback{font-size:10px;margin-bottom:5px}.scene-tray{padding-top:8px}.scene-nearby{margin:6px 0}.scene-leave{min-height:40px}.scene-camera{top:112px;bottom:8px;display:flex;flex-direction:column;justify-content:flex-start}.scene-camera button{flex-shrink:1;min-height:36px;height:40px}.scene-tray>.action{min-height:44px}.scene-nearby button{min-height:44px}.scene-top>span{font-family:Georgia,serif}.scene-camera button:focus-visible{outline-offset:1px}
/* r2: select furniture on the plan; keep only its contextual action below. */
.scene-tray{padding:14px 18px 6px;border-top:1px solid #a7b46a40;background:#14251b;box-shadow:0 -8px 28px #0003}
.scene-heading{margin-bottom:12px;align-items:center}.scene-heading h2{font-size:25px;line-height:1.2}.scene-heading .overline{letter-spacing:1.4px}.scene-rarity{border:0;background:#ffffff08;padding:4px 8px;font-size:10px;border-radius:12px}
.scene-tray>.action.primary{min-height:48px;border-radius:7px;clip-path:none;border:1px solid #c9df8b;background:#c9df8b;box-shadow:none;text-shadow:none;font:650 16px system-ui,sans-serif}.scene-tray>.action.primary::before{display:none}.scene-tray>.action.primary:disabled{background:#34452c;color:#c8d2b3;border-color:#64734d;opacity:1}
.scene-tray>.scene-leave{margin-top:6px;min-height:44px;color:#aebea2;font-size:12px}.scene-inline-feedback{margin:0 0 10px;color:#c8d7b8}.scene-map .scene-object:focus-visible .object-tag{stroke:#fff;stroke-width:.18}.scene-map .scene-object.is-selected .object-tag{fill:#718b42;stroke:#eff5c7;stroke-width:.1}
@media(max-height:650px){.scene-tray{padding:10px 14px 4px}.scene-heading{margin-bottom:8px}.scene-heading h2{font-size:23px}}
/* r3: a contextual game panel, with the actual selected furniture asset. */
.scene-stage{background:radial-gradient(ellipse at 45% 60%,#39473066,transparent 65%),linear-gradient(140deg,#11241b,#08140e)}.scene-stage *{user-select:none}.scene-top{padding:10px 14px}.scene-top>span{font-size:17px}.scene-top button{border-color:#a5b07840;background:#091710a8}.scene-top [data-journal]{border:0;border-left:1px solid #c4b47d40;border-radius:0;padding-left:14px}.scene-top small{font-size:10px;color:#899c7d}.scene-status{padding:0 14px 8px}.scene-status button{font-size:10px;min-height:36px;border-color:#a5b07840}.scene-noise{display:flex;align-items:center;gap:10px!important}.scene-noise>span:first-child{font:650 8px system-ui;letter-spacing:1.6px;color:#c6ca9c}.noise-meter{display:flex;gap:3px}.noise-meter i{display:block;width:13px;height:4px;border:1px solid #91a65a70;border-radius:1px;background:#c4d3840a}.noise-meter .filled{background:#d0df83;box-shadow:0 0 7px #c6dc6422}.scene-camera{gap:0;right:12px;border:1px solid #a7b46a40;border-radius:10px;overflow:hidden;background:#0b1b14d9;bottom:auto}.scene-camera button{border:0;border-radius:0;border-bottom:1px solid #a7b46a25;background:transparent;min-height:44px;width:42px}.scene-camera button:last-child{border-bottom:0}.scene-camera button:first-child{font-size:9px;color:#c6c7a0}.scene-floors button{border-radius:5px;min-height:36px;padding:7px 10px;font-size:10px}.scene-floors [aria-pressed=true]{background:#233a24;border-color:#a5b77b88}.scene-tray{padding:13px 18px 5px;background:radial-gradient(ellipse at 20% 0,#3c4b2d55,transparent 80%),linear-gradient(125deg,#1b2c1e,#0d1d15);border-top-color:#b2af795c;box-shadow:0 -10px 35px #0005}.scene-heading{gap:12px;margin-bottom:11px}.selected-furniture{display:block;flex:none;width:64px;height:64px;filter:drop-shadow(0 4px 6px #0008)}.selected-copy{flex:1;min-width:0}.scene-heading h2{font-size:28px;color:#f0e4bc;letter-spacing:-.4px}.selected-state{font:11px/1.5 system-ui!important;color:#aebb9b!important;margin-top:4px}.scene-rarity{font-size:9px;border:1px solid #9baf6740;background:#a4b8760b;color:#baca9c;letter-spacing:.3px}.scene-tray>.action.primary{font:700 19px Georgia,serif;min-height:49px;gap:8px;border-radius:5px;background:linear-gradient(105deg,#a9c85a,#dae895 55%,#b4d16b);border-color:#dae895;box-shadow:inset 0 1px #f3fbc155,0 3px 12px #0003;color:#182611}.scene-tray>.action.primary svg{width:20px;height:20px}.scene-tray>.scene-leave{font-size:11px;letter-spacing:.3px;color:#b0ba9a}.scene-map .object-aura{stroke:#e4edab;stroke-width:.08;fill:#c9e4811c}.scene-map .is-selected>.object-tag{filter:drop-shadow(0 0 .2px #cee67788)}.scene-map{margin-right:62px}.scene-plan{filter:drop-shadow(0 12px 16px #0007)}
.home-choice{height:100%;overflow:auto;background:#0c1a13}.home-choice-hero{min-height:180px;padding:28px 22px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(0deg,#0c1a13 0%,#0c1a1377 65%),url('../assets/cinematic/shelter-tours.webp') center 48%/cover}.home-choice-hero h1{font-size:34px;max-width:320px;margin-top:9px;color:#f0e4bc}.home-choice-body{padding:12px 22px 22px}.home-choice h2,.home-selection h2{font-size:22px;margin:14px 0 10px}.home-choice p,.home-selection p{font:13px/1.65 system-ui;color:#bbc8ad}.home-choice .overline,.home-selection .overline{font-size:9px;color:#c6bb89;letter-spacing:1.8px}.home-choice .home-advice,.home-selection .home-advice{padding:12px 14px;margin:14px 0 20px;border-left:2px solid #a9be6f;background:#bfd38608;color:#d0d6ba}.home-location{display:flex;gap:12px;align-items:center;padding:12px 14px;border:1px solid #c4b47d40;border-radius:6px;background:#20332255}.home-location svg{color:#c7d592}.home-location b,.home-location small{display:block}.home-location b{font:19px Georgia,serif}.home-location small{font-size:11px;color:#99ac90;margin-top:3px}.home-kept{display:flex;gap:16px;flex-wrap:wrap;margin:18px 0;color:#b3c49d}.home-kept span{display:flex;align-items:center;gap:6px;font-size:11px}.home-kept svg{width:16px;height:16px}.home-choice .action,.home-selection .action{font-size:18px;min-height:48px}.home-choice .text-button,.home-selection>.text-button{width:100%}.home-selection{height:100%;overflow:auto;padding:16px 22px 24px;background:radial-gradient(ellipse at top,#34472c66,transparent 60%),#0c1a13}.home-selection>h1{font-size:32px;margin:10px 0 14px}.home-selection>.text-button:first-child{text-align:left;margin-bottom:12px}.home-candidate{display:flex;gap:18px;align-items:center;margin:24px 0 10px;padding:20px;border:1px solid #b2c97b66;border-radius:7px;background:#28402b77}.home-candidate>svg{width:44px;height:44px;color:#d0db9a}.home-candidate h2{margin:0 0 4px;font-size:25px}.home-candidate p{font-size:12px}.home-selection .home-near-status{font-size:12px;color:#cadb9e}.fixture-options{border-top:1px solid var(--line);margin-top:15px;font-size:10px;color:var(--muted);padding-top:10px}.fixture-options summary{min-height:32px;cursor:pointer}.home-transfer{padding:12px;border-left:2px solid #bed18c;background:#bdd38a08;font-size:13px;line-height:1.6;margin:16px 0 20px;color:#d4dabb}.detail-dialog [data-cancel-confirm]{width:100%;margin-top:8px}
@media(max-height:650px){.selected-furniture{width:52px;height:52px}.scene-heading h2{font-size:24px}.scene-tray{padding:10px 14px 4px}.scene-heading{margin-bottom:9px}.home-choice-hero{min-height:140px;padding-top:20px}.home-choice-hero h1{font-size:29px}.home-choice-body{padding:4px 18px 18px}}
/* r4: shared controls, navigation, surfaces and interaction states. */
:root{--control-border:#a6b47b40;--control-face:#182b20;--control-light:#b4c68b;--control-shadow:0 3px 8px #0003,inset 0 1px #e8ebbd0b}
.game-header{background:linear-gradient(130deg,#16251a,#091710 75%);border-bottom:1px solid #b9b27d40;box-shadow:0 3px 18px #0003;padding:0 18px}.game-header .wordmark{font-size:16px;letter-spacing:4px;color:#e7dfbd}.header-actions{gap:7px}.header-actions .icon-button{width:38px;height:38px;border:1px solid var(--control-border);border-radius:50%;background:linear-gradient(145deg,#21332499,#0b1b14);color:#bbb98c;box-shadow:var(--control-shadow)}.header-actions .icon-button svg{width:18px;height:18px;stroke-width:1.5}.header-actions [aria-pressed=true]{color:#e2e9a5;border-color:#b8ce7b88;background:#293c25}.header-actions .icon-button:hover{border-color:#d6ce94;background:#2a402d}
.game-nav{margin:0;padding:7px 12px calc(6px + env(safe-area-inset-bottom));height:78px;flex-basis:78px;background:linear-gradient(160deg,#192a1f,#0b1812 70%);border-top:1px solid #c6bb7b55;box-shadow:0 -6px 30px #0004;gap:4px}.game-nav button{border:0;border-radius:8px;font:11px system-ui;letter-spacing:.25px;color:#95a58b;gap:5px;transition:color .18s,background .18s}.game-nav button>span{display:grid;place-items:center;width:36px;height:30px;border:1px solid transparent;border-radius:8px}.game-nav svg{width:23px;height:23px;stroke-width:1.6}.game-nav [aria-current=page]{color:#e0e6b5;background:linear-gradient(180deg,#a9c76b18,transparent);text-shadow:none}.game-nav [aria-current=page]>span{color:#d2e58b;background:#a9c76b12;border-color:#a9c76b33;box-shadow:0 1px 12px #adc9690a}.game-nav [aria-current=page]::after{width:18px;height:2px;border-radius:2px;bottom:1px;left:calc(50% - 9px);right:auto;background:#bed77d;box-shadow:none}.game-nav button:hover{color:#ebeed2;background:#a9c76b0b}
.scene-top{gap:12px;padding:12px 16px 9px}.scene-top .scene-back{width:40px;height:40px;min-height:40px;display:grid;place-items:center;padding:0;border:1px solid var(--control-border);border-radius:10px;background:linear-gradient(135deg,#253a28,#102018);box-shadow:var(--control-shadow);color:#d7d9ac}.scene-back svg{width:19px;height:19px}.scene-top .scene-place{font:21px/1.05 Georgia,serif;color:#e5dfbb}.scene-top .scene-place small{font:600 8px/1.8 system-ui;letter-spacing:1.9px;color:#93a486}.scene-top [data-journal]{gap:9px;padding:0 0 0 13px;background:transparent;box-shadow:none}.scene-top [data-journal]>svg{width:23px;height:23px;color:#bdc891}.scene-top [data-journal] strong{font:600 20px/1 system-ui;color:#dce7af}.scene-top [data-journal] em{font-style:normal;font-size:12px;font-weight:400;color:#8fa383}.scene-top [data-journal] small{font:600 7px/1.7 system-ui;letter-spacing:1.2px;color:#8fa383}.scene-status{padding:0 16px 9px;min-height:40px}.scene-noise{padding:6px 9px;border:1px solid #9bb77720;border-radius:5px;background:#09160f55;gap:10px!important}.noise-caption{font-size:7px!important;letter-spacing:1.4px!important}.noise-meter i{width:11px;height:3px;border:0;background:#b8ca7b2b}.noise-meter .filled{background:#d3d78d}.scene-status [data-mark]{border:0;box-shadow:none;gap:6px;padding:4px 0 4px 8px;font:11px system-ui;color:#aeb893;background:transparent;min-height:36px}.scene-status [data-mark] svg{width:16px;height:16px}
.scene-camera{right:12px;top:116px;gap:0;border-radius:11px;border:1px solid #aeb8804d;background:linear-gradient(120deg,#233728ed,#10221af2);box-shadow:inset 0 1px #dce9b414,0 5px 20px #0004}.scene-camera button{width:42px;min-height:42px;height:42px;color:#c6d1a8;border-bottom-color:#bdc68726;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:21px;font-weight:300}.scene-camera button:first-child{height:56px;min-height:56px}.scene-camera button small{font:8px/1.4 system-ui;color:#9bae89}.scene-camera svg{width:18px;height:18px;stroke-width:1.5}.scene-camera button:hover{background:#b4c87a15;color:#e6eeb9}.scene-camera button:active{background:#b4c87a2b;box-shadow:inset 0 2px 5px #0005}.scene-floors button{border:1px solid #b5c38355;border-radius:6px;background:linear-gradient(#354c2f,#203623);box-shadow:var(--control-shadow);font:600 10px system-ui;letter-spacing:.8px;color:#dbe6b4;padding:7px 12px}.scene-tray{position:relative;padding:14px 18px 5px;border-top:1px solid #a6b37666;background:radial-gradient(ellipse at 15% 0,#52623a44,transparent 70%),linear-gradient(120deg,#203120,#0e1f16 85%);box-shadow:0 -8px 30px #0005,inset 0 1px #dae6af0d}.scene-heading{gap:14px;margin-bottom:13px}.selected-furniture{width:66px;height:66px;filter:drop-shadow(0 4px 5px #0008)}.selected-copy h2{font:700 29px/1 Georgia,serif;color:#ece3bb}.selected-state{font-size:10px!important;letter-spacing:.2px;color:#a9b598!important;margin-top:6px}.scene-rarity{padding:5px 8px;border-radius:4px;background:#a3b9690a;border-color:#a3b96933;text-transform:uppercase;font:600 7px/1.4 system-ui;letter-spacing:1.15px;color:#b6c389}.scene-rarity.uncommon{color:#aac7ba;border-color:#76a59655;background:#739c8d0b}.scene-tray>.action.primary,.home-choice .action.primary,.home-selection .action.primary,.detail-dialog .action.primary,.scene-summary .action.primary{clip-path:none;border-radius:7px;min-height:50px;background:linear-gradient(115deg,#b9cf76,#d8e5a0 52%,#c2d584);border:1px solid #e3edb28f;box-shadow:inset 0 1px #f7ffd37a,inset 0 -3px #48622f26,0 4px 14px #0004;font:700 20px/1.2 Georgia,serif;letter-spacing:.15px;color:#1b2b17;text-shadow:0 1px #f0f9c444}.action.primary::before{inset:3px;border-radius:4px;border-color:#e9f2c526;clip-path:none}.scene-tray>.action.primary::before{display:block}.action.primary svg{width:20px;height:20px;stroke-width:1.8}.action.primary:disabled,.scene-tray>.action.primary:disabled{background:linear-gradient(#35452d,#2a3b26);border:1px solid #75865d55;color:#b5c09e;text-shadow:none;box-shadow:inset 0 1px #dae8aa09;opacity:1}.action.primary:hover:not(:disabled){filter:brightness(1.06)}.scene-tray>.scene-leave{display:flex;align-items:center;justify-content:center;gap:6px;font:11px system-ui;color:#a7b391;letter-spacing:.3px;min-height:43px;margin-top:4px}.scene-tray>.scene-leave:hover{color:#e7e8bb}.secondary{border-radius:7px;background:linear-gradient(115deg,#243b29,#13271c);border-color:#a5b87555;box-shadow:inset 0 1px #e9efb809;color:#d1dbb7;font-size:16px}.text-button:hover{color:#ecf1c8}.detail-dialog{padding:28px 22px 20px;border:1px solid #b8b07c88;border-radius:15px;background:radial-gradient(ellipse at 20% 0,#42553777,transparent 70%),linear-gradient(130deg,#182a1d,#0b1c14);box-shadow:0 24px 80px #000b,inset 0 1px #e0e7b514}.detail-dialog .dialog-close{width:36px;height:36px;min-height:36px;border-radius:50%;background:#0b1b14aa;border:1px solid var(--control-border);font-size:21px;color:#b6be9c}.survivor-menu-head{display:flex;align-items:center;gap:14px;margin:6px 0 25px}.survivor-menu-head>span{width:56px;height:56px;border:1px solid #bbc98355;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#3f5433,#1a3021)}.survivor-menu-head>span svg{width:28px;height:28px;color:#d5dda7}.survivor-menu-head h2{text-align:left;margin:3px 0;font-size:28px}.survivor-menu-head .overline{text-align:left;margin:0;font-size:8px}.survivor-menu-head small{font-size:10px;color:#8ea384}.survivor-menu-items{display:grid;gap:9px}.survivor-menu-items button{min-height:76px;display:flex;align-items:center;gap:13px;padding:13px;border:1px solid #a6b47b33;border-radius:9px;background:linear-gradient(125deg,#2a3e2b55,#10241a88);text-align:left;box-shadow:inset 0 1px #e9efb806}.survivor-menu-items button>svg{width:22px;height:22px;color:#c0cd96;flex:none}.survivor-menu-items button>span:nth-child(2){flex:1}.survivor-menu-items b{font:19px Georgia,serif;color:#e0dfba;display:block}.survivor-menu-items small{font:11px system-ui;color:#94a88b;display:block;margin-top:5px}.survivor-menu-items button:hover{border-color:#c4d28b77;background:#2c4530}.survivor-guide{padding-left:22px;margin-top:22px;color:#c4cdb2;font:14px/1.7 system-ui}.survivor-guide li{padding-left:5px;margin:14px 0}.home-candidate{box-shadow:inset 0 1px #ebf4bf0d,0 6px 20px #0002;border-radius:10px}.home-location{border-radius:9px}.home-advice{border-radius:0 7px 7px 0}.signal-row{border-radius:9px;border-color:#a7bc7833;background:linear-gradient(130deg,#233a29,#12281d);box-shadow:inset 0 1px #ebf4bf08}.signal-row:hover{border-color:#cfdb9277}.signal-sheet{border-radius:15px;border-color:#c2c58b88;background:linear-gradient(130deg,#243b28f5,#0b1d15fa);box-shadow:0 16px 45px #0009,inset 0 1px #ecf4bb12}.signal-sheet .close-sheet{border-radius:50%;min-height:36px;min-width:36px;height:36px;width:36px;border:1px solid #bccb8c33;background:#10251b66;font-size:23px;color:#aebb9d}.building-thumb{border-radius:10px;background:linear-gradient(135deg,#48603b,#233b28);border-color:#c9d59244}.signal-sheet .action.primary{clip-path:none;border-radius:7px;min-height:50px;background:linear-gradient(115deg,#b6cd72,#d5e39c,#c0d280);box-shadow:inset 0 1px #f3fbc266,0 4px 14px #0004}
@media(max-height:650px){.scene-top{padding-top:8px;padding-bottom:5px}.scene-top .scene-place{font-size:19px}.scene-status{padding-bottom:5px}.scene-camera{top:104px}.scene-tray{padding:10px 14px 3px}.selected-furniture{width:54px;height:54px}.selected-copy h2{font-size:25px}.scene-heading{margin-bottom:9px}.scene-tray>.action.primary{min-height:46px}.scene-tray>.scene-leave{min-height:39px}.game-header .wordmark{font-size:14px}}

/* Runtime: dimensions and placement belong to the game shell. */
body{overflow:auto}.game-shell{height:100dvh;margin:0 auto}.game-shell .interior-screen{height:auto}.scene-tray{max-height:48%}
@media(min-width:761px){.game-shell{height:calc(100dvh - 40px);margin:20px auto}}
/* Runtime selectors: preview controls never enter the player page. */
.game-nav button>span:not([data-icon]){width:auto;height:auto;border:0;background:none;display:block}.game-nav [aria-current=page]>span:not([data-icon]){border:0;box-shadow:none;background:none}.home-settings-screen{background:#0c1a13}.home-choice-body>.action+.action{margin-top:10px}.home-choice .home-choice-body>.text-button{width:100%}.shelter-copy>.home-advice{font:12px/1.6 system-ui;color:#cad2b8;padding:12px 14px;border-left:2px solid #a9be6f;background:#102116c9;margin:10px 0 16px}.shelter-copy>#manage-shelter{width:100%;text-align:left}.shelter-copy:has(#shelter-advice:not([hidden])){overflow:auto}.shelter-selection{position:absolute;z-index:3;top:58px;left:12px;right:65px;display:flex;align-items:center;gap:8px;padding:9px 10px;background:#203b28f5;border:1px solid #a7c67b66;border-radius:8px;font:11px/1.5 system-ui;color:#d3dfbb;box-shadow:0 5px 20px #0004}.shelter-selection>span{display:flex;align-items:center;gap:8px;flex:1}.shelter-selection svg{width:18px;height:18px;flex:none}.shelter-selection button{min-width:32px;min-height:36px;border:0;background:none;font-size:22px}.shelter-picking .map-status{top:140px}.signal-list .signal-row>svg{flex:none;width:28px;height:28px;color:#c0d19a}.scene-top [data-journal]{border-left:1px solid #c4b47d40}.scene-tray>.secondary{margin-top:10px}.scene-plan:focus{outline:none}.home-choice{min-height:100%}

/* Floor roles and explicit stair risk. */
.floor-story{padding:0 17px 8px;color:#c8d3ab}.floor-story>span{font:600 8px/1.5 system-ui;letter-spacing:1.6px;text-transform:uppercase;color:#c3cb94}.floor-story p{font:11px/1.45 Georgia,serif;color:#a4b394;max-width:260px;margin-top:3px}.scene-floors{padding:4px;gap:3px;background:#0b1c15db;border:1px solid #a6b87844;border-radius:8px;bottom:10px}.scene-floors button{min-height:36px;border:0;box-shadow:none;background:transparent;padding:7px 12px;color:#a0b58b}.scene-floors [aria-pressed=true]{border:1px solid #adc47955;background:#2c432b;color:#e2eab8}.scene-stage:has(.floor-story) .scene-camera{top:160px}.stair-risk{display:flex;align-items:center;justify-content:space-between;margin:18px 0 22px;padding:14px;border:1px solid #cebd7766;background:#554c251f;border-radius:7px;color:#ddcf9b;font-size:13px}.stair-risk strong{font-size:18px;color:#e5d294}[data-stay]{width:100%;margin-top:7px}
@media(max-height:650px){.floor-story{padding-bottom:5px}.floor-story p{font-size:10px}.scene-stage:has(.floor-story) .scene-camera{top:148px}.scene-camera button{height:36px;min-height:36px}.scene-camera button:first-child{height:46px;min-height:46px}}
