.child-app{max-width:640px;min-height:100dvh;margin:0 auto;padding:0 16px 110px;color:var(--color-text,#26354a);font-size:18px;position:relative;background:linear-gradient(180deg,#dff3ff 0,#f4f9ee 280px)}
.child-app:before,.child-app:after{content:"";position:fixed;z-index:0;border-radius:999px;pointer-events:none;opacity:.55}.child-app:before{width:180px;height:64px;top:90px;left:max(10px,calc(50% - 300px));background:#fff}.child-app:after{width:120px;height:46px;top:160px;right:max(12px,calc(50% - 300px));background:#fff}.child-topbar,.child-content{position:relative;z-index:1}.child-topbar{min-height:76px;padding-top:max(12px,env(safe-area-inset-top));display:grid;grid-template-columns:56px 1fr 76px;align-items:center;gap:10px}.child-topbar h1{font-size:26px;line-height:1.2;text-align:center;margin:0;font-weight:900;color:#603618}.child-topbar__spacer{width:56px}.icon-button,.star-pill{min-width:52px;min-height:52px;border:0;border-radius:18px;background:#fffdf6;color:#6c3d18;box-shadow:var(--shadow-card,0 4px 12px rgba(41,68,49,.12));display:flex;align-items:center;justify-content:center}.star-pill{gap:4px;padding:0 12px;color:#7d4700}.star-pill svg{color:#d78000;fill:#ffd65a}.child-content{display:grid;gap:20px}.panel,.hero-panel,.dictation-card,.camera-guide,.practice-header,.poem-scroll,.star-vault,.collection-head{background:rgba(255,253,246,.96);border:2px solid rgba(255,255,255,.9);border-radius:24px;box-shadow:var(--shadow-card,0 4px 12px rgba(41,68,49,.12))}.hero-panel{min-height:180px;padding:22px;display:grid;grid-template-columns:1fr 120px;align-items:center;overflow:hidden;background:linear-gradient(135deg,#fff7c9,#fffdf6 55%,#dbf6ce)}.hero-panel h2,.state-panel h2,.result-hero h2,.practice-header h2,.collection-head h2{font-size:30px;margin:6px 0 8px;color:#4e2c16}.hero-panel p,.state-panel p,.result-hero p,.practice-header p{margin:0;line-height:1.55}.eyebrow{color:#7a4a14;font-weight:800;font-size:16px!important;letter-spacing:.04em}.pencil-mascot{width:76px;height:112px;position:relative;margin:auto;transform:rotate(5deg);filter:drop-shadow(0 6px 4px rgba(50,35,15,.14))}.pencil-mascot:before{content:"";position:absolute;inset:16px 8px 20px;border-radius:18px 18px 5px 5px;background:linear-gradient(90deg,#f5ad14,#ffd55d 50%,#f4a812);border:3px solid #9b5a13}.pencil-eraser{position:absolute;z-index:2;top:0;left:10px;right:10px;height:27px;border-radius:14px 14px 5px 5px;background:#ff8d7a;border:3px solid #9b5a13}.pencil-tip{position:absolute;bottom:0;left:20px;border-left:18px solid transparent;border-right:18px solid transparent;border-top:27px solid #efd09b}.pencil-tip:after{content:"";position:absolute;top:-27px;left:-6px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:11px solid #4f3828}.pencil-face{position:absolute;z-index:3;top:47px;left:22px;width:40px;height:26px}.pencil-face i{position:absolute;width:7px;height:9px;background:#422b20;border-radius:50%;top:0}.pencil-face i:first-child{left:2px}.pencil-face i:nth-child(2){right:2px}.pencil-face b{position:absolute;width:14px;height:8px;border:3px solid #64301e;border-top:0;border-radius:0 0 12px 12px;left:13px;top:13px}.pencil-mascot--thinking{transform:rotate(-5deg)}.pencil-mascot--celebrate{animation:pencil-bounce .5s cubic-bezier(.34,1.56,.64,1)}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:12px}.section-heading h2{font-size:24px;margin:0;color:#4e2c16}.section-heading span{font-size:15px;color:var(--color-text-muted,#536477)}.quest-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quest-card{min-height:150px;text-align:left;border:2px solid rgba(255,255,255,.8);border-radius:22px;padding:16px;color:#49301f;box-shadow:var(--shadow-card);display:grid;grid-template-columns:52px 1fr;grid-template-rows:1fr auto;gap:10px;transition:transform .2s ease}.quest-card:active{transform:scale(.98)}.quest-card--yellow{background:#fff2a9}.quest-card--green{background:#d8f5b9}.quest-card--blue{background:#cceaff}.quest-card--coral{background:#ffd0c2}.quest-card__icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:rgba(255,255,255,.72);color:#1769c2}.quest-card b{display:block;font-size:22px;margin:2px 0 7px}.quest-card small{display:block;font-size:15px;line-height:1.35;color:#594c44}.quest-card__status{grid-column:1/-1;justify-self:end;display:flex;gap:5px;align-items:center;font-size:15px;font-weight:800}.progress-note,.instruction-note{padding:15px 18px;border-radius:18px;display:flex;align-items:center;gap:14px;background:#fff7d6;color:#5c3b19;border:1px solid #efd998}.progress-note svg{color:#d78200;fill:#ffd45b}.progress-note b,.instruction-note b{display:block}.progress-note span,.instruction-note span{display:block;font-size:15px;margin-top:3px}.child-nav{position:fixed;z-index:15;bottom:0;left:50%;width:min(640px,100%);transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,1fr);padding:10px 12px calc(8px + env(safe-area-inset-bottom));background:rgba(255,253,246,.96);backdrop-filter:blur(12px);border-radius:24px 24px 0 0;box-shadow:0 -5px 18px rgba(36,56,35,.12)}.child-nav button{min-height:58px;border:0;background:transparent;color:#6d716b;display:grid;place-items:center;font-size:13px}.child-nav button.is-active{color:#1769c2}.state-panel{min-height:460px;padding:34px 22px;display:grid;place-items:center;text-align:center;align-content:center;gap:15px}.state-panel .pencil-mascot{width:95px;height:135px}.skeleton-lines{width:100%;display:grid;gap:10px}.skeleton-lines i{height:16px;border-radius:99px;background:linear-gradient(90deg,#edf1e9 20%,#fff 45%,#edf1e9 70%);background-size:200% 100%;animation:shimmer 1.2s infinite}.skeleton-lines i:nth-child(2){width:80%}.skeleton-lines i:nth-child(3){width:62%}.step-map{height:14px;border-radius:99px;background:#e6e2d3;overflow:hidden}.step-map i{display:block;height:100%;background:linear-gradient(90deg,#ffc02f,#2c823c);border-radius:inherit;transition:transform .25s}.dictation-card{padding:24px;text-align:center}.dictation-count{font-size:24px;margin:24px 0 14px}.dictation-count strong{font-size:70px;line-height:1;color:#1769c2}.dictation-count span{color:#66717d}.sound-orb{width:210px;height:210px;margin:10px auto 20px;border-radius:50%;display:grid;place-items:center;align-content:center;gap:10px;color:#1769c2;background:linear-gradient(145deg,#fff,#d9edff);box-shadow:inset 0 0 0 12px #f2f8ff,0 8px 22px rgba(23,105,194,.2)}.sound-orb span{font-size:15px;color:#536477}.sound-orb.is-speaking{animation:sound-pulse 1.2s ease-in-out infinite}.fallback-word{min-height:210px;display:grid;place-items:center;align-content:center}.fallback-word small{color:#536477}.fallback-word strong{font-size:56px;margin-top:15px}.pinyin-hint{min-height:58px;border-radius:16px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;background:#f4f6f0;color:#68766d}.pinyin-hint.is-visible{background:#e7f4ff;color:#194b77}.pinyin-hint b{font-size:22px}.text-button{margin-top:8px;border:0;background:transparent;color:#1769c2;text-decoration:underline;min-height:44px}.dictation-controls{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:12px}.control-button{min-height:84px;border:0;border-radius:22px;background:#fffdf6;color:#364b3a;display:grid;place-items:center;align-content:center;gap:3px;font-weight:800;box-shadow:var(--shadow-card)}.control-button--primary{background:#1769c2;color:#fff}.control-button:disabled{opacity:.48}.secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.secondary-actions button{min-height:50px;border:2px solid #d3dfce;border-radius:16px;background:#fffdf6;color:#344f4a;font-weight:800}.camera-guide{padding:20px}.camera-guide__visual{height:130px;border-radius:18px;background:linear-gradient(135deg,#dff3ff,#e3f8d7);display:flex;align-items:center;justify-content:center;color:#1769c2}.camera-guide__visual .pencil-mascot{margin:0 0 0 40px}.camera-guide h2{text-align:center;font-size:26px}.camera-guide ul{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:10px}.camera-guide li{display:flex;align-items:center;gap:10px}.camera-guide li svg{color:#28743a}.capture-button,.primary-button,.outline-button{width:100%;min-height:58px;border-radius:17px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:18px;font-weight:900}.capture-button,.primary-button{border:0;background:#1769c2;color:#fff;box-shadow:0 5px 0 #0d4c90}.capture-button input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.outline-button{border:2px solid #1769c2;background:#fffdf6;color:#145792}.primary-button:disabled{opacity:.48;box-shadow:none}.photo-previews{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-previews figure{margin:0;position:relative}.photo-previews img{width:100%;height:170px;object-fit:cover;border-radius:16px;border:3px solid #fff}.photo-previews button{position:absolute;right:7px;top:7px;border:0;border-radius:99px;padding:7px 10px;background:#fff;color:#914400}.privacy-note{text-align:center;color:#536477;font-size:14px;margin:0}.loading-track{height:12px;width:100%;background:#e4e9df;border-radius:99px;overflow:hidden}.loading-track i{display:block;width:35%;height:100%;background:#1769c2;border-radius:inherit;animation:loading-slide 1s infinite}.page-intro{margin:0;color:#536477;line-height:1.6}.grade-list,.result-list,.mistake-list{display:grid;gap:12px}.grade-row,.result-row,.mistake-card{border:2px solid #dfe7d8;border-radius:18px;padding:15px;background:#fffdf6}.grade-row{display:grid;grid-template-columns:42px 1fr 1.5fr;align-items:center;gap:10px}.grade-row.is-practice{border-color:#f3c27f;background:#fff7e9}.grade-row__index{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e7f4ff;font-weight:900}.grade-row small,.grade-row b{display:block}.segment-control{display:grid;grid-template-columns:1fr 1fr;background:#ecefe9;border-radius:14px;padding:3px}.segment-control button{min-height:46px;border:0;border-radius:12px;background:transparent;font-weight:800;color:#52605b}.segment-control button.is-active{background:#28743a;color:#fff}.grade-row.is-practice .segment-control button.is-active{background:#914400}.result-hero{padding:20px;display:grid;grid-template-columns:105px 1fr;align-items:center}.result-hero h2{font-size:26px}.result-row{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px}.result-row.is-correct{background:#e4f5df;border-color:#b9ddb2}.result-row.is-practice{background:#fff0d7;border-color:#edc998}.result-row>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff}.result-row small,.result-row b,.result-row em{display:block}.result-row b{font-size:24px}.result-row em{font-size:14px;color:#7d481d;margin-top:4px;font-style:normal}.result-row>strong{font-size:15px}.reward-banner{padding:17px 22px;border-radius:22px;background:linear-gradient(135deg,#fff0a6,#ffd55c);display:flex;align-items:center;justify-content:center;gap:18px;color:#67410e}.reward-banner svg{fill:#fff;color:#c97a00}.reward-banner small,.reward-banner b{display:block}.reward-banner b{font-size:23px}.mistake-card{width:100%;display:grid;grid-template-columns:42px 1fr auto;text-align:left;align-items:center;color:#26354a}.mistake-rank{width:36px;height:36px;border-radius:50%;background:#e7f4ff;display:grid;place-items:center;font-weight:900;color:#1769c2}.mistake-card b,.mistake-card small,.mistake-card em{display:block}.mistake-card b{font-size:26px}.mistake-card small{color:#536477}.mistake-card em{font-size:14px;font-style:normal;color:#914400;margin-top:4px}.mistake-count{font-size:13px;padding:6px 9px;border-radius:99px;background:#fff0d7;color:#914400}.practice-header,.collection-head{padding:18px 20px;display:grid;grid-template-columns:1fr 90px;align-items:center}.practice-header h2{font-size:42px}.tian-grid{width:min(100%,330px);aspect-ratio:1;margin:auto;display:grid;place-items:center;position:relative;background:#fffdf6;border:3px solid #e9895b;border-radius:6px;overflow:hidden}.tian-grid:before,.tian-grid:after{content:"";position:absolute;inset:50% 0 auto;border-top:2px dashed #e8a186}.tian-grid:after{inset:0 auto 0 50%;border-top:0;border-left:2px dashed #e8a186}.tian-grid span{font-size:180px;color:#3b3e3c;z-index:1}.practice-actions{display:flex}.button-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.level-path{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.level-path span{text-align:center;color:#66736a}.level-path b{width:48px;height:48px;margin:auto auto 6px;border-radius:50%;display:grid;place-items:center;background:#dfe5db}.level-path span.is-current b{background:#ffba45;color:#633500;box-shadow:0 0 0 5px #fff3c6}.level-path span.is-done b{background:#2c823c;color:#fff}.level-path small{font-size:13px}.poem-scroll{text-align:center;padding:26px 18px;background:linear-gradient(180deg,#fffdf6,#fff4cf)}.poem-scroll h2{font-size:29px;color:#542f19;margin:0 0 6px}.poem-scroll>p{margin:0 0 22px;color:#6d655d}.poem-scroll div{display:grid;gap:14px}.poem-scroll span{font-size:22px;line-height:1.7}.poem-picker,.category-tabs{display:flex;gap:8px;overflow:auto;padding:2px}.poem-picker button,.category-tabs button{flex:none;min-height:46px;padding:0 16px;border-radius:99px;border:2px solid #d7e2d3;background:#fffdf6;color:#3b4d46}.poem-picker button.is-active,.category-tabs button[aria-selected="true"]{background:#1769c2;color:#fff;border-color:#1769c2}.collection-head h2{font-size:26px}.idiom-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.idiom-card{min-height:180px;padding:16px;border-radius:20px;border:2px solid #dce4d7;background:linear-gradient(145deg,#fffdf6,#e7f4ff);display:grid;align-content:start;gap:6px}.idiom-card b{font-size:24px;color:#4f301b}.idiom-card span,.idiom-card small{font-size:14px;color:#5d6e68}.idiom-card p{font-size:16px;line-height:1.5;margin:3px 0}.idiom-card.is-locked{place-items:center;text-align:center;color:#6d756e;background:#eef0eb}.star-vault{min-height:190px;padding:22px;display:grid;grid-template-columns:1fr 110px;align-items:center;background:linear-gradient(135deg,#ffec92,#fff8d5)}.star-vault>div:first-child{display:grid;grid-template-columns:54px auto;align-items:center;justify-content:start}.star-vault svg{grid-row:1/3;color:#ce7900;fill:#ffd354}.star-vault strong{font-size:52px;line-height:1;color:#653b0c}.star-vault span{font-size:15px}.star-vault p{grid-column:1}.star-vault>.pencil-mascot{grid-column:2;grid-row:1/3}.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.badge{min-height:125px;padding:10px;border-radius:17px;background:#e8eae5;color:#717a72;display:grid;place-items:center;text-align:center}.badge.is-earned{background:#fff1ae;color:#6d4210}.badge b,.badge small{display:block}.badge b{font-size:15px}.badge small{font-size:12px}.empty-inline{grid-column:1/-1;padding:22px;text-align:center;background:#fffdf6;border-radius:18px;color:#536477}.checkin-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.checkin-grid>span{min-height:53px;border-radius:12px;background:#e9ede6;display:grid;place-items:center;color:#647069}.checkin-grid>span.is-on{background:#dff4d7;color:#28743a}.checkin-grid small{font-size:11px}.reward-list{display:grid;gap:10px}.reward-list article{padding:14px;border-radius:17px;background:#fffdf6;display:flex;justify-content:space-between;gap:10px;align-items:center}.reward-list article>div{display:flex;gap:10px;align-items:center}.reward-list b,.reward-list small{display:block}.reward-list button{min-height:45px;border:0;border-radius:13px;padding:0 12px;background:#1769c2;color:#fff;font-weight:800}.reward-list button:disabled{background:#d5dad3;color:#737d75}.c-icon{flex:none}button,.capture-button{font:inherit;cursor:pointer}button:focus-visible,.capture-button:focus-within{outline:3px solid var(--color-focus,#124fa1);outline-offset:3px}
.child-app .pencil-mascot{position:relative;left:auto;top:auto;width:76px;height:112px;margin:auto;background:transparent;border:0;border-radius:0;transform:rotate(5deg)}.child-app .pencil-mascot:before{inset:16px 8px 20px;height:auto;background:linear-gradient(90deg,#f5ad14,#ffd55d 50%,#f4a812);border:3px solid #9b5a13;border-radius:18px 18px 5px 5px}.child-app .pencil-mascot:after{content:none}.child-app .state-panel .pencil-mascot{width:95px;height:135px}
@keyframes pencil-bounce{50%{transform:translateY(-10px) rotate(-4deg)}}@keyframes shimmer{to{background-position:-200% 0}}@keyframes sound-pulse{50%{transform:scale(1.025);filter:saturate(1.2)}}@keyframes loading-slide{0%{transform:translateX(-120%)}100%{transform:translateX(320%)}}
@media(max-width:410px){.child-app{padding-left:12px;padding-right:12px}.quest-grid{grid-template-columns:1fr}.hero-panel{grid-template-columns:1fr 90px}.grade-row{grid-template-columns:35px 1fr}.grade-row .segment-control{grid-column:1/-1}.dictation-controls{gap:7px}.control-button{font-size:14px}.button-row{grid-template-columns:1fr}.idiom-grid{grid-template-columns:1fr}.badge-grid{grid-template-columns:1fr 1fr}}
@media(min-width:760px){.child-app{border-left:1px solid #dae7d6;border-right:1px solid #dae7d6}.child-app--wide{max-width:800px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.sound-orb.is-speaking{outline:5px solid #bbdfff}}

/* Keep text on a light surface while bringing the approved quest landscape into the app. */
.child-app .hero-panel{background:linear-gradient(90deg,rgba(255,253,240,.97) 0%,rgba(255,253,240,.92) 50%,rgba(255,253,240,.42) 100%),url('/assets/b-landscape.webp') center 51%/cover no-repeat}

/* 10+ exploration journal: calm, capable and playful without looking preschool-like. */
.child-app{
  --quest-ink:#17324d;
  --quest-blue:#1769c2;
  --quest-teal:#15766f;
  --quest-orange:#b85a16;
  --quest-paper:#fffdf7;
  --quest-line:#d9e3d7;
  max-width:680px;
  background:
    radial-gradient(circle at 16px 16px,rgba(23,105,194,.07) 1.5px,transparent 1.8px) 0 0/32px 32px,
    linear-gradient(180deg,#e8f5f3 0,#f4f8ee 360px,#f7f5ed 100%);
  color:var(--quest-ink);
  font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;
}
.child-app:before,.child-app:after{display:none}
.child-topbar{min-height:80px}
.child-topbar h1{font-size:26px;color:var(--quest-ink);letter-spacing:-.02em}
.icon-button,.star-pill{border:1px solid rgba(23,50,77,.1);border-radius:16px;color:var(--quest-ink);box-shadow:0 6px 18px rgba(23,50,77,.08)}
.star-pill{background:#fff8d8;color:#6d430e}
.panel,.dictation-card,.camera-guide,.practice-header,.poem-scroll,.star-vault,.collection-head{border:1px solid rgba(23,50,77,.1);border-radius:22px;box-shadow:0 10px 28px rgba(23,50,77,.08)}
.child-app .hero-panel{
  min-height:220px;
  grid-template-columns:minmax(0,1fr) 142px;
  padding:24px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:26px;
  background:
    linear-gradient(90deg,rgba(249,252,242,.98) 0%,rgba(249,252,242,.93) 48%,rgba(249,252,242,.22) 72%,rgba(249,252,242,.06) 100%),
    url('/assets/quest-hero.jpg') 60% center/cover no-repeat;
  box-shadow:0 14px 32px rgba(23,50,77,.14);
}
.hero-panel__copy{position:relative;z-index:2;max-width:330px}
.hero-panel h2,.state-panel h2,.result-hero h2,.practice-header h2,.collection-head h2{color:var(--quest-ink);letter-spacing:-.03em}
.hero-panel h2{font-size:32px;line-height:1.18;margin:8px 0 10px}
.hero-panel p{max-width:28ch;color:#40566b}
.hero-panel p b{color:var(--quest-teal)}
.eyebrow{color:#7b4a16;font-size:15px!important;letter-spacing:.08em;text-transform:uppercase}
.child-app .hero-panel .pencil-mascot,
.child-app .collection-head .pencil-mascot,
.child-app .star-vault>.pencil-mascot{
  width:138px;
  height:166px;
  align-self:end;
  margin:0 -8px -22px auto;
  background:url('/assets/quest-mascot-small.png') center bottom/contain no-repeat;
  filter:drop-shadow(0 9px 8px rgba(23,50,77,.18));
  transform:none;
}
.child-app .hero-panel .pencil-mascot:before,
.child-app .collection-head .pencil-mascot:before,
.child-app .star-vault>.pencil-mascot:before{content:none}
.hero-panel .pencil-mascot>*,.collection-head .pencil-mascot>*,.star-vault>.pencil-mascot>*{display:none}
.quest-summary{padding:16px 18px;border:1px solid rgba(23,50,77,.1);border-radius:20px;background:rgba(255,253,247,.92);box-shadow:0 7px 20px rgba(23,50,77,.07);display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px 18px}
.quest-summary__main{grid-row:1/3;display:flex;align-items:baseline;gap:10px;padding-right:18px;border-right:1px solid var(--quest-line)}
.quest-summary__main span{font-size:15px;font-weight:800;color:#5b6e7c}
.quest-summary__main strong{font-size:34px;line-height:1;color:var(--quest-blue)}
.quest-summary__main small{font-size:16px;color:#758591}
.quest-summary__track{height:10px;border-radius:999px;overflow:hidden;background:#e4eadd}
.quest-summary__track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--quest-blue),var(--quest-teal));transition:width .25s cubic-bezier(.16,1,.3,1)}
.quest-summary__stats{display:flex;gap:18px;color:#4d6372;font-size:14px;font-weight:800}
.quest-summary__stats span{display:flex;align-items:center;gap:5px}
.quest-summary__stats span:first-child svg{color:var(--quest-orange)}
.quest-summary__stats span:last-child svg{color:#c77a00;fill:#ffd35a}
.section-heading{align-items:flex-end;margin:4px 2px 14px}
.section-heading h2{color:var(--quest-ink);font-size:25px;letter-spacing:-.02em}
.section-kicker{display:block!important;margin-bottom:4px;font-size:13px!important;font-weight:900;letter-spacing:.12em;color:var(--quest-teal)!important}
.quest-grid{gap:14px}
.quest-card{min-height:142px;padding:17px;border:1px solid rgba(23,50,77,.1);border-radius:20px;color:var(--quest-ink);box-shadow:0 7px 18px rgba(23,50,77,.08);grid-template-columns:52px 1fr;transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .2s ease}
.quest-card:hover{transform:translateY(-2px);box-shadow:0 11px 24px rgba(23,50,77,.12)}
.quest-card:active{transform:scale(.98)}
.quest-card--yellow{grid-column:1/-1;min-height:118px;background:linear-gradient(120deg,#fff4b9,#fff9df);grid-template-columns:58px 1fr auto;grid-template-rows:1fr}
.quest-card--green{background:#e2f2e4}
.quest-card--blue{background:#e2eff7}
.quest-card--coral{grid-column:1/-1;min-height:118px;background:#f8e7dc;grid-template-columns:58px 1fr auto;grid-template-rows:1fr}
.quest-card__icon{background:rgba(255,255,255,.82);color:var(--quest-blue);border:1px solid rgba(23,50,77,.08);border-radius:15px}
.quest-card--green .quest-card__icon{color:var(--quest-teal)}
.quest-card--coral .quest-card__icon{color:var(--quest-orange)}
.quest-card b{font-size:21px;color:var(--quest-ink)}
.quest-card small{font-size:16px;color:#506474}
.quest-card__status{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.72);color:#32526b}
.quest-card--yellow .quest-card__status,.quest-card--coral .quest-card__status{grid-column:auto;align-self:center}
.quest-card.is-complete .quest-card__status{background:#d7edda;color:#256734}
.progress-note,.instruction-note{border:1px solid #dfd5b7;border-radius:18px;background:#fffaf0;color:#4f4737}
.progress-note b,.instruction-note b{color:var(--quest-ink)}
.child-nav{width:min(680px,100%);border-top:1px solid rgba(23,50,77,.1);border-radius:22px 22px 0 0;background:rgba(255,253,247,.94);box-shadow:0 -8px 28px rgba(23,50,77,.09)}
.child-nav button{min-height:60px;border-radius:14px;color:#687781;font-weight:800}
.child-nav button.is-active{background:#e5f0ed;color:var(--quest-teal)}

/* Shared learning surfaces */
.state-panel{background:var(--quest-paper)}
.step-map{height:11px;background:#e2e8e0}
.step-map i{background:linear-gradient(90deg,var(--quest-blue),var(--quest-teal))}
.dictation-card{padding:26px;background:rgba(255,253,247,.97)}
.dictation-count{color:#526676}
.dictation-count strong{color:var(--quest-blue)}
.sound-orb{background:radial-gradient(circle at 38% 30%,#fff 0,#e7f3f3 38%,#d5e9ed 100%);color:var(--quest-blue);box-shadow:inset 0 0 0 10px rgba(255,255,255,.62),0 12px 30px rgba(23,105,194,.16)}
.control-button{border:1px solid rgba(23,50,77,.1);border-radius:18px;background:var(--quest-paper);color:var(--quest-ink);box-shadow:0 7px 18px rgba(23,50,77,.08)}
.control-button--primary,.capture-button,.primary-button{background:var(--quest-blue);color:#fff;box-shadow:0 5px 0 #0d4c90}
.secondary-actions button,.outline-button{border-color:#aec9c3;background:var(--quest-paper);color:#245e68}
.camera-guide{background:var(--quest-paper)}
.camera-guide__visual{background:linear-gradient(135deg,#e1f0f2,#e7f2df);color:var(--quest-blue)}
.grade-row,.result-row,.mistake-card{border-color:rgba(23,50,77,.12);border-radius:17px;background:var(--quest-paper);box-shadow:0 5px 14px rgba(23,50,77,.05)}
.result-hero{border-radius:22px;background:linear-gradient(125deg,#fff8dc,#e6f1e4);border:1px solid rgba(23,50,77,.1)}
.reward-banner{border:1px solid #e5c86d;background:linear-gradient(120deg,#fff4bf,#ffe27b);color:#62420d}
.mistake-card b{color:var(--quest-ink)}
.mistake-count{background:#faeadf;color:#8b4214}
.practice-header{background:linear-gradient(120deg,#fffaf0,#e5f1e9)}
.practice-header h2{color:var(--quest-ink)}
.tian-grid{border-color:#bf704b;background:#fffefa;box-shadow:0 10px 24px rgba(94,58,36,.08)}
.level-path{position:relative;padding:4px 2px}
.level-path:before{content:"";position:absolute;left:16%;right:16%;top:28px;border-top:2px dashed #a8bdb5;z-index:0}
.level-path span{position:relative;z-index:1;color:#596c78}
.level-path b{border:3px solid #f4f8ee;background:#dfe8e4;color:#52646f}
.level-path span.is-current b{background:#f4bc49;color:#553509;box-shadow:0 0 0 4px #fff2c9}
.level-path span.is-done b{background:var(--quest-teal)}
.poem-scroll{position:relative;background:linear-gradient(180deg,#fffdf8,#faf2de);border-color:#e3d8bc}
.poem-scroll:before{content:"";position:absolute;left:16px;top:16px;bottom:16px;border-left:3px double #d4b67d}
.poem-scroll h2{color:var(--quest-ink)}
.poem-scroll span{font-size:22px;color:#273d4c}
.poem-picker button,.category-tabs button{min-height:48px;border-color:#c7d5cf;background:var(--quest-paper);color:#355467;font-weight:800}
.poem-picker button.is-active,.category-tabs button[aria-selected="true"]{background:var(--quest-teal);border-color:var(--quest-teal)}
.collection-head{overflow:hidden;background:linear-gradient(125deg,#e6f2ec,#fff8df)}
.child-app .collection-head .pencil-mascot{width:105px;height:125px;margin:0 -8px -18px auto}
.idiom-card{min-height:190px;border:1px solid rgba(23,50,77,.12);border-radius:18px;background:linear-gradient(150deg,#fffdf7,#e8f2ef);box-shadow:0 7px 18px rgba(23,50,77,.06)}
.idiom-card:nth-child(2n){background:linear-gradient(150deg,#fffdf7,#f5eadf)}
.idiom-card b{font-size:24px;color:var(--quest-ink)}
.idiom-card span,.idiom-card small{font-size:15px;color:#536978}
.idiom-card p{font-size:17px;color:#2f4655}
.idiom-card.is-locked{background:#ecefeb;color:#68766f}
.star-vault{overflow:hidden;background:linear-gradient(125deg,#173e5c,#1f6a72);color:#fff;border-color:rgba(255,255,255,.18)}
.star-vault strong,.star-vault span,.star-vault p{color:#fff}
.star-vault svg{color:#ffd05a;fill:#ffd05a}
.child-app .star-vault>.pencil-mascot{width:120px;height:142px;margin:0 -8px -22px auto}
.badge{border:1px solid rgba(23,50,77,.08);background:#e9eeea;color:#65746e}
.badge.is-earned{background:linear-gradient(145deg,#fff8d6,#f4df9b);color:#63420d}
.checkin-grid>span{border:1px solid rgba(23,50,77,.07);background:#e7ece8}
.checkin-grid>span.is-on{background:#d9eee1;color:#23623d}
.reward-list article{border:1px solid rgba(23,50,77,.1);background:var(--quest-paper)}
.reward-list button{min-height:48px;background:var(--quest-blue)}

@media(max-width:480px){
  .child-app .hero-panel{min-height:205px;grid-template-columns:minmax(0,1fr) 102px;padding:20px;background-position:66% center}
  .hero-panel h2{font-size:28px}
  .hero-panel p{font-size:16px}
  .child-app .hero-panel .pencil-mascot{width:110px;height:138px;margin-right:-12px}
  .quest-summary{grid-template-columns:1fr;gap:12px}
  .quest-summary__main{grid-row:auto;border-right:0;border-bottom:1px solid var(--quest-line);padding:0 0 12px;justify-content:space-between}
  .quest-summary__stats{justify-content:space-between;gap:8px}
}
@media(max-width:410px){
  .quest-card--yellow,.quest-card--coral{grid-column:auto;grid-template-columns:52px 1fr;grid-template-rows:1fr auto;min-height:142px}
  .quest-card--yellow .quest-card__status,.quest-card--coral .quest-card__status{grid-column:1/-1}
  .quest-card__status{justify-self:end}
  .collection-head{grid-template-columns:1fr 78px}
}
@media(pointer:coarse){.quest-card:hover{transform:none}.quest-card:active{transform:scale(.98)}}

/* Full child experience refresh: one visual language across every learning route. */
.child-app{
  --exp-ink:#17334a;
  --exp-muted:#526878;
  --exp-blue:#176aa6;
  --exp-teal:#207c72;
  --exp-gold:#d58b20;
  --exp-rust:#a9552a;
  --exp-paper:#fffdf7;
  --exp-border:rgba(23,51,74,.12);
  --exp-shadow:0 12px 30px rgba(24,58,73,.09);
  max-width:720px;
  padding-inline:20px;
  background:
    linear-gradient(90deg,rgba(32,124,114,.035) 1px,transparent 1px) 0 0/28px 28px,
    linear-gradient(rgba(32,124,114,.035) 1px,transparent 1px) 0 0/28px 28px,
    linear-gradient(180deg,#eaf5f1 0,#f6f7ef 320px,#f7f3e9 100%);
  color:var(--exp-ink);
}
.child-content{gap:18px}
.child-topbar{grid-template-columns:54px minmax(0,1fr) 78px;min-height:82px}
.child-topbar h1{font-size:25px;color:var(--exp-ink);letter-spacing:-.04em}
.icon-button,.star-pill{min-height:50px;border:1px solid var(--exp-border);background:rgba(255,253,247,.94);box-shadow:0 6px 18px rgba(23,51,74,.07)}
.icon-button:active,.star-pill:active,.primary-button:active,.outline-button:active,.control-button:active,.reward-list button:active{transform:scale(.98)}

.quest-scene{position:relative;isolation:isolate;min-height:206px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(190px,.85fr);align-items:stretch;border:1px solid rgba(255,255,255,.86);border-radius:28px;background:#dcefea;box-shadow:0 16px 38px rgba(23,51,74,.14)}
.quest-scene:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(92deg,rgba(251,251,240,.98) 0%,rgba(251,251,240,.94) 47%,rgba(251,251,240,.28) 68%,rgba(251,251,240,.06) 100%)}
.quest-scene__copy{position:relative;z-index:2;align-self:center;padding:25px 6px 25px 26px;max-width:400px}
.quest-scene__copy h2{max-width:18ch;margin:6px 0 9px;font-size:29px;line-height:1.18;letter-spacing:-.045em;color:var(--exp-ink)}
.quest-scene__copy>p:last-of-type{max-width:36ch;margin:0;color:#405b6d;font-size:16px;line-height:1.6}
.quest-scene__copy .eyebrow{margin:0;color:#8b4f20;font-size:13px!important;font-weight:900;letter-spacing:.12em}
.quest-scene__art{position:absolute;z-index:-2;inset:0 0 0 38%;background-position:right center;background-size:cover;background-repeat:no-repeat;transform:scale(1.01)}
.quest-scene__art:after{content:"";position:absolute;inset:auto 16px 14px auto;width:64px;height:10px;border-radius:50%;background:rgba(17,52,62,.16);filter:blur(7px)}
.quest-scene--home{min-height:244px}.quest-scene--home .quest-scene__art{inset:0;background-image:url('/assets/quest-hero.jpg');background-position:64% 48%}.quest-scene--home:before{background:linear-gradient(90deg,rgba(250,251,238,.98) 0%,rgba(250,251,238,.93) 48%,rgba(250,251,238,.26) 70%,rgba(250,251,238,.02) 100%)}
.quest-scene--dictation .quest-scene__art{background-image:url('/assets/quest-dictation.jpg')}
.quest-scene--photo .quest-scene__art,.quest-scene--writing .quest-scene__art,.quest-scene--practice .quest-scene__art{background-image:url('/assets/quest-writing-v2.jpg')}
.quest-scene--poetry .quest-scene__art{background-image:url('/assets/quest-poetry.jpg')}
.quest-scene--idioms .quest-scene__art{background-image:url('/assets/quest-idioms.jpg')}
.quest-scene--rewards .quest-scene__art,.quest-scene--results .quest-scene__art,.quest-scene--review .quest-scene__art{background-image:url('/assets/quest-rewards.jpg')}
.scene-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.scene-chips span{padding:6px 10px;border:1px solid rgba(23,51,74,.12);border-radius:999px;background:rgba(255,255,255,.72);color:#3e5b69;font-size:13px;font-weight:900}

.quest-summary{border-radius:18px;background:rgba(255,253,247,.95);box-shadow:0 8px 20px rgba(23,51,74,.06)}
.mission-board{padding-top:3px}
.quest-grid{grid-template-columns:1.12fr .88fr;grid-template-areas:"main green" "main blue" "coral coral";gap:12px}
.quest-card{position:relative;isolation:isolate;min-height:126px;overflow:hidden;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto 1fr auto;padding:17px 16px;border-color:rgba(23,51,74,.09);background:var(--exp-paper);box-shadow:0 8px 22px rgba(23,51,74,.07)}
.quest-card:after{content:"";position:absolute;z-index:-1;right:-26px;bottom:-38px;width:112px;height:112px;border:20px solid rgba(255,255,255,.35);border-radius:50%}
.quest-card--yellow{grid-area:main;min-height:264px;align-content:end;background:linear-gradient(150deg,#fff8d5,#efdca0);grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto 1fr auto}.quest-card--green{grid-area:green;background:linear-gradient(145deg,#e3f1e8,#d4e9dc)}.quest-card--blue{grid-area:blue;background:linear-gradient(145deg,#e4f0f5,#d6e7ee)}.quest-card--coral{grid-area:coral;min-height:118px;background:linear-gradient(120deg,#f7ebe0,#eed8c7);grid-template-columns:58px 1fr auto;grid-template-rows:1fr}
.quest-card__number{grid-column:1/-1;align-self:start;justify-self:start;color:rgba(23,51,74,.45);font-size:12px;font-weight:900;letter-spacing:.15em}
.quest-card__icon{align-self:start;width:50px;height:50px;border-radius:15px}.quest-card>span:nth-child(3){align-self:start}.quest-card b{font-size:21px;line-height:1.25}.quest-card small{font-size:15px;line-height:1.45}.quest-card__status{align-self:end}.quest-card--coral .quest-card__number{display:none}.quest-card--coral .quest-card__status{align-self:center}

.state-panel{min-height:430px;border-color:var(--exp-border);border-radius:26px;background:rgba(255,253,247,.96);box-shadow:var(--exp-shadow)}
.state-panel--compact{min-height:260px}.state-panel--loading .state-panel__label,.state-panel--grading .state-panel__label{padding:7px 11px;border-radius:999px;background:#e5f0ec;color:#31675f;font-size:13px;font-weight:900}.state-panel--error{border-color:#e7c5ad;background:linear-gradient(145deg,#fffaf2,#f8e9dd)}
.state-symbol{width:66px;height:66px;border:2px solid #b36236;border-radius:22px;display:grid;place-items:center;color:#a14d25;background:#fff7ec;font-size:36px;font-weight:900;transform:rotate(-3deg)}
.state-actions{width:min(100%,360px);display:grid;grid-template-columns:1fr 1fr;gap:10px}
.skeleton-lines{max-width:410px}

.dictation-card{position:relative;padding:24px 26px 28px;border-radius:26px;background:rgba(255,253,247,.98);box-shadow:var(--exp-shadow)}
.dictation-card:before{content:"LISTEN / WRITE";position:absolute;right:24px;top:47px;color:rgba(23,51,74,.19);font-size:10px;font-weight:900;letter-spacing:.15em}
.dictation-count{margin:20px 0 10px}.dictation-count strong{font-size:62px;color:var(--exp-blue)}
.sound-orb{width:196px;height:196px;margin-block:8px 18px;border:1px solid rgba(23,106,166,.12);background:radial-gradient(circle at 38% 30%,#fff 0,#e6f2f3 42%,#d5e8eb 100%);box-shadow:inset 0 0 0 10px rgba(255,255,255,.64),0 14px 30px rgba(23,106,166,.13)}
.sound-orb.is-preparing svg{animation:preparing-breathe 1.4s ease-in-out infinite}
@keyframes preparing-breathe{50%{opacity:.45;transform:scale(.94)}}
.pinyin-hint{border:1px solid rgba(23,51,74,.07)}
.dictation-controls{gap:10px}.control-button{min-height:82px;border-radius:19px}.control-button--primary{background:linear-gradient(145deg,#1973b2,#14598c)}
.secondary-actions button{min-height:52px}

.camera-guide{padding:20px 22px 22px;border-radius:24px;background:rgba(255,253,247,.96);box-shadow:var(--exp-shadow)}
.camera-guide__title{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}.camera-guide__title h2{max-width:12ch;margin:0;text-align:right;font-size:23px;line-height:1.25;color:var(--exp-ink)}.camera-step{font-size:14px;font-weight:900;color:var(--exp-teal)}
.camera-guide ul{gap:8px;margin:0}.camera-guide li{min-height:67px;padding:10px 12px;border:1px solid rgba(23,51,74,.08);border-radius:15px;background:#f6f7ef}.camera-guide li>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#dbece8;color:#276b64;font-size:13px;font-weight:900}.camera-guide li b,.camera-guide li small{display:block}.camera-guide li b{color:var(--exp-ink);font-size:16px}.camera-guide li small{margin-top:2px;color:var(--exp-muted);font-size:13px}
.capture-button,.primary-button,.outline-button{min-height:58px;border-radius:16px;transition:transform .15s ease,filter .15s ease}.capture-button,.primary-button{background:linear-gradient(145deg,#1973b2,#14598c)}.capture-button:hover,.primary-button:hover{filter:brightness(1.05)}
.photo-previews:not(.has-images){display:block}.photo-empty{min-height:140px;padding:22px;border:2px dashed #b8cac5;border-radius:20px;display:grid;place-items:center;align-content:center;gap:5px;text-align:center;background:rgba(255,253,247,.65);color:var(--exp-muted)}.photo-empty__icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#e2efec;color:var(--exp-teal)}.photo-empty b{color:var(--exp-ink)}.photo-empty small{font-size:13px}.photo-previews figure{overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 8px 20px rgba(23,51,74,.08)}.photo-previews img{height:190px;border:0;border-radius:18px}.photo-previews button{min-height:40px}

.grade-list,.result-list,.mistake-list{gap:10px}.grade-row,.result-row,.mistake-card{border:1px solid var(--exp-border);border-radius:18px;box-shadow:0 7px 18px rgba(23,51,74,.05)}
.result-score{width:88px;height:88px;margin-top:14px;display:grid;place-items:center;align-content:center;border:1px solid rgba(23,51,74,.13);border-radius:24px;background:rgba(255,255,255,.75);transform:rotate(-2deg)}.result-score strong{font-size:35px;line-height:1;color:var(--exp-blue)}.result-score span{font-size:12px;font-weight:900;color:var(--exp-muted)}
.result-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.result-summary>div{min-height:82px;padding:12px;border:1px solid var(--exp-border);border-radius:17px;background:rgba(255,253,247,.94);display:grid;place-items:center;align-content:center}.result-summary span{font-size:13px;color:var(--exp-muted)}.result-summary strong{font-size:28px;color:var(--exp-ink)}
.result-summary--positive{grid-template-columns:.8fr 1.2fr}.result-summary--positive>div:last-child{background:linear-gradient(145deg,#eef6e9,#e0efe6)}.result-summary--positive>div:last-child strong{font-size:20px;color:var(--exp-teal)}
.result-row{min-height:76px}.reward-banner{border-radius:20px;box-shadow:0 8px 20px rgba(99,70,17,.08)}

.mistake-card{position:relative;grid-template-columns:48px minmax(0,1fr) auto 20px;min-height:92px;padding:14px 16px}.mistake-card:hover{border-color:rgba(32,124,114,.3);transform:translateY(-1px)}.mistake-rank{width:40px;height:40px;border-radius:13px;background:#e1efec;color:var(--exp-teal);font-size:13px;letter-spacing:.08em}.mistake-card b{font-size:25px;color:var(--exp-ink)}.mistake-count{white-space:nowrap;background:#f6e8dc;color:#8b4723}.mistake-arrow{font-size:28px;color:#7b8b91}
.writing-workbench{padding:18px 20px 22px;border:1px solid var(--exp-border);border-radius:25px;background:rgba(255,253,247,.96);box-shadow:var(--exp-shadow)}.workbench-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.workbench-heading>div{display:flex;align-items:baseline;gap:9px}.workbench-heading span,.workbench-heading small{color:var(--exp-muted);font-size:13px}.workbench-heading strong{font-size:28px;color:var(--exp-ink)}.workbench-heading small{text-align:right}.tian-grid{width:min(100%,310px);border-color:#bb6c4a;border-radius:10px;box-shadow:inset 0 0 0 7px #fffaf3,0 10px 24px rgba(94,58,36,.07)}

.level-path{padding:8px 8px 2px}.level-path:before{top:33px}.level-path b{width:52px;height:52px}.level-path small{font-size:13px;font-weight:800}
.poem-scroll{padding:30px 22px 28px;border-radius:24px;background:linear-gradient(160deg,#fffdf7,#f7ecd6);box-shadow:var(--exp-shadow)}.poem-scroll:after{content:"";position:absolute;right:18px;top:18px;width:58px;height:58px;border:1px solid rgba(169,85,42,.13);border-radius:50%}.poem-scroll h2{font-size:30px}.poem-scroll span{font-size:22px;letter-spacing:.08em}.poem-picker{padding-bottom:4px}.poem-picker button,.category-tabs button{min-height:50px}

.category-tabs{padding:3px 2px 7px}.idiom-grid{gap:12px}.idiom-card{position:relative;min-height:204px;padding:20px 17px 16px;border-radius:19px;background:linear-gradient(150deg,#fffdf7,#e3f0ed)}.idiom-card:nth-child(2n){background:linear-gradient(150deg,#fffdf7,#f2e7dc)}.idiom-card .card-index{position:absolute;right:14px;top:13px;color:rgba(23,51,74,.3);font-size:11px;font-weight:900;letter-spacing:.12em}.idiom-card>b{font-size:25px;line-height:1.25}.idiom-card p{padding-top:9px;border-top:1px solid rgba(23,51,74,.08)}

.achievement-overview{display:grid;grid-template-columns:1.2fr .9fr .9fr;gap:10px}.achievement-overview>div{min-height:112px;padding:14px 10px;border:1px solid var(--exp-border);border-radius:19px;background:rgba(255,253,247,.95);display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1px 9px;box-shadow:0 7px 18px rgba(23,51,74,.05)}.achievement-overview span{grid-row:1/3;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#f6e8bd;color:#9b6618}.achievement-overview>div:nth-child(2) span{background:#f2e3d7;color:#9b542d}.achievement-overview>div:nth-child(3) span{background:#dcece8;color:var(--exp-teal)}.achievement-overview b{font-size:28px;line-height:1;color:var(--exp-ink)}.achievement-overview small{font-size:12px;color:var(--exp-muted)}
.achievement-section{padding-top:3px}.badge-grid{gap:10px}.badge{min-height:132px;border-radius:18px}.badge.is-earned{background:linear-gradient(150deg,#fff7ce,#ebd58c);box-shadow:0 7px 18px rgba(102,76,19,.08)}.checkin-grid>span{min-height:58px;border-radius:13px}.reward-list article{min-height:72px;border-radius:17px}.reward-list button{min-height:50px}

@media(max-width:560px){
  .child-app{padding-inline:14px}
  .quest-scene{min-height:224px;grid-template-columns:minmax(0,1fr) 120px}
  .quest-scene:before{background:linear-gradient(90deg,rgba(251,251,240,.98) 0%,rgba(251,251,240,.94) 55%,rgba(251,251,240,.28) 82%,rgba(251,251,240,.08) 100%)}
  .quest-scene__copy{padding:22px 0 22px 20px}.quest-scene__copy h2{font-size:26px;max-width:15ch}.quest-scene__copy>p:last-of-type{font-size:15px;max-width:26ch}.quest-scene__art{inset:0 0 0 48%;background-position:62% center}.quest-scene--home{min-height:238px}.quest-scene--home .quest-scene__art{background-position:67% center}.scene-chips{max-width:290px}
  .quest-grid{grid-template-columns:1fr 1fr;grid-template-areas:"main main" "green blue" "coral coral"}.quest-card--yellow{min-height:138px;grid-template-columns:52px 1fr auto;grid-template-rows:auto 1fr}.quest-card--yellow .quest-card__number{grid-column:1/-1}.quest-card--yellow .quest-card__status{grid-column:3;grid-row:2;align-self:center}.quest-card--green,.quest-card--blue{min-height:158px}.quest-card--coral{min-height:116px}
  .achievement-overview{grid-template-columns:1fr 1fr}.achievement-overview>div:first-child{grid-column:1/-1}.badge-grid{grid-template-columns:repeat(2,1fr)}
  .idiom-grid{grid-template-columns:1fr}.idiom-card{min-height:176px}
}
@media(max-width:410px){
  .child-topbar{grid-template-columns:50px minmax(0,1fr) 70px}.child-topbar h1{font-size:22px}
  .quest-scene{min-height:238px;grid-template-columns:minmax(0,1fr) 88px}.quest-scene__copy{padding-left:17px}.quest-scene__copy h2{font-size:24px}.quest-scene__copy>p:last-of-type{max-width:23ch}.quest-scene__art{inset:0 0 0 54%}
  .quest-grid{grid-template-columns:1fr;grid-template-areas:"main" "green" "blue" "coral"}.quest-card--yellow,.quest-card--green,.quest-card--blue,.quest-card--coral{min-height:118px;grid-template-columns:52px 1fr auto;grid-template-rows:auto 1fr}.quest-card .quest-card__number{grid-column:1/-1}.quest-card .quest-card__status{grid-column:3;grid-row:2;align-self:center}.quest-card--coral .quest-card__number{display:block}
  .dictation-card{padding-inline:17px}.dictation-controls{grid-template-columns:1fr 1.15fr 1fr}.control-button{font-size:13px}.secondary-actions{grid-template-columns:1fr}
  .camera-guide__title{display:block}.camera-guide__title h2{max-width:none;margin-top:5px;text-align:left}.photo-previews{grid-template-columns:1fr}.photo-previews img{height:220px}
  .state-actions,.button-row{grid-template-columns:1fr}.mistake-card{grid-template-columns:42px 1fr 18px}.mistake-count{grid-column:2}.mistake-arrow{grid-column:3;grid-row:1/3}.workbench-heading{align-items:flex-start}.workbench-heading small{max-width:15ch}
  .result-row{grid-template-columns:38px minmax(0,1fr)}.result-row>strong{grid-column:2}.result-summary>div{min-height:72px}.result-summary strong{font-size:24px}
  .result-summary--positive{grid-template-columns:1fr}.result-summary--positive>div:last-child strong{font-size:19px}
  .achievement-overview{grid-template-columns:1fr}.achievement-overview>div:first-child{grid-column:auto}.reward-list article{align-items:flex-start;flex-direction:column}.reward-list button{width:100%}
}
@media(prefers-reduced-motion:reduce){.quest-card:hover,.mistake-card:hover{transform:none}.quest-scene__art{transform:none}}

/* Each route is illustrated, while a soft paper gradient keeps the labels clear. */
.quest-card:after{display:none}
.quest-card--yellow{background:linear-gradient(90deg,#fff8dc 0%,rgba(255,248,220,.98) 42%,rgba(255,248,220,.66) 70%,rgba(255,248,220,.12) 100%),url('/assets/quest-dictation.jpg') 78% center/cover no-repeat}
.quest-card--green{background:linear-gradient(90deg,#eaf6e9 0%,rgba(234,246,233,.96) 42%,rgba(234,246,233,.65) 70%,rgba(234,246,233,.12) 100%),url('/assets/quest-writing-v2.jpg') 78% center/cover no-repeat}
.quest-card--blue{background:linear-gradient(90deg,#e9f5fa 0%,rgba(233,245,250,.96) 42%,rgba(233,245,250,.66) 70%,rgba(233,245,250,.12) 100%),url('/assets/quest-poetry.jpg') 78% center/cover no-repeat}
.quest-card--coral{background:linear-gradient(90deg,#fff1e7 0%,rgba(255,241,231,.97) 42%,rgba(255,241,231,.66) 70%,rgba(255,241,231,.12) 100%),url('/assets/quest-idioms.jpg') 75% center/cover no-repeat}
.quest-card__status{background:rgba(255,253,247,.94);box-shadow:0 2px 8px rgba(23,51,74,.08)}
.mistake-card{grid-template-columns:48px minmax(0,1fr) 20px}
.quest-scene--home:after{content:"";position:absolute;z-index:0;right:6px;bottom:-6px;width:110px;height:160px;background:url('/assets/quest-mascot-small.png') center bottom/contain no-repeat;filter:drop-shadow(0 6px 5px rgba(23,51,74,.16));pointer-events:none}
@media(max-width:410px){.quest-scene--home:after{right:0;width:96px;height:142px}.quest-card{background-position:80% center}.mistake-card{grid-template-columns:42px minmax(0,1fr) 18px}}

/* B 版卡通闯关风：所有规则限定在孩子端，避免污染家长端。 */
body:has(.child-app){background:#73c9ff}
body:has(.child-app) #toast{
  border:3px solid #fff4bb;
  border-radius:18px;
  color:#fff;
  background:linear-gradient(180deg,#5b4a3d,#35281f);
  box-shadow:0 6px 0 rgba(57,39,22,.32),0 14px 32px rgba(23,48,61,.25);
  font-weight:900;
}
.child-app{
  --b-ink:#582d12;
  --b-blue:#149ff4;
  --b-blue-dark:#0873cb;
  --b-green:#68ce27;
  --b-green-dark:#3a9d12;
  --b-yellow:#ffd337;
  --b-orange:#ff7a21;
  --b-red:#f2554d;
  --b-cream:#fff9e9;
  --b-line:#efc973;
  --b-shadow:0 7px 0 rgba(164,103,30,.2),0 16px 30px rgba(40,91,92,.16);
  max-width:760px;
  padding-inline:18px;
  padding-bottom:calc(118px + env(safe-area-inset-bottom));
  color:var(--b-ink);
  background:
    linear-gradient(180deg,rgba(110,202,255,.08),rgba(190,239,91,.78) 44%,#91db36 100%),
    url('/assets/b-landscape.webp') center top/auto 760px no-repeat,
    #bdec67;
  font-family:"Microsoft YaHei UI","PingFang SC","Microsoft YaHei",sans-serif;
}
.child-app .child-content{gap:20px}
.child-app .child-topbar{min-height:88px;grid-template-columns:58px minmax(0,1fr) 84px}
.child-app .child-topbar h1{
  color:#643514;
  font-size:28px;
  font-weight:950;
  letter-spacing:.02em;
  text-shadow:0 2px 0 #fff8dc;
}
.child-app .icon-button,.child-app .star-pill{
  min-width:54px;
  min-height:54px;
  border:3px solid #fff;
  border-radius:20px;
  color:#8a4a0c;
  background:linear-gradient(180deg,#fffbea,#ffeaa9);
  box-shadow:0 5px 0 #dcad43,0 10px 18px rgba(75,69,31,.18);
}
.child-app .star-pill svg{color:#e89000;fill:#ffd52c}
.child-app .panel,.child-app .dictation-card,.child-app .camera-guide,.child-app .writing-workbench,
.child-app .poem-scroll,.child-app .achievement-overview>div,.child-app .reward-list article{
  border:3px solid rgba(255,255,255,.9);
  background:rgba(255,251,232,.97);
  box-shadow:var(--b-shadow);
}

/* 通用关卡头图 */
.child-app .quest-scene{
  min-height:228px;
  border:4px solid rgba(255,255,255,.92);
  border-radius:30px;
  background:#65caff;
  box-shadow:0 8px 0 #3b9dcc,0 20px 38px rgba(29,83,101,.25);
}
.child-app .quest-scene:before{
  background:linear-gradient(90deg,rgba(255,250,226,.98) 0%,rgba(255,250,226,.94) 48%,rgba(255,250,226,.32) 72%,rgba(255,250,226,.06) 100%);
}
.child-app .quest-scene__copy{padding:26px 8px 26px 28px}
.child-app .quest-scene__copy .eyebrow{color:#ee671a;font-size:14px!important;letter-spacing:.06em}
.child-app .quest-scene__copy h2{color:#5a2d10;font-size:31px;font-weight:950;text-shadow:0 2px 0 #fff}
.child-app .quest-scene__copy>p:last-of-type{color:#654a36;font-weight:700}
.child-app .quest-scene__art{filter:saturate(1.22) contrast(1.03)}
.child-app .scene-chips span{
  border:2px solid #efc96f;
  color:#734015;
  background:#fff8d7;
  box-shadow:0 3px 0 rgba(191,133,36,.16);
}
.child-app .quest-scene--home{min-height:310px}
.child-app .quest-scene--home .quest-scene__art{
  inset:0;
  background-image:url('/assets/b-adventure-hero.webp');
  background-position:center;
  background-size:cover;
}
.child-app .quest-scene--home:before{background:linear-gradient(90deg,transparent 0 39%,rgba(255,249,221,.35) 48%,rgba(255,249,221,.94) 59%,rgba(255,249,221,.98) 100%)}
.child-app .quest-scene--home .quest-scene__copy{position:absolute;left:52%;right:18px;top:50%;margin:0;padding:0;transform:translateY(-50%)}
.child-app .quest-scene--home .quest-scene__copy h2{font-size:27px}
.child-app .quest-scene--home:after{display:none}
.child-app .quest-scene--dictation .quest-scene__art{background-image:url('/assets/b-dictation.webp')}
.child-app .quest-scene--photo .quest-scene__art,.child-app .quest-scene--writing .quest-scene__art,.child-app .quest-scene--practice .quest-scene__art{background-image:url('/assets/b-writing.webp');filter:saturate(1.2)}
.child-app .quest-scene--poetry .quest-scene__art{background-image:url('/assets/b-poetry.webp')}
.child-app .quest-scene--idioms .quest-scene__art{background-image:url('/assets/b-idioms.webp')}
.child-app .quest-scene--rewards .quest-scene__art{background-image:url('/assets/b-adventure-hero.webp');background-position:58% center}
.child-app .quest-scene--results .quest-scene__art{background-image:url('/assets/b-dictation.webp');background-position:center}
.child-app .quest-scene--review .quest-scene__art{background-image:url('/assets/b-writing.webp');background-position:center}
.child-app .quest-scene--poetry .quest-scene__art,.child-app .quest-scene--idioms .quest-scene__art,.child-app .quest-scene--rewards .quest-scene__art,.child-app .quest-scene--results .quest-scene__art{filter:saturate(1.3) contrast(1.04)}

/* 透明 B 版铅笔吉祥物：加载、空状态、成就页统一。 */
.child-app .pencil-mascot,
.child-app .state-panel .pencil-mascot,
.child-app .hero-panel .pencil-mascot,
.child-app .collection-head .pencil-mascot,
.child-app .star-vault>.pencil-mascot{
  width:132px;
  height:166px;
  background:url('/assets/b-pencil-mascot.webp') center bottom/contain no-repeat;
  filter:drop-shadow(0 8px 5px rgba(93,62,23,.2));
  transform:none;
}
.child-app .pencil-mascot:before,.child-app .pencil-mascot:after{content:none}
.child-app .pencil-mascot>*{display:none}

/* 首页任务地图与彩色任务卡 */
.child-app .quest-summary{
  border:3px solid #fff;
  border-radius:24px;
  background:linear-gradient(180deg,#fffdf2,#fff4c9);
  box-shadow:0 6px 0 #d7aa49,0 13px 25px rgba(74,89,39,.16);
}
.child-app .quest-summary__main strong{color:#f06a1b}
.child-app .quest-summary__track{height:14px;border:2px solid #d9c583;background:#efe7cb}
.child-app .quest-summary__track i{background:linear-gradient(90deg,#ffb51a,#63d429);box-shadow:inset 0 2px 2px rgba(255,255,255,.7)}
.child-app .section-heading h2{color:var(--b-ink);font-size:27px;font-weight:950;text-shadow:0 2px 0 #fff}
.child-app .section-kicker{color:#ef681b!important}
.child-app .quest-grid{grid-template-columns:1fr 1fr;grid-template-areas:"main green" "blue coral";gap:16px}
.child-app .quest-card{
  min-height:210px;
  padding:18px;
  border:4px solid rgba(255,255,255,.88);
  border-radius:28px;
  box-shadow:0 7px 0 rgba(83,90,36,.22),0 14px 24px rgba(39,85,65,.18);
  grid-template-columns:58px minmax(0,1fr);
  grid-template-rows:auto 1fr auto;
  color:var(--b-ink);
}
.child-app .quest-card--yellow{grid-area:main;background:linear-gradient(180deg,rgba(255,219,62,.88),rgba(255,244,174,.93)),url('/assets/b-dictation.webp') center/cover}
.child-app .quest-card--green{grid-area:green;background:linear-gradient(180deg,rgba(119,224,58,.84),rgba(221,249,170,.94)),url('/assets/b-writing.webp') center/cover}
.child-app .quest-card--blue{grid-area:blue;background:linear-gradient(180deg,rgba(71,189,248,.84),rgba(206,241,255,.94)),url('/assets/b-poetry.webp') center/cover}
.child-app .quest-card--coral{grid-area:coral;background:linear-gradient(180deg,rgba(255,121,112,.84),rgba(255,219,200,.94)),url('/assets/b-idioms.webp') center/cover}
.child-app .quest-card__number{color:rgba(91,45,14,.58);font-size:13px}
.child-app .quest-card__icon{
  width:54px;height:54px;
  border:3px solid #fff;
  border-radius:50%;
  color:#fff;
  background:linear-gradient(180deg,#3ebaf8,#1383dc);
  box-shadow:0 4px 0 #0865b4;
}
.child-app .quest-card--green .quest-card__icon{background:linear-gradient(#70d838,#34a513);box-shadow:0 4px 0 #24820b}
.child-app .quest-card--coral .quest-card__icon{background:linear-gradient(#ff756b,#e7443f);box-shadow:0 4px 0 #bd2d2b}
.child-app .quest-card b{color:#57280d;font-size:25px;font-weight:950;text-shadow:0 2px 0 rgba(255,255,255,.8)}
.child-app .quest-card small{color:#654632;font-weight:750}
.child-app .quest-card__status{border:2px solid #fff;background:linear-gradient(#fffdf4,#ffeeb8);color:#76420d;box-shadow:0 3px 0 rgba(174,121,37,.25)}
.child-app .quest-card__status{white-space:nowrap;min-width:max-content}
.child-app .quest-card.is-complete .quest-card__status{background:linear-gradient(#8ee65c,#59c827);color:#174f0b}
.child-app .progress-note,.child-app .instruction-note{
  border:3px solid #fff;
  background:linear-gradient(180deg,#fff9d4,#ffe99b);
  box-shadow:0 5px 0 #dda83b;
}
.child-app .child-nav{
  bottom:6px;
  width:min(740px,calc(100% - 12px));
  border:3px solid #fff;
  border-radius:28px;
  background:rgba(255,251,230,.97);
  box-shadow:0 7px 0 #d4a647,0 15px 34px rgba(48,66,39,.26);
}
.child-app .child-nav button{min-height:64px;border-radius:18px;color:#9b8666}
.child-app .child-nav button:not(.is-active){color:#59452e}
.child-app .child-nav button.is-active{color:#9a4d05;background:linear-gradient(#ffe65b,#ffc82d);box-shadow:0 4px 0 #db9513}

/* 听写、拍照和按钮统一成立体糖果按钮。 */
.child-app .dictation-card{border-radius:30px;background:linear-gradient(180deg,#fffdf2,#fff5d9)}
.child-app .dictation-card:before{color:rgba(240,105,27,.34)}
.child-app .step-map{height:16px;border:2px solid #d4c8a8;background:#ebe5d4}
.child-app .step-map i{background:linear-gradient(90deg,#ffd22d,#5ed329)}
.child-app .dictation-count strong{color:#ff681d;font-size:72px;text-shadow:0 3px 0 #ffd2ae}
.child-app .sound-orb{
  width:220px;height:220px;
  border:6px solid #fff;
  color:#148ded;
  background:radial-gradient(circle at 34% 27%,#fff 0,#e8f6ff 38%,#bde5ff 100%);
  box-shadow:inset 0 -8px 0 rgba(33,129,205,.12),0 8px 0 #86c8ed,0 17px 34px rgba(26,113,171,.25);
}
.child-app .pinyin-hint{border:2px solid #c5dff1;background:#eef8ff}
.child-app .text-button{color:#0972c8;font-weight:900}
.child-app .control-button,.child-app .secondary-actions button{
  border:3px solid #fff;
  border-radius:22px;
  background:linear-gradient(#fffdf2,#ffe8a0);
  color:#713c10;
  box-shadow:0 5px 0 #d5a03b;
}
.child-app .control-button--primary{background:linear-gradient(#39b8ff,#1688e3);color:#fff;box-shadow:0 6px 0 #0866b7}
.child-app .primary-button,.child-app .capture-button,.child-app .outline-button{
  min-height:62px;
  border:3px solid #fff;
  border-radius:21px;
  font-weight:950;
}
.child-app .primary-button,.child-app .capture-button{background:linear-gradient(#42bfff,#1488e8);box-shadow:0 6px 0 #0863b2,0 12px 20px rgba(15,102,177,.2)}
.child-app .outline-button{border-color:#fff;background:linear-gradient(#fff8d9,#ffdc62);color:#793d08;box-shadow:0 6px 0 #d79a22}
.child-app .primary-button:disabled{filter:grayscale(.35);opacity:.58;box-shadow:0 4px 0 #7692a0}

/* 拍照、批改、结果、错字本、练字 */
.child-app .camera-guide{border-radius:26px;background:linear-gradient(145deg,#fffdf0,#eaf9d4)}
.child-app .camera-step{color:#ef681b}
.child-app .camera-guide li{border:2px solid #d8e8ad;background:#fbffe9}
.child-app .camera-guide li>span{background:linear-gradient(#78db3d,#43b719);color:#fff;box-shadow:0 3px 0 #2e9210}
.child-app .photo-empty{border:3px dashed #70b7d7;background:#effaff}
.child-app .photo-empty__icon{background:#ccebfb;color:#0877c8}
.child-app .grade-row,.child-app .result-row,.child-app .mistake-card{
  border:3px solid #fff;
  border-radius:22px;
  background:#fffdf1;
  box-shadow:0 5px 0 rgba(194,140,55,.26),0 11px 19px rgba(61,82,48,.1);
}
.child-app .grade-row.is-correct,.child-app .result-row.is-correct{background:linear-gradient(90deg,#edffe2,#ccf5b6);border-color:#fff}
.child-app .grade-row.is-practice,.child-app .result-row.is-practice{background:linear-gradient(90deg,#fff7d4,#ffe0a2);border-color:#fff}
.child-app .grade-row__index,.child-app .mistake-rank{background:linear-gradient(#ffd84c,#ffad1e);color:#713902;box-shadow:0 3px 0 #d37b0d}
.child-app .segment-control{border:2px solid #e3cf96;background:#fff2c6}
.child-app .segment-control button.is-active{background:linear-gradient(#68d837,#32a50f);box-shadow:0 3px 0 #218008}
.child-app .grade-row.is-practice .segment-control button.is-active{background:linear-gradient(#ff9a35,#ed6519);box-shadow:0 3px 0 #bc480c}
.child-app .result-score{border:3px solid #fff;background:linear-gradient(#ffe451,#ffb91e);box-shadow:0 5px 0 #d8890b}
.child-app .result-score strong{color:#8b3f00}
.child-app .result-summary>div{border:3px solid #fff;background:#fff9da;box-shadow:0 4px 0 #deb34e}
.child-app .result-summary--positive>div:last-child{background:linear-gradient(#eaffdb,#c9f2af)}
.child-app .reward-banner{border:3px solid #fff;background:linear-gradient(135deg,#fff069,#ffc72d);box-shadow:0 6px 0 #d68c12}
.child-app .mistake-card{min-height:104px;background:linear-gradient(90deg,#fffdf0,#fff0c4)}
.child-app .mistake-card b{color:#5a2b10;font-size:28px}
.child-app .mistake-arrow{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(#ffbd32,#f37c16);box-shadow:0 4px 0 #c85a09}
.child-app .writing-workbench{border-radius:28px;background:linear-gradient(180deg,#fffdf1,#fff1ce)}
.child-app .tian-grid{border:5px solid #f57c4d;background:#fffdf6;box-shadow:inset 0 0 0 8px #fff5dd,0 8px 0 #d95831,0 18px 32px rgba(93,54,28,.16)}
.child-app .workbench-heading strong{color:#ef681b}

/* 古诗、成语、星星与各类状态 */
.child-app .level-path:before{border-color:#fff;border-width:5px;filter:drop-shadow(0 3px 0 #a0a0a0)}
.child-app .level-path b{width:58px;height:58px;border:4px solid #fff;background:linear-gradient(#bababa,#838383);color:#fff;box-shadow:0 5px 0 #666}
.child-app .level-path span.is-current b{background:linear-gradient(#ffe457,#ffb51f);color:#713400;box-shadow:0 5px 0 #d87e08,0 0 0 5px #fff6b5}
.child-app .level-path span.is-done b{background:linear-gradient(#75dc41,#38af17);box-shadow:0 5px 0 #24890e}
.child-app .poem-scroll{border-radius:28px;background:linear-gradient(160deg,#fffdf0,#fff0c3);box-shadow:0 7px 0 #d6a649,0 16px 28px rgba(91,63,29,.16)}
.child-app .poem-scroll h2{color:#5a2b10;font-size:34px}
.child-app .poem-scroll span{color:#4b2b19;font-size:23px;font-weight:700}
.child-app .poem-picker button,.child-app .category-tabs button{
  min-height:52px;border:3px solid #fff;border-radius:18px;background:linear-gradient(#fff9df,#ffe48d);color:#6e3c12;box-shadow:0 4px 0 #d49d31;font-weight:900;
}
.child-app .poem-picker button.is-active,.child-app .category-tabs button[aria-selected="true"]{border-color:#fff;background:linear-gradient(#42baff,#1587df);box-shadow:0 4px 0 #0963b0}
.child-app .poem-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:10px}
.child-app .poem-picker>button{min-width:0;padding:8px 10px;line-height:1.25}
.child-app .poem-picker__pager{grid-column:1/-1;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
.child-app .poem-picker__pager span{color:#65401f;font-size:15px;font-weight:900;text-align:center}
.child-app .poem-picker__pager button:disabled{opacity:.45;box-shadow:none;cursor:default}
.child-app .idiom-card{
  min-height:214px;
  border:3px solid #fff;
  border-radius:24px;
  background:linear-gradient(155deg,#fffbea,#d9f5ff);
  box-shadow:0 6px 0 #68abd0,0 13px 22px rgba(36,82,99,.15);
}
.child-app .idiom-card:nth-child(2n){background:linear-gradient(155deg,#fffbea,#ffe0c2);box-shadow:0 6px 0 #e59a58,0 13px 22px rgba(88,58,29,.13)}
.child-app .idiom-card>b{color:#632d0e;font-size:27px}
.child-app .idiom-card.is-locked{filter:grayscale(.8);opacity:.72;box-shadow:0 5px 0 #999}
.child-app .idiom-grid>.state-panel{grid-column:1/-1;width:100%}
.child-app .achievement-overview>div{border-radius:22px;background:linear-gradient(#fffdf2,#ffefaa)}
.child-app .achievement-overview span{border:2px solid #fff;background:linear-gradient(#ffe052,#ffb720);color:#a95800;box-shadow:0 3px 0 #d58108}
.child-app .badge{border:3px solid #fff;border-radius:22px;background:linear-gradient(#ddd,#aaa);box-shadow:0 5px 0 #808080}
.child-app .badge:not(.is-earned){color:#3e4642;background:linear-gradient(#e4e6e4,#c7cbc8)}
.child-app .badge:not(.is-earned) small{color:#46504b}
.child-app .badge.is-earned{background:linear-gradient(#fff477,#ffc52b);color:#6d3505;box-shadow:0 6px 0 #d9890c}
.child-app .checkin-grid>span{border:2px solid #fff;background:#eee8d6;box-shadow:0 3px 0 #b9ad91}
.child-app .checkin-grid>span.is-on{background:linear-gradient(#7fe24b,#43b91c);color:#154f08;box-shadow:0 3px 0 #2b8d11}
.child-app .checkin-grid>span.is-on small{color:#143f0d;font-weight:900}
.child-app .reward-list article{border-radius:22px;background:linear-gradient(90deg,#fffdf1,#fff0b8)}
.child-app .reward-list button{border:2px solid #fff;background:linear-gradient(#ffd843,#ffae18);color:#713700;box-shadow:0 4px 0 #d67808}
.child-app .state-panel{border-radius:30px;background:linear-gradient(160deg,#fffdf0,#e9f8cd)}
.child-app .state-panel--error{background:linear-gradient(160deg,#fff7e8,#ffd7bd)}
.child-app .state-symbol{border:3px solid #fff;color:#fff;background:linear-gradient(#ff7f5e,#ec493f);box-shadow:0 5px 0 #b72d28}
.child-app .empty-inline{border:3px solid #fff;background:#fff7cf;box-shadow:0 4px 0 #d5aa42}
.child-app .loading-track{border:2px solid #caaa56;background:#fff0be}
.child-app .loading-track i{background:linear-gradient(90deg,#ffbf20,#64d22c)}

.child-app button,.child-app .capture-button{transition:transform .18s ease,filter .18s ease}
.child-app button:hover,.child-app .capture-button:hover{filter:saturate(1.08) brightness(1.03)}
.child-app button:focus-visible,.child-app .capture-button:focus-within{outline:4px solid #083f83;outline-offset:4px}

@media(max-width:560px){
  .child-app{padding-inline:13px;background-size:auto 660px,auto 660px,auto}
  .child-app .quest-scene--home{min-height:286px}
  .child-app .quest-scene--home .quest-scene__copy{left:48%;right:14px;padding:0}
  .child-app .quest-scene--home .quest-scene__copy h2{font-size:26px}
  .child-app .quest-scene--home .quest-scene__copy>p:last-of-type{font-size:14px}
  .child-app .quest-grid{grid-template-areas:"main green" "blue coral"}
  .child-app .quest-card{min-height:190px;grid-template-columns:50px minmax(0,1fr);grid-template-rows:auto 1fr auto}
  .child-app .quest-card .quest-card__status{grid-column:1/-1;grid-row:auto;justify-self:end}
  .child-app .quest-card b{font-size:22px}
  .child-app .quest-card small{font-size:14px}
}
@media(max-width:410px){
  .child-app .child-topbar{grid-template-columns:52px minmax(0,1fr) 92px;gap:7px}.child-app .child-topbar h1{font-size:22px}.child-app .star-pill{min-width:86px;padding-inline:9px;font-size:16px}
  .child-app .quest-scene--home{min-height:300px}.child-app .quest-scene--home:before{background:linear-gradient(90deg,rgba(255,249,221,0) 0 44%,rgba(255,249,221,.5) 55%,rgba(255,249,221,.97) 72%,rgba(255,249,221,.99) 100%)}
  .child-app .quest-scene--home .quest-scene__art{background-position:left center}.child-app .quest-scene--home .quest-scene__copy{left:50%;right:10px;top:50%;bottom:auto;min-width:0;padding:12px 10px 13px;border:2px solid rgba(255,255,255,.72);border-radius:18px;background:rgba(255,249,221,.9);box-shadow:0 4px 0 rgba(194,135,31,.2);transform:translateY(-50%)}.child-app .quest-scene--home .quest-scene__copy .eyebrow{font-size:11px!important;letter-spacing:0}.child-app .quest-scene--home .quest-scene__copy h2{max-width:none;margin:3px 0 5px;font-size:20px;line-height:1.18;overflow-wrap:anywhere}.child-app .quest-scene--home .quest-scene__copy>p:last-of-type{display:block;max-width:none;margin:0;color:#5b402c;font-size:11px;line-height:1.35;font-weight:750}.child-app .quest-scene--home .scene-chips{display:grid;grid-template-columns:1fr;margin-top:6px;gap:4px}.child-app .quest-scene--home .scene-chips span{min-width:0;padding:3px 6px;font-size:11px;line-height:1.2;text-align:center;white-space:normal}
  .child-app .quest-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"main green" "blue coral";gap:10px}
  .child-app .quest-card{min-height:224px;padding:102px 10px 11px;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto 1fr auto;border-width:3px;border-radius:23px;background-position:center top;background-size:auto 132px;background-repeat:no-repeat}
  .child-app .quest-card--yellow{background-image:linear-gradient(180deg,rgba(255,255,255,.02) 0 38%,rgba(255,224,75,.82) 57%,#fff0a7 100%),url('/assets/b-dictation.webp')}
  .child-app .quest-card--green{background-image:linear-gradient(180deg,rgba(255,255,255,.02) 0 38%,rgba(118,219,56,.8) 57%,#dff6a9 100%),url('/assets/b-writing.webp')}
  .child-app .quest-card--blue{background-image:linear-gradient(180deg,rgba(255,255,255,.02) 0 38%,rgba(55,176,241,.79) 57%,#ccefff 100%),url('/assets/b-poetry.webp')}
  .child-app .quest-card--coral{background-image:linear-gradient(180deg,rgba(255,255,255,.02) 0 38%,rgba(255,111,103,.78) 57%,#ffd5c1 100%),url('/assets/b-idioms.webp')}
  .child-app .quest-card .quest-card__number{position:absolute;left:10px;top:9px;grid-column:auto;padding:3px 6px;border-radius:9px;background:rgba(255,255,255,.85);font-size:10px}
  .child-app .quest-card__icon{width:36px;height:36px;border-width:2px}.child-app .quest-card__icon svg{width:23px;height:23px}
  .child-app .quest-card>span:nth-child(3){align-self:center}.child-app .quest-card b{font-size:19px;white-space:nowrap}.child-app .quest-card small{font-size:12px;line-height:1.3}
  .child-app .quest-card .quest-card__status{grid-column:1/-1;grid-row:3;align-self:end;justify-self:stretch;justify-content:center;min-height:34px;padding:4px 8px}
  .child-app .sound-orb{width:190px;height:190px}
  .child-app .state-actions,.child-app .button-row{grid-template-columns:1fr}
  .child-app .grade-row{grid-template-columns:38px 1fr}.child-app .grade-row .segment-control{grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){.child-app button:hover{transform:none}.child-app .pencil-mascot{animation:none}}

/* 插画只占卡片上部，彩色底板贯穿整张卡，不透出页面草地。 */
@media(max-width:410px){
  .child-app .quest-card{background-size:100% 100%,100% 132px}
  .child-app .quest-card--yellow{background-color:#fff0a7}
  .child-app .quest-card--green{background-color:#dff6a9}
  .child-app .quest-card--blue{background-color:#ccefff}
  .child-app .quest-card--coral{background-color:#ffd5c1}
}
