
/* 3.9 — a fixed reading area, one utility rail, no story buttons. */
:root{--ink-ui-left:max(12px,env(safe-area-inset-left));--ink-ui-top:max(8px,env(safe-area-inset-top));--ink-tool-top:calc(var(--ink-ui-top) + 30px);--ink-story-top:calc(var(--ink-ui-top) + 89px);--ink-ui-bottom:max(12px,env(safe-area-inset-bottom));}
html body canvas.inkMist37{opacity:.68!important;pointer-events:none!important}
html body :is(#questText,#storyText,#minorBubbleText,#message,#cinemaText,#departureCaption,#prologueWords,.ink-air)::before,html body #minorBubble.living-ink::before{content:none!important;display:none!important;background:none!important}
html body :is(#questText,#storyText,#minorBubbleText,#message,#cinemaText,#departureCaption,#prologueWords,.ink-air){text-shadow:0 0 2px #fffdf3,0 0 5px #fffdf3b0!important;-webkit-text-stroke:.8px #fffdf3;paint-order:stroke fill;pointer-events:none!important}
html body :is(#questNext,#storyNext,#enterDream,#questFooter,#storyFooter){display:none!important}
html body :is(.inkTapHint,#prologueTap39){position:absolute!important;left:50%!important;right:auto!important;bottom:var(--ink-ui-bottom)!important;top:auto!important;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100vw - 32px)!important;color:#fff9ed!important;text-shadow:0 1px 4px #18251b,0 1px 2px #18251b!important;font:400 18px/1.16 EliseyHand,cursive!important;white-space:normal!important;text-align:center!important;padding:0!important;margin:0!important;pointer-events:none!important;background:none!important;border:0!important;border-image:none!important;box-shadow:none!important;-webkit-text-stroke:0!important;z-index:2}
html body :is(.inkTapHint,#prologueTap39)::before,html body :is(.inkTapHint,#prologueTap39)::after{content:none!important;display:none!important}
html body :is(#wholeSound,#wholeFull,#bagGameButton,#hud #pause){position:fixed!important;top:var(--ink-tool-top)!important;bottom:auto!important;right:auto!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;margin:0!important;padding:4px!important;background:#192f38a8!important;border:1px solid #fff9ed88!important;border-image:none!important;border-radius:50%!important;box-shadow:0 1px 4px #14262b77!important;color:#fff9ed!important;font:400 22px/1 system-ui!important;pointer-events:auto!important;transform:none!important;text-align:center!important}
html body #bagGameButton{left:calc(var(--ink-ui-left) + 96px)!important;z-index:22000!important}
html body #wholeSound{left:var(--ink-ui-left)!important}
html body #wholeFull{left:calc(var(--ink-ui-left) + 48px)!important}
html body #hud #pause{left:calc(var(--ink-ui-left) + 144px)!important;z-index:16!important}
html body :is(#bagGameButton,#hud #pause)[hidden]{display:none!important}
html body #bagGameButton img{width:100%!important;height:100%!important;object-fit:contain!important;pointer-events:none!important}
html body #bagGameToast{font-size:18px!important;z-index:22001!important}
html body #bagGameToast[hidden]{}
html body #fullMsg{top:calc(var(--ink-tool-top) + 48px)!important;left:var(--ink-ui-left)!important;right:auto!important;max-width:calc(100vw - 24px)!important}
@media(orientation:landscape){:root{--ink-tool-top:calc(var(--ink-ui-top) + 27px);--ink-story-top:calc(var(--ink-ui-top) + 82px)}html body :is(.inkTapHint,#prologueTap39){font-size:17px!important}}

html body #game #top{position:fixed!important;left:var(--ink-ui-left)!important;right:auto!important;top:var(--ink-ui-top)!important;bottom:auto!important;width:max-content!important;max-width:calc(100vw - 24px)!important;max-height:none!important;padding:0!important;margin:0!important;transform:none!important;font:400 23px/1.1 EliseyHand,cursive!important;text-align:left!important;overflow:visible!important}
html body:has(#questOverlay[style*="flex"]) #game #top{visibility:visible!important}
html body #minorBubble.living-ink{max-width:calc(100% - 24px)!important;}
html body #prologueBottom{position:absolute!important;top:auto!important;bottom:calc(var(--ink-ui-bottom) + 48px)!important;left:50%!important;right:auto!important;width:min(90vw,520px)!important;max-width:calc(100vw - 30px)!important;transform:translateX(-50%)!important;overflow:visible!important;max-height:none!important;padding:0!important;margin:0!important;isolation:isolate;background:none!important;filter:none!important;border:0!important;box-shadow:none!important;}
html body #prologueWords{display:block!important;position:relative!important;width:100%!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:5px 12px!important;font:400 clamp(23px,6vw,30px)/1.24 EliseyHand,cursive!important;isolation:isolate;}
html body #prologueWords,html body #prologueWords .ink-letter{color:#102c50!important;text-shadow:0 0 3px #fffdf3!important;-webkit-text-stroke:.45px #fffdf3!important;}html body #prologueWords:empty{visibility:hidden!important}
html body #prologue[hidden]{display:none!important}
html body:has(#prologue:not([hidden])) :is(#wholeSound,#wholeFull){top:var(--ink-ui-top)!important}
html body:has(#prologue:not([hidden])) #wholeSound{left:var(--ink-ui-left)!important}
html body:has(#prologue:not([hidden])) #wholeFull{left:calc(var(--ink-ui-left) + 48px)!important}
html body:has(#dockPuzzle[style*="block"]) :is(#wholeSound,#wholeFull){top:var(--ink-ui-top)!important;left:auto!important;right:12px!important}
html body:has(#dockPuzzle[style*="block"]) #wholeSound{right:60px!important}
@media(orientation:landscape){html body #game #top{font-size:21px!important}html body #prologueWords{font-size:24px!important}html body #prologueBottom{width:min(75vw,520px)!important;bottom:calc(var(--ink-ui-bottom) + 33px)!important}}
