/* Keep controls usable on folded, narrow and short screens. */
dialog:not([open]){display:none}
dialog.dialog-fallback[open]{position:fixed;inset:0;margin:auto;z-index:1000;box-shadow:0 0 0 100vmax #0a1715e8,0 20px 100px #0009}
.map-dialog{height:100vh;max-height:100vh;height:100dvh;max-height:100dvh}
.video-stage-toolbar{box-sizing:border-box}
.video-stage-toolbar>div{min-width:0}
.scene-viewport[data-scene-fit="true"] .room-tour-controls{display:none}

/* The larger mobile controls move together with their matching room cassette. */
.tape-selection .tape.touch-tape-press{transform:translateY(-9px) rotate(-3deg) scale(1.07);filter:brightness(1.15);box-shadow:0 8px 16px #0008;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.archive-cassette.touch-tape-press{transform:translateY(-9px) rotate(-1.5deg) scale(1.025);filter:brightness(1.12);box-shadow:0 8px 0 #183021,0 12px 0 #15261a,0 22px 28px #33432d55;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
@media (prefers-reduced-motion:reduce){
 .tape-selection .tape.touch-tape-press,.archive-cassette.touch-tape-press{transform:none;transition:none}
}

@media(max-width:380px){
 .room-intro{top:184px;width:auto;max-width:none;right:5%}
 .room-intro h1{font-size:25px;line-height:1.35}
 .room-intro .eyebrow{margin-bottom:8px}
 .room-intro .explore-note{margin-top:8px}
 .intro-xiangyin{top:113px}
 .tape-selection{gap:4px}
 .video-stage-title{display:none}
 .video-stage-toolbar{justify-content:flex-end}
 .video-stage-toolbar button{padding:8px 9px}
}

@media(max-height:660px){
 .room{min-height:0;height:100vh;height:100svh}
}
@media(max-height:550px) and (min-width:701px){
 .room-topline{top:77px}
 .room-intro{top:100px}
 .room-intro h1{font-size:24px;line-height:1.25}
 .room-intro .eyebrow{margin-bottom:6px}
 .room-intro .explore-note{margin-top:7px}
 .intro-xiangyin{top:97px}
 .control-desk{bottom:30px;padding:6px 12px;gap:5px}
 .tape-caption{display:none}
 .tape-selection .tape{height:45px;width:58px}
 .tape-selection .tape-paper{height:24px}
 .tape-selection .tape-paper b{font-size:16px}
 .tape-selection .tape-reels{display:none}
 .room-switches{padding-top:4px;gap:16px}
 .room-bottomline{height:30px}
 .room-tour-controls{bottom:170px}
}
@media(max-height:550px) and (max-width:700px){
 .room-intro{top:108px}
 .intro-xiangyin{top:108px}
 .room-intro h1{font-size:24px}
 .room-intro .explore-note{margin-top:6px}
 .control-desk{bottom:30px;padding:7px 10px}
 .tape-selection{margin-bottom:4px}
 .tape-selection .tape{height:42px}
 .tape-selection .tape-paper{height:24px}
 .room-switches{padding-top:4px}
 .room-bottomline{height:30px}
 .room-tour-controls{bottom:166px}
}
@media(max-height:550px) and (max-width:380px){
 .room-intro{top:170px}
 .room-intro .explore-note{display:none}
}
@media(max-height:400px){
 .room-intro,.intro-xiangyin,.room-topline{display:none}
}
