@import url("variant-layout.css");
@import url("rain-scene.css");
@import url("shape-reading.css");
@import url("shape-walk.css");
@import url("menu-letter.css");
@import url("hangul-rhythm.css");
@import url("vowel-practice.css");
@import url("letter-assembly.css");
@import url("consonant-lesson.css");
@font-face{font-family:Jua;src:url("assets/jua/Jua-Regular.ttf") format("truetype");font-display:swap}
:root{color-scheme:light;--ink:#352113;--blue:#112b62;--display:Jua,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;--body:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;width:100%;min-height:100%;color:var(--ink);font-family:var(--body)}
body{height:100dvh;display:grid;place-items:center;overflow:hidden;background:#243831}
button,a{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation}
button:disabled{cursor:default}
a{text-decoration:none}
.play-scene{container-type:inline-size;position:relative;isolation:isolate;overflow:hidden;width:min(100vw,166.666667dvh);aspect-ratio:5/3;background:#ecdbad center / cover no-repeat;font-size:clamp(16px,1.72vmin,23px);line-height:1.36;word-break:keep-all;overflow-wrap:anywhere}
.play-scene[data-layout=cover]{background-image:url("assets/forest-cover.webp")}
.play-scene[data-layout=cover][data-weather=rain]{background-image:none}
.play-scene[data-layout=read]{background-image:url("assets/forest-read.webp")}
.play-scene[data-layout=read][data-weather=rain]{background-image:none}
.play-scene[data-layout=activity]{background-image:url("assets/forest-activity.webp")}
.play-scene[data-layout=quiz]{background-image:url("assets/forest-quiz.webp")}
.play-scene[data-layout=voices]{background-image:url("assets/forest-voices.webp")}
.play-scene[data-layout=notebook]{background-image:url("assets/forest-notebook.webp")}
.page-body,.prompt,.source-text,.record-value,.speech-text{margin:0}
.source-panel,.task-panel,.dialogue-balloon,.floating-instruction,.notebook-goal{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9c865d transparent}
.scene-content{display:contents}
.topbar,.scene-footer{position:absolute;z-index:4;left:2%;right:2%;display:flex;align-items:center;gap:.55cqw;pointer-events:none}
.topbar{top:1%;height:10.5%;font-family:var(--display);color:var(--blue)}
.topbar :is(a,button),.scene-footer :is(a,button){pointer-events:auto}
.brand{width:11.3%;height:100%;background:url("assets/ui-brand.webp") left center / contain no-repeat;font-size:0;border-radius:40%}
.episode-meta,.page-counter,.review-badge{display:inline-flex;align-items:center;justify-content:center;padding:.26cqw .9cqw;background:#fff4d8;border:2px solid #a59144;border-radius:99px;font-size:clamp(14px,1.6cqw,24px);box-shadow:0 2px 0 #583b1c55;white-space:nowrap}
.stage{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.page-counter{margin-left:auto;gap:.21em;min-width:9%;padding:.25cqw .8cqw;color:#482d15;font-size:clamp(16px,2.1cqw,32px)}
.page-counter b{font-weight:400}
.review-badge{order:1;position:absolute;right:.15%;top:102%;font:600 clamp(11px,1.05cqw,15px) var(--body);color:#443e33}
.scene-content>h1{position:absolute;z-index:2;display:grid;align-content:center;justify-content:center;top:1.6%;left:28%;width:45%;height:14%;margin:0;padding:.3cqw 4cqw;color:var(--blue);background:url("assets/ui-cloud.webp") center / 100% 100% no-repeat;font:400 clamp(28px,4.6cqw,70px)/1.05 var(--display);text-align:center;text-wrap:balance}
[data-title-length=medium] .scene-content>h1{font-size:clamp(22px,3.25cqw,48px)}
[data-title-length=long] .scene-content>h1{font-size:clamp(18px,2.65cqw,39px)}
.source-panel,.task-panel{position:absolute;overflow:auto;min-height:0;padding:.3cqw .45cqw;color:var(--ink);font-size:clamp(17px,1.93cqw,29px);line-height:1.46}
.material-card+.material-card{margin-top:1.1cqw;border-top:2px dashed #bc9a63;padding-top:.75cqw}
.source-heading h2{display:table;margin:0 auto .55cqw;padding:.15cqw .8cqw;background:#e6efba;color:#263f38;border-radius:38% 21% 31% 18%;font:400 clamp(18px,2.1cqw,35px)/1.15 var(--display);text-align:center}
.source-text{font-weight:650;line-height:1.5;white-space:pre-line}
.material-image,.scene-art{display:block;max-width:100%;max-height:20cqw;margin:.5cqw auto;object-fit:contain}
.source-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.4cqw;margin-top:.75cqw}
.source-tools button,.listen-button{border:2px solid #ac8959;border-radius:1.5em;background:#fff1bc;min-height:44px;padding:.18em .7em;font:400 clamp(16px,1.76cqw,27px) var(--display);box-shadow:inset 0 -2px 0 #bda56866}
.source-open{background:#eee5ff!important;color:#402d66}
.listen-button::before{content:'◖))';margin-right:.36em;font-family:system-ui,sans-serif;font-weight:700;font-size:.78em}
.source-open::before{content:'▣';margin-right:.3em}
.audio-status{font:600 clamp(12px,1.1cqw,17px)/1.25 var(--body);color:#263e38}
.audio-status:empty{display:none}
.scene-footer{bottom:1.2%;height:10%}
.footer-actions{display:contents}
.scene-footer button,.catalog-return,.source-close{display:inline-flex;align-items:center;justify-content:center;gap:.35em;min-width:15%;max-width:33%;min-height:44px;height:100%;padding:.15em 1.2em .28em;border:0;background:transparent url("assets/ui-cream.webp") center / 100% 100% no-repeat;color:#482607;font:400 clamp(21px,2.85cqw,43px)/1.03 var(--display);text-align:center}
.scene-footer .previous::before{content:'◀';font-size:.72em}
.scene-footer .next::after{content:'▶';font-size:.72em}
.scene-footer :is(.check,.retry){position:absolute;left:50%;transform:translateX(-50%);min-width:21%}
.scene-footer .primary,.source-close{background-image:url("assets/ui-gold.webp")}
.scene-footer :is(.next,.finish,.catalog-return){margin-left:auto}
.scene-footer button:disabled{filter:saturate(.36) brightness(.85);color:#554d44}
button:focus-visible,a:focus-visible{outline:3px solid #0665c4!important;outline-offset:2px}
button:enabled:hover,.catalog-return:hover{filter:brightness(1.035)}
button:enabled:active{translate:0 1px}
[data-layout=cover] .topbar{inset:0;height:100%;align-items:start}
[data-layout=cover] .brand{position:absolute;left:2%;top:1%;width:23%;height:21%;background:none}
[data-layout=cover] .episode-meta{position:absolute;left:50%;top:3.2%;transform:translateX(-50%);background:#fce7a7}
[data-layout=cover] .page-counter{position:absolute;right:2%;top:3%}
[data-layout=cover] .review-badge{top:11%;right:2%}
[data-layout=cover] .source-panel,[data-layout=cover] .previous{display:none}
[data-layout=cover] .task-panel{left:23.5%;top:7.5%;width:55%;height:25.5%;padding:.35cqw 1.35cqw;display:flex;flex-direction:column;justify-content:safe center;align-items:center;text-align:center}
[data-layout=cover] h1{margin:0;color:#102251;font:400 clamp(36px,6.45cqw,100px)/1.08 var(--display);text-wrap:balance}
[data-layout=cover][data-title-length=medium] h1{font-size:clamp(24px,3.85cqw,62px)}
[data-layout=cover][data-title-length=long] h1{font-size:clamp(21px,3.1cqw,49px)}
[data-layout=cover] .page-body{margin-top:.45cqw;color:#364a22;background:#e4efb8;border-radius:.65em;padding:.05em .55em;font:400 clamp(15px,1.94cqw,30px)/1.2 var(--display)}
[data-layout=cover] .scene-footer{inset:0;height:100%}
[data-layout=cover] .next{position:absolute;right:1.8%;bottom:6.4%;width:37.5%;max-width:none;height:22%;border-radius:40px;font-size:0;background:none}
[data-layout=cover] .next::after{content:none}
[data-layout=read] .scene-content>h1{top:6.8%;height:14%;left:29%;width:46%}
[data-layout=read] .source-panel{left:52%;top:28%;width:34%;height:49%;padding:.45cqw .6cqw}
[data-layout=read] .task-panel{display:none}
[data-layout=read] .page-body,[data-layout=read] .prompt{margin-bottom:.65cqw;color:#293c48;background:#d8f0e9b8;border-bottom:2px solid #8cbeb4;padding:.27em .45em;font:400 clamp(16px,1.65cqw,25px)/1.3 var(--display)}
[data-layout=read] .source-panel.art-panel{display:flex;flex-direction:column;justify-content:safe center}
[data-layout=read] .art-panel>.page-body,[data-layout=read] .art-panel>.prompt{background:none;border:0;font:400 clamp(21px,2.7cqw,42px)/1.4 var(--display)}
[data-layout=read] .scene-content>:is(.scene-art,.left-page-illustration){position:absolute;left:25.5%;top:31%;width:22.5%;height:42%;max-height:none;margin:0;object-fit:contain;background:#fff5db;border:4px solid #ffefd2;box-shadow:1px 3px 6px #49331c7a;border-radius:5px;transform:rotate(-2deg)}
[data-layout=activity] .source-panel{left:8%;top:42.3%;width:31.2%;height:41.5%}
[data-layout=activity] .task-panel{left:43%;top:41.6%;width:53.5%;height:42.8%}
[data-layout=activity] .scene-content>h1{top:.4%;height:15%}
.floating-instruction,.dialogue-balloon{position:absolute;margin:0;padding:.5cqw 3.5cqw 1.3cqw;background:url("assets/ui-balloon.webp") center / 100% 100% no-repeat;overflow:auto;display:grid;align-content:safe center;text-align:center;font:400 clamp(20px,2.65cqw,41px)/1.25 var(--display)}
.floating-instruction{left:52%;top:17%;width:44%;height:20%}
.choices{display:flex;flex-direction:column;gap:.5cqw}
.choice{border:2px solid #8bbfd4;background:#fffcf0;color:#442b1b;border-radius:.8em;min-height:44px;padding:.35em .66em;font:400 clamp(16px,1.83cqw,28px)/1.24 var(--display);box-shadow:inset 0 -3px 0 #d6e6e8}
.choice[aria-pressed=true],.selected-card{background:#fff0b8;border-color:#9c5e12;box-shadow:inset 0 0 0 2px #ffd460}
.choice[aria-pressed=true]::before{content:'✓ ';color:#704000}
.choice:disabled:not([aria-pressed=true]){color:#5f5545;background-color:#f1e8cf}
.mark-choice{display:inline;min-height:44px;margin:1px .13em;padding:.12em .33em;font-size:inherit;line-height:1.2}
.operation-hint,.prior-entries,.compose-slot legend,.composed-line,.order-tray,.voice-prompt,.feedback{margin:0 0 .55cqw}
.operation-hint,.prior-entries{font-size:clamp(14px,1.48cqw,22px);line-height:1.35}
.prior-entry{padding:.25em .55em;border-inline-start:3px solid #8ca05c;background:#e9efcb}
.prior-entry dt{font-weight:750;color:#4e5e36}
dd{margin:0}
.order-bank,.order-tray,.compose-slot .choices{flex-direction:row;flex-wrap:wrap}
.order-tray,.composed-line{padding:.5em;border:2px dashed #a69a63;border-radius:.55em;background:#fffcf5}
.order-tray,.composed-line{margin-top:.65cqw}
.order-tray>span{color:#73644a}
.match-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65cqw}
.match-grid .choice{font-size:clamp(15px,1.55cqw,24px)}
.linked-value{color:#23634e}
.compose-slot{margin:0 0 .55cqw;border:1px dashed #a1a378;border-radius:.6em;padding:.35em .55em .55em;min-width:0}
.compose-slot legend{padding:0 .3em;color:#375b53;font-weight:700}
.activity-illustration{height:100%;min-height:8em;background:url("assets/forest-read.webp") 44% center/185% auto;border:.35em solid #ffefd2;transform:rotate(-2deg)}
.feedback{margin:.65cqw 0;padding:.45em .65em;background:#e5efcc;border-left:4px solid #54825f;color:#204434;border-radius:.4em;font-weight:700}
.feedback[data-result=wrong]{background:#ffe9c9;border-color:#ad6319;color:#62370e}
[data-layout=quiz] .source-panel{left:11.2%;top:35.5%;width:42.5%;height:47%}
[data-layout=quiz] .task-panel{left:59%;top:34%;width:38.7%;height:51.5%;padding:.2cqw .5cqw}
.bookmark-choices{counter-reset:bookmark;gap:.65cqw}
.bookmark-choices .choice{border:0;border-radius:.9em;background:transparent url("assets/ui-tag.webp") center / 100% 100% no-repeat;box-shadow:none;text-align:left;display:flex;align-items:center;min-height:8.25cqw;padding:.42em 2em .55em 20%;gap:.4em;counter-increment:bookmark}
.bookmark-choices .choice::before{content:counter(bookmark);display:grid;place-items:center;flex:0 0 1.35em;height:1.35em;border:2px solid currentColor;border-radius:50%;font-size:.91em;color:inherit}
.bookmark-choices .choice[aria-pressed=true]{outline:3px solid #ffcb36;outline-offset:-3px}
.bookmark-choices .choice[aria-pressed=true]::before{content:'✓';color:white;background:#725217;border-color:#725217}
.quiz-question{margin:.65cqw 0 0;padding:.4em .55em;border-top:2px dashed #c9ad68;background:#fce9a9;border-radius:.55em;font:400 clamp(18px,2.05cqw,30px)/1.28 var(--display)}
[data-layout=voices] .task-panel{display:contents}
[data-layout=voices] .task-panel>:is(.prior-entries,.page-body,.prompt){display:none}
.voices{position:absolute;left:14%;width:69%;top:37.5%;height:36%;display:flex;flex-direction:row;gap:1.1%;align-items:stretch;justify-content:center;overflow-x:auto}
.voice-choice{position:relative;flex:1 1 0;min-width:12%;border:0;padding:0;background:none!important;box-shadow:none!important;display:flex;align-items:center;justify-content:flex-end;flex-direction:column}
.voice-choice[aria-pressed=true]::before{content:none}
.portrait{flex:1 1 0;min-height:0;width:100%;background:center bottom / contain no-repeat}
[data-speaker="0"] .portrait{background-image:url("assets/sori.webp")}
[data-speaker="1"] .portrait{background-image:url("assets/moa.webp")}
[data-speaker="2"] .portrait{background-image:url("assets/nuri.webp")}
.voice-choice[aria-pressed=true] .portrait{filter:drop-shadow(0 0 3px white) drop-shadow(0 0 4px #ffb600)}
.speaker-name{position:relative;display:grid;place-items:center;min-width:54%;min-height:23%;margin-top:-8%;padding:.05em .7em .18em;background:url("assets/ui-cream.webp") center / 100% 100% no-repeat;font:400 clamp(17px,2.15cqw,34px)/1 var(--display);z-index:1}
.voice-choice[aria-pressed=true] .speaker-name{background-image:url("assets/ui-gold.webp")}
.voice-seen{position:absolute;right:10%;bottom:5%;z-index:2;background:#275741;color:#fff;border-radius:50%;font:700 14px var(--body);padding:.15em .42em}
.dialogue-balloon{left:17%;top:16%;width:67%;height:24%;font-size:clamp(24px,3.8cqw,56px);padding:.5cqw 4.6cqw 1.55cqw}
.dialogue-balloon>strong{font:400 clamp(14px,1.48cqw,23px) var(--display);color:#805524}
[data-layout=voices] .source-panel{left:35%;width:31%;top:76.2%;height:18%;padding:.3cqw .9cqw;background:#fff1cdc9;border-radius:.8cqw}
[data-layout=voices] .source-heading h2{font-size:clamp(14px,1.47cqw,23px);margin:0 auto .2em}
[data-layout=voices] .source-text{font-size:clamp(13px,1.28cqw,20px);line-height:1.28}
[data-layout=voices] .source-panel.art-panel{display:none}
[data-layout=voices] .source-panel .source-tools{margin-top:.35em}
[data-layout=voices] .source-panel .listen-button{display:none}
.voice-tools{position:absolute;bottom:11.6%;left:3%;width:29%;padding:.2em;background:#fff0d5ef;border-radius:.7em}
.voice-tools .audio-status:empty{display:none}
[data-layout=notebook] .scene-content>h1{left:9%;width:34%;top:30%;height:12%;color:#492b20;background-image:url("assets/ui-cream.webp");font-size:clamp(24px,3.8cqw,57px)}
[data-layout=notebook] .source-panel{display:none}
[data-layout=notebook] .task-panel{left:49%;top:31%;width:42%;height:47%;padding:.7cqw}
.notebook-goal{position:absolute;left:10.5%;width:31%;top:78%;height:9.5%;display:grid;align-content:safe center;overflow:auto;padding:.25em .6em;text-align:center;color:#344e3f;background:#edf1d4e6;border:1px solid #92a665;border-radius:.65em;font:400 clamp(14px,1.48cqw,23px)/1.18 var(--display)}
.notebook-entries{margin:0;display:grid;gap:.55cqw}
.notebook-entry{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:stretch;gap:.25em;font:400 clamp(17px,2.05cqw,31px)/1.3 var(--display)}
.notebook-entry dt,.notebook-entry dd{display:flex;align-items:center;justify-content:center;padding:.6em .48em;border:1.5px dashed #9c7c4c;border-radius:.75em;background:#fff9dc}
.notebook-entry dt{background:#f3dfdf;color:#543744}
.notebook-entry:nth-child(3n + 2) dt{background:#e2edc0;color:#3f5734}
.notebook-entry:nth-child(3n) dt{background:#e6dcf3;color:#4e3b65}
.review-note,.storage-warning{margin:.5em 0;color:#59421d;font-size:.82em}
.finish-message{padding:.5em;background:#e4f1d5;border-radius:.55em;color:#2c573c}
.source-dialog{position:fixed;max-width:min(86vw,1000px);width:70vw;max-height:86dvh;background:#fff6e0;border:3px solid #c0a269;border-radius:1.1em;padding:1.15em 1.5em;box-shadow:0 1em 4em #182c2ccc;overscroll-behavior:contain;color:var(--ink);font:600 clamp(19px,2.05vw,29px)/1.5 var(--body)}
.source-dialog::backdrop{background:#192c26bf}
.source-dialog .material-card{height:auto}
.source-dialog .material-image{max-height:38dvh}
.source-dialog .source-heading h2{font-size:1.15em}
.source-dialog .source-tools button{font-size:.85em}
.source-close{display:flex;margin:.75em 0 0 auto;width:24%;height:2em;font-size:.95em}
.load-error{width:80%;margin:9% auto;background:#fff5d8;border-radius:1em;padding:2em}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.material-video{display:block;width:100%;max-width:100%;max-height:27cqh;margin:.5em auto;object-fit:contain;background:#243831;border-radius:.4em}
.source-dialog .material-video{max-height:45dvh}
[data-layout=cover][data-compact-cover=true] .page-body{font-size:clamp(14px,1.58cqw,25px)}
[data-layout=activity] .source-panel .material-image,[data-layout=quiz] .source-panel .material-image,.quiz-book-illustration{float:right;width:35%;max-height:10cqw;object-fit:contain;margin:0 0 .3em .5em;border-radius:.35em}
[data-layout=activity] .source-panel .source-tools,[data-layout=quiz] .source-panel .source-tools{clear:both}
[data-layout=activity]:is([data-type=pick],[data-type=mark]) .task-panel>.choices>.choice{min-height:6.35cqw;padding:.4em .7em;border-radius:1.45em;border-color:#77b7da;border-width:2.5px;font-size:clamp(20px,2.6cqw,38px);box-shadow:inset 0 0 0 3px #fffdf8,inset 0 -6px 0 #cde7f5,0 2px 0 #ad8761}
[data-layout=activity][data-option-size=long]:is([data-type=pick],[data-type=mark]) .task-panel>.choices>.choice{font-size:clamp(16px,1.83cqw,28px)}
[data-layout=activity] .task-panel>.choices>.choice[data-clue-art]{background-position:14% center;background-size:auto 83%;background-repeat:no-repeat;padding-left:29%}
[data-clue-art="1"]{background-image:none}
[data-clue-art="2"]{background-image:none}
[data-clue-art="3"]{background-image:none}
[data-layout=activity]:is([data-type=pick],[data-type=mark]) .task-panel>.choices>.choice[aria-pressed=true]{border-color:#916016;box-shadow:inset 0 0 0 3px #ffeea0,0 2px 0 #8d6339}
[data-layout=quiz] .scene-content>h1{background-image:url("assets/ui-quiz-banner.webp");padding-left:11%;padding-right:3.8%;top:.6%;height:13.5%;width:43%;font-size:clamp(24px,3.65cqw,57px)}
[data-layout=quiz][data-title-length=long] .scene-content>h1{font-size:clamp(16px,1.93cqw,30px)}
[data-layout=quiz][data-title-length=medium] .scene-content>h1{font-size:clamp(18px,2.5cqw,38px)}
[data-layout=quiz][data-option-size=short] .bookmark-choices>.choice{font-size:clamp(20px,2.55cqw,37px)}
[data-layout=quiz][data-option-size=medium] .bookmark-choices>.choice{font-size:clamp(17px,2.05cqw,31px)}
.bookmark-choices .choice:nth-child(2){background-image:url("assets/ui-tag-pink.webp")}
.bookmark-choices .choice:nth-child(3){background-image:url("assets/ui-tag-violet.webp")}
[data-layout=voices] .source-panel .material-image,[data-layout=voices] .source-panel .material-video{display:none}
[data-layout=voices] .source-panel .source-open{font-size:clamp(13px,1.4cqw,20px)}
[data-layout=voices] .voice-tools{width:auto;max-width:25%;flex-direction:column;align-items:flex-start}
.notebook-entry dt::before{content:'';flex:0 0 2.1em;height:2.1em;background:url("assets/ui-search-sticker.webp") center / contain no-repeat}
.notebook-entry:nth-child(3n+2) dt::before{background-image:url("assets/ui-book-sticker.webp")}
.notebook-entry:nth-child(3n) dt::before{background-image:url("assets/ui-note-sticker.webp")}
.notebook-entry dt{gap:.25em}
.response-note{position:absolute;left:53%;top:16%;width:44%;height:19%;z-index:3;display:grid;align-content:safe center;overflow:auto;margin:0;padding:.5em .9em;border:3px solid #638952;box-shadow:0 3px 0 #745d36;border-radius:1em;color:#234830;font:400 clamp(17px,2.05cqw,30px)/1.32 var(--display)}
.response-note[data-result=wrong]{border-color:#bf7525}
[data-layout=quiz] .response-note{left:60%;width:37%;top:15%;height:16.5%}
[data-result=done] .floating-instruction,[data-result=wrong] .floating-instruction{visibility:hidden}

[data-layout=read] .scene-content>.left-page-illustration{left:20.2%;top:52.5%;width:28.6%;height:auto;max-height:40%;object-fit:contain;background:transparent;border:3px solid #ffefd2;transform:translateY(-50%) rotate(-2deg)}
.bookmark-choices .choice{padding-left:22%}
.play-scene[data-layout=activity][data-weather=rain]{background-image:none}
.play-scene[data-layout=voices][data-weather=rain]{background-image:none}
.play-scene[data-layout=quiz][data-weather=rain]{background-image:none}
.play-scene[data-layout=notebook][data-weather=rain]{background-image:none}
.painted-control{isolation:isolate}
.control-paint{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
.topbar .brand.painted-control{position:relative;background:none}
.brand .control-paint{object-fit:contain;object-position:left center}
.scene-footer .painted-control{position:relative;border-radius:4em;background:#fff0c9}
.scene-footer .painted-control.primary{background:#ffcf54}
.scene-footer :is(.check,.retry).painted-control{position:absolute}
.dialogue-balloon.painted-control{background:#fff5db;border-radius:6em;background-clip:content-box}
.dialogue-balloon.painted-control .control-paint{object-fit:fill}
[data-layout=quiz][data-quiz-title=wrap] .scene-content>h1{font-size:clamp(18px,2.45cqw,38px);line-height:1.04}
.quiz-question{margin:0 0 .55cqw;border-top:0;border-bottom:2px dashed #c9ad68}
.play-scene .choices>.choice[aria-pressed=true]::before,.play-scene .mark-choice[aria-pressed=true]::before{content:'● ';color:#855712}
.play-scene[data-result=wrong] .choices>.choice[aria-pressed=true]::before,.play-scene[data-result=wrong] .mark-choice[aria-pressed=true]::before{content:'× ';color:#8e3822}
.play-scene[data-result=done] .choices>.choice[aria-pressed=true]::before,.play-scene[data-result=done] .mark-choice[aria-pressed=true]::before{content:'✓ ';color:#226044}
.play-scene .voices>.voice-choice[aria-pressed=true]::before{content:none}
.play-scene .bookmark-choices>.choice[aria-pressed=true]::before{content:counter(bookmark);color:#fff}
.play-scene[data-result=wrong] .bookmark-choices>.choice[aria-pressed=true]::before{content:'×';color:#fff;background:#963e20;border-color:#963e20}
.play-scene[data-result=done] .bookmark-choices>.choice[aria-pressed=true]::before{content:'✓';color:#fff;background:#276343;border-color:#276343}
.source-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.source-dialog[open] .material-card{overflow:auto;overscroll-behavior:contain;padding:.2em .35em .45em;min-height:0}
.source-dialog[open] .source-close{flex:none;min-height:44px}

.stage-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:-1}
.topbar .episode-meta{font-size:clamp(15px,1.82cqw,28px);padding:.33cqw 1cqw;line-height:1.12}
.topbar .page-counter{min-width:10.2%;font-size:clamp(20px,2.65cqw,38px);line-height:1.08}
[data-layout=cover] .episode-meta{max-width:32%}
[data-layout=cover][data-weather=forest] .episode-meta,
[data-layout=cover][data-weather=forest] .page-counter{
  height:auto;border:0;border-radius:0;box-shadow:none;color:#4b290c;
  background:transparent url("assets/forest-cover-labels.webp") no-repeat;
}
[data-layout=cover][data-weather=forest] .episode-meta{
  left:50.37%;top:2.27%;width:26.17%;aspect-ratio:424/91;
  padding:0 2.15cqw .2cqw;background-size:100% auto;background-position:left top;
  font-size:clamp(16px,2.35cqw,38px);line-height:1;
}
[data-layout=cover][data-weather=forest] .page-counter{
  right:1.48%;top:1.44%;width:18.15%;aspect-ratio:294/133;
  padding:.65cqw .75cqw 0 6.5cqw;gap:.09em;
  background-size:144.22% auto;background-position:right bottom;
  font-size:clamp(22px,3.38cqw,55px);line-height:1;
}
[data-layout=cover][data-weather=forest][data-review=true] .page-counter{
  top:.3%;width:13.5%;padding:.45cqw .55cqw 0 4.8cqw;font-size:2.55cqw;
}
[data-layout=cover] .task-panel{top:8.1%;height:24.7%;padding:.15cqw .95cqw .35cqw}
[data-layout=cover] .page-body{flex-shrink:0}
[data-layout=read] .source-panel.reading-leaf{left:51.8%;top:26.8%;width:35.2%;height:53.6%;display:flex;flex-direction:column}
.reading-leaf .material-card{display:flex;flex-direction:column;flex:1 0 auto}
.reading-leaf.short-passage .source-text{font-size:clamp(19px,2.25cqw,34px);line-height:1.45}
.reading-leaf .source-heading h2{margin:.15cqw auto .55cqw;font-size:clamp(21px,2.45cqw,37px)}
.reading-leaf .source-tools{margin-top:auto;padding:.65cqw 0 .1cqw;justify-content:center;gap:.65cqw}
.reading-leaf .source-tools button{min-width:41%;min-height:max(44px,5.05cqw);padding:.25em .5em;font-size:clamp(18px,2.05cqw,31px)}
.reading-leaf .source-tools .audio-status:not(:empty){flex-basis:100%;text-align:center}
.quiz-book-illustration{float:right;width:34%;max-height:15cqw;height:auto;object-fit:contain;margin:.05em .3em .25em .45em}
[data-layout=quiz] .bookmark-choices>.choice{padding-inline-start:22%;padding-inline-end:11%}
[data-layout=quiz][data-option-size=medium] .bookmark-choices>.choice{font-size:clamp(18px,2.2cqw,34px)}
[data-layout=quiz][data-option-size=long] .bookmark-choices>.choice{font-size:clamp(17px,1.94cqw,29px)}
.notebook-goal{font-size:clamp(15px,1.72cqw,25px);border-width:2px}
.notebook-entry dt{font-size:.98em}
.match-grid:has(.match-left>.choice:nth-child(2):last-child) .choice{min-height:6.9cqw;font-size:clamp(18px,2.05cqw,31px)}
.source-panel.with-reading-tools{display:flex;flex-direction:column;overflow:hidden}
.reading-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9c865d transparent;padding:.1cqw .25cqw}
.reading-toolbar{flex:0 0 auto;max-height:57%;overflow:auto;scrollbar-width:thin}
.reading-toolbar .source-tools{flex-wrap:wrap;align-items:center;justify-content:center;margin:0;padding:.28cqw 0 0}
.reading-toolbar .audio-status:not(:empty){flex-basis:100%;text-align:center}
.tool-material-number{font:400 clamp(13px,1.35cqw,21px) var(--display);color:#56452e}
[data-layout=read] .source-panel:has(.tool-material-number) .reading-toolbar .source-tools{flex-wrap:nowrap}
[data-layout=read] .source-panel:has(.tool-material-number) .reading-toolbar button{min-width:0;flex:1 1 auto}
[data-layout=voices] .source-panel.with-reading-tools{height:22.3%;top:75.4%;padding:.3cqw .8cqw .28cqw}
[data-layout=voices] .reading-toolbar{max-height:58%}
[data-layout=voices] .source-panel .reading-toolbar .listen-button{display:inline-block}
[data-layout=voices] .reading-toolbar button{min-height:44px;font-size:clamp(13px,1.4cqw,21px);padding:.15em .48em}
[data-layout=voices] .reading-toolbar .audio-status:not(:empty){font-size:clamp(11px,1.1cqw,16px)}
.activity-illustration{background:#ede2c2 url("assets/reading-nook.webp") 50% 45%/cover no-repeat;min-height:0;height:100%;max-height:25cqw;border:.25em solid #fff6de;box-shadow:0 2px 3px #70533444;border-radius:.35em}
.earlier-scene .activity-illustration{float:right;width:34%;height:8.5cqw;margin:.3em 0 .35em .5em}
.earlier-scene h2{font:400 clamp(19px,2.1cqw,32px)/1.15 var(--display);margin:.4em 0;color:#405b38}
.earlier-scene p{margin:.2em 0;font-weight:650}
.scene-footer>.finish-message{position:absolute;left:50%;transform:translateX(-50%);max-width:46%;margin:0;padding:.35em .9em;border:2px solid #6b854f;border-radius:1em;color:#25472c;background:#eef6d8;font:400 clamp(17px,2.1cqw,31px)/1.2 var(--display);text-align:center}
[data-layout=cover] .task-panel{overflow:hidden}
.source-open{-webkit-tap-highlight-color:transparent}
.source-panel.quiz-with-materials{display:flex;flex-direction:column;overflow:hidden}
.quiz-with-materials>.quiz-question{flex:none;max-height:45%;overflow:auto;scrollbar-width:thin}
.quiz-material-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9c865d transparent;padding:.1em .2em}
.reading-leaf.short-passage .reading-scroll{display:flex;flex-direction:column;justify-content:safe center}
.reading-leaf.short-passage .reading-scroll>.material-card{flex:0 0 auto}
.reading-leaf.short-passage .source-text{font-size:clamp(20px,2.48cqw,36px);line-height:1.46}
.bookmark-choices>.choice:has(.bookmark-label){display:block;position:relative;padding:0}
.bookmark-choices>.choice:has(.bookmark-label)::before{position:absolute;left:20.5%;top:43.5%;transform:translateY(-50%);width:1.35em;height:1.35em}
.bookmark-label{display:block;position:absolute;left:30.5%;right:17.5%;top:43.5%;transform:translateY(-50%);font:inherit;line-height:1.2;text-align:left;word-break:keep-all;overflow-wrap:anywhere}
[data-layout=voices] .source-panel.compare-voices{left:24%;width:53%;top:75%;height:23.7%;border:2px solid #b99b66;background:#fff3d9f8}
[data-layout=voices] .compare-voices .reading-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:.65cqw;overflow:visible;max-height:none}
[data-layout=voices] .compare-voices .source-tools{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:.2cqw;align-content:start;min-width:0;padding:.1cqw .2cqw}
[data-layout=voices] .compare-voices .tool-material-number{grid-column:1/-1;text-align:center;font-size:clamp(14px,1.6cqw,24px);line-height:1.15;background:#ecebc3;border-radius:.4em}
[data-layout=voices] .compare-voices .source-tools button{min-width:0;padding:.1em .2em;font-size:clamp(13px,1.5cqw,20px);line-height:1.05}
[data-layout=voices] .compare-voices .source-tools .audio-status{grid-column:1/-1;max-height:2em;overflow:auto;line-height:1.05}
.play-scene[data-layout=quiz][data-tall-bookmarks=true] .task-panel{top:24%;height:61.8%}
.play-scene[data-tall-bookmarks=true] .response-note{left:52%;width:45.5%;top:14.5%;height:8.9%;padding:.2em .6em;font-size:clamp(15px,1.7cqw,25px)}
