body{background:#18251b}#game{margin:auto;z-index:1}#chapterVeil{position:fixed;inset:0;opacity:0;pointer-events:none;transition:opacity .5s;}#wholeFull{border:1px solid #e8d6ae88;background:#192c35b8;font:21px system-ui}#top{}#fullMsg{position:fixed;right:8px;top:50px;max-width:240px;background:#152e3dea;color:#fff3d4;padding:8px 10px;border-radius:9px;z-index:21001;font:12px system-ui}#fullMsg[hidden]{display:none}#sceneBackdrop{position:fixed;inset:-20px;z-index:0;pointer-events:none;background-position:center;background-size:cover;filter:blur(18px);opacity:.7}#dockPuzzle{width:100vw!important;height:100dvh!important;position:fixed!important;inset:0!important}#questOverlay{}@media(orientation:landscape){#game{width:min(100vw,66dvh);height:100dvh}#prologue{background:#141e30}#sleepArt{object-fit:contain}#prologueBottom{left:50%;right:auto;transform:translateX(-50%);width:min(80vw,460px);bottom:3%;padding:8px;font-size:14px}#enterDream{padding:7px 12px;margin-top:5px;font-size:15px}#questOverlay{}.questPortrait{}}@media(orientation:portrait){#game{width:100vw;height:100dvh}}
/* Bedroom presentation: an opaque self-contained 9:20 art stage.
   The surrounding area uses only the active bedroom image, never city art. */
#prologue,#wakeEnding34{isolation:isolate;background:#141e30!important;overflow:hidden}
#prologue::before,#wakeEnding34::before{content:"";position:absolute;inset:-24px;background-image:var(--bedroom-art,none);background-size:cover;background-position:center;filter:blur(20px);opacity:.58;pointer-events:none;z-index:0}
#prologue>#sleepArt,#wakeEnding34>img{position:absolute!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(100vw,45dvh)!important;height:min(100dvh,222.222222vw)!important;object-fit:contain!important;object-position:center!important;z-index:1}
#prologueBottom,#prologueTap39,#wakeEnding34 .wakeCaption{z-index:2}
#wakeEnding34 #secretBook45{z-index:3}

/* One shared artwork stage. Portrait phones use the available viewport;
   wide displays keep the original 9:20 composition. All art anchors use the same normalized coordinates. */
html body #game,
html body #prologue>#sleepArt,
html body #wakeEnding34>img {
 position:absolute!important;inset:0!important;left:0!important;top:0!important;
 right:0!important;bottom:0!important;transform:none!important;margin:auto!important;
 width:min(100vw,45dvh)!important;height:min(100dvh,222.222222vw)!important;
}
html body #game{overflow:hidden!important}
html body #game #bg,html body #prologue>#sleepArt,html body #wakeEnding34>img {
 object-fit:fill!important;object-position:center!important;
}
html body #game #bg{width:100%!important;height:100%!important}
@media (orientation:portrait) and (max-width:900px){
 html body #game,html body #prologue>#sleepArt,html body #wakeEnding34>img {
  width:100vw!important;height:100dvh!important;
 }
 html body #prologue,html body #wakeEnding34{width:100vw!important;height:100dvh!important}
 html body #prologue::before,html body #wakeEnding34::before{display:none!important}
}
