/* Map-first V1: compact context, one primary action, secondary actions on demand. */
.interior-mode .game-header{display:none}
.game-shell.interior-mode .interior-screen{height:100%;min-height:0;display:flex;flex-direction:column;padding:0;overflow:hidden}
.map-first-stage.scene-stage{flex:1 1 0;min-height:120px;position:relative;display:block;background:radial-gradient(ellipse at center,#26392e,#0d1913 78%)}
.map-first-top.scene-top{position:absolute;inset:0 0 auto;z-index:5;padding:12px 16px;gap:8px;height:68px;background:linear-gradient(#0c1712 65%,#0c171200)}
.map-first-top .scene-wordmark{flex:1;font:600 13px Georgia,serif;letter-spacing:2.4px;color:#e5e8d4;overflow:visible}
.map-first-top button,.scene-options summary{min-width:44px;min-height:44px;border:1px solid #82917a40;border-radius:12px;padding:0 12px;background:#102018b3;color:#dce5cc;font:12px system-ui,sans-serif}
.scene-options{position:relative;flex:none}.scene-options summary{display:grid;place-items:center;cursor:pointer;list-style:none;font-size:17px}.scene-options summary::-webkit-details-marker{display:none}
.scene-options-panel{position:absolute;right:0;top:52px;width:220px;display:grid;gap:6px;padding:10px;background:#172a20;border:1px solid #718266;border-radius:14px;box-shadow:0 10px 35px #0008;max-height:calc(100dvh - 150px);overflow:auto}
.scene-options-panel button{width:100%;text-align:left;white-space:normal;line-height:1.4;padding:9px 12px}
.scene-location{position:absolute;left:18px;right:18px;top:82px;z-index:1;pointer-events:none;color:#e5e8d4}
.scene-location .scene-eyebrow{margin:0;color:#b4c790;font:600 10px/1.5 system-ui,sans-serif;letter-spacing:1px}
.scene-location h1{font:26px/1.2 Georgia,serif;margin:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scene-location>p:last-child{font:12px/1.4 system-ui,sans-serif;color:#a8b5a4;margin:0}
.scene-location .scene-noise{display:inline;font:inherit;letter-spacing:inherit;color:inherit}
.map-first-stage .scene-map{position:absolute;inset:156px 16px 57px;margin:0;min-height:0}
.map-first-stage .scene-camera{position:absolute;inset:auto 12px 62px auto;display:grid;gap:6px;overflow:visible;border:0;background:none;border-radius:0}
.map-first-stage .scene-camera button,.map-first-stage .scene-camera button:first-child{width:44px;height:44px;min-height:44px;padding:0;flex:none;border:1px solid #82917a40;border-radius:12px;background:#14261ee8;font:21px system-ui,sans-serif;color:#c5d4b3}
.map-first-stage .scene-camera svg{width:20px;height:20px}
.map-first-stage .scene-floors{left:16px;right:68px;bottom:10px;width:max-content;max-width:calc(100% - 84px);overflow-x:auto;padding:0;gap:3px;border:0;background:#14261ee8;border-radius:12px;scrollbar-width:thin}
.map-first-stage .scene-floors button{min-width:44px;min-height:44px;padding:8px 13px;font:12px system-ui,sans-serif;border:1px solid transparent;border-radius:12px;white-space:nowrap}
.map-first-stage .scene-floors [aria-pressed=true]{background:#2c432b;border-color:#adc47955}
.map-first-stage .scene-credit{display:block;bottom:0;left:auto;right:14px;font:8px system-ui,sans-serif;pointer-events:none;color:#8e9f88}
.map-first-tray.scene-tray{flex:0 0 auto;margin:0 12px calc(12px + env(safe-area-inset-bottom));padding:14px 16px 6px;max-height:44%;overflow:auto;border:1px solid #71826655;border-radius:18px;background:#13251ff5;box-shadow:0 12px 40px #0004}
.scene-action-row{display:flex;align-items:center;gap:12px;min-height:48px}
.map-first-tray .selected-copy{flex:1;min-width:0}.map-first-tray h2{font:21px/1.2 Georgia,serif;color:#e5e8d4;margin:0;letter-spacing:0}
.map-first-tray .selected-state{font:12px/1.4 system-ui,sans-serif!important;color:#a9b7a2!important;margin:5px 0 0}
.map-first-tray .action.primary{width:auto;min-height:44px;flex:none;margin:0;padding:10px 16px;clip-path:none;border-radius:12px;border:0;background:#c6da92;box-shadow:none;text-shadow:none;color:#182417;font:650 14px/1.2 system-ui,sans-serif}
.map-first-tray .action.primary::before{display:none}.map-first-tray .action.primary:disabled{background:#34452e;color:#c0cbb0;opacity:.8;cursor:default}
.scene-dock-links{display:flex;gap:6px;margin-top:12px;padding-top:4px;border-top:1px solid #81957526}
.scene-dock-links button,.scene-dock-links .scene-leave{flex:1;min-width:0;min-height:44px;margin:0;padding:5px 2px;display:flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:8px;background:none;color:#b8c7af;font:12px/1.4 system-ui,sans-serif;text-align:center;letter-spacing:0}
.scene-dock-links svg{width:17px;height:17px}.scene-dock-links button:hover{background:#ffffff08}
.scene-challenge{padding-top:8px}.scene-challenge .action{width:100%;margin-top:8px}.scene-challenge>p{font:12px/1.4 system-ui,sans-serif;color:#c5d4b3}
.map-first-top :focus-visible,.map-first-tray :focus-visible,.map-first-stage .scene-camera :focus-visible,.map-first-stage .scene-floors :focus-visible{outline:2px solid #e4efad;outline-offset:2px}
body:has(.interior-mode) .toast{top:auto;bottom:calc(165px + env(safe-area-inset-bottom));left:50%;width:max-content;max-width:calc(100% - 32px);padding:9px 14px;border-radius:14px;font-size:12px;pointer-events:none}
@media(max-height:650px){.map-first-top.scene-top{height:60px;padding:8px 12px}.scene-location{top:68px}.scene-location h1{font-size:22px}.scene-location>p:last-child{display:none}.map-first-stage .scene-map{inset:121px 14px 54px}.map-first-tray.scene-tray{padding:10px 12px 4px;margin-bottom:8px}.map-first-tray h2{font-size:19px}.scene-dock-links{margin-top:8px}.map-first-stage .scene-camera{bottom:60px}}
@media(max-width:359px){.map-first-top .scene-wordmark{font-size:11px;letter-spacing:1.5px}.map-first-top.scene-top{padding-inline:10px}.map-first-tray.scene-tray{margin-inline:8px;padding-inline:10px}.scene-action-row{gap:8px}.map-first-tray .action.primary{padding-inline:12px}.scene-location .scene-eyebrow{font-size:9px}}
