
/* 3.8: one visual vocabulary; no inherited paper textures or double frames. */
html body :is(#questPanel,#storyPanel,#questOverlay,#storyBox,#prologueBottom,#minorBubble,#minorBubbleText,#dockChoicesPanel,.dockChoicesPanel,.unifiedChoicePanel,#intro .panel,#end .panel,#overlay .card,#pauseOverlay .card,#endOverlay .card,#overlay #panel,#chapterError){background:transparent!important;background-image:none!important;border:0!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;outline:none!important;backdrop-filter:none!important;}
html body :is(#questPanel,#storyPanel,#questOverlay,#storyBox,#prologueBottom,#minorBubble,.dockChoicesPanel,.unifiedChoicePanel,#intro .panel,#end .panel,#overlay .card,#pauseOverlay .card,#endOverlay .card,#overlay #panel)::after,html body :is(#questPanel,#storyPanel,#questOverlay,#storyBox,#prologueBottom,#minorBubble,.dockChoicesPanel,.unifiedChoicePanel,#intro .panel,#end .panel,#overlay .card,#pauseOverlay .card,#endOverlay .card,#overlay #panel)::before{content:none!important;display:none!important;}
html body :is(#questHeader,#questDivider,#questSpeaker,#questTestLabel,#questProgress,#storyHeader,#storyName,#storyDivider,#minorBubbleTail,#minorBubbleLeader,#thought,#smithSpeech,#potterSpeech,#marketSpeech){display:none!important;}
/* White ink for information, not speech. */
html body :is(#top,#loc,#sub,#reserveInfo,#fishScore,#lives,#hud .pill,#hud .pill small,#cityGoal,#hint,#toast,#fullMsg,#fullNote,#bagGameToast,#note,#status,#count,#moves,#lifeCount,#stormHud,#difficultyInfo,#cargoInfo,#voyageLoading,#cargoChoice,#cargoLocked,#chapterError,#bootText21,.inkTapHint,#overlay #panel h1,#overlay #panel h2,#overlay #panel p,#overlay #panel li,#overlay #panel label,#intro .panel h1,#intro .panel p,#end .panel h1,#end .panel p,#chapterComplete,#overlay .card h1,#overlay .card p,#pauseOverlay .card h1,#pauseOverlay .card p,#endOverlay .card h1,#endOverlay .card p,.dockChoicesPanel h2,.dockChoicesPanel p,.dockChoicesPanel small,.eyebrow,#guide){background:none!important;background-image:none!important;border:0!important;border-image:none!important;box-shadow:none!important;border-radius:0!important;color:#fff9ed!important;font-family:EliseyHand,cursive!important;font-weight:400!important;letter-spacing:0!important;text-shadow:0 1px 4px #18251b,0 1px 2px #18251b!important;-webkit-text-stroke:0!important;paint-order:normal!important;}
html body :is(#top,#loc,#sub,#reserveInfo,#fishScore,#lives,#hud .pill,#cityGoal,#hint,#toast,#fullMsg,#fullNote,#bagGameToast,#note,#status,#count,#moves,#lifeCount,#stormHud,#difficultyInfo,#cargoInfo,#voyageLoading,#cargoChoice,#cargoLocked,#chapterError,#bootText21,.inkTapHint,#overlay #panel h1,#overlay #panel h2,#overlay #panel p,#overlay #panel li,#overlay #panel label,#intro .panel h1,#intro .panel p,#end .panel h1,#end .panel p,#chapterComplete,#overlay .card h1,#overlay .card p,#pauseOverlay .card h1,#pauseOverlay .card p,#endOverlay .card h1,#endOverlay .card p,.dockChoicesPanel h2,.dockChoicesPanel p,.dockChoicesPanel small,.eyebrow,#guide) :not(button):not(img):not(svg):not(path){color:inherit!important;font-family:inherit!important;text-shadow:inherit!important;-webkit-text-stroke:0!important;}
html body :is(#top,#loc,#sub,#reserveInfo,#fishScore,#lives,#hud .pill,#cityGoal,#hint,#toast,#fullMsg,#fullNote,#bagGameToast,#note,#status,#count,#moves,#lifeCount,#stormHud,#difficultyInfo,#cargoInfo,#voyageLoading,#cargoChoice,#cargoLocked,#chapterError,#bootText21,.inkTapHint,.dockChoicesPanel h2,.dockChoicesPanel p,#overlay #panel h1,#overlay #panel h2,#overlay #panel p,#intro .panel h1,#intro .panel p,#end .panel h1,#end .panel p,#overlay .card h1,#overlay .card p,#pauseOverlay .card h1,#pauseOverlay .card p,#endOverlay .card h1,#endOverlay .card p)::before,html body :is(#top,#loc,#sub,#reserveInfo,#fishScore,#lives,#hud .pill,#cityGoal,#hint,#toast,#fullMsg,#fullNote,#bagGameToast,#note,#status,#count,#moves,#lifeCount,#stormHud,#difficultyInfo,#cargoInfo,#voyageLoading,#cargoChoice,#cargoLocked,#chapterError,#bootText21,.inkTapHint,.dockChoicesPanel h2,.dockChoicesPanel p,#overlay #panel h1,#overlay #panel h2,#overlay #panel p,#intro .panel h1,#intro .panel p,#end .panel h1,#end .panel p,#overlay .card h1,#overlay .card p,#pauseOverlay .card h1,#pauseOverlay .card p,#endOverlay .card h1,#endOverlay .card p)::after{content:none!important;display:none!important;}
html body :is(#top,#loc,#sub,#reserveInfo,#fishScore,#lives,#hud .pill,#cityGoal,#hint,#toast,#fullMsg,#fullNote,#bagGameToast,#note,#status,#count,#moves,#lifeCount,#stormHud) canvas.inkMist37{display:none!important;}
html body :is(#top,#loc,#sub,#reserveInfo,#fishScore,#lives,#hud .pill,#cityGoal,#hint,#toast,#fullMsg,#fullNote,#bagGameToast,#note,#status,#count,#moves,#lifeCount,#stormHud){font-size:clamp(16px,4.6vw,23px)!important;line-height:1.14!important;pointer-events:none!important;overflow:visible!important;}
html body #hud .pill small{font-size:14px!important;}
html body #bagGameToast{position:fixed!important;top:auto!important;bottom:calc(max(10px,env(safe-area-inset-bottom)) + 66px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100vw - 108px)!important;padding:0 3px!important;text-align:center!important;font:400 19px/1.1 EliseyHand,cursive!important;}
html body #bagGameToast[hidden]{}
html body #hint{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 65px)!important;top:auto!important;}
html body :is(#questText,#storyText,#minorBubbleText,#message,#cinemaText,#departureCaption,#prologueWords,.ink-air){border:0!important;border-image:none!important;background:none!important;box-shadow:none!important;outline:0!important;border-radius:0!important;}
html body #top button,html body #top input,html body #top select{pointer-events:auto!important;}
/* Only narrative text has the existing per-line mist. */
html body :is(#questText,#storyText,#minorBubbleText,#message,#cinemaText,#departureCaption,#prologueWords,.ink-air).ink-mist-ready::before{content:none!important;}
html body :is(#dockChoices,#intro,#end,#overlay,#pauseOverlay,#endOverlay){background:rgba(5,17,24,.55)!important;}
html body :is(#dockChoices,#intro,#end,#overlay,#pauseOverlay,#endOverlay)[hidden]{display:none!important;}
html body :is(#questNext,#questClose,#storyNext,#action,#cityAction,#enterDream,#dockPuzzleClose,#puzzleBack,#skipDeparture,#restart,#resume,#reset,#again,#explore,.dockChoiceButtons button,#overlay #panel button,#wakeChoice34 button,#wakeEnding34 button){font-family:EliseyHand,cursive!important;border-image:none!important;border:1px solid #e1d5b7!important;border-radius:18px!important;background:#fdf7e7ed!important;color:#193656!important;text-shadow:none!important;box-shadow:0 2px 8px #172b3655!important;-webkit-text-stroke:0!important;}
html body :is(#questNext,#questClose,#storyNext,#action,#cityAction,#enterDream,#dockPuzzleClose,#puzzleBack,#skipDeparture,#restart,#resume,#reset,#again,#explore,.dockChoiceButtons button,#overlay #panel button,#wakeChoice34 button,#wakeEnding34 button) :is(span,small,b,strong){color:inherit!important;text-shadow:none!important;}
@media(orientation:landscape){html body #bagGameToast{bottom:62px!important;font-size:17px!important;}html body :is(#top,#loc,#sub,#reserveInfo,#fishScore,#lives,#hud .pill,#cityGoal,#hint,#toast,#fullMsg,#fullNote,#note,#status,#count,#moves,#lifeCount,#stormHud){font-size:18px!important;}}
