:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#253e32;background:#eef5f0;font-synthesis:none;letter-spacing:0}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,[tabindex]:focus-visible{outline:3px solid #eaaa48;outline-offset:4px}button:disabled{cursor:default} [hidden]{display:none!important}.game{max-width:1120px;margin:auto;background:white;min-height:100vh}.header{padding:22px 32px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:14px;align-items:center}.brand-mark{background:#ddecda;color:#477349;font-size:20px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-weight:700}h1{font-size:26px;margin:0;font-weight:800}.brand p{margin:3px 0 0;font-size:12px;color:#809284}.header-right{display:flex;align-items:center;gap:20px;color:#67806d;font-variant-numeric:tabular-nums;font-size:14px}.icon-button{background:none;border:1px solid #dce8de;border-radius:50%;width:36px;height:36px;font-size:26px;color:#66816c}.journey{padding:14px 32px;border-top:1px solid #eef2ec;display:flex;align-items:center;justify-content:center;gap:24px;font-size:12px;color:#a0ada2}.journey span{display:flex;gap:8px;align-items:center}.journey b{font-size:14px;font-weight:600}.journey i{height:1px;width:64px;background:#dce6dc}.journey .current{color:#397150}.journey .done{color:#688770}.scene{height:350px;position:relative;overflow:hidden;background:#279cb3 center 52%/cover no-repeat}
:where(body.frog-level) .scene{background-image:url("assets/pond.png")}
.scene-label{position:absolute;top:20px;left:24px;padding:9px 15px;background:#153f37cc;color:#fff;border-radius:6px;font-size:13px;z-index:3}.scene-bottom{position:absolute;bottom:18px;left:24px;right:24px;display:flex;justify-content:space-between;align-items:center;color:#fff;font-size:13px}.scene-bottom>span:first-child{background:#153f37cc;padding:8px 14px;border-radius:6px}.destination{background:#406e3ec9;padding:6px 12px;border-radius:6px}.path{position:absolute;inset:0}.pad{position:absolute;width:15%;height:26%;border-radius:50%;background:radial-gradient(ellipse at 40% 30%,#c3e980,#87c957 65%,#62a849);box-shadow:0 8px 0 #39844b,0 10px 0 12px #d6f8f035,0 12px 0 14px #ecffff55;transform:rotate(-12deg);border:1px solid #96cf60}.pad:before{content:"";position:absolute;inset:15%;border-radius:50%;background:repeating-conic-gradient(from 10deg,#579e3218 0deg 2deg,transparent 2deg 35deg)}.pad:after{content:"";position:absolute;bottom:-2px;left:45%;width:24%;height:46%;background:#2297aa;clip-path:polygon(0 100%,100% 100%,40% 0)}.traveler{position:absolute;left:7%;top:66%;width:110px;height:110px;transform:translate(-50%,-85%);transition:left .65s ease,top .65s ease;z-index:2;filter:drop-shadow(0 5px 3px #14452c30)}#frog{width:100%;height:100%;position:relative;z-index:2}.traveler.jumping #frog{animation:hop .65s ease}.traveler.floating #frog{animation:bob 2.6s ease-in-out infinite}.boat{position:absolute;bottom:-5px;left:-15%;width:130%;height:28px;background:#bf783c;border-radius:5% 5% 50% 50%;box-shadow:inset 0 6px #f3bb68,0 5px #27778c55}.boat:after{content:"";position:absolute;width:80px;height:7px;background:#e6ac65;right:-28px;top:-10px;transform:rotate(30deg);border-radius:6px}.bridge{position:absolute;left:9%;right:9%;top:61%;height:46px;background:repeating-linear-gradient(90deg,#d39a5e 0 28px,#855535 29px 32px);border-top:7px solid #f0c794;border-bottom:8px solid #96633d;transform:rotate(-8deg);box-shadow:0 12px 12px #16576b44}.practice{padding:23px 32px 26px;min-height:335px}.practice-top{display:flex;justify-content:space-between;align-items:center}.practice-top h2{font-size:15px;color:#66826d;margin:0;font-weight:600}.dots{display:flex;gap:7px}.dot{width:9px;height:9px;border:1.5px solid #a6b9ab;border-radius:50%}.dot.done{background:#65916a;border-color:#65916a}.dot.active{border-color:#54835d;background:#d9ebd8}.character{font-family:"Kaiti SC","STKaiti","KaiTi","PingFang SC",sans-serif;font-size:90px;line-height:1.25;text-align:center;margin:10px 0 4px;font-weight:600}.answer{display:flex;align-items:center;justify-content:center;gap:4px;width:220px;height:49px;margin:auto;border-bottom:2px solid #b8cfbd;font-size:31px;color:#355c41;cursor:text}.answer .caret{width:2px;height:27px;background:#649271;animation:blink 1s steps(2) infinite}.answer.locked .caret{display:none}.answer.locked{border-color:transparent}.feedback{min-height:22px;font-size:14px;text-align:center;color:#829287;margin:12px 0 16px}.feedback.error{color:#b76549}.feedback.success{color:#48825a}.keyboard{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;max-width:710px;margin:auto}.key{width:40px;height:40px;border:1px solid #d7e4d8;border-bottom:3px solid #c6d8c8;border-radius:6px;background:#f5f8f3;color:#3c6347;font-size:20px}.key:active{transform:translateY(2px);border-bottom-width:1px;background:#dfecdc}.key.back{width:52px}.tones{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:760px;margin:0 auto 6px}.tone{border:1.5px solid #d4e5d6;background:#fff;border-radius:8px;min-height:88px;color:#284d35;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.tone small{font-size:12px;color:#8a9e8e}.tone strong{font-size:30px;font-weight:600}.tone:hover{background:#f2f7ee;border-color:#88ad89}.tone.wrong{background:#fff1e9;border-color:#dca586}.tone.correct{background:#e1f0dc;border-color:#74a675}.reading{padding:34px 0 12px}.sentence{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;font-size:36px;line-height:1.7;font-family:"Arial",sans-serif;color:#2c523b;min-height:72px}.sentence span{white-space:nowrap}.parent-actions{display:flex;gap:12px;justify-content:center;margin:28px 0 6px}.primary,.secondary{padding:13px 24px;border-radius:6px;font-weight:600;font-size:16px;min-height:48px;border:1px solid #d5e4d7}.primary{background:#487c54;color:white;border-color:#487c54}.primary:hover{background:#3a6945}.secondary{background:white;color:#6f8876}footer{text-align:center;padding:18px 12px;color:#96a79a;border-top:1px solid #edf2ed;font-size:12px}footer span{margin:0 9px}dialog{border:none;border-radius:8px;padding:36px;max-width:min(440px,90vw);text-align:center;color:#284b35;box-shadow:0 20px 80px #173d3a30}dialog::backdrop{background:#153c365e;backdrop-filter:blur(4px)}dialog h2{font-size:24px}.finish-art{font-size:70px;color:#e9b753}.eyebrow{color:#75927b;font-size:13px}dialog p{color:#7b8c7f;font-size:14px}dialog .primary{margin-top:16px}@keyframes hop{0%,100%{transform:translateY(0) rotate(0)}45%{transform:translateY(-65px) rotate(-8deg)}}@keyframes bob{50%{transform:translateY(-4px)}}@keyframes blink{50%{opacity:0}}@media(min-width:1200px){.game{margin:18px auto;min-height:calc(100vh - 36px);box-shadow:0 8px 48px #2446330a}.scene{height:380px}}@media(max-width:600px){.header{padding:16px 18px}h1{font-size:22px}.brand-mark{width:40px;height:40px;font-size:17px}.header-right{gap:10px}.journey{padding:12px 16px;gap:10px}.journey i{width:20px}.journey b{font-size:13px}.scene{height:260px}.scene-label{left:16px;top:16px;font-size:12px}.traveler{width:82px;height:82px}.practice{padding:18px 16px 24px;min-height:350px}.character{font-size:80px;margin-top:18px}.key{width:37px;height:42px}.keyboard{gap:6px;max-width:350px}.tones{gap:8px}.tone{min-height:84px}.tone strong{font-size:25px}.sentence{font-size:28px;gap:8px}.reading{padding-top:36px}.parent-actions button{padding:12px 18px}footer{font-size:10px;padding:15px 8px}footer span{margin:0 4px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
