@charset "UTF-8";
:root{--bg:#f4f7f3;--paper:#fffef9;--ink:#2d4e44;--muted:#677c70;--green:#557e6a;--line:#dbe5db;--peach:#dfaa87;--lilac:#c9c4dd;--yellow:#edcd89;--shadow:0 8px 28px #294e3d08;--round:26px;font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-synthesis:none;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:16px;line-height:1.6}body.soft{--bg:#f0f4eb;--paper:#fffcf1}body[data-theme=pig]{--green:#946675;--peach:#dba6b0;--lilac:#c8bfd6}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;color:inherit;border:0;background:transparent;min-height:48px}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9678b5;outline-offset:5px}a{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:38px;letter-spacing:.02em;line-height:1.45;font-weight:750}h2{font-size:23px;line-height:1.45}em{font-style:normal;color:var(--green)}small{font-size:13px}button:not(:disabled){transition:transform .15s,background .15s,box-shadow .15s}button:active:not(:disabled){transform:translateY(2px)}.layout{max-width:1600px;margin:auto;min-height:100vh;display:grid;grid-template-columns:130px minmax(0,1fr)}.sidebar{border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;position:sticky;top:0;height:100vh;padding:35px 10px 24px}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-weight:800;line-height:1.35;font-size:16px;letter-spacing:2px}.brand-mark{display:grid;place-items:center;width:42px;height:48px;border-radius:16px 16px 20px 20px;background:#e6c992;font-family:"Kaiti SC","KaiTi",serif;font-size:28px;letter-spacing:0;transform:rotate(-6deg)}nav{margin-top:50px;width:100%;display:grid;gap:14px}.nav-button{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 3px;gap:3px;border-radius:20px;width:100%;color:var(--muted);font-size:13px}.nav-button>span{font-size:30px;line-height:1.3;font-family:Georgia,serif}.nav-button>b{font-weight:500;letter-spacing:.03em}.nav-button.active{background:#e0eade;color:var(--ink)}[data-theme=pig] .nav-button.active{background:#efdee1}.side-bottom{margin-top:auto;text-align:center}.sprout{writing-mode:vertical-rl;margin:20px auto;font-family:"Kaiti SC","KaiTi",serif;letter-spacing:4px;color:#7d927e}.parent-link{display:flex;align-items:center;gap:5px;justify-content:center;font-size:13px;color:var(--muted)}main{padding:24px 44px 18px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;gap:12px}.topbar>div:first-child{display:flex;align-items:center;gap:12px}.eyebrow{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.08em}.tiny-flower{color:#b89568;font-size:24px}.top-actions{display:flex;align-items:center;gap:14px}.status-pill,.star-pill{display:flex;align-items:center;gap:8px;padding:7px 13px;border-radius:30px;font-size:12px;min-height:37px;border:1px solid var(--line)}.status-pill i,.status-dot{width:7px;height:7px;display:inline-block;background:#bc9767;border-radius:50%}.status-pill i.green,.status-dot.ready{background:#62876b}.star-pill{background:#f5e9c9;color:#705d37;font-size:17px;border:0;min-width:68px;justify-content:center}.welcome{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}.welcome h1{font-size:40px;margin:9px 0 13px}.subtitle{color:var(--muted);font-size:16px;margin-top:10px;line-height:1.8}.theme-switch{display:flex;background:#e6eae2;padding:4px;border-radius:15px;flex-shrink:0;margin-bottom:5px}.theme-switch button{font-size:13px;padding:8px 14px;min-height:38px;border-radius:11px;color:var(--muted)}.theme-switch button.selected{background:var(--paper);color:var(--ink);box-shadow:0 2px 9px #38574e0c}.hero{display:grid;grid-template-columns:1.05fr 1.3fr;position:relative;isolation:isolate;min-height:345px;border-radius:30px;background:#e2eddf;overflow:hidden;border:1px solid #d6e3d2}.hero-content{padding:31px 0 29px 30px;position:relative;z-index:1}.tag{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:9px;background:#fffdf4b3;color:#61775c;font-size:12px;font-weight:600;letter-spacing:.04em}.hero h2{margin:15px 0 10px;font-size:26px}.hero p{font-size:14px;max-width:310px;color:#526b55;margin-bottom:21px}.primary{background:var(--green);color:white;border-radius:14px;padding:13px 24px;font-weight:650;min-height:54px;font-size:17px;box-shadow:0 5px 0 #2b4c3e13;display:inline-flex;align-items:center;justify-content:center;gap:18px}.primary:hover:not(:disabled){filter:brightness(1.06)}.primary span{font-size:23px;font-weight:400}.secondary{border:1.5px solid #cbd8ca;background:var(--paper);border-radius:13px;padding:11px 19px;font-size:16px;font-weight:550}.text-button{color:var(--green);font-size:14px;font-weight:600;padding:8px 4px}.today-chips{display:flex;align-items:center;gap:7px;margin-top:24px;flex-wrap:wrap}.today-chips>span{background:#f9fbefb5;width:31px;height:34px;border-radius:8px;display:grid;place-items:center;font-family:"Kaiti SC","KaiTi",serif;font-size:21px}.today-chips small{font-size:11px;color:#61775c;margin-left:3px}.hero-art{position:relative;min-width:0}.island-art{position:absolute;left:-4%;top:6%;width:111%;height:95%;overflow:visible}.hero-mascot{position:absolute;bottom:13px;right:8px;width:35%;max-width:180px;filter:drop-shadow(0 9px 4px #2a4e3b10)}.mascot{width:100%;height:auto;display:block}.hero-mascot .mascot{animation:hello-in .8s ease-out both}.floating-note{position:absolute;right:80px;top:25px;background:#fffaf0e6;border-radius:14px 14px 2px 14px;padding:9px 13px;font-size:13px;transform:rotate(4deg);box-shadow:var(--shadow)}.floating-note span{color:#c6a365;margin-left:10px}.dashboard-bottom{display:grid;grid-template-columns:2fr 1fr;gap:24px;margin-top:25px}.journey,.growth-card{background:var(--paper);border-radius:24px;border:1px solid var(--line);padding:23px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading h2{font-size:18px}.section-heading>span{font-size:12px;color:var(--muted)}.path-stations{display:flex;align-items:center;justify-content:space-between;margin-top:19px;gap:4px}.path-stations button{display:flex;flex-direction:column;align-items:center;padding:2px;gap:8px}.station{width:54px;height:56px;display:grid;place-items:center;border-radius:19px;font-family:"Kaiti SC","KaiTi",serif;font-size:28px;position:relative}.green-station{background:#dce8d6}.peach-station{background:#f0d8c7}.lilac-station{background:#e3dfee}.yellow-station{background:#f3e5bd}.path-stations b{font-size:12px;font-weight:650;white-space:nowrap}.path-stations small{font-size:10px;color:var(--muted)}.path-dot{color:#b8c8b3;align-self:flex-start;margin-top:20px;letter-spacing:2px}.growth-card{background:#efe9db}.growth-number{font-size:43px;margin:12px 0 8px;line-height:1.3;font-family:Georgia,serif}.growth-number small{font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:12px;margin-left:10px;color:#706b58}.growth-track{height:7px;background:#ddd9ca;border-radius:20px;overflow:hidden}.growth-track i{display:block;background:#b49c68;height:100%;border-radius:20px}.growth-card p{font-size:12px;margin-top:12px;color:#706b58}.invite-strip{display:flex;align-items:center;gap:20px;margin-top:25px;background:#eaf0e5;padding:20px 25px;border-radius:20px}.leaf-symbol{font-size:42px;color:#8ba68a;line-height:1}.invite-strip p{font-size:13px;color:#61765d;flex:1}.invite-strip b{font-size:14px;color:var(--ink);font-weight:550}.invite-strip button{white-space:nowrap}footer{font-size:11px;text-align:center;color:#81917f;letter-spacing:2px;padding-top:30px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:22px 0 25px}.page-heading h1{margin-top:5px}.search-box{display:flex;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:0 13px;min-width:250px}.search-box span{font-size:28px}.search-box input{width:100%;background:transparent;border:0;padding:12px;font-size:14px;min-height:48px;color:var(--ink);outline-offset:1px}.filters{display:flex;gap:8px;flex-wrap:wrap}.filters button{border:1px solid var(--line);border-radius:12px;padding:10px 15px;font-size:13px;background:var(--paper);min-height:44px}.filters button.selected{background:var(--green);color:white;border-color:var(--green)}.muted{font-size:13px;color:var(--muted);line-height:1.8}.library-note{margin:17px 0 20px}.card-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.letter-tile{background:var(--paper);border:1px solid var(--line);border-radius:20px;display:flex;flex-direction:column;align-items:center;padding:17px 10px 12px;position:relative;min-height:215px;box-shadow:var(--shadow)}.letter-tile:hover{box-shadow:0 8px 24px #244c3910}.tile-tag{font-size:10px;color:#7c7866;background:#f0eddf;padding:2px 6px;border-radius:6px;align-self:flex-end;margin-bottom:9px}.tile-tag.known{background:#dde8d9;color:#4f7154}.letter-tile>small{font-size:16px;color:var(--muted)}.letter-tile>strong{font-family:"Kaiti SC","STKaiti","KaiTi",serif;font-size:62px;line-height:1.35;font-weight:500}.tile-word{font-size:16px;letter-spacing:3px}.tile-detail{font-size:10px;color:var(--muted);border-top:1px solid var(--line);margin-top:13px;padding-top:9px;display:flex;width:100%;justify-content:space-between}.tile-detail i{font-style:normal;font-size:14px}.empty{padding:70px 20px;text-align:center}.illustration{width:100%;display:block;height:auto}.lesson-top{display:flex;justify-content:space-between;align-items:center;margin:5px 0 20px;gap:10px}.lesson-top>span{font-size:14px;color:var(--muted)}.back-button{font-size:17px;font-weight:600;padding:0 5px}.step-track{display:flex;justify-content:center;gap:30px;margin:14px 0 23px}.step-track>span{display:flex;align-items:center;gap:7px;color:#7e8c80;font-size:13px}.step-track i{font-style:normal;width:27px;height:27px;border:1px solid #b8c8b7;border-radius:50%;display:grid;place-items:center;font-size:12px}.step-track .current{color:var(--ink);font-weight:700}.step-track .current i{background:var(--green);color:white;border-color:var(--green)}.step-track .done i{background:#e0e9d9;color:#557b53;border-color:#e0e9d9}.lesson{background:var(--paper);border:1px solid var(--line);border-radius:30px;padding:27px 32px;box-shadow:var(--shadow)}.lesson-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.lesson-heading h1{font-size:26px}.lesson-flower{font-size:36px;color:#ccb77f}.learn-split{display:grid;grid-template-columns:1.1fr 1fr;gap:34px;align-items:center;min-height:350px}.picture-card{background:#edf5ee;border-radius:30px;overflow:hidden;position:relative}.picture-card .illustration{padding:12px 4px 0}.picture-caption{display:block;text-align:center;font-size:23px;letter-spacing:8px;padding:0 0 21px;font-weight:600}.character-card{text-align:center;padding:0 5px}.pinyin{font-size:26px;color:#69856e;display:block;letter-spacing:3px}.big-char{font-family:"Kaiti SC","STKaiti","KaiTi",serif;font-size:130px;font-weight:400;line-height:1.3;display:block;margin:0 auto 8px;padding:0 15px;min-width:150px}.sound{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#e8eedf;border-radius:13px;padding:11px 18px;min-height:50px;font-size:17px;font-weight:600;color:#4c6e50}.sound>span{font-size:24px;line-height:1}.sound.subtle{font-size:12px;background:transparent;padding:6px 11px;min-height:42px;font-weight:400}.sound.subtle>span{font-size:18px}.sound.playing{box-shadow:0 0 0 3px #a7bea4;background:#d9e6d2}.hint{font-size:16px;color:var(--muted);margin:20px 0 5px;line-height:1.9}.center{text-align:center}.lesson-controls{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:22px;margin-top:25px;gap:16px}.lesson-controls>span{font-size:12px;color:var(--muted)}.word-stage{display:grid;grid-template-columns:1fr 1.2fr;gap:30px;align-items:center;min-height:350px}.word-pairs{display:grid;gap:20px}.word-card{border:1px solid #dce3d2;border-radius:24px;background:#f0f2e7;padding:22px 15px;min-height:130px;display:flex;flex-direction:column;align-items:center;gap:10px}.word-card>span{display:flex;gap:18px;justify-content:center}.word-card i{font-family:"Kaiti SC","KaiTi",serif;font-size:52px;font-style:normal;line-height:1.3}.focus-char{color:#a26447!important;background:#f4e5cd;border-radius:7px}.word-card i.focus-char{padding:0 9px}.word-card small{color:var(--muted);font-size:12px}.word-pairs>p{font-size:14px;text-align:center;color:var(--muted)}.parts-intro{display:flex;justify-content:center;gap:15px;align-items:center}.parts-intro .sound{font-size:14px;padding:7px 15px;min-height:40px}.assembly{display:flex;justify-content:center;align-items:center;gap:30px;margin:24px auto;min-height:160px}.part-slots{display:flex;gap:10px;border:2px dashed #c1ceb9;padding:12px;border-radius:20px;min-width:210px;justify-content:center}.part-slots.vertical{flex-direction:column;gap:4px;min-width:110px}.part-slot{width:85px;min-height:84px;border-radius:13px;background:#edf1e5;display:grid;place-items:center;font-family:"Kaiti SC","KaiTi",serif;font-size:62px;line-height:1.2}.part-slots.vertical .part-slot{height:72px;min-height:72px;font-size:53px}.part-slot small{font-family:sans-serif;font-size:13px;color:var(--muted)}.part-slot.filled{background:#e0e9d6}.equals{font-size:45px;color:#9ca68c}.assembled{font-size:132px;font-family:"Kaiti SC","KaiTi",serif;min-width:160px;text-align:center;color:var(--green)}.part-bank{display:flex;justify-content:center;gap:20px}.part-bank button{border:2px solid #d3c7ac;background:#f8edce;border-radius:17px;font-size:52px;font-family:"Kaiti SC","KaiTi",serif;width:90px;height:90px}.part-bank button:disabled{opacity:.2}.whole-char{display:grid;grid-template-columns:1.15fr 1fr;gap:30px;align-items:center}.whole-char>div:last-child{text-align:center}.whole-char strong{display:block;font-size:110px;font-family:"Kaiti SC","KaiTi",serif;font-weight:400}.whole-char p{margin-bottom:15px;color:var(--muted)}.sentence-stage{display:grid;grid-template-columns:.9fr 1.3fr;gap:35px;align-items:center;min-height:350px}.sentence{font-size:34px;line-height:2.1;letter-spacing:3px;margin:20px 0 25px;font-family:"Kaiti SC","KaiTi","PingFang SC",serif}.sentence .focus-char{padding:3px}.sentence-stage .muted{margin-top:20px}.quiz-intro{text-align:center;margin:25px 0}.sound.large{font-size:22px;padding:14px 28px;border-radius:17px;min-height:64px}.quiz-intro p{margin-top:15px;color:var(--muted)}.quiz-options{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;max-width:730px;margin:30px auto}.quiz-options button{background:#f2f2e5;border:2px solid #d6ddc8;border-radius:24px;font-size:83px;font-family:"Kaiti SC","KaiTi",serif;aspect-ratio:1;min-height:120px}.quiz-options button.correct{background:#dcebd7;border-color:#6c976c;opacity:1}.quiz-options button.wrong{background:#f0e0d9;opacity:.5}.feedback{min-height:35px;text-align:center;color:var(--muted);font-size:17px}.feedback.success{color:#557a4c;font-weight:600}.radical-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.radical-family{background:var(--paper);border:1px solid var(--line);padding:24px;border-radius:24px}.radical-title{display:flex;gap:20px;align-items:center;margin-bottom:20px}.radical-title>b{display:grid;place-items:center;width:78px;height:80px;background:#e5ead9;border-radius:18px;font-family:"Kaiti SC","KaiTi",serif;font-size:48px;font-weight:400}.radical-title h2{font-size:20px}.radical-title .sound{padding-left:0}.family-letters{display:flex;gap:10px;flex-wrap:wrap}.family-letters button{background:#f3f0e6;border-radius:14px;min-width:70px;padding:9px 12px;font-family:"Kaiti SC","KaiTi",serif;font-size:34px;line-height:1.3}.family-letters small{display:block;font-family:sans-serif;font-size:10px;color:var(--muted);margin-top:7px}.notice{background:#e9eee2;border:1px solid #d6e0cf;border-radius:15px;padding:15px 20px;margin:22px 0;font-size:14px}.notice.danger{background:#f2e0ce;border-color:#d5b694}.story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.story-cover{border:1px solid var(--line);border-radius:26px;overflow:hidden;background:var(--paper);padding:0;text-align:left;display:flex;flex-direction:column;align-items:stretch}.story-cover .illustration{padding:11px 11px 0}.story-cover>div{padding:20px 23px 23px}.story-cover h2{font-size:21px;margin:9px 0 13px}.story-cover p{font-size:13px;color:var(--muted);margin-bottom:19px}.story-cover .eyebrow{font-size:10px}.story-reader{background:var(--paper);border:1px solid var(--line);border-radius:30px;padding:35px;display:grid;grid-template-columns:1fr 1.1fr;gap:35px;align-items:center;min-height:410px}.story-text .sentence{font-size:32px;line-height:2}.story-text .muted{margin-top:20px}.reader-controls{display:flex;justify-content:space-between;margin:24px 0}.story-question{grid-column:1/-1;text-align:center}.story-question h2{font-size:26px;margin:18px 0}.story-answers{display:flex;justify-content:center;gap:20px;margin:30px 0}.story-answers>div{display:flex;flex-direction:column;gap:12px;min-width:130px}.story-answers .answer-audio{font-size:24px;min-height:80px}.story-question>p{color:var(--muted)}.star-total{font-size:36px;color:#9b7b40}.star-total small{display:block;text-align:center;font-size:12px;color:var(--muted)}.badge-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.badge{background:var(--paper);border:1px solid var(--line);border-radius:24px;text-align:center;padding:26px 12px}.badge-medal{width:88px;height:88px;border-radius:50%;background:#e8ce95;display:grid;place-items:center;font-size:39px;font-family:"Kaiti SC","KaiTi",serif;border:6px double #fff2cd;margin:0 auto 18px;color:#756242}.badge h2{font-size:16px}.badge p{font-size:12px;color:var(--muted);margin-top:10px}.badge.locked .badge-medal{background:#e6e7df;border-color:#f3f4ed;color:#a7ada0}.badge.locked h2{color:#7a8879}.finish-screen{text-align:center;padding:0 20px 30px;display:flex;align-items:center;flex-direction:column;gap:20px}.finish-screen>.mascot{height:245px;width:220px}.finish-screen h1{font-size:30px}.finish-screen p{color:var(--muted)}.finish-stars{color:#d0b074;letter-spacing:20px;font-size:40px}.settings-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:24px;align-items:start}.settings-panel{background:var(--paper);border:1px solid var(--line);border-radius:25px;padding:28px;margin-bottom:25px}.settings-panel h2{font-size:20px;margin-bottom:20px}.settings-panel h2:not(:first-child){margin-top:28px}.settings-panel label{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:14px;margin-bottom:20px}.settings-panel input:not([type=checkbox]),.settings-panel select,.modal input{max-width:190px;min-height:47px;padding:10px 12px;border:1px solid #c8d4c4;border-radius:10px;background:#f6f7ee;color:var(--ink);font-size:15px}.settings-panel .toggle input{accent-color:var(--green);width:24px;height:24px}.settings-panel .primary{margin:5px 0 18px}.settings-panel .muted{font-size:12px}.parent-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:25px 0}.parent-stats>div{background:#e7ecdf;border-radius:18px;padding:17px 20px;display:flex;flex-direction:column}.parent-stats strong{font-family:Georgia,serif;font-size:33px;font-weight:400}.parent-stats span{font-size:12px;color:var(--muted)}.button-row{display:flex;gap:12px;flex-wrap:wrap}.install-steps{padding-left:20px;margin:20px 0;font-size:13px;color:var(--muted)}.install-steps li{margin:8px 0}.offline-details{background:#eef1e7;border-radius:15px;padding:16px;margin-bottom:15px}.offline-details b{font-size:14px;margin-left:8px}.offline-details p{font-size:12px;color:var(--muted);margin-top:8px}.parent-explainer p{font-size:14px;color:var(--muted);margin:12px 0;line-height:1.9}.progress-table>div{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}.progress-table b{font-size:23px;font-family:"Kaiti SC","KaiTi",serif}.progress-table span{color:var(--muted)}.modal-backdrop{position:fixed;inset:0;background:#243c3370;backdrop-filter:blur(5px);z-index:20;display:flex;align-items:center;justify-content:center;padding:25px}.modal{background:var(--paper);padding:35px;border-radius:30px;max-width:520px;width:100%;box-shadow:0 20px 100px #1b342433;max-height:90dvh;overflow:auto}.modal h2{font-size:25px;margin-bottom:17px}.modal p{color:var(--muted);margin-bottom:20px;font-size:16px}.modal label{display:flex;flex-direction:column;gap:10px;margin:20px 0}.modal input{max-width:none;width:100%;font-size:22px}.modal .button-row{margin-top:24px}.rest-tree{max-width:250px;margin:0 auto 10px}.modal:has(.rest-tree){text-align:center}.modal:has(.rest-tree) h2{font-size:28px}.modal:has(.rest-tree) p{line-height:2}.boot{min-height:70vh;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:32px;color:#58795f}.boot span{font-size:15px;margin-top:15px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);border-radius:15px;background:#345747;color:#fffaf0;padding:14px 23px;box-shadow:0 10px 40px #23442d20;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:30;font-size:14px;max-width:calc(100% - 40px);width:max-content}#toast.visible{opacity:1;transform:translate(-50%,0)}.pop{animation:pop .4s ease-out}.wiggle{animation:wiggle .3s}.still *{animation:none!important;scroll-behavior:auto!important;transition:none!important}@keyframes pop{from{transform:scale(.8);opacity:.3}to{transform:scale(1);opacity:1}}@keyframes wiggle{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes hello-in{from{opacity:0;transform:translateY(20px) rotate(-5deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@media(min-width:1400px){main{padding-left:65px;padding-right:65px}.hero{min-height:380px}.hero-content{padding:42px}.welcome{margin-bottom:32px}.welcome h1{font-size:44px}.hero h2{font-size:30px}.hero p{font-size:16px}.hero-mascot{max-width:200px}.card-grid{grid-template-columns:repeat(6,1fr)}}
@media(max-width:1100px){.layout{grid-template-columns:106px minmax(0,1fr)}main{padding:20px 26px}.sidebar{padding:28px 8px 20px}.brand{font-size:14px;gap:6px}.brand-mark{width:34px;height:43px;font-size:25px}.welcome h1{font-size:34px}.theme-switch{flex-direction:column}.hero{grid-template-columns:1fr 1fr;min-height:334px}.hero-content{padding-left:24px}.hero h2{font-size:23px}.hero p{max-width:245px}.hero-art .island-art{width:130%;left:-13%;top:5%}.floating-note{right:35px;top:27px;font-size:12px}.hero-mascot{width:45%;right:-2px}.dashboard-bottom{gap:18px;grid-template-columns:1.9fr 1fr}.journey,.growth-card{padding:18px}.path-stations b{font-size:11px}.path-stations small{display:none}.station{width:47px;height:50px}.section-heading>span{display:none}.growth-number{font-size:35px}.growth-number small{display:block;margin:4px 0 8px}.card-grid{grid-template-columns:repeat(4,1fr)}.lesson{padding:24px}.learn-split{gap:24px}.lesson-heading h1{font-size:23px}.big-char{font-size:116px}.quiz-options{gap:15px}.quiz-options button{font-size:70px;min-height:100px}.story-grid{gap:15px}.story-cover>div{padding:15px}.story-cover h2{font-size:18px}.settings-grid{grid-template-columns:1fr}.story-reader{padding:25px;gap:20px}.story-text .sentence{font-size:28px}.parent-stats{gap:12px}.parent-stats>div{padding:15px}.badge-grid{gap:15px}.badge h2{font-size:14px}}
@media(max-width:850px){.layout{grid-template-columns:90px minmax(0,1fr)}.brand{flex-direction:column;text-align:center;font-size:12px}.brand>span:last-child{display:none}nav{margin-top:35px;gap:14px}.nav-button b{font-size:11px}.nav-button>span{font-size:28px}.sprout{font-size:12px}.parent-link span{font-size:11px}.topbar{margin-bottom:25px}.topbar .eyebrow{font-size:11px}.status-pill{font-size:10px;padding:7px 9px}.star-pill{font-size:15px;min-width:55px}.top-actions{gap:8px}.welcome h1{font-size:30px}.welcome .subtitle{font-size:13px}.hero{min-height:360px;grid-template-columns:1fr .85fr}.hero-content{padding:25px 0 25px 22px}.hero h2{font-size:21px;white-space:nowrap}.hero p{font-size:13px;max-width:230px}.hero-art .island-art{width:150%;left:-35%;top:12%}.hero-mascot{width:64%;bottom:20px;right:7px}.floating-note{right:9px;top:35px;font-size:10px}.hero-content .primary{padding:12px 18px;font-size:15px}.today-chips{max-width:200px}.today-chips small{width:100%;margin-top:5px}.dashboard-bottom{grid-template-columns:1fr}.growth-card{display:none}.path-stations{justify-content:space-around}.path-stations small{display:block}.section-heading>span{display:block}.invite-strip{padding:16px 18px;gap:14px}.invite-strip p,.invite-strip b{font-size:12px}.invite-strip button{font-size:12px}.page-heading{flex-direction:column;align-items:flex-start}.page-heading h1{font-size:30px}.search-box{width:100%}.card-grid{grid-template-columns:repeat(3,1fr);gap:12px}.letter-tile{min-height:206px}.step-track{gap:15px}.step-track>span{gap:5px;font-size:11px}.step-track i{width:24px;height:24px}.lesson{padding:21px}.learn-split{gap:20px;grid-template-columns:1fr 1fr;min-height:330px}.big-char{font-size:100px}.pinyin{font-size:24px}.hint{font-size:14px}.sound{font-size:15px;padding:10px 13px}.lesson-controls>span{display:none}.lesson-controls .primary,.lesson-controls .secondary{font-size:15px;padding:12px 17px}.lesson-heading h1{font-size:21px}.picture-caption{font-size:21px}.word-card i{font-size:40px}.word-stage{gap:18px}.word-pairs{gap:15px}.word-card{min-height:115px}.word-card>span{gap:12px}.sentence-stage{grid-template-columns:1fr}.sentence-picture{max-width:290px;margin:auto}.sentence-stage>div:last-child{text-align:center}.sentence{font-size:29px;margin:15px 0}.quiz-options{grid-template-columns:repeat(2,1fr);max-width:370px;margin:20px auto}.quiz-options button{min-height:105px;font-size:67px;aspect-ratio:auto;padding:5px}.radical-grid{gap:15px}.radical-family{padding:18px}.radical-title{gap:12px}.radical-title>b{width:65px;height:70px;font-size:41px}.radical-title h2{font-size:17px}.family-letters{gap:8px}.family-letters button{min-width:60px;padding:8px}.story-grid{grid-template-columns:1fr}.story-cover{display:grid;grid-template-columns:1fr 1.15fr;align-items:center}.story-cover>div{padding:20px}.story-reader{grid-template-columns:1fr;gap:10px}.story-scene{max-width:340px;margin:auto}.story-text{text-align:center}.story-text .sentence{font-size:28px}.story-answers{gap:10px}.story-answers>div{min-width:100px}.story-answers .answer-audio{font-size:20px}.badge-grid{grid-template-columns:repeat(2,1fr)}.badge h2{font-size:16px}.assembly{gap:15px}.part-slot{width:66px;font-size:52px;min-height:72px}.part-slots{min-width:160px;padding:9px}.assembled{min-width:110px;font-size:100px}.parent-stats{grid-template-columns:repeat(2,1fr)}.settings-panel{padding:24px}}
@media(max-width:600px){.layout{display:block;padding-bottom:95px}.sidebar{position:fixed;bottom:0;top:auto;width:100%;height:78px;height:calc(78px + env(safe-area-inset-bottom));padding:0 5px env(safe-area-inset-bottom);background:var(--paper);border-right:0;border-top:1px solid var(--line);z-index:10;display:block}.sidebar .brand,.side-bottom .sprout{display:none}.sidebar nav{display:flex;margin:0;gap:0;height:78px;padding-right:42px}.nav-button{font-size:10px;border-radius:0;padding:5px 2px;gap:0;min-width:0}.nav-button>span{font-size:25px}.nav-button>b{font-size:10px;white-space:nowrap}.side-bottom{position:absolute;right:5px;top:14px}.parent-link{font-size:25px;width:39px}.parent-link span{display:none}.nav-button.active{background:transparent;border-top:3px solid var(--green)}main{padding:16px 17px 20px}.topbar{margin-bottom:20px}.topbar .tiny-flower{display:none}.topbar .eyebrow{font-size:10px;letter-spacing:0}.top-actions{gap:6px}.status-pill{font-size:10px;min-height:32px}.star-pill{min-height:32px;font-size:13px;min-width:48px}.welcome{align-items:flex-start;gap:12px}.welcome h1{font-size:27px}.welcome .subtitle{font-size:12px;max-width:205px}.welcome .eyebrow{font-size:11px}.theme-switch{padding:3px;border-radius:12px;gap:1px}.theme-switch button{padding:7px 8px;font-size:10px;min-height:34px}.hero{display:block;min-height:420px}.hero-content{padding:22px;max-width:100%}.hero h2{font-size:22px}.hero p{max-width:250px;margin-bottom:15px}.hero .tag{font-size:10px}.hero-art{position:absolute;right:0;bottom:0;width:64%;height:225px;z-index:-1}.hero-art .island-art{width:130%;left:-15%;top:-4%}.hero-mascot{width:45%;right:4px;bottom:8px}.floating-note{right:15px;top:11px;font-size:10px}.today-chips{position:relative;margin-top:20px;max-width:160px;gap:5px}.today-chips>span{width:25px;height:31px;font-size:18px}.today-chips small{font-size:10px;max-width:100px}.dashboard-bottom{margin-top:18px}.journey{padding:18px 12px}.section-heading h2{font-size:16px}.section-heading>span{font-size:10px}.path-stations{gap:0}.path-stations small{display:none}.path-stations b{font-size:10px}.station{width:45px;height:48px;font-size:26px}.path-dot{font-size:11px}.invite-strip{margin-top:18px;flex-wrap:wrap;gap:12px}.invite-strip p{font-size:11px}.invite-strip button{margin-left:auto;min-height:30px}.invite-strip .leaf-symbol{font-size:34px}footer{font-size:9px;letter-spacing:1px;padding-top:22px}.page-heading h1{font-size:28px}.filters{gap:6px}.filters button{font-size:11px;min-height:40px;padding:8px 10px}.card-grid{gap:9px}.letter-tile{border-radius:16px;min-height:188px;padding:12px 8px 10px}.letter-tile>strong{font-size:53px}.letter-tile>small{font-size:14px}.tile-tag{font-size:9px}.tile-word{font-size:14px;letter-spacing:1px}.tile-detail{font-size:9px}.library-note{font-size:11px}.lesson-top{gap:5px}.lesson-top>span{font-size:12px}.back-button{font-size:15px}.lesson-top .text-button{font-size:12px}.step-track{gap:10px}.step-track>span{font-size:10px;flex-direction:column;gap:4px}.lesson{padding:18px 16px;border-radius:23px}.lesson-heading{margin-bottom:15px}.lesson-heading h1{font-size:20px}.lesson-flower{font-size:27px}.learn-split{grid-template-columns:1fr;gap:10px}.picture-card{max-width:270px;margin:auto;width:100%;border-radius:22px}.picture-caption{font-size:17px;padding-bottom:12px;letter-spacing:5px}.picture-card .illustration{max-height:188px}.character-card{display:grid;grid-template-columns:1fr 1fr;align-items:center;justify-items:center;column-gap:8px}.character-card .pinyin{grid-column:1;grid-row:1;font-size:20px}.character-card .big-char{grid-column:1;grid-row:2;font-size:86px;margin:0;min-width:0}.character-card>.sound:not(.subtle){grid-column:2;grid-row:2;white-space:nowrap;font-size:14px}.character-card .hint{grid-column:1/-1;font-size:13px;margin-top:8px}.character-card .sound.subtle{grid-column:1/-1}.lesson-controls{gap:12px;padding-top:18px;margin-top:18px}.lesson-controls button{font-size:14px!important;padding:10px 16px!important;min-height:48px}.word-stage{grid-template-columns:1fr}.small-picture{max-width:220px;margin:auto}.word-pairs{grid-template-columns:1fr 1fr;gap:10px}.word-card{padding:15px 8px;min-height:115px}.word-card i{font-size:34px}.word-card>span{gap:6px}.word-card small{font-size:10px}.word-pairs>p{grid-column:1/-1;font-size:12px}.assembly{gap:8px;margin:20px 0}.part-slots{gap:5px;min-width:135px;padding:7px}.part-slot{width:57px;font-size:46px;min-height:70px}.part-slot small{font-size:11px}.equals{font-size:28px}.assembled{font-size:80px;min-width:90px}.part-bank button{width:76px;height:76px;font-size:44px}.parts-intro .sound{font-size:12px}.whole-char{grid-template-columns:1fr;gap:5px}.whole-char .illustration{max-width:230px;margin:auto}.whole-char strong{font-size:90px}.whole-char p{font-size:14px}.sentence{font-size:27px;line-height:1.9;letter-spacing:2px}.sentence-stage{gap:18px}.sentence-picture{max-width:240px}.sentence-stage .muted{font-size:11px}.quiz-options{gap:12px}.quiz-options button{font-size:65px;padding:2px;min-height:105px}.sound.large{font-size:18px;min-height:58px;padding:12px 23px}.quiz-intro p{font-size:14px}.feedback{font-size:14px}.radical-grid{grid-template-columns:1fr}.radical-family{padding:21px}.radical-title{margin-bottom:15px}.family-letters button{min-width:58px}.story-cover{grid-template-columns:1fr 1fr}.story-cover h2{font-size:18px}.story-cover>div{padding:15px 12px}.story-cover .eyebrow{font-size:9px}.story-cover p{font-size:11px;margin-bottom:12px}.story-cover .text-button{font-size:12px}.story-reader{padding:22px 17px}.story-text .sentence{font-size:26px;line-height:1.9}.story-question h2{font-size:22px}.story-answers{gap:8px}.story-answers>div{min-width:0;flex:1}.story-answers .answer-audio{font-size:17px;padding:8px;min-height:75px;gap:4px}.story-answers .answer-audio>span{font-size:18px}.story-answers .secondary{font-size:12px;padding:8px}.badge-grid{gap:13px}.badge{padding:22px 8px}.badge h2{font-size:14px}.badge-medal{width:77px;height:77px;font-size:34px}.settings-panel{padding:22px 19px}.settings-panel label{font-size:12px;gap:10px}.settings-panel input:not([type=checkbox]),.settings-panel select{max-width:160px;font-size:13px;padding:9px}.parent-stats strong{font-size:30px}.parent-stats span{font-size:11px}.parent-explainer p{font-size:12px}.settings-panel h2{font-size:19px}.progress-table>div{font-size:11px}.modal{padding:28px 23px;border-radius:25px}.modal h2{font-size:23px}.modal p{font-size:14px}.modal .button-row button{font-size:14px;padding:11px 17px}.finish-screen{padding:15px 5px}.finish-screen h1{font-size:25px}.finish-screen p{font-size:14px}.finish-screen .primary{font-size:15px}.finish-screen>.mascot{height:220px}#toast{bottom:100px;font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Two independent worlds, each with its own cartoon companion. */
.two-worlds{display:grid;grid-template-columns:1fr 1fr;gap:23px;margin:24px 0}
.world-card{position:relative;overflow:hidden;isolation:isolate;text-align:left;padding:26px 28px;border-radius:28px;min-height:235px;border:1px solid #d9ded0;display:flex;align-items:center;box-shadow:var(--shadow)}
.world-card>div:first-child{position:relative;z-index:2;max-width:70%}.world-card h2{font-size:31px;margin:9px 0 12px;letter-spacing:.06em}.world-card p{font-size:14px;line-height:1.9;color:#5c7064}.world-card .eyebrow{font-size:11px;letter-spacing:.04em}.world-cta{display:inline-block;padding:9px 16px;margin-top:18px;font-size:14px;font-weight:700;border-radius:12px;background:#fffaf1c9}.literacy-world{background:#f0dfe2}.parts-world{background:#dce8e7}.world-buddy{position:absolute;right:8px;bottom:5px;width:34%;max-width:150px;z-index:1;transform-origin:50% 90%}.world-card:hover .world-buddy{animation:companion-greet .7s ease-in-out}.world-decoration{position:absolute;right:18px;top:10px;font-family:"Kaiti SC","KaiTi",serif;font-size:85px;color:#ffffff70;transform:rotate(10deg);z-index:0}.mini-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0;padding:12px 20px;background:#e8eddf;border-radius:17px;font-size:12px;color:var(--muted)}.mini-progress b{font-size:18px;color:var(--ink);margin:0 3px}.mini-progress .text-button{font-size:12px;min-height:32px}.buddy-guide{display:flex;align-items:flex-end;gap:18px;padding:0 24px;margin:8px 0 26px;min-height:155px}.guide-character{width:132px;flex-shrink:0;filter:drop-shadow(0 8px 3px #42553d0c)}.guide-speech{align-self:center;background:var(--paper);border:1px solid #dedfd2;border-radius:22px 22px 22px 4px;padding:15px 23px;position:relative;max-width:620px}.guide-speech>span{font-size:11px;font-weight:650;color:#8a6c64;letter-spacing:.04em}.guide-speech p{font-size:18px;margin:5px 0;color:var(--ink);line-height:1.75}.guide-speech .sound.subtle{padding:2px 0;min-height:35px}.buddy-guide.pup .guide-speech>span{color:#597b87}.buddy-guide.compact{min-height:83px;margin:0 0 16px;padding:0 10px;gap:14px}.compact .guide-character{width:68px}.compact .guide-speech{padding:10px 18px;border-radius:17px 17px 17px 3px;display:flex;align-items:center;gap:14px;max-width:none;flex:1}.compact .guide-speech>span{display:none}.compact .guide-speech p{font-size:13px;margin:0;flex:1}.compact .guide-speech .sound{font-size:11px;white-space:nowrap}.library-story-link{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:10px 0 24px;padding:13px 20px;border-radius:18px;background:#e8eddf;color:var(--muted);font-size:14px}.library-story-link button{font-size:13px;min-height:44px}.radical-prompt{display:block;font-family:"Kaiti SC","KaiTi",serif;font-size:70px;line-height:1.2;margin-bottom:12px;color:var(--green)}.story-scene{position:relative;isolation:isolate}.story-buddy{position:absolute;right:-4px;bottom:3px;width:29%;z-index:1;filter:drop-shadow(0 4px 4px #24493010)}[data-page=home] .hero{min-height:300px}[data-page=home] .hero-content{padding:27px 30px}[data-page=home] .hero h2{font-size:25px}[data-page=home] .hero-art .island-art{height:95%;top:3%}[data-page=home] .hero-mascot{max-width:150px}[data-page=learn] .topbar{margin-bottom:14px}[data-page=learn] .lesson-top{margin-bottom:8px}[data-page=learn] .step-track{margin:8px 0 13px}[data-page=learn] .lesson{padding-top:19px}[data-page=learn] .lesson-heading{margin-bottom:15px}[data-page=learn] .assembly{min-height:130px;margin:14px auto}[data-page=learn] .lesson-controls{margin-top:18px;padding-top:18px}
@keyframes companion-greet{0%,100%{transform:rotate(0)}30%{transform:rotate(-5deg)}65%{transform:rotate(4deg)}}
@media(max-width:1100px){.world-card{padding:23px;min-height:220px}.world-card h2{font-size:27px}.world-card p{font-size:12px}.world-buddy{width:34%;right:2px}.world-card>div:first-child{max-width:70%}.world-cta{font-size:13px}.buddy-guide{padding:0 10px}.guide-speech p{font-size:16px}.compact .guide-speech p{font-size:12px}[data-page=home] .hero-content{padding:24px}.two-worlds{gap:18px}}
@media(max-width:850px){.world-card{padding:20px 17px;min-height:222px;align-items:flex-start}.world-card h2{font-size:24px}.world-card .eyebrow{font-size:10px}.world-card p{font-size:11px}.world-card>div:first-child{max-width:88%}.world-buddy{width:38%;right:4px;bottom:2px}.world-cta{font-size:12px;padding:8px 12px}.world-decoration{font-size:65px}.buddy-guide{gap:12px}.guide-character{width:102px}.guide-speech{padding:13px 17px}.guide-speech p{font-size:15px}.compact .guide-speech{display:block;padding:9px 14px}.compact .guide-speech p{font-size:12px}.compact .guide-speech .sound{min-height:27px}.mini-progress{padding:12px 15px;font-size:11px}.mini-progress .text-button{margin-left:auto}.library-story-link{font-size:12px;padding:12px 16px}[data-page=home] .hero{min-height:300px}[data-page=home] .hero h2{font-size:21px}}
@media(max-width:600px){.two-worlds{grid-template-columns:1fr;gap:15px;margin:20px 0}.world-card{min-height:205px;padding:22px;align-items:center}.world-card h2{font-size:29px;margin:5px 0 9px}.world-card p{font-size:13px;line-height:1.8}.world-card>div:first-child{max-width:72%}.world-buddy{width:32%;max-width:130px;right:10px;bottom:3px}.world-cta{margin-top:13px}.world-card .eyebrow{font-size:10px}.world-decoration{font-size:65px;right:17px}.buddy-guide{padding:0;gap:10px;min-height:130px}.guide-character{width:86px}.guide-speech{padding:12px 13px}.guide-speech p{font-size:14px;line-height:1.7}.guide-speech>span{font-size:10px}.buddy-guide.compact{padding:0;gap:8px;margin-bottom:14px}.compact .guide-character{width:55px}.compact .guide-speech p{font-size:11px}.compact .guide-speech .sound{font-size:10px}.library-story-link>span{font-size:11px}.library-story-link{padding:11px 13px;gap:7px}.library-story-link button{font-size:11px;padding:8px 10px}.mini-progress{font-size:10px;gap:7px}.mini-progress b{font-size:15px}.mini-progress .text-button{width:100%;text-align:right;margin-top:4px}.radical-prompt{font-size:58px}.story-buddy{width:26%;right:3px}[data-page=home] .hero{min-height:380px}[data-page=home] .hero-content{padding:22px}[data-page=home] .hero h2{font-size:21px}[data-page=home] .hero-mascot{width:43%}}
@media print{.sidebar,.topbar,button,footer{display:none}.layout{display:block}main{padding:0}.card-grid{grid-template-columns:repeat(5,1fr)}.letter-tile{break-inside:avoid}}

/* Picture mnemonics are available for every character, with local audio. */
.memory-card{align-self:center;overflow:hidden;background:var(--paper)}
.memory-label{display:flex;justify-content:space-between;gap:12px;padding:16px 20px 10px;font-size:14px;font-weight:700;color:var(--green)}
.memory-label span{font-size:11px;font-weight:400;color:var(--muted)}
.memory-picture{display:block;border:0;background:transparent;padding:0;width:100%;border-radius:20px}
.memory-picture .illustration{display:block;width:100%}
.memory-note{padding:16px 20px 18px;border-top:1px dashed var(--line);text-align:left;background:#fffaf0}
.memory-note p{font-size:17px;line-height:1.8;margin:0 0 8px}
.memory-note .sound{margin:0;min-height:44px}
.memory-view-switch{display:flex;gap:8px;margin:14px 0 22px}
.memory-view-switch button{border:1px solid var(--line);background:var(--paper);border-radius:14px;padding:11px 20px;min-height:48px;font-size:15px}
.memory-view-switch button[aria-pressed=true]{background:var(--green);color:#fffaf0}
.picture-library{grid-template-columns:repeat(3,minmax(0,1fr))}
.picture-library .letter-tile{display:grid;grid-template-columns:64px 1fr;align-content:start;align-items:center;gap:4px 10px;padding:14px}
.picture-library .tile-tag,.picture-library .tile-picture,.picture-library .tile-detail{grid-column:1/-1}
.tile-picture{width:100%;margin:8px 0 10px;border-radius:18px;overflow:hidden}
.tile-picture .illustration{display:block;width:100%;max-height:180px}
.picture-library .letter-tile>strong{grid-column:1;grid-row:3/5;font-size:55px;margin:0}
.picture-library .letter-tile>small,.picture-library .tile-word{grid-column:2;text-align:left}
.picture-library .tile-detail{margin-top:10px}
@media(max-width:850px){.picture-library{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-note p{font-size:15px}.memory-label{padding:12px;font-size:12px}.memory-label span{font-size:10px}}
@media(max-width:600px){.memory-card.picture-card{max-width:340px}.memory-note{padding:12px 15px}.memory-note p{font-size:14px}.memory-view-switch button{font-size:13px}.picture-library .letter-tile{padding:10px;grid-template-columns:48px 1fr;gap:3px 5px}.picture-library .letter-tile>strong{font-size:43px}.picture-library .tile-word{font-size:13px}.picture-library .letter-tile>small{font-size:14px}.picture-library .tile-picture{margin:5px 0}}

/* Bright storybook colours, with dark text and a quieter warm background. */
:root{--bg:#f0fbff;--paper:#fffef7;--ink:#204856;--muted:#4f6d79;--green:#137b70;--line:#c9e0df;--peach:#ffb16a;--lilac:#b8a4ef;--yellow:#ffcf4d;--shadow:0 8px 24px #367c8d0c}
body.soft{--bg:#f7f7e8;--paper:#fffdf2}
.brand-mark{background:#ffcf4d;color:#5d491d}.primary{background:#137b70;box-shadow:0 5px 0 #0b63573d}.nav-button.active{background:#d1f0dc;color:#17684f}.star-pill{background:#ffdd74;color:#63470a}
.literacy-world{background:#ffb3d0;border-color:#f296bc}.parts-world{background:#9edcf8;border-color:#80c9ec}.world-card p{color:#285168}.world-card .eyebrow{color:#365261}.world-card h2{color:#24485b}.world-cta{background:#fffdf4}.world-decoration{color:#ffffff8c}
.hero{background:#ccedaa;border-color:#a1d888}.hero p{color:#345f3a}.tag{background:#fff2b7;color:#66501d}.theme-switch{background:#dcecef}.theme-switch .selected{background:#fff4bf}.mini-progress,.library-story-link{background:#dcefe0}.guide-speech{border-color:#f2cf91;background:#fff6d6}.buddy-guide.pup .guide-speech{background:#e5f4ff;border-color:#afd5ed}
.letter-tile{border-color:#b7d7ce}.letter-tile:nth-child(3n+1){background:#fff4d6}.letter-tile:nth-child(3n+2){background:#edf8ff}.letter-tile:nth-child(3n){background:#fff0f5}.tile-tag{background:#ffdf84;color:#66501d}.memory-note{background:#fff2c8}.memory-label{color:#167569}.part-slot.filled{background:#d4efbd}.quiz-options button.correct{background:#c6ec9c;border-color:#4e9e43}
.celebration{position:fixed;bottom:22px;right:24px;z-index:25;width:min(550px,calc(100vw - 32px));display:flex;align-items:center;gap:18px;padding:20px 26px 20px 14px;background:#fff5ca;border:3px solid #f2c249;border-radius:32px;box-shadow:0 16px 55px #235b4b2b;isolation:isolate;animation:cheer-enter .45s ease-out both}
.celebration.pig{background:#fff0f6;border-color:#ed8eb2}.celebration-close{position:absolute;right:8px;top:6px;width:44px;height:44px;background:transparent;border:0;border-radius:50%;font-size:27px;color:#466274;z-index:3}
.celebration-buddy{position:relative;flex:0 0 146px;max-width:36%;padding:0;border:0;background:transparent;transform-origin:50% 85%;animation:cheer-hop .7s ease-in-out 3;z-index:1}.celebration-buddy .mascot{width:100%;display:block}.highfive-hand{position:absolute;right:-10px;top:44%;font-size:35px;transform:rotate(-14deg);filter:drop-shadow(0 3px 1px #68460022)}
.celebration-copy{position:relative;z-index:1;padding-top:10px}.celebration-copy h2{font-size:25px;line-height:1.3;margin:10px 0}.celebration-copy p{font-size:15px;margin:0 0 14px;color:#526376}.celebration-copy .tag{font-size:12px}.celebration-copy button{min-height:44px;padding:8px 16px}.celebration.high-five .celebration-buddy{animation:high-five .6s ease-out 1}
.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;border-radius:inherit;z-index:0}.confetti i{position:absolute;left:calc(var(--n) * 8.1%);top:-32px;font-size:19px;color:#eda92c;animation:star-shower 2.4s ease-out calc(var(--n) * .07s) 1 both;font-style:normal}.confetti i:nth-child(3n){color:#ec6696}.confetti i:nth-child(3n+1){color:#3badd7}.confetti i:nth-child(3n+2){color:#67b65a}
.finish-screen{position:relative;isolation:isolate;background:#fff3cf;border:2px solid #f5d47e;border-radius:36px;padding:22px 25px 28px;overflow:hidden}.finish-duo{display:flex;justify-content:center;align-items:end;gap:30px;margin:4px auto 10px;max-width:500px}.finish-friend{position:relative;width:46%;max-width:190px;border:0;background:transparent;border-radius:24px;animation:cheer-hop .8s ease-in-out 3;transform-origin:50% 90%}.finish-friend:nth-child(2){animation-delay:.15s}.finish-friend .mascot{width:100%;max-height:220px;display:block}.finish-friend>span:last-child{display:block;margin:8px 0 0;background:#fffef2;border:1px solid #f2c869;border-radius:30px;padding:8px;font-size:13px;color:#375b68}.finish-friend.cheering{animation:high-five .6s ease-in-out 1}.finish-screen .primary{position:relative;z-index:1}.finish-screen>h1{font-size:32px;color:#2a626a;margin:12px 0}.finish-screen .finish-stars{color:#efb22c}#highfive-feedback{min-height:30px;color:#a33b74;font-weight:650;margin-bottom:16px}
@keyframes cheer-enter{from{opacity:0;transform:translateY(35px) scale(.94)}to{opacity:1;transform:none}}
@keyframes cheer-hop{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-13px) rotate(-5deg)}65%{transform:translateY(-3px) rotate(4deg)}}
@keyframes high-five{0%,100%{transform:rotate(0) scale(1)}40%{transform:rotate(9deg) scale(1.08)}70%{transform:rotate(-5deg) scale(1.03)}}
@keyframes star-shower{0%{opacity:0;transform:translateY(-10px) rotate(0)}15%{opacity:.9}85%{opacity:.8}100%{opacity:0;transform:translateY(370px) rotate(150deg)}}
@media(max-width:600px){.celebration{bottom:calc(88px + env(safe-area-inset-bottom));right:12px;width:calc(100vw - 24px);padding:16px 18px 16px 10px;gap:10px;border-radius:25px}.celebration-buddy{flex-basis:110px}.celebration-copy h2{font-size:20px}.celebration-copy p{font-size:12px}.celebration-copy button{font-size:12px}.highfive-hand{font-size:27px}.finish-screen>h1{font-size:25px}.finish-duo{gap:10px}.finish-screen{padding:18px 14px}.finish-friend .mascot{max-height:170px}.finish-friend>span:last-child{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}
.still .confetti{display:none}
