/* The existing room chooser now carries floor context without a second map. */
.scene-trigger-copy { display:flex; flex-direction:column; align-items:flex-start; gap:1px; min-width:0; text-align:left; }
.scene-trigger-copy > [data-i18n] { font-size:11px; color:#bbab8f; }
.scene-trigger .scene-trigger-current { display:block; max-width:250px; padding:0; border:0; color:#f0dfc1; font-size:13px; }
.scene-group { position:static; }
.scene-group-title { margin:10px 12px 5px; padding-top:9px; border-top:1px solid #d4b78124; color:#a99a81; font-size:11px; letter-spacing:.06em; }
.scene-group:first-child .scene-group-title { border-top:0; margin-top:0; }
.hall-game-entry { left:59.5%; top:61%; width:8.5%; height:26%; }
.kitchen-garden-entry { left:92%; top:51%; width:5%; height:26%; }
.story-route-action { position:absolute; z-index:12; right:var(--gutter); bottom:148px; pointer-events:none; }
.story-route-action .story-next { display:flex; align-items:center; gap:10px; pointer-events:auto; min-height:44px; padding:7px 12px; border:1px solid #d4b78150; border-radius:6px; color:#ecddc3; background:#151913b0; backdrop-filter:blur(6px); font-size:13px; cursor:pointer; }
.story-route-action .story-next[hidden] { display:none; }
.story-route-action .story-next:hover { background:#2b271de8; border-color:#d4b781a0; }
.story.story-enhanced .story-actions { bottom:212px; }
.story.story-enhanced .room-view-tools { bottom:276px; }
.castle-return { position:fixed; z-index:20; left:var(--gutter); bottom:26px; min-height:48px; padding:10px 18px; border:1px solid #cba97777; border-radius:6px; color:#eddcbf; background:#151b19ec; box-shadow:0 5px 22px #0003; font-size:13px; cursor:pointer; }
.castle-return[hidden] { display:none!important; }
.castle-return::before { content:'↖'; margin-right:9px; color:#d5ac68; }
.story-route-action button:focus-visible,.castle-return:focus-visible,.bath-controls button:focus-visible { outline:2px solid #f4e1bb; outline-offset:3px; }
/* Water follows the painted basin and the same camera transform as the room. */
.bath-water-ink,.bath-steam { position:absolute; inset:0; width:100%; height:100%; z-index:3; pointer-events:none; }
.bath-water-touch { position:absolute; inset:0; width:100%; height:100%; border:0; padding:0; background:transparent; clip-path:polygon(33% 65.2%,39% 61.9%,52% 61.3%,66% 61.9%,73% 63.3%,74.2% 65.5%,70.6% 68.2%,70% 70.4%,59% 71.9%,52.8% 71.6%,50.9% 73.7%,40.7% 73%,34.5% 69.5%); z-index:4; cursor:crosshair; touch-action:manipulation; }
.bath-water-touch:focus-visible { background:#f4e1bb10; }
.bath-knob { position:absolute; z-index:5; left:79%; top:72.8%; width:3.4%; aspect-ratio:1; min-width:44px; min-height:44px; padding:3px; border:0; background:transparent; cursor:pointer; filter:drop-shadow(0 3px 2px #24110dc0); touch-action:none; }
.bath-knob svg { display:block; width:100%; height:100%; }
.bath-knob .dial-hand { transform-origin:32px 32px; transform:rotate(var(--dial-angle,0deg)); transition:transform .4s; }
.bath-knob:focus-visible { outline:2px solid #ffe2ab; outline-offset:3px; border-radius:50%; }
.bath-controls { position:absolute; z-index:12; left:var(--gutter); bottom:148px; width:min(290px,40vw); color:#e8d6b9; }
.bath-controls[hidden] { display:none!important; }
.bath-controls-title { display:block; margin-bottom:5px; font-size:11px; color:#c9b797; }
.bath-temperature-options { display:flex; padding:3px; gap:3px; border:1px solid #d4b78140; border-radius:7px; background:#111913b8; backdrop-filter:blur(6px); }
.bath-temperature-options button { flex:1; min-height:44px; padding:6px 10px; border:1px solid transparent; border-radius:4px; color:#cbbda7; background:transparent; font-size:12px; cursor:pointer; }
.bath-temperature-options button[aria-pressed=true] { color:#ffe4b3; border-color:#d4b78145; background:#d4a96022; }
.bath-climate { margin:7px 0 0; min-height:2.8em; font-size:11px; line-height:1.4; color:#c2b399; text-shadow:0 1px 4px #000; }
@media(max-width:760px),(max-aspect-ratio:4/5) {
 .scene-trigger .scene-trigger-current { max-width:min(185px,46vw); font-size:12px; }
 .scene-trigger-copy > [data-i18n] { font-size:10px; }
 .story-route-action { left:24px; right:auto; bottom:126px; }
 .story.story-enhanced .story-actions { bottom:188px; }
 .story.story-enhanced .room-view-tools { bottom:250px; }
 .story-route-action .story-next-label { position:static; width:auto; height:auto; clip-path:none; white-space:normal; }
 .bath-controls { left:24px; right:24px; bottom:242px; width:auto; }
 .bath-controls-title { display:none; }
 .bath-climate { min-height:0; margin-top:4px; font-size:10px; }
 .bath-knob { display:none; }
 .castle-return { left:24px; bottom:24px; }
}
@media(prefers-reduced-motion:reduce) { .bath-knob .dial-hand { transition:none; } }
.bath-controls { width:min(340px,44vw); }
.bath-controls-buttons { display:flex; gap:7px; align-items:stretch; }
.bath-temperature-options { flex:1; min-width:0; }
.bath-touch-action { min-height:44px; max-width:80px; padding:6px 10px; border:1px solid #d4b78140; border-radius:7px; background:#111913b8; color:#e3cfaf; font-size:11px; line-height:1.4; cursor:pointer; }
@media(max-width:760px),(max-aspect-ratio:4/5) { .bath-controls { width:auto; } .bath-temperature-options button { padding:6px 7px; font-size:11px; } }
/* The arrival action becomes the room chooser once inside the castle. */
.story-route-action { z-index:17; max-width:calc(100vw - 48px); }
.story-route-action .scene-picker { pointer-events:auto; }
.story-route-action .scene-picker[hidden] { display:none!important; }
.story[data-inside=true] .story-route-action .story-next { display:none!important; }
.story-route-action .scene-menu { left:auto; right:0; }
.story-route-action .scene-trigger { min-height:52px; }
.story-route-action .scene-trigger-copy > [data-i18n] { font-size:14px; color:#f0dfc1; }
.story-route-action .scene-trigger-current { font-size:11px; color:#bbaa90; max-width:235px; }
.story-route-action .scene-menu .story-chapters { max-height:min(416px,calc(100svh - 390px)); }
.story-footer { justify-content:flex-end; }
@media(max-width:760px),(max-aspect-ratio:4/5) {
 .story-route-action { left:auto; right:24px; bottom:126px; }
 .story-route-action .scene-menu .story-chapters { max-height:min(384px,calc(100svh - 360px)); }
 .story-route-action .scene-trigger-current { max-width:min(220px,54vw); font-size:11px; }
 .story-route-action .scene-trigger-copy > [data-i18n] { font-size:14px; }
}
