: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}

/* Kindergarten uses the approved seven-row lesson, with wrapping only for long expressions. */
.kindergarten .word.phrase{white-space:normal;text-wrap:wrap;font-size:66px;line-height:1.12;overflow-wrap:normal}
.kindergarten .word.sentence{white-space:normal;text-wrap:wrap;font-size:50px;line-height:1.15;overflow-wrap:normal}
.kindergarten .pron{overflow-wrap:anywhere;letter-spacing:.02em}
.kindergarten .filter-button{max-width:48%;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.kindergarten .word.phrase{font-size:44px}.kindergarten .word.sentence{font-size:34px}.kindergarten .pron{font-size:22px}}
@media(max-height:620px){.kindergarten .word.phrase{font-size:34px}.kindergarten .word.sentence{font-size:28px}}
@media(max-height:620px){.kindergarten .lesson{gap:1px;padding-block:2px}}

/* Immediate sound mode control, beside the menu on both learning pages. */
.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px}
.filter-button{position:static;transform:none;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:center;white-space:nowrap}
.kindergarten .filter-button{max-width:none}
.topbar-actions{display:flex;align-items:center;gap:10px}
.quick-audio{display:flex;align-items:center;justify-content:center;gap:5px;padding:0;min-width:54px;font-size:12px;color:var(--muted)}
.quick-audio svg{width:22px;height:22px}.quick-audio[aria-pressed=true]{color:var(--coral)}
.topbar-actions .menu-button{padding:0}
.lesson .play-button{width:72px;height:72px}.lesson .play-button svg{width:27px;height:27px}
@media(max-width:600px){.topbar{padding-inline:18px;gap:8px}.topbar-actions{gap:10px}.lesson .play-button{width:64px;height:64px}}
@media(max-height:620px){.lesson .play-button{width:56px;height:56px}.lesson .play-button svg{width:24px;height:24px}}

/* Complete readable lines first; wrap only when one line cannot fit. */
.lesson .word,.lesson .phonics,.lesson .phonics-hint,.lesson .pron,.lesson .meaning,.lesson .example-en,.lesson .example-zh{text-wrap:wrap;overflow-wrap:normal}
.kindergarten .word.phrase,.kindergarten .word.sentence{text-wrap:wrap}

.lesson .phonics-dot{font-size:.85em}

