html,body{overscroll-behavior:none}#world{touch-action:none}button{touch-action:manipulation}button:focus-visible{outline:3px solid #efce82;outline-offset:3px}#rotateScreen{position:fixed;inset:0;background:#102b30;z-index:10000;display:grid;place-items:center;text-align:center;padding:24px;color:#f3deb3}#rotateScreen[hidden]{display:none}#rotateScreen span{font-size:64px;color:#d8b66b}#rotateScreen p{line-height:1.6}.trailChoices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.trailChoices button{text-align:left;min-height:64px}.trailChoices small{display:block;margin-top:7px;font-size:13px;opacity:.8}.trailPanel{max-width:840px}#fullScreenBtn{min-width:44px;min-height:44px}.watchingMovie #forestSpeech,.watchingMovie #achievement{display:none!important}
@media (pointer:coarse),(max-height:550px){header{top:max(8px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));gap:8px}.brand{font-size:12px}.brand span{display:none}.quest{font-size:12px;max-width:52vw;padding:8px}nav{bottom:max(8px,env(safe-area-inset-bottom));right:max(10px,env(safe-area-inset-right));gap:7px}nav button{min-width:48px;min-height:46px;padding:6px 10px}nav span{font-size:11px}#hint{bottom:12px;left:12px;max-width:48vw;font-size:11px}#overlay{padding:8px max(12px,env(safe-area-inset-left))}.panel{max-height:calc(100dvh - 16px);padding:18px;overflow-y:auto}.intro{max-height:calc(100dvh - 16px);padding:22px}.intro h1{font-size:32px}.intro p{font-size:15px;line-height:1.4;margin:10px 0}.intro .copy{max-width:70%}.storyTalk{grid-template-columns:110px minmax(260px,1fr) 110px!important;gap:10px!important;padding:12px!important}.storyText{padding:16px!important}.storyText h2{font-size:23px;margin:10px 0}.storyText p{font-size:15px;line-height:1.45;margin-bottom:10px}.chapterRibbon{padding-bottom:8px}.storyText .answers{margin:12px 0;gap:8px}.storyText .answers button{padding:10px 10px 10px 43px;min-height:44px}.storyText .actions{margin-top:12px}.storyText button{min-height:44px}.castPortrait{max-height:220px}.diaryPage{padding:22px}.diaryPage h2{font-size:26px}.handwritten{font-size:16px}.trailChoices{gap:8px}#forestSpeech{max-width:210px;padding:10px 14px}#forestSpeech .speechWords{font-size:14px}.moviePanel .actions button{min-height:44px}}
@media (orientation:landscape) and (max-height:550px){
 #overlay.storyDialogue{padding:8px 12px}.panel.storyTalk{grid-template-columns:100px minmax(0,1fr) 100px!important;max-height:calc(100dvh - 16px);align-items:start}.storyTalk .leftPortrait{grid-row:1;grid-column:1;width:100%;position:sticky;top:10px}.storyTalk .rightPortrait{grid-row:1;grid-column:3;width:100%;position:sticky;top:10px}.storyTalk .storyText{grid-row:1;grid-column:2;min-width:0}.storyPortrait figcaption{height:auto;padding-top:8px}.storyPortrait strong{font-size:14px}.storyPortrait figcaption span{display:none}.storyText .chapterRibbon{display:none}.storyText h2{font-size:21px}.storyText .answers button{font-size:14px}.chessPanel.storyTask .taskBookmark{display:none}.chessPanel .chessHeader h2{font-size:22px;margin:4px 0 8px}.chessPanel .chessHeader .eyebrow{display:none}.chessPanel.storyTask .chessLayout{display:grid;grid-template-columns:minmax(230px,calc(100dvh - 90px)) minmax(0,1fr);gap:18px}.chessPanel .chessFrame{width:100%;padding:18px;margin:0}.chessInstructions .mousePortrait,.chessInstructions .knightDiagram{display:none}.chessInstructions p{font-size:14px}.chessActions button{min-height:44px;font-size:14px}.chessMessage{min-height:24px;margin-top:6px!important}.storyTask>.taskBookmark{padding:5px 12px;margin-bottom:8px}.storyTask>.taskBookmark>span,.storyTask>.taskBookmark>p{display:none}
}
@media (orientation:landscape) and (max-height:550px){.chessInstructions>p:first-of-type{margin-top:4px}.chessInstructions p{margin-bottom:8px;line-height:1.35}.chessInstructions small{font-size:12px}.chessInstructions .chessMessage{font-size:13px!important;line-height:1.3!important}.chessInstructions .chessActions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.chessInstructions .chessActions button{padding:6px 8px;font-size:13px;min-height:40px}}
