@font-face{font-family:Nunito;src:url("/assets/nunito-bold.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:Nunito;src:url("/assets/nunito-medium.woff2") format("woff2");font-weight:400 600;font-display:swap}
:root{--bg:#f5f6f0;--paper:#fffefa;--ink:#243b32;--muted:#46564a;--line:#d9dfd5;--action:#b84728;--tint:#f9ede4;--green:#356b4c;--radius:16px;--font:Nunito,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}
html{color-scheme:light;scroll-behavior:auto}
body{margin:0;background:var(--bg);color:var(--ink);font:500 16px/1.6 var(--font);-webkit-font-smoothing:antialiased}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer;transition:background .18s,transform .18s,border-color .18s}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible{outline:3px solid var(--action);outline-offset:4px}
button:enabled:active{transform:translateY(2px)}
a{color:inherit;text-underline-offset:5px}
a:hover{color:var(--action)}
[hidden]{display:none!important}
img{display:block;max-width:100%}
.wrap{width:min(1080px,calc(100% - 64px));margin-inline:auto}
.skip-link{position:fixed;top:8px;left:16px;transform:translateY(-180%);z-index:10;padding:12px 20px;background:var(--paper)}
.skip-link:focus{transform:translateY(0)}
.site-header{border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:94px}
.brand{display:flex;align-items:center;gap:12px}
.fox{width:52px;height:auto}
h1{font-size:22px;line-height:1.4;letter-spacing:-.5px;margin:0;font-weight:700}
.brand p{font-size:13px;color:var(--muted);margin:2px 0 0}
.study-clock{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.study-clock b{color:var(--ink);font-weight:700}
.clock-mark{width:8px;height:8px;border:2px solid var(--green);border-radius:50%}
.collection{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;padding:22px 0;border-bottom:1px solid var(--line);min-height:101px}
.collection-heading{display:flex;align-items:baseline;gap:10px}
.collection h2{font-size:16px;margin:0}
#collectionProgress{color:var(--muted);font-size:13px;white-space:nowrap}
.collection-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:8px 0;min-height:44px;border:0;background:none;font-size:14px;white-space:nowrap}
.collection-button:hover{color:var(--action);transform:translateY(-1px)}
.recent-badges{display:flex;gap:8px;align-items:center;list-style:none;padding:0;margin:0;min-width:0}
.recent-badges .badge{display:flex;align-items:center;gap:5px;min-height:42px;padding:5px 9px;background:#e9eee2;border:0;border-radius:8px}
.recent-badges .badge-icon{font-size:23px;line-height:1}
.recent-badges .badge-name{font-size:12px;max-width:5em}
.empty-badges{font-size:14px;color:var(--muted)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:36px;padding-top:22px;padding-bottom:40px}
.exercise-column{min-width:0}
.trail{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;min-height:32px}
.trail small{font-size:14px;color:var(--muted)}
.keys{display:flex;gap:8px}
.key{width:32px;height:32px;display:grid;place-items:center;border:1px solid #c6cec2;border-radius:50%;font-size:17px;color:#859280;background:transparent}
.key.got{background:#ffedc2;border-color:#c6a35c;animation:pop .4s ease-out}
.card{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px 32px 16px;box-shadow:0 3px 0 #e6e8de}
.question-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.chapter{font-size:13px;color:var(--muted);margin:0}
.read{display:flex;align-items:center;gap:7px;flex:none;min-height:44px;padding:8px 12px;background:transparent;border:1px solid var(--line);border-radius:8px;font-size:14px}
.read:hover:enabled{background:#eef1e8;border-color:#98aa95;transform:translateY(-1px)}
.read:disabled{opacity:.5}
.question-copy{margin-top:24px}
.story{font-size:22px;line-height:1.7;font-weight:700;letter-spacing:.2px;margin:0}
.story:focus-visible{outline:2px solid var(--action);outline-offset:6px}
.pinyin{font-size:15px;font-weight:500;line-height:1.7;color:var(--muted);margin:10px 0 0;max-width:56ch}
.equation{font-size:clamp(48px,5vw,66px);font-weight:700;font-variant-numeric:tabular-nums;line-height:1.4;letter-spacing:1px;text-align:center;margin:26px 0 22px;white-space:nowrap}
.equation.equality{font-size:clamp(30px,3.4vw,43px)}
.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.answer{font-size:32px;font-weight:700;min-height:70px;border:1.5px solid #bcc9b8;border-bottom-width:4px;border-radius:10px;background:#eff3e8}
.answer:hover:enabled{border-color:var(--green);background:#e4eddb;transform:translateY(-2px)}
.answer.yes{background:#d9edce;border-color:#477a46;color:#244f28}
.answer.no{background:#c53042;color:white;border-color:#8d2232}
.answer.picked{background:#f9e5d7;border-color:var(--action)}
.choices.paired{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.answer-side{min-width:0;padding:0;margin:0;border:0}
.answer-side legend{font-size:13px;color:var(--muted);text-align:center;width:100%;padding:0 0 10px}
.side-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.side-options .answer{font-size:26px;min-height:58px}
.question-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-top:8px;border-top:1px solid #eceee5;min-height:60px}
.feedback{font-size:14px;margin:0;color:var(--muted)}
.hint{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;flex:none;padding:8px 0 8px 8px;border:0;background:none;color:var(--action);font-size:14px}
.hint:hover:enabled{transform:translateY(-1px);color:#81351f}
.journey{padding:50px 0 16px 24px;border-left:1px solid var(--line)}
.journey-head{display:flex;align-items:center;gap:10px;font-size:15px}
.journey-intro{color:var(--muted);font-size:14px;margin:12px 0 24px}
.learning-route{list-style:none;margin:0;padding:0}
.learning-route li{display:flex;align-items:flex-start;gap:12px;position:relative;padding:0 0 28px;color:#59685c;font-size:14px}
.learning-route li:not(:last-child):before{content:"";position:absolute;left:13px;top:29px;bottom:2px;width:1px;background:var(--line)}
.learning-route li>span{display:grid;place-items:center;width:28px;height:28px;flex:none;border:1px solid #bec9b7;border-radius:50%;font-size:12px}
.learning-route li small{display:block;font-size:12px;margin-top:3px;color:var(--muted)}
.learning-route li[aria-current="step"]{color:var(--action)}
.learning-route li[aria-current="step"]>span{border-color:var(--action);background:var(--tint)}
.learning-route li.done>span{background:#dce7d2;color:#33513a}
.rest-note{font-size:13px;line-height:1.9;color:var(--muted);margin:12px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.parent-notes{border-top:1px solid var(--line);padding:32px 0 36px}
.parent-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:24px}
.parent-heading h2{font-size:18px;margin:0}
.parent-heading p{font-size:14px;color:var(--muted);margin:0}
.parent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.parent-grid h3{font-size:15px;font-weight:700;margin:0 0 10px}
.parent-grid p{font-size:14px;color:var(--muted);line-height:1.9;margin:0}
.footer{border-top:1px solid var(--line);padding:20px 0 28px;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px}
.footer a{display:flex;align-items:center;min-height:44px;align-self:center}
dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:24px}
dialog::backdrop{background:#18291fc4;backdrop-filter:blur(3px)}
.collection-dialog{width:min(700px,calc(100% - 24px));max-height:85vh;max-height:85dvh;overflow:auto}
.collection-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px}
.collection-dialog h2{font-size:23px;margin:6px 0 0}
.collection-dialog-heading form{margin:0}
.badges{list-style:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0;padding:0}
.badge{min-width:0;border-radius:10px;background:#f7edd8;text-align:center;padding:14px 6px 10px}
.badge-icon{display:block;font-size:28px;line-height:1.3}
.badge-name{font-size:12px;display:block;margin-top:4px}
.badge.locked{background:#edf0e7;color:var(--muted);border:1px dashed #cbd2c3}
.break-card{width:min(430px,calc(100% - 24px));text-align:center;padding:32px;max-height:90vh;overflow:auto}
.break-card img{margin:0 auto 24px}
.break-card h2{font-size:22px;margin:0}
.break-card p{font-size:15px;color:var(--muted)}
.next{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:50px;padding:12px 24px;border:1px solid #963b23;border-bottom-width:4px;border-radius:10px;background:var(--action);color:#fff;font-size:16px}
.next:hover:enabled{background:#983c24;transform:translateY(-2px)}
.next:disabled{opacity:.5}
.reward{text-align:center;padding:12px 0 20px}
.reward .chapter{margin-bottom:20px}
.prize{font-size:26px;margin:18px 0 6px}
.reward>p:not(.chapter){font-size:15px;color:var(--muted);margin:0 0 24px}
.treasure-stage{position:relative;display:grid;place-items:center;width:200px;height:136px;margin:0 auto}
.chest{position:relative;z-index:1;font-size:94px;line-height:1}
.treasure-stage.found:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse,#ffe9a4,transparent 70%)}
.found .chest{animation:pop .55s ease-out}
.treasure-stars{position:absolute;inset:0;z-index:2;pointer-events:none;color:#a76912}
.treasure-stars span{position:absolute;font-size:var(--size);left:var(--left);top:var(--top);animation:twinkle 1.65s ease-in-out 3;animation-delay:var(--delay)}
.counter{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.group{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;background:#f8ecd7;border-radius:10px;padding:8px}
.group.second{background:#e5eedc}
.fruit{position:relative;width:44px;height:44px;font-size:27px;border:0;border-radius:7px;background:none;padding:0}
.fruit.counted{background:#fff}
.fruit span{position:absolute;right:-1px;bottom:-2px;font-size:11px;background:var(--ink);color:#fff;border-radius:7px;min-width:16px}
.hop{animation:hop .35s ease-out}
.spark{position:fixed;left:50%;top:50%;z-index:2;pointer-events:none;animation:burst .9s ease-out forwards}
@keyframes entrance{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
[data-enter]{animation:entrance .4s ease-out both}
@keyframes hop{40%{transform:translateY(-10px)}}
@keyframes pop{45%{transform:scale(1.18)}}
@keyframes twinkle{0%,100%{opacity:.4;transform:scale(.65)}50%{opacity:1;transform:scale(1.18)}}
@keyframes burst{to{transform:translate(var(--x),var(--y)) rotate(140deg);opacity:0}}
@media(max-width:1023px){
 .wrap{width:calc(100% - 48px)}
 .workspace{grid-template-columns:minmax(0,1fr) 220px;gap:24px}
 .journey{padding-left:20px}
 .card{padding:20px 24px 12px}
 .recent-badges .badge-name{display:none}
 .equation{font-size:52px}
 .equation.equality{font-size:32px}
}
@media(max-width:767px){
 .header-inner{min-height:76px}
 .brand{gap:8px}
 h1{font-size:19px}
 .brand p{font-size:12px}
 .fox{width:42px}
 .study-clock{font-size:12px}
 .clock-limit,.clock-mark{display:none}
 .workspace{display:block;padding-top:16px;padding-bottom:32px}
 .journey{display:none}
 .collection{gap:16px;min-height:88px}
 .collection-heading{gap:6px}
 .recent-badges{gap:5px}
 .recent-badges .badge{padding:4px 6px}
 .parent-grid{gap:20px}
 .parent-grid p{font-size:13px}
 .parent-heading p{display:none}
}
@media(max-width:599px){
 .wrap{width:calc(100% - 32px)}
 .header-inner{min-height:68px;gap:8px}
 .fox{width:37px}
 h1{font-size:17px;letter-spacing:0}
 .brand p{font-size:11px}
 .collection{grid-template-columns:1fr auto;gap:4px 8px;min-height:88px;padding:8px 0}
 .collection-heading{grid-column:1;grid-row:1}
 .collection h2{font-size:14px}
 .collection-button{font-size:13px;gap:5px}
 .collection>button{grid-column:2;grid-row:1 / span 2}
 .recent-badges{grid-column:1;grid-row:2;min-height:30px}
 .recent-badges .badge{min-height:28px;padding:2px 5px}
 .recent-badges .badge-icon{font-size:20px}
 .empty-badges{font-size:12px}
 .trail{margin-bottom:10px}
 .trail small{font-size:12px}
 .key{width:27px;height:27px;font-size:15px}
 .card{border-radius:14px;padding:12px 16px 8px}
 .chapter{font-size:12px}
 .read{font-size:13px;padding:7px 9px;gap:5px}
 .read img{width:18px;height:18px}
 .question-copy{margin-top:16px}
 .story{font-size:19px;line-height:1.7}
 .pinyin{font-size:14px;line-height:1.65;margin-top:8px}
 .equation{font-size:46px;margin:20px 0 18px;letter-spacing:0}
 .equation.equality{font-size:clamp(25px,7.3vw,36px)}
 .answer{min-height:62px;font-size:29px}
 .choices{gap:9px}
 .choices.paired{gap:12px}
 .side-options{gap:5px}
 .side-options .answer{font-size:22px;min-height:52px}
 .question-bottom{margin-top:12px;gap:10px;align-items:center}
 .feedback{font-size:13px}
 .hint{font-size:13px}
 .parent-notes{padding:28px 0}
 .parent-heading{margin-bottom:20px}
 .parent-heading h2{font-size:17px}
 .parent-grid{grid-template-columns:1fr;gap:20px}
 .parent-grid p{font-size:14px}
 .footer{font-size:11px;align-items:flex-start}
 .footer>span{max-width:16em}
 .badges{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 .collection-dialog{padding:18px}
 .collection-dialog h2{font-size:20px}
 .collection-dialog-heading{align-items:flex-start}
 .collection-dialog-heading .chapter{font-size:11px}
 .collection-dialog-heading button{font-size:12px}
}
@media(orientation:landscape) and (max-height:500px) and (min-width:520px){
 .header-inner{min-height:54px}
 .brand p{display:none}
 .collection{display:flex;min-height:48px;padding:2px 0}
 .collection-heading{flex:none}
 .recent-badges{flex:1}
 .workspace{padding-top:10px}
 .trail{min-height:26px;margin-bottom:8px}
 .card{padding:10px 18px}
 #game{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;align-items:center}
 .question-top{grid-area:1 / 1 / auto / span 2}
 .question-copy{grid-area:2 / 1 / span 2;margin-top:10px}
 .story{font-size:17px}
 .pinyin{font-size:13px;margin-top:6px}
 .equation{grid-area:2 / 2;margin:8px 0;font-size:40px}
 .equation.equality{font-size:28px}
 .choices{grid-area:3 / 2}
 .answer{min-height:48px;font-size:26px}
 .counter{grid-column:1 / -1;grid-row:4}
 .question-bottom{grid-column:1 / -1;grid-row:5;margin-top:12px}
 .parent-notes{margin-top:20px}
}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}
 .spark{display:none}
}
