/* Live text and controls sit on calm parchment; landscape and characters form separate layers. */
.story-wrap{max-width:none!important;padding:12px 12px 32px!important;min-height:100dvh}
.story-adventure{max-width:860px;margin:auto;color:#123b2b;font-family:'Nunito',sans-serif;isolation:isolate;position:relative;--story-paper:#fff6df;--story-edge:#d6ab55}
.story-adventure::before{content:'';position:fixed;inset:0;background:linear-gradient(#0e6e7340,#073e4566),var(--story-landscape) center/cover;z-index:-2;pointer-events:none}
.story-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;margin:0 0 12px;border-radius:18px;background:#fff8e9f5;border:1px solid #f6d691;box-shadow:0 4px 0 #6d53244a,0 8px 22px #142d2340;font-size:16px;font-weight:900}
.story-nav button{background:none;border:0;color:#164b3b;font:inherit;min-height:44px;padding:6px 10px;cursor:pointer;border-radius:10px}
.story-nav button:hover{background:#e8f0dc}.story-place{font-family:'Fraunces',Georgia,serif;text-align:center;font-size:21px;line-height:1.12;overflow-wrap:anywhere}
.story-nav button:focus-visible,.story-clue:focus-visible,.story-player button:focus-visible,.story-read summary:focus-visible{outline:4px solid #8c4dc3;outline-offset:4px}
.story-sheet{position:relative;background:linear-gradient(#fff8e9f7,#fff1d0f5);border:2px solid #f4cf82;border-radius:24px;box-shadow:0 7px 0 #9a742847,0 20px 45px #07281d66,inset 0 0 0 3px #fffbed;padding:22px 25px 24px;overflow:hidden}
.story-hero{display:grid;grid-template-columns:28% minmax(0,1fr);gap:16px;align-items:center;position:relative;margin:12px 0 0;min-height:175px}
.story-character-scene{position:relative;align-self:stretch;display:grid;place-items:end center;min-height:170px}
.story-character-scene::before{content:'';position:absolute;inset:10% -8% 0;background:radial-gradient(ellipse,#f7d86588,transparent 66%);pointer-events:none}
.story-adventure .story-host{position:relative!important;inset:auto!important;width:100%!important;height:210px!important;max-height:210px!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 7px 4px #57431930);border-radius:0!important;mask:none!important;z-index:1;pointer-events:none}
.story-telling{min-width:0}.story-adventure h1,.enchanted .story-adventure #story-title{font:750 clamp(29px,4.8vw,49px)/1.06 'Fraunces',Georgia,serif!important;letter-spacing:-1.2px!important;text-wrap:balance;text-align:left;color:#0b422f!important;margin:0 0 14px!important;padding:0!important;background:none!important;min-height:0!important;overflow-wrap:anywhere}
.story-audio h2,.enchanted .story-adventure .story-audio h2{font:900 17px/1.3 'Nunito',sans-serif!important;margin:0 0 7px!important;color:#244b3a!important;letter-spacing:0!important}
.story-player{display:flex;align-items:center;gap:12px;min-width:0;border-radius:17px;background:#fffdf3;border:1px solid #d7be8d;padding:8px 10px;box-shadow:0 3px 0 #baa26a55,inset 0 1px white}
.story-player button{flex:0 0 48px;width:48px;height:48px;min-height:48px;border:2px solid #1b8e56;border-radius:50%;background:linear-gradient(#109862,#03653f);box-shadow:inset 0 2px 0 #70e095,0 3px 0 #063e2c;color:#fffef0;font-size:23px;display:grid;place-items:center;cursor:pointer}
.story-player button:active{transform:translateY(2px);box-shadow:inset 0 2px 3px #063e2c}
.story-wave{display:flex;flex:1;height:28px;align-items:center;justify-content:center;gap:3px;min-width:20px;overflow:hidden}
.story-wave i{display:block;height:var(--bar);background:#34775c;border-radius:5px;min-width:3px;width:3px}.story-speaking .story-wave i{animation:story-voice .75s var(--delay) ease-in-out infinite alternate}
.story-audio-time{font:800 13px/1.2 'Nunito',sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums;color:#365747}
.story-audio-status{font:700 14px/1.4 'Nunito',sans-serif;margin:8px 0;color:#78452c}.story-audio-status:empty{display:none}
.story-read{margin:9px 0 16px;border-bottom:1px solid #d6bc85}.story-read summary{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;cursor:pointer;font:900 16px/1.3 'Nunito',sans-serif;color:#28523e;border-radius:9px;list-style:none}.story-read summary::-webkit-details-marker{display:none}.story-read summary span{transition:transform .2s}.story-read[open] summary span{transform:rotate(180deg)}
.story-paragraph{font:600 17px/1.55 'Nunito',sans-serif;white-space:pre-line;text-align:left;margin:0;padding:10px 8px 17px;color:#274738;overflow-wrap:anywhere}
.story-score-row{display:flex;align-items:stretch;gap:14px;margin:0 0 17px}.story-progress{position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:12px;background:linear-gradient(120deg,#fff1c1,#fffbeb);border:1px solid #dfb76a;border-radius:18px;box-shadow:0 3px 0 #a9843f33;padding:9px 14px}
.story-progress .story-progress-vessel{width:86px;flex:0 0 86px;margin:-8px 0 -3px;filter:drop-shadow(0 4px 3px #57431933)}.story-progress-copy{min-width:0;flex:1}.story-progress-copy>strong{display:block;font:750 clamp(22px,3.6vw,31px)/1.15 'Fraunces',Georgia,serif;color:#173b29}.story-progress-copy>strong>span{font-size:.72em}
.story-progress-tokens{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.story-progress-tokens i{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border:2px solid #c4ab79;background:#ebdab5;color:#a78b52;border-radius:50%;font:900 18px/1 'Nunito';font-style:normal;box-shadow:inset 0 2px 0 #8b6c3b20}.story-progress-tokens .is-found{border-color:#be8315;background:radial-gradient(circle at 35% 25%,#ffef75,#efb82b);color:#714817;box-shadow:inset 0 1px 0 #fff6bd,0 2px 0 #ab6f1b}
.story-leader{width:35%;flex:0 0 35%;background:#fff8e3;border:1px solid #cdb274;border-radius:16px;overflow:hidden;min-width:0}.story-leader[hidden]{display:none!important}.story-leader-heading{background:#176746;color:#fffbea;text-align:center;font:900 14px/1.25 'Nunito',sans-serif;padding:7px}.story-leader-heading>span{color:#ffd259}.story-leader-body{display:flex;align-items:center;gap:9px;padding:10px}.story-avatar{width:40px;flex:0 0 40px;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#d7ebc9;color:#587b42;font-size:23px}.story-avatar img{width:100%;height:100%;object-fit:cover}.story-leader-body>div{min-width:0}.story-leader-body strong{display:block;font:900 16px/1.2 'Nunito',sans-serif;overflow-wrap:anywhere}.story-leader-body>div>span{display:block;font:700 13px/1.2 'Nunito',sans-serif;margin-top:4px}
.story-clues-heading{text-align:center;margin:12px 0}.story-clues-heading h2,.enchanted .story-clues-heading h2{font:750 28px/1.1 'Fraunces',Georgia,serif!important;letter-spacing:-.6px!important;margin:0 0 5px!important;color:#173b29!important}.story-clues-heading p{font:700 15px/1.35 'Nunito',sans-serif;margin:0;color:#49634f}
.story-clues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.story-clue{position:relative;min-width:0;aspect-ratio:1.18;display:block;padding:5px;border:1px solid #d3b478;border-radius:17px;background:linear-gradient(135deg,#fffef5,#efd9ab);box-shadow:0 4px 0 #b5945a77,0 6px 10px #73532122;cursor:pointer;transition:transform .18s,box-shadow .18s;overflow:hidden;color:#16472a}.story-clue:hover{transform:translateY(-2px);box-shadow:0 6px 0 #b5945a77,0 10px 14px #73532130}.story-clue:active{transform:translateY(2px);box-shadow:0 1px 0 #b5945a77}.story-clue-image{display:block;width:100%;height:100%;overflow:hidden;border-radius:11px;min-height:0}.story-clue img{width:100%;height:100%;object-fit:cover;display:block}.story-clue-number{position:absolute;left:8px;top:8px;width:35px;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:#104f36;border:2px solid #fffbe8;color:#fffbe8;font:700 25px/1 'Fraunces',Georgia,serif;box-shadow:0 2px 3px #15332555}.story-camera{position:absolute;right:9px;bottom:9px;width:42px;aspect-ratio:1;border-radius:50%;background:#fff8e0;border:2px solid #fffbed;display:grid;place-items:center;box-shadow:0 3px 5px #15332566}.story-camera svg{width:61%;height:61%}.story-found-label{position:absolute;left:10px;right:10px;bottom:10px;display:flex;align-items:center;justify-content:center;gap:8px;background:#086b43ed;color:#fffbe8;border:2px solid #ffefb8;border-radius:18px;min-height:36px;font:900 15px/1.2 'Nunito';box-shadow:0 3px 5px #15332555}.story-found-label>span{font-size:22px}
.story-hidden-art{display:block;width:100%;height:100%;background:linear-gradient(135deg,#678460b0,#0b472888),var(--story-landscape) center/cover;filter:blur(9px);transform:scale(1.2)}.story-padlock{position:absolute;inset:25% 4% 7%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#593c0d;gap:5px}.story-padlock svg{height:54%;max-height:60px;filter:drop-shadow(0 3px 0 #153725aa)}.story-padlock small{background:#fff4dced;padding:4px 7px;border-radius:7px;font:900 13px/1.2 'Nunito',sans-serif;text-wrap:balance;text-align:center}
.story-clues[data-count="1"]{grid-template-columns:1fr}.story-clues[data-count="1"] .story-clue{aspect-ratio:4/3}.story-clues[data-count="2"],.story-clues[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.story-event-notice{font-family:'Nunito',sans-serif;background:#f5f8e8;border:1px solid #acc492;border-radius:15px;padding:12px 15px;position:relative;margin:0 0 15px;color:#284b36}.story-entry-heading,.enchanted .story-entry-heading{font:900 17px/1.3 'Nunito',sans-serif!important;color:inherit!important;margin:0 0 5px!important;letter-spacing:0!important}.story-event-notice p{margin:5px 0;font-size:15px;line-height:1.4}.story-event-notice .story-entry-time{font-size:14px;margin:8px 0 0;color:inherit}.story-event-notice strong{font-weight:900}.story-event-notice .btn{font-size:16px;min-height:48px;padding:12px 14px;margin-top:8px}.story-entry-actions{display:flex;gap:10px}.story-entry-actions>*{flex:1}.story-event-notice .free-play{margin-bottom:0}.story-event-notice .text-button{min-height:44px;padding:8px}.story-time{font-variant-numeric:tabular-nums;font-weight:900}.story-free-mode .story-event-notice{background:#f6edff;border-color:#b391d3;color:#5c3181}.story-free-mode .story-entry-heading{color:#5c3181!important}.story-below{font-family:'Nunito',sans-serif;margin-top:18px;text-align:center}.story-below:empty{display:none}.story-below .text-button{min-height:44px}.story-preview-note{font:800 13px/1.4 'Nunito',sans-serif;background:#fff1cf;margin:0 8px 10px;padding:8px;text-align:center;border-radius:12px}.story-adventure .end-card{position:relative;margin:12px 0;padding:18px;font-family:'Nunito',sans-serif}.story-adventure .end-card h2{font-size:26px}.story-wrap .site-footer{max-width:800px;margin:auto;color:#fff7de}.story-wrap .site-footer button{color:inherit}.story-demo-main{padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.story-demo-main+.fine{color:#fff8e1}.story-demo-wrap{max-width:890px!important;padding:12px 4px!important}.story-demo-wrap .demo-header{display:none}.demo-sheet-photo{aspect-ratio:4/3;width:100%;overflow:hidden;border-radius:14px}.demo-sheet-photo img{display:block}
/* The vessel occlusion masks remain shared with real capture animations. */
.witch-vessel{aspect-ratio:700/640!important}.witch-vessel .pot-mouth{left:17%;top:13%;width:67%;height:10%}.witch-vessel .potion-surface{left:19%;top:14%;width:63%;height:9%}.witch-vessel .pot-front-rim{clip-path:inset(24% 0 0)}.witch-vessel .pot-landing-zone{clip-path:polygon(17% 0,84% 0,84% 19%,74% 23%,50% 24%,27% 23%,17% 19%)}.witch-vessel .landing-treasure{top:13%!important}.witch-vessel .pot-smoke{top:19%}
/* A clue is an image-led, readable sheet, with one primary camera action. */
dialog.story-clue-dialog{width:min(560px,calc(100% - 24px));padding:20px;max-height:calc(100dvh - 24px);border:2px solid #e2b457;background:#fff8e5;border-radius:23px;box-shadow:0 8px 0 #8d692d,0 25px 60px #062c3070}dialog.story-clue-dialog .modal-head{align-items:center;border-bottom:0;margin-bottom:12px}dialog.story-clue-dialog .modal-head h2{font:750 24px/1.15 'Fraunces',Georgia,serif}dialog.story-clue-dialog .modal-photo{width:100%;height:auto!important;max-height:52dvh;object-fit:contain;border-radius:13px;background:#e6e6cf;display:block}dialog.story-clue-dialog .clue-detail{padding:7px;background:white;border:1px solid #dbc18b;border-radius:18px;box-shadow:0 5px 0 #d5bc86;margin-bottom:18px}dialog.story-clue-dialog .clue-detail .photo-caption{position:static;inset:auto;display:block;background:#fff8e5;color:#173b29!important;font:750 23px/1.2 'Fraunces',Georgia,serif;padding:12px 8px;margin:5px 0 0;border-radius:8px;text-align:center;text-shadow:none;overflow-wrap:anywhere}dialog.story-clue-dialog>h3{display:none}dialog.story-clue-dialog>p{font-size:17px;line-height:1.5;text-align:center}dialog.story-clue-dialog>.btn{min-height:56px;font-size:20px}dialog.story-clue-dialog .story-riddle{font:700 17px/1.5 'Nunito',sans-serif;padding:10px 15px;color:#334c37}
@keyframes story-voice{to{transform:scaleY(.4)}}
@media(max-width:520px){.story-wrap{padding:8px 8px 24px!important}.story-nav{padding:5px;gap:4px;font-size:14px;margin-bottom:9px;border-radius:14px}.story-nav button{padding:5px 8px}.story-nav button:first-child span{font-size:13px}.story-place{font-size:17px;max-width:36%}.story-sheet{padding:14px 12px 19px;border-radius:21px}.story-hero{grid-template-columns:27% minmax(0,1fr);gap:9px;min-height:0;margin-top:6px}.story-character-scene{min-height:145px}.story-adventure .story-host{height:156px!important;max-height:156px!important}.story-adventure h1,.enchanted .story-adventure #story-title{font-size:28px!important;letter-spacing:-.8px!important;margin-bottom:11px!important}.story-audio h2,.enchanted .story-adventure .story-audio h2{font-size:14px!important}.story-player{gap:6px;padding:6px;border-radius:14px}.story-player button{flex-basis:44px;width:44px;height:44px;min-height:44px}.story-wave{gap:2px;height:25px}.story-wave i{min-width:2px;width:2px}.story-audio-time{font-size:11px}.story-read{margin:2px 0 12px}.story-score-row{gap:8px;flex-wrap:wrap;margin-bottom:14px}.story-progress{padding:8px 10px;gap:10px;min-height:74px;flex-basis:100%}.story-progress .story-progress-vessel{width:74px;flex-basis:74px}.story-progress-copy>strong{font-size:25px}.story-progress-tokens{gap:5px;margin-top:7px}.story-progress-tokens i{flex-basis:21px;width:21px;height:21px;font-size:16px}.story-leader{width:100%;flex-basis:100%;display:flex;align-items:center;border-radius:12px}.story-leader-heading{flex-basis:42%;align-self:stretch;display:grid;place-items:center;padding:7px;font-size:14px}.story-leader-body{flex:1;padding:7px 10px}.story-avatar{width:30px;flex-basis:30px;font-size:19px}.story-leader-body>div{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.story-leader-body strong{font-size:15px}.story-leader-body>div>span{margin:0;font-size:13px}.story-clues-heading{margin:12px 0 10px}.story-clues-heading h2,.enchanted .story-clues-heading h2{font-size:25px!important}.story-clues-heading p{font-size:14px}.story-clues{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.story-clues[data-count="3"] .story-clue:last-child,.story-clues[data-count="5"] .story-clue:last-child,.story-clues[data-count="7"] .story-clue:last-child,.story-clues[data-count="9"] .story-clue:last-child{grid-column:1/-1;aspect-ratio:2.1}.story-clue{aspect-ratio:1.22;padding:4px;border-radius:13px}.story-clue-image{border-radius:8px}.story-clue-number{width:30px;font-size:23px;top:7px;left:7px}.story-camera{width:36px;bottom:7px;right:7px}.story-event-notice{padding:10px 12px;margin-bottom:12px}.story-event-notice p{font-size:15px}.story-event-notice .story-entry-time{font-size:13px}.story-entry-heading,.enchanted .story-entry-heading{font-size:16px!important}.story-entry-actions{flex-direction:column;gap:0}.story-entry-actions .btn{font-size:16px}.story-preview-note{font-size:12px}.story-padlock small{font-size:12px}.story-padlock svg{max-height:40px}.story-below{margin-top:16px}dialog.story-clue-dialog{padding:15px}dialog.story-clue-dialog .modal-photo{max-height:48dvh}}
@media(max-width:350px){.story-nav button:first-child span{font-size:0}.story-nav button:first-child span::after{content:'Map';font-size:14px}.story-place{max-width:45%}.story-sheet{padding:11px 10px 16px}.story-adventure h1,.enchanted .story-adventure #story-title{font-size:25px!important}.story-audio-time{font-size:10px}.story-wave{display:none}.story-player{justify-content:space-between}.story-progress .story-progress-vessel{width:62px;flex-basis:62px}.story-progress-copy>strong{font-size:23px}.story-progress-tokens{gap:4px}.story-progress-tokens i{width:19px;height:19px;flex-basis:19px}.story-found-label{font-size:13px;min-height:30px}}
@media(prefers-reduced-motion:reduce){.story-speaking .story-wave i{animation:none}.story-clue,.story-read summary span{transition:none}.story-clue:hover{transform:none}}html[data-world-motion=off] .story-wave i{animation:none}
body:has(.story-studio) .admin-corner{display:none}

.story-free-mode .story-leader{display:none!important}.story-progress .broom-puzzle{min-height:80px;flex-basis:90px;width:90px;max-width:30%;margin:0}.story-clue-dialog .dialog-top{align-items:center;gap:12px;margin-bottom:12px}.story-clue-dialog .dialog-top h2{font:750 24px/1.15 'Fraunces',Georgia,serif!important;margin:0!important;color:#173b29!important}.story-clue-dialog .dialog-top .close{flex:0 0 44px;width:44px;height:44px;min-height:44px}
.story-progress:has(.broom-puzzle){display:grid;grid-template-columns:1fr;gap:3px;text-align:center}.story-progress .broom-puzzle{width:100%;max-width:350px;min-height:0;aspect-ratio:3/1!important;flex:none;margin:0 auto}.story-progress .broom-puzzle+.story-progress-copy{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.story-progress .broom-puzzle+.story-progress-copy .story-progress-tokens{margin-top:0}
.story-demo-clue{max-width:560px!important;margin:auto!important;padding:17px!important;background:linear-gradient(#fffaec,#fff1d4)!important;border:2px solid #ddba70!important;border-radius:23px!important;box-shadow:inset 0 0 0 3px #fffdf3,0 6px 0 #a17a36,0 18px 35px #143a3455!important;color:#214333}.demo-wrap:has(.story-demo-clue) .demo-header{display:none}.demo-clue-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 15px}.demo-clue-nav .text-button{font-size:15px;min-height:44px;margin:0}.demo-clue-nav>span{font:900 14px/1.3 'Nunito',sans-serif;text-align:right}.story-demo-clue .demo-sheet-photo{border:5px solid #fffdf4;border-radius:14px;box-shadow:0 4px 0 #c9ad75;aspect-ratio:4/3;margin:0 0 19px}.story-demo-clue h1,.enchanted .story-demo-clue h1{font:750 30px/1.1 'Fraunces',Georgia,serif!important;color:#133e2d!important;margin:0 0 12px!important;letter-spacing:-.6px!important;text-align:center}.story-demo-clue .demo-clue-hint{font:700 17px/1.45 'Nunito',sans-serif;text-align:center;margin:0 0 18px}.story-demo-clue>.btn{min-height:55px;font-size:20px}.story-demo-clue>.fine{text-align:center;font-size:13px;margin:15px 0 0;color:#546447}@media(max-width:350px){.story-demo-clue{padding:13px!important}.story-demo-clue h1,.enchanted .story-demo-clue h1{font-size:26px!important}.demo-clue-nav .text-button{font-size:14px}.demo-clue-nav>span{font-size:12px}.story-demo-clue .demo-clue-hint{font-size:16px}}
