:root{--paper:#f7f7f0;--panel:#fffef9;--ink:#263e34;--green:#285447;--muted:#80867a;--line:#e4e6da;--accent:#cc704f;--mint:#edf2e7;--serif:'Noto Serif SC','Songti SC','SimSun',serif;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.45}a{color:var(--green);text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c57443;outline-offset:4px}button{border:0}svg{flex-shrink:0}button svg{pointer-events:none}.icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.shell{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:222px;border-right:1px solid var(--line);background:#fbfbf5;padding:36px 20px 20px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:10px;padding:0 13px}.brand-stamp{width:43px;height:47px;background:var(--green);color:#fff8e6;border-radius:13px 13px 5px 13px;font-family:var(--serif);font-size:30px;display:grid;place-items:center}.brand-name{font-family:var(--serif);font-size:25px;letter-spacing:4px;font-weight:600}.brand-name small{font-family:inherit;display:block;font-size:8px;letter-spacing:2px;margin-top:3px;color:#8a8c7c}.nav-label{font-size:10px;letter-spacing:2px;color:#999d8f;margin:51px 14px 16px}.nav{display:flex;flex-direction:column;gap:9px}.nav button{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:9px;background:transparent;color:#767e71;text-align:left;font-size:13px;transition:.2s}.nav button.active{background:#e9eee3;color:var(--green);font-weight:600}.nav button.active::after{content:'';width:5px;height:5px;background:var(--green);border-radius:50%;margin-left:auto}.nav button:hover{background:#eef0e7}.sidebar-note{margin:auto 14px 28px;padding-top:35px}.sidebar-note .sprout{width:44px;height:44px;color:#94a580;margin-bottom:8px}.sidebar-note p{font-family:var(--serif);font-size:13px;line-height:1.9;color:#8c947e;margin:0}.sidebar-note small{font-size:9px;letter-spacing:1px;color:#a0a68f}.user-box{border-top:1px solid var(--line);padding:19px 9px 0;display:flex;align-items:center;gap:10px}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#e9e3ce;color:#827653;font-family:var(--serif);font-size:19px}.user-text{font-size:12px;line-height:1.5;min-width:0}.user-text b{display:block;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-text small{font-size:10px;color:var(--muted)}.user-box button{margin-left:auto;background:none;padding:5px}.main{grid-column:2;padding:0 42px 35px;max-width:1570px;width:100%;margin:0 auto}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.breadcrumb{display:flex;align-items:center;gap:10px;color:#7f8778;font-size:12px}.breadcrumb svg{width:17px}.breadcrumb span:last-child{color:var(--ink)}.top-tools{display:flex;align-items:center;gap:18px}.version{font-size:10px;color:#919886;border:1px solid #dfe5d3;border-radius:20px;padding:5px 9px;letter-spacing:.6px}.language{background:transparent;border:0;color:#6e786a;font-size:12px;padding:6px}.hero{display:flex;align-items:center;justify-content:space-between;padding:36px 0 31px;gap:20px}.eyebrow{color:#8a987c;letter-spacing:2.1px;font-size:10px;display:flex;align-items:center;gap:9px}.eyebrow::before{content:'';display:block;width:20px;height:1px;background:#a1ad91}.hero h1{font-family:var(--serif);font-size:clamp(27px,2.6vw,39px);font-weight:500;letter-spacing:1px;line-height:1.5;margin:13px 0 10px}.hero h1 em{font-style:normal;color:#75926c}.hero p{color:#8c9084;line-height:1.8;font-size:12px;margin:0}.hero-art{position:relative;width:228px;height:153px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.hero-art::before{content:'';position:absolute;background:#e9ecdf;border-radius:50%;width:143px;height:143px}.hero-art img{position:absolute;width:124px;height:124px;border-radius:50%;object-fit:cover;left:9px;top:8px;mix-blend-mode:multiply;transform:rotate(-7deg)}.hero-character{position:absolute;font-size:86px;font-family:var(--serif);right:22px;top:23px;color:#395c44;line-height:1}.hero-art .tiny-seal{position:absolute;right:0;bottom:17px;border:1px solid #ba7b60;color:#b2775c;font-family:var(--serif);font-size:10px;writing-mode:vertical-rl;padding:4px 2px}.hero-art .orbit{position:absolute;width:204px;height:123px;border:1px solid #d9dfce;border-radius:50%;transform:rotate(-19deg)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 266px;gap:25px;align-items:start}.lesson-tabs{display:flex;align-items:center;gap:8px;margin-bottom:20px;flex-wrap:wrap}.lesson-tab{font-size:12px;background:transparent;padding:9px 14px;border:1px solid transparent;border-radius:22px;color:#8b9183}.lesson-tab.active{color:var(--green);background:#eaf0e3;border-color:#dde6d3}.lesson-tab span{font-size:10px;opacity:.65;margin-left:5px}.play-area{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:23px 25px 18px;position:relative;overflow:hidden}.play-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.play-heading h2{font-size:16px;font-weight:600;margin:0}.play-heading p{font-size:11px;color:#929889;margin:8px 0 0;line-height:1.5}.quiet-button{background:transparent;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px;border-radius:7px;padding:8px 10px;color:#7a8573;white-space:nowrap}.quiet-button svg{width:15px;height:15px}.quiet-button:hover{background:#f1f3e9}.round-meta{display:flex;align-items:center;gap:10px;font-size:10px;color:#8b9482;margin:24px 0 20px}.progress-track{height:4px;flex:1;background:#edf0e5;border-radius:5px;overflow:hidden}.progress-fill{height:100%;background:#829771;transition:width .4s}.round-meta strong{font-size:11px;font-weight:500;color:#6d7d60}.column-heads{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}.column-heads div{display:flex;justify-content:center;align-items:center;gap:6px;font-size:11px;color:#8a907f}.column-heads span{width:18px;height:18px;font-size:9px;display:grid;place-items:center;background:#eff0e6;border-radius:50%;color:#899477}.board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.card{position:relative;min-width:0;height:130px;border:1px solid #e5e6d9;border-radius:10px;background:#f9f6e9;overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s,opacity .25s;display:flex;align-items:center;justify-content:center;padding:10px}.card:hover{transform:translateY(-3px);border-color:#a4b18e;box-shadow:0 5px 14px #3749350d}.card img{height:115px;width:119px;max-width:100%;object-fit:contain;mix-blend-mode:multiply;pointer-events:none}.card.modern{background:#fcfcf5}.card .hanzi{font-family:var(--serif);font-size:58px;line-height:1.3;color:#354634;font-weight:500}.card .card-seal{position:absolute;bottom:8px;right:9px;color:#c6cbb9;font-size:7px;letter-spacing:1px}.card.selected{border:2px solid var(--green);box-shadow:0 0 0 3px #2854470b;background:#eef2e5;transform:translateY(-2px)}.card.selected::after{content:'✓';position:absolute;right:7px;top:6px;width:18px;height:18px;border-radius:50%;color:white;background:var(--green);display:grid;place-items:center;font-size:10px}.card.hinted{animation:hint-pulse 1s ease-in-out 2;border-color:#cc8d53}.card.wrong{border-color:#b76248;background:#f6e4d9;animation:shake .3s}.card.correct{border-color:#80a173;background:#e8efde;transform:scale(.96)}.card.matched{opacity:.28;border-style:dashed;background:#f3f4ec;pointer-events:none}.card.matched img,.card.matched .hanzi,.card.matched .card-seal{visibility:hidden}.card.matched::after{content:'✓';color:#829773;font-size:22px}.board-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:19px;min-height:29px}.feedback{font-size:11px;color:#8b9381;line-height:1.6}.feedback.good{color:var(--green)}.feedback.bad{color:#b36c50}.text-button{font-size:11px;background:transparent;color:#73846a;padding:5px 0;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.text-button .icon{width:14px;height:14px}.board-caption{font-size:9px;color:#a2a794;text-align:center;margin:13px 0 0;line-height:1.6}.right-column{padding-top:59px;display:flex;flex-direction:column;gap:17px}.story-panel{border:1px solid var(--line);background:#eef1e5;border-radius:14px;overflow:hidden;padding:23px 22px}.panel-eyebrow{font-size:9px;letter-spacing:1.7px;color:#8a957c}.story-title{display:flex;justify-content:space-between;align-items:center;margin:17px 0 4px}.story-hanzi{font-family:var(--serif);font-size:60px;line-height:1.3;font-weight:500}.round-icon{height:31px;width:31px;border-radius:50%;border:1px solid #d8e0cc;background:#f7f9ef;display:grid;place-items:center;color:#80916d}.round-icon .icon{width:16px;height:16px}.story-pinyin{font-size:12px;color:#7f8d70;letter-spacing:1px}.story-meaning{font-size:12px;color:#89947d;margin:6px 0 16px}.story-panel .divider{height:1px;background:#dde3d0}.story-panel p{font-size:12px;line-height:1.95;color:#78866b;margin:15px 0 10px}.source-small{font-size:9px;color:#9ba28d;line-height:1.7}.story-panel .text-button{margin-top:14px;font-size:10px}.goal-panel{background:#fbfbf5;border:1px solid var(--line);border-radius:13px;padding:20px}.goal-head{display:flex;justify-content:space-between;align-items:center;font-size:12px}.goal-head .icon{width:17px;height:17px;color:#a2a77c}.goal-count{font-size:26px;font-family:var(--serif);margin:15px 0 10px}.goal-count span{font-size:11px;color:#9b9f8e;font-family:initial;margin-left:5px}.goal-panel p{font-size:10px;color:#9b9e8f;margin:12px 0 0;line-height:1.7}.tip-card{padding:0 10px;color:#929a86;font-size:10px;line-height:1.8;display:flex;gap:9px}.tip-card .icon{width:16px;height:16px;margin-top:3px}.page-footer{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#a6aa99;margin-top:28px;letter-spacing:.5px}.page-footer span:first-child{display:flex;align-items:center;gap:6px}.page-footer svg{width:12px;height:12px}.view-heading{padding:35px 0 24px;display:flex;justify-content:space-between;align-items:end;gap:20px}.view-heading h1{font-family:var(--serif);font-weight:500;font-size:31px;margin:0 0 10px}.view-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.8}.search{display:flex;gap:8px;align-items:center;border:1px solid var(--line);background:var(--panel);padding:10px 14px;border-radius:9px}.search input{width:200px;max-width:100%;border:0;background:none;outline:none;font-size:12px;color:var(--ink)}.search .icon{color:#98a28c;width:17px}.filter-row{display:flex;gap:8px;margin:0 0 22px;flex-wrap:wrap}.filter-row button{font-size:11px;padding:8px 13px;background:#eeefe5;border-radius:20px;color:#87917a}.filter-row button.active{background:var(--green);color:white}.atlas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.atlas-card{background:var(--panel);border:1px solid var(--line);border-radius:13px;overflow:hidden;position:relative}.atlas-card>button{width:100%;background:none;text-align:left;padding:20px;display:block}.atlas-images{display:flex;align-items:center;justify-content:center;gap:9px;margin-bottom:15px}.atlas-images img{width:36%;aspect-ratio:1;object-fit:contain;mix-blend-mode:multiply}.atlas-images span{color:#bbc2ac;font-size:15px}.atlas-bottom{display:flex;align-items:center;justify-content:space-between}.atlas-bottom strong{font-family:var(--serif);font-size:32px;font-weight:500}.atlas-bottom div{font-size:12px;text-align:right;color:#89917e;line-height:1.7}.atlas-bottom small{display:block;font-size:10px}.atlas-card .favorite-button{position:absolute;right:12px;top:12px;background:#fffdf4db;border-radius:50%;padding:6px;display:grid;place-items:center;color:#a5ac96}.favorite-button .icon{width:16px;height:16px}.favorite-button.on{color:#b08545}.favorite-button.on svg{fill:#eadbb2}.empty-state{text-align:center;padding:70px 20px;border:1px dashed #d7deca;border-radius:12px;color:#929d85;font-size:13px;line-height:2;grid-column:1/-1}.empty-state .icon{display:block;margin:0 auto 15px;width:30px;height:30px}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:#fffcef;padding:12px 20px;border-radius:8px;font-size:12px;min-height:40px}.primary-button:hover{background:#1f453a}.primary-button .icon{width:16px;height:16px}.secondary-button{display:inline-flex;gap:8px;align-items:center;justify-content:center;background:#eef1e5;border:1px solid #dce2cf;padding:11px 18px;border-radius:8px;font-size:12px;color:var(--green)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.stat-box{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:22px}.stat-box small{display:block;color:#8a947d;font-size:11px}.stat-box b{display:block;font-family:var(--serif);font-size:32px;font-weight:500;margin:13px 0 2px}.stat-box span{font-size:10px;color:#a0a58f}.record-panel{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:20px}.record-panel h2{font-size:15px;margin:0 0 18px;font-weight:500}.record-panel p{font-size:12px;line-height:1.9;color:#89947c}.character-chips{display:flex;flex-wrap:wrap;gap:9px}.character-chip{background:#eff2e7;border:1px solid #e2e7d8;border-radius:8px;font-family:var(--serif);font-size:23px;padding:9px 16px}.character-chip small{font:10px sans-serif;display:block;color:#9ba28d;text-align:center;margin-top:4px}.history-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);padding:15px 0;font-size:12px}.history-row:first-of-type{border-top:0}.history-row small{color:#9aa28c;display:block;font-size:10px;margin-top:5px}.history-row b{font-family:var(--serif);font-size:21px;font-weight:500;color:#7a8b67}.info-banner{background:#edf1e5;padding:15px 18px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px;font-size:12px;line-height:1.8;color:#7d8c6d}.source-list{display:grid;grid-template-columns:1fr 1fr;gap:18px}.source-list .record-panel{margin:0}.source-list ul{font-size:12px;color:#849076;line-height:2;padding-left:20px}.source-list a{font-size:11px}.source-links{display:flex;flex-wrap:wrap;gap:10px}.source-links a{padding:5px 10px;border:1px solid var(--line);border-radius:5px}.loading{min-height:100vh;display:grid;place-items:center;font-family:var(--serif);color:var(--green);font-size:20px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:#284c40;color:#fff9e7;padding:13px 23px;border-radius:9px;box-shadow:0 10px 30px #18302420;z-index:100;font-size:12px;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;text-align:center;line-height:1.7}#toast.visible{transform:translate(-50%,0);opacity:1}dialog{border:1px solid #dfe4d5;background:var(--panel);color:var(--ink);border-radius:18px;padding:32px;max-width:min(610px,calc(100vw - 32px));width:100%;max-height:90vh;overflow:auto;box-shadow:0 30px 100px #253d3025}dialog::backdrop{background:#1d352d66;backdrop-filter:blur(4px)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.modal-header h2{font-family:var(--serif);font-weight:500;font-size:24px;margin:0}.close-modal{background:#eff1e7;border-radius:50%;height:30px;width:30px;display:grid;place-items:center;color:#80916d}.close-modal .icon{height:15px;width:15px}.modal-lead{font-size:12px;line-height:1.9;color:#8a947e}.detail-timeline{display:flex;align-items:center;gap:10px;margin:25px 0}.detail-step{flex:1;min-width:0;text-align:center;background:#f6f4e9;border:1px solid var(--line);border-radius:10px;padding:12px 5px}.detail-step img{width:100%;max-width:126px;aspect-ratio:1;object-fit:contain;mix-blend-mode:multiply}.detail-step .hanzi{font:70px var(--serif);height:126px;display:flex;align-items:center;justify-content:center}.detail-step small{font-size:9px;color:#949d85;display:block;margin-top:7px}.timeline-arrow{color:#aeb69c}.detail-pinyin{color:#879874;font-size:14px;letter-spacing:1px;display:flex;gap:12px;align-items:center}.detail-pinyin button{background:transparent;display:flex;color:#82936c}.detail-description{font-size:14px;line-height:2.1}.detail-source{background:#f0f2e7;border-radius:9px;padding:15px;font-size:11px;color:#879278;line-height:1.9}.detail-source a{display:block;margin:5px 0}.detail-source small{font-size:10px;color:#9aa28b}.modal-actions{display:flex;gap:10px;margin-top:23px;flex-wrap:wrap}.guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0}.guide-step{background:#f0f2e7;border-radius:10px;padding:17px 12px;font-size:12px;color:#89937d;line-height:1.8}.guide-step b{font:32px var(--serif);display:block;margin-bottom:8px;color:#718765}.guide-step strong{display:block;color:var(--ink);font-size:12px;font-weight:500}.form-tabs{display:flex;gap:15px;border-bottom:1px solid var(--line);margin:20px 0}.form-tabs button{background:none;color:#8e9881;padding:10px 5px;border-bottom:2px solid transparent;font-size:13px}.form-tabs button.active{color:var(--green);border-color:var(--green)}.auth-form{display:flex;flex-direction:column;gap:14px}.auth-form label{font-size:12px;display:flex;flex-direction:column;gap:7px;color:#7e8b70}.auth-form input{padding:12px;border:1px solid #dfe5d3;background:#fafbf3;border-radius:7px;color:var(--ink);min-width:0}.form-error{color:#b36b51;font-size:11px;min-height:18px;line-height:1.7}.success-art{text-align:center;font-size:38px;margin:16px 0;color:#829772}.result-summary{text-align:center}.result-summary h3{font:25px var(--serif);font-weight:500;margin:9px 0}.result-summary p{font-size:12px;color:#919b82;line-height:1.8}.result-stats{display:flex;justify-content:space-around;background:#eef2e5;border-radius:12px;padding:20px;margin:23px 0}.result-stats b{display:block;font:27px var(--serif);margin-bottom:7px}.result-stats small{color:#8d987e;font-size:10px}.export-row{display:flex;gap:10px;flex-wrap:wrap}.mobile-brand{display:none}.error-screen{max-width:600px;margin:100px auto;padding:30px;font-size:14px;line-height:2}.goal-select{border:1px solid var(--line);border-radius:6px;padding:7px;background:var(--panel);font-size:11px;color:var(--green)}
.case-badge{display:inline-block;font-size:9px;font-weight:400;line-height:1.6;background:#e2e9d6;color:#6d805c;border:1px solid #d5dfc7;border-radius:20px;padding:2px 8px;margin-left:9px}
.trial-banner{margin:20px 0 0;background:#f4ead5;color:#887047;font-size:11px}.trial-banner strong{font-weight:600}.trial-banner .text-button{color:#887047}
@keyframes hint-pulse{50%{box-shadow:0 0 0 4px #d5a57150;transform:translateY(-3px)}}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media(min-width:1500px){.main{padding-left:55px;padding-right:55px}.card{height:145px}.card img{height:129px;width:135px}.workspace{grid-template-columns:minmax(0,1fr) 285px;gap:30px}.story-panel{padding:25px}}
@media(max-width:1200px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px;padding-left:13px;padding-right:13px}.main{padding-left:27px;padding-right:27px}.workspace{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.play-area{padding:20px 17px 15px}.board{gap:9px}.column-heads{gap:9px}.card{height:114px}.card img{height:100px;width:102px}.card .hanzi{font-size:50px}.story-panel{padding:20px 17px}.hero-art{width:195px}.hero-character{right:5px}.atlas-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr)}.right-column{padding-top:0;display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.story-panel{padding:20px}.story-title{margin:7px 0 0}.story-hanzi{font-size:42px}.story-panel p{margin:10px 0}.story-meaning{margin:3px 0 10px}.story-panel .text-button{margin-top:6px}.tip-card{display:none}.card{height:131px}.card img{height:117px;width:120px}.hero-art{width:170px}.hero h1{font-size:28px}.hero-art img{width:111px;height:111px;left:0;top:12px}.hero-art .orbit{width:160px}.hero-character{font-size:69px;top:36px;right:0}.hero-art .tiny-seal{right:-8px;bottom:7px}.atlas-grid{grid-template-columns:repeat(2,1fr)}.view-heading{align-items:start;flex-direction:column}.stats-grid{grid-template-columns:repeat(2,1fr)}.source-list{grid-template-columns:1fr}}
@media(max-width:700px){.shell{display:block}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;height:67px;width:auto;padding:0;background:#fbfcf6f5;backdrop-filter:blur(12px);border-right:0;border-top:1px solid var(--line)}.brand,.nav-label,.sidebar-note,.user-box{display:none}.nav{flex-direction:row;gap:0;justify-content:space-around;height:100%}.nav button{flex:1;flex-direction:column;justify-content:center;gap:4px;font-size:9px;padding:8px 3px;border-radius:0}.nav button .icon{width:19px;height:19px}.nav button.active{background:transparent}.nav button.active::after{display:none}.main{padding:0 20px 95px}.topbar{height:70px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font:21px var(--serif);letter-spacing:2px}.mobile-brand .brand-stamp{width:28px;height:31px;border-radius:8px 8px 3px 8px;font-size:21px}.top-tools{gap:7px}.version{display:none}.hero{padding:27px 0 25px;gap:8px}.hero h1{font-size:26px;letter-spacing:0;line-height:1.6;margin-top:11px}.hero p{font-size:10px;max-width:240px}.eyebrow{font-size:8px;letter-spacing:1.4px}.hero-art{width:108px;height:120px}.hero-art::before{width:105px;height:105px}.hero-art img{width:80px;height:80px;left:0;top:14px}.hero-character{font-size:52px;right:0;top:41px}.hero-art .orbit{width:115px;height:83px}.hero-art .tiny-seal{right:0;bottom:0;font-size:7px}.lesson-tabs{gap:2px;margin-bottom:14px}.lesson-tab{padding:8px 10px;font-size:10px}.lesson-tab span{font-size:8px}.play-area{padding:19px 12px 14px;border-radius:12px}.play-heading h2{font-size:14px}.play-heading p{font-size:10px;max-width:215px}.play-heading .quiet-button{padding:7px;font-size:10px}.round-meta{margin:19px 0 17px}.board,.column-heads{gap:8px}.column-heads div{font-size:9px;gap:4px}.column-heads span{width:15px;height:15px;font-size:8px}.card{height:112px;padding:5px;border-radius:8px}.card img{width:97px;height:100px}.card .hanzi{font-size:48px}.card .card-seal{font-size:6px;right:5px;bottom:5px}.board-footer{margin-top:15px;align-items:start}.feedback{font-size:10px;max-width:230px}.board-footer .text-button{font-size:10px;padding-top:1px}.board-caption{font-size:8px}.right-column{grid-template-columns:1fr 1fr;gap:12px}.story-panel{padding:17px 15px}.panel-eyebrow{font-size:8px;letter-spacing:1px}.story-panel p{font-size:11px}.story-hanzi{font-size:40px}.story-pinyin,.story-meaning{font-size:10px}.story-panel .source-small{font-size:8px}.goal-panel{padding:17px 15px}.goal-head{font-size:11px}.goal-count{font-size:24px}.goal-count span{font-size:9px}.goal-panel p{font-size:9px}.page-footer{font-size:8px;line-height:1.7;flex-direction:column;margin-top:20px;gap:4px}.atlas-grid{gap:12px}.atlas-card>button{padding:17px 12px}.atlas-bottom div{font-size:10px}.atlas-bottom strong{font-size:28px}.atlas-images{gap:3px}.view-heading h1{font-size:28px}.view-heading p{font-size:11px}.search{width:100%}.search input{width:100%}.filter-row{gap:6px}.filter-row button{font-size:10px;padding:7px 10px}.stats-grid{gap:12px}.stat-box{padding:18px}.record-panel{padding:19px}.record-panel h2{font-size:14px}.record-panel p{font-size:11px}.info-banner{font-size:11px;align-items:start;flex-direction:column}.source-list{gap:13px}dialog{padding:24px 20px}.modal-header h2{font-size:22px}.detail-timeline{gap:5px}.detail-step .hanzi{font-size:55px;height:auto;aspect-ratio:1}.detail-step small{font-size:8px}.guide-steps{gap:7px}.guide-step{padding:12px 10px;font-size:10px}.guide-step strong{font-size:11px}.guide-step b{font-size:25px}.modal-lead{font-size:11px}.detail-description{font-size:13px}.guide-steps{margin:20px 0}.history-row{font-size:11px}.history-row b{font-size:18px}.history-row small{font-size:9px}.export-row .quiet-button{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep the learner's language choice visible on narrow screens. */
.language-control{display:flex;align-items:center;gap:3px;padding:2px 5px;border:1px solid #dfe5d3;border-radius:10px;background:var(--panel)}
.language-label{display:flex;align-items:center;gap:4px;background:none;font-size:11px;padding:7px 4px;color:var(--green)}
.language{min-height:34px;max-width:110px;cursor:pointer}
.language-options{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}
.top-tools{gap:10px;flex-shrink:0}
.version{max-width:145px;text-align:center;line-height:1.5}
.brand-name{min-width:0;overflow-wrap:anywhere}
html:not([lang^="zh"]) .brand-name{font-size:25px;letter-spacing:.5px}
html:not([lang^="zh"]) .brand-name small{font:9px/1.6 sans-serif;letter-spacing:.2px;max-width:116px}
html:not([lang^="zh"]) .panel-eyebrow{letter-spacing:.6px;line-height:1.7}
.lesson-tabs{flex-wrap:wrap}
.play-heading{gap:12px}
.play-heading>div{min-width:0}
.play-heading h2{line-height:1.5}
.story-panel,.goal-panel,.hero>div{min-width:0}
.card img{max-width:100%}
.card .card-seal{max-width:90%;font-size:6px;text-align:right;line-height:1.4}
.source-links a,.detail-source a{overflow-wrap:anywhere}
@media(max-width:700px){
  .topbar{gap:8px}.top-tools{gap:6px}.language-label span{display:none}
  .language{font-size:12px;padding:6px 3px;max-width:96px;min-width:80px}
  .mobile-brand{font-size:20px;letter-spacing:.2px;flex-shrink:0;gap:6px}
  .mobile-brand .brand-stamp{width:27px;height:30px}
  .hero>div:first-child{flex:1}.hero h1{font-size:25px;line-height:1.4;overflow-wrap:normal}
  .hero-art{flex:0 0 88px}.hero-art .tiny-seal{font-size:6px;letter-spacing:0;max-width:85px;text-align:center}
  .lesson-tab{line-height:1.5;padding:8px 9px}.play-heading{flex-wrap:wrap;align-items:start}
  .play-heading h2{font-size:16px}.play-heading p{font-size:11px;max-width:100%}
  .play-heading .quiet-button{font-size:11px}.column-heads div{line-height:1.5}
  .board-footer{flex-wrap:wrap}.feedback{font-size:11px;max-width:100%}
  .right-column{grid-template-columns:1fr}.story-panel p,.goal-panel p{font-size:12px}
  .detail-source,.modal-lead{font-size:12px}.page-footer{font-size:10px}
}
.language-label .icon{width:16px;height:16px}
.language-settings-panel .icon{width:17px;height:17px}

/* Mobile web and installed web app share the same learning layout. */
.mobile-game-title,.mobile-game-sub{display:none}
.install-steps{padding-left:22px;font-size:13px;line-height:1.9;color:var(--muted)}
.install-steps li{margin:12px 0}
.offline-banner{margin:14px 0}.mobile-app-panel [data-pwa-status]{line-height:1.8}
body{min-height:100vh;min-height:100svh}
button,a,input,select{touch-action:manipulation}
@media(max-width:700px),(max-width:900px) and (max-height:600px){
  :root{--mobile-nav-height:64px;--mobile-card-height:clamp(68px,10.5svh,88px)}
  html,body{width:100%;min-width:0}
  .shell{display:block;min-height:100svh}
  .sidebar{position:fixed;inset:auto 0 0;height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px));width:100%;padding:0 0 env(safe-area-inset-bottom,0px);border:0;border-top:1px solid var(--line);background:#fbfcf6f5;backdrop-filter:blur(12px);z-index:30}
  .brand,.nav-label,.sidebar-note,.user-box{display:none}
  .nav{display:flex;flex-direction:row;justify-content:space-around;gap:0;height:var(--mobile-nav-height)}
  .nav button{flex:1;min-width:0;min-height:48px;flex-direction:column;justify-content:center;gap:4px;font-size:10px;line-height:1.25;padding:7px 3px;text-align:center;border-radius:0}
  .nav button .icon{width:21px;height:21px}.nav button.active{background:transparent}.nav button.active::after{display:none}
  .main{width:100%;min-width:0;max-width:none;padding:0 max(14px,env(safe-area-inset-left,0px)) calc(88px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-right,0px));margin:0}
  .topbar{position:sticky;top:0;z-index:20;height:calc(60px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);background:var(--paper);gap:6px}
  .mobile-brand{display:flex;align-items:center;gap:6px;font-size:20px;letter-spacing:.1px;flex-shrink:0}
  .mobile-brand .brand-stamp{width:28px;height:32px;font-size:22px}
  .breadcrumb,.version{display:none}.top-tools{gap:5px;flex-shrink:0}
  .language-control{gap:0;padding:0 2px}.language-label{width:44px;min-height:44px;justify-content:center;padding:0}
  .language-label span{display:none}.language-label .icon{width:19px;height:19px}
  .language{font-size:16px;min-width:76px;max-width:87px;min-height:44px;padding:4px 0}
  .round-icon{width:44px;height:44px;min-height:44px;flex-shrink:0}.round-icon .icon{width:20px;height:20px}
  .hero{display:none}.workspace{display:flex;flex-direction:column;gap:14px}.workspace>div{min-width:0;width:100%}
  .lesson-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;scrollbar-width:thin;max-width:100%;padding:5px 0 3px;margin:5px 0 8px;scroll-snap-type:x proximity}
  .lesson-tab{flex:0 0 auto;min-height:44px;white-space:nowrap;scroll-snap-align:start;font-size:12px;padding:8px 12px}
  .lesson-tab span{font-size:9px}.play-area{padding:12px;border-radius:12px;min-width:0}
  .play-heading{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}.play-heading>div{flex:1;min-width:0}
  .desktop-game-title,.desktop-game-sub{display:none}.mobile-game-title,.mobile-game-sub{display:block}
  .play-heading h2{font-size:16px;line-height:1.35;margin:0}.play-heading p{font-size:11px;line-height:1.5;max-width:100%;margin:4px 0 0}
  .play-heading .quiet-button{font-size:0;min-width:44px;width:44px;height:44px;min-height:44px;padding:10px;flex-shrink:0}
  .play-heading .quiet-button .icon{width:22px;height:22px}
  .round-meta{margin:10px 0 10px;min-height:20px;font-size:10px;gap:7px}
  .round-meta .progress-track{min-width:20px}.round-meta strong{font-size:10px}.round-meta #selection-count{font-size:10px}
  .column-heads{margin-bottom:7px;gap:6px}.column-heads div{font-size:9px;line-height:1.3;min-width:0;gap:3px;justify-content:center}
  .column-heads span{display:none}.board{gap:6px}
  .card{height:var(--mobile-card-height);min-height:68px;padding:5px;border-radius:9px}
  .card img{height:calc(var(--mobile-card-height) - 12px);width:100%;max-width:100%;object-fit:contain}
  .card .hanzi{font-size:43px;line-height:1}.card .card-seal{display:none}
  .board-footer{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;min-height:44px;margin-top:8px}
  .feedback{font-size:11px;line-height:1.5;min-width:0;flex:1;max-width:none}
  .board-footer .text-button{min-height:44px;font-size:11px;padding:5px 0;flex-shrink:0}
  .board-caption{font-size:9px;line-height:1.5;margin-top:8px}.text-button,.quiet-button,.secondary-button,.primary-button{min-height:44px}
  .right-column{padding-top:0;display:flex;flex-direction:column;gap:12px}.story-panel,.goal-panel{padding:16px}
  .atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-card>button{min-width:0}.atlas-bottom{gap:4px}
  .atlas-card .favorite-button{min-height:44px;width:44px;height:44px;right:4px;top:4px}
  .search input,.auth-form input,.goal-select{font-size:16px;min-height:44px}.search{padding:4px 10px;min-width:0;width:100%}
  .view-heading{padding:20px 0;align-items:start;flex-direction:column;gap:14px}.view-heading h1{font-size:26px;line-height:1.4}
  .filter-row button{min-height:44px;font-size:12px}.form-tabs button{min-height:44px}
  dialog{max-width:calc(100vw - 24px);max-height:calc(100svh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);padding:20px 16px;overscroll-behavior:contain}
  .close-modal{width:44px;height:44px;min-height:44px;flex-shrink:0}.modal-header h2{font-size:21px;min-width:0}.modal-header{gap:8px}
  .detail-timeline{gap:4px}.detail-step{padding:9px 4px}.detail-step small{font-size:9px}.detail-description{font-size:14px;line-height:1.9}
  .modal-actions>*{flex:1 1 auto}.install-steps{font-size:13px}.language-options>*{min-width:88px;min-height:44px}
  .info-banner{font-size:12px;align-items:start;flex-direction:column}.trial-banner{margin-top:16px}.page-footer{font-size:10px}
  #toast{bottom:calc(76px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 24px);font-size:12px;z-index:100}
}
@media(max-width:340px){.mobile-name{display:none}}
/* Ziyu's own feature introduction and app support. */
.feature-teaser{padding:20px;border:1px solid var(--line);border-radius:14px;background:#f2eee1}
.feature-teaser small,.feature-intro small{font-size:10px;color:#71816b;letter-spacing:.6px}
.feature-teaser h3{font-family:var(--serif);font-size:21px;font-weight:500;line-height:1.4;margin:12px 0 8px}
.feature-teaser p,.feature-teaser button{font-size:12px;line-height:1.8;white-space:normal;text-align:left}
.feature-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px;background:#eaf0e3;border:1px solid #dce5d2;border-radius:16px}
.feature-intro>div{min-width:0}.feature-intro h2{font-family:var(--serif);font-size:32px;font-weight:500;margin:12px 0;line-height:1.4}
.feature-intro p{max-width:600px;font-size:14px;line-height:1.9;color:#717d66}.feature-symbols{display:flex;gap:8px;flex-shrink:0}
.feature-symbols span{display:grid;place-items:center;font-family:var(--serif);font-size:40px;width:67px;height:85px;background:#fffdf3;border:1px solid #d6dfca;border-radius:11px;transform:rotate(-5deg)}
.feature-symbols span:nth-child(2){transform:rotate(5deg) translateY(-12px)}.feature-symbols span:nth-child(3){transform:rotate(8deg)}
.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}.feature-grid article{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);min-width:0}
.feature-grid .icon{color:#7e956d}.feature-grid h3{font-size:15px;line-height:1.5}.feature-grid p,.feature-note{font-size:12px;line-height:1.9;color:#818a77}.feature-note{margin:16px 0 28px}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .record-panel{min-width:0}.android-panel h2{display:flex;align-items:center;gap:9px}
.apk-download,.android-panel>a{display:inline-flex;text-decoration:none;align-items:center;gap:8px;min-height:44px}.release-version{font-weight:600}.checksum{font-size:11px;line-height:1.8;margin-top:16px}.checksum summary{cursor:pointer;padding:8px 0;min-height:44px}.checksum code{display:block;overflow-wrap:anywhere;padding:10px;background:#f0f1e8;border-radius:7px}
.install-steps{padding-left:20px;font-size:13px;line-height:1.9;color:#7c8571}.install-steps li+li{margin-top:12px}.share-actions{display:flex;flex-wrap:wrap;gap:12px}.share-link{display:block;font-size:12px;line-height:1.8;overflow-wrap:anywhere;margin-top:16px}.share-link-input{width:100%;font-size:16px;padding:12px;border:1px solid var(--line);border-radius:8px}
@media(max-width:1100px){.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-symbols{display:none}}
@media(max-width:700px),(max-width:900px) and (max-height:600px){.feature-intro{padding:22px 18px}.feature-intro h2{font-size:27px}.feature-intro p{font-size:13px}.feature-grid{gap:10px;margin-top:16px}.feature-grid article{padding:14px}.feature-grid h3{font-size:14px}.feature-grid p{font-size:12px}.feature-note{font-size:11px}.settings-grid{display:block}.android-panel .primary-button{white-space:normal}.share-actions>*{flex:1 1 auto}.feature-teaser{padding:18px}.nav button span{overflow-wrap:anywhere}}
/* Script selection and four-card matching share the same stable target IDs. */
.match-controls{display:flex;gap:12px;margin:0 0 15px;flex-wrap:wrap}.match-controls label{display:flex;align-items:center;gap:8px;font-size:11px;color:#78866d;min-width:0}.match-controls select{min-height:40px;border:1px solid var(--line);border-radius:8px;background:#fcfcf5;padding:8px;color:var(--green);max-width:100%;font-size:12px}
.quad-play .board,.quad-play .column-heads{grid-template-columns:repeat(4,minmax(0,1fr))}.card.written-card{background:#fcfcf5}.card.written-card .hanzi{font-size:52px}.quad-play .card img{width:100%}.quad-play .card{height:112px}.quad-play .card .hanzi{font-size:45px}.quad-play .column-heads div{font-size:10px;text-align:center}
.script-pair{display:flex;align-items:center;gap:14px;padding:12px 0;flex-wrap:wrap}.script-pair>span:not(:nth-child(2)){font-family:var(--serif);font-size:29px}.script-pair small{font-size:11px;color:#89947b}.story-section{margin-top:12px}.story-section p{margin:8px 0 0;font-size:13px;line-height:1.8}.asset-credits{font-size:11px;line-height:1.8;margin:16px 0}.asset-credits summary{cursor:pointer;min-height:44px;padding:10px 0}.asset-credits p{overflow-wrap:anywhere}
.detail-timeline.quad-detail{grid-template-columns:1fr 13px 1fr 13px 1fr 13px 1fr}.quad-detail .detail-step{min-width:0}.quad-detail .detail-step .hanzi{font-size:51px}.quad-detail .detail-step small{font-size:10px;overflow-wrap:anywhere}
@media(max-width:700px),(max-width:900px) and (max-height:600px){.match-controls{gap:8px;flex-wrap:nowrap;margin:0 0 10px}.match-controls label{flex:1;flex-direction:column;align-items:stretch;gap:4px;font-size:10px;min-width:0}.match-controls select{font-size:16px;min-height:44px;width:100%;padding:6px;min-width:0}.quad-play .card{height:var(--mobile-card-height);padding:4px}.card.written-card .hanzi{font-size:43px}.quad-play .card .hanzi{font-size:36px}.quad-play .column-heads div{font-size:9px;overflow-wrap:anywhere;min-width:0}.quad-play .column-heads{gap:6px}.quad-play .play-heading p{font-size:10px}.quad-detail .detail-step .hanzi{font-size:37px}.quad-detail .detail-step small{font-size:8px}.detail-timeline.quad-detail{grid-template-columns:1fr 6px 1fr 6px 1fr 6px 1fr}.quad-detail .detail-step{padding:9px 2px}.quad-detail .timeline-arrow{font-size:10px}.script-pair{gap:10px}}
.asset-badges{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 7px}.asset-badge{font-size:10px;padding:5px 9px;border-radius:20px;background:#edf1e6;border:1px solid #dce5d1;color:#607751;line-height:1.6}.asset-badge.ai-asset{background:#f6eddc;border-color:#e7d5b2;color:#8a7046}.asset-review-note{margin:7px 0 16px}.generation-brief{margin-top:10px}.generation-brief p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8}
.asset-credit{margin:12px 0;overflow-wrap:anywhere}.asset-credit+.asset-credit{padding-top:12px;border-top:1px solid var(--line)}
