:root{--green: #58cc02;--green-dark: #46a302;--green-soft: #e9ffd9;--blue: #1cb0f6;--blue-dark: #1899d6;--blue-soft: #ddf4ff;--red: #ff4b4b;--red-dark: #d33131;--red-soft: #ffe8e8;--orange: #ff9600;--orange-soft: #fff1d6;--ink: #3c3c3c;--ink-soft: #5f6b63;--muted: #8a8f8b;--line: #e5e5e5;--surface: #f7f8f7;--white: #ffffff;--radius: 18px;--radius-sm: 12px;--edge: 4px;--pad: 20px;--font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "PingFang SC", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--text-xl: 28px;--text-lg: 22px;--text-md: 17px;--text-sm: 15px;--text-xs: 13px;--motion-fast: .15s;--motion-base: .22s;--motion-slow: .32s;--ease-pop: cubic-bezier(.34, 1.56, .64, 1)}@media(prefers-reduced-motion:reduce){:root{--motion-fast: 0ms;--motion-base: 0ms;--motion-slow: 0ms}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;background:#eef2ea}body{font-family:var(--font);color:var(--ink);font-size:17px;line-height:1.5;-webkit-font-smoothing:antialiased}#root{min-height:100dvh}button,input{font-family:inherit;font-size:inherit;color:inherit}button{cursor:pointer;border:none;background:none}.app-frame{position:relative;width:100%;max-width:430px;min-height:100dvh;margin:0 auto;background:var(--white);overflow-x:hidden}@media(min-width:500px){.app-frame{box-shadow:0 0 0 1px #0000000a,0 20px 60px #1c3c1414}}.screen{min-height:100dvh;display:flex;flex-direction:column;padding-bottom:calc(88px + env(safe-area-inset-bottom))}.screen.no-nav{padding-bottom:env(safe-area-inset-bottom)}.scroll-body{flex:1;overflow-y:auto;padding:0 var(--pad) 24px;-webkit-overflow-scrolling:touch}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.25;font-weight:800;letter-spacing:-.02em}h2{font-size:22px;line-height:1.3;font-weight:800;letter-spacing:-.01em}h3{font-size:18px;line-height:1.35;font-weight:800}.muted{color:var(--muted)}.small{font-size:14px}.tiny{font-size:12px;line-height:1.45}.row{display:flex;align-items:center;gap:10px}.spread{display:flex;align-items:center;justify-content:space-between;gap:10px}.grow{flex:1}.stack{display:flex;flex-direction:column;gap:12px}.stack-lg{display:flex;flex-direction:column;gap:20px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 18px;border-radius:16px;font-weight:800;font-size:16px;letter-spacing:.01em;border-bottom:var(--edge) solid transparent;transition:transform 80ms ease,border-width 80ms ease,filter .12s ease;-webkit-user-select:none;user-select:none}.btn:active:not(:disabled){transform:translateY(2px);border-bottom-width:2px}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--green);border-bottom-color:var(--green-dark);color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.08)}.btn-blue{background:var(--blue);border-bottom-color:var(--blue-dark);color:#fff}.btn-secondary{background:var(--white);border:2px solid var(--line);border-bottom-width:4px;color:var(--ink)}.btn-ghost{background:transparent;color:var(--muted);font-weight:700;min-height:44px}.btn-danger{background:var(--red);border-bottom-color:var(--red-dark);color:#fff}.btn-block{width:100%}.btn-lg{min-height:56px;font-size:17px}.btn-sm{min-height:44px;padding:0 14px;font-size:14px;border-radius:12px}.btn:disabled{opacity:.42;filter:grayscale(.45);cursor:default}.icon-btn{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:var(--muted)}.icon-btn:active{background:var(--surface)}.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top)) var(--pad) 10px;background:#fffffff5;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:8px;font-weight:800;letter-spacing:-.01em}.brand-mark{width:30px;height:30px;border-radius:9px;background:var(--green);display:grid;place-items:center;color:#fff;font-size:15px;font-weight:900}.stats-strip{display:flex;align-items:center;gap:8px}.pill{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 10px;border-radius:999px;background:var(--surface);font-weight:800;font-size:14px}.pill.streak{color:var(--orange);background:var(--orange-soft)}.pill.hearts{color:var(--red);background:var(--red-soft)}.pill.xp{color:var(--green-dark);background:var(--green-soft)}.hearts{display:inline-flex;gap:2px}.heart{width:16px;height:16px;color:var(--red)}.heart.empty{color:#d9d9d9}.join{display:flex;flex-direction:column;justify-content:center;min-height:100dvh;padding:calc(28px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));text-align:center}.join-mascot{margin:8px auto 18px}.join h1{font-size:30px}.join-sub{margin-top:10px;color:var(--muted);font-size:15px}.join-form{margin-top:26px;text-align:left;display:flex;flex-direction:column;gap:14px}.field label{display:block;font-size:13px;font-weight:800;color:var(--muted);margin-bottom:6px;letter-spacing:.02em}.field input{width:100%;height:54px;padding:0 16px;border-radius:14px;border:2px solid var(--line);background:var(--white);font-size:16px;font-weight:700;outline:none}.field input:focus{border-color:var(--blue)}.error-box{background:var(--red-soft);color:var(--red-dark);border-radius:12px;padding:10px 12px;font-size:14px;font-weight:700}.join-note{margin-top:18px;color:var(--muted);font-size:12px;line-height:1.6}.chapter{margin-top:22px}.chapter-banner{border-radius:var(--radius);padding:16px;background:linear-gradient(135deg,#e9ffd9,#f6fff0);border:2px solid #cdeeae}.chapter-banner.locked{background:var(--surface);border-color:var(--line)}.chapter-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.level-badge{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:999px;background:var(--green);color:#fff;font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.level-badge.l2{background:var(--blue)}.level-badge.l3{background:#8b5cf6}.level-badge.l4{background:var(--orange)}.level-badge.l5{background:#e5484d}.chapter-title{font-size:18px;font-weight:800;margin-top:8px}.chapter-goal{margin-top:4px;color:var(--ink-soft);font-size:13px;line-height:1.5}.chapter-progress{margin-top:12px}.lessons{margin-top:14px;display:flex;flex-direction:column;gap:10px;position:relative}.lesson-node{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px;border-radius:16px;background:var(--white);border:2px solid var(--line);transition:transform 80ms ease,border-color .12s ease}.lesson-node:active{transform:scale(.99)}.lesson-node.done{border-color:#cdeeae;background:#fbfff7}.lesson-node.current{border-color:var(--green);box-shadow:0 4px #d7f5bb}.lesson-node.locked{opacity:.62}.node-circle{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:var(--green-dark);font-weight:900;font-size:15px}.node-circle.done{background:var(--green);color:#fff}.node-circle.locked{background:#f0f0f0;color:#a7a7a7}.node-body{min-width:0;flex:1}.node-title{font-weight:800;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node-meta{margin-top:2px;color:var(--muted);font-size:12px;display:flex;gap:8px;align-items:center}.node-action{flex:none;color:var(--muted);display:grid;place-items:center}.checkpoint-node{display:flex;align-items:center;gap:12px;margin-top:14px;padding:14px;border-radius:16px;background:linear-gradient(135deg,#fff7e6,#fffdf7);border:2px dashed #f3c476}.checkpoint-node.locked{background:var(--surface);border-color:var(--line);opacity:.65}.checkpoint-node.passed{background:var(--green-soft);border-color:#b7e58c}.lab-card{display:flex;align-items:center;gap:12px;width:100%;text-align:left;margin-top:10px;padding:12px 14px;border-radius:14px;background:var(--white);border:2px solid var(--line)}.lab-card.locked{opacity:.6}.lab-icon{width:38px;height:38px;border-radius:12px;background:var(--blue-soft);color:#0a7ea8;display:grid;place-items:center;flex:none}.mastery{margin-top:10px}.mastery-label{display:flex;justify-content:space-between;font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}.mastery-bar{margin-top:5px;height:8px;border-radius:999px;background:#e9efe6;overflow:hidden}.mastery-fill{height:100%;border-radius:999px;background:var(--green);transition:width .3s ease}.lesson-screen{display:flex;flex-direction:column;height:100dvh;overscroll-behavior:contain}.lesson-head{display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;border-bottom:1px solid var(--line);background:var(--white)}.lesson-progress{flex:1;height:14px;border-radius:999px;background:#e7ece4;overflow:hidden}.lesson-progress-fill{height:100%;border-radius:999px;background:var(--green);transition:width .2s ease}.lesson-body{flex:1;overflow-y:auto;padding:22px 20px 28px;-webkit-overflow-scrolling:touch}.lesson-kicker{font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}.lesson-title{margin-top:6px;font-size:20px;font-weight:800;letter-spacing:-.01em}.lesson-question{margin-top:14px;font-size:21px;line-height:1.45;font-weight:800;letter-spacing:-.01em}.lesson-question .en{display:block;margin-top:4px;font-size:15px;font-weight:600;color:var(--ink-soft)}.lesson-footer{position:relative;width:100%;flex:none;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:var(--white);border-top:1px solid var(--line);z-index:2}.lesson-footer .btn{width:100%}.teach-card{border-radius:var(--radius);border:2px solid #cdeeae;background:linear-gradient(180deg,#f8fff2,#fff);padding:20px}.teach-icon{width:44px;height:44px;border-radius:14px;background:var(--green-soft);display:grid;place-items:center;color:var(--green-dark);margin-bottom:14px}.teach-title{font-size:21px;font-weight:800;letter-spacing:-.01em}.teach-body{margin-top:10px;font-size:15px;line-height:1.6;color:var(--ink-soft)}.teach-body .en{display:block;margin-top:8px;font-size:13px;color:var(--muted)}.teach-example{margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--white);border:1px solid var(--line);font-size:14px;font-weight:700}.teach-example .en{margin-top:4px;font-size:12px;font-weight:600;color:var(--muted)}.teach-steps{margin:14px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}.teach-steps li{display:flex;gap:10px;font-size:14px;line-height:1.55;color:var(--ink-soft)}.teach-steps .num{flex:none;width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:900;margin-top:1px}.teach-takeaway{margin-top:16px;padding-top:14px;border-top:2px dashed #cdeeae;font-size:14px;font-weight:800;color:var(--green-dark);line-height:1.5}.choices{margin-top:18px;display:flex;flex-direction:column;gap:12px}.choice{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:10px 14px;border-radius:16px;border:2px solid var(--line);border-bottom-width:4px;background:var(--white);text-align:left;font-weight:700;font-size:15px;line-height:1.4;transition:transform 80ms ease,border-color .12s ease,background .12s ease}.choice:active{transform:translateY(1px)}.choice.selected{border-color:var(--blue);background:var(--blue-soft);color:#075985}.choice.correct{border-color:var(--green);background:var(--green-soft);color:#2b6b00}.choice.wrong{border-color:var(--red);background:var(--red-soft);color:var(--red-dark)}.choice-letter{flex:none;width:30px;height:30px;border-radius:9px;border:2px solid var(--line);display:grid;place-items:center;font-size:12px;font-weight:900;color:var(--muted);background:var(--white)}.choice.selected .choice-letter{border-color:var(--blue);color:var(--blue-dark)}.choice.correct .choice-letter{border-color:var(--green);color:var(--green-dark)}.choice.wrong .choice-letter{border-color:var(--red);color:var(--red-dark)}.choice-text .en{display:block;margin-top:2px;font-size:12px;font-weight:600;color:var(--muted)}.scenario{margin-top:14px;font-size:14px;line-height:1.55;color:var(--ink-soft);background:var(--surface);border-radius:12px;padding:12px 14px}.scenario .en{display:block;margin-top:6px;color:var(--muted);font-size:12px}.case-table{margin-top:14px;border:2px solid var(--line);border-radius:14px;overflow:hidden;background:var(--white)}.case-row{display:grid;grid-template-columns:repeat(var(--cols, 2),minmax(0,1fr));gap:4px 10px;padding:10px 12px;border-top:1px solid var(--line);font-size:13px}.case-row:first-child{border-top:none;background:var(--surface);font-size:11px;font-weight:900;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}.case-row .cell{min-width:0;word-break:break-word}.case-row .cell:first-child{font-weight:800;color:var(--ink)}.case-row.header .cell{font-weight:900;color:var(--muted)}.case-row .label{display:none;font-size:10px;font-weight:800;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}.case-row .value{font-weight:700}.case-table.stacked .case-row.header{display:none}.case-table.stacked .case-row{grid-template-columns:1fr;gap:6px;padding:12px}.case-table.stacked .case-row+.case-row{border-top:6px solid var(--surface)}.case-table.stacked .case-row .cell{display:flex;align-items:baseline;gap:8px}.case-table.stacked .case-row .label{display:inline;flex:none;min-width:72px}.match{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.match-col{display:flex;flex-direction:column;gap:8px}.match-item{min-height:50px;padding:8px 10px;border-radius:12px;border:2px solid var(--line);background:var(--white);font-size:13px;font-weight:800;text-align:left;line-height:1.3}.match-item.active{border-color:var(--blue);background:var(--blue-soft)}.match-item.paired{border-color:var(--green);background:var(--green-soft);color:#2b6b00}.match-pairs{margin-top:12px;display:flex;flex-direction:column;gap:6px}.match-pair{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.match-pair b{color:var(--ink);font-weight:800}.sentence{margin-top:18px;font-size:19px;font-weight:800;line-height:1.6}.sentence .en{display:block;margin-top:6px;font-size:14px;font-weight:600;color:var(--muted)}.blank{display:inline-block;min-width:90px;border-bottom:3px solid var(--green);color:var(--green-dark);text-align:center}.formula-input{margin-top:22px;display:flex;align-items:stretch;gap:8px}.formula-input input{flex:1;height:62px;border-radius:16px;border:2px solid var(--line);padding:0 16px;font-size:24px;font-weight:800;outline:none;text-align:right;background:var(--white)}.formula-input input:focus{border-color:var(--blue)}.formula-unit{display:grid;place-items:center;min-width:58px;padding:0 12px;border-radius:16px;background:var(--surface);font-weight:900;color:var(--muted)}.order-hint{margin-top:10px;font-size:12px;color:var(--muted)}.order-list{margin-top:14px;display:flex;flex-direction:column;gap:8px}.order-item{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 12px;border-radius:12px;border:2px solid var(--line);background:var(--white);text-align:left;font-size:14px;font-weight:700;line-height:1.4}.order-item.picked{border-color:var(--green);background:var(--green-soft)}.order-num{flex:none;width:24px;height:24px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:900}.order-num.empty{background:var(--surface);color:var(--muted)}.feedback{border-radius:16px;padding:14px 16px;margin-bottom:12px;border:2px solid transparent}.feedback.correct{background:var(--green-soft);border-color:#b7e58c}.feedback.wrong{background:var(--red-soft);border-color:#ffc2c2}.feedback-title{font-size:16px;font-weight:900;display:flex;align-items:center;gap:6px}.feedback.correct .feedback-title{color:#2b6b00}.feedback.wrong .feedback-title{color:var(--red-dark)}.feedback-text{margin-top:6px;font-size:13px;line-height:1.55;color:var(--ink-soft)}.feedback-text .en{display:block;margin-top:4px;color:var(--muted);font-size:12px}.hearts-empty{text-align:center;padding:30px 10px}.hearts-empty h2{margin-top:16px}.hearts-empty p{margin-top:8px;color:var(--muted);font-size:14px}.results{padding-top:26px;text-align:center}.score-ring{width:148px;height:148px;margin:18px auto 0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) 0 var(--score),#e9efe6 var(--score) 100%);position:relative}.score-ring:after{content:"";position:absolute;inset:12px;border-radius:50%;background:var(--white)}.score-ring.fail{background:conic-gradient(var(--orange) 0 var(--score),#e9efe6 var(--score) 100%)}.score-value{position:relative;z-index:1;font-size:34px;font-weight:900;letter-spacing:-.02em}.score-label{position:relative;z-index:1;font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}.result-title{margin-top:18px}.result-sub{margin-top:6px;color:var(--muted);font-size:14px}.result-stats{margin-top:20px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat{border-radius:14px;background:var(--surface);padding:10px 6px}.stat-value{font-size:19px;font-weight:900}.stat-label{margin-top:2px;font-size:10px;font-weight:800;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}.skill-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:10px}.chip{display:inline-flex;align-items:center;height:26px;padding:0 9px;border-radius:999px;background:var(--surface);color:var(--ink-soft);font-size:11px;font-weight:800}.chip.warn{background:var(--orange-soft);color:#a35b00}.hub-grid{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.hub-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:132px;padding:14px;border-radius:18px;border:2px solid var(--line);border-bottom-width:4px;background:var(--white);text-align:left}.hub-card:active{transform:translateY(2px)}.hub-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--green-soft);color:var(--green-dark)}.hub-icon.blue{background:var(--blue-soft);color:#0a7ea8}.hub-icon.orange{background:var(--orange-soft);color:#a35b00}.hub-icon.red{background:var(--red-soft);color:var(--red-dark)}.hub-title{font-size:15px;font-weight:900}.hub-sub{font-size:11px;color:var(--muted);line-height:1.45}.skill-list{margin-top:14px;display:flex;flex-direction:column;gap:10px}.skill-row{padding:10px 12px;border-radius:12px;background:var(--surface)}.skill-row .row{justify-content:space-between}.skill-name{font-size:12px;font-weight:800;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink-soft)}.tabs{display:flex;gap:6px;background:var(--surface);padding:4px;border-radius:12px;margin-top:14px}.tab{flex:1;min-height:44px;border-radius:9px;font-size:13px;font-weight:800;color:var(--muted)}.tab.active{background:var(--white);color:var(--ink);box-shadow:0 1px 3px #00000014}.leader-list{margin-top:16px;display:flex;flex-direction:column;gap:8px}.leader-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;border:2px solid var(--line);background:var(--white)}.leader-row.me{border-color:var(--green);background:var(--green-soft)}.leader-rank{width:30px;font-size:15px;font-weight:900;color:var(--muted);text-align:center}.leader-row.me .leader-rank{color:var(--green-dark)}.leader-name{flex:1;font-weight:800;font-size:15px}.leader-xp{font-weight:900;color:var(--green-dark);font-size:14px}.profile-head{display:flex;align-items:center;gap:14px;margin-top:20px}.avatar{width:64px;height:64px;border-radius:50%;background:var(--green-soft);color:var(--green-dark);display:grid;place-items:center;font-size:26px;font-weight:900}.stat-grid{margin-top:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.certificate{margin-top:18px;border-radius:18px;border:2px solid #cdeeae;background:linear-gradient(160deg,#fbfff6,#fff);padding:22px;text-align:center}.certificate .seal{width:64px;height:64px;margin:0 auto 12px;border-radius:50%;border:3px solid var(--green);display:grid;place-items:center;color:var(--green-dark);font-weight:900;font-size:11px;letter-spacing:.08em}.certificate h2{font-size:20px}.certificate .name{margin-top:14px;font-size:24px;font-weight:900;letter-spacing:-.01em}.certificate .meta{margin-top:10px;font-size:12px;color:var(--muted);line-height:1.6}.bottom-nav{position:fixed;left:50%;transform:translate(-50%);bottom:0;width:100%;max-width:430px;z-index:20;display:flex;background:var(--white);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.nav-item{flex:1;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;font-weight:800;color:#a7aea9;letter-spacing:.02em}.nav-item.active{color:var(--green-dark)}.nav-item svg{width:22px;height:22px}.splash{min-height:100dvh;display:grid;place-items:center;color:var(--muted);gap:10px}.empty{text-align:center;padding:36px 16px;color:var(--muted)}.empty h3{color:var(--ink);margin-top:12px}.section-title{margin-top:24px;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.divider{height:1px;background:var(--line);margin:18px 0}.footer-note{margin:22px 0 10px;text-align:center;font-size:11px;color:var(--muted);line-height:1.6}.admin-row{padding:12px;border:1px solid var(--line);border-radius:12px;margin-bottom:8px;font-size:13px}.admin-row .name{font-weight:800}.admin-row .meta{color:var(--muted);font-size:11px;margin-top:2px}.pass{color:var(--green-dark);font-weight:900}.fail{color:var(--red-dark);font-weight:900}.loading-bar{height:4px;border-radius:999px;background:linear-gradient(90deg,#e9efe6,#cdeeae,#e9efe6);background-size:200% 100%;animation:shimmer 1.1s linear infinite}@keyframes shimmer{to{background-position:-200% 0}}.term-link{display:inline;padding:0 1px;border-bottom:1px dashed var(--green-dark);color:var(--green-dark);font-weight:800;text-align:left;line-height:inherit}.term-link:active{background:var(--green-soft)}.speak-btn{margin-left:8px;padding:3px 8px;border-radius:999px;border:1.5px solid var(--line);font-size:11px;font-weight:800;color:var(--ink-soft);vertical-align:middle}.speak-btn:active{background:var(--surface)}.sheet-backdrop{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}.sheet-scrim{position:absolute;inset:0;background:#141c126b;border:none}.sheet{position:relative;width:100%;max-width:430px;max-height:82dvh;display:flex;flex-direction:column;background:var(--white);border-radius:22px 22px 0 0;padding:16px var(--pad) calc(18px + env(safe-area-inset-bottom));box-shadow:0 -12px 40px #1828142e;animation:sheet-in var(--motion-base) var(--ease-pop)}@keyframes sheet-in{0%{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px}.sheet-title{font-size:15px;font-weight:900}.sheet-search{width:100%;height:46px;border-radius:12px;border:2px solid var(--line);padding:0 12px;font-size:16px;background:var(--surface)}.glossary-list{margin-top:10px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding-bottom:8px}.glossary-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:52px;padding:9px 12px;border-radius:12px;border:1.5px solid var(--line);background:var(--white);text-align:left}.glossary-row:active{background:var(--green-soft)}.glossary-row-en{font-size:14px;font-weight:800}.glossary-row-zh{font-size:12px;color:var(--muted)}.glossary-card{padding:6px 2px 0;overflow-y:auto}.glossary-en{font-size:20px;font-weight:900;letter-spacing:-.01em}.glossary-zh{margin-top:4px;font-size:15px;font-weight:800;color:var(--green-dark)}.glossary-def{margin-top:10px;font-size:13px;line-height:1.6;color:var(--ink-soft)}.glossary-formula{margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--surface);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--ink)}.vocab-progress{height:8px;border-radius:999px;background:var(--line);overflow:hidden;margin-top:14px}.vocab-progress .lesson-progress-fill{height:100%;border-radius:999px;background:var(--green);transition:width var(--motion-base) ease}.flashcard{margin-top:16px;min-height:250px;border-radius:20px;border:2px solid var(--line);background:var(--white);padding:20px;display:flex;flex-direction:column;justify-content:center;text-align:center;box-shadow:0 8px #0000000a}.flashcard-tag{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:11px;font-weight:900;letter-spacing:.06em;color:var(--green-dark);text-transform:uppercase}.flashcard-front{margin-top:14px;font-size:26px;font-weight:900;letter-spacing:-.02em;line-height:1.3}.flashcard-back{margin-top:16px;border-top:1px dashed var(--line);padding-top:14px}.flashcard-answer{font-size:20px;font-weight:900;color:var(--green-dark)}.streak-days{margin-top:10px;display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.streak-day{display:flex;flex-direction:column;align-items:center;gap:4px}.streak-dot{width:34px;height:34px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;color:var(--green-dark);background:var(--white)}.streak-day.on .streak-dot{border-color:var(--green);background:var(--green-soft)}.badge-grid{margin-top:10px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.badge{min-height:64px;border-radius:14px;border:2px dashed var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:800;color:var(--muted)}.badge.earned{border-style:solid;border-color:#cdeeae;background:var(--green-soft);color:var(--green-dark)}.list-row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 12px;border-radius:14px;border:2px solid var(--line);background:var(--white);text-align:left}.list-row:active{background:var(--surface)}.list-row .grow{display:flex;flex-direction:column;gap:2px}.locked-card{border-color:var(--line);background:var(--surface)}.review-node{display:flex;align-items:center;gap:12px;width:100%;margin-top:10px;padding:12px;border-radius:16px;border:2px dashed var(--blue);background:var(--blue-soft);text-align:left}.review-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--white);color:var(--blue-dark);flex:none}.review-node .node-title{color:var(--blue-dark)}.ok-box{margin-top:12px;padding:10px 12px;border-radius:12px;background:var(--green-soft);color:var(--green-dark);font-size:13px;font-weight:700}.filter-row{display:flex;gap:8px;margin-top:14px}.filter-input{flex:1;min-width:0;height:44px;border-radius:12px;border:2px solid var(--line);background:var(--surface);padding:0 10px;font-size:16px}.dist-grid{margin-top:10px;display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.dist-cell{border-radius:12px;border:2px solid var(--line);padding:8px 4px;text-align:center}.dist-value{font-size:16px;font-weight:900}.confirm-backdrop{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:24px}.confirm-scrim{position:absolute;inset:0;border:none;background:#141c1273}.confirm-card{position:relative;width:100%;max-width:360px;background:var(--white);border-radius:20px;padding:22px;box-shadow:0 20px 60px #1428103d;animation:sheet-in var(--motion-fast) var(--ease-pop)}.confirm-card h2{font-size:19px}.term-link{padding:3px 1px;margin:-3px 0}.speak-btn{min-height:34px;padding:5px 10px;font-size:12px}.sheet-search{min-height:48px;height:auto;padding:12px}.chapter-title-en{display:inline;font-weight:600}.vocab-body{display:flex;flex-direction:column}.vocab-body .flashcard{flex:1}.filter-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.filter-actions .btn{flex:none}@media(max-width:380px){.chapter-title-en{display:block;margin-top:2px}}.confetti{position:fixed;inset:0;z-index:40;pointer-events:none;overflow:hidden}.confetti span{position:absolute;top:-18px;width:9px;height:14px;border-radius:2px;animation-name:confetti-fall;animation-timing-function:cubic-bezier(.3,.7,.4,1);animation-fill-mode:forwards}@keyframes confetti-fall{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(92dvh) rotate(540deg);opacity:.9}}.recap-list{margin-top:10px;display:flex;flex-direction:column;gap:8px}.recap-card{border-radius:14px;border:2px solid var(--line);background:var(--white);padding:12px}.recap-q{font-size:13px;font-weight:800}.recap-a{margin-top:6px;font-size:12px;line-height:1.55;color:var(--ink-soft)}.recap-a .en{display:block;margin-top:2px;color:var(--muted)}.switch{flex:none;width:44px;height:26px;border-radius:999px;background:var(--line);position:relative;transition:background var(--motion-fast) ease}.switch:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--white);box-shadow:0 1px 3px #0000002e;transition:transform var(--motion-fast) ease}.switch.on{background:var(--green)}.switch.on:after{transform:translate(18px)}:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:6px}.lesson-title:focus{outline:none}@media print{body{background:#fff}.screen,.app-frame{padding:0;max-width:none;box-shadow:none}.scroll-body{overflow:visible;padding:0}.btn,.footer-note,.bottom-nav{display:none!important}.certificate{border:2px solid #cdeeae;margin:24px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
