/* Characters are separate silhouettes in the scene; only speech has a surface. */
.opening-replay{display:block;margin-top:14px;background:#fffaf0cc;color:#345d52;border:1px solid #a8976c99;font-size:16px;padding:11px 17px}
.story-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.world-wrap .scene-story{--person:clamp(140px,19cqw,210px);position:absolute;left:12px;right:auto;top:12px;display:grid;grid-template-columns:var(--person) minmax(0,350px);align-items:start;gap:8px;width:min(580px,calc(100% - 24px));max-width:none;max-height:calc(100% - 24px);padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;pointer-events:none;color:#234940}
.world-wrap .scene-story[data-side=right]{left:auto;right:12px}
.world-wrap .scene-story[data-kind=reward]{grid-template-columns:var(--person) minmax(0,350px);width:min(580px,calc(100% - 24px));max-height:calc(100% - 24px)}
.story-person,.world-wrap .story-character-call{position:relative;display:block;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;pointer-events:auto;outline-offset:4px;cursor:pointer}
.story-person{width:100%;height:clamp(175px,24cqw,255px);align-self:start;filter:drop-shadow(0 5px 3px #162d2425)}
.story-person img,.story-person video,.story-character-call img,.story-character-call video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.story-person:hover,.story-person:active,.story-character-call:hover,.story-character-call:active{background:none;transform:none;filter:drop-shadow(0 0 5px #f6e3a099)}
.story-person:focus-visible,.story-character-call:focus-visible{outline:2px dashed #af773c;border-radius:14px}
.world-wrap .scene-story .story-content{position:relative;pointer-events:auto;min-height:0;max-height:min(450px,52cqw);display:flex;flex-direction:column;margin:20px 0 0;padding:16px 18px 12px;background:#fff9eaf5;border:1px solid #a9956880;border-radius:23px 23px 23px 7px;box-shadow:0 5px 18px #17372e26}
.world-wrap .scene-story .story-content:before{content:'';position:absolute;left:-18px;top:38px;width:20px;height:19px;background:#fff9ea;clip-path:polygon(100% 0,100% 100%,0 45%)}
.world-wrap .scene-story[data-actor=nuwa] .story-content{margin-top:6px}
.world-wrap .scene-story .story-scroll{overflow:auto;scrollbar-width:thin;min-height:0;overscroll-behavior:contain}
.world-wrap .scene-story .story-kicker{font-size:15px;letter-spacing:.04em;margin:0 36px 7px 0;color:#6e795c}
.world-wrap .scene-story .story-title{font-size:22px!important;margin:0 0 10px!important}
.world-wrap .scene-story .story-text{font-size:19px;line-height:1.7;margin:0 0 14px;min-height:3.4em;cursor:pointer;color:#24483e}
.world-wrap .scene-story[data-kind=event] .story-text{min-height:0;margin-bottom:0}
.world-wrap .scene-story .story-controls{gap:6px;flex-shrink:0;padding-top:8px;align-items:center}
.world-wrap .scene-story .story-controls button{font-size:14px;min-height:36px;padding:6px 10px;border-radius:7px}
.world-wrap .scene-story .story-controls .primary{margin-left:0}
.world-wrap .scene-story .story-close{font-size:13px;right:8px;top:8px;min-height:30px;color:#66775e}
.world-wrap .scene-story .story-pause,.world-wrap .scene-story .story-sound{background:transparent;border-color:transparent;color:#546e59;font-size:13px;padding:4px}
.world-wrap .scene-story .story-sound{margin-left:auto}
.world-wrap .scene-story[data-kind=reward] .story-pause{display:inline-block}
.world-wrap .scene-story[data-kind=reward] .story-title{display:none}
.world-wrap .scene-story[data-kind=reward] .story-controls .primary{width:100%}
.world-wrap .scene-story[data-kind=reward] .story-text{min-height:0;font-size:18px}
.world-wrap .scene-story .story-keepsake{background:transparent;border:0;border-bottom:1px dashed #ac985c80;box-shadow:none;padding:7px 0;border-radius:0;animation:none}
.world-wrap .scene-story .story-keepsake strong{font-size:15px}
.world-wrap .scene-story .keepsake-route{height:40px}
.world-wrap .scene-story .story-result,.world-wrap .scene-story .story-hook,.world-wrap .scene-story .story-award{font-size:14px;line-height:1.5;margin:6px 0}
.world-wrap .story-character-call{position:absolute;left:18px;top:12px;width:126px;height:156px;z-index:5}
.story-call-label{position:absolute;bottom:0;left:50%;transform:translateX(-50%);white-space:nowrap;padding:4px 10px;background:#fff8e7e8;border:1px solid #b5a27c77;border-radius:20px;font-size:13px;color:#315b4a}
.world-wrap .story-effects{z-index:4}
@container story-world (max-width:700px){
 .world-wrap .scene-story,.world-wrap .scene-story[data-side],.world-wrap .scene-story[data-kind=reward]{--person:118px;position:relative;order:1;left:auto;right:auto;top:auto;width:100%;max-height:none;grid-template-columns:var(--person) minmax(0,1fr);padding:12px 12px 16px 0;background:linear-gradient(180deg,#ecead7c9,#f8f4e8);box-sizing:border-box;gap:0}
 .world-wrap .scene-story .story-content{max-height:420px;margin-top:22px;padding:15px;border-radius:18px 18px 18px 5px}
 .world-wrap .scene-story .story-person{height:196px}
 .world-wrap .scene-story .story-text{font-size:18px}
 .world-wrap .scene-story .story-kicker{font-size:14px}
 .world-wrap .story-character-call{width:100px;height:130px;top:5px;left:6px}
}
@media(max-width:440px){.world-wrap .scene-story,.world-wrap .scene-story[data-kind=reward]{--person:94px}.world-wrap .scene-story .story-person{height:166px}.world-wrap .scene-story .story-content{padding:13px 12px}.world-wrap .scene-story .story-text{font-size:17px;line-height:1.65}.world-wrap .scene-story .story-controls button{font-size:13px;min-height:38px}.world-wrap .story-character-call{width:70px;height:90px}.story-call-label{font-size:11px;padding:3px 6px}}
/* Every lesson uses the approved compact teaching composition. The map keeps
   its original scale while the speaker and explanation stay in one corner. */
@container story-world (min-width:701px){
 .world-wrap .scene-story[data-kind=intro]{--person:78px;top:4px;width:min(320px,calc(100% - 24px));grid-template-columns:var(--person) minmax(0,237px);gap:5px}
 .world-wrap .scene-story[data-kind=intro] .story-person{height:116px}
 .world-wrap .scene-story[data-kind=intro] .story-content{max-height:min(256px,38cqw);margin-top:3px;padding:6px 7px 5px;border-radius:14px 14px 14px 6px}
 .world-wrap .scene-story[data-kind=intro] .story-content:before{left:-14px;top:24px;width:16px;height:16px}
 .world-wrap .scene-story[data-kind=intro] .story-kicker{font-size:12px;margin:0 31px 4px 0}
 .world-wrap .scene-story[data-kind=intro] .story-title{font-size:17px!important;margin-bottom:4px!important}
 .world-wrap .scene-story[data-kind=intro] .story-text{font-size:14px;line-height:1.38;margin-bottom:4px;min-height:0}
 .world-wrap .scene-story[data-kind=intro] .story-controls{gap:2px;padding-top:4px;flex-wrap:nowrap}
 .world-wrap .scene-story[data-kind=intro] .story-controls button{min-height:28px;padding:2px 5px;font-size:11px;white-space:nowrap}
 .world-wrap .scene-story[data-kind=intro] .story-close{top:4px;right:5px;min-height:26px;padding:2px 5px;font-size:12px}
}
.volume-prologue .prologue-voice{bottom:25px;left:3%;right:3%;padding:0;border:0;background:none;box-shadow:none;align-items:center;gap:12px;pointer-events:none}
.volume-prologue .prologue-person{flex:none;width:240px;height:300px;pointer-events:auto}
.volume-prologue .prologue-bubble{position:relative;padding:24px 30px;border-radius:25px 25px 25px 5px;background:#fff8e9f5;color:#2d5146;box-shadow:0 6px 20px #152e2533;max-width:620px;pointer-events:auto}
.volume-prologue .prologue-bubble:before{content:'';position:absolute;left:-20px;top:35%;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:22px solid #fff8e9}
@media(max-width:650px){.volume-prologue .prologue-voice{left:0;right:12px;gap:0;bottom:18px}.volume-prologue .prologue-person{width:120px;height:220px}.volume-prologue .prologue-bubble{padding:18px}.volume-prologue .prologue-bubble p{font-size:18px}.volume-prologue .prologue-heading h2{font-size:27px}}

/* Event responses remain replayable and pausable, including long spoken lines. */
.world-wrap .scene-story[data-kind=event] .story-controls{display:flex}
.world-wrap .scene-story .story-sound{font-size:16px;min-height:38px}
