:root{--paper:#fffaf0;--white:#fffef9;--ink:#344f43;--muted:#7e8d7b;--green:#3e795f;--green-dark:#2c604b;--sage:#e9f0df;--yellow:#f4ca69;--orange:#dc9444;--line:#e4e6d8;--red:#c84e49;font-family:"Avenir Next","Nunito","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 5% 25%,#f6f2df 0,transparent 40%),var(--paper)}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e7a73e;outline-offset:4px}button:disabled{cursor:default;opacity:.48}button:not(:disabled){transition:background .18s,box-shadow .18s,border-color .18s}button:not(:disabled):active{filter:brightness(.96)}.icon{width:22px;height:22px;flex:none;vertical-align:middle}.site-header{height:94px;max-width:1320px;padding:0 52px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-align:left;font-size:21px;font-weight:750;letter-spacing:1px;padding:0}.brand small{display:block;font-size:8px;font-weight:600;letter-spacing:2.7px;margin-top:5px;color:#87967b}.brand-icon{width:43px;height:43px;border-radius:15px;background:#dfead2;position:relative;display:block;font-family:Georgia,serif;color:var(--green);font-size:30px;font-weight:bold;line-height:41px;padding-left:7px;rotate:-6deg}.brand-icon span{position:absolute;font-size:20px;top:5px;left:23px;color:var(--orange);rotate:15deg}.brand-icon i{position:absolute;width:6px;height:6px;background:var(--yellow);border-radius:50%;top:-3px;right:0}.site-header nav{display:flex;gap:8px}.site-header nav button{font-size:13px;padding:10px 19px;border-radius:30px;color:var(--muted);font-weight:600}.site-header nav button.active{color:var(--green);background:#e9efdf}.round-btn{width:39px;height:39px;border:1px solid #dce2d1;border-radius:50%;background:#fffdf4;display:grid;place-items:center;flex:none}.round-btn:hover{background:var(--sage)}#app{max-width:1320px;margin:auto;padding:30px 52px 22px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:#839079;display:inline-flex;align-items:center;gap:8px}.eyebrow i{width:6px;height:6px;border-radius:50%;background:#d0a14e}.home-hero{display:grid;grid-template-columns:1fr 1.12fr;min-height:344px;border:1px solid #e5e4d0;border-radius:28px;overflow:hidden;background:#f6f1df;box-shadow:0 8px 25px #625b2610}.hero-copy{padding:32px 40px 26px;position:relative;z-index:1}.hero-copy h1{font-size:46px;font-weight:750;line-height:1.35;letter-spacing:1px;margin:17px 0 15px}.hero-copy h1 span{color:var(--green);position:relative}.hero-copy h1 span:after{content:'';position:absolute;left:0;right:0;bottom:2px;height:9px;background:#eac26a66;border-radius:50%;z-index:-1}.hero-copy p{font-size:13px;line-height:1.9;color:#849079;margin:0}.hero-badges{display:flex;gap:22px;margin-top:25px;color:#7b8a71;font-size:10px}.hero-badges span{display:flex;align-items:center;gap:6px}.hero-badges .icon{width:16px;height:16px}.hero-art{position:relative;min-height:344px;background:linear-gradient(90deg,#f6f1df00 75%,#fff0 100%),url('assets/room.webp') 69% center/cover}.hero-art:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#f6f1df 0%,#f6f1df00 27%)}.art-stamp{position:absolute;right:24px;top:22px;color:#87774d;font-family:Georgia,serif;font-style:italic;font-size:13px;line-height:1.5;text-align:right;rotate:6deg}.art-stamp b{font-weight:normal}.mini-float{width:88px;padding:5px 8px 7px;position:absolute;border:3px solid white;border-radius:17px;background:#fffdf4;box-shadow:0 8px 20px #5e5d3825;text-align:center}.mini-float .sprite{width:66px;height:66px}.mini-float>span{display:block;font-family:Georgia,serif;font-size:15px;color:#58745b;font-weight:bold}.mini-float.f1{left:10%;top:26%;rotate:-12deg}.mini-float.f2{right:7%;bottom:6%;rotate:10deg}.sprite{width:100%;aspect-ratio:1;background:var(--atlas,url('assets/atlas.webp')) var(--sx) var(--sy)/400% 400%;background-color:#fff;border-radius:18px;flex:none}.resume-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px dashed #c4d3b7;background:#f0f5e8;padding:12px 18px;border-radius:14px;font-size:12px;margin-top:17px}.resume-strip b{font-weight:650}.text-button{font-size:12px;font-weight:600;color:var(--green);display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 0;white-space:nowrap}.text-button .icon{width:17px;height:17px}.setup{padding-top:28px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.section-top h2{margin:6px 0 0;font-size:23px;font-weight:700;letter-spacing:.5px}.section-top>.text-button{align-self:flex-end;margin-bottom:3px}.course-pills{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.course-pill{display:flex;align-items:center;gap:11px;padding:13px 12px;border:1.5px solid var(--line);border-radius:17px;background:#fffdf7;text-align:left;position:relative;min-height:82px}.course-pill.selected{border-color:#6a9770;background:#f0f5e8;box-shadow:0 3px 0 #d9e4cb}.course-pill .sprite{width:49px;border-radius:12px}.course-pill small{display:block;color:#9a9f89;font-size:8px;letter-spacing:1px;margin-bottom:5px}.course-pill b{display:block;font-size:12px;white-space:nowrap;font-weight:650}.course-pill>i{position:absolute;top:8px;right:8px;width:13px;height:13px;border:1px solid #d7dfcb;border-radius:50%;background:#fff}.course-pill>i .icon{display:none}.course-pill.selected>i{background:var(--green);border-color:var(--green)}.course-pill.selected>i .icon{display:block;width:12px;height:12px;color:white}.setup-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:23px 0 15px}.control-label{font-size:11px;color:#8a947f;display:block;margin-bottom:10px}.mode-pills{display:flex;background:#efeee3;border-radius:10px;padding:4px;gap:2px}.mode-pills button{padding:9px 17px;font-size:12px;border-radius:7px;color:#8d957e;font-weight:600}.mode-pills button.selected{background:#fffef7;color:var(--green);box-shadow:0 2px 5px #615e2d12}.speed-control{display:flex;gap:9px;align-items:center;font-size:10px;color:#939b85;margin-top:12px}.speed-control select{border:0;background:transparent;color:#6d826a;font-size:10px;cursor:pointer;outline-offset:0}.start-area{text-align:center;padding-top:10px}.primary{border:1px solid var(--green);border-bottom:4px solid var(--green-dark);background:var(--green);color:white;border-radius:14px;padding:13px 23px;display:inline-flex;align-items:center;justify-content:center;gap:20px;font-size:14px;font-weight:650;box-shadow:0 4px 10px #345e3b12}.primary:not(:disabled):hover{background:#48896a}.primary.start{min-width:260px;padding:16px 23px;font-size:16px}.primary .icon{width:19px;height:19px}.start-area>small{display:block;color:#98a08b;font-size:10px;margin-top:12px}.home-foot{display:flex;justify-content:space-between;font-size:10px;color:#9ca18e;border-top:1px solid var(--line);padding-top:18px;margin-top:8px;gap:20px}.page-heading{padding:12px 0 20px}.page-heading h1{font-size:33px;margin:10px 0 12px;letter-spacing:1px}.page-heading p{font-size:13px;color:var(--muted)}.filter-pills{display:flex;gap:8px;margin:0 0 24px}.filter-pills button{border:1px solid var(--line);padding:8px 15px;font-size:12px;border-radius:30px;background:#fffdf7;color:var(--muted)}.filter-pills button.selected{background:var(--sage);border-color:#aec39c;color:var(--green)}.word-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.word-card{padding:18px;border:1px solid var(--line);border-radius:21px;background:var(--white);text-align:center;position:relative}.word-card>.sprite{max-width:155px;margin:auto}.word-card h2{font-size:25px;margin:11px 0 3px}.word-card p{font-size:12px;color:var(--muted);margin:0 0 12px}.word-card .round-btn{width:32px;height:32px;margin:auto}.word-card .round-btn .icon{width:17px;height:17px}.section-heading{font-size:23px;margin:35px 0 18px}.sentence-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.sentence-card{display:flex;gap:19px;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:20px;padding:18px}.sentence-card .sprite{width:88px}.sentence-card h3{font-size:17px;margin:0 0 7px;line-height:1.6}.sentence-card p{font-size:12px;color:var(--muted);margin:0 0 7px}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:10px 0 26px}.stats-row>div{border:1px solid var(--line);background:#f0f4e7;border-radius:18px;padding:22px;text-align:center}.stats-row b{font-size:34px;display:block;color:var(--green);font-weight:600;line-height:1.25}.stats-row span{display:block;font-size:11px;color:var(--muted);margin-top:10px}.records-panel{border:1px solid var(--line);background:var(--white);padding:24px;border-radius:23px}.note{font-size:11px;color:#8b957f;line-height:1.9}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th,td{border-bottom:1px solid var(--line);padding:15px 12px;line-height:1.7}th{font-size:11px;color:#91a086;background:#f7f8ef;font-weight:500}td small{display:block;font-size:10px;color:#93a087}td strong{font-weight:600;white-space:normal;min-width:100px;display:block}.status-good{color:var(--green)}.status-help{color:#be8842}.empty-state{text-align:center;padding:45px}.empty-state>.icon{width:50px;height:50px;color:#9eb68c}.empty-state p{font-size:12px;color:var(--muted)}.empty-state .primary{margin-top:20px}
/* The playfield excludes the header and answer dock; 70% is measured within its usable travel. */
.in-game #app{padding-top:20px}.game-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px}.game-toolbar>.text-button{font-size:11px;color:#8c9982}.journey-steps{display:flex;gap:15px;align-items:center}.journey-steps>span{display:flex;gap:7px;align-items:center;color:#a1aa94;font-size:11px}.journey-steps>span i{width:21px;height:21px;border:1px solid #dfe4d5;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:10px}.journey-steps>span.active{color:var(--green);font-weight:700}.journey-steps>span.active i{background:#e3ecd6;border-color:#a8c198}.journey-steps em{font-style:normal;color:#c7ceba}.game-progress{height:4px;background:#e9eddf;border-radius:3px;overflow:hidden;margin-top:15px}.game-progress>i{display:block;height:100%;background:#7eab76;border-radius:3px;transition:width .3s}.task-heading{display:flex;align-items:center;justify-content:space-between;margin:20px 0 15px}.task-heading .eyebrow{font-size:9px}.task-heading h1{font-size:25px;margin:7px 0 0;letter-spacing:.5px;font-weight:650}.task-count{font-size:25px;color:var(--green);font-weight:600}.task-count small{font-size:13px;color:#a0a58f;font-weight:400}.rain-layout{display:grid;grid-template-columns:minmax(0,1fr) 228px;gap:18px}.rain-board{border:1px solid #cbdcc4;background:linear-gradient(#e7f2e9,#f3f6e2);border-radius:23px;overflow:hidden;position:relative;isolation:isolate}.sky-trim{height:39px;position:relative}.little-cloud{position:absolute;width:72px;height:18px;background:#fffdf4;border-radius:30px;box-shadow:0 4px 0 #b5d6c133;opacity:.9}.little-cloud:before,.little-cloud:after{content:'';position:absolute;border-radius:50%;background:inherit;bottom:7px;width:31px;height:31px;left:12px}.little-cloud:after{width:23px;height:23px;left:37px}.cloud1{left:8%;top:30px}.cloud2{left:43%;top:21px;scale:1.2}.cloud3{right:9%;top:37px;scale:.75}.sun{position:absolute;right:7%;top:11px;width:35px;height:35px;border-radius:50%;background:#eed483;box-shadow:0 0 0 9px #f3dfa84d;z-index:-1}.playfield{height:clamp(320px,44vh,440px);position:relative;margin:0 10px;overflow:hidden;z-index:2}.playfield button{position:absolute;top:0;left:0;will-change:transform;user-select:none;-webkit-user-select:none}.falling-picture{padding:8px;background:#fffef9;border:2px solid #e1e2cd;border-bottom:5px solid #cecfae;box-shadow:0 5px 9px #647b3c16;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:3}.falling-picture .sprite{width:100%;border-radius:14px}.picture-label{display:block;min-height:12px;font-size:14px;width:100%;text-align:center;line-height:1.35}.picture-label b{display:block;font-size:19px;font-weight:700}.picture-label small{display:block;font-size:10px;color:#779074;margin-top:1px}.falling-picture.caught{border-color:#65a274;background:#f4faeb;overflow:visible;height:auto!important;min-height:170px}.falling-picture.caught .sprite{width:90px}.falling-picture:not(.caught):hover{border-color:#b4ca9e}.error-cross{display:none;position:absolute;right:7px;top:3px;width:22px;height:22px;color:white;background:#c94b48;border-radius:50%;font-style:normal;font-size:20px;line-height:21px}.falling-picture.wrong{border-color:var(--red);background:#fff0e9;animation:tile-wrong .45s}.falling-picture.wrong .error-cross{display:block}.falling-letter{background:#ffedbb;border:2px solid #e5c986;border-bottom:5px solid #cfb06d;border-radius:14px;box-shadow:0 3px 8px #78844712;font-size:35px;line-height:1;font-weight:650;color:#616c45;z-index:3;font-family:"Avenir Next","Trebuchet MS",sans-serif}.falling-letter:hover{background:#fff4d1}.falling-letter.wrong{border-color:var(--red);background:#f9c3b6;color:#8a302e;animation:tile-wrong .45s}.hint-target{box-shadow:0 0 0 4px #f2cb6870,0 6px 14px #b7a05130!important}.hint-target .sprite{animation:hint-wiggle 1s infinite}.falling-letter.hint-target{animation:letter-hint 1.1s infinite}.hint-line{position:absolute;top:var(--hint-y,70%);left:0;right:0;height:180px;border-top:1px dashed #b8c99c80;background:linear-gradient(#d4e3af0d,#dee8b630);z-index:0;pointer-events:none}.hint-line>span{position:absolute;right:6px;top:8px;color:#96a77e;font-size:9px;letter-spacing:1px}.meadow{height:33px;position:relative;margin-top:-4px;z-index:1;overflow:hidden}.meadow:before,.meadow:after{content:'';position:absolute;left:-5%;right:-5%;top:10px;height:65px;background:#d4e3b7;border-radius:50% 50% 0 0}.meadow:after{left:15%;right:-20%;top:19px;background:#bfd5a0}.meadow i{position:absolute;background:#a6c68e;border-radius:100% 0;width:12px;height:22px;left:17%;bottom:-3px;rotate:-30deg;z-index:3}.meadow i:nth-child(2){left:68%;rotate:30deg;scale:.7}.meadow i:nth-child(3){left:85%;scale:.9}.meadow span{position:absolute;left:7%;color:#e8ae61;z-index:4;bottom:0;font-size:18px}.meadow span:last-child{left:72%;color:#f1c180;font-size:13px}.board-caption{position:relative;background:#d1e0b8;display:flex;justify-content:space-between;gap:10px;font-size:9px;padding:7px 19px 10px;color:#7b9567;z-index:4}.board-caption>span:last-child{color:#8b9f77}.rain-aside{background:#fffdf5;border:1px solid var(--line);border-radius:23px;padding:23px 20px;display:flex;flex-direction:column;justify-content:space-between;text-align:center}.aside-top>.eyebrow{font-size:8px;letter-spacing:1.6px}.target-image{width:139px;margin:14px auto 10px;border-radius:18px}.rain-aside h2{font-size:17px;font-weight:650;margin:14px 0 7px}.rain-aside p{font-size:11px;color:#94a085;line-height:1.9;margin:0}.audio-button{border:1px solid #d9e3c9;background:#eef3e5;color:#668458;padding:10px 16px;border-radius:30px;font-size:12px;font-weight:600;display:inline-flex;gap:7px;align-items:center;margin-top:16px}.audio-button .icon{width:19px;height:19px}.audio-button.playing{animation:audio-pulse 1s infinite;background:#dcebd2}.aside-note{border-top:1px dashed #dce3d0;padding-top:17px;margin-top:18px;display:flex;gap:8px;align-items:flex-start;text-align:left}.aside-note>.icon{width:19px;height:19px;color:#d3b66e;margin-top:2px}.aside-note p{font-size:10px}.sound-illustration{width:106px;height:106px;position:relative;margin:29px auto 20px;border-radius:50%;background:#e5edda;border:13px solid #f4f6e9;box-shadow:0 0 0 1px #dce7cb;display:grid;place-items:center;color:#719563}.sound-illustration>.icon{width:36px;height:36px}.sound-illustration i{position:absolute;width:5px;height:15px;background:#d8b76b;border-radius:5px;top:4px;right:-20px;rotate:35deg}.sound-illustration i:nth-child(3){right:-27px;top:28px;rotate:90deg;height:12px}.sound-illustration i:nth-child(4){right:-19px;top:52px;rotate:130deg;height:9px}.answer-dock{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:15px;padding:17px 23px;border:1px solid var(--line);border-radius:20px;background:#fffdf6;min-height:105px}.dock-main{flex:1;min-width:0}.letter-slots{display:flex;gap:7px;flex-wrap:wrap}.letter-slot{width:42px;height:45px;border:1px solid #dbe2cc;border-bottom:3px solid #d0dabc;border-radius:10px;background:#f3f5e8;color:#52734f;font-size:26px;font-weight:600;display:grid;place-items:center;padding:0}.letter-slot:disabled{opacity:1}.letter-slot i{display:block;width:13px;height:2px;background:#c7d1b4;margin-top:15px}.letter-slot.current{border-color:#c6af6d;background:#faf3da}.letter-slot.filled{background:#e7efdc;animation:slot-pop .3s}.letter-slot.slot-error{border-color:var(--red);background:#fbe0d6;animation:tile-wrong .4s}.word-reveal{font-size:11px;color:#a2aa95;min-height:24px;display:flex;gap:12px;align-items:center;margin-top:8px;flex-wrap:wrap}.word-reveal>strong{font-size:23px;color:var(--green);font-weight:650}.word-reveal>b{font-size:13px;font-weight:500;color:#7e8a6f}.word-reveal>small{font-size:10px;color:#aa975f}.word-reveal.visible{margin-top:7px}.listening-note{font-size:13px;color:#899878;display:flex;gap:8px;align-items:center}.listening-note .icon{color:#a6b18d}.feedback{font-size:11px;line-height:1.6;min-height:0}.feedback:not(:empty){margin-top:5px}.wrong-feedback{color:#bd423f;font-weight:650}.correct-feedback{color:#73916a}.info{color:#b6873d}.next{font-size:12px;padding:12px 18px;gap:14px;min-width:185px;white-space:nowrap}.next:disabled{background:#cbd7be;border-color:#cbd7be;border-bottom-color:#b2c4a1;color:#fff;opacity:.8}.field-message{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:13px;color:#8b9f7a;text-align:center;z-index:5;gap:10px}.field-message h2{font-size:22px;margin:0}.field-message p{font-size:12px}.field-message .primary{position:static;width:auto;height:auto;transform:none}.flying-letter{position:fixed;z-index:200;pointer-events:none;display:grid;place-items:center;width:48px;height:48px;background:#f7dc94;border:2px solid #ddbf77;border-radius:12px;color:#55734e;font-size:30px}
/* Speaking stays still, leaving the microphone free from the game's own audio. */
.speak-panel{display:grid;grid-template-columns:.8fr 1.25fr;border:1px solid var(--line);border-radius:25px;background:#fffdf6;overflow:hidden;min-height:460px}.speak-scene{padding:35px;display:flex;align-items:center;flex-direction:column;justify-content:center;background:#eef3e3;border-right:1px solid var(--line)}.speak-scene>.sprite{width:min(100%,240px);border:8px solid #fffdf7;box-shadow:0 7px 0 #d9e3c7;border-radius:30px}.scene-label{font-size:10px;color:#90a17e;margin-top:20px;letter-spacing:.5px}.speak-tip{display:flex;gap:8px;align-items:center;margin-top:27px;font-size:12px;color:#8c9c7d;line-height:1.8}.speak-tip>.icon{width:22px;height:22px;color:#d4b165}.speak-content{padding:28px 35px;display:flex;flex-direction:column;align-items:center;text-align:center}.oral-steps{display:flex;align-items:center;gap:9px;color:#a4ac96;font-size:9px;white-space:nowrap}.oral-steps i{font-style:normal;color:#c0c8b1}.oral-steps .active{color:var(--green);font-weight:700}.sentence-reference{font-size:28px;font-weight:600;line-height:1.6;margin:25px 0 5px;color:#42654c}.sentence-reference mark{background:#f6e7ac80;color:inherit;border-radius:5px;padding:0 3px}.sentence-zh{font-size:12px;color:#8e9b80;margin:0 0 19px}.speech-state{font-size:11px;color:#8b9d7b;min-height:22px}.speech-state.is-recording{color:#c8755e;font-weight:600}.mic-meter{height:4px;width:150px;background:#e6ebdc;border-radius:4px;overflow:hidden;margin:11px 0 20px}.mic-meter>i{height:100%;display:block;background:#9cbc7f;width:0;transition:width .05s}.record-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:186px;background:#e3aa66;color:#fff;border:1px solid #d69b55;border-bottom:4px solid #c58c4c;border-radius:17px;padding:17px 20px;font-size:15px;font-weight:600}.record-button .icon{width:23px;height:23px}.record-button.stop{background:#c77460;border-color:#c77460;border-bottom-color:#ab5e4b}.record-button.stop>i{width:15px;height:15px;background:white;border-radius:3px}.record-button:disabled{opacity:.65}.oral-controls{display:flex;gap:25px;margin:14px 0;align-items:center;justify-content:center;min-height:28px}.oral-controls .text-button{font-size:11px;flex-wrap:wrap;white-space:normal;gap:5px}.oral-controls small{font-size:9px;color:#a6ac97}.oral-feedback{width:100%}.oral-footer{margin-top:auto;padding-top:17px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border-top:1px dashed var(--line)}.oral-footer p{font-size:9px;line-height:1.8;color:#a1a68e;margin:0;max-width:260px}.oral-footer .text-button{font-size:10px}.oral-footer .primary{font-size:11px;padding:10px 12px;gap:8px;white-space:nowrap}.oral-score{display:flex;align-items:center;gap:19px;text-align:left;border:1px solid #dbe6cb;background:#f3f7eb;border-radius:17px;padding:16px;margin-bottom:15px}.score-circle{height:78px;width:78px;border:5px solid #d9e6c8;background:#fffdf5;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none}.score-circle>b{font-size:27px;color:var(--green);line-height:1}.score-circle span{font-size:8px;color:#8ba075;margin-top:5px}.oral-score h3{font-size:15px;color:var(--green);margin:0 0 6px}.oral-score p{font-size:11px;color:#8b9b79;line-height:1.7;margin:0}.oral-score details{font-size:10px;color:#93a47f;margin-top:7px}.oral-score summary{cursor:pointer}.oral-message{padding:14px 18px;background:#fbf0dc;border:1px solid #eadbbb;border-radius:14px;text-align:left;color:#9d814e;font-size:12px;line-height:1.8;margin-bottom:14px}.oral-message small{display:block;color:#a69a7d;font-size:10px}.oral-message button{display:block;margin-top:10px}.attempt-history{font-size:10px;color:#8da47b;margin-bottom:15px;line-height:1.9}.attempt-history span{color:#a4ad96;margin-left:10px}.secondary{border:1px solid #cfdcc2;border-bottom:3px solid #c8d4ba;border-radius:12px;background:#fffdf4;padding:12px 20px;font-size:12px;color:var(--green);display:inline-flex;align-items:center;justify-content:center;gap:10px}.finish-panel{max-width:800px;margin:10px auto;text-align:center;padding:30px 36px;border:1px solid var(--line);background:#fffdf5;border-radius:28px}.finish-image{width:140px;margin:22px auto 15px;border:5px solid #f3d382;border-radius:50%;box-shadow:0 4px 0 #e6c26b}.finish-stars{color:#dbad48;letter-spacing:7px;font-size:23px}.finish-panel h1{font-size:30px;margin:15px 0 10px}.finish-panel>p{font-size:12px;color:#8b9a7e}.finish-panel .stats-row{margin-top:26px}.finish-panel .stats-row>div{padding:17px 10px}.finish-panel .stats-row b{font-size:28px}.finish-buttons{display:flex;gap:15px;justify-content:center;margin-top:27px}.review-summary{font-size:11px;color:#98a285}.review-summary button{font-size:12px;padding:5px 9px;background:#f0f2e4;border-radius:8px;margin:4px;display:inline-flex;align-items:center;gap:8px;color:#708461}.review-summary .icon{width:15px;height:15px}
dialog{border:1px solid #dde3cd;border-radius:25px;background:#fffdf5;max-width:500px;width:calc(100% - 35px);color:var(--ink);padding:36px;box-shadow:0 15px 80px #304e3b35;text-align:center;max-height:85svh;overflow:auto}dialog::backdrop{background:#344d3f66;backdrop-filter:blur(5px)}dialog h2{font-size:24px;margin:15px 0 14px}dialog p{font-size:12px;line-height:1.9;color:#8b997d}dialog>.primary{margin-top:15px;min-width:220px}.dialog-flower{font-size:47px;color:#dbb26c}.quiet{display:block;margin:19px auto 0;font-size:11px;color:#92a080;text-decoration:underline}.dialog-close{position:absolute;right:12px;top:7px;color:#9aa68d;font-size:27px;padding:5px 8px}#help-dialog{text-align:left}#help-dialog>.primary{display:flex;margin:22px auto 0}#help-dialog h2{margin-top:5px}#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%) translateY(8px);max-width:90vw;padding:12px 20px;border-radius:13px;background:#355a45f5;color:#fff;font-size:12px;z-index:1000;box-shadow:0 4px 20px #344b3c22;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}#toast.show{opacity:1;transform:translateX(-50%)}.loading{padding:100px 20px;text-align:center;color:var(--muted);font-size:14px}.celebration-layer{position:fixed;inset:0;pointer-events:none;z-index:300;overflow:hidden}.celebration-layer canvas{position:absolute;inset:0;width:100%;height:100%}.celebration-badge{position:absolute;transform:translate(-50%,-50%);padding:10px 22px;border:2px solid #f7d27b;background:#fff8e1ee;color:#82632b;border-radius:25px;box-shadow:0 5px 15px #9b753222;font-size:17px;font-weight:700;white-space:nowrap;animation:badge-in .35s}.reduced-motion .celebration-badge{animation:none}
@keyframes tile-wrong{15%,60%{rotate:-7deg}35%,80%{rotate:7deg}100%{rotate:0deg}}@keyframes hint-wiggle{20%,60%{rotate:-4deg}40%,80%{rotate:4deg}}@keyframes letter-hint{50%{rotate:5deg;background:#fff7d9}}@keyframes slot-pop{50%{scale:1.15}}@keyframes audio-pulse{50%{box-shadow:0 0 0 6px #c9dfb549}}@keyframes badge-in{from{opacity:0;scale:.7}to{opacity:1;scale:1}}
@media(min-width:1500px){#app{padding-top:38px}.home-hero{min-height:375px}.hero-copy{padding-top:40px}.hero-copy h1{font-size:49px}.hero-art{min-height:375px}.setup{padding-top:34px}.setup-bottom{padding-top:28px}.in-game #app{padding-top:28px}.playfield{height:clamp(360px,44vh,480px)}}
@media(max-width:1100px){.site-header{padding:0 30px}#app{padding:24px 30px}.hero-copy{padding:29px}.hero-copy h1{font-size:39px}.course-pill{gap:8px;padding:13px 9px}.course-pill b{font-size:10px}.course-pill .sprite{width:40px}.rain-layout{grid-template-columns:minmax(0,1fr) 205px;gap:14px}.rain-aside{padding:20px 15px}.word-grid{grid-template-columns:repeat(4,1fr)}.speak-content{padding:25px}.speak-scene{padding:25px}.sentence-reference{font-size:25px}}
@media(max-width:800px){.site-header{height:80px;padding:0 22px;gap:12px}.brand{font-size:18px}.brand small{font-size:7px}.brand-icon{scale:.9}.site-header nav{gap:0}.site-header nav button{font-size:11px;padding:9px 12px}#app{padding:22px}.home-hero{min-height:315px}.hero-copy{padding:25px}.hero-copy h1{font-size:34px}.hero-copy p{font-size:11px}.hero-badges{gap:12px;font-size:9px;margin-top:20px}.hero-art{min-height:315px;background-position:65% center}.art-stamp{font-size:11px}.mini-float{scale:.85}.mini-float.f1{left:0}.course-pills{grid-template-columns:repeat(2,1fr);gap:10px}.course-pill{padding:10px 14px;min-height:72px;gap:13px}.course-pill .sprite{width:45px}.course-pill b{font-size:13px}.course-pill small{font-size:8px}.setup-bottom{gap:18px;align-items:flex-start}.mode-pills button{padding:9px 10px;font-size:11px}.primary.start{min-width:210px;font-size:14px}.start-area{padding-top:19px}.home-foot{font-size:9px}.rain-layout{grid-template-columns:minmax(0,1fr) 175px;gap:12px}.rain-aside{padding:20px 12px}.rain-aside .eyebrow{font-size:7px;letter-spacing:1px}.rain-aside h2{font-size:15px}.rain-aside p{font-size:10px}.target-image{width:120px}.aside-note{gap:6px}.aside-note p{font-size:9px}.sound-illustration{scale:.9;margin-top:22px}.task-heading h1{font-size:23px}.journey-steps{gap:7px}.journey-steps>span{font-size:10px}.journey-steps>span i{width:18px;height:18px;font-size:9px}.game-toolbar>.text-button{font-size:10px}.answer-dock{padding:15px 18px}.next{min-width:155px;padding:12px 13px;gap:6px}.word-grid{grid-template-columns:repeat(3,1fr)}.sentence-card{gap:12px;padding:13px}.sentence-card .sprite{width:65px}.sentence-card h3{font-size:14px}.speak-panel{grid-template-columns:.62fr 1fr}.speak-scene{padding:20px}.speak-content{padding:23px 20px}.sentence-reference{font-size:23px}.speak-tip{font-size:10px}.oral-steps{font-size:8px;gap:6px}.oral-footer{flex-direction:column;text-align:center}.oral-footer p{max-width:100%}.oral-score{gap:12px;padding:12px}.score-circle{width:65px;height:65px}.score-circle>b{font-size:23px}}
@media(max-width:600px){.site-header{height:72px;gap:10px;padding:0 16px;flex-wrap:wrap}.brand{font-size:16px;gap:7px}.brand small{font-size:6px;letter-spacing:2px}.brand-icon{width:36px;height:36px;font-size:25px;line-height:34px;border-radius:12px;scale:1}.brand-icon span{font-size:18px;left:20px;top:3px}.site-header nav{order:3;display:flex;position:fixed;bottom:0;left:0;right:0;height:58px;z-index:90;background:#fffdf7f5;border-top:1px solid var(--line);justify-content:space-around;align-items:center;backdrop-filter:blur(8px);padding-bottom:env(safe-area-inset-bottom)}.site-header nav button{font-size:11px;padding:9px 22px}.round-btn{width:33px;height:33px}.round-btn .icon{width:18px;height:18px}#app{padding:18px 16px 82px}.home-hero{display:block;position:relative;min-height:330px;border-radius:22px}.hero-copy{padding:26px 23px;max-width:75%;pointer-events:none}.hero-copy .eyebrow{font-size:8px;letter-spacing:1.4px}.hero-copy h1{font-size:36px;line-height:1.4;margin:17px 0 13px}.hero-copy p{font-size:10px;line-height:1.9;max-width:200px}.hero-badges{margin-top:23px;gap:12px;font-size:8px;white-space:nowrap}.hero-badges .icon{width:14px;height:14px}.hero-art{position:absolute;inset:0;z-index:0;background-position:66% center;opacity:.95}.hero-art:before{background:linear-gradient(90deg,#f6f1dff7 0%,#f6f1dfe6 32%,#f6f1df80 65%,transparent 90%)}.art-stamp{display:none}.mini-float.f1{left:auto;right:0;top:29%;scale:.7}.mini-float.f2{bottom:0;right:0;scale:.7}.setup{padding-top:25px}.section-top{margin-bottom:14px}.section-top h2{font-size:20px;margin-top:6px}.section-top .eyebrow{font-size:8px;letter-spacing:1.5px}.section-top .text-button{font-size:10px;gap:3px}.course-pills{gap:9px}.course-pill{padding:10px 9px;gap:8px;min-height:76px;border-radius:14px}.course-pill .sprite{width:38px;border-radius:10px}.course-pill b{font-size:11px;white-space:normal}.course-pill small{font-size:7px;letter-spacing:.7px}.course-pill>i{right:5px;top:5px;width:11px;height:11px}.course-pill>i .icon{width:10px!important;height:10px!important}.setup-bottom{flex-direction:column;gap:12px;padding:19px 0}.mode-area{width:100%}.mode-pills{justify-content:space-between}.mode-pills button{flex:1;font-size:11px;padding:10px 7px}.start-area{width:100%;padding-top:0}.primary.start{width:100%;padding:14px 20px}.speed-control{margin-top:12px}.home-foot{flex-direction:column;gap:7px;text-align:center;margin-top:6px;font-size:8px;padding-top:15px}.resume-strip{padding:11px 13px;flex-wrap:wrap;gap:7px;font-size:10px;margin-top:13px}.resume-strip .text-button{font-size:11px}.page-heading{padding:10px 0 17px}.page-heading h1{font-size:26px;line-height:1.5;margin:8px 0}.page-heading p{font-size:11px;line-height:1.8}.page-heading .eyebrow{font-size:8px;letter-spacing:1.6px}.filter-pills{gap:5px;justify-content:space-between;margin-bottom:18px}.filter-pills button{font-size:10px;padding:7px 11px}.word-grid{grid-template-columns:repeat(2,1fr);gap:11px}.word-card{padding:14px 12px;border-radius:17px}.word-card>.sprite{max-width:140px}.word-card h2{font-size:23px}.word-card p{font-size:11px}.sentence-grid{grid-template-columns:1fr;gap:11px}.sentence-card{padding:14px}.sentence-card .sprite{width:70px}.sentence-card h3{font-size:15px}.sentence-card p{font-size:10px}.section-heading{font-size:21px;margin-top:28px}.stats-row{gap:8px;margin-bottom:18px}.stats-row>div{padding:16px 8px;border-radius:14px}.stats-row b{font-size:27px}.stats-row span{font-size:9px;line-height:1.6;margin-top:6px}.records-panel{padding:16px}.records-panel .section-top{flex-wrap:wrap;gap:4px}.records-panel h2{font-size:20px}.records-panel .note{font-size:9px}.table-scroll{margin:0 -4px}table{min-width:570px;font-size:11px}td,th{padding:12px 9px}.empty-state{padding:30px 8px}.empty-state h3{font-size:18px}.empty-state p{font-size:10px}.in-game .site-header{height:61px}.in-game .site-header nav{display:none}.in-game #app{padding:10px 12px 18px}.game-toolbar{gap:8px}.game-toolbar>.text-button{font-size:9px;max-width:130px;overflow:hidden;justify-content:flex-start;white-space:nowrap;text-overflow:ellipsis}.game-toolbar>.text-button .icon{width:13px;height:13px}.journey-steps{gap:4px}.journey-steps>span{font-size:9px;gap:4px}.journey-steps>span i{width:15px;height:15px;font-size:8px}.journey-steps em{display:none}.game-toolbar .round-btn{width:28px;height:28px}.game-progress{margin-top:10px;height:3px}.task-heading{margin:15px 0 12px}.task-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.task-heading h1{font-size:19px;margin:6px 0 0}.task-count{font-size:22px}.task-count small{font-size:10px}.rain-layout{display:flex;flex-direction:column;gap:9px}.rain-aside{order:-1;display:flex;flex-direction:row;text-align:left;padding:9px 13px;border-radius:14px;align-items:center;min-height:69px}.aside-top{display:flex;align-items:center;width:100%;gap:10px}.aside-top>.eyebrow,.rain-aside h2,.aside-note{display:none}.rain-aside p{font-size:10px;line-height:1.7;flex:1}.target-image{width:48px;height:48px;margin:0;border-radius:9px}.audio-button{margin:0;padding:8px 12px;font-size:10px;gap:5px;white-space:nowrap}.audio-button .icon{width:16px;height:16px}.sound-illustration{width:40px;height:40px;border-width:5px;box-shadow:none;scale:1;margin:0;flex:none}.sound-illustration>.icon{width:21px;height:21px}.sound-illustration>i{display:none}.rain-board{border-radius:18px}.sky-trim{height:30px}.cloud1{top:23px;scale:.75}.cloud2{top:16px;scale:.85}.cloud3{top:27px;scale:.65}.sun{width:23px;height:23px;top:8px;right:7%;box-shadow:0 0 0 6px #f3dfa84d}.playfield{height:clamp(290px,42svh,390px);margin:0 5px}.falling-picture{padding:5px;border-radius:15px;border-bottom-width:4px}.falling-picture .sprite{border-radius:11px}.picture-label{min-height:10px}.falling-picture.caught{min-height:131px}.falling-picture.caught .sprite{width:72px}.picture-label b{font-size:16px}.picture-label small{font-size:9px}.falling-letter{font-size:29px;border-radius:11px;border-bottom-width:4px}.meadow{height:21px}.meadow:before{top:7px}.meadow:after{top:13px}.board-caption{font-size:8px;padding:6px 12px 7px}.board-caption>span:last-child{display:none}.hint-line>span{font-size:8px;right:4px;top:6px}.answer-dock{margin-top:10px;padding:13px;gap:10px;border-radius:16px;min-height:106px;flex-wrap:wrap}.dock-main{flex-basis:100%}.letter-slots{gap:5px;justify-content:center}.letter-slot{width:34px;height:38px;border-radius:8px;font-size:23px}.letter-slot i{width:10px;margin-top:13px}.word-reveal{justify-content:center;font-size:9px;gap:8px;min-height:20px;margin-top:8px;text-align:center}.word-reveal>strong{font-size:21px}.word-reveal>b{font-size:12px}.word-reveal>small{font-size:9px}.listening-note{justify-content:center;font-size:11px}.listening-note .icon{width:19px;height:19px}.feedback{text-align:center;font-size:10px}.next{width:100%;padding:9px 12px;font-size:11px;border-radius:10px}.speak-panel{display:flex;flex-direction:column;min-height:0;border-radius:20px}.speak-scene{padding:13px;display:flex;flex-direction:row;gap:16px;justify-content:center;border-right:0;border-bottom:1px solid var(--line)}.speak-scene>.sprite{width:74px;height:74px;border-width:3px;border-radius:14px;box-shadow:0 3px 0 #d9e3c7}.scene-label{margin:0;font-size:9px}.speak-tip{display:none}.speak-content{padding:20px 17px}.oral-steps{font-size:9px;gap:6px}.sentence-reference{font-size:24px;line-height:1.5;margin-top:20px}.sentence-zh{font-size:11px;margin-bottom:16px}.speech-state{font-size:11px;line-height:1.7}.mic-meter{margin:9px 0 17px}.record-button{min-width:184px;padding:15px 20px;font-size:14px;border-radius:14px}.oral-controls{margin:13px 0;gap:19px}.oral-controls .text-button{font-size:10px}.oral-footer{padding-top:14px;gap:10px}.oral-footer p{font-size:8px}.oral-footer .primary{width:100%;font-size:11px;padding:10px}.oral-score{gap:12px;padding:13px;margin-top:3px}.oral-score h3{font-size:14px}.oral-score p{font-size:10px}.oral-message{font-size:11px;padding:11px 14px}.attempt-history{font-size:9px}.finish-panel{padding:24px 17px;margin:4px 0;border-radius:20px}.finish-panel .eyebrow{font-size:7px;letter-spacing:1.4px}.finish-image{width:125px}.finish-panel h1{font-size:25px}.finish-panel>p{font-size:10px;line-height:1.9}.finish-panel .stats-row>div{padding:14px 6px}.finish-panel .stats-row b{font-size:25px}.finish-panel .stats-row span{font-size:8px}.finish-buttons{flex-direction:column;gap:10px;margin-top:20px}.finish-buttons>button{width:100%}.review-summary button{font-size:10px}.review-summary p{font-size:10px}.celebration-badge{font-size:14px;padding:9px 17px}dialog{padding:28px 24px}dialog h2{font-size:21px}dialog p{font-size:11px}#toast{font-size:11px;width:max-content;text-align:center}}
@media(max-width:375px){.brand{font-size:14px}.site-header nav button{padding:9px 16px}.hero-copy{max-width:83%}.hero-copy h1{font-size:32px}.course-pill{gap:5px;padding:10px 7px}.course-pill .sprite{width:31px}.course-pill b{font-size:10px}.mode-pills button{font-size:10px;padding:9px 6px}.journey-steps>span{font-size:8px}.task-heading h1{font-size:17px}.rain-aside{padding:8px 10px}.rain-aside p{font-size:9px}.playfield{height:285px}.letter-slot{width:31px;height:36px}.oral-steps{font-size:8px}.sentence-reference{font-size:22px}}
@media(max-height:700px) and (min-width:601px){.site-header{height:66px}.in-game #app{padding-top:10px}.task-heading{margin:12px 0}.task-heading h1{font-size:21px}.playfield{height:280px}.target-image{width:105px}.rain-aside{padding:15px}.sound-illustration{margin:18px auto 13px;scale:.8}.rain-aside h2{font-size:15px;margin:8px 0}.aside-note{padding-top:10px;margin-top:12px}.answer-dock{min-height:89px;padding:12px 20px}.home-hero,.hero-art{min-height:290px}.hero-copy{padding-top:23px}.hero-copy h1{font-size:37px;margin:12px 0}.hero-badges{margin-top:18px}.speak-panel{min-height:0}.speak-content{padding-top:18px;padding-bottom:18px}.sentence-reference{font-size:24px;margin-top:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.falling-picture,.falling-letter{will-change:auto}}

/* Eight-lesson course pack and long textbook words. */
.sprite.framed{position:relative;background:#fff}.sprite.framed>svg{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit}
.course-pills{grid-template-columns:repeat(3,minmax(0,1fr))}.course-pill>span{min-width:0}.course-pill b{white-space:normal;line-height:1.6}.course-pill em{display:block;font-size:9px;color:#97a18b;font-style:normal;margin-top:5px;line-height:1.5}.filter-pills{flex-wrap:wrap;justify-content:flex-start}.letter-slot{width:min(42px,calc((100% - (var(--letter-count,5) - 1)*7px)/var(--letter-count,5)));flex:none}.speak-panel{position:relative}
@media(max-width:800px){.course-pills{grid-template-columns:repeat(2,minmax(0,1fr))}.course-pill em{font-size:8px}.course-pill.unit-pick{grid-column:1/-1}.course-pill.unit-pick .sprite{width:44px}.course-pill b{font-size:12px}}
@media(max-width:600px){.course-pill{min-height:88px}.course-pill b{font-size:11px}.course-pill em{font-size:8px}.letter-slot{width:min(34px,calc((100% - (var(--letter-count,5) - 1)*5px)/var(--letter-count,5)));font-size:22px}.letter-slots{flex-wrap:nowrap}.filter-pills{gap:6px}.filter-pills button{font-size:10px;padding:7px 11px}.course-pill.unit-pick{min-height:72px}}
@media(max-width:375px){.letter-slot{font-size:20px}.course-pill b{font-size:10px}.course-pill em{font-size:7px}}

/* Compact home banner, prominent start button and expandable multi-select. */
.home-banner{height:180px;position:relative;overflow:hidden;display:flex;align-items:center;border:1px solid #e5e4d0;border-radius:24px;background:linear-gradient(90deg,#f6f1df 0%,#f6f1df 48%,#f6f1df55 65%,#f6f1df00 82%),url('assets/room.webp') right 64%/auto 340px no-repeat #f6f1df;box-shadow:0 6px 20px #625b260c}
.banner-copy{padding:24px 36px;position:relative}.banner-copy h1{font-size:36px;letter-spacing:1px;line-height:1.4;margin:0 0 11px;color:#3e624b}.banner-copy p{font-size:13px;letter-spacing:2px;color:#7c8e70;margin:0}
.home-setup{padding-top:22px}.home-controls{display:flex;align-items:center;flex-direction:column;gap:16px;margin-bottom:22px}.home-start{min-width:330px;min-height:54px;padding:14px 28px;font-size:18px;justify-content:center}.home-start:disabled{opacity:.5;cursor:default}.home-selection-note{margin:-7px 0 0;color:#9b7945;font-size:12px}
.course-picker{width:100%}.unit-card{position:relative;border:1.5px solid var(--line);border-radius:20px;background:#fffdf7;overflow:hidden}.unit-card.selected{border-color:#7c9f79;background:#f0f5e8;box-shadow:0 3px 0 #d9e4cb}.unit-choice{width:100%;min-height:96px;display:flex;align-items:center;gap:16px;text-align:left;padding:12px 125px 12px 20px;border-radius:18px}.unit-choice>.sprite{width:64px;border-radius:13px}.unit-choice>b{font-size:21px;font-weight:650;line-height:1.5}.selection-mark{position:absolute;right:13px;top:12px;width:19px;height:19px;border:1.4px solid #cdd9c3;border-radius:5px;background:#fffdf7;display:flex;align-items:center;justify-content:center;font-style:normal}.selection-mark .icon{width:15px;height:15px;color:white}.selected>.selection-mark,.unit-card.selected .selection-mark{background:var(--green);border-color:var(--green)}.selection-mark.partial>span{height:2px;width:10px;background:white;border-radius:2px}.unit-expand{position:absolute;right:9px;bottom:4px;min-height:44px;display:flex;align-items:center;gap:5px;padding:8px 10px;font-size:12px;color:#638065;border-radius:10px}.unit-expand:hover{background:#e6eddb}.unit-expand .icon{width:17px;height:17px;transition:transform .2s}.unit-expand[aria-expanded="true"] .icon{transform:rotate(180deg)}
.lesson-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.lesson-options[hidden]{display:none}.lesson-choice{min-width:0;min-height:76px;display:flex;align-items:center;gap:12px;padding:10px 27px 10px 12px;border:1.5px solid var(--line);border-radius:15px;background:#fffdf7;position:relative;text-align:left}.lesson-choice>.sprite{width:54px;border-radius:11px}.lesson-choice>b{font-size:15px;line-height:1.5;font-weight:650}.lesson-choice .selection-mark{width:14px;height:14px;right:7px;top:7px;border-radius:4px}.lesson-choice .selection-mark .icon{width:12px;height:12px}.lesson-choice.selected{border-color:#6a9770;background:#f0f5e8;box-shadow:0 2px 0 #d9e4cb}.home-setup+.home-foot{margin-top:24px}
.lesson-choice>b{text-wrap:balance}
@media(min-width:1450px){.home-banner{height:188px}}
@media(max-width:1000px){.lesson-options{grid-template-columns:repeat(3,minmax(0,1fr))}.lesson-choice>.sprite{width:50px}.lesson-choice>b{font-size:14px}}
@media(max-width:700px){.home-banner{height:165px;border-radius:20px;background-position:63% 47%;background-size:cover;background-image:linear-gradient(90deg,#f6f1dff7 0%,#f6f1dfe8 38%,#f6f1df80 72%,#f6f1df22 100%),url('assets/room.webp')}.banner-copy{padding:20px 22px}.banner-copy h1{font-size:28px;letter-spacing:0}.banner-copy p{font-size:11px;letter-spacing:1px}.home-setup{padding-top:20px}.home-controls{gap:14px;margin-bottom:18px}.home-start{min-width:0;width:min(100%,340px);min-height:52px;font-size:17px;padding:13px 18px}.unit-card{border-radius:17px}.unit-choice{min-height:92px;padding:12px 104px 12px 14px;gap:12px}.unit-choice>.sprite{width:54px;border-radius:11px}.unit-choice>b{font-size:18px}.unit-expand{font-size:11px;right:4px;bottom:2px;padding:8px}.selection-mark{right:13px;top:12px;width:17px;height:17px}.lesson-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.lesson-choice{min-height:70px;padding:10px 22px 10px 9px;gap:7px;border-radius:13px}.lesson-choice>.sprite{width:44px;border-radius:10px}.lesson-choice>b{font-size:13px;line-height:1.5}.lesson-choice .selection-mark{top:5px;right:5px;width:12px;height:12px;border-radius:3px}.lesson-choice .selection-mark .icon{width:10px;height:10px}.home-setup+.home-foot{margin-top:21px}}
@media(max-width:375px){.home-banner{height:156px}.banner-copy{padding:18px}.banner-copy h1{font-size:24px}.banner-copy p{font-size:10px}.unit-choice{padding-right:95px;gap:9px}.unit-choice>.sprite{width:47px}.unit-choice>b{font-size:16px}.unit-expand{font-size:10px}.lesson-choice{padding:9px 18px 9px 7px;gap:6px}.lesson-choice>.sprite{width:38px}.lesson-choice>b{font-size:12px}.home-start{font-size:16px}}

.home-speed{justify-content:center;margin:0}

/* Shared five-step difficulty control for home and the game header. */
.difficulty-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:8px 13px;border:1px solid #cbd9be;border-radius:22px;background:#f0f5e7;color:var(--green);font-size:14px;white-space:nowrap}.difficulty-button b{font-weight:700}.difficulty-button .icon{width:20px;height:20px}.difficulty-button:hover{background:#e3edd7}.home-difficulty{min-width:124px}.home-difficulty>span{font-size:12px;color:#7d9071}#game-difficulty{margin-left:auto}
#difficulty-dialog{max-width:350px;padding:26px 28px 28px;text-align:center}#difficulty-title{font-size:23px;margin:0 0 15px}#difficulty-value{display:block;font-size:36px;font-weight:750;color:var(--green);line-height:1.3;margin-bottom:20px}#difficulty-range{display:block;width:100%;height:36px;margin:0;cursor:pointer;accent-color:var(--green);touch-action:pan-y}#difficulty-range:focus-visible{outline:3px solid #e7a73e;outline-offset:5px;border-radius:20px}.difficulty-ticks{display:flex;justify-content:space-between;padding:2px 7px 0;font-size:12px;font-weight:650;color:#809375}#difficulty-dialog>p{font-size:12px;line-height:1.8;margin:18px 0 0}#difficulty-dialog>.primary{margin-top:20px;min-width:0;width:100%;font-size:16px}
.finish-buttons>.primary{white-space:normal;line-height:1.5}.finish-panel #finish-difficulty-note{font-size:12px;margin-top:14px;line-height:1.7}
@media(max-width:600px){.difficulty-button{font-size:13px;min-height:36px;padding:7px 12px;gap:7px}.difficulty-button .icon{width:18px;height:18px}.finish-buttons>.primary{font-size:14px;padding-left:10px;padding-right:10px}.finish-panel #finish-difficulty-note{font-size:10px}}

/* Focused game screen and central answer / retry states. */
[hidden]{display:none!important}
.game-back{display:inline-flex;align-items:center;gap:8px;padding:9px 0;font-size:16px;font-weight:650;color:var(--green)}.game-back .icon{width:23px;height:23px}
.in-game{--game-header-height:64px}.in-game .site-header{position:sticky;top:0;z-index:140;height:var(--game-header-height);background:var(--paper);justify-content:flex-start}.in-game #app{max-width:1180px;padding-top:12px}.game-course-name{font-size:12px;color:#809175;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:40%}.game-toolbar .journey-steps{margin-left:auto}.game-page .task-heading{gap:12px;margin:16px 0}.task-prompt{display:flex;align-items:center;gap:12px;min-width:0}.game-page .task-heading h1{margin:0;font-size:25px;line-height:1.4;letter-spacing:0;white-space:nowrap}.task-replay{width:43px;height:43px;border-color:#c9d8be;background:#f2f6e9;flex:none}.task-replay.playing{box-shadow:0 0 0 4px #a9c28b33}.game-page .task-count{flex:none;white-space:nowrap}.game-page .rain-layout{display:block}.game-page .playfield{height:clamp(270px,calc(100svh - 300px),550px)}.game-page[data-stage="spell"] .playfield{height:clamp(200px,calc(100svh - 500px),420px)}.game-page .sky-trim{height:38px}.game-page .meadow{height:25px}.game-page .word-reveal{justify-content:center;text-align:center;margin-top:12px}.game-page .word-reveal>strong{font-size:27px}.game-page .word-reveal>b{font-size:16px}.game-page .feedback{text-align:center;margin-top:10px;font-size:13px}.word-reveal:empty,.feedback:empty,.speech-state:empty{display:none}
.spell-dock{display:flex;flex-direction:column;align-items:center;gap:12px;padding:10px 16px;margin-bottom:14px;border:1px solid var(--line);background:#fffdf6;border-radius:17px}.spell-dock .target-image{width:124px;height:124px;margin:0;border-radius:20px;transform-origin:center}.spell-dock .target-image.word-speaking{animation:word-picture-pulse .6s ease-out}.spell-dock .letter-slots{width:100%;flex:none;min-width:0;justify-content:center}.spell-dock .letter-slot{font-size:min(24px,calc(190px / var(--letter-count,5)))}
.game-page.has-outcome #game-live{visibility:hidden;pointer-events:none}.rain-outcome{position:fixed;inset:var(--game-header-height) 0 0;z-index:110;display:grid;place-items:center;padding:22px 16px;background:#fffaf0f7;backdrop-filter:blur(5px);overflow-y:auto;overscroll-behavior:contain}.result-card{width:min(100%,420px);display:flex;flex-direction:column;align-items:center;text-align:center;animation:answer-zoom .55s cubic-bezier(.18,.85,.3,1.15) both}.result-picture{width:clamp(160px,48vw,250px);border:5px solid #e5d29a;box-shadow:0 6px 0 #e9dfc0;border-radius:29px;background-color:#fff}.result-word{font-size:48px;line-height:1.2;margin:22px 0 8px;color:#35694c;overflow-wrap:anywhere;max-width:100%}.result-translation{font-size:22px;color:#71865e;margin:0 0 25px}.result-actions{display:flex;justify-content:center;gap:14px;width:100%;flex-wrap:wrap}.result-actions>button{min-width:126px;min-height:51px;font-size:17px;padding:12px 18px;gap:10px}.retry-panel{animation:answer-zoom .4s ease-out both}.retry-button{font-size:24px;min-width:194px;min-height:68px;gap:12px}.retry-button .icon{width:26px;height:26px}.return-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:25px}#return-dialog h2{font-size:23px;line-height:1.6;margin:0}#return-dialog .return-actions>button{font-size:14px;min-height:46px}
.speak-content .oral-footer{justify-content:center;border-top:0;padding-top:12px;margin-top:15px}.oral-result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:4px}.oral-result-actions>button{min-height:46px;font-size:13px;padding:10px 15px;gap:7px}.speak-panel.is-result .oral-score{animation:answer-zoom .45s ease-out both}.speak-panel .oral-controls{margin:12px 0}.speak-panel .attempt-history{margin-top:12px}
@keyframes word-picture-pulse{0%,100%{transform:scale(1) rotate(0)}40%{transform:scale(1.1) rotate(-2deg)}70%{transform:scale(1.04) rotate(1deg)}}
@keyframes answer-zoom{0%{opacity:0;transform:scale(.55)}72%{opacity:1;transform:scale(1.045)}100%{opacity:1;transform:scale(1)}}
@media(max-width:700px){.game-page .task-heading h1{font-size:21px}.game-page .task-count{font-size:23px}.task-prompt{gap:10px}.task-replay{width:37px;height:37px}}
@media(max-width:600px){.in-game{--game-header-height:58px}.in-game .site-header{height:var(--game-header-height)}.game-back{font-size:15px}.in-game #app{padding:10px 12px 18px}.game-course-name{display:none}.game-toolbar .journey-steps{margin-left:0}.game-page .game-progress{margin-top:8px}.game-page .task-heading{gap:8px;margin:13px 0}.game-page .task-heading h1{font-size:19px}.game-page .task-count{font-size:21px}.game-page .task-count small{font-size:11px}.task-prompt{gap:9px}.task-replay{width:34px;height:34px}.task-replay .icon{width:20px;height:20px}.spell-dock{gap:10px;padding:9px 10px;margin-bottom:10px;border-radius:14px}.spell-dock .target-image{width:92px;height:92px;border-radius:16px}.game-page[data-stage="spell"] .playfield{height:clamp(200px,calc(100svh - 480px),420px)}.spell-dock .letter-slot{height:35px}.game-page .word-reveal{gap:10px;margin-top:10px}.game-page .word-reveal>strong{font-size:23px}.game-page .word-reveal>b{font-size:14px}.game-page .feedback{font-size:11px}.result-picture{border-width:4px;border-radius:23px}.result-word{font-size:38px;margin-top:20px}.result-translation{font-size:19px;margin-bottom:23px}.result-actions{gap:12px}.result-actions>button{min-width:114px;font-size:16px;min-height:49px}.retry-button{font-size:22px;min-height:62px}#return-dialog{padding:27px 19px}#return-dialog h2{font-size:20px}.return-actions{gap:9px}#return-dialog .return-actions>button{font-size:12px;padding:11px 13px}.speak-content .oral-footer{padding-top:8px;margin-top:12px}.oral-result-actions{gap:9px}.oral-result-actions>button{font-size:12px;min-height:44px;padding:9px 12px}.oral-result-actions>button:first-child{min-width:140px}.speak-panel .speech-state{margin-top:5px}}
@media(max-width:375px){.game-page .task-heading h1{font-size:16px}.task-prompt{gap:7px}.game-page .task-count{font-size:19px}.game-page .task-count small{font-size:10px}.task-replay{width:31px;height:31px}.game-page .journey-steps>span{font-size:9px}.result-word{font-size:34px}.result-actions>button{min-width:106px}.spell-dock .target-image{width:80px;height:80px}}
/* Six independent units; expanded lessons stay attached to their unit. */
.course-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.unit-section{min-width:0}.unit-choice{min-height:132px;padding:16px 30px 42px 15px;gap:12px}.unit-choice>.sprite{width:60px;flex-shrink:0}
.unit-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.unit-copy b{font-size:18px;line-height:1.5}.unit-copy small{color:#71816c;font-size:11px;line-height:1.5}
.unit-section .lesson-options{grid-template-columns:1fr;gap:8px;margin-top:10px}.lesson-choice>span{display:flex;flex-direction:column;gap:3px;min-width:0}.lesson-choice>span>small{font-size:10px;color:#7b8e73}.lesson-choice>span>b{font-size:13px;line-height:1.4;font-weight:600}
.textbook-picture{background:#fff;overflow:hidden;aspect-ratio:1}.textbook-picture img{width:100%;height:100%;object-fit:contain;display:block}
.sprite.illustrated-picture>svg{inset:4%;width:92%;height:92%}
.filter-pills{flex-wrap:wrap;gap:6px}.filter-pills button{font-size:12px}
.letter-slots{flex-wrap:wrap}.letter-slots .letter-slot{flex-shrink:0}
@media(max-width:1000px){.course-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.course-picker{gap:10px}.unit-choice{min-height:151px;flex-direction:column;align-items:flex-start;padding:12px 13px 37px;gap:7px}.unit-choice>.sprite{width:45px}.unit-copy b{font-size:15px}.unit-copy small{font-size:10px}.unit-expand{font-size:10px}.lesson-choice>.sprite{width:36px;flex-shrink:0}.lesson-choice>span>b{font-size:12px}.unit-section .lesson-options{gap:7px}.lesson-choice{padding:8px 19px 8px 7px;gap:6px}}
