html.story-is-open{overflow:hidden}.story-experience{position:fixed;inset:0;z-index:80;background:#071a24;color:#fff4d9;overflow:hidden;isolation:isolate;height:100dvh;overscroll-behavior:contain}.story-experience::before{content:'';position:absolute;inset:-40px;background-image:var(--scene-image);background-position:center;background-size:cover;filter:blur(32px) brightness(.4);z-index:-1}.scene-stage{position:absolute;inset:0;max-width:780px;margin:auto;overflow:hidden;background:#102a38}.scene-art{width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(1.01);transition:filter .4s;user-select:none;pointer-events:none}.scene-shade{position:absolute;inset:0;background:linear-gradient(#04141cb8,transparent 25%,transparent 40%,#061922e8 87%,#061922);pointer-events:none}.scene-header{position:relative;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:8px;max-width:780px;margin:auto;padding:calc(12px + env(safe-area-inset-top)) 16px 8px;font-size:11px;letter-spacing:.06em}.scene-header button,.scene-ambience button{border:1px solid #fff1c34d;border-radius:99px;background:#0b283cc9;color:#fff5d8;padding:10px 13px;font-size:12px;min-height:40px}.scene-ambience{position:relative;z-index:9;max-width:780px;margin:auto;padding:0 16px}.scene-ambience .ambience-controls{justify-content:end;width:auto;flex-wrap:wrap;gap:6px}.scene-ambience input{max-width:70px}.scene-narration{position:absolute;z-index:5;bottom:max(24px,env(safe-area-inset-bottom));left:max(20px,calc((100% - 720px)/2));right:max(20px,calc((100% - 720px)/2));max-width:720px;margin:auto;transition:opacity .25s}.scene-eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:10px;color:#f1cf85;font-weight:800;margin:0 0 12px}.scene-narration h1{font-family:Manrope,Arial,sans-serif;font-size:clamp(29px,4.7vw,48px);line-height:1.06;letter-spacing:-.04em;margin:0 0 14px;max-width:600px;text-wrap:balance}.scene-narration>p:not(.scene-eyebrow){font-size:14px;line-height:1.65;color:#e1e8df;max-width:620px;margin:0 0 20px}.scene-actions{display:flex;gap:9px;flex-wrap:wrap}.scene-actions button,.story-launch{border:1px solid #ebd49e;border-radius:12px;background:#ebcc88;color:#1a3839;padding:13px 18px;font-size:13px;font-weight:800;min-height:46px}.scene-actions #sceneExploreNext{background:#102f3cbf;color:#fff2cf}.story-launch{margin-bottom:15px}.scene-companions{position:absolute;inset:0;pointer-events:none;z-index:3}.scene-companion{position:absolute;transform:translate(-50%,-100%);height:var(--figure-height);min-height:65px;max-height:150px;min-width:45px;padding:0;background:none;border:0;pointer-events:auto;filter:drop-shadow(0 5px 3px #11293c66);cursor:pointer;animation:scene-figure-arrive 1s both}.scene-companion img{height:100%;width:auto;max-width:105px;object-fit:contain;pointer-events:none}.scene-companion small{position:absolute;left:50%;bottom:-22px;transform:translateX(-50%);background:#102d37cf;color:#fff0d0;border:1px solid #f3d58c66;border-radius:7px;padding:3px 6px;font-size:9px;white-space:nowrap;opacity:.8}.scene-companion:hover small,.scene-companion:focus-visible small{opacity:1}.scene-companion.waving{animation:scene-wave 1.3s ease-in-out}.scene-secret{position:absolute;z-index:4;left:48%;top:57%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:none;color:#fff5c7;cursor:pointer;max-width:200px}.scene-secret>span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:1px solid #ffe39b;background:#213b3aaa;box-shadow:0 0 25px #ffe5ab7a;font-size:29px;animation:scene-beacon 3s ease-in-out infinite alternate}.scene-secret small{background:#102c3bbf;border-radius:9px;padding:6px 9px;font-size:11px;text-shadow:0 2px 4px #001}.scene-dialogue{position:absolute;z-index:25;left:max(16px,calc((100% - 710px)/2));right:max(16px,calc((100% - 710px)/2));top:24%;padding:20px 45px 20px 20px;background:#fff7e6f5;border:1px solid #e8cb8c;border-radius:17px;color:#23443e;box-shadow:0 15px 50px #081a3970;max-width:710px;margin:auto}.scene-dialogue strong{font-size:17px}.scene-dialogue p{font-size:13px;line-height:1.65;margin:8px 0 0}.scene-dialogue>.scene-dialogue-close{position:absolute;right:10px;top:10px;width:30px;height:30px;border:0;border-radius:50%;background:#e9dfc6;color:#314b43;font-size:20px}.scene-chapter-list{position:absolute;z-index:35;right:max(16px,calc((100% - 740px)/2));top:70px;width:min(330px,calc(100% - 32px));max-height:70dvh;overflow:auto;background:#0d2a37f7;border:1px solid #e8ce8a66;border-radius:16px;padding:10px;box-shadow:0 10px 50px #04131c99}.scene-chapter-list button{display:block;width:100%;padding:12px;border:0;border-radius:9px;background:none;color:#fff3cf;text-align:left;font-size:12px}.scene-chapter-list button[aria-current=true]{background:#e9c97e;color:#193a38}.scene-chapter-list button:disabled{opacity:.35}.scene-task-drawer{position:absolute;z-index:20;left:0;right:0;bottom:0;margin:auto;width:min(780px,100%);max-height:59dvh;display:flex;flex-direction:column;background:#fff8eb;border:1px solid #e7cc91;border-radius:23px 23px 0 0;box-shadow:0 -18px 65px #04152566;color:#26433b}.scene-task-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;border-bottom:1px solid #dfd9c7;font-size:11px;color:#637a6d;flex-shrink:0}.scene-task-drawer>header button{border:1px solid #ccd6c7;background:#f8f6ea;color:#2b5047;border-radius:9px;padding:8px 11px;font-size:11px}.scene-task-slot{overflow:auto;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom)}.scene-task-slot>.story-panel{display:block!important;margin:0!important;width:100%;max-width:none!important;min-height:0!important;padding:18px 23px!important;box-shadow:none;border:0;border-radius:0}.scene-task-slot .story-heading,.scene-task-slot .story-text,.scene-task-slot .story-footer,.scene-task-slot .world-return{display:none}.scene-task-slot .puzzle-area{margin:0 auto;max-width:680px}.scene-task-slot .task-top{margin-top:0}.scene-task-slot .hint-box{margin-top:14px}.task-open .scene-narration{bottom:61dvh;pointer-events:none}.task-open .scene-narration h1{font-size:27px;margin-bottom:5px}.task-open .scene-narration>p:not(.scene-eyebrow),.task-open .scene-actions{display:none}.task-open .scene-narration .scene-eyebrow{margin-bottom:7px}.task-open .scene-secret{display:none}.scene-preview-slot{position:relative;z-index:30;max-width:780px;margin:auto}.scene-preview-slot .preview-controls{position:static;font-size:10px;margin:8px 14px;padding:9px}.scene-preview-slot .preview-controls button{padding:6px 8px;font-size:10px}.scene-preview-slot .preview-controls>span{display:none}.scene-flash{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at center,#fff4dba6,transparent 65%);opacity:0;z-index:7}.scene-transitioning .scene-art{animation:scene-depart .4s both}.scene-arriving .scene-art{animation:scene-arrive 1s cubic-bezier(.12,.6,.2,1) both}.scene-arriving .scene-flash{animation:scene-flash .8s both}.scene-magic .scene-art{animation:scene-focus 1.5s ease-in-out}.scene-magic .scene-flash{animation:scene-flash 1.4s}.scene-atmosphere{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}.scene-atmosphere span{position:absolute;color:#fff6dc;opacity:.65;animation:scene-snow 14s linear infinite}.scene-atmosphere span:nth-child(1){left:15%;top:-10%;animation-delay:-4s}.scene-atmosphere span:nth-child(2){left:73%;top:-10%;animation-delay:-7s}.scene-atmosphere span:nth-child(3){left:46%;top:-10%;animation-delay:-1s}.scene-atmosphere span:nth-child(4){left:86%;top:-10%;animation-delay:-11s}.scene-atmosphere span:nth-child(5){left:28%;top:-10%;animation-delay:-9s}.scene-snow-off .scene-atmosphere{display:none}.scene-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.story-experience button:focus-visible{outline:3px solid #ffdf8f;outline-offset:3px}@keyframes scene-depart{to{transform:scale(2.4);filter:brightness(1.6);opacity:0}}@keyframes scene-arrive{from{transform:scale(1.32);filter:blur(5px);opacity:.4}to{transform:scale(1.01);filter:blur(0);opacity:1}}@keyframes scene-flash{0%,100%{opacity:0}35%{opacity:.8}}@keyframes scene-focus{50%{transform:scale(1.13);filter:brightness(1.15)}}@keyframes scene-beacon{to{box-shadow:0 0 40px #ffe69cbf;transform:scale(1.08)}}@keyframes scene-figure-arrive{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:blur(0)}}@keyframes scene-wave{0%,100%{transform:translate(-50%,-100%) rotate(0)}25%{transform:translate(-50%,-100%) rotate(-6deg)}70%{transform:translate(-50%,-100%) rotate(5deg)}}@keyframes scene-snow{to{transform:translate(35px,110dvh)}}
@media(max-width:600px){.scene-header{padding-left:12px;padding-right:12px}.scene-header button{font-size:11px;padding:9px 11px}.scene-narration{left:20px;right:20px}.scene-narration h1{font-size:33px}.scene-narration>p:not(.scene-eyebrow){font-size:13px}.scene-task-slot>.story-panel{padding:16px!important}.scene-task-drawer{max-height:60dvh}.task-open .scene-narration{bottom:62dvh}.task-open .scene-narration h1{font-size:24px}.task-open .scene-narration .scene-eyebrow{font-size:9px}.scene-companion{min-height:58px;--figure-height:9vh}.scene-dialogue{top:22%;padding:17px 39px 17px 17px}.scene-ambience{padding:0 12px}.scene-ambience .ambience-controls button{font-size:10px;padding:6px 9px;min-height:30px}.scene-task-slot .choice{min-height:42px}}
@media(prefers-reduced-motion:reduce){.story-experience *{animation:none!important;transition:none!important}.scene-art{transform:none!important}.scene-flash{display:none}.scene-atmosphere{display:none}}

.task-open .scene-companion{top:var(--distant-y)!important;--figure-height:6vh;min-height:43px}.task-open .scene-companion small{font-size:8px;bottom:-15px}.scene-companion small{opacity:0}.scene-companion:hover small,.scene-companion:focus-visible small{opacity:1}

.scene-ambience{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap}.scene-ambience .ambience-controls{width:auto;margin:0}.scene-ambience>button{font-size:10px;padding:6px 9px;min-height:30px}

.task-open .scene-stage{bottom:59dvh}.scene-task-drawer{height:59dvh}.task-open .scene-stage .scene-art{object-position:center 70%}.task-open .scene-companion img{max-width:80px}@media(max-width:600px){.task-open .scene-stage{bottom:60dvh}.scene-task-drawer{height:60dvh}}

.scene-stage{transition:bottom .35s ease}.task-open .scene-task-drawer{animation:scene-drawer-in .3s ease-out}@keyframes scene-drawer-in{from{transform:translateY(30px);opacity:.6}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){.scene-stage{transition:none}.task-open .scene-task-drawer{animation:none}}

.story-experience,.scene-stage{overflow:clip}.story-experience::before{inset:0}.scene-transitioning .scene-companions{opacity:0}.scene-companions{transition:opacity .2s}

.story-experience .scene-reader details{position:static}.scene-reader .reader-settings{left:12px;right:12px;width:auto;max-width:340px}

.scene-reader{position:relative;z-index:11;display:flex;align-items:center;gap:6px;max-width:780px;margin:7px auto 0;padding:0 12px;font-size:10px;color:#e9d6a8}.scene-reader[hidden]{display:none}.scene-reader button,.scene-reader summary{min-height:32px;padding:7px 11px;background:#102c3bed;border:1px solid #e8ce8a77;color:#fff2d3;border-radius:20px;font-size:11px;cursor:pointer}.scene-reader button:disabled{opacity:.45}.scene-reader details{position:relative}.scene-reader summary{list-style:none}.scene-reader>span{max-width:240px;font-size:10px}.reader-settings{position:absolute;left:0;top:38px;width:min(265px,70vw);padding:14px;border:1px solid #d9bd79;border-radius:13px;background:#092435;box-shadow:0 8px 30px #0008}.reader-settings label{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;font-size:12px}.reader-settings select{max-width:100%;background:#fff7e6;color:#23443e;padding:8px}.reader-settings small{font-size:11px;line-height:1.5;display:block}.reader-settings input{width:100%}@media(max-width:600px){.scene-reader>span{max-width:140px;font-size:9px}.scene-reader{gap:5px}.scene-reader button,.scene-reader summary{font-size:10px;padding:7px 9px}}

.scene-recap-wrap{position:relative;z-index:9;max-width:780px;margin:5px auto 0;padding:0 12px;text-align:right}.scene-recap-wrap:has(>button[hidden]){display:none}.scene-recap-wrap button{border:1px solid #e6d39b55;border-radius:20px;background:#0b293bd9;color:#f8e4ab;padding:7px 12px;font-size:10px;min-height:36px}.scene-narration{max-height:calc(100dvh - 185px);overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}.task-open .scene-narration{max-height:none;overflow:visible}.scene-task-drawer>header>span{max-width:68%;font-size:11px;line-height:1.5}.scene-chapter-list h2{font-size:19px;margin:8px 8px 5px;color:#ffedbb}.scene-chapter-list>p{font-size:11px;color:#c6d5cd;line-height:1.5;margin:0 8px 12px}.scene-chapter-list button strong{display:block;font-size:12px;line-height:1.5}.scene-chapter-list button small{display:block;color:#b6c9ba;font-size:10px;line-height:1.5;margin-top:4px}.scene-chapter-list button[aria-current=true] small{color:#365147}.scene-chapter-list button[data-complete=true]:not([aria-current=true]){background:#244b3a70;margin-bottom:3px}.scene-dialogue{top:max(165px,22dvh);max-height:calc(100dvh - max(165px,22dvh) - 24px);overflow-y:auto;overscroll-behavior:contain;padding-right:51px}.scene-dialogue footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.scene-dialogue footer button,.scene-dialogue-choices button{position:static;right:auto;top:auto;width:auto;height:auto;min-height:42px;border:1px solid #d1c4a2;border-radius:10px;background:#e8d6a8;color:#254a3f;font-size:12px;font-weight:700;padding:10px 12px}.scene-dialogue footer button:last-child{background:#eff0df}.scene-dialogue-choices{display:flex;flex-direction:column;gap:7px;margin-top:12px}.scene-dialogue-choices:empty{display:none}.scene-dialogue-choices button{text-align:left;justify-content:flex-start;background:#fffbed}.scene-dialogue-choices button[aria-pressed=true]{background:#dceacc;border-color:#83a074}.scene-dialogue>.scene-dialogue-close{width:36px;height:36px}.scene-dialogue p:focus{outline:none}.story-experience[data-complete=true] .scene-shade{background:linear-gradient(#04141ca8,transparent 25%,#e9bb6b0a 40%,#061922e8 87%,#061922)}
@media(max-width:600px){.scene-narration h1{font-size:30px}.scene-narration>p:not(.scene-eyebrow){line-height:1.6}.scene-dialogue{top:165px;max-height:calc(100dvh - 185px);padding-left:17px}.scene-dialogue footer button,.scene-dialogue-choices button{min-height:44px}.scene-recap-wrap button{font-size:9px;padding:6px 10px}.task-open .scene-narration h1{font-size:23px}.scene-task-drawer>header{padding:10px 14px}.scene-task-drawer>header>span{font-size:10px;max-width:62%}}

.story-experience:not(.task-open) .scene-stage{bottom:var(--story-pane-height,360px)}.scene-narration{max-height:52dvh}.scene-narration #sceneProse{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-bottom:8px}.scene-story-more{display:inline-flex;align-items:center;background:none;border:0;color:#f8d69a;font-size:12px;font-weight:700;padding:6px 0;min-height:36px;margin:0 0 9px}.task-open .scene-story-more{display:none}.scene-dialogue>.scene-dialogue-close{width:42px;height:42px}.scene-dialogue{padding-right:58px}.scene-stage .scene-art{object-position:center 64%}@media(max-height:650px){.scene-narration h1{font-size:25px}.scene-narration .scene-eyebrow{font-size:9px;margin-bottom:8px}.scene-narration .scene-actions button{min-height:42px;padding:10px 12px}.scene-narration #sceneProse{-webkit-line-clamp:2}.scene-narration{max-height:49dvh}}

.scene-secret{width:48px;max-width:48px;height:48px;padding:0}.scene-secret small{position:absolute;top:57px;left:50%;width:max-content;max-width:160px;transform:translateX(-50%);pointer-events:none}

.scene-companion[data-motion=float]{animation:v48-figure-float 4s ease-in-out infinite}.scene-companion[data-motion=walk]{animation:v48-figure-walk 7s ease-in-out infinite}.scene-companion[data-motion=glow]{animation:v48-figure-glow 4s ease-in-out infinite}.story-experience[data-effect=none] .scene-atmosphere{display:none}.story-experience[data-effect=fireflies] .scene-atmosphere span{color:#c6ffa3;animation:v48-figure-float 5s ease-in-out infinite}.story-experience[data-effect=bubbles] .scene-atmosphere span{color:transparent;border:1px solid #bdeaff;border-radius:50%;width:12px;height:12px;animation:v48-figure-float 6s ease-in-out infinite}.story-experience[data-effect=stars] .scene-atmosphere span{color:#ffe3a0;text-shadow:0 0 14px #fff;animation:v48-figure-glow 4s ease-in-out infinite}@keyframes v48-figure-float{0%,100%{translate:0 0}50%{translate:0 -12px}}@keyframes v48-figure-walk{0%,100%{translate:-12px 0}50%{translate:12px 0}}@keyframes v48-figure-glow{0%,100%{filter:drop-shadow(0 0 4px #e8cd81)}50%{filter:drop-shadow(0 0 18px #ffe9a6)}}@media(prefers-reduced-motion:reduce){.scene-companion[data-motion],.scene-atmosphere span{animation:none!important}}