/* Horizontal answers coexist with native vertical scrolling and pinch zoom. */
#feed{touch-action:pan-y pinch-zoom}
.lesson.swiping-known .known{outline:3px solid #3C3B6E;outline-offset:3px}
.lesson.swiping-again .again{background:#eee3d6;outline:3px solid #B22234;outline-offset:3px}

.swipe-stage{position:fixed;z-index:12;overflow:hidden;pointer-events:none;background:var(--paper);contain:layout paint}
.swipe-stage .swipe-sheet{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;background:var(--paper);will-change:transform;user-select:none}
.swipe-label{position:absolute;top:18px;left:50%;translate:-50% 0;padding:10px 24px;border:2px solid var(--coral);border-radius:14px;background:var(--paper);color:var(--coral);font-size:24px;font-weight:650;white-space:nowrap;transition:opacity .12s;box-shadow:0 4px 18px #302d2810}
.swipe-label.is-known{color:#3C3B6E;border-color:#3C3B6E}

/* The learning viewport stays fixed; gestures only animate pages inside it. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0}
#feed{overflow:hidden;scroll-snap-type:none;overscroll-behavior:none;touch-action:pinch-zoom}

.gesture-intro{position:fixed;z-index:15;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));translate:-50% 0;width:calc(100% - 32px);max-width:440px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 6px 28px #302d2815}
.gesture-intro p{margin:3px 0;font-size:14px;line-height:1.6;text-indent:0;white-space:nowrap}
.gesture-intro button{flex-shrink:0;padding:0 12px;border-radius:10px;background:var(--coral);color:var(--paper);font-size:14px;white-space:nowrap}

/* A single paper card, lifted off a warmer, fixed canvas. */
#feed,.swipe-stage{background:oklch(93% .017 75)}
.lesson{isolation:isolate}
.lesson::before{content:"";position:absolute;inset:8px 8px 12px;z-index:-1;border:1px solid oklch(82% .025 75);border-radius:12px;background:oklch(98.3% .012 80);box-shadow:0 8px 22px oklch(36% .025 65 / .12),0 2px 4px oklch(36% .025 65 / .06);pointer-events:none}
.swipe-stage .swipe-sheet{background:transparent;overflow:visible}
.swipe-stage .swipe-sheet::before{box-shadow:0 14px 30px oklch(36% .025 65 / .18),0 3px 6px oklch(36% .025 65 / .08)}
@media(max-height:620px){.lesson::before{inset:3px 5px 6px;border-radius:12px}}

/* More breathing room inside mobile cards, including the eye controls. */
@media(max-width:600px){.lesson{padding-inline:40px;padding-top:26px;padding-bottom:calc(26px + env(safe-area-inset-bottom))}}
@media(max-width:600px) and (max-height:620px){.lesson{padding-inline:34px;padding-block:14px}}

/* Desktop: a composed reading card, rather than a stretched phone viewport. */
@media(min-width:951px){
 .app-shell{max-width:760px;padding:20px 0 24px;justify-content:center;border:0}
 .topbar{width:644px;max-width:calc(100% - 32px);height:64px;margin-inline:auto;padding:0 0 12px;gap:24px}
 .topbar .mobile-brand{font-size:21px;letter-spacing:-.02em}
 .topbar .filter-button{font-size:13px;font-weight:450;color:var(--muted)}
 .topbar-actions{gap:22px}
 #feed{flex:0 1 760px;width:100%;max-height:760px;background:transparent}
 .swipe-stage{background:var(--paper)}
 .lesson{padding-block:22px;gap:10px}
 .lesson::before{inset:8px 8px 12px;border-color:oklch(85% .02 75);box-shadow:0 12px 32px oklch(36% .025 65 / .10),0 2px 5px oklch(36% .025 65 / .06)}
}

/* Let the mobile word sit a little lower within its card. */
@media(max-width:600px){.lesson{padding-top:46px}}
@media(max-width:600px) and (max-height:620px){.lesson{padding-top:26px}}

/* Desktop content blends into the page, including while swiping. */
@media(min-width:951px){
 .lesson::before,.swipe-stage .swipe-sheet::before{background:transparent;border:0;box-shadow:none}
}

/* A portrait golden-ratio learning area, scaled to the desktop viewport. */
@media(min-width:951px){
 .app-shell{--desktop-card-height:min(970px,calc(100dvh - 108px));--desktop-card-width:calc(var(--desktop-card-height) / 1.618033989)}
 .topbar{width:calc(var(--desktop-card-width) - 16px);gap:16px}
 .topbar-actions{gap:14px}
 #feed{flex:0 0 auto;width:var(--desktop-card-width);height:var(--desktop-card-height);max-height:none;margin-inline:auto;aspect-ratio:1 / 1.618033989}
 .lesson{width:100%;max-width:none}
}

/* Desktop trial: a quiet outline contains a wider, more compact study card. */
@media(min-width:951px){
 .app-shell{--desktop-card-height:min(820px,calc(100dvh - 108px));--desktop-card-width:min(660px,calc(100vw - 64px))}
 .topbar{width:calc(var(--desktop-card-width) - 16px)}
 #feed{aspect-ratio:auto}
 .lesson::before,.swipe-stage .swipe-sheet::before{border:1px solid oklch(85% .018 75);border-radius:12px;background:transparent;box-shadow:none}
}

/* F: a borderless paper deck on desktop, with a soft second sheet. */
@media(min-width:951px){
 .lesson::before,.swipe-stage .swipe-sheet::before{border:0;background:oklch(98.3% .012 80);box-shadow:0 8px 24px oklch(36% .025 65 / .08);border-radius:12px}
 .lesson::after{content:"";position:absolute;inset:16px 2px 5px 15px;z-index:-2;pointer-events:none;border:0;border-radius:12px;background:oklch(96.8% .016 78);box-shadow:0 3px 10px oklch(36% .025 65 / .05)}
 .lesson .phonics{font-size:24px}
 .lesson .pron{font-size:26px}
 .lesson .meaning{font-size:24px}
 .lesson .example-en{font-size:26px}
 .lesson .example-zh{font-size:18px}
}

/* Remove the outer paper rim and shadow on desktop. */
@media(min-width:951px){
 .lesson::after{content:none}
 .lesson::before,.swipe-stage .swipe-sheet::before{border:0;box-shadow:none}
}

@media(min-width:951px){#feed{cursor:grab}#feed.is-card-moving{cursor:grabbing;user-select:none;will-change:transform,opacity}#feed button{cursor:pointer}}

@media(min-width:951px){#feed{cursor:auto}.lesson{cursor:grab}#feed.is-card-moving{cursor:grabbing}}

/* One explicit desktop handle separates moving the card from swiping lessons. */
.card-drag-handle{display:none}
@media(min-width:951px){
 .lesson::before,.swipe-stage .swipe-sheet::before{border:1px solid oklch(84% .018 75);box-shadow:none}
 .card-drag-handle{display:flex;position:absolute;right:14px;bottom:16px;width:44px;height:44px;min-height:44px;align-items:center;justify-content:center;cursor:move!important;color:var(--muted);border-radius:8px;padding:10px;touch-action:none}
 .card-drag-handle svg{width:21px;height:21px;stroke-width:1.3}
 .card-drag-handle:hover{background:oklch(94% .015 75);color:var(--ink)}
 .swipe-stage .card-drag-handle{visibility:hidden}
}
@media(min-width:951px){.lesson{padding-bottom:64px;gap:8px}}

/* Desktop cards travel through the surrounding canvas; only the screen clips. */
@media(min-width:951px){
 .swipe-stage{overflow:visible;contain:layout;background:transparent}
 #feed.is-swiping{opacity:0!important}
}

/* Keep navigation out of the vertical card path. */
@media(min-width:951px){
 .topbar{position:fixed;left:calc(50% + 354px);top:max(24px,calc((100dvh - 820px)/2));width:94px;max-width:none;height:auto;padding:0;margin:0;border:0;display:flex;flex-direction:column;align-items:flex-start;gap:18px;z-index:15}
 .topbar .mobile-brand{font-size:18px;white-space:nowrap}
 .topbar #scene-filter{display:none}
 .topbar-actions{flex-direction:column;align-items:flex-start;gap:6px}
 .topbar-actions button{white-space:nowrap}
 .app-shell{padding:24px 0;justify-content:center}
}
@media(max-width:950px){
 .topbar{position:fixed;right:16px;top:calc(10px + env(safe-area-inset-top));width:44px;height:44px;padding:0;border:0;display:block;z-index:15;background:var(--paper);border-radius:50%}
 .topbar .mobile-brand,.topbar #scene-filter,.topbar #quick-audio,.topbar #menu-open span{display:none}
 .topbar-actions{display:block}
 .topbar #menu-open{width:44px;height:44px;display:grid;place-items:center}
}
@media(min-width:951px){
 .app-shell{--desktop-card-height:min(920px,calc(100dvh - 48px))}
 .topbar{top:max(24px,calc((100dvh - 920px)/2))}
}
/* Desktop tools belong to the screen corner, independent of the card. */
@media(min-width:951px){.topbar{left:auto;right:32px;top:24px}}

/* Open the menu directly below its screen-corner trigger. */
#menu-dialog.learning-menu{position:fixed;inset:auto;top:var(--menu-top,172px);right:var(--menu-right,32px);margin:0;width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - var(--menu-top,172px) - 16px);border-radius:12px}
#menu-dialog::backdrop{background:oklch(30% .015 75 / .12)}

.menu-scenes{padding:20px 26px;border-bottom:1px solid var(--line)}
.menu-scenes h2{font-size:13px;font-weight:500;color:var(--muted);margin:0 0 12px}
#direct-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#direct-scenes button,#direct-scenes a{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:14px;white-space:nowrap;border:1px solid var(--line);border-radius:6px;padding:4px}
#direct-scenes [aria-current=true]{color:var(--coral);border-color:var(--coral)}
/* A small optical adjustment inside the unchanged card outline. */
.lesson .reveal-row,.lesson .listen{position:relative;top:.6cm}
@media(max-height:620px){.lesson .reveal-row,.lesson .listen{top:0}}


#menu-home>.audio-setting{padding:16px 26px;border-bottom:1px solid var(--line)}
#menu-home>.audio-setting small{margin-top:4px}
/* Move only mobile visibility controls, keeping learning text in place. */
@media(max-width:600px){.lesson .eye-toggle{position:relative;left:8px}}
@media(max-width:600px) and (min-height:621px){.lesson .reveal-row,.lesson .listen{top:14px}}
@media(max-width:600px) and (min-height:621px){
 .lesson .reveal-row[data-field=phonics]{top:11px}
 .lesson .reveal-row[data-field=phonicsHint]{top:8px}
 .lesson .reveal-row[data-field=pron]{top:5px}
 .lesson .reveal-row[data-field=meaning]{top:2px}
 .lesson .listen{top:-1px}
 .lesson .reveal-row[data-field=example]{top:-4px}
 .lesson .reveal-row[data-field=translation]{top:-7px}
}
/* Phone sound control sits directly below the menu, with a full touch target. */
@media(max-width:950px){
 .topbar{height:auto;background:transparent}
 .topbar-actions{display:flex;flex-direction:column;gap:4px}
 .topbar #menu-open{order:0;background:var(--paper);border-radius:50%}
 .topbar #quick-audio{order:1;display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;background:var(--paper);border-radius:50%}
 .topbar #quick-audio span{display:none}
 .topbar #quick-audio svg{width:21px;height:21px}
}

@media(min-width:951px){#menu-home>.audio-setting{display:none}}

.play-button{user-select:none;-webkit-touch-callout:none}
/* Learning cards are gesture surfaces; WebKit must not select nearby text on hold. */
#feed .lesson,#feed .lesson *,.swipe-stage,.swipe-stage *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

#toast.sound-feedback{bottom:calc(4px + env(safe-area-inset-bottom));font-size:12px;line-height:1.4;padding:5px 12px;border-radius:7px}
#toast.sound-feedback{left:12px;bottom:calc(8px + env(safe-area-inset-bottom));transform:translateY(10px)}
#toast.sound-feedback.visible{transform:translateY(0)}

.usage-help{width:min(440px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:24px;border-radius:12px;margin:auto;overscroll-behavior:contain}
.usage-help::backdrop{background:oklch(30% .015 75 / .5)}
.help-sheet h2{font-size:22px;margin:0 0 16px;white-space:nowrap}
.help-caption{font-size:13px;color:var(--muted);margin:0 0 10px}
.help-directions{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.help-directions p,.help-play p{margin:0;display:flex;flex-direction:column;gap:4px;font-size:14px;white-space:nowrap}
.help-directions strong,.help-play strong{font-weight:600}
.help-directions span,.help-play span{color:var(--muted)}
.help-play{display:flex;justify-content:space-between;gap:12px;padding:20px 0 12px}
.help-note{font-size:12px;line-height:1.6;color:var(--muted);margin:6px 0;text-indent:0}
.help-dismiss{margin-top:16px;width:100%;border-radius:7px;color:var(--paper);background:var(--coral)}
@media(max-height:620px){.usage-help{padding:20px}.help-sheet h2{margin-bottom:12px}.help-directions{gap:10px 16px;padding-bottom:14px}.help-play{padding-top:14px}}

.account-data h3{margin:0 0 12px;font-size:16px;font-weight:600}.account-data p{font-size:13px;line-height:1.7;margin:10px 0;text-indent:2em}
#help-open span:last-child{font-size:14px}
/* Give desktop learning content more presence on a large screen. */
@media(min-width:951px){
 .app-shell{max-width:840px;--desktop-card-width:min(760px,calc(100vw - 264px));--desktop-card-height:min(1000px,calc(100dvh - 48px))}
 .lesson .word{font-size:144px}.lesson .word.long{font-size:120px}
 .lesson .phonics{font-size:26px}.lesson .pron{font-size:28px}.lesson .meaning{font-size:26px}
 .lesson .example-en{font-size:28px}.lesson .example-zh{font-size:19px}
 .lesson .phonics-hint{font-size:15px}
}
/* Desktop brand anchors the opposite screen corner from the menu. */
@media(min-width:951px){.topbar .mobile-brand{position:fixed;left:32px;top:24px}}
/* Quiet notebook-like masthead: matched text weight, baseline and screen margins. */
@media(min-width:951px){
 .topbar{top:16px;right:32px;width:auto;height:44px;display:block;padding:0}
 .topbar .mobile-brand{left:32px;top:16px;height:44px;display:flex;align-items:center;font-size:16px;line-height:24px;font-weight:500;letter-spacing:.02em;color:var(--ink)}
 .topbar-actions{height:44px;display:flex;justify-content:center}
 .topbar #menu-open{height:44px;min-width:44px;display:flex;align-items:center;justify-content:flex-end;font-size:16px;line-height:24px;font-weight:500;letter-spacing:.02em;color:var(--ink);padding:0}
 .topbar #menu-open svg{display:none}
}
/* Keep the restrained masthead, with an icon-only desktop menu. */
@media(min-width:951px){
 .topbar #menu-open{width:44px;justify-content:center}
 .topbar #menu-open svg{display:block;width:21px;height:21px;stroke-width:1.6}
 .topbar #menu-open span{display:none}
}

/* Desktop reading transitions keep a stationary paper frame and one text layer visible. */
@media(min-width:951px){
 .swipe-stage.reading-transition::before{content:"";position:absolute;inset:8px 8px 12px;border:1px solid oklch(84% .018 75);border-radius:12px;background:oklch(98.3% .012 80)}
 .swipe-stage.reading-transition .swipe-sheet::before{border:0;background:transparent}
}
/* Short-travel desktop deck: a quiet next-card edge, with the whole top card moving. */
@media(min-width:951px){
 .app-shell{position:relative}
 .app-shell::after{content:"";position:absolute;z-index:0;left:50%;top:calc((100% - var(--desktop-card-height))/2 + 20px);transform:translateX(-50%);width:calc(var(--desktop-card-width) - 40px);height:calc(var(--desktop-card-height) - 20px);box-sizing:border-box;border:1px solid oklch(86% .018 75);border-radius:12px;background:oklch(97.2% .014 80);pointer-events:none}
 #feed{z-index:1}
 .swipe-stage.reading-transition::before{inset:20px 20px 0;border-color:oklch(86% .018 75);background:oklch(97.2% .014 80)}
 .swipe-stage.reading-transition .swipe-sheet::before{border:1px solid oklch(84% .018 75);background:oklch(98.3% .012 80)}
}
/* Phone menu sits evenly inside the paper corner, without a circular surface. */
@media(max-width:600px){
 .topbar{right:16px;top:calc(16px + env(safe-area-inset-top));border-radius:0;background:transparent}
 .topbar #menu-open{background:transparent;border-radius:0}
 .topbar #menu-open svg{transform:translateY(-2px)}
}
@media(max-width:600px) and (max-height:620px){.topbar{right:13px;top:calc(11px + env(safe-area-inset-top))}}
/* Desktop paper deck: blank paper travels far; text stays within 16px, is clipped to its paper, and only one text layer is visible. */
@media(min-width:951px){
 .swipe-stage.paper-mode .swipe-sheet::before{display:none}
 .swipe-paper{position:absolute;box-sizing:border-box;border:1px solid oklch(84% .018 75);border-radius:12px;background:oklch(98.3% .012 80);pointer-events:none;will-change:translate}
 .swipe-paper.under{border-color:oklch(86% .018 75);background:oklch(97.2% .014 80)}
 .swipe-tint{position:absolute;inset:-1px;border-radius:12px;opacity:0;pointer-events:none}
 .swipe-tint span{position:absolute;top:22px;font:600 15px/1 system-ui,sans-serif;letter-spacing:.12em}
 .swipe-tint[data-answer="known"]{box-shadow:inset -5px 0 0 #3C3B6E}
 .swipe-tint[data-answer="known"] span{right:26px;color:#3C3B6E}
 .swipe-tint[data-answer="again"]{box-shadow:inset 5px 0 0 #B22234}
 .swipe-tint[data-answer="again"] span{left:26px;color:#B22234}
}
/* Larger play triangle inside the card's audio button (all sizes). */
.lesson .play-button{padding:0}
.lesson .play-button svg{width:58%;height:58%;margin-left:2px}
/* No grab-hand cursor on desktop cards: normal arrow, buttons keep the pointer hand. */
@media(min-width:951px){#feed,#feed.is-card-moving,.lesson,.lesson *{cursor:default}.lesson button,.lesson button *,.lesson [role=button],.lesson [role=button] *{cursor:pointer}}
/* Theme dots under the menu icon. Default (no data-theme) keeps the original cream palette untouched. */
.theme-dots{display:none}
@media(min-width:951px){
 .topbar-actions{position:relative}
 .theme-dots{position:absolute;top:calc(100% + 10px);left:50%;translate:-50% 0;display:flex;flex-direction:column;gap:12px;align-items:center}
 .theme-dots button{min-height:0;width:12px;height:12px;padding:0;border-radius:50%;background:var(--dot);box-shadow:0 0 0 1px oklch(0% 0 0 / .08);cursor:pointer;transition:transform .15s,box-shadow .15s}
 .theme-dots button:hover{transform:scale(1.25)}
 .theme-dots button[aria-pressed="true"]{box-shadow:0 0 0 2px var(--paper),0 0 0 3.5px var(--ring,var(--dot))}
}
html[data-theme="cnclassic"]{--paper:#f5f2e9;--ink:#253860;--muted:#7a7c88;--coral:#aa4d3d;--accent2:#1776b0;--line:#e3dccd;--soft:#ede7da;--canvas:#ebe3d4;--card:#fbf9f3;--card-edge:#d9cdb8;--card-back:#f3eee3}
html[data-theme="palace"]{--paper:#f4f0ea;--ink:#282020;--muted:#857a6e;--coral:#c0392b;--accent2:#b07d1a;--line:#e3dbcf;--soft:#ede7de;--canvas:#f6f3ee;--card:#fffefb;--card-edge:#e4dccf;--card-back:#faf7f2}
html[data-theme="inkwash"]{--paper:#f5f2e9;--ink:#3d3439;--muted:#857c80;--coral:#496154;--accent2:#5c4f55;--line:#e4dccd;--soft:#eee7da;--canvas:#ebe2d1;--card:#faf8f2;--card-edge:#d9cdb6;--card-back:#f3eee4}
html[data-theme="dusk"]{--paper:#f5f2e9;--ink:#3f373b;--muted:#827b80;--coral:#6b72a8;--accent2:#5c4f55;--line:#e2ded0;--soft:#ece8dc;--canvas:#eeead9;--card:#fbf9f3;--card-edge:#d6d2c2;--card-back:#f4f1e7}
html[data-theme="jade"]{--paper:#f5f2e9;--ink:#0f2c4a;--muted:#6f8090;--coral:#3f8a94;--accent2:#003d74;--line:#d6e4ea;--soft:#e6f0f3;--canvas:#e2eff4;--card:#fbfaf5;--card-edge:#c6dbe4;--card-back:#eef5f7}
html[data-theme="wafuji"]{--paper:#fbf4ef;--ink:#3a2c45;--muted:#8a7a8c;--coral:#684888;--accent2:#c0607e;--line:#efdfe0;--soft:#f6e9e6;--canvas:#f6e6e4;--card:#fdfaf2;--card-edge:#e8d2d6;--card-back:#f9f0ec}
html[data-theme="mono"]{--paper:#f5f5f5;--ink:#111111;--muted:#7a7a7a;--coral:#111111;--line:#e4e4e4;--soft:#efefef;--canvas:#f0f0f0;--card:#ffffff;--card-edge:#dddddd;--card-back:#f7f7f7}
html[data-theme="flag"]{--paper:#f4f5f9;--ink:#2a2a5e;--muted:#6f7290;--coral:#B22234;--line:#dfe1ea;--soft:#eceef4;--canvas:#eceef4;--card:#ffffff;--card-edge:#d5d8e4;--card-back:#f5f6fa}
html[data-theme]{background:var(--canvas)}
html[data-theme] body,html[data-theme] .app-shell,html[data-theme] main{background:var(--canvas)}
html[data-theme] #feed,html[data-theme] .swipe-stage{background:var(--canvas)}
html[data-theme] .lesson::before,html[data-theme] .swipe-stage .swipe-sheet::before,html[data-theme] .swipe-paper{background:var(--card);border-color:var(--card-edge)}
html[data-theme] .lesson::after,html[data-theme] .app-shell::after,html[data-theme] .swipe-paper.under,html[data-theme] .swipe-stage.reading-transition::before{background:var(--card-back);border-color:var(--card-edge)}
html[data-theme] .play-button,html[data-theme] select,html[data-theme] textarea{background:var(--card);border-color:var(--card-edge)}
html[data-theme] #menu-dialog,html[data-theme] .usage-help{background:var(--paper)}
html[data-theme] .phonics-dot{color:var(--card-edge)}
html[data-theme="flag"] .phonics-hint,html[data-theme="flag"] .pron,html[data-theme="flag"] .play-button{color:#3C3B6E}
html[data-theme="flag"] .lesson .phonics-hint{color:#3C3B6E}
.menu-themes{display:none}
@media(max-width:950px){
 .menu-themes{display:block}
 .theme-dots-menu{display:flex;justify-content:space-between;padding:6px 4px}
 .theme-dots-menu button{min-height:0;width:26px;height:26px;padding:0;border-radius:50%;background:var(--dot);box-shadow:0 0 0 1px oklch(0% 0 0 / .08)}
 .theme-dots-menu button[aria-pressed="true"]{box-shadow:0 0 0 3px var(--paper),0 0 0 5px var(--ring,var(--dot))}
}
html[data-theme] #menu-open{background:transparent}
html[data-theme] .pron,html[data-theme] .lesson .phonics-hint,html[data-theme] .play-button{color:var(--accent2,var(--coral))}
/* COCA 词频组号与入口 */
#direct-scenes .coca-link{grid-column:1/-1;color:var(--muted)}
body.coca #direct-scenes{grid-template-columns:repeat(6,minmax(0,1fr))}
body.coca #direct-scenes .coca-group{min-height:40px;font-variant-numeric:tabular-nums}
/* 菜单：词库切换 + COCA 当前组说明 */
.library-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.library-switch a,.library-switch span{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:14px;white-space:nowrap;border:1px solid var(--line);border-radius:6px;color:inherit;text-decoration:none}
.library-switch [aria-current=true]{color:var(--coral);border-color:var(--coral)}
.menu-scenes h2 small{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}
.coca-current{grid-column:1/-1;margin:6px 0 0;font-size:13px;color:var(--muted);text-align:center}
/* 菜单"怎么学"树：两个分支，当前展开，子项缩进挂在竖线上 */
.menu-scenes:not(.menu-tree):not(.menu-themes){display:none}
.menu-tree .tree-branch{position:relative;margin-top:6px}
.menu-tree .tree-head{display:flex;align-items:baseline;gap:10px;width:100%;min-height:44px;padding:0;text-align:left;color:inherit}
.menu-tree .tree-head i{flex:none;width:10px;height:10px;border-radius:50%;border:1.5px solid var(--muted);transform:translateY(1px)}
.menu-tree .current .tree-head i{background:var(--coral);border-color:var(--coral)}
.menu-tree .tree-head strong{font-size:16px;font-weight:600;white-space:nowrap}
.menu-tree .current .tree-head strong{color:var(--coral)}
.menu-tree .tree-head small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden}
.menu-tree .tree-kids{display:none;margin:2px 0 8px 4px;padding:6px 0 4px 18px}
.menu-tree .open .tree-kids{display:block}
.menu-tree .tree-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.menu-tree .tree-groups{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.menu-tree .tree-kids a,.menu-tree .tree-kids button,.menu-tree .tree-kids .tree-on{display:flex;align-items:center;justify-content:center;min-height:40px;padding:2px;font-size:14px;white-space:nowrap;border:1px solid var(--line);border-radius:6px;color:inherit;text-decoration:none;font-variant-numeric:tabular-nums}
.menu-tree .tree-kids [aria-current=true]{color:var(--coral);border-color:var(--coral)}
.menu-tree .tree-note{margin:8px 0 0;font-size:12px;color:var(--muted)}
/* 第一次打开：你想怎么学 */
.mode-ask{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:16px;background:oklch(30% .015 75 / .35)}
.mode-card{width:min(420px,100%);padding:28px 22px;border-radius:14px;background:var(--paper);display:grid;gap:12px;box-shadow:0 12px 40px oklch(30% .02 70 / .2)}
.mode-card h2{margin:0 0 4px;font-size:20px;text-align:center}
.mode-card>button{display:grid;gap:4px;padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:var(--card,#fffdf8);text-align:left;color:inherit}
.mode-card>button strong{font-size:17px;color:var(--coral)}
.mode-card>button small{font-size:13px;color:var(--muted)}
.mode-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mode-scenes[hidden]{display:none}
.mode-scenes button{min-height:44px;border:1px solid var(--line);border-radius:6px;font-size:15px;white-space:nowrap}
.lesson .example-en,.lesson .example-zh{text-wrap:pretty}
.phonics-hint .nb{white-space:nowrap}
/* 菜单树两个分支做成和"学习进度/账户"一样的整行 + / − 样式 */
.menu-tree.menu-scenes{padding:0;border-bottom:0}
.menu-tree .tree-branch{margin:0}
.menu-tree .tree-head{justify-content:space-between;align-items:center;min-height:72px;padding:20px 26px;border-bottom:1px solid var(--line)}
.menu-tree .tree-head i{display:none}
.menu-tree .tree-head strong,.menu-tree .current .tree-head strong{font-size:17px;font-weight:400;color:inherit}
.menu-tree .tree-head::after{content:'+';color:var(--muted)}
.menu-tree .open .tree-head::after{content:'−'}
.menu-tree .tree-kids{margin:0;padding:18px 26px 22px;border-bottom:1px solid var(--line)}
/* 使用帮助在菜单里就地展开 */
#help-open span:last-child{font-size:inherit}
#help-panel{border-bottom:1px solid var(--line)}
/* 配色也做成可展开收起的整行 */
.menu-scenes.menu-themes{padding:0;border-bottom:0}
.menu-themes .theme-dots-menu{padding:18px 30px 22px;border-bottom:1px solid var(--line)}
.menu-themes .theme-dots-menu[hidden]{display:none}
.menu-themes > .menu-row{border-bottom:1px solid var(--line)}
/* 单词正上方的排序号 + 今天看过多少词（隐藏单词时它仍显示） */
.rank-note{margin:0 0 16px;transform:translateY(-20px);text-align:center;font-size:13px;line-height:1.3;font-weight:400;color:var(--muted);letter-spacing:.02em;white-space:nowrap}
.reveal-row.is-hidden .rank-note{visibility:visible}
/* 电脑端"返回"放右下角，和右侧配色圆点竖向对齐（圆点中心离右边54px） */
@media(min-width:951px){.topbar .mobile-brand[href="/?home"]{left:auto;top:auto;right:54px;bottom:24px;translate:50% 0}}
/* 电脑端"返回"做成小圆图标：细线圆圈 + 细左箭头，颜色随主题的灰 */
@media(min-width:951px){
 .topbar .mobile-brand[href="/?home"]{width:28px;height:28px;padding:0;font-size:0;line-height:0;overflow:hidden;border-radius:50%;border:1px solid var(--line);display:block;color:var(--muted);transition:color .15s,border-color .15s,background .15s}
 .topbar .mobile-brand[href="/?home"]::before{content:'';position:absolute;inset:0;margin:auto;width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m11 6-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m11 6-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat}
 .topbar .mobile-brand[href="/?home"]:hover{color:var(--ink);border-color:var(--muted);background:var(--paper)}
}
/* 菜单最下面“关于我们”，就地展开 */
#about-panel{border-bottom:1px solid var(--line)}
#about-panel p{margin:0 0 10px;font-size:14px;line-height:1.75;color:var(--muted);text-indent:2em}
#about-panel p:last-child{margin-bottom:0}
/* 菜单打开时，右侧配色圆点不从菜单上沿露出来 */
body:has(#menu-dialog[open]) .theme-dots{visibility:hidden}
/* 2026-10-31 检查修复：小字与眼睛图标加深到可读标准（小字≥4.5，图标≥3），各配色自动跟随 */
.rank-note,.help-note,.help-caption,#about-panel p,.tree-note,.version{color:color-mix(in oklab,var(--muted) 60%,var(--ink))}
html .lesson .reveal-row[data-field="phonicsHint"] .phonics-hint{color:color-mix(in oklab,var(--accent2,var(--coral)) 70%,var(--ink))}
html[data-theme="flag"] .lesson .reveal-row[data-field="phonicsHint"] .phonics-hint{color:#3C3B6E}
.eye-toggle{color:color-mix(in oklab,var(--muted) 85%,var(--ink));opacity:1}
.reveal-row.is-hidden .eye-toggle{color:var(--coral);opacity:.85}
/* 屏幕矮时序号不上移，免得跑出卡片 */
@media(max-height:680px){.rank-note{transform:none;margin-bottom:8px}}
/* 返回图标看起来28px，点按范围扩到44px */
@media(min-width:951px){.topbar .mobile-brand[href="/?home"]{overflow:visible}.topbar .mobile-brand[href="/?home"]::after{content:'';position:absolute;inset:-8px;border-radius:50%}}
/* 返回图标去掉圆圈，只留箭头 */
@media(min-width:951px){.topbar .mobile-brand[href="/?home"]{border:0;background:transparent}.topbar .mobile-brand[href="/?home"]::before{width:20px;height:20px}.topbar .mobile-brand[href="/?home"]:hover{background:transparent;color:var(--ink)}}
/* 按热度例句（上英下中）：COCA 例句较长，字号小一档，约三行内；中文不留孤字 */
body.coca .lesson .example-en{font-size:18px;line-height:1.45;text-wrap:pretty}
body.coca .lesson .example-zh{font-size:14px;line-height:1.6;text-wrap:pretty}
@media(min-width:951px){body.coca .lesson .example-en{font-size:22px}body.coca .lesson .example-zh{font-size:16px}}
/* 例句：参考 Apple News 标题+导语——英中两行成一组紧贴在一起，英文均衡断行、行长受控，中文作灰色导语 */
.lesson .example{display:flex;flex-direction:column;gap:10px}
.lesson .example-en{text-wrap:balance;letter-spacing:-.005em;line-height:1.32;font-feature-settings:"kern","liga"}
.lesson .example-zh{text-wrap:pretty;line-height:1.7;letter-spacing:.03em;color:color-mix(in oklab,var(--muted) 75%,var(--ink));hanging-punctuation:allow-end}
body.coca .lesson .example-en{line-height:1.32;text-wrap:balance}
body.coca .lesson .example-zh{line-height:1.7;text-wrap:pretty}
@media(min-width:951px){.lesson .example{gap:12px}.lesson .example-en{max-width:40ch;margin-inline:auto}}
/* 中文导语只在标点处换行(不拆"人们")，英中两行同一宽度 */
.lesson .example-zh{word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance;max-width:22em;margin-inline:auto}
@media(min-width:951px){.lesson .example-zh{max-width:27em}}
@media(max-height:700px){.lesson .example-zh{word-break:normal;max-width:none;text-wrap:pretty}.lesson .example-en{text-wrap:balance;max-width:none}.lesson .example{gap:6px}}
@media(max-height:600px){.lesson .example{display:contents}}
/* 例句版式(Apple News式)：英中左对齐、同一左边线、两段同宽，整块居中；行长上限 */
.lesson .example .reveal-value{text-align:left}
.lesson .example-en,.lesson .example-zh{width:fit-content;max-width:min(100%,520px);margin-inline:auto;text-align:left}
@media(min-width:951px){.lesson .example-en{max-width:min(100%,520px)}.lesson .example-zh{max-width:min(100%,520px)}}
/* 例句改小、浅色，跟随各配色模板：英文=模板灰(--muted)，中文更浅一档 */
html body .lesson .example p.example-en{font-size:16px;line-height:1.45;color:var(--muted)}
html body .lesson .example p.example-zh{font-size:13px;line-height:1.65;color:color-mix(in oklab,var(--muted) 78%,var(--card,var(--paper)))}
@media(min-width:951px){html body .lesson .example p.example-en{font-size:19px}html body .lesson .example p.example-zh{font-size:15px}}
@media(max-width:950px){html body .lesson .example p.example-zh{word-break:normal}}
/* 例句再小一档 */
html body .lesson .example p.example-en{font-size:15px}
html body .lesson .example p.example-zh{font-size:12.5px}
@media(min-width:951px){html body .lesson .example p.example-en{font-size:16px}html body .lesson .example p.example-zh{font-size:13.5px}}
/* 中文导语改回普通断行(不再只在标点断，避免首行只剩一小截)，英中都用 pretty 避免末行孤词 */
html body .lesson .example p.example-zh{word-break:normal;text-wrap:pretty}
html body .lesson .example p.example-en{text-wrap:pretty}
.menu-heading:has(#menu-back[hidden]){border-bottom:0;min-height:52px;padding-bottom:0}
.lang-pick{position:relative}.lang-btn{display:inline-flex;align-items:center;gap:8px;padding:8px;border:0;background:none;color:var(--ink);font:inherit;font-size:16px;font-weight:550;cursor:pointer;border-radius:10px}.lang-btn:hover{background:color-mix(in oklab,var(--line) 45%,transparent)}.lang-caret{width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:translateY(-2px) rotate(45deg);transition:transform .25s cubic-bezier(.22,1,.36,1)}.lang-btn[aria-expanded="true"] .lang-caret{transform:translateY(2px) rotate(225deg)}.lang-list{position:absolute;left:0;top:calc(100% + 6px);z-index:5;margin:0;padding:6px;list-style:none;min-width:180px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px color-mix(in oklab,var(--ink) 12%,transparent)}.lang-list button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border:0;background:none;border-radius:9px;font:inherit;font-size:15px;color:var(--ink);text-align:left;cursor:pointer}.lang-list button[aria-current]{font-weight:600}.lang-list button[aria-current]::after{content:"";width:5px;height:9px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translate(-2px,-1px)}.lang-list button:disabled{color:var(--muted);cursor:default}.lang-list small{font-size:12px;color:var(--muted)}
#menu-close svg{width:16px;stroke-width:1.5;color:var(--muted);transition:color .2s}#menu-close:hover svg{color:var(--ink)}
.tree-soon{display:flex;align-items:center;justify-content:center;min-height:40px;padding:2px;font-size:14px;white-space:nowrap;border:1px dashed var(--line);border-radius:6px;color:color-mix(in oklab,var(--muted) 70%,transparent);cursor:default}
html body.barexam .lesson .example p.example-en{font-size:14px;line-height:1.5}html body.barexam .lesson .example p.example-zh{font-size:12.5px;line-height:1.55}html body.barexam .lesson .example p{max-width:100%}@media (min-width:900px){html body.barexam .lesson .example p.example-en{font-size:16px}html body.barexam .lesson .example p.example-zh{font-size:13.5px}html body.barexam .lesson .example p{max-width:540px}}
.lesson.tight1 .reveal-row[data-field="phonics"],.lesson.tight1 .reveal-row[data-field="phonicsHint"],.lesson.tight2 .reveal-row[data-field="pron"]{display:none}
.rank-topic{white-space:normal}body.barexam .rank-note{max-width:min(86%,560px);margin-inline:auto;text-wrap:balance;line-height:1.45}
.rank-topic{display:block;margin-top:2px}.lesson.tight3 .rank-topic{display:none}
html body.barexam .lesson{justify-content:center;gap:clamp(8px,2vh,20px)}html body.barexam .lesson .example p{max-width:500px}html body.barexam .lesson .listen{margin-block:clamp(4px,1.2vh,14px)}
.rank-topic{display:none!important}
.mobile-brand:not([href="/?home"]){color:var(--coral)}
.help-list{list-style:none;margin:0 0 6px;padding:0;font-size:15px;line-height:1.5}.help-list li{padding:9px 0;border-bottom:1px solid var(--line);white-space:nowrap}.help-list li:last-child{border-bottom:0}
.help-note a,.about-text a{color:var(--coral);text-decoration:none;border-bottom:1px solid currentColor}
.help-list a{color:var(--coral);text-decoration:none;border-bottom:1px solid currentColor}
.feedback-sheet form{display:flex;flex-direction:column;gap:10px}.feedback-sheet textarea,.feedback-sheet input{width:100%;font:inherit;font-size:15px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);resize:vertical}.feedback-sheet textarea:focus,.feedback-sheet input:focus{outline:2px solid var(--coral);outline-offset:-1px}.feedback-sheet .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}.feedback-sheet button{margin-top:2px}.feedback-msg{margin:0;min-height:20px;font-size:14px;color:color-mix(in oklab,var(--muted) 60%,var(--ink))}
.seo-list summary{list-style:none;cursor:pointer}.seo-list summary::-webkit-details-marker{display:none}.seo-list[open] summary span:last-child{font-size:0}.seo-list[open] summary span:last-child::after{content:"−";font-size:17px}.seo-list-body{padding:16px 26px 22px;font-size:14px;color:color-mix(in oklab,var(--muted) 60%,var(--ink))}.seo-list-body p{margin:0 0 12px;line-height:1.6}.seo-list-body a{color:var(--coral);text-decoration:none}.seo-list-body ul{list-style:none;margin:0;padding:0;columns:2;column-gap:20px}.seo-list-body li{padding:3px 0;break-inside:avoid;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seo-list-body li span{color:var(--ink)}
@media(max-width:600px) and (min-height:681px){.rank-note{transform:translateY(-34px)}}
#menu-dialog:focus{outline:none}.lang-btn:focus:not(:focus-visible){outline:none}
#boot{display:none}.app-shell{visibility:visible}.loading{position:fixed;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;background:var(--paper);font-size:13px;letter-spacing:.2em;color:var(--muted);text-align:center;line-height:1.8}.loading::before{content:'';width:28px;height:28px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2381796f' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M6.5 3h11M6.5 21h11'/%3E%3Cpath d='M8 3c0 4.6 7.5 5.6 7.5 9S8 16.4 8 21M16 3c0 4.6-7.5 5.6-7.5 9s7.5 4.4 7.5 9'/%3E%3Cpath d='M9.6 19.6h4.8L12 16.4z' fill='%23c96442' stroke='none'/%3E%3Cpath d='M10.4 6.6h3.2L12 8.4z' fill='%23c96442' stroke='none' opacity='.55'/%3E%3C/svg%3E") center/contain no-repeat;animation:hg 2.4s cubic-bezier(.65,0,.35,1) infinite}.loading:has(button){letter-spacing:normal}.loading:has(button)::before{display:none}@keyframes hg{0%,42%{transform:rotate(0)}58%,100%{transform:rotate(180deg)}}@media(prefers-reduced-motion:reduce){.loading::before{animation:none}}
@media(max-width:600px){html body .lesson{padding-inline:22px}html body .lesson .example{padding-left:0}html body .lesson .example .reveal-row{grid-template-columns:12px minmax(0,1fr) 44px}}
html body .lesson .example-en,html body .lesson .example-zh{text-wrap:wrap}
html body .lesson .example p.example-en,html body .lesson .example p.example-zh{text-wrap:wrap}@media(max-width:600px){html body .lesson .example .reveal-row{grid-template-columns:44px minmax(0,1fr) 44px}html body .lesson .example p.example-en,html body .lesson .example p.example-zh{text-align:center;margin-inline:auto}}
@media(max-width:600px){html body .lesson .example p.example-en,html body .lesson .example p.example-zh{text-wrap:balance}}
.card-brand{display:none}
.topbar-actions{display:flex;align-items:center;gap:2px}
.topbar #share-open{width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:var(--ink);cursor:pointer}
.topbar #share-open svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.topbar #share-open span{display:none}
.topbar #share-open:hover{color:var(--coral)}
@media(max-width:600px){.card-brand{display:flex;position:fixed;left:22px;top:16px;height:44px;align-items:center;z-index:3;font-size:15px;font-weight:500;letter-spacing:.02em;color:var(--coral);text-decoration:none}}
@media(max-width:600px){html body .topbar{width:auto;left:auto}html body .topbar .topbar-actions{flex-direction:row;width:auto}}
html body .topbar #share-open{color:var(--muted)}html body .topbar #share-open:hover{color:var(--ink)}
@media(max-width:600px){html body .card-brand{color:color-mix(in oklab,var(--coral) 55%,var(--paper));font-size:14px}}@media(max-width:600px) and (min-height:681px){html body .rank-note{transform:translateY(-12px)}}
html body .lesson .listen{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;justify-items:center}
html body .lesson .listen .play-button{grid-column:2}
.share-card{grid-column:3;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:var(--muted);cursor:pointer}
.share-card svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.share-card:hover{color:var(--ink)}
.share-card{justify-self:end}@media(max-width:600px){.share-card{width:28px}}
.gesture-intro .gesture-line{display:flex;gap:12px;white-space:nowrap;margin:0}.gesture-intro .gesture-line span{white-space:nowrap}@media(max-width:380px){.gesture-intro .gesture-line{gap:8px;font-size:13px}}
html body .lesson .listen{display:flex;justify-content:center}
.lesson .card-foot{position:absolute;right:var(--foot-r,16px);bottom:var(--foot-b,14px);z-index:2}
.lesson .card-foot .share-card{width:44px;height:44px}
.lesson .card-foot{--foot-r:30px;--foot-b:10px}@media(max-width:600px){.lesson .card-foot{--foot-r:14px}}
@media(max-width:600px){html body .lesson .card-brand{position:absolute;left:22px;top:16px;z-index:2}}
.lesson .card-foot{--foot-b:var(--foot-r)}
@media(max-width:600px){html body .lesson .card-brand{color:color-mix(in oklab,var(--coral) 40%,var(--paper))}}
.lesson .card-foot{right:auto;left:50%;transform:translateX(-50%);bottom:var(--foot-c,14px)}@media(max-width:600px){.lesson .card-foot{--foot-c:10px}}
@media(max-width:600px){html body .lesson .card-brand{color:color-mix(in oklab,var(--coral) 28%,var(--paper))}}
html body .lesson .example{padding-left:0}html body .lesson .example .reveal-row{width:100%;grid-template-columns:44px minmax(0,1fr) 44px}html body .lesson .example p.example-en,html body .lesson .example p.example-zh{text-align:center;margin-inline:auto;text-wrap:balance}
.lesson h2.word{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
#share-row .share-ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;color:var(--muted);flex:none}
#share-row .share-ico{color:var(--coral)}
@media(max-width:600px){html body .lesson .card-brand{top:auto;left:50%;bottom:10px;height:auto;transform:translateX(-50%);font-size:11px;font-weight:400;letter-spacing:.3em;padding-left:.3em;white-space:nowrap;color:color-mix(in oklab,var(--muted) 70%,var(--paper))}}
@media(max-width:600px){html body .lesson .card-brand{bottom:24px;line-height:1}}@media(max-width:600px) and (max-height:620px){html body .lesson .card-brand{bottom:12px}}
@media(max-width:600px) and (min-height:621px) and (max-height:720px){html body .lesson .card-brand{bottom:18px}}
@media(max-width:600px){html body .lesson .card-brand{display:flex;align-items:center;gap:7px;letter-spacing:0;padding-left:0}.card-brand span{letter-spacing:.3em;padding-left:.3em}.card-brand .wing{display:flex;width:34px;height:15px}.card-brand .wing svg{width:100%;height:100%}.card-brand .wing.r{transform:scaleX(-1)}}
@media(max-width:600px){html body .lesson .card-brand{bottom:34px}}@media(max-width:600px) and (min-height:621px) and (max-height:720px){html body .lesson .card-brand{bottom:22px}}@media(max-width:600px) and (max-height:620px){html body .lesson .card-brand{bottom:14px}}
@media(max-width:600px){html body .lesson .example{position:relative}html body .lesson .example>.card-brand{top:calc(100% + 26px);bottom:auto}}
@media(max-width:600px){html body .lesson .example>.card-brand{position:static;transform:none;margin:18px auto 0;width:max-content}}
@media(max-width:600px){html body .card-brand .wing{display:none}}
@media(max-width:600px){html body .lesson .example>.card-brand{margin-top:32px;color:color-mix(in oklab,var(--muted) 45%,var(--paper))}}
@media(max-width:600px) and (min-height:681px){html body .rank-note{transform:translateY(-28px)}}@media(max-width:600px) and (max-height:680px){html body .rank-note{transform:translateY(-10px)}}
@media(max-width:600px) and (max-height:620px){html body .rank-note{transform:none}}
@media(max-width:600px){html body .lesson .example>.card-brand{position:absolute;left:50%;top:auto;margin:0;transform:translateX(-50%)}html body .lesson .example{position:static}html body .lesson .card-brand{bottom:52px}html body .lesson>.word-area,html body .lesson>.example{transform:translateY(var(--shift,24px))}}
@media(max-width:600px) and (min-height:621px) and (max-height:720px){html body .lesson .card-brand{bottom:33px}.lesson{--shift:16px}}
@media(max-width:600px) and (max-height:620px){html body .lesson .card-brand{bottom:24px}.lesson{--shift:12px}}
@media(max-width:600px){html body .lesson>.word-area,html body .lesson>.example{transform:none}html body .lesson .example>.card-brand{position:static;transform:none;margin:14px auto 0;width:max-content}}
@media(max-width:600px){html body .lesson .example>.card-brand{margin-top:0}}

/* Mobile brand visibility: retain the label's space and the existing eye column. */
.card-brand-label{color:inherit;text-decoration:none}
@media(max-width:600px){html body .lesson .card-brand,html body .lesson .example>.card-brand{position:relative;display:flex;justify-content:center;align-items:center;left:auto;top:auto;bottom:auto;transform:none;width:100%;height:11px;min-height:11px;margin:0 auto;line-height:1}html body .lesson .card-brand .eye-toggle{position:absolute;left:auto;right:-8px;top:50%;transform:translateY(-50%);width:44px;height:44px;min-height:44px}html body .lesson .card-brand.is-hidden .card-brand-label{visibility:hidden;pointer-events:none}html body .lesson .card-brand.is-hidden .eye-toggle{color:var(--coral);opacity:.85}}
@media(max-width:600px) and (max-height:620px){html body .lesson .card-brand .eye-toggle{transform:translateY(calc(-50% - 8px))}}
/* Brand wordmark uses regular weight. */
.topbar .mobile-brand{font-weight:400}
/* Keep the phone menu just below the visible hamburger, 0.5cm higher. */
@media(max-width:600px){#menu-dialog.learning-menu{top:max(8px,calc(var(--menu-top,172px) - .5cm));max-height:calc(100dvh - max(8px,calc(var(--menu-top,172px) - .5cm)) - 16px)}}

@media(max-width:600px){#menu-dialog.learning-menu{top:var(--menu-visible-top,max(8px,calc(var(--menu-top,172px) - .5cm)));max-height:var(--menu-visible-height,calc(100dvh - max(8px,calc(var(--menu-top,172px) - .5cm)) - 16px));overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:64px 12px}#menu-dialog .feedback-sheet textarea,#menu-dialog .feedback-sheet input{font-size:16px}#menu-dialog .feedback-sheet textarea{max-height:max(64px,calc(var(--menu-viewport-height,100dvh) - 120px))}}

/* Phone menu: fixed language bar and a separate, compact scrolling body. */
.lang-btn{font-family:inherit;font-size:17px;font-weight:400;line-height:24px}
@media(max-width:600px){#menu-dialog.learning-menu[open]{display:flex;flex-direction:column;overflow:hidden}#menu-dialog>.menu-heading{position:relative;flex-shrink:0;min-height:52px}#menu-dialog>#menu-home{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:12px;padding-bottom:12px}#menu-home .menu-row,#menu-home .tree-head{min-height:50px;padding:12px 26px;line-height:24px;font-size:17px;font-weight:400}}
@media(max-width:600px){html body .lesson .card-brand{font-size:10px}}
.card-brand.is-gone .card-brand-label{visibility:hidden}.card-brand.is-gone .eye-toggle{opacity:0}
html body .lesson .card-brand.is-gone .eye-toggle{opacity:0}html body .lesson .card-brand.is-gone .card-brand-label{visibility:hidden}
.focus-switch{flex:none;position:relative;width:38px;height:22px;border-radius:11px;background:var(--line,#ddd);transition:background .2s}
.focus-switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--paper,#fff);box-shadow:0 1px 2px rgb(0 0 0/.2);transition:transform .2s}
.focus-switch.on{background:var(--coral)}
.focus-switch.on::after{transform:translateX(16px)}
html body.focus-mode .lesson .eye-toggle{opacity:.14;transition:opacity .2s}
html body.focus-mode .lesson .eye-toggle:hover,html body.focus-mode .lesson .eye-toggle:focus-visible,html body.focus-mode .lesson .eye-toggle:active{opacity:.7}
html body.focus-mode .lesson .card-brand.is-gone .eye-toggle{opacity:0}
/* 专注模式成为默认：所有小眼睛都很淡，点过(闭眼)也一样淡 */
html body .lesson .eye-toggle,html body .lesson .reveal-row.is-hidden .eye-toggle,html body .lesson .card-brand.is-hidden .eye-toggle{color:color-mix(in oklab,var(--muted) 85%,var(--ink));opacity:.14;transition:opacity .2s}
html body .lesson .eye-toggle:hover,html body .lesson .eye-toggle:focus-visible,html body .lesson .eye-toggle:active{opacity:.7}
html body .lesson .card-brand.is-gone .eye-toggle,html body .lesson .card-brand.is-gone .eye-toggle:hover{opacity:0}
html body .lesson .eye-toggle:hover,html body .lesson .eye-toggle:active,html body .lesson .eye-toggle:focus{opacity:.14;color:color-mix(in oklab,var(--muted) 85%,var(--ink))}
@media(hover:hover) and (pointer:fine){html body .lesson .eye-toggle:hover{opacity:.7}}
html body .lesson .eye-toggle:focus-visible{opacity:.7}
html body .lesson .card-brand.is-gone .eye-toggle,html body .lesson .card-brand.is-gone .eye-toggle:hover,html body .lesson .card-brand.is-gone .eye-toggle:focus{opacity:0}
#site-login{margin-bottom:6px}
#site-login .login-form{display:flex;flex-direction:column;gap:10px;margin:4px 0 8px}
#site-login p{text-indent:0}
#site-login .login-note{font-size:12px;color:var(--muted);margin:0;line-height:1.6}
#site-login .feedback-msg{font-size:13px;margin:0;color:var(--coral);min-height:0}
#site-login .feedback-msg:empty{display:none}
#site-login .login-notify{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
#site-login .login-notify input{width:16px;height:16px;accent-color:var(--coral);margin:0}
#site-login .login-who{font-size:15px;font-weight:500;margin:0 0 4px;color:var(--ink);word-break:break-all}
#site-login .login-code-row[hidden]{display:none}
#site-login button[disabled]{opacity:.6}
#site-login .feedback-msg.ok{color:var(--muted)}
.lang-pick{display:flex;align-items:center;gap:14px;flex-wrap:nowrap}
.lang-group{position:relative;display:flex;align-items:center;gap:2px}
.lang-label{font-size:12px;color:var(--muted);letter-spacing:.04em;white-space:nowrap}
.lang-group .lang-btn{padding:8px 6px;white-space:nowrap}

/* 别的语言文字更长：滑动说明允许折成两行，按钮不被挤出屏幕（中文页不变） */
html:not([lang^="zh"]) .gesture-intro .gesture-line{flex-wrap:wrap;row-gap:0;column-gap:10px}
html:not([lang^="zh"]) .gesture-intro p{white-space:normal}
html:not([lang^="zh"]) p{text-indent:0!important}  /* 段首空两格是中文排版习惯 */
/* 儿童版：卡通、明亮，只作用于 html.kids */
html.kids,html.kids[data-theme]{--paper:#fff7e6;--ink:#3d3160;--muted:#8a7f99;--coral:#ff6b3d;--accent2:#2fa58a;--line:#f3dfb8;--soft:#fff0d1;--canvas:#ffe3a3;--card:#fff8e4;--card-edge:#ffc95c;--card-back:#fff3d6}
html.kids body{font-family:"Fredoka","PingFang SC","Noto Sans CJK SC",ui-rounded,sans-serif}
html.kids .word{font-weight:700;letter-spacing:-.01em;font-size:44px}
html.kids .pron{font-weight:600}
html.kids .kid-pic{width:128px;height:128px;margin:0 auto 14px;border-radius:44% 56% 52% 48%/50% 44% 56% 50%;display:grid;place-items:center;font-size:76px;line-height:1;background:#ffe9a8;box-shadow:inset 0 -6px 0 rgba(255,170,60,.25);animation:kid-bob 3.2s cubic-bezier(.45,0,.55,1) infinite}
html.kids .lesson:nth-child(5n+2) .kid-pic{background:#cdf3e4}
html.kids .lesson:nth-child(5n+3) .kid-pic{background:#ffd9cc}
html.kids .lesson:nth-child(5n+4) .kid-pic{background:#d6e8ff}
html.kids .lesson:nth-child(5n+5) .kid-pic{background:#eadcff}
@keyframes kid-bob{50%{transform:translateY(-6px) rotate(-3deg)}}
@media (prefers-reduced-motion:reduce){html.kids .kid-pic{animation:none}}
html.kids .play-button{width:64px;height:64px;border:0;background:var(--coral);color:#fffaf0;box-shadow:0 5px 0 #e04f22}
html.kids .play-button:active{transform:translateY(3px);box-shadow:0 2px 0 #e04f22}
html.kids .word.long{font-size:34px}
.example-en[data-ex]{cursor:pointer}
.ex-speak svg{width:.78em;height:.78em;margin-left:.32em;vertical-align:-.06em;opacity:.4}
.example-en.playing{color:var(--coral)}
.example-en.playing .ex-speak svg{opacity:1}
.growth-note{color:var(--muted);font-size:14px;line-height:1.6;margin:-4px 0 12px}
.tree-scenes+.tree-scenes{margin-top:16px}
.tree-label{margin:18px 0 8px;font-size:13px;color:var(--muted)}
.tree-scenes.tree-nums{grid-template-columns:repeat(5,minmax(0,1fr))}
html.kids-host #menu-title .lang-group,html.kids-host [data-tab=account],html.kids-host #feedback-open{display:none}
.menu-tree .tree-kids a.tree-exit{display:block;min-height:0;margin:16px 0 0;padding:0;border:0;font-size:14px;color:var(--muted)}
.menu-tree .college-toggle{font:inherit;background:none;cursor:pointer}.menu-tree .college-toggle[aria-expanded=true]{color:var(--coral);border-color:var(--coral)}
.kids-lock{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:color-mix(in oklab,var(--paper) 97%,transparent)}
.kids-lock-card{width:min(340px,100%);padding:28px 22px;text-align:center;background:var(--card);border:2px solid var(--line);border-radius:24px;font-size:17px;line-height:1.6}
.kids-lock-title{margin:0 0 8px;font-size:22px;font-weight:600}
.kids-lock-moon{font-size:64px;line-height:1.2}
.kids-lock input{width:120px;margin:8px 0 4px;padding:10px;font:inherit;font-size:22px;text-align:center;border:2px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}
.kids-lock-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px}
.kids-lock-row button{min-height:44px;padding:0 16px;font:inherit;font-size:16px;border:2px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);cursor:pointer}
.kids-lock-row button.on{background:var(--coral);border-color:var(--coral);color:var(--paper)}
.menu-tree .tree-kids button.kids-parent{display:block;min-height:0;margin:10px 0 0;padding:0;border:0;background:none;font:inherit;font-size:14px;color:var(--muted);cursor:pointer}
html.senior .word{font-size:46px}
html.senior .word.long{font-size:38px}
html.senior .meaning{font-size:28px}
html.senior .pron{font-size:26px}
html.senior .example-en{font-size:20px}
html.senior .example-zh{font-size:18px}
html.senior .play-button{width:72px;height:72px}
a.edition-link{color:inherit;text-decoration:none}
a.edition-link span:last-child{font-size:20px}
.menu-gap{height:12px;background:color-mix(in oklab,var(--line) 40%,transparent);border-bottom:1px solid var(--line)}
#menu-home>.menu-tree{border-bottom:12px solid color-mix(in oklab,var(--line) 40%,transparent);box-shadow:0 1px 0 var(--line)}
#menu-dialog>.menu-heading{min-height:64px;padding:10px 16px 10px 26px}
.lang-pick{gap:22px}
.lang-label{font-size:14px;letter-spacing:.02em}
.lang-group .lang-btn{font-size:19px;padding:8px 4px 8px 8px}
/* 我会说 / 我要学：两块醒目的选择框 */
#menu-dialog>.menu-heading{padding:14px 12px 18px 26px;gap:10px}
.lang-pick{flex:1;gap:10px}
.lang-group{flex:1;flex-direction:column;align-items:stretch;gap:0;padding:8px 12px 6px;border:1px solid var(--line);border-radius:12px;background:color-mix(in oklab,var(--coral) 6%,var(--paper))}
.lang-label{font-size:13px}
.lang-group .lang-btn{justify-content:space-between;padding:2px 0;font-size:20px;font-weight:600;border-radius:6px}
.lang-group .lang-btn:hover{background:none}
.lang-group{align-items:center;text-align:center;border-color:color-mix(in oklab,var(--coral) 30%,var(--line));background:color-mix(in oklab,var(--coral) 12%,var(--paper))}
.lang-group .lang-btn{justify-content:center;gap:6px}
.lang-group{flex-direction:row;justify-content:center;gap:6px;padding:10px 8px}
.lang-group .lang-btn{font-size:18px;padding:0}
.lang-group{gap:5px;padding:9px 6px;min-width:0}
.lang-group .lang-btn{min-height:0;font-size:17px;line-height:24px}
.lang-pick{min-width:0}
#menu-close{flex-shrink:0}
.lang-group{gap:4px;padding:9px 4px}
.lang-label{font-size:12px;letter-spacing:0}
#menu-dialog>.menu-heading{padding-left:18px;gap:6px}
.lang-pick{gap:8px}
@media (max-width:375px){.lang-group .lang-btn{font-size:16px}}
/* 菜单只上下滚，不左右晃；放不下的帮助说明折行 */
#menu-home{overflow-x:hidden}
.help-list li{white-space:normal;overflow-wrap:anywhere}
/* 菜单不显示滚动条（照样能上下滑） */
#menu-home{scrollbar-width:none}
#menu-home::-webkit-scrollbar{display:none}
