:root{font-family:'PingFang SC','Microsoft YaHei','Noto Sans CJK SC',sans-serif;color:#28463e;background:#f2eddc;font-synthesis:none;--green:#24786a;--dark:#214f47;--cream:#fff9e9;--orange:#e8943e;--shadow:0 10px 35px #26362a22}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;color:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e9993d;outline-offset:4px}button:disabled{cursor:default;opacity:.6}svg{width:22px;height:22px;vertical-align:middle;flex-shrink:0}button{transition:transform .16s,box-shadow .16s,background .16s}button:active{transform:scale(.97)}h1,h2,h3,p{margin:0}button svg+span{margin-left:7px}#game{width:100%;min-height:100svh}.world{position:relative;min-height:100svh;overflow:hidden;background:#f1efdf}.city-world{background:linear-gradient(180deg,#193d2810 35%,#172f234a),url('../public/assets/city.png') center/cover}.topbar{height:91px;padding:22px 4%;display:flex;justify-content:space-between;align-items:center;position:relative;z-index:3;gap:12px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:var(--green);color:#fff8df;font:italic 40px Georgia;box-shadow:0 5px 0 #19594e}.brand strong{font-size:25px;letter-spacing:3px;text-shadow:0 1px 6px #fff}.brand small{display:block;font-size:10px;letter-spacing:3px;margin-top:5px;font-weight:700;color:#537360}.header-actions{display:flex;align-items:center;gap:10px}.round{display:inline-grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#fffbeaeb;border:1px solid #ffffffc4;box-shadow:0 3px 12px #344c2020;flex-shrink:0}.header-pill{display:flex;align-items:center;gap:7px;border-radius:25px;padding:10px 17px;background:#fffae8ef;font-size:13px;box-shadow:0 3px 12px #344c2020}.header-pill svg{color:#cb8b38}.parent-btn{padding:10px 15px;background:#fff9e9ed;border-radius:24px;font-size:13px}.parent-btn svg{width:18px;margin-right:5px}.map-intro{position:absolute;left:5%;top:19%;z-index:2}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#428074;display:block;margin-bottom:10px}.map-intro h1{font-family:'Songti SC','STSong',serif;font-size:clamp(35px,4.2vw,62px);line-height:1.25;letter-spacing:3px;color:#234e46;font-weight:900;text-shadow:0 2px 0 #fff7d9,0 0 22px #fffdeb,0 0 65px #fffff1}.map-intro p{margin-top:14px;font-size:14px;letter-spacing:2px;text-shadow:0 0 10px #fff,0 0 15px #fff;font-weight:600}.map-intro .eyebrow{background:#fff8eac9;width:max-content;padding:7px 12px;border-radius:20px}.map-path{position:absolute;inset:18% 12% 22% 29%;width:59%;height:59%;opacity:.75;pointer-events:none;filter:drop-shadow(0 2px 3px #57543b77)}.map-pins{position:absolute;inset:0;pointer-events:none}.map-pin{position:absolute;display:flex;flex-direction:column;align-items:center;background:none;z-index:2;pointer-events:auto;filter:drop-shadow(0 6px 10px #223e393d);transition:transform .25s}.map-pin:hover{transform:translateY(-6px)}.pin-0{left:31%;top:48%}.pin-1{left:47%;top:30%}.pin-2{left:64%;top:48%}.pin-3{left:79%;top:26%}.pin-disc{width:70px;height:70px;border-radius:24px;transform:rotate(-7deg);background:#fff8dc;border:4px solid #fff;display:grid;place-items:center;position:relative;color:#268678;box-shadow:inset 0 0 0 1px #d7caaf,0 4px 0 #a79166}.pin-disc svg{width:35px;height:35px;transform:rotate(7deg)}.pin-disc i{position:absolute;right:-8px;bottom:-5px;border-radius:50%;background:#b28d52;color:#fff;display:grid;place-items:center;width:23px;height:23px}.pin-disc i svg{width:13px;height:13px}.pin-1 .pin-disc{color:#dc8141}.pin-2 .pin-disc{color:#318daa}.pin-3 .pin-disc{color:#9272a2}.pin-sign{margin-top:9px;padding:10px 18px;background:#fff8e8;border-radius:14px;min-width:116px;box-shadow:0 3px 0 #d1c3a1}.pin-sign strong{display:block;font-size:16px;letter-spacing:1px}.pin-sign small{display:block;margin-top:5px;font-size:10px;color:#928971;letter-spacing:1px}.pin-tag{font-size:10px;color:white;background:#297f6e;padding:5px 10px;border-radius:20px;margin-top:10px;box-shadow:0 2px 6px #344c3055}.map-rabbit{position:absolute;bottom:0;left:0;height:49%;width:24%;object-fit:contain;object-position:bottom;z-index:1;filter:drop-shadow(0 8px 8px #2a442922);animation:idle 4s ease-in-out infinite}.greeting{position:absolute;left:16%;bottom:22%;z-index:2;font-size:13px;line-height:1.8;border-radius:20px 20px 20px 3px;padding:14px 21px;background:#fff9e9f2;box-shadow:var(--shadow)}.greeting strong{display:block;color:#257a6c}.dock{position:absolute;left:50%;transform:translateX(-50%);bottom:26px;background:#fffaf0f5;box-shadow:0 6px 24px #173f2840;border:1px solid #fff;padding:6px;display:flex;gap:4px;border-radius:24px;z-index:3;white-space:nowrap}.dock button{background:transparent;border-radius:18px;padding:12px 20px;font-size:13px;display:flex;align-items:center;gap:7px;color:#6c7869}.dock button.active{background:#277d6e;color:#fff9e7;box-shadow:0 3px 5px #0a50422a}.continue-card{position:absolute;right:4%;bottom:20%;border-radius:23px;background:#fff9e9ef;box-shadow:0 8px 28px #24432c38;padding:19px 22px;min-width:250px;z-index:2;border:1px solid #fff;display:flex;align-items:center;gap:18px}.continue-card small{font-size:10px;color:#8f8c78;letter-spacing:1px}.continue-card strong{display:block;font-size:18px;margin:7px 0 2px}.primary{background:var(--green);color:#fff9e7;padding:14px 22px;border-radius:15px;box-shadow:0 4px 0 #175b50;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;min-height:46px}.primary:hover{background:#1c6f61}.soft{background:#f0ecdd;color:#4e6e62;padding:12px 19px;border-radius:13px;min-height:44px}.soft:hover{background:#e9dfc9}.tiny-label{position:absolute;bottom:9px;right:4%;font-size:10px;color:#fffae5cc;letter-spacing:1px}.ambient{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}.ambient i{position:absolute;width:5px;height:5px;border-radius:50%;background:#fff6b5;left:calc(11% * var(--i));bottom:-20px;box-shadow:0 0 12px #fff6b5;animation:float 12s linear infinite;animation-delay:calc(-2s * var(--i))}.ambient i:nth-child(3n){width:10px;height:4px;background:#bfc555;border-radius:70% 10%;}.loading{display:grid;place-items:center;min-height:100svh;color:#2d776a;font-size:22px}.scene-world{background:linear-gradient(#fff9efce,#ecf1e8ef),url('../public/assets/city.png') center/cover}.lesson-header .brand small{letter-spacing:1px}.lesson-layout{width:min(1100px,92%);margin:16px auto 40px;display:grid;grid-template-columns:240px 1fr;gap:30px;min-height:calc(100svh - 172px)}.guide-column{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.guide-character{width:100%;max-height:350px;object-fit:contain;filter:drop-shadow(0 8px 8px #536d2222);animation:idle 4s ease-in-out infinite}.guide-bubble{background:#fffdf3;padding:18px 21px;border-radius:22px 22px 6px 22px;line-height:1.8;font-size:14px;box-shadow:var(--shadow);margin-bottom:-30px;z-index:1;max-width:240px}.guide-bubble b{color:#278577}.lesson-main{display:flex;flex-direction:column;gap:17px;min-width:0}.lesson-meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#698175}.lesson-progress{display:flex;gap:5px;margin-top:9px}.lesson-progress i{height:5px;border-radius:5px;background:#d0dbcd;flex:1}.lesson-progress i.filled{background:#438c71}.step-nav{display:flex;gap:10px;margin:2px 0}.step-nav span{font-size:12px;color:#86968a;display:flex;align-items:center;gap:7px}.step-nav i{font-style:normal;background:#dde4d5;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;font-size:11px}.step-nav .active{color:#276e60;font-weight:600}.step-nav .active i{background:#2b7e6a;color:white}.learning-card{background:#fffdf4ef;border-radius:29px;padding:30px;min-height:370px;box-shadow:0 12px 40px #32512915;border:1px solid white;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;text-align:center;flex:1}.card-eyebrow{font-size:11px;letter-spacing:2px;color:#a28f69;font-weight:600}.pinyin{font-family:'Arial','Helvetica Neue',sans-serif;font-weight:600;letter-spacing:2px;font-variant-ligatures:none}.big-pinyin{font-size:clamp(78px,9vw,120px);line-height:1.35;color:#2b7869;margin:3px 0 7px}.pronounce-button{display:flex;align-items:center;gap:8px;border:1px solid #e1e8d8;background:#f0f3e6;border-radius:24px;padding:10px 16px;color:#548069;font-size:12px;min-height:42px}.hint{font-size:15px;line-height:1.9;max-width:540px;color:#768274;margin-top:18px}.hint strong{color:#64735e}.example-word{font-size:19px;margin-top:13px;color:#526e59}.lesson-actions{display:flex;align-items:center;justify-content:space-between;gap:15px}.lesson-actions>span{font-size:11px;color:#8e9b8c}.lesson-actions .primary{min-width:155px}.back-link{background:none;color:#718174;display:flex;align-items:center;gap:5px;font-size:12px;padding:10px 0}.quiz-title{font-size:22px;line-height:1.7;margin:8px 0 20px;max-width:630px}.quiz-sound{background:#e6f0df;color:#277c66;width:76px;height:76px;border-radius:26px;display:grid;place-items:center;margin:5px auto 20px;box-shadow:0 5px 0 #ccdebd}.quiz-sound svg{width:33px;height:33px}.choices{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;width:100%;margin:15px 0}.choice{background:#fffdf7;border:2px solid #e7e0c9;border-radius:21px;min-width:100px;min-height:95px;padding:16px;font-size:38px;box-shadow:0 5px 0 #e6dcc2;color:#3f6f60}.choice.long-choice{font-family:inherit;font-size:17px;min-height:65px;flex:1;min-width:160px;line-height:1.6}.choice:hover{border-color:#8db696;transform:translateY(-3px)}.choice.correct{background:#dcedd6;border-color:#75a96b;color:#276d45;box-shadow:0 5px 0 #afc99d}.choice.wrong{animation:shake .32s;background:#fff0db;border-color:#dfac71}.quiz-feedback{min-height:27px;font-size:14px;color:#6d8772;margin-top:14px;line-height:1.7}.quiz-feedback.success{color:#287e59;font-weight:600}.help-button{background:none;color:#9a916f;font-size:12px;padding:10px;display:flex;gap:5px;align-items:center}.help-button svg{width:17px;height:17px}.target-envelope{padding:16px 34px;border:2px dashed #dbbe8d;border-radius:15px;background:#fff3d6;margin:3px 0 14px;color:#956d37;display:flex;align-items:center;justify-content:center;gap:12px;font-size:32px;min-height:70px;min-width:180px}.target-envelope .slot{border-radius:8px;min-width:40px;height:52px;display:grid;place-items:center;background:#ffffffaa;padding:5px;font-size:30px}.target-envelope.delivered{animation:delivery .8s ease both}.build-tokens .choice{font-size:30px;min-width:65px;min-height:67px;padding:8px 15px}.combination{font-size:18px;color:#8f957e;margin:8px 0}.lesson-group-preview{display:flex;gap:6px;margin-top:14px}.lesson-group-preview button{border-radius:9px;padding:6px 12px;background:#f3eedf;color:#6d8a74;font-size:18px}.celebration{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;min-height:calc(100svh - 110px);padding:25px}.big-star{color:#e5ad44;background:#fff0bd;border:5px solid #fff9e6;width:120px;height:120px;border-radius:35px;display:grid;place-items:center;transform:rotate(-10deg);box-shadow:0 9px 0 #e1bf73,0 20px 70px #e4bd6550;animation:pop .6s ease}.big-star svg{width:73px;height:73px;fill:#ffc84e}.celebration h1{font-size:35px;margin:33px 0 14px;letter-spacing:3px}.celebration p{font-size:15px;color:#718171;line-height:1.9}.celebration .primary{margin-top:30px}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;left:calc(var(--i)*5%);top:-20px;width:8px;height:15px;background:#f3bf58;animation:confetti 3s ease-in infinite;animation-delay:calc(var(--i)*-.13s);transform:rotate(25deg)}.confetti i:nth-child(2n){background:#87b69a}.confetti i:nth-child(3n){background:#efa581}dialog{border:1px solid #fffdf1;border-radius:28px;background:#fff9ec;width:min(790px,92vw);max-height:86svh;padding:0;color:#35584b;box-shadow:0 30px 100px #142a3966}dialog::backdrop{background:#132f3f65;backdrop-filter:blur(7px)}.panel-head{padding:25px 28px 20px;border-bottom:1px solid #e9e5d3;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.panel-head h2{font-size:24px;letter-spacing:1px}.panel-head p{font-size:12px;color:#939783;line-height:1.8;margin-top:7px}.panel-head .eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:8px}.panel-body{padding:22px 28px 28px;overflow:auto}.lesson-list{display:grid;grid-template-columns:1fr 1fr;gap:11px}.lesson-row{border-radius:16px;padding:14px;background:#fffef5;display:flex;align-items:center;text-align:left;gap:13px;border:1px solid #e7e5d3;min-height:75px}.lesson-row .lesson-number{width:38px;height:38px;border-radius:13px;background:#e9eddc;display:grid;place-items:center;color:#678069;font-size:14px;flex-shrink:0}.lesson-row strong{font-size:14px;display:block}.lesson-row small{font-size:10px;color:#98a08b;display:block;margin-top:5px}.lesson-row>svg{margin-left:auto;width:18px}.lesson-row.done{background:#edf4e3;border-color:#d7e5c6}.lesson-row.locked{opacity:.64}.section-label{font-size:12px;color:#9b997f;margin:12px 0 15px;letter-spacing:1px}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}.tabs button{padding:9px 14px;border-radius:12px;background:#eeeada;font-size:12px}.tabs button.active{background:#317d69;color:#fff9e9}.catalog-controls{display:flex;gap:10px;margin-bottom:17px}.search-box{display:flex;gap:8px;align-items:center;border:1px solid #e1e1cc;border-radius:13px;background:#fffdf4;padding:0 13px;flex:1;min-width:0}.search-box svg{width:18px;color:#8c9b83}.search-box input{width:100%;min-width:0;border:0;background:transparent;outline:0;font-size:13px;padding:12px 0;color:#406a59}.catalog-controls select{border:1px solid #e1e1cc;background:#fffdf4;padding:10px;border-radius:12px;color:#5b7967;font-size:12px}.catalog-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.catalog-card{padding:17px 8px;border-radius:15px;border:1px solid #e7e1cb;background:#fffdf6;position:relative;min-height:98px;display:flex;flex-direction:column;align-items:center;justify-content:center}.catalog-card strong{font-size:27px;font-weight:600;color:#3e7b65;line-height:1.5}.catalog-card small{font-size:10px;color:#93967e;margin-top:4px}.catalog-card .dot{position:absolute;right:8px;top:8px;width:6px;height:6px;border-radius:50%;background:#73a479}.catalog-card.words strong{font:18px 'PingFang SC',sans-serif}.catalog-card.words small{font-size:11px}.catalog-grid.wide-grid{grid-template-columns:repeat(2,1fr)}.catalog-grid.wide-grid .catalog-card{padding:20px 15px;min-height:92px}.catalog-grid.wide-grid .catalog-card strong{font-size:15px;line-height:1.7}.pager{display:flex;align-items:center;justify-content:center;gap:15px;margin:20px 0 0;font-size:12px;color:#8a9078}.pager .soft{padding:8px 14px;min-height:37px}.detail-heading{text-align:center;margin-bottom:20px}.detail-heading .big-pinyin{font-size:67px}.detail-heading h2{font-size:25px;margin-bottom:9px}.detail-heading p{line-height:1.9;color:#718776;font-size:14px;margin-top:10px}.tone-grid{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:18px 0}.tone-cell{display:flex;flex-direction:column;align-items:center;background:#f1efde;padding:14px;border-radius:13px;min-width:88px;gap:8px}.tone-cell button{background:none;color:#3d8068}.tone-cell .pinyin{font-size:25px}.tone-cell small{font-size:12px;color:#819073}.detail-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:22px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid #e8e6d7;font-size:14px}.setting-row small{display:block;font-size:11px;color:#929982;margin-top:5px;line-height:1.6}.switch{width:48px;height:28px;background:#c7cdbd;border-radius:20px;padding:3px;flex-shrink:0}.switch i{display:block;border-radius:50%;width:22px;height:22px;background:#fff9e9;box-shadow:0 2px 3px #506c4020;transition:transform .2s}.switch.on{background:#388772}.switch.on i{transform:translateX(20px)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px}.stat{background:#edf0df;border-radius:15px;padding:17px 12px;text-align:center}.stat strong{font-size:25px;color:#387c66}.stat span{display:block;font-size:11px;color:#829079;margin-top:7px}.parent-note{font-size:11px;line-height:1.9;color:#929580;margin:17px 0}.danger{color:#aa7756;background:#f4e7d8}.confirm-reset{padding:25px;text-align:center}.confirm-reset p{line-height:1.9;margin:14px 0 24px;color:#8a8975}.read-lines{display:flex;flex-direction:column;gap:12px;width:100%;margin:15px 0}.read-line{padding:13px 19px;background:#f1f3e5;border-radius:15px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:15px}.read-line small{display:block;font-family:Arial,sans-serif;font-size:13px;line-height:1.7;color:#7e9279}.read-line strong{font-size:17px;font-weight:500;line-height:1.8}.read-line svg{color:#4c8b72;width:19px}.story-note{font-size:11px;line-height:1.8;color:#9a9880}.writing-heading{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#7a8d76;align-items:center}.writing-grid{display:block;width:210px;height:210px;max-width:100%;margin:auto;touch-action:none;background:#fffef7;border-radius:12px}.writing-status{font-size:12px;color:#699174;margin:10px 0}.writing-count{white-space:nowrap}.demo-writing{font-size:12px;min-height:35px;padding:8px 15px}.writing-host{width:min(420px,100%)}.empty-state{padding:35px;text-align:center;color:#82917a;line-height:2;font-size:14px}.rotate-notice{display:none}#toast{position:fixed;left:50%;bottom:35px;transform:translate(-50%,15px);border-radius:15px;background:#224f46ef;color:#fff9e8;padding:12px 22px;font-size:13px;box-shadow:0 6px 20px #193b2740;max-width:90%;z-index:20;opacity:0;pointer-events:none;transition:all .2s;line-height:1.8}#toast.visible{opacity:1;transform:translate(-50%,0)}.audio-active .quiz-sound{animation:pulse 1s infinite}.paused .ambient,.paused .map-rabbit,.paused .guide-character{animation-play-state:paused}.paused .ambient i{animation-play-state:paused}.no-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}@keyframes idle{50%{transform:translateY(-5px) rotate(.5deg)}}@keyframes float{to{transform:translate(80px,-700px) rotate(120deg);opacity:0}}@keyframes pop{from{transform:scale(.3) rotate(-25deg);opacity:0}to{transform:scale(1) rotate(-10deg)}}@keyframes confetti{to{transform:translateY(100svh) rotate(420deg);opacity:0}}@keyframes shake{25%,75%{transform:translateX(-6px)}50%{transform:translateX(6px)}}@keyframes pulse{50%{box-shadow:0 0 0 10px #77a88622}}@keyframes delivery{to{transform:translate(250px,-50px) rotate(-12deg);opacity:0}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-aspect-ratio:2/1){.topbar{height:70px;padding:13px 4%}.map-intro{top:21%}.map-intro h1{font-size:40px}.map-rabbit{height:51%}.greeting{bottom:24%;padding:10px 16px;font-size:11px}.continue-card{bottom:20%;padding:12px 16px}.pin-disc{width:50px;height:50px;border-radius:18px}.pin-disc svg{width:25px;height:25px}.pin-sign{padding:7px 13px}.pin-sign strong{font-size:13px}.dock{bottom:15px}.dock button{padding:9px 16px}.lesson-layout{margin-top:4px;grid-template-columns:170px 1fr;gap:20px;min-height:calc(100svh - 105px)}.guide-character{max-height:250px}.guide-bubble{font-size:12px;padding:13px}.learning-card{min-height:250px;padding:17px}.big-pinyin{font-size:76px}.quiz-title{font-size:18px;margin:4px 0 8px}.quiz-sound{width:54px;height:54px;margin:4px auto 10px;border-radius:18px}.choices{margin:10px 0}.choice{min-height:68px;min-width:85px;font-size:30px}.hint{margin-top:8px;font-size:12px}.writing-grid{width:150px;height:150px}.lesson-actions .primary{padding:10px 18px;min-height:42px}.target-envelope{min-height:55px;margin-bottom:5px}.step-nav{margin:0}.lesson-main{gap:10px}.lesson-layout{margin-bottom:15px}.read-lines{gap:5px}.read-line{padding:8px 12px}.read-line small{font-size:11px}.read-line strong{font-size:13px}}@media(max-width:800px){.topbar{padding:13px 3%;height:72px}.brand-mark{width:40px;height:40px;font-size:33px;border-radius:13px}.brand{gap:8px}.brand strong{font-size:20px;letter-spacing:2px}.brand small{font-size:8px;letter-spacing:2px}.header-actions{gap:7px}.header-pill{padding:8px 11px;font-size:10px}.round{width:37px;height:37px}.parent-btn{padding:9px 11px;font-size:11px}.map-intro{left:4%;top:24%}.map-intro h1{font-size:34px}.map-intro p{font-size:11px;letter-spacing:0}.map-intro .eyebrow{font-size:8px}.pin-disc{width:49px;height:49px;border-radius:18px;border-width:3px}.pin-disc svg{width:25px;height:25px}.pin-sign{padding:7px 9px;min-width:84px;border-radius:10px;margin-top:6px}.pin-sign strong{font-size:11px}.pin-sign small{font-size:8px;letter-spacing:0}.pin-tag{font-size:8px;padding:4px 7px;margin-top:6px}.pin-0{left:32%;top:44%}.pin-1{left:49%;top:26%}.pin-2{left:66%;top:44%}.pin-3{left:81%;top:23%}.map-rabbit{height:42%;width:23%}.greeting{left:15%;bottom:20%;font-size:10px;padding:10px 13px;max-width:160px}.continue-card{right:3%;bottom:19%;min-width:190px;gap:10px;padding:12px 14px;border-radius:17px}.continue-card strong{font-size:14px;margin-top:5px}.continue-card small{font-size:8px}.continue-card .primary{padding:10px 12px;min-height:39px;font-size:11px;border-radius:12px}.continue-card .primary svg{width:15px}.dock{bottom:14px;border-radius:19px;padding:5px}.dock button{padding:9px 14px;font-size:11px;border-radius:14px;gap:5px}.dock svg{width:18px;height:18px}.tiny-label{display:none}.lesson-layout{width:94%;grid-template-columns:150px 1fr;gap:16px;margin-top:0}.learning-card{padding:18px;min-height:255px;border-radius:23px}.guide-bubble{font-size:11px;padding:12px 14px;max-width:165px}.guide-character{max-height:250px}.lesson-meta{font-size:10px}.lesson-actions{gap:10px}.lesson-actions>span{font-size:9px}.step-nav{gap:6px}.step-nav span{font-size:10px;gap:4px}.step-nav i{width:19px;height:19px;font-size:9px}.quiz-title{font-size:17px;margin:4px 0 10px}.choice{min-width:77px;min-height:68px;font-size:29px;padding:12px}.choices{gap:10px}.big-pinyin{font-size:75px}.hint{font-size:12px;margin-top:10px}.example-word{font-size:16px}.lesson-actions .primary{font-size:12px;min-width:130px;padding:11px 16px}.back-link{font-size:11px}.panel-head{padding:20px 22px 15px}.panel-head h2{font-size:20px}.panel-body{padding:18px 22px}.lesson-list{gap:8px}.lesson-row{padding:11px;gap:9px;min-height:62px}.lesson-row strong{font-size:12px}.catalog-card{min-height:83px;padding:12px 6px}.catalog-card strong{font-size:23px}.guide-column{justify-content:flex-end}.parent-btn span{display:none}.header-pill .passport-label{display:none}.card-eyebrow{font-size:9px}.quiz-feedback{font-size:12px}.choice.long-choice{font-size:14px;min-width:110px}.target-envelope{font-size:26px;padding:10px 22px}.lesson-group-preview{margin-top:10px}}@media(max-height:460px) and (orientation:landscape){.world{min-height:100svh}.topbar{height:61px;padding-top:9px;padding-bottom:9px}.map-intro{top:23%}.map-intro h1{font-size:30px}.map-intro p{margin-top:8px}.pin-0{top:42%}.pin-1{top:25%}.pin-2{top:40%}.pin-3{top:20%}.pin-tag{display:none}.map-rabbit{height:48%}.greeting{bottom:24%;font-size:9px}.continue-card{bottom:18%}.dock{bottom:9px}.dock button{padding:8px 12px}.lesson-layout{grid-template-columns:115px 1fr;gap:13px;min-height:calc(100svh - 75px);margin-bottom:12px}.guide-bubble{font-size:10px;padding:10px}.guide-character{max-height:195px}.lesson-main{gap:7px}.learning-card{min-height:220px;padding:12px}.lesson-meta{font-size:9px}.lesson-progress{margin-top:5px}.lesson-progress i{height:3px}.big-pinyin{font-size:62px;margin:0}.hint{font-size:10px;margin-top:7px;line-height:1.7}.pronounce-button{font-size:10px;padding:7px 11px;min-height:34px}.pronounce-button svg{width:17px}.example-word{font-size:13px;margin-top:8px}.step-nav span{font-size:9px}.quiz-title{font-size:15px;margin-bottom:5px}.quiz-sound{width:43px;height:43px;margin-bottom:5px;border-radius:15px}.quiz-sound svg{width:23px}.choice{min-height:57px;font-size:26px;min-width:70px;border-radius:14px;padding:8px 14px}.choices{margin:8px 0}.quiz-feedback{font-size:10px;min-height:20px;margin-top:6px}.lesson-actions .primary{min-height:36px;padding:8px 16px;font-size:11px}.lesson-actions>span{display:none}.help-button{font-size:10px;padding:5px}.writing-grid{width:125px;height:125px}.writing-heading{font-size:10px}.writing-status{font-size:10px;margin:6px 0}.celebration{min-height:calc(100svh - 65px)}.big-star{width:75px;height:75px;border-radius:25px}.big-star svg{width:43px;height:43px}.celebration h1{font-size:25px;margin:20px 0 8px}.celebration p{font-size:12px}.celebration .primary{margin-top:20px}.target-envelope{min-height:45px}.target-envelope .slot{height:32px;font-size:24px;min-width:30px}.build-tokens .choice{min-height:45px;min-width:50px;font-size:24px}.lesson-group-preview button{font-size:15px;padding:4px 10px}.read-line strong{font-size:12px}.read-line small{font-size:10px}.read-lines{margin:7px 0}.story-note{font-size:9px}}@media(orientation:portrait) and (max-width:800px){body:not(.allow-portrait) .rotate-notice{display:flex;position:fixed;inset:0;z-index:30;align-items:center;justify-content:center;flex-direction:column;background:#f5f0df;padding:30px;text-align:center}.rotate-notice>span{font-size:80px;color:#3c8a76}.rotate-notice h2{font-size:22px;margin:20px 0 15px}.rotate-notice p{font-size:13px;color:#8b967e}.rotate-notice button{margin-top:30px;background:#357e68;color:#fff9e8;border-radius:14px;padding:14px 20px}.allow-portrait .city-world{min-height:850px}.allow-portrait .map-intro{top:15%}.allow-portrait .pin-0{left:8%;top:39%}.allow-portrait .pin-1{left:59%;top:31%}.allow-portrait .pin-2{left:36%;top:51%}.allow-portrait .pin-3{left:65%;top:64%}.allow-portrait .map-rabbit{height:29%;width:44%}.allow-portrait .greeting{bottom:22%;left:8%}.allow-portrait .continue-card{bottom:12%}.allow-portrait .header-pill{display:none}.allow-portrait .lesson-layout{display:block}.allow-portrait .guide-column{display:none}.allow-portrait .lesson-main{min-height:calc(100svh - 95px)}.allow-portrait .learning-card{min-height:400px}.allow-portrait .catalog-grid{grid-template-columns:repeat(3,1fr)}.allow-portrait .catalog-grid.wide-grid,.allow-portrait .lesson-list{grid-template-columns:1fr}.allow-portrait .catalog-controls{flex-wrap:wrap}.allow-portrait .stats{grid-template-columns:1fr 1fr}.allow-portrait .panel-body{padding:16px}.allow-portrait .tabs button{padding:8px 10px}.allow-portrait .parent-btn{font-size:0}}
/* The original companion illustration is framed as a portrait; no generated cutout is assumed. */
.map-rabbit{object-fit:cover;object-position:left center;width:19%;height:38%;left:3%;bottom:8%;border:5px solid #fff9e9;border-radius:47% 47% 25% 25%;box-shadow:0 8px 25px #23492f33;filter:none}.guide-character{object-fit:cover;object-position:left center;height:310px;max-height:310px;border:5px solid #fff9e9;border-radius:45% 45% 22px 22px;margin-top:40px;box-shadow:0 8px 25px #23492f12}.greeting{left:18%;bottom:27%}@media(max-width:800px){.map-rabbit{height:35%;bottom:9%;width:20%}.greeting{left:17%;bottom:26%;max-width:150px}.guide-character{height:235px;max-height:235px;border-width:3px}}@media(max-height:460px) and (orientation:landscape){.guide-character{height:180px;max-height:180px;margin-top:28px}.greeting{left:17%;bottom:27%;font-size:9px}.map-rabbit{bottom:5%;height:37%}}@media(orientation:portrait) and (max-width:800px){.allow-portrait .map-rabbit{width:38%;height:26%;bottom:10%}.allow-portrait .greeting{left:10%;bottom:34%}}
.city-world .brand{background:#fff9e9eb;border-radius:20px;padding:7px 14px 7px 7px;box-shadow:0 4px 18px #324a241c}.city-world .topbar{padding-top:18px;padding-bottom:18px}
@media(max-height:460px) and (orientation:landscape){.topbar{height:52px}.city-world .topbar{padding-top:5px;padding-bottom:5px}.brand strong{font-size:17px}.brand small{font-size:7px;margin-top:3px}.brand-mark{height:34px;width:34px;font-size:28px}.city-world .brand{padding:4px 10px 4px 4px;border-radius:15px}.lesson-layout{height:calc(100svh - 64px);min-height:0}.lesson-main{gap:5px;min-height:0}.learning-card{min-height:0;padding:8px 12px}.lesson-actions .back-link{padding:7px 0}.step-nav{margin:0}.quiz-sound{height:34px;width:38px;margin:2px auto 4px;flex-shrink:0}.quiz-title{font-size:14px;line-height:1.5;margin:3px 0 4px}.choices{margin:4px 0}.quiz-feedback{margin-top:3px;min-height:17px}.choice{min-height:51px;padding:5px 12px}.guide-character{height:150px;max-height:150px;margin-top:32px}.guide-bubble{font-size:9px;line-height:1.7}.target-envelope{padding:7px 20px;margin:0 0 4px;min-height:38px}.writing-grid{height:116px;width:116px}.writing-heading{font-size:9px}.writing-status{margin:3px 0}.demo-writing{min-height:27px;padding:4px 12px;font-size:10px}.card-eyebrow{font-size:8px}.read-line{padding:5px 9px}.read-line small{font-size:9px}.read-line strong{font-size:11px}.read-lines{gap:4px}.story-note{line-height:1.4}.hint{margin-top:6px}}
.pinyin{font-family:'Comic Sans MS','Chalkboard SE','Arial',sans-serif}.choice.long-choice{overflow-wrap:anywhere}.target-envelope{max-width:100%}.target-envelope>span{overflow-wrap:anywhere}.target-envelope:has(>span:not(.slot)){font-size:clamp(16px,2.5vw,30px)}
.tone-rail{width:270px;height:88px;margin:8px 0 0;position:relative}.tone-rail>svg{width:100%;height:80px}.tone-rail small{position:absolute;bottom:-5px;left:0;width:100%;font-size:10px;color:#8a9c7f}.tone-tram{position:absolute;display:grid;place-items:center;background:#318373;color:#fff9e0;width:29px;height:29px;border-radius:8px;box-shadow:0 3px 0 #235f56;left:5%;top:8%;animation:tram-flat 3s ease-in-out infinite}.tone-tram svg{width:20px}.tone-2 .tone-tram{animation-name:tram-up}.tone-3 .tone-tram{animation-name:tram-dip}.tone-4 .tone-tram{animation-name:tram-down}.tone-5 .tone-tram{top:30%}.mail-delivery{position:absolute;left:50%;top:50%;display:flex;align-items:center;gap:12px;padding:14px 24px;background:#fff0c7;color:#277963;border:2px solid #e5c678;border-radius:14px;box-shadow:0 8px 30px #30522a33;animation:letter-arrives 1.7s ease both;font-size:18px;font-weight:600;pointer-events:none}.mail-delivery svg{width:35px;height:35px}.target-envelope.received{background:#e7efd5;border-color:#97bc87}.choice.correct:after{content:' ✓';font-family:Arial,sans-serif}@keyframes letter-arrives{0%{transform:translate(-170%,-50%) rotate(-12deg);opacity:0}25%{transform:translate(-50%,-50%) rotate(3deg);opacity:1}75%{transform:translate(-50%,-50%) rotate(0);opacity:1}100%{transform:translate(150%,-100%) rotate(-12deg);opacity:0}}@keyframes tram-flat{0%,15%{left:5%}85%,100%{left:85%}}@keyframes tram-up{0%,15%{left:5%;top:55%}85%,100%{left:85%;top:5%}}@keyframes tram-dip{0%,15%{left:5%;top:12%}50%{left:45%;top:60%}85%,100%{left:85%;top:8%}}@keyframes tram-down{0%,15%{left:5%;top:5%}85%,100%{left:85%;top:65%}}@media(max-height:460px) and (orientation:landscape){.tone-rail{width:160px;height:55px;margin:0}.tone-rail>svg{height:50px}.tone-tram{width:22px;height:22px;border-radius:6px}.tone-tram svg{width:16px;height:16px}.tone-rail small{font-size:8px}.mail-delivery{padding:10px 17px;font-size:14px}.mail-delivery svg{width:24px;height:24px}}
/* Long stories stay readable from their first line, including small landscape screens. */
.learning-card{overflow-y:auto;justify-content:safe center;overscroll-behavior:contain}.learning-card>*{flex-shrink:0}.round{min-width:44px;min-height:44px}.header-pill,.parent-btn{min-height:44px}.lesson-actions button,.pronounce-button,.quiz-sound,.lesson-group-preview button,.demo-writing{min-height:44px}
@media(max-height:460px) and (orientation:landscape){.learning-card:has(.tone-rail) .big-pinyin{font-size:48px;line-height:1.2}.writing-grid{height:100px;width:100px}.demo-writing{min-height:44px}.lesson-actions .primary{min-height:44px}.lesson-group-preview{margin-top:5px}}
@media(max-height:460px) and (orientation:landscape){.learning-card:has(.tone-rail) .big-pinyin{font-size:38px}.learning-card:has(.tone-rail) .hint{font-size:9px;line-height:1.4;margin-top:3px}.tone-rail{height:46px}.tone-rail>svg{height:40px}.tone-rail small{bottom:-1px}}
/* Pronunciation practice keeps the current sound and its example visibly separate. */
.pronunciation-controls{width:100%;text-align:center}.pronunciation-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.pronunciation-actions button{min-width:44px;min-height:44px;justify-content:center}.primary-voice{background:#e0edda;border-color:#bacdaf;color:#276e55;font-weight:700}.example-voice{background:#fff9ec;border-color:#e5ddc9;color:#7c795f}.pronunciation-demo{font-size:12px;color:#63836c;margin-top:9px;line-height:1.6}.playback-status{min-height:18px;font-size:11px;line-height:18px;color:#28785e}.pronunciation-hint{margin-top:6px}.sound-comparison{width:min(100%,520px);margin:14px auto 0;border-top:1px solid #e9e8d6;padding-top:12px}.comparison-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}.comparison-heading h3{font-size:13px;font-weight:600;color:#6e8066}.sequence-button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;background:#f0f3e6;border-radius:12px;padding:8px 12px;font-size:11px;color:#51816a}.sequence-button svg{width:16px;height:16px}.sound-comparison .tone-grid{gap:8px;margin:8px 0 0;flex-wrap:wrap}.sound-comparison .tone-cell{padding:0;min-width:74px;flex:1;max-width:104px;gap:0;background:transparent}.sample-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:64px;min-height:66px;padding:8px 12px;border:1px solid #e2e5d4;border-radius:13px;background:#f3f1e3;color:#457a63}.sound-comparison .tone-cell .sample-button{width:100%;background:#f3f1e3}.sample-button strong{font-size:24px;line-height:1.3}.sample-button small{font-size:10px;color:#74856b;letter-spacing:0}.spelling-samples{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:8px}.spelling-samples .sample-button{flex:1;max-width:114px}.comparison-note{font-size:11px;line-height:1.7;color:#839079;margin-top:8px}.is-playing,.sound-comparison .tone-cell .is-playing{background:#d4e9cc!important;border-color:#78a785;color:#205e48;box-shadow:0 0 0 2px #8cb99a}.tone-cell .back-link{min-height:44px;padding:8px 10px;justify-content:center;font-size:11px}.lesson-group-preview{flex-wrap:wrap;justify-content:center}.lesson-group-preview button{min-width:44px}.panel-body>.pronunciation-controls{margin-top:12px}.detail-heading .pronunciation-hint{margin-left:auto;margin-right:auto}.lesson-main{min-height:0}.learning-card{min-height:0}.lesson-actions{flex-shrink:0}
@media(orientation:landscape){.lesson-layout{height:calc(100svh - 125px);min-height:0;margin-bottom:18px}.learning-card{flex:1 1 0}.learning-card:has(.pronunciation-controls){padding:20px}.learning-card:has(.pronunciation-controls) .big-pinyin{font-size:76px;line-height:1.2}}
@media(min-aspect-ratio:2/1){.lesson-layout{height:calc(100svh - 90px)}}
@media(max-width:800px) and (orientation:landscape){.lesson-layout{height:calc(100svh - 90px)}}
@media(max-height:460px) and (orientation:landscape){.lesson-layout{height:calc(100svh - 64px);margin-bottom:12px}.learning-card:has(.pronunciation-controls){padding:12px}.learning-card:has(.pronunciation-controls) .big-pinyin{font-size:48px}.pronunciation-actions{gap:6px}.pronunciation-actions button{padding:7px 10px;font-size:10px}.pronunciation-demo{font-size:10px;margin-top:6px}.playback-status{font-size:10px;min-height:16px;line-height:16px}.learning-card:has(.tone-rail) .pronunciation-hint,.pronunciation-hint{font-size:10px;line-height:1.7}.sound-comparison{margin-top:9px;padding-top:8px}.comparison-heading h3{font-size:11px}.sequence-button{font-size:10px;padding:7px 9px}.sound-comparison .tone-cell{min-width:62px}.sample-button{min-height:58px;padding:6px 9px}.sample-button strong,.sound-comparison .tone-cell .pinyin{font-size:21px}.comparison-note{font-size:10px}.detail-heading{margin-bottom:10px}.detail-heading .big-pinyin{font-size:48px}}
.learning-card{scrollbar-color:#afc5a2 #f5f5e9;scrollbar-width:thin}.learning-card::-webkit-scrollbar{width:7px}.learning-card::-webkit-scrollbar-thumb{background:#afc5a2;border:2px solid #fffdf4;border-radius:8px}.learning-card::-webkit-scrollbar-track{background:#f5f5e9;border-radius:8px}
.panel-head{position:sticky;top:0;z-index:2;background:#fff9ec}
.quiz-sound{min-width:44px}
.tone-context{font-size:10px;line-height:1.5;letter-spacing:0;color:#75856c;overflow-wrap:anywhere}
/* Stroke-by-stroke practice keeps a large surface and visible accumulated progress. */
.writing-host.stroke-writing{width:min(520px,100%);display:grid;grid-template-columns:1fr;gap:10px}
.stroke-writing .writing-heading{flex-wrap:wrap;justify-content:center;gap:6px 16px;font-size:12px}
.stroke-writing .writing-grid{width:260px;height:260px;max-width:100%;border:1px solid #e0e6d8;cursor:crosshair;user-select:none}
.writing-controls{display:flex;flex-direction:column;align-items:center;gap:8px}
.writing-tip{font-size:12px;color:#71876b;line-height:1.6}
.stroke-writing .writing-status{margin:0;font-size:12px;line-height:1.6;min-height:20px}
.writing-tools{display:flex;gap:8px;justify-content:center}
.stroke-writing .writing-tools button{min-height:44px;padding:10px 16px;font-size:12px}
.writing-progress{width:100%;max-width:230px;height:10px;accent-color:#258579}
@media(orientation:landscape) and (min-height:601px){
 .writing-host.stroke-writing{width:min(620px,100%);grid-template-columns:280px minmax(180px,1fr);gap:18px;align-items:center}
 .stroke-writing .writing-heading{grid-column:1/-1}
 .stroke-writing .writing-grid{width:280px;height:280px}
 .writing-controls{gap:14px}
}
@media(orientation:landscape) and (max-height:600px){
 .learning-card:has(.stroke-writing){padding:10px 14px;gap:4px}
 .learning-card:has(.stroke-writing)>.card-eyebrow{display:none}
 .writing-host.stroke-writing{grid-template-columns:minmax(174px,240px) minmax(160px,1fr);column-gap:16px;row-gap:6px;align-items:center}
 .stroke-writing .writing-heading{grid-column:1/-1;font-size:11px}
 .stroke-writing .writing-grid{width:210px;height:210px}
 .writing-controls{gap:10px}
 .stroke-writing .writing-tools button{padding:8px 10px}
}
@media(orientation:landscape) and (max-height:460px){
 .lesson-main:has(.stroke-writing) .lesson-meta,.lesson-main:has(.stroke-writing) .lesson-progress{display:none}
 .writing-host.stroke-writing{grid-template-columns:174px minmax(145px,1fr);column-gap:10px;row-gap:3px}
 .stroke-writing .writing-grid{width:174px;height:174px}
 .writing-tip,.stroke-writing .writing-status{font-size:10px}
 .stroke-writing .writing-tools button{padding:8px;font-size:11px}
}
