@font-face{font-family:Nunito;src:url('Nunito.ttf') format('truetype');font-weight:200 1000;font-display:swap}
:root{--yellow:#ffd83d;--yellow-dark:#d8ae17;--ink:#242522;--paper:#fffef8;--muted:#77786e;--line:#e8e7df;--mint:#b9eadd;--red:#f47861;--round:Nunito,'Yuanti SC','Hiragino Maru Gothic ProN','PingFang SC',sans-serif}
*{box-sizing:border-box}body{margin:0;background:#e9e9e1;color:var(--ink);font-family:var(--round);font-size:16px;font-weight:700;-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid var(--ink);outline-offset:4px}button:disabled{cursor:default}h1,h2,p{margin:0}svg{display:block}.icon{width:24px;height:24px;flex:none}button{border:0;background:none}button:disabled:not(.word){opacity:.55}.app{width:min(390px,100%);height:844px;min-height:740px;position:relative;overflow:hidden;display:flex;flex-direction:column;background:var(--paper);margin:28px auto;border-radius:24px}body.wall .app{margin:0;border-radius:0}.screen{height:100%;display:flex;flex-direction:column;min-height:0}.button{height:58px;border:2px solid var(--ink);border-radius:18px;background:var(--yellow);box-shadow:0 6px 0 var(--ink);font-weight:900;font-size:18px;display:flex;justify-content:center;align-items:center;gap:12px;transition:transform 100ms,box-shadow 100ms,background 150ms;width:100%}.button:hover{background:#ffdf5a}.button:active{transform:translateY(5px);box-shadow:0 1px 0 var(--ink)}.button .icon{width:21px;height:21px}.plain-btn{width:44px;height:44px;border-radius:14px;display:grid;place-items:center}.plain-btn:hover{background:#eeeee6}.plain-btn:active{transform:scale(.94)}.small-text{font-size:13px;color:var(--muted);font-weight:700}.bird{width:100%;height:100%;overflow:visible}.number{font-variant-numeric:tabular-nums;font-family:Nunito,sans-serif;font-weight:900}.brand{font-size:40px;letter-spacing:-3px;line-height:1;font-weight:1000;position:relative;transform:rotate(-4deg)}.brand:after{content:'';position:absolute;width:6px;height:6px;background:var(--yellow);border:2px solid var(--ink);border-radius:50%;right:-9px;top:3px}.topbar{height:90px;display:flex;align-items:center;justify-content:space-between;padding:15px 25px 12px;flex:none}.resources{display:flex;align-items:center;gap:16px}.resource{display:flex;align-items:center;gap:5px;font-size:16px;font-weight:900}.resource .icon{width:21px;height:25px}.resource.xp{gap:4px}.resource small{font-size:11px;font-weight:900;margin-left:-3px;align-self:center}.unit-banner{background:var(--yellow);padding:16px 24px 18px;display:flex;justify-content:space-between;align-items:center;border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);flex:none}.unit-eyebrow{font-size:13px;font-weight:800;letter-spacing:.2px;margin-bottom:7px}.unit-banner h1{font-size:24px;line-height:1.3;font-weight:900;letter-spacing:-.7px}.unit-icon{width:47px;height:48px;margin-left:12px;transform:rotate(-8deg)}.daily{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 25px 9px;flex:none}.daily-label{font-size:14px;font-weight:900}.daily-label span{font-size:13px;color:var(--muted);font-weight:700;margin-left:8px}.daily-track{height:11px;width:100px;flex:none;background:#e7e6dd;border:2px solid var(--ink);border-radius:7px;overflow:hidden}.daily-track i{display:block;width:60%;height:100%;background:var(--yellow);border-right:1.5px solid var(--ink);border-radius:4px}.map{position:relative;flex:1;min-height:330px;margin:0 20px}.trail{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}.trail .base{fill:none;stroke:#eae9e0;stroke-width:14;stroke-linecap:round}.trail .done{fill:none;stroke:#b9eadd;stroke-width:14;stroke-linecap:round}.level{position:absolute;width:76px;height:61px;border-radius:50%;display:grid;place-items:center;z-index:2;border:2px solid var(--ink);box-shadow:0 7px 0 var(--ink);transition:transform 100ms,box-shadow 100ms}.level .icon{width:29px;height:29px}.level:hover{filter:brightness(1.04)}.level:active{transform:translateY(5px);box-shadow:0 2px 0 var(--ink)}.level.completed{background:var(--mint);box-shadow:0 6px 0 #80b4a6;border-color:#80b4a6}.level.current{width:86px;height:69px;background:var(--yellow);box-shadow:0 8px 0 var(--ink)}.current-ring{position:absolute;width:108px;height:92px;border:2px dashed var(--yellow-dark);border-radius:50%;left:111px;top:162px}.level.locked{background:#efeee7;color:#b3b5a8;border-color:#d7d9ce;box-shadow:0 6px 0 #d7d9ce}.level.l1{left:135px;top:17px}.level.l2{left:67px;top:100px}.level.l3{left:122px;top:173px}.level.l4{left:209px;top:274px}.level.l5{left:136px;top:352px}.node-label{position:absolute;font-size:14px;font-weight:800;color:#5e6258}.label1{top:35px;left:223px}.label2{top:116px;left:157px}.label3{top:266px;left:137px;color:var(--ink);font-weight:900}.label4{top:293px;left:137px}.label5{top:368px;left:223px}.map-bird{position:absolute;width:112px;height:122px;top:137px;left:232px;transform:rotate(7deg)}.next-lesson{padding:11px 24px 20px;flex:none}.lesson-meta{display:flex;justify-content:center;align-items:center;margin-bottom:12px}.lesson-meta span{color:var(--muted);font-size:13px}.next-lesson .button{height:53px}.bottom-nav{height:81px;display:flex;justify-content:space-around;align-items:center;border-top:2px solid var(--line);padding:7px 16px 10px;flex:none;background:var(--paper)}.nav-btn{width:77px;height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;color:#62695a;font-weight:800;border-radius:15px}.nav-btn .icon{width:26px;height:26px;--icon-fill:#eeeee5}.nav-btn.active .icon{--icon-fill:var(--yellow)}.nav-btn.active{background:#fff2b3;color:var(--ink)}.nav-btn:hover{background:#f1f1e8}.nav-btn:active{transform:translateY(2px)}.nav-btn.active:hover{background:#ffeca0}
/* Lesson: stable task area and bottom feedback */
.lesson-top{display:flex;gap:14px;padding:17px 18px 10px;align-items:center;flex:none;height:77px}.lesson-top .plain-btn{margin-left:-3px;color:#909488}.progress{height:14px;border:2px solid var(--ink);border-radius:10px;flex:1;background:#ebece3;overflow:hidden}.progress i{height:100%;display:block;width:62.5%;background:var(--yellow);border-radius:7px;border-right:2px solid var(--ink);position:relative;transition:width 250ms}.progress i:after{content:'';position:absolute;top:2px;left:7px;right:7px;height:3px;border-radius:4px;background:#fff5af}.quiz .resource{margin-left:2px}.quiz-main{flex:1;min-height:0;padding:17px 24px 0;display:flex;flex-direction:column}.question-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:13px;font-weight:800;color:#75786a}.question-meta .sound-toggle{width:44px;height:44px;margin:-9px -7px -5px 0;display:grid;place-items:center;border-radius:12px}.sound-toggle:hover{background:#efeee5}.question-meta .icon{width:20px;height:20px}.quiz-main h1{font-size:26px;font-weight:900;letter-spacing:-.7px;line-height:1.35}.dialogue{display:flex;gap:12px;align-items:center;margin-top:20px;min-height:147px}.dialogue-bird{width:108px;height:130px;flex:none;transform:rotate(-6deg)}.speech{border:2px solid var(--ink);border-radius:19px;padding:17px 15px;line-height:1.5;font-size:17px;font-weight:800;position:relative;box-shadow:0 3px 0 #e6e6dc;flex:1}.speech:before{content:'';width:12px;height:12px;border-left:2px solid var(--ink);border-bottom:2px solid var(--ink);position:absolute;left:-8px;top:39px;background:var(--paper);transform:rotate(45deg)}.listen{display:flex;align-items:center;gap:7px;font-size:12px;color:#767969;margin-top:1px;margin-bottom:-7px;min-height:44px;font-weight:800;padding:4px 0}.listen .icon{width:18px;height:18px}.listen:hover{color:var(--ink)}.sentence{font-family:Nunito,sans-serif;font-size:clamp(24px,7.4vw,29px);font-weight:850;line-height:1.9;margin-top:15px;letter-spacing:-.7px}.sentence-line{white-space:nowrap}.sentence-stop{display:inline-block;margin-left:3px}.blank{position:relative;z-index:2;display:inline-flex;min-width:88px;height:47px;padding:0 14px;margin:0 0 0 7px;align-items:center;justify-content:center;border-bottom:3px solid #b7b9ad;color:#71776b;vertical-align:middle;font-weight:900;letter-spacing:0;transition:background 160ms,transform 160ms}.blank.filled{border:2px solid var(--ink);border-radius:13px;background:var(--yellow);color:var(--ink);box-shadow:0 4px 0 var(--yellow-dark);transform:rotate(-3deg)}.blank .icon{width:18px;height:18px;margin-left:5px}.word-bank{display:grid;grid-template-columns:1fr 1fr;gap:13px 14px;margin-top:22px;margin-bottom:25px}.word{height:53px;border:2px solid #d9dbd0;box-shadow:0 4px 0 #d9dbd0;border-radius:16px;background:var(--paper);font-family:Nunito,sans-serif;font-size:22px;font-weight:850;display:flex;justify-content:center;align-items:center;gap:8px;transition:transform 100ms,box-shadow 100ms,border-color 150ms,background 150ms}.word:hover:not(:disabled){border-color:var(--ink)}.word:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #d9dbd0}.word.selected{background:#fff0a8;border-color:var(--yellow-dark);box-shadow:0 4px 0 var(--yellow-dark)}.word .icon{width:20px;height:20px}.word.selected:disabled{opacity:1}.word-slot{border:2px dashed #c8cdbb;box-shadow:none;background:#f4f4ed}.is-wrong .word.selected{background:#ffd8cd;border-color:#c95d49;box-shadow:0 4px 0 #c95d49}.is-wrong .blank.filled{background:#ffd8cd;box-shadow:0 4px 0 #c95d49}.word:disabled:not(.selected){color:#878b7c}.quiz-footer{padding:20px 24px 30px;flex:none;min-height:135px;margin-top:auto;border-top:2px solid var(--line)}.quiz-footer .button:disabled{background:#eeeee5;color:#8b8e80;border-color:#ddd;box-shadow:0 6px 0 #d5d8cb;opacity:1}.quiz-footer .hint{text-align:center;color:#787d6c;font-size:13px;margin-top:14px}.quiz-footer.correct{background:var(--mint);border-top:2px solid var(--ink);border-radius:28px 28px 0 0;padding:24px 24px 24px;min-height:219px;position:relative;display:flex;flex-direction:column}.is-correct .dialogue{min-height:106px;margin-top:16px}.is-correct .speech:before{display:none}.is-correct .sentence{margin-top:9px}.is-correct .word-bank{margin-top:30px}.feedback-bird{position:absolute;right:24px;top:-62px;width:106px;height:118px;transform:rotate(-8deg);pointer-events:none;z-index:3}.feedback-heading{display:flex;align-items:center;gap:10px;margin-bottom:7px}.check-disc{width:29px;height:29px;border-radius:50%;background:var(--ink);color:var(--mint);display:grid;place-items:center}.check-disc .icon{width:21px;height:21px}.feedback-heading h2{font-size:27px;font-weight:1000}.feedback-copy{font-size:15px;font-weight:800;margin-bottom:19px;padding-left:39px;letter-spacing:-.2px}.correct .feedback-copy{font-size:17px;line-height:1.5;max-width:230px;min-height:52px;margin-bottom:0}.correct .button{height:56px;flex:none;margin-top:auto}.combo{position:absolute;right:24px;top:64px;display:flex;align-items:center;gap:5px;transform:rotate(5deg);background:var(--ink);color:var(--yellow);padding:7px 10px;border-radius:11px;font-size:13px;font-weight:900;box-shadow:0 3px 0 #80b4a6}.combo .icon{width:18px;height:21px}.quiz-footer.wrong{background:#fff0e9;border-top-color:var(--ink);border-radius:28px 28px 0 0;min-height:205px}.wrong .check-disc{background:#df604d;color:white}.wrong .feedback-heading h2{font-size:24px}.wrong .feedback-copy{padding:0;font-size:15px}.wrong .button{background:var(--red)}
/* Finish: one celebratory scene, a clear reward, a tangible streak */
.finish-top{padding:26px 24px 0;display:flex;align-items:center;justify-content:space-between;flex:none}.finish-top .brand{font-size:34px}.finish-top span{font-size:13px;color:#6d7263;font-weight:800}.celebration{height:243px;position:relative;flex:none;margin-top:13px}.celebration .halo{position:absolute;width:191px;height:191px;background:var(--paper);border:6px solid var(--yellow);border-radius:50%;left:100px;top:28px;box-shadow:0 7px 0 #e6e6dc}.landing-shadow{position:absolute;top:226px;left:137px;width:122px;height:9px;border-radius:50%;background:var(--ink);opacity:.1}.celebrate-bird{position:absolute;left:95px;top:-5px;width:205px;height:228px;transform:rotate(-6deg)}.celebrate-mark{position:absolute;color:var(--ink);width:26px;height:26px}.mark1{left:58px;top:48px;transform:rotate(-16deg)}.mark2{right:39px;top:97px;transform:rotate(20deg)}.confetti{position:absolute;width:8px;height:17px;background:var(--red);border:1.5px solid var(--ink);border-radius:3px;transform:rotate(22deg)}.c1{left:82px;top:122px;background:var(--mint);transform:rotate(-25deg)}.c2{right:80px;top:23px}.c3{right:56px;bottom:37px;background:var(--mint);transform:rotate(35deg)}.c4{left:125px;top:10px;width:7px;height:7px;border-radius:50%;background:var(--yellow)}.c5{left:58px;bottom:40px;width:7px;height:7px;border-radius:50%;background:var(--red)}.finish-title{text-align:center;margin-top:2px;flex:none}.finish-title h1{font-size:31px;line-height:1.3;font-weight:1000;letter-spacing:-1px}.finish-title p{font-size:15px;margin-top:10px;color:#777b6d;font-weight:700}.reward-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:24px 24px 0;flex:none}.reward{border:2px solid var(--ink);border-radius:19px;overflow:hidden;box-shadow:0 4px 0 #e2e3d7}.reward-label{font-size:13px;font-weight:800;text-align:center;background:var(--yellow);padding:7px;border-bottom:2px solid var(--ink)}.reward.mint .reward-label{background:var(--mint)}.reward-value{height:64px;display:flex;align-items:center;justify-content:center;gap:9px;font-family:Nunito,sans-serif;font-size:29px;font-weight:1000}.reward-value .icon{width:24px;height:28px}.reward-value small{font-size:16px;font-weight:800}.streak-block{margin:27px 24px 0;border:2px solid var(--ink);box-shadow:0 4px 0 #e2e3d7;border-radius:22px;padding:16px 17px 18px;flex:none}.streak-head{display:flex;gap:10px;align-items:center}.streak-head>.icon{width:31px;height:36px}.streak-head h2{font-size:23px;line-height:1.3;font-weight:900}.streak-head p{color:#777b6d;font-size:13px;margin-top:3px}.week{display:flex;justify-content:space-between;margin-top:20px;gap:6px}.day{text-align:center;flex:1}.day-label{font-size:12px;color:#697160;font-weight:800}.day-disc{height:30px;width:30px;border-radius:50%;background:#fff0b6;display:grid;place-items:center;margin:6px auto 0;color:#a1831c}.day-disc .icon{width:16px;height:16px}.day.today .day-disc{background:var(--yellow);border:2px solid var(--ink);box-shadow:0 3px 0 var(--ink);color:var(--ink);transform:rotate(-7deg)}.day.today .day-label{color:var(--ink);font-weight:900}.finish-bottom{padding:25px 24px 30px;margin-top:auto;flex:none}.finish-bottom .small-text{text-align:center;margin-top:18px;font-size:13px}.toast{position:absolute;bottom:184px;left:24px;right:24px;padding:14px 17px;background:var(--ink);color:var(--paper);border-radius:16px;font-size:14px;line-height:1.5;z-index:20;box-shadow:0 4px 15px #24252220}.extra-screen{padding:25px 24px;height:100%;display:flex;flex-direction:column}.extra-header{display:flex;align-items:center;gap:12px;margin-bottom:25px}.extra-header h1{font-size:24px;font-weight:900}.extra-summary{background:var(--yellow);border:2px solid var(--ink);border-radius:22px;padding:22px;margin-bottom:22px}.extra-summary h2{font-size:22px;margin:8px 0}.extra-list{display:flex;flex-direction:column;gap:14px}.review-item{border-bottom:2px solid var(--line);padding:14px 0}.review-item strong{font-family:Nunito;font-size:22px}.review-item p{font-size:15px;color:#6d7562;margin-top:5px}.extra-bottom{margin-top:auto}.profile-bird{height:130px;width:130px;margin:0 auto 18px}.profile-name{text-align:center;font-size:25px;margin-bottom:22px}.profile-detail{display:flex;justify-content:space-between;padding:17px 0;border-bottom:2px solid var(--line);font-size:16px}.profile-detail span{color:#777b6d}.achievement{display:flex;align-items:center;gap:16px;padding:19px 0;border-bottom:2px solid var(--line)}.achievement .icon{width:38px;height:38px}.achievement h2{font-size:18px}.achievement p{font-size:14px;color:#777b6d;margin-top:4px}
/* One shot, short, interruptible feedback. No idle loops. */
 .pop .quiz-footer.correct{animation:feedback-rise 280ms ease-out}.pop .feedback-bird{animation:pip-cheer 460ms cubic-bezier(.2,.8,.3,1.1)}.pop .combo{animation:combo-pop 320ms ease-out}.finish-enter .celebrate-bird{animation:bird-pop 500ms cubic-bezier(.2,.8,.3,1.1)}@keyframes bird-pop{0%{transform:rotate(-6deg) scale(.91) translateY(7px)}45%{transform:rotate(-12deg) scale(1.08) translateY(-9px)}100%{transform:rotate(-6deg) scale(1)}}@keyframes pip-cheer{0%{transform:translateY(24px) rotate(4deg) scale(.86);opacity:0}40%{transform:translateY(-10px) rotate(-12deg) scale(1.06);opacity:1}100%{transform:translateY(0) rotate(-8deg) scale(1);opacity:1}}@keyframes combo-pop{0%{transform:rotate(5deg) scale(.88)}65%{transform:rotate(7deg) scale(1.04)}100%{transform:rotate(5deg) scale(1)}}@keyframes feedback-rise{from{transform:translateY(14px);opacity:.65}to{transform:translateY(0);opacity:1}}
@media(max-width:430px){body{background:var(--paper)}.app{margin:0;border-radius:0;height:100dvh;min-height:740px}}@media(max-height:790px) and (max-width:430px){.quiz-main{padding-top:10px}.dialogue{min-height:128px;margin-top:12px}.dialogue-bird{height:115px}.sentence{margin-top:5px}.is-correct .dialogue{min-height:94px;margin-top:10px}.is-correct .sentence{margin-top:4px}.is-correct .word-bank{margin-top:20px}.word-bank{margin-top:14px;gap:10px;margin-bottom:16px}.celebration{height:213px;margin-top:6px}.celebrate-bird{height:208px;width:187px;left:103px}.celebration .halo{width:176px;height:176px;left:107px}.landing-shadow{top:205px;left:140px;width:116px}.finish-title h1{font-size:29px}.streak-block{margin-top:20px}.reward-row{padding-top:18px}.finish-bottom{padding-top:19px;padding-bottom:24px}.level.l5,.label5{display:none}.map{min-height:300px}}@media(max-width:350px){.correct .feedback-copy{max-width:175px;padding-left:0;font-size:16px}.feedback-heading h2{font-size:25px}.resources{gap:10px}.topbar{padding-left:20px;padding-right:20px}.map{margin-left:0;margin-right:0}.feedback-bird{right:18px;width:96px;height:108px;top:-56px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
