:root{--paper:#fff;--ink:#323033;--muted:#786f68;--line:#e8dfd7;--accent:#dc4e83;--accent-ink:#b73366;--accent-pinyin:#b12f60;--accent-soft:#fff0f5;--accent-track:#f1d9e3;--accent-focus:#eeaac4;--soft:#fff}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--ink);font-family:"PingFang SC","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation}
button:disabled{cursor:default;opacity:.55}
button:focus-visible,input:focus-visible{outline:3px solid var(--accent-focus);outline-offset:4px}
svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}
[hidden]{display:none!important}
.review-layout{display:flex;gap:100px;align-items:center;justify-content:center;min-height:100vh;padding:35px 40px}
.review-panel{width:295px}
.edition{font-size:11px;letter-spacing:2px;color:#8c8077;margin-bottom:22px}
.review-panel h1{font-weight:500;font-size:32px;line-height:1.6;letter-spacing:1px;margin:0 0 21px}
.description{font-size:14px;line-height:2;color:#81766e;margin:0 0 35px}
.review-contents{border-top:1px solid var(--line);padding-top:17px;display:flex;flex-direction:column;gap:5px}
.review-contents button{border:0;background:transparent;text-align:left;padding:11px 0;display:flex;align-items:center;gap:13px;color:#81766e;font-size:13px}
.review-contents button b{font-family:Georgia,serif;font-weight:400;color:#a99a8e}
.review-contents button.active{color:var(--accent-ink)}
.review-contents button.active:after{content:"";width:5px;height:5px;border-radius:50%;background:var(--accent);margin-left:auto}
.review-meta{font-size:11px;line-height:2.1;color:#918276;margin-top:30px}
.quiet{color:#a3978c}
.device-wrap{width:390px;flex:none}
.device-note{font-size:11px;text-align:center;line-height:1.9;color:#8b7e73;margin:15px -10px 0}
.phone{position:relative;width:390px;height:844px;background:var(--paper);border-radius:26px;box-shadow:0 20px 60px #4b342412,0 0 0 1px #b78d7013;overflow:hidden}
.top{position:absolute;left:24px;right:28px;top:24px;height:40px;display:flex;align-items:center}
.icon-button{border:0;background:transparent;width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:0;flex:none;color:var(--accent-ink)}
.icon-button svg{width:23px;height:23px}
.back{margin-left:-12px;margin-right:9px}
.back svg{width:19px;height:19px}
.book{display:flex;align-items:flex-end;gap:2px}
.book .unit{width:17px}
.book .py{font-size:9px;line-height:12px}
.book .hz{font-size:14px;line-height:20px;font-weight:600}
.lesson-index{margin-left:auto;font-size:12px;letter-spacing:1.3px;color:#998b80;font-variant-numeric:tabular-nums}
.lesson-index strong{color:var(--accent-ink);font-weight:500}
.heading{position:absolute;top:87px;left:28px;right:28px;display:flex;align-items:center;justify-content:space-between}
.heading-text{display:flex;gap:4px}
.heading-text .unit{width:25px}
.heading-text .py{font-size:10px;line-height:15px}
.heading-text .hz{font-size:22px;line-height:31px;font-weight:600}
.unit{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:none;white-space:nowrap;vertical-align:bottom;min-width:max-content;padding-inline:1px}
.py{font-family:"Helvetica Neue",Arial,sans-serif;display:block;font-weight:500;color:var(--muted);text-align:center}
.hz{display:block;text-align:center;font-weight:500}
.punct{display:inline-flex;align-items:flex-end;flex:none;white-space:pre}
.verse{display:flex;align-items:flex-end;justify-content:center;height:64px;white-space:nowrap}
.verse .unit{width:40px}
.verse .py{font-size:12px;line-height:18px;margin-bottom:4px}
.verse .hz{font-family:"Songti SC","STSong",serif;font-size:32px;line-height:42px;font-weight:600}
.verse .punct{font-family:"Songti SC",serif;font-size:30px;font-weight:600;line-height:42px;width:15px}
.verse .comma{margin-right:14px}
.verse.current{color:var(--accent)}
.verse.current .py,.focused-verse .py{color:var(--accent-pinyin)}
.verse.current .unit:nth-child(3) .hz{box-shadow:0 1px var(--accent-focus)}
.verses{position:absolute;left:28px;right:28px;top:108px;display:flex;flex-direction:column;gap:12px}
.verse-button{background:transparent;border:0;padding:0;text-align:initial;color:inherit;width:100%;border-radius:8px}
.focused-verse{position:absolute;top:100px;left:28px;right:28px;height:84px;padding:8px 12px 10px;color:var(--accent);background:#fff;border:1px solid var(--line);border-radius:16px}
.reading-gloss{position:absolute;left:28px;top:428px;display:flex;align-items:flex-end;gap:15px}
.gloss-term .py{font-size:11px;line-height:17px}
.gloss-term .hz{font-family:"Songti SC",serif;font-size:27px;line-height:35px;font-weight:600;color:var(--accent-ink)}
.gloss-description{display:flex;gap:4px;border-left:1px solid var(--line);padding-left:15px;margin-bottom:3px}
.gloss-description .unit{width:22px}
.gloss-description .py{font-size:9px;line-height:15px}
.gloss-description .hz{font-size:14px;line-height:22px}
.gloss-description .punct{font-size:13px;line-height:22px;width:9px}
.stage{position:absolute;top:592px;left:28px;right:28px;height:108px}
.character{position:absolute;width:108px;height:108px;bottom:0}
.character.xiaojiu{left:5px}
.character.mengji{right:5px}
.sprite{position:relative;width:100%;height:100%;background-size:400% 200%;background-repeat:no-repeat;background-position:0% 0%}
.xiaojiu>.sprite{background-image:url('assets/xiaojiu-sprite.webp')}
.mengji>.sprite{background-image:url('assets/mengji-sprite.webp')}
.props{position:absolute;left:0;right:0;bottom:6px;height:95px;pointer-events:none;display:none}
.jade-props{bottom:96px}
.stage[data-scene="jade"] .jade-props,.stage[data-scene="pen"] .pen-props,.stage[data-scene="paper"] .paper-props,.stage[data-scene="books"] .books-props{display:block}
.worktop{position:absolute;left:100px;right:100px;bottom:21px;height:6px;background:#e6e1d3;border:1px solid #cec9ba;border-radius:3px;box-shadow:0 2px 0 #eee9dc}
.jade-object{position:absolute;width:76px;height:76px;overflow:hidden;bottom:16px}
.jade-object img{position:absolute;left:0;top:0;width:152px;height:76px;max-width:none}
.stone-object{left:90px}
.bowl-object{right:90px}
.bowl-object img{left:-76px}
.jade-object.focused{filter:drop-shadow(0 0 3px #e99aba)}
.pen-props svg{height:70px;width:84px;position:absolute;left:114px;bottom:13px}
.paper-props svg{height:70px;width:112px;position:absolute;left:111px;bottom:10px}
.paper-fold{transform-origin:90px 80px;transition:transform 1.4s ease}
.stage[data-fold="start"] .paper-fold{transform:rotate(-9deg)}
.books-props svg{height:70px;width:103px;position:absolute;left:115px;bottom:12px}
.pen-props .pen{transition:transform 1.5s ease}
.stage[data-transfer="done"] .pen{transform:translateX(20px)}
.read-hint{position:absolute;left:50%;transform:translateX(-50%);top:651px;display:flex}
.read-hint .unit{width:18px}
.read-hint .py{font-size:8px;line-height:13px}
.read-hint .hz{font-size:12px;line-height:20px}


.phone:not([data-mode="listen"]) .props{display:none}
.phone:not([data-mode="read"]) .reading-gloss,.phone:not([data-mode="read"]) .verses,.phone:not([data-mode="read"]) .read-hint{display:none}
.phone[data-mode="read"] .focused-verse,.phone[data-mode="read"] .conversation{display:none}
.conversation{position:absolute;top:205px;left:28px;right:28px}
.speaker-row{display:flex;gap:10px;align-items:center;margin-bottom:14px}
.speaker{display:flex;position:relative;gap:2px}
.speaker:after{content:"";position:absolute;left:1px;right:1px;bottom:-5px;height:2px;background:#dca8b0}
.conversation[data-speaker="mengji"] .speaker:after{background:#d0af80}
.speaker .unit{width:18px}
.speaker .py{font-size:8px;line-height:13px}
.speaker .hz{font-size:12px;line-height:18px;font-weight:600}
.speaking-mark{display:flex;gap:3px;align-items:center;height:12px;margin-top:12px;opacity:.4}
.speaking-mark i{width:2px;height:4px;background:var(--accent)}
.phone.playing .speaking-mark{opacity:1}
.phone.playing .speaking-mark i{animation:voice .7s ease-in-out infinite alternate}
.phone.playing .speaking-mark i:nth-child(2){animation-delay:.2s}
.phone.playing .speaking-mark i:nth-child(3){animation-delay:.4s}
@keyframes voice{to{height:11px}
}
.speech-content{display:flex;flex-wrap:wrap;gap:8px 0;align-items:flex-end;align-content:flex-start}
.speech-content .unit{width:24px}
.speech-content .py{font-size:10.5px;line-height:16px;margin-bottom:3px}
.speech-content .hz{font-size:19px;line-height:26px;font-weight:500}
.speech-content .punct{font-size:17px;line-height:26px;width:10px}
.learning-illustration{position:absolute;left:50%;top:421px;width:296px;height:144px;transform:translateX(-50%);margin:0;pointer-events:none}
.learning-illustration img{display:block;width:100%;height:100%;object-fit:contain}
.learning-illustration canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0}
.learning-illustration.motion-ready img{opacity:0}
.learning-illustration.motion-ready canvas{opacity:1}
.phone:not([data-mode="listen"]) .learning-illustration{display:none}
.phone.has-learning-illustration .pen-props,.phone.has-learning-illustration .paper-props,.phone.has-learning-illustration .books-props{display:none}
.phone[data-mode="listen"] .pen-props,.phone[data-mode="listen"] .paper-props,.phone[data-mode="listen"] .books-props{display:none}
.interaction{display:none}
.phone[data-mode="respond"] .interaction{display:block}
.phone:not([data-mode="listen"]) .conversation{display:none}
.question{position:absolute;top:193px;left:28px;right:28px;display:flex;flex-wrap:wrap;justify-content:center;gap:7px 0;align-items:flex-end}
.question .unit{width:26px}
.question .py{font-size:10px;line-height:17px;margin-bottom:4px}
.question .hz{font-size:21px;line-height:29px;font-weight:600}
.question .punct{font-size:19px;line-height:29px;width:13px}
.choices{position:absolute;left:28px;right:28px;top:259px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.choice{position:relative;height:140px;border:1px solid var(--line);border-radius:17px;background:#fff;padding:8px 10px 12px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
.choice.selected{border:2px solid var(--accent);background:#fff;padding:7px 9px 11px}
.object-window{position:relative;width:100px;height:68px;overflow:hidden;flex:none;margin-bottom:5px}
.object-window img{height:100px;width:200px;max-width:none;position:absolute;top:-16px;left:0;object-fit:contain}
.choice[data-key="bowl"] .object-window img{left:-100px}
.choice-name{display:flex;gap:3px}
.choice-name .unit{width:22px}
.choice-name .py{font-size:10px;line-height:16px}
.choice-name .hz{font-size:17px;line-height:24px}
.selected-check{position:absolute;right:10px;top:10px;width:19px;height:19px;background:var(--accent);color:white;border-radius:50%;align-items:center;justify-content:center;display:none}
.selected-check svg{width:12px;height:12px;stroke-width:2}
.choice.selected .selected-check{display:flex}
.feedback{position:absolute;left:28px;right:28px;top:423px;display:flex;align-items:flex-start}

.feedback-copy{border-left:2px solid #efb7cc;padding-left:10px;display:flex;flex-wrap:wrap;gap:4px 0;align-items:flex-end}
.feedback-copy .unit{width:19px}
.feedback-copy .py{font-size:8px;line-height:12px;margin-bottom:2px}
.feedback-copy .hz{font-size:15px;line-height:21px}
.feedback-copy .punct{font-size:13px;line-height:21px;width:7px}
.choices.text-choices{grid-template-columns:1fr;gap:8px;top:259px}
.text-choices .choice{height:71px;flex-direction:row;align-items:center;justify-content:flex-start;padding:3px 44px 3px 30px;border-radius:12px}
.text-choices .choice-name{flex-wrap:wrap;gap:0;max-width:100%}
.text-choices .unit{width:17px}
.text-choices .py{font-size:8px;line-height:13px}
.text-choices .hz{font-size:14px;line-height:20px}
.text-choices .punct{font-size:13px;line-height:22px;width:8px}
.text-choices .selected-check{right:7px;top:auto;bottom:6px;width:12px;height:12px}
.player{position:absolute;left:30px;right:30px;top:711px}
.progress{display:block;width:100%;height:14px;margin:0;padding:0;background:transparent;accent-color:var(--accent);cursor:pointer;appearance:none;-webkit-appearance:none}
.progress::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,var(--accent) var(--progress,0%),var(--accent-track) var(--progress,0%));border-radius:2px}
.progress::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-top:-2.5px}
.transport{display:flex;justify-content:space-between;align-items:center;padding:11px 26px 0}
.transport .icon-button{color:var(--accent-ink)}
.transport .primary{width:46px;height:46px;border-radius:50%;background:var(--accent);color:white}
.transport .primary svg{width:22px;height:22px;stroke-width:1.9}
.time{text-align:center;color:#a89a8e;font-size:9px;letter-spacing:.5px;margin-top:9px;font-variant-numeric:tabular-nums}
.home-indicator{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);width:86px;height:3px;background:var(--accent-ink);border-radius:5px}
.audio-error{position:absolute;left:28px;right:28px;bottom:132px;background:#fbf1e3;border:1px solid #d6c3a4;padding:13px;border-radius:10px;z-index:4;font-size:13px;line-height:1.6}
dialog{position:absolute;inset:auto 0 0;width:100%;max-width:390px;margin:auto;border:0;padding:24px 28px 40px;background:var(--paper);color:var(--ink);border-radius:23px 23px 0 0;box-shadow:0 -12px 40px #3c2c2419;max-height:80%;overflow:auto}
dialog::backdrop{background:#3d302a44}
.menu-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.menu-title{display:flex}
.menu-title .unit{width:24px}
.menu-title .py{font-size:10px;line-height:16px}
.menu-title .hz{font-size:20px;line-height:29px;font-weight:600}
.menu-item{display:flex;align-items:center;gap:13px;border:0;border-top:1px solid var(--line);background:transparent;width:100%;padding:15px 0;text-align:left}
.menu-item b{font-family:Georgia,serif;font-size:15px;font-weight:400;color:#a08d7c;width:25px}
.menu-item .ruby-text{display:flex;flex-wrap:wrap;gap:2px}
.menu-item .unit{width:20px}
.menu-item .py{font-size:8px;line-height:13px}
.menu-item .hz{font-size:15px;line-height:23px}
.phone .a11y-only{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

@media(max-width:760px){body{background:var(--paper)}
.review-layout{padding:0;display:block;min-height:100dvh}
.review-panel,.device-note{display:none}
.device-wrap{width:100%;display:flex;justify-content:center}
.phone{border-radius:0;box-shadow:none;flex:none}
.home-indicator{display:none}
}

@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}
}


.choice:disabled{opacity:1}
.speech-content .unit{padding-inline:1.5px}
.feedback-copy .unit{padding-inline:1.5px}

/* The second row begins just below the first row's shoe pixels. */
.xiaojiu>.sprite[data-frame="4"],.xiaojiu>.sprite[data-frame="5"],.xiaojiu>.sprite[data-frame="6"],.xiaojiu>.sprite[data-frame="7"]{clip-path:inset(2px 0 0 0)}



.choice-card{position:relative;min-width:0}
.choice{width:100%}
.choice-letter{position:absolute;left:13px;top:12px;font-size:12px;line-height:20px;font-weight:600;color:var(--muted)}
.choice-audio{position:absolute;right:1px;top:1px;width:38px;height:38px;color:var(--accent-ink);border-radius:50%}
.choice-audio svg{width:17px;height:17px}
.choice-audio[aria-pressed="true"]{color:var(--accent-ink);box-shadow:inset 0 0 0 1px var(--line)}
.choice .selected-check{top:auto;bottom:10px}
.text-choices .choice-letter{left:11px;top:24px;font-size:11px}
.text-choices .choice-audio{top:4px;width:34px;height:34px}
.teacher-view{display:none;position:absolute;left:28px;right:28px;top:108px;height:425px}
.phone[data-mode="teach"] .teacher-view{display:block}
.phone[data-mode="teach"] .focused-verse{display:none}
.teacher-tabs{position:absolute;top:0;left:0;right:0;display:flex;border-bottom:1px solid var(--line);gap:24px}
.teacher-tabs button{position:relative;display:flex;justify-content:center;gap:3px;flex:1;border:0;background:white;padding:0 0 10px;color:var(--muted)}
.teacher-tabs button[aria-selected="true"]{color:var(--accent-ink)}
.teacher-tabs button[aria-selected="true"]:after{content:"";position:absolute;bottom:-1px;left:30px;right:30px;height:2px;background:var(--accent)}
.teacher-tabs .unit{width:21px}.teacher-tabs .py{font-size:9px;line-height:14px}.teacher-tabs .hz{font-size:16px;line-height:23px;font-weight:600}
.practice-panel{position:absolute;top:101px;left:0;right:0;height:210px}
.teacher-verses{position:absolute;top:0;left:0;right:0}
.teacher-verses .verse{height:43px;margin-bottom:2px}
.teacher-verses .unit{width:34px}.teacher-verses .py{font-size:11px;line-height:14px;margin-bottom:1px}.teacher-verses .hz{font-size:26px;line-height:28px}
.teacher-verses .punct{font-size:25px;line-height:28px;width:13px}
.sentence-picker{position:relative;padding-top:10px}
.sentence-picker .icon-button{position:absolute;top:24px;width:30px;height:35px}.sentence-picker .icon-button svg{width:15px;height:15px}
#previous-sentence{left:-7px}#next-sentence{right:-7px}
.sentence-picker .verse .unit{width:33px}.sentence-picker .verse .hz{font-size:27px;line-height:36px}.sentence-picker .verse .py{font-size:11px;line-height:16px}
.sentence-picker .verse .punct{font-size:25px;line-height:36px;width:12px}.sentence-picker .verse .comma{margin-right:10px}
.sentence-count{font-size:9px;letter-spacing:2px;text-align:center;color:var(--muted);margin-top:8px}
.explain-prompts{margin-top:24px;display:flex;flex-direction:column;gap:16px}
.explain-prompts>div{display:flex;gap:13px;align-items:center}.explain-prompts>div>span:last-child{display:flex}
.prompt-number{font-size:10px;letter-spacing:1px;color:#a3968d;align-self:flex-end;padding-bottom:5px}
.explain-prompts .unit{width:24px}.explain-prompts .py{font-size:9px;line-height:15px}.explain-prompts .hz{font-size:17px;line-height:24px}.explain-prompts .punct{font-size:17px;line-height:24px;width:10px}
.record-status{position:absolute;top:320px;left:0;right:0;display:flex;justify-content:center;color:var(--muted)}
.record-status .unit{width:18px}.record-status .py{font-size:8px;line-height:12px}.record-status .hz{font-size:12px;line-height:19px}.record-status .punct{font-size:12px;line-height:19px;width:8px}
.record-controls{position:absolute;top:362px;left:18px;right:18px;height:52px;display:grid;grid-template-columns:52px 1fr 44px;align-items:center;gap:18px}
.record-button{position:relative;width:52px;height:52px;border:0;border-radius:50%;background:var(--accent);color:white;display:flex;align-items:center;justify-content:center;padding:0;isolation:isolate}
#record-icon svg{width:24px;height:24px}
#record-icon,#record-icon *{pointer-events:none}
.record-button.is-recording{color:white;background:#cf4358;box-shadow:0 0 0 5px #fae8ec}.record-button.is-recording #record-icon svg{fill:currentColor;stroke-width:0}
.record-time{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted);line-height:20px;min-width:40px}
.recording-play{border:1px solid var(--line);border-radius:50%;width:42px;height:42px}.recording-play:disabled{opacity:.32}
.record-note{position:absolute;top:414px;left:0;right:0;display:flex;justify-content:center;color:#94867d}.record-note .unit{width:13px}.record-note .py{font-size:6px;line-height:9px}.record-note .hz{font-size:9px;line-height:13px}

.word-group{display:inline-flex;align-items:flex-end;flex:none}

.teacher-view.has-response .practice-panel{visibility:hidden}
.teacher-response{position:absolute;top:103px;left:0;right:0;height:241px;background:white}
.response-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.response-top>span{display:flex}.response-top .unit{width:18px}.response-top .py{font-size:8px;line-height:12px}.response-top .hz{font-size:13px;line-height:20px;font-weight:600}
.response-top .icon-button{width:36px;height:36px}.response-top .icon-button svg{width:18px;height:18px}
#teacher-response-copy{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 0}
#teacher-response-copy .unit{width:23px;padding-inline:1.5px}#teacher-response-copy .py{font-size:9px;line-height:14px;margin-bottom:2px}#teacher-response-copy .hz{font-size:17px;line-height:23px;font-weight:500}#teacher-response-copy .punct{font-size:15px;line-height:23px;width:9px}
.response-bottom{display:flex;gap:8px;align-items:flex-start;margin-top:8px;position:relative}
#return-practice,#transcript-details summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--accent-ink)}
.response-bottom svg{width:20px;height:20px;pointer-events:none}
#transcript-details summary{list-style:none;cursor:pointer}
#transcript-details summary::-webkit-details-marker{display:none}
#transcript-details summary:focus-visible{outline:3px solid var(--accent-focus);outline-offset:4px}
#transcript-details[open] summary{color:var(--accent-ink);box-shadow:inset 0 0 0 1px var(--line)}
#transcript-details p{position:absolute;left:0;right:0;bottom:calc(100% + 8px);background:white;box-shadow:0 3px 14px #3c2c2419;padding:12px;font-size:13px;line-height:1.8;max-height:130px;overflow:auto;z-index:2;margin:0;border:1px solid var(--line);border-radius:10px}
.record-status{top:324px}.teacher-view.has-response .record-status{top:337px}.record-status:empty{display:none}



.teacher-view>#teacher-guide{position:absolute;top:53px;left:-8px;width:44px;height:44px;color:var(--accent-ink)}
.teacher-view>#teacher-guide svg{width:20px;height:20px}
.original-toggle{position:absolute;right:-8px;top:-48px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:50%;padding:0;color:var(--accent-ink)}
.original-toggle svg{width:20px;height:20px}
.original-toggle[aria-expanded="false"]{color:var(--accent-ink)}
.recite-prompt{position:absolute;top:19px;left:0;right:0;display:flex;align-items:center;flex-direction:column;gap:43px;pointer-events:none}
.memory-line{display:block;width:178px;border-top:1px dashed var(--line)}
.teacher-view.has-response>#teacher-guide{visibility:hidden}

.record-button.is-recording:before{content:"";position:absolute;inset:-6px;border:1.5px solid #cf4358;border-radius:50%;animation:record-ring 1.5s ease-out infinite;pointer-events:none}
@keyframes record-ring{from{transform:scale(1);opacity:.7}to{transform:scale(1.22);opacity:0}}
.record-indicator{display:flex;align-items:center;justify-content:center;gap:10px}
.record-signal{display:none;align-items:center;gap:3px;height:20px;color:#cf4358}
.record-signal i{display:block;width:3px;height:7px;border-radius:2px;background:currentColor;animation:record-wave .75s ease-in-out infinite alternate}
.record-signal i:nth-child(2){height:14px;animation-delay:-.35s}.record-signal i:nth-child(3){height:18px;animation-delay:-.6s}.record-signal i:nth-child(4){height:10px;animation-delay:-.15s}
@keyframes record-wave{to{transform:scaleY(.45)}}
.record-controls.is-recording .record-signal{display:flex}
.record-controls.is-recording .record-time{color:#b53549;font-weight:600}
@media(prefers-reduced-motion:reduce){.record-button:before,.record-signal i{animation:none!important}}

/* Use only the existing open-mouth frame over the fixed neutral body. */
.speech-mouth{display:none;position:absolute;inset:0;pointer-events:none;background-image:inherit;background-size:400% 200%;background-position:100% 100%;background-repeat:no-repeat;transform:translate(var(--mouth-dx,4.74%),var(--mouth-dy,-1.01%)) scaleY(var(--mouth-scale,1))}
.xiaojiu .speech-mouth{clip-path:ellipse(3.8% 3.2% at 54.7% 56.7%);mask-image:radial-gradient(ellipse 3.8% 3.2% at 54.7% 56.7%,#000 70%,transparent 100%);transform-origin:54.7% 56.7%}
.mengji .speech-mouth{clip-path:ellipse(4.2% 2.8% at 41.5% 49.8%);mask-image:radial-gradient(ellipse 4.2% 2.8% at 41.5% 49.8%,#000 70%,transparent 100%);transform-origin:41.5% 49.8%}
.character.mouth-open .speech-mouth{display:block}
.character[data-mouth-level="1"] .speech-mouth{--mouth-scale:.68}

/* Collection typography and long-text handling. */
.review-panel h1{font-size:22px;line-height:1.5;font-weight:600}.review-panel h1 .py{font-size:10px;line-height:18px}.review-panel h1 .hz{font-size:22px;line-height:32px}.review-panel .description:empty{display:none}.review-panel .review-contents .ruby-text{display:flex;flex-wrap:wrap}.review-contents .ruby-text .py{font-size:8px;line-height:13px}.review-contents .ruby-text .hz{font-size:13px;line-height:20px;font-weight:500}.device-wrap{display:flex;justify-content:center}.review-layout{padding:16px 32px}.new-course .reading-gloss{display:none}.new-course .verses{top:108px;max-height:445px;overflow-y:auto;gap:2px;scrollbar-width:thin}.new-course .verses .verse{height:51px;min-height:51px;flex:none}.new-course .verse .unit{width:30px}.new-course .verse .py{font-size:11px;line-height:16px;margin-bottom:2px}.new-course .verse .hz{font-size:28px;line-height:34px;font-weight:600}.new-course .verse .punct{font-size:25px;line-height:34px;width:12px}.new-course .verse .comma{margin-right:9px}.new-course .teacher-verses{max-height:218px;overflow:auto;scrollbar-width:thin}.new-course .teacher-verses .verse{height:42px;margin:0}.new-course .teacher-verses .unit{width:29px}.new-course .teacher-verses .py{font-size:10px;line-height:13px;margin-bottom:0}.new-course .teacher-verses .hz{font-size:25px;line-height:29px}.new-course .teacher-verses .punct{line-height:29px;font-size:23px;width:11px}.new-course .sentence-picker .verse .unit{width:29px}.new-course .sentence-picker .verse .hz{font-size:25px}.new-course .sentence-picker .verse .py{font-size:10px}.new-course .sentence-picker .verse .comma{margin-right:6px}.new-course .question{top:194px;max-height:103px;overflow:auto}.new-course .question .unit{width:23px}.new-course .question .py{font-size:9px;line-height:14px}.new-course .question .hz{font-size:18px;line-height:25px}.new-course .choices.text-choices{top:304px;gap:10px}.new-course .text-choices .choice{height:91px;padding-left:28px}.new-course .feedback{top:508px;max-height:78px;overflow:auto}.new-course .feedback-copy .unit{width:18px}.new-course .feedback-copy .hz{font-size:14px;line-height:19px}.new-course .feedback-copy .py{font-size:8px;line-height:11px}.new-course #teacher-response-copy{max-height:150px;overflow:auto;scrollbar-width:thin}.new-course .teacher-response .response-bottom{margin-top:6px}
.new-course .teacher-verses{mask-image:linear-gradient(to bottom,#000 0%,#000 95%,transparent 100%)}
/* iPhone 16 Pro: 402 × 874 CSS pixels. The content scrolls; actors and controls never do. */
.phone{--safe-top:0px;--safe-bottom:0px;width:402px;height:874px;isolation:isolate}
.device-wrap{width:402px}
.top{top:calc(var(--safe-top) + 16px);left:24px;right:24px;height:44px}
.lesson-body{position:absolute;top:calc(var(--safe-top) + 96px);bottom:calc(var(--safe-bottom) + 270px);left:0;right:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}
.lesson-sheet{position:relative;min-height:480px;height:100%}
.verses,.new-course .verses{top:12px}
.focused-verse{top:4px}
.reading-gloss{top:332px}
.conversation{top:109px}
.learning-illustration{top:325px}
.question{top:97px}.new-course .question{top:98px}
.choices,.choices.text-choices{top:163px}.new-course .choices.text-choices{top:208px}
.feedback{top:327px}.new-course .feedback{top:412px}
.stage{top:auto;bottom:calc(var(--safe-bottom) + 148px);left:28px;right:28px;height:108px;pointer-events:none}
.read-hint{display:none!important}
.player{top:auto;bottom:calc(var(--safe-bottom) + 29px);height:100px;left:30px;right:30px}
.transport{padding-top:12px}.transport .primary{width:48px;height:48px}
.progress{height:24px}.time{margin-top:6px}
.progress::-webkit-slider-thumb{width:10px;height:10px;margin-top:-4px}
.home-indicator{bottom:9px}
.audio-error{bottom:calc(var(--safe-bottom) + 135px)}
.phone[data-mode="teach"] .lesson-sheet{min-height:0}
.teacher-view{top:12px;bottom:0;height:auto}
.teacher-view>.original-toggle{top:53px;right:-8px}
.teacher-view:has(#recite-panel[hidden])>.original-toggle,.teacher-view.has-response>.original-toggle{display:none}
.practice-panel{height:auto;bottom:115px}
.teacher-verses,.new-course .teacher-verses{max-height:calc(var(--lesson-height) - 236px);overflow-y:auto;scrollbar-width:thin}
#explain-panel{overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
#explain-panel .sentence-picker{padding-inline:17px}
.sentence-picker .icon-button{width:44px;height:44px;top:20px}#previous-sentence{left:-8px}#next-sentence{right:-8px}
.sentence-picker .verse .unit{width:31px}.sentence-picker .verse .hz{font-size:25px}
.record-controls{top:auto;bottom:20px}
.record-status,.teacher-view.has-response .record-status{top:auto;bottom:78px}
.teacher-response{height:auto;bottom:106px;overflow-y:auto}
#teacher-response-copy,.new-course #teacher-response-copy{max-height:none;overflow:visible}
.response-bottom{position:sticky;bottom:0;background:white}
dialog{max-width:402px;padding-bottom:max(24px,env(safe-area-inset-bottom));max-height:85dvh}
.menu-item{padding:14px 0;min-height:60px}.menu-item .ruby-text{row-gap:5px;min-width:0}.menu-item .unit{width:19px}.menu-item .punct{font-size:14px;line-height:23px}
.review-contents button{min-height:44px}.review-contents .ruby-text{row-gap:5px}.review-contents .punct{font-size:12px;line-height:20px}
@media(max-width:760px){
 html,body{width:100%;min-height:100%;overscroll-behavior:none}
 .review-layout{padding:0;min-height:100dvh}.device-wrap{width:100%}
 .phone{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);width:100%;height:100dvh;min-height:640px;border-radius:0;box-shadow:none}
 #menu{position:fixed;max-width:none}
}
@media(max-width:380px){
 .verses,.new-course .verses,.focused-verse,.conversation,.question,.choices,.feedback,.teacher-view{left:22px;right:22px}
 .verse .unit{width:37px}.verse .hz{font-size:30px}.verse .comma{margin-right:10px}
 .sentence-picker .verse .unit{width:27px}.sentence-picker .verse .hz{font-size:23px}
}

.text-choices .choice-name{flex:1;min-width:0}
.text-choices .choice-name .punct{width:auto;min-width:8px}
.choice.selected{border-width:1px;box-shadow:inset 0 0 0 1px var(--accent)}
.choice-audio,.text-choices .choice-audio{width:44px;height:44px;top:1px;right:1px}

@media(min-width:761px) and (max-width:980px){.review-panel{display:none}.review-layout{gap:0}}

.menu-item[aria-current="step"]{color:var(--accent-ink)}.menu-item[aria-current="step"] b{color:var(--accent-ink);font-weight:600}

/* Match the pink progress treatment in Firefox as well as Safari. */
.progress::-moz-range-track{height:2px;background:var(--accent-track);border-radius:2px}
.progress::-moz-range-progress{height:2px;background:var(--accent);border-radius:2px}
.progress::-moz-range-thumb{width:7px;height:7px;border:0;border-radius:50%;background:var(--accent)}
