:root{color-scheme:light;--paper:#f9f5ee;--ink:#302d28;--muted:#81796f;--coral:#c96442;--line:#e6ddd1;--olive:#60705b;--soft:#f0e9df;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans CJK SC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none;min-height:44px;touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--coral);outline-offset:4px}button:disabled{opacity:.5;cursor:default}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.app-shell{max-width:500px;margin:auto;border-inline:1px solid var(--line);height:100dvh;display:flex;flex-direction:column;background:var(--paper)}.topbar{height:76px;flex-shrink:0;padding:16px 24px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.mobile-brand{display:none}.filter-button{font-size:16px;font-weight:650;padding:0}.filter-button span{color:var(--muted);margin-left:8px}.sound-toggle{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;padding:0}.sound-toggle[aria-pressed=true]{color:var(--coral)}.sound-toggle svg{width:20px}.feed{flex:1;min-height:0;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;scrollbar-width:none;outline:none;position:relative}.feed::-webkit-scrollbar{display:none}.lesson{min-height:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative;padding:26px 30px 16px;display:flex;flex-direction:column;justify-content:space-between;gap:18px}.lesson-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--muted);letter-spacing:.02em}.lesson-meta span:first-child{color:var(--olive)}.lesson-meta .status{font-size:11px}.word-area{text-align:center;padding:8px 0 4px}.word{font-size:64px;line-height:1.06;font-weight:750;letter-spacing:-.045em;margin:0 0 14px;overflow-wrap:anywhere;color:var(--coral)}.word.long{font-size:46px}.pron{font-size:25px;color:var(--coral);font-weight:500;margin:0 0 12px;letter-spacing:.04em}.meaning{font-size:21px;line-height:1.5;margin:0;font-weight:550}.listen{display:flex;align-items:center;gap:12px;justify-content:center;margin-top:16px}.play-button{height:64px;width:64px;border-radius:50%;border:1px solid #dcd0bf;background:#fdfbf7;display:grid;place-items:center;color:var(--coral)}.play-button svg{width:25px;height:25px;margin-left:3px}.play-button.playing{background:var(--coral);color:var(--paper);border-color:var(--coral)}.listen-caption{text-align:left;font-size:13px;color:var(--muted);line-height:1.7}.example{padding:17px 0 17px 18px;border-left:0;margin:0}.example-label{display:block;color:var(--muted);font-size:11px;margin-bottom:8px;letter-spacing:.05em}.example-en{font-size:23px;line-height:1.4;margin:0 0 7px;letter-spacing:-.02em}.example-zh{font-size:15px;line-height:1.6;color:var(--muted);margin:0}.feedback{display:grid;grid-template-columns:1fr 1fr;gap:12px}.feedback button{border-radius:14px;min-height:52px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:15px}.feedback svg{width:19px}.primary,.known{background:var(--coral);color:var(--paper);border:1px solid var(--coral)}.secondary,.again{border:1px solid #d9cec0;background:transparent}.swipe-prompt{display:flex;gap:7px;justify-content:center;align-items:center;color:var(--muted);font-size:11px;min-height:32px;margin-top:8px;width:100%}.swipe-prompt svg{width:14px;height:14px}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:650}.brand-mark{background:var(--coral);color:var(--paper);border-radius:12px;height:46px;width:46px;display:grid;place-items:center;font-size:25px;font-weight:500}.brand small{display:block;font-size:11px;letter-spacing:.04em;font-weight:400;color:var(--muted);margin-top:3px}.rail-copy{margin-top:auto;margin-bottom:auto}.eyebrow{font-size:12px;letter-spacing:.06em;color:var(--olive)}.rail-copy h1{font-size:34px;line-height:1.55;letter-spacing:-.035em;font-weight:600;margin:24px 0}.rail-copy p{font-size:14px;line-height:2;color:var(--muted)}.rail-note{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.small-dot{width:6px;height:6px;border-radius:50%;background:var(--olive)}.gesture-hint{font-size:12px;display:flex;gap:12px;align-items:center}.gesture-hint svg{width:15px;height:15px}.arrow-controls{display:flex;gap:12px;margin:24px 0 15px}.arrow-controls button{border:1px solid var(--line);height:46px;width:46px;border-radius:50%;display:grid;place-items:center}.arrow-controls svg{width:19px;height:19px}.desktop-help small{font-size:11px;line-height:1.8;color:#a39a8c}.page{flex:1;min-height:0;overflow-y:auto;padding:30px 26px 40px;overscroll-behavior:contain}.page-heading{margin-bottom:30px}.page-heading h2{font-size:28px;letter-spacing:-.04em;font-weight:650;margin:12px 0}.page-heading p{font-size:14px;color:var(--muted);line-height:1.7}.scene-row{display:flex;align-items:center;gap:16px;padding:21px 0;width:100%;text-align:left;border-bottom:1px solid var(--line)}.scene-number{font-size:12px;color:var(--coral);font-variant-numeric:tabular-nums;align-self:flex-start;padding-top:5px}.scene-row strong{font-weight:550;font-size:20px;display:block;margin-bottom:7px}.scene-row small{font-size:12px;color:var(--muted);line-height:1.7;display:block}.scene-arrow{margin-left:auto;color:var(--coral);font-size:22px}.wide{width:100%;min-height:52px;border-radius:13px;margin-top:20px;font-size:15px}.practice-teaser{padding-top:28px;margin-top:20px;border-top:1px solid var(--line)}h3{font-weight:600;font-size:17px}.practice-teaser p,.settings p{font-size:13px;color:var(--muted);line-height:1.9;text-indent:2em}.text-button{min-height:44px;display:inline-flex;align-items:center;gap:14px;color:var(--coral);font-size:14px;padding:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:15px 0 24px;border-bottom:1px solid var(--line)}.stats strong{display:block;font-size:32px;font-weight:550;color:var(--coral);font-variant-numeric:tabular-nums}.stats span{font-size:12px;color:var(--muted);display:block;margin-top:8px}.section-heading{margin-top:34px}.scene-meter{margin:20px 0}.meter-caption{display:flex;justify-content:space-between;font-size:13px;margin-bottom:10px}.meter-caption span:last-child{color:var(--muted)}.meter-track{height:4px;background:var(--line);border-radius:2px;overflow:hidden}.meter-track span{height:100%;display:block;background:var(--olive)}.settings{margin-top:32px;border-top:1px solid var(--line);padding-top:15px}.setting-actions{display:flex;justify-content:space-between;gap:12px}.file-button{cursor:pointer}.file-button input{display:none}.muted{color:var(--muted);font-size:12px}.version{display:block;margin-top:32px;font-size:10px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);padding:26px;max-width:440px;width:calc(100% - 30px);max-height:calc(100dvh - 48px);overflow:auto}dialog::backdrop{background:#302d2866}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.icon-button{width:44px;display:grid;place-items:center}.icon-button svg{width:20px}.dialog-heading+h2{font-size:25px;margin:12px 0 26px}dialog label{display:block;font-size:13px;margin:20px 0 10px}select,textarea{width:100%;border:1px solid #d9cec0;background:#fdfbf7;color:var(--ink);border-radius:10px;padding:14px;font-size:16px;line-height:1.6;resize:vertical}#practice-result{font-size:15px;line-height:1.8;margin-top:20px}#practice-result p{text-indent:2em}.fine-print{font-size:11px;line-height:1.9;color:var(--muted);text-indent:2em}#toast{position:fixed;left:50%;bottom:calc(95px + env(safe-area-inset-bottom));transform:translate(-50%,12px);background:var(--ink);color:var(--paper);font-size:13px;line-height:1.7;padding:11px 20px;border-radius:12px;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:20;max-width:calc(100% - 40px);width:max-content;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}.loading{padding:40px;color:var(--muted);line-height:1.8}.loading button{color:var(--coral);text-decoration:underline}.empty-review{padding:12px;font-size:13px;color:var(--olive);line-height:1.8}.feed-top-note{margin-top:0}button:hover{filter:brightness(.96)}button:active{transform:translateY(1px)}
@media(min-width:1600px){}@media(max-width:1150px){.rail-copy h1{font-size:28px}.gesture-hint{font-size:11px}}@media(max-width:950px){.desktop-rail,.app-shell{max-width:540px}.mobile-brand{display:block;font-size:19px;font-weight:650;white-space:nowrap}.mobile-brand span{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}.topbar{height:74px;padding:12px 22px;gap:10px}.filter-button{font-size:14px}.sound-toggle span{font-size:11px}.sound-toggle{gap:4px}.lesson{padding-inline:26px}}@media(max-width:540px){.app-shell{border:0;max-width:none}.lesson{padding-top:20px;gap:14px}.word{font-size:60px}.word.long{font-size:43px}.page{padding-top:25px}.topbar{padding-top:calc(10px + env(safe-area-inset-top));height:calc(70px + env(safe-area-inset-top))}}@media(max-height:740px){.lesson{padding-top:14px;padding-bottom:8px;gap:10px}.word{font-size:52px;margin-bottom:9px}.word.long{font-size:39px}.pron{font-size:23px;margin-bottom:8px}.meaning{font-size:19px}.listen{margin-top:12px}.play-button{width:54px;height:54px}.example{padding-block:12px}.example-en{font-size:21px}.feedback button{min-height:46px}.topbar{height:62px}.word-area{padding-top:4px}}@media(max-width:350px){.lesson{padding-inline:20px}.sound-toggle span{display:none}.pron{font-size:21px}.example-en{font-size:20px}.word{font-size:51px}.word.long{font-size:35px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* A single learning surface. Navigation stays in one secondary menu. */
.app-shell{max-width:960px;border:0}.topbar{height:64px;padding:10px 28px;border:0;gap:18px;position:relative}.mobile-brand{display:block;font-size:20px;font-weight:650}.filter-button{position:absolute;left:50%;transform:translateX(-50%);font-size:13px;color:var(--muted);font-weight:400;white-space:nowrap}.menu-button{display:flex;align-items:center;gap:7px;padding:0 0 0 12px;font-size:12px;color:var(--muted)}.menu-button svg{width:21px;height:21px}.lesson{max-width:620px;margin:0 auto;padding-top:18px;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.word{font-size:72px}.word.long{font-size:51px}.listen-caption{font-size:13px}.example-label{font-size:11px}.lesson-meta{font-size:12px}.swipe-prompt{margin-top:10px}.learning-menu{padding:0;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 56px);border-radius:18px}.menu-heading{position:sticky;top:0;z-index:2;background:var(--paper);display:flex;align-items:center;justify-content:space-between;min-height:66px;padding:8px 18px;border-bottom:1px solid var(--line)}.menu-heading strong{padding-left:8px;font-weight:550;font-size:16px}.menu-heading .text-button{color:var(--muted);font-size:13px}.menu-row{width:100%;display:flex;justify-content:space-between;align-items:center;padding:20px 26px;min-height:72px;border-bottom:1px solid var(--line);font-size:17px;text-align:left}.menu-row span:last-child{color:var(--muted)}.menu-note{font-size:12px;color:var(--muted);margin:26px;text-align:center}.learning-menu .page{padding:22px 26px 30px;overflow:visible}.learning-menu .page-heading{margin-bottom:20px}.learning-menu .page-heading h2{font-size:24px;margin-top:0}.learning-menu .version{margin-bottom:0}.audio-setting{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:4px 0 22px}.audio-setting strong{display:block;font-size:15px;font-weight:500}.audio-setting small{display:block;font-size:12px;color:var(--muted);margin-top:8px}.sound-toggle{border:1px solid var(--line);border-radius:12px;padding:0 12px;min-height:44px}.learning-menu .settings{margin-top:0}.scene-row{padding:16px 0}.practice-teaser{padding-top:16px;margin-top:20px}.practice-teaser p{margin-bottom:0}#toast{bottom:calc(25px + env(safe-area-inset-bottom));z-index:30}.app-shell .feed{border:0}
@media(max-width:600px){.app-shell{max-width:none}.topbar{height:calc(58px + env(safe-area-inset-top));padding:calc(7px + env(safe-area-inset-top)) 24px 7px}.mobile-brand{font-size:19px}.lesson{padding:16px 26px calc(16px + env(safe-area-inset-bottom));max-width:none}.word{font-size:60px}.word.long{font-size:43px}.learning-menu{margin:auto auto 14px;max-height:calc(100dvh - 48px);width:calc(100% - 20px);border-radius:20px}.learning-menu .page{padding:24px}.lesson-meta .status{font-size:10px}.word-area{padding:4px 0}.swipe-prompt{font-size:11px}.feedback button{min-height:50px}}
@media(max-height:740px){.topbar{height:54px}.lesson{padding-top:8px;padding-bottom:8px;gap:10px}.word{font-size:52px}.word.long{font-size:39px}.play-button{width:54px;height:54px}.feedback button{min-height:46px}.example{padding-block:12px}.swipe-prompt{margin-top:4px;min-height:28px}}
@media(min-width:951px){.lesson{padding-block:22px 28px}.word-area{padding:16px 0}.example-en{font-size:25px}.topbar{max-width:960px}.lesson-bottom{padding-top:8px}}

/* Each learning line has its own persistent, always-reachable visibility control. */
.reveal-row{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:3px;align-items:center;position:relative}.reveal-row::before{content:"";grid-column:1;grid-row:1}.reveal-value{grid-column:2;grid-row:1;min-width:0}.eye-toggle{grid-column:3;grid-row:1;display:grid;place-items:center;min-height:44px;width:36px;padding:6px;color:#9a9083;opacity:.65;border-radius:9px}.eye-toggle svg{width:19px;height:19px}.eye-toggle:hover,.eye-toggle:focus-visible{opacity:1;color:var(--coral)}.reveal-row.is-hidden .reveal-value{visibility:hidden}.reveal-row.is-hidden .eye-toggle{color:var(--coral);opacity:.85}.example .reveal-row{grid-template-columns:minmax(0,1fr) 36px;gap:7px}.example .reveal-row::before{display:none}.example .reveal-value{grid-column:1}.example .eye-toggle{grid-column:2}.example .reveal-row+.reveal-row{margin-top:2px}.word-area>.reveal-row+.reveal-row{margin-top:0}.word{overflow-wrap:normal;white-space:nowrap}.example-zh{margin-bottom:0}.reveal-value .example-en{margin-bottom:0}.example .reveal-row .eye-toggle{align-self:start}.word-area .reveal-row[data-field="word"] .eye-toggle{margin-bottom:12px}

.phonics{display:flex;gap:9px;align-items:baseline;justify-content:center;flex-wrap:wrap;line-height:1.5;margin:0 0 8px;color:var(--coral);font-size:20px;font-weight:400}.phonics strong{font-weight:750}.phonics-label{font-size:11px;color:var(--muted);font-weight:400;letter-spacing:.04em}.phonics-dot{font-size:15px;color:#b9a695}.reveal-row[data-field="phonics"] .eye-toggle{margin-bottom:8px}.reveal-row[data-field="phonics"]{margin-top:0}
@media(max-height:740px){.phonics{font-size:18px;margin-bottom:3px;gap:6px}.reveal-row[data-field="phonics"] .eye-toggle{margin-bottom:3px}.word{margin-bottom:5px}.word-area .reveal-row[data-field="word"] .eye-toggle{margin-bottom:4px}}
.eye-toggle{width:44px;min-height:44px;padding:10px}.reveal-row{grid-template-columns:44px minmax(0,1fr) 44px}.example .reveal-row{grid-template-columns:minmax(0,1fr) 44px}
@media(max-height:620px){.example-label{display:none}.example{padding-block:8px}.play-button{width:44px;height:44px}.listen{margin-top:8px}.lesson{gap:8px}.word-area{padding-block:2px}.example .eye-toggle{align-self:center}}

.phonics{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:21px;line-height:1.4;margin-bottom:9px}.phonics-hint{display:block;font-size:14px;line-height:1.65;font-weight:400;white-space:normal;overflow-wrap:normal;text-align:center}.phonics-dot{font-size:18px;color:#bb876f}.phonics-segments strong{font-weight:650}.reveal-row[data-field="phonics"]{grid-template-columns:minmax(0,1fr) 44px;padding-left:0}.reveal-row[data-field="phonics"]::before{display:none}.reveal-row[data-field="phonics"] .reveal-value{grid-column:1}.reveal-row[data-field="phonics"] .eye-toggle{grid-column:2;align-self:start;margin-bottom:0}.phonics-segments{letter-spacing:.015em}
@media(max-height:740px){.phonics{font-size:19px;gap:4px;margin-bottom:5px}.phonics-hint{font-size:13px;line-height:1.5}}

.reveal-row[data-field="phonicsHint"]{grid-template-columns:minmax(0,1fr) 44px}.reveal-row[data-field="phonicsHint"]::before{display:none}.reveal-row[data-field="phonicsHint"] .reveal-value{grid-column:1}.reveal-row[data-field="phonicsHint"] .eye-toggle{grid-column:2;align-self:center}.reveal-row[data-field="phonicsHint"] .phonics-hint{color:var(--coral);font-size:14px;line-height:1.65;margin:0 0 5px}.phonics{margin-bottom:0}.reveal-row[data-field="phonics"] .eye-toggle{margin-bottom:0}
@media(max-height:620px){.word{font-size:46px}.phonics{font-size:18px;gap:0}.reveal-row[data-field="phonicsHint"] .phonics-hint{font-size:12px;line-height:1.5;margin-bottom:0}.word-area .reveal-row{min-height:0}.lesson{gap:5px;padding-block:4px}.word-area{padding:0}.listen{margin-top:4px}.example{padding-block:4px}.swipe-prompt{margin-top:0;min-height:24px}}
/* Keep each lesson together instead of stretching three blocks apart. */
.lesson{justify-content:center;gap:24px;padding-block:24px;max-width:660px}.word-area{padding:0}.example{padding:0 0 0 44px;margin:0}.lesson-bottom{padding:0 8px}.feedback{gap:12px}.feedback button{min-height:48px}.listen{margin-top:16px}.word-area .reveal-row[data-field="word"]{margin-bottom:4px}.word-area .reveal-row[data-field="word"] .eye-toggle{margin-bottom:4px}.word{margin-bottom:0}.example-en{font-size:23px;line-height:1.45}.example-zh{font-size:15px}.reveal-row[data-field="phonicsHint"] .phonics-hint{margin-bottom:0}
@media(min-width:951px){.lesson{gap:26px;padding-block:28px}.word{font-size:64px}.word.long{font-size:48px}.play-button{width:58px;height:58px}.lesson-bottom{margin-top:0}}
@media(max-width:600px){.lesson{padding:18px 24px calc(18px + env(safe-area-inset-bottom));gap:24px}.example{padding-left:20px}.lesson-bottom{padding:0}.word{font-size:56px}.word.long{font-size:42px}.play-button{width:56px;height:56px}.feedback button{min-height:48px}}
@media(max-height:740px){.lesson{justify-content:flex-start;gap:18px;padding-block:14px}.word{font-size:48px}.word.long{font-size:36px}.listen{margin-top:10px}.example-en{font-size:21px}.play-button{width:48px;height:48px}.feedback button{min-height:46px}}
@media(max-height:620px){.lesson{gap:10px;padding-block:6px}.word{font-size:44px}.word.long{font-size:32px}.listen{margin-top:4px}.play-button{width:44px;height:44px}.example{padding-block:0}.example-en{font-size:20px}.feedback button{min-height:44px}}
/* A bigger word leads the screen; supporting lines retain their scale. */
.word{font-size:100px;line-height:1.04}.word.long{font-size:82px}
@media(max-width:600px){.word{font-size:82px}.word.long{font-size:68px}}
@media(max-height:740px){.word{font-size:76px}.word.long{font-size:62px}}
@media(max-height:620px){.word{font-size:66px}.word.long{font-size:54px}}
.word{font-size:124px}.word.long{font-size:104px}
@media(max-width:600px){.word{font-size:98px}.word.long{font-size:82px}}
@media(max-height:740px){.word{font-size:90px}.word.long{font-size:76px}}
@media(max-height:620px){.word{font-size:78px}.word.long{font-size:64px}}
/* Distribute every learning row evenly, not three separated blocks. */
.lesson{justify-content:space-evenly;gap:clamp(6px,1.1vh,16px)}
.lesson .word-area,.lesson .example,.lesson .lesson-bottom{display:contents}
.lesson .reveal-row,.lesson .example .reveal-row,.lesson .reveal-row[data-field="phonics"],.lesson .reveal-row[data-field="phonicsHint"]{grid-template-columns:44px minmax(0,1fr) 44px;gap:3px;margin:0;padding:0}
.lesson .reveal-row::before,.lesson .example .reveal-row::before,.lesson .reveal-row[data-field="phonics"]::before,.lesson .reveal-row[data-field="phonicsHint"]::before{content:"";display:block;grid-column:1;grid-row:1}
.lesson .reveal-row .reveal-value,.lesson .example .reveal-value{grid-column:2;grid-row:1;text-align:center}
.lesson .reveal-row .eye-toggle,.lesson .example .eye-toggle{grid-column:3;grid-row:1;align-self:center;margin:0}
.lesson .word,.lesson .phonics,.lesson .phonics-hint,.lesson .pron,.lesson .meaning,.lesson .example-en,.lesson .example-zh{margin:0}
.lesson .listen{margin:0;min-height:44px}.lesson .feedback{width:100%;margin:0;padding:0}
@media(max-height:620px){.lesson{gap:6px;padding-block:6px}}
.lesson .word-area>.reveal-row[data-field="word"]{margin:0}
.lesson .word-area .reveal-row[data-field="word"] .eye-toggle{margin:0}
.lesson .reveal-row[data-field="phonicsHint"] .phonics-hint{margin:0}
