:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#203d31;background:#f6f8f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input,select{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0;color:inherit}button:focus-visible,a:focus-visible{outline:4px solid #eaa83e;outline-offset:4px}header{max-width:1160px;margin:auto;padding:26px 32px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit;font-size:20px;font-weight:750}.brand-icon{background:#245c47;color:white;border-radius:15px;padding:10px 15px;font-size:28px}.brand small{display:block;font-size:13px;color:#708074;font-weight:400;margin-top:6px}.quiet{padding:12px 16px;border-radius:14px;background:#e8ede4;font-size:14px}main{max-width:1160px;margin:auto;padding:20px 32px}.welcome{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:14px;letter-spacing:2px;color:#62776a}h1{font-size:clamp(26px,4vw,42px);letter-spacing:-1px;margin:12px 0 30px}.welcome-art{font-size:70px;padding-right:20px}.modes{display:flex;gap:8px;background:#e8ede4;border-radius:18px;padding:6px;width:max-content;margin:0 0 30px}.modes button{background:transparent;padding:15px 25px;border-radius:13px;font-weight:650}.modes .active{background:#245c47;color:#fff;box-shadow:0 3px 8px #245c4720}.categories{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:26px}.categories button{border:1px solid #dfe6db;background:white;border-radius:50px;padding:12px 20px;font-size:16px}.categories .selected{background:#ffda72;border-color:#ffda72;color:#443718;font-weight:700}.learning-layout{display:grid;grid-template-columns:1fr 320px;gap:32px;align-items:start}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}h2{font-size:22px;margin:0}.section-heading>span{font-size:14px;color:#718176}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.tile{min-height:180px;border-radius:24px;border:2px solid transparent;background:#fff;box-shadow:0 4px 0 #e4eade;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;transition:transform .15s,border-color .15s}.tile:hover{transform:translateY(-3px)}.tile.chosen{border-color:#245c47;background:#eaf3e6}.tile .emoji{font-size:36px}.tile .character{font-family:"Kaiti SC","STKaiti","KaiTi",serif;font-size:56px;line-height:1.2}.featured{background:#ffdf80;border-radius:30px;padding:26px;text-align:center;position:sticky;top:20px}.featured .eyebrow{color:#756033}#bigCard{background:transparent;width:100%;display:flex;align-items:center;flex-direction:column;padding:18px 0 0}.illustration{font-size:68px}#bigCharacter{font-family:"Kaiti SC","STKaiti","KaiTi",serif;font-size:116px;font-weight:500;line-height:1.3}#pinyin{font-size:22px}.word{font-size:22px;margin:4px 0 24px}.primary{background:#245c47;color:#fff;border-radius:16px;padding:16px 25px;font-weight:650;min-height:56px}.featured .primary{width:100%}.featured p{font-size:14px;color:#756033;margin-bottom:0}.audio-status{min-height:22px;color:#795520;font-size:14px}footer{border-top:1px solid #dfe6db;margin-top:36px;padding:24px 0;color:#687b6d;font-size:14px;display:flex;justify-content:space-between;gap:12px}.game-panel{max-width:660px;margin:auto;text-align:center;background:white;padding:30px;border-radius:30px}.stars{font-size:42px;color:#c48b15;margin:18px}.game-panel h2{margin-bottom:22px}.choices{display:flex;justify-content:center;gap:20px;margin:26px 0}.choices button{font-family:"Kaiti SC","STKaiti","KaiTi",serif;font-size:80px;width:160px;min-height:170px;border-radius:24px;background:#eff4e9;border:3px solid transparent}.choices .correct{background:#d8edca;border-color:#245c47}#feedback{min-height:30px;font-size:18px}dialog{border:0;border-radius:24px;padding:30px;max-width:440px;width:calc(100% - 32px);color:#203d31}dialog::backdrop{background:#173b3066}dialog label{display:flex;align-items:center;gap:10px;margin:22px 0;font-size:18px}dialog input{width:22px;height:22px}dialog select{font:inherit;padding:6px}.close{float:right;background:transparent;padding:6px}.note{font-size:14px;line-height:1.7;color:#6e796f}dialog p{line-height:1.7}[hidden]{display:none!important}@media(max-width:800px){.learning-layout{grid-template-columns:1fr 260px;gap:20px}.grid{grid-template-columns:repeat(2,1fr)}.tile{min-height:150px}}@media(max-width:580px){header{padding:18px 18px}.brand{font-size:17px}.brand small{font-size:12px}.quiet{font-size:12px;padding:12px}.brand-icon{font-size:23px;padding:8px 12px}main{padding:10px 18px}.welcome-art{font-size:45px;padding:0}.eyebrow{font-size:13px}h1{margin-bottom:22px;font-size:27px}.modes{width:100%;margin-bottom:22px}.modes button{flex:1;padding:14px 10px}.categories{gap:8px;margin-bottom:20px}.categories button{padding:10px 14px;font-size:14px}.learning-layout{display:flex;flex-direction:column-reverse;gap:24px}.learning-layout>div,.featured{width:100%}.featured{position:static;padding:20px}#bigCard{flex-direction:row;justify-content:center;gap:28px;padding:6px}.illustration{font-size:56px}#bigCharacter{font-size:88px}#pinyin{font-size:20px}.word{margin:0 0 14px}.featured p{margin-top:12px}.grid{grid-template-columns:repeat(3,1fr);gap:10px}.tile{min-height:135px;border-radius:18px}.tile .character{font-size:46px}.tile .emoji{font-size:29px}.section-heading>span{font-size:12px}footer{flex-direction:column;line-height:1.5}.game-panel{padding:26px 16px}.choices{gap:15px}.choices button{width:45%;min-height:150px;font-size:70px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.tts-settings{border:1px solid #dfe6db;border-radius:16px;margin:24px 0;padding:16px}.tts-settings legend{font-weight:650;padding:0 8px}.tts-settings label{display:flex;flex-direction:column;align-items:stretch;font-size:14px;gap:8px;margin:16px 0}.tts-settings input{width:100%;height:44px;font:inherit;border:1px solid #b9c9bb;border-radius:8px;padding:10px}.tts-actions{display:flex;flex-wrap:wrap;gap:10px}.tts-actions .primary{padding:12px 16px}.tts-settings .note{overflow-wrap:anywhere}#settings{max-height:90vh;overflow:auto}
.card-actions{display:flex;justify-content:center;gap:8px;margin-top:14px}.card-actions button{font-size:14px;padding:12px 10px;flex:1;background:#fff5d5}.voice-wave{height:25px;display:flex;justify-content:center;align-items:center;gap:4px;margin:2px 0 8px;opacity:.25}.voice-wave i{width:5px;height:7px;background:#245c47;border-radius:5px}.voice-wave.speaking{opacity:1}.voice-wave.speaking i{animation:wave .6s ease-in-out infinite alternate}.voice-wave i:nth-child(2){animation-delay:.12s}.voice-wave i:nth-child(3){animation-delay:.24s}.voice-wave i:nth-child(4){animation-delay:.08s}.voice-wave i:nth-child(5){animation-delay:.18s}@keyframes wave{to{height:24px}}.bounce{animation:card-bounce .45s ease-out}@keyframes card-bounce{35%{transform:scale(1.13) translateY(-5px)}70%{transform:scale(.97)}100%{transform:none}}.scene{height:104px;border-radius:18px;background:#f6fff5;margin-top:14px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}.scene span:first-child{font-size:54px;display:inline-block;z-index:1}.scene span:last-child{position:absolute;right:15px;font-size:22px}.scene[data-kind=fish]{background:#d8f3ff}.scene[data-kind=fish] span:first-child{animation:swim 2.4s ease-in-out 2}.scene[data-kind=bird]{background:#e6f4ff}.scene[data-kind=bird] span:first-child{animation:fly 1.5s ease-in-out 3}.scene[data-kind=jump] span:first-child{animation:jump .8s ease-in-out 5}.scene[data-kind=glow] span:first-child{animation:glow 1s ease-in-out 4 alternate}.scene[data-kind=sway] span:first-child{animation:sway 1s ease-in-out 4 alternate}@keyframes swim{0%,100%{transform:translateX(-45px) rotate(-5deg)}50%{transform:translateX(45px) rotate(5deg)}}@keyframes fly{0%,100%{transform:translate(-40px,15px) rotate(-12deg)}50%{transform:translate(40px,-18px) rotate(12deg)}}@keyframes jump{50%{transform:translateY(-22px) rotate(8deg)}}@keyframes glow{to{transform:scale(1.18);filter:brightness(1.15)}}@keyframes sway{to{transform:rotate(14deg) scale(1.08)}}#celebration{position:fixed;inset:0;pointer-events:none;z-index:20;overflow:hidden}.reward-star{position:absolute;font-size:30px;animation:star-flight 1.3s ease-out forwards}@keyframes star-flight{0%{opacity:0;transform:translate(0,30px) scale(.3)}20%{opacity:1}100%{opacity:0;transform:translate(var(--dx),-200px) rotate(var(--spin)) scale(1.3)}}#strokeDialog{text-align:center;max-width:350px}.stroke-target{width:240px;height:240px;margin:24px auto 18px;border:2px solid #d9e7d7;border-radius:14px;background:linear-gradient(to right,transparent calc(50% - .5px),#d9e7d7 calc(50% - .5px),#d9e7d7 calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(to bottom,transparent calc(50% - .5px),#d9e7d7 calc(50% - .5px),#d9e7d7 calc(50% + .5px),transparent calc(50% + .5px))}#strokeStatus{font-size:16px;line-height:1.6;min-height:28px}#strokeDialog .primary{width:100%}@media(prefers-reduced-motion:reduce){.voice-wave.speaking i{animation:none;height:18px}.bounce,.scene span,.reward-star{animation:none!important}.reward-star{display:none}}

.character-image{display:block;object-fit:contain;width:100%;height:100%;filter:drop-shadow(0 5px 4px #244c3612)}.picture-wrap{display:flex;align-items:center;justify-content:center;width:78px;height:78px;background:#f4f8ef;border-radius:22px;padding:6px}.tile{gap:6px;min-height:195px;padding:14px}.tile.chosen .picture-wrap{background:#dceccf}.illustration{display:flex;width:132px;height:132px;align-items:center;justify-content:center}.scene span:first-child{width:78px;height:78px}.scene .character-image{filter:drop-shadow(0 4px 3px #244c3620)}#bigCard{padding-top:14px}#bigCharacter{font-size:96px}.featured{background:linear-gradient(160deg,#ffe69a,#ffdc78)}@media(max-width:800px){.tile{min-height:177px}.picture-wrap{width:70px;height:70px}}@media(max-width:580px){.tile{min-height:151px;padding:10px 6px}.picture-wrap{width:65px;height:65px;border-radius:18px}.illustration{width:100px;height:100px}#bigCharacter{font-size:88px}#bigCard{padding:6px}.scene span:first-child{width:72px;height:72px}}

.modes button{display:flex;align-items:center;justify-content:center;gap:10px}.mode-icon{width:25px;height:25px;flex:0 0 25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.modes button:not(.active) .mode-icon{color:#426b58}@media(max-width:580px){.mode-icon{width:23px;height:23px;flex-basis:23px}.modes button{gap:8px}}

.brand{gap:14px;font-size:21px;letter-spacing:.4px}.brand-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;padding:12px;border-radius:18px;background:#e1ede0;color:#245c47;box-shadow:inset 0 0 0 1px #ccdeca}.brand-icon svg{width:32px;height:32px;fill:#fff;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand small{margin-top:7px;font-size:13px;letter-spacing:1.2px;color:#768878}@media(max-width:580px){.brand{font-size:17px;gap:10px}.brand-icon{width:46px;height:46px;padding:9px;border-radius:15px}.brand-icon svg{width:28px;height:28px}.brand small{font-size:12px;letter-spacing:.5px}}
.character-visual{display:flex;align-items:center;justify-content:center}.number-visual{font-family:ui-rounded,-apple-system,sans-serif;font-size:52px;font-weight:800;color:#367458;line-height:1}.color-visual{width:68%;height:68%;border-radius:50%;border:2px solid #344a3926;box-shadow:inset -5px -7px 0 #00000009}.count-visual{width:100%;height:100%;flex-wrap:wrap;align-content:center;gap:2px}.count-visual img{width:42%;height:42%;object-fit:contain}.illustration .number-visual{font-size:82px}.scene .number-visual{font-size:58px}.categories{row-gap:10px}.section-heading>span{white-space:nowrap}@media(max-width:580px){.categories{flex-wrap:nowrap;overflow-x:auto;padding:4px 2px 12px;scrollbar-width:thin}.categories button{flex-shrink:0}.number-visual{font-size:44px}.illustration .number-visual{font-size:70px}.section-heading{flex-wrap:wrap}}

#question{display:inline-flex;align-items:center;justify-content:center;gap:10px}#question[hidden]{display:none}

.stars{display:flex;align-items:center;justify-content:center;gap:10px}.progress-star{width:72px;height:72px;object-fit:contain;mix-blend-mode:multiply;transition:opacity .3s,filter .3s,transform .3s}.progress-star.pending{opacity:.3;filter:grayscale(.7)}.progress-star.earned{opacity:1;transform:scale(1.06)}

.featured{scroll-margin-top:20px}

#listen,.card-actions button{display:flex;align-items:center;justify-content:center;gap:9px}.card-actions .mode-icon{width:23px;height:23px;flex-shrink:0}

