:root{--ink:#4c2411;--paper:#fff9ed;--blue:#349fff;--pink:#ff5f91;--wood:#b87530;--cream:#fffaf0;color:var(--ink);font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
html{scrollbar-gutter:auto}body{margin:0;min-width:280px;-webkit-text-size-adjust:100%;text-size-adjust:100%;background:#99d6ef;overflow-x:hidden}#paper{background:url('assets/brand/forest-library.png') center top/cover no-repeat;background-attachment:scroll;position:fixed}#app{max-width:720px;margin:auto;padding:0 12px;background:transparent;overflow:visible;min-height:0}#bg{opacity:.13}#fx,#fx-back{pointer-events:none}.screen{width:100%;padding-bottom:12px}.hero{text-align:center;margin:0 -12px}.hero .logo{margin:0;display:block;line-height:0;white-space:normal}.hero-art{width:100%;height:auto;display:block;object-fit:contain}.intro{position:relative;font-weight:800;font-size:clamp(12px,2.4vw,19px);color:#632416;line-height:1.6;letter-spacing:0;padding:9px 12px;margin:-7px 14% 20px!important;border:2px solid #c98d4c;border-radius:10px;background:linear-gradient(#fffdf4,#fff2d6);box-shadow:0 3px 0 #8c542a,0 0 0 2px #ffdb9b;max-width:none}.home-core{width:86%;max-width:600px;margin:auto}.mission-panel{background:linear-gradient(130deg,#fff8e4,#fffbf1);border:1.8px solid #efb876;border-radius:26px;box-shadow:0 0 0 4px #fff9e7,0 7px 0 #9b613844;position:relative;padding:10px 12px 28px}.mission-panel::after{content:"";position:absolute;inset:5px;border:1px dashed #e4b57c;border-radius:20px;pointer-events:none}.home-stage{height:100px;margin:0}.home-stage .slime-party{inset:0 0 8px}.home-stage .softie{width:21%;max-width:100px!important}.home-stage .softie:nth-child(1),.home-stage .softie:nth-child(5){width:16%;bottom:0}.home-stage .softie:nth-child(2),.home-stage .softie:nth-child(4){width:22%;bottom:4px}.home-stage .softie:nth-child(3){width:25%;bottom:3px}.home-stage .softie+.softie{margin-left:-3px}.stage-floor{bottom:3px;height:7px}.camp-pass{text-align:center;margin:0;position:relative;z-index:1}.camp-pass strong{font-size:clamp(15px,2.8vw,23px);line-height:1.5}.camp-pass small{display:block;font-size:clamp(12px,2vw,16px);line-height:1.7;color:#753b27}.big-btn.start-button{width:98%;margin:-18px auto 15px;position:relative;z-index:2;display:grid;grid-template-columns:24px minmax(0,1fr) 35px;align-items:center;gap:8px;padding:12px 10px;min-height:70px;border:2px solid #84491e;border-radius:34px;background:linear-gradient(145deg,#ffe357,#ffb340 50%,#f18424);box-shadow:inset 0 3px 1px #fff8a7,0 6px 0 #8c481a;font-size:clamp(18px,3.7vw,28px);letter-spacing:0;color:white;text-shadow:0 2px 0 #c47026}.start-copy{display:block;min-width:0}.start-copy>span{display:block;line-height:1.3}.big-btn.start-button small{font-size:clamp(11px,2vw,16px);display:block;line-height:1.7;font-weight:500;color:white;margin-top:4px}.start-star{color:#ffdf49;font-size:26px;text-shadow:0 2px 0 #cb8c12}.start-play{background:#fff4d8;border:1px solid #d5903c;color:#e58e27;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:26px;box-shadow:0 3px 0 #b86c24}.activity-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0 13px}.activity-pill{width:100%;min-width:0;border:2px solid #562d19;border-radius:14px;background:linear-gradient(#fffefa,#fff1d9);box-shadow:0 4px 0 #8b653d;padding:8px 2px;min-height:65px;gap:5px}.activity-pill.quest-pill{background:#e9f7ef}.activity-pill.cal-pill{background:#f1edff}.activity-pill .activity-icon{width:24px;height:24px}.activity-pill .activity-label{font-size:clamp(10px,1.9vw,15px);line-height:1.4;white-space:nowrap}.activity-pill .trophy-badge{font-size:10px;min-width:26px;background:#ff6b96}.section-label{display:flex;flex-direction:column;align-items:stretch;gap:7px;margin:14px 0 10px}.section-label h2,.wood-label{background:linear-gradient(#ca9756,#a96c2e);box-shadow:inset 0 2px 0 #eabd7c,0 3px 0 #74431c;border:1px solid #875026;border-radius:8px;color:white;font-size:clamp(13px,2.4vw,20px);line-height:1.5;padding:5px 14px;align-self:flex-start;text-shadow:0 1px 0 #6e3b1c}.mode-toggle{width:100%;display:flex;background:#fff9ef;border:1px solid #debc91;border-radius:25px;padding:3px;gap:2px}.mode-pill{flex:1;min-width:0;min-height:42px;background:none;color:#603d2e;padding:5px 3px;font-size:clamp(12px,2.2vw,18px);border:2px solid transparent;border-radius:23px;display:flex;justify-content:center;gap:6px}.mode-pill .mode-emoji,.mode-svg{width:18px;height:18px;font-size:17px}.mode-pill.active{background:linear-gradient(#ffe660,#ffc63e);border-color:#663816;color:#4b290e;box-shadow:0 2px 0 #8b5119}.mode-pill[data-mode=spelling].active{background:linear-gradient(#ff8ba8,#ff527e);color:white;border-color:#89373d}.mode-pill[data-mode=sentence].active{background:linear-gradient(#57d1ff,#37a9f8);color:white;border-color:#125d9b}.level-list{gap:10px;display:grid}.level-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto 14px;gap:8px;border:1.5px solid #603b22!important;border-radius:16px!important;padding:9px 10px;min-height:65px;box-shadow:0 3px 0 #967449!important;background:linear-gradient(110deg,#e3f8ef,#f1f7eb)}.level-card:nth-child(2){background:linear-gradient(110deg,#e1f2ff,#f3f6ff)}.level-card:nth-child(3){background:linear-gradient(110deg,#fff3d8,#fff9ee)}.level-icon{width:38px}.level-card strong{font-size:clamp(15px,2.6vw,21px);line-height:1.4}.level-card small{font-size:clamp(10px,1.7vw,14px);line-height:1.6;margin-top:1px}.level-card em{font-size:9px;background:#dda946;display:inline-block;margin:0 0 0 5px;padding:1px 3px;color:#fff;white-space:nowrap}.level-count{font-size:12px;white-space:nowrap}.level-count b{font-size:19px}.level-arrow{font-size:26px;color:#959472}.home-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:7px;margin:15px 0 10px}.sub-btn{font-size:clamp(12px,2vw,17px);padding:8px 5px;min-height:46px;border:1.7px solid #683c26;border-radius:15px;box-shadow:0 4px 0 #8b7058;background:#fffdf7;white-space:normal;line-height:1.5}.footnote,.device-note{text-align:center;color:#6a4a37;font-size:clamp(10px,1.65vw,14px);line-height:1.8;margin:10px 0}.device-note{color:#81746e;margin:9px 0 14px}.quiet-button{border:1px solid #b89461;border-radius:10px;background:#fff7e5;padding:5px 12px;text-decoration:none}.game-dock{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:7px;max-width:720px;margin:4px auto 14px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border:1.7px solid #e5b975;border-radius:36px;background:linear-gradient(#fffaf0,#fff2d4);box-shadow:0 0 0 2px #fff8d9;color:var(--ink)}.brand{display:flex;align-items:center;min-width:0;gap:0;padding:0;text-decoration:none;color:var(--ink);font-size:14px;border:0;background:none;box-shadow:none;letter-spacing:0;flex:1}.brand>span:last-child{display:none}#brand-slime,#brand-logo{display:block;width:100%;max-width:190px;height:auto;object-fit:contain}.brand-logo-unavailable>span:last-child{display:block}.brand-logo-unavailable #brand-slime{display:none}.dock-tools{display:flex;gap:6px}.game-dock .settings-btn{position:static;display:grid;place-items:center;width:36px;height:36px;min-width:36px;border:1.7px solid #562e17;border-radius:50%;background:#fffaf0;box-shadow:0 3px 0 #562e17;padding:7px;z-index:1}.game-dock .settings-btn svg{width:100%;height:100%}#dock-music{font-size:24px;font-weight:800;padding:0}#dock-music.off{opacity:.5}.return-home{display:flex;justify-content:center;align-items:center;gap:4px;min-height:40px;border:1.5px solid #cca87b;border-radius:12px;box-shadow:0 3px 0 #b09c7b;background:#fffaf0;padding:5px 7px;color:#582619;text-decoration:none;font-size:clamp(10px,1.8vw,16px);font-weight:800;line-height:1.4;white-space:nowrap}.game-dock a:active,.game-dock button:active{transform:translateY(2px)}body[data-screen=settings] .game-dock{display:none}.wood-title{background:url('assets/brand/wood-plaque.png') center/100% 100% no-repeat;text-align:center;font-size:clamp(20px,3.7vw,32px);font-weight:900;padding:12px 18px;min-height:62px;line-height:1.4;display:grid;place-items:center;white-space:nowrap}.play-top,.settings-heading{display:grid;grid-template-columns:70px minmax(0,1fr) 70px;align-items:center;gap:5px;padding:12px 0 8px;margin:0}.text-button,#question-number{border:1.5px solid #98683a;border-radius:13px;background:linear-gradient(#fffdf2,#fff0d5);box-shadow:0 3px 0 #86562e;min-height:42px;font-size:clamp(12px,2vw,18px);font-weight:800;padding:7px 10px;line-height:1.5}.play-top>h1{margin:0}.play-top .sr-only{position:absolute}.play-top #question-number{white-space:nowrap;display:grid;place-items:center;padding:6px 4px}.arcade-hud{display:block;margin:0;padding:0;background:none;border:0;box-shadow:none}.hud-top{display:grid;grid-template-columns:23% minmax(0,1fr);gap:10px;align-items:stretch;position:relative}.pips{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);gap:5px;align-content:center;align-items:center;justify-items:center;border:0;background:#fffdf4eb;padding:10px 8px;margin:0;border-radius:20px}.pip{width:clamp(11px,2.8vw,22px);height:clamp(11px,2.8vw,22px);border:1.6px solid #673d22;border-radius:50%;background:#fffefa;box-shadow:none}.pip.now{background:#3e8dff}.pip.done{background:var(--pip-color,#ffd056)}.question-timer{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 8px 17px;border:2px solid #653f22;border-radius:24px;background:#fffdf5;box-shadow:0 4px 0 #694523;font-size:14px;height:auto;min-width:0;width:auto}.question-timer #time-left{font-size:clamp(24px,5vw,46px);line-height:1}.time-track{position:absolute;left:12px;right:12px;bottom:7px;width:auto;height:4px;background:#e7d5bd}.hud-bottom{display:flex;justify-content:space-between;align-items:flex-start;gap:7px;margin:12px 6px 0;flex-wrap:nowrap}.tally{display:flex;gap:5px}.tally-pill{display:flex;align-items:center;white-space:nowrap;gap:3px;border:1.5px solid #714320;border-radius:13px;box-shadow:0 3px 0 #714320;background:#fffdf5;padding:6px 7px;font-size:10px}.tally-pill b{font-size:22px}.tally-pill small{font-size:11px}.tally-pill.miss-pill{background:#f3e9ff}.miss-pill b{color:#9744bd}.energy-cluster{display:flex;align-items:stretch;gap:6px}.combo-box{width:auto;min-width:62px;padding:5px 7px;border:1.5px solid #704324;border-radius:13px;background:#fffdf6;box-shadow:0 3px 0 #704324}.combo-box>div{display:flex;align-items:baseline;justify-content:center;gap:3px}.combo-box b{font-size:23px;color:#f25b91}.combo-box span{font-size:10px}.combo-box small{font-size:9px;display:block;white-space:nowrap}.combo-track{display:none}.energy-row{display:flex;align-items:center;justify-content:center;padding:6px;border:1.5px solid #875923;border-radius:12px;box-shadow:0 3px 0 #875923;background:linear-gradient(#ffe275,#ffc838);font-size:10px;min-width:70px;gap:2px}.energy-row b{font-size:24px;display:inline-block;margin-left:3px}.energy-track{display:none}.play-stage{height:clamp(135px,34vw,250px);margin:8px 0 0;padding:0;background:radial-gradient(ellipse at 50% 97%,#f9e2a688 0,transparent 68%);border:0}.play-stage::after{bottom:0;height:8px;border:0;border-radius:50%;background:#eee4b5aa;left:15%;width:70%}.bunting,.spot,.reach-tag{display:none!important}#actor-caption{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.play-stage .slime-party{height:100%;align-items:flex-end;padding-bottom:1px;justify-content:center}.play-stage .softie:not(.active-actor){display:none}.play-stage .softie.active-actor{width:clamp(135px,33vw,230px)!important;order:0!important;margin:0!important;translate:0 0}.softie svg svg{overflow:hidden}.question-card{background:linear-gradient(115deg,#fffcf6,#fff6e5);border:3px solid #ca8d49;border-radius:24px;box-shadow:0 4px 0 #8c562b,inset 0 0 0 2px #fff;min-width:0;padding:14px 14px 16px;margin:0 0 9px}.marquee{display:none}.card-heading{display:flex;justify-content:space-between;gap:10px;font-size:clamp(11px,2.2vw,17px);color:#77567c;font-weight:800;line-height:1.7}.card-heading #blank-count{font-weight:400;white-space:nowrap}.context{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;margin:14px 0 8px;min-height:0;font-size:20px}.target-word-row{display:flex;gap:10px;align-items:center;justify-content:center;max-width:100%;min-width:0}.target-word{border:1.5px solid #734b2d;border-radius:15px;background:linear-gradient(135deg,#fffaf0,#fff0f4);box-shadow:0 3px 0 #70482c;padding:7px 14px;font-size:clamp(18px,3.8vw,30px);font-weight:900;line-height:1.5;min-width:0;overflow-wrap:anywhere}.target-guide{font-size:clamp(13px,2.6vw,20px);font-weight:800;color:#795282;line-height:1.8}.sentence-en{font-size:clamp(20px,4.2vw,32px);font-weight:850;color:#4c2411;line-height:1.5;overflow-wrap:anywhere;max-width:100%}.word-row{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}.word-slots{display:flex;justify-content:center;align-items:center;gap:5px;min-width:0;margin:8px auto}.word-cell{min-width:0;width:auto;padding:8px 10px;flex:0 1 auto;border:2px solid #e783a7;border-radius:14px;background:#fff4f6;color:#f06197;min-height:42px;height:auto;font-size:22px;font-weight:900;box-shadow:0 0 0 3px #ffdae6}.word-cell.blank{color:#ef5a98}.word-cell.ok{color:#5e351b;background:#eef8e4}.feedback{font-size:clamp(12px,2.5vw,18px);line-height:1.8;color:#876786;text-align:center;margin:9px 0 0;min-height:0}.speaker-btn,.speaker-btn.icon-only{width:40px;height:40px;min-width:40px;min-height:40px;border:2px solid #623613;border-radius:50%;background:#fffefa;box-shadow:0 4px 0 #623613;padding:9px;display:grid;place-items:center;color:#5d3015;flex-shrink:0}.speaker-icon{width:100%;height:100%}.speaker-btn .speaker-icon{display:block}.speaker-btn span{display:none}body[data-question-type=spelling] #question-card{display:flex;flex-direction:column}body[data-question-type=spelling] #context{order:2;margin:6px 0 0}body[data-question-type=spelling] .card-heading{order:0}body[data-question-type=spelling] .word-row{order:1;margin-top:12px}body[data-question-type=spelling] #feedback{order:3}body[data-question-type=spelling] #context .target-word-row{display:none}body[data-question-type=spelling] .word-slots{display:grid;grid-template-columns:repeat(var(--letters,4),minmax(0,1fr));flex:1;gap:4px;border:1.5px solid #b7936d;border-radius:15px;padding:8px 6px;background:#fff6e8;margin:0}body[data-question-type=spelling] .word-cell{border:0;box-shadow:none;background:#fffaf077;font-size:clamp(18px,4.5vw,32px);padding:4px 0;text-align:center;border-radius:9px;color:#4d2810;min-height:36px}body[data-question-type=spelling] .word-cell.blank{border:1.5px dashed #f477ad;color:#ec619a;background:#fff4f7}body:not([data-question-type=spelling]) .word-cell{width:65%;min-width:120px;max-width:100%;min-height:46px}.choice-note{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#795282;font-weight:750;font-size:clamp(11px,2.2vw,17px);line-height:1.5;margin:10px 0 8px}.choice-note span{font-size:clamp(10px,1.8vw,14px);font-weight:400;white-space:nowrap}.choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.choice{min-width:0;min-height:60px;padding:8px 4px;border:1.6px solid #674125;border-radius:16px;box-shadow:0 4px 0 #34263a;background:#fffdf8;color:#502b15;font-size:clamp(14px,3vw,25px);font-weight:850;line-height:1.3;overflow-wrap:anywhere;position:relative}.choice:nth-child(2){background:#fff0c8}.choice:nth-child(3){background:#def0ff}.choice:nth-child(4){background:#eee2fb}.choice::before{content:attr(data-number);position:absolute;top:4px;left:7px;font-size:10px;color:#9c8c85;font-weight:400}body[data-question-type=spelling] .choice{font-size:clamp(26px,7vw,45px)}#candidate-speech{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:8px 0 0;justify-items:center}.candidate-speech .speaker-btn{width:38px;height:38px;min-width:38px;min-height:38px}.hint-row{display:flex;justify-content:center;gap:10px;margin-top:10px}.hint-row .text-button{min-height:30px;padding:4px 8px;font-size:10px;box-shadow:0 2px 0 #98683a}.speech-status{text-align:center;font-size:13px;line-height:1.8;margin:12px 0 4px;color:#64351f}.explanation{background:#fff8e9;border:2px solid #ca9454;border-radius:20px;padding:14px;box-shadow:0 3px 0 #875b2b}.explain-heading{font-size:13px}.explain-top-row{display:flex;flex-wrap:wrap;gap:10px}.example{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.primary,.secondary{border-color:#7d512b;border-width:1.5px;box-shadow:0 4px 0 #75451f;border-radius:16px;font-size:16px;line-height:1.5;min-height:46px}.settings-screen{position:relative}.settings-heading{grid-template-columns:70px minmax(0,1fr) 35px}.settings-heading .wood-title{grid-column:2;grid-row:1}.settings-intro{text-align:center;font-size:12px;margin:0 0 55px;line-height:1.8}.settings-softie{width:115px;height:115px;position:absolute;right:3%;top:70px;z-index:2}.settings-softie svg{width:100%;height:100%}.settings-paper{position:relative;background:linear-gradient(115deg,#fffbed,#fff7df);border:4px solid #bd8037;border-radius:28px;box-shadow:inset 0 0 0 2px #ffe3a1,0 5px 0 #8c501f;padding:16px 10px 15px;margin:0 2px 25px}.wood-label{display:inline-block;position:relative;z-index:1;margin:0 0 -2px 5px;font-size:17px;padding:4px 12px}.settings-card{padding:8px 12px;margin:0 0 18px;border:1px solid #e2c5a0;border-radius:17px;background:#fffcf4bd;box-shadow:none}.set-row{padding:10px 0;margin:0;border-bottom:1px solid #ead9bf;min-width:0;display:block}.set-row:last-child{border-bottom:0}.set-label{font-size:clamp(12px,2.4vw,20px);font-weight:800;line-height:1.6}.set-label b{color:#357cff;white-space:nowrap}.set-note{font-size:clamp(10px,1.9vw,15px);color:#8b7b78;line-height:1.7;margin:5px 0 0}.audio-row{display:grid;grid-template-columns:35% 26% minmax(0,1fr);gap:6px;align-items:center}.toggle-pill{padding:0;display:block;cursor:pointer}.toggle-btn{border:1px solid #ab9186;border-radius:25px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 #af948a;color:#397cff;min-height:32px;font-size:12px;padding:3px}.toggle-btn.off{color:#8a817e;background:#eee8e0}.toggle-pill:has(input:focus-visible) .toggle-btn{outline:3px solid #347aff}.slider{width:100%;min-width:0;min-height:34px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer}.slider::-webkit-slider-runnable-track{height:9px;border:1.5px solid #673c25;border-radius:20px;background:linear-gradient(90deg,#fb6db5,#ffe382)}.slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;border:2px solid #673c25;border-radius:50%;background:#ffe371;margin-top:-8px;box-shadow:0 2px 0 #673c25}.slider::-moz-range-track{height:9px;border:1.5px solid #673c25;border-radius:20px;background:linear-gradient(90deg,#fb6db5,#ffe382)}.slider::-moz-range-thumb{width:22px;height:22px;border:2px solid #673c25;border-radius:50%;background:#ffe371}.motion-row{display:grid;grid-template-columns:50% minmax(0,1fr);gap:7px;align-items:center}.motion-row .set-note{grid-column:1/-1;text-align:center}.option-row{display:grid;grid-template-columns:34% minmax(0,1fr) 22px;gap:8px;align-items:center}.option-row .set-note{margin:0}.speech-setting{width:20px;height:20px;accent-color:#3d79ff;margin:0}.demo-row{grid-template-columns:35% minmax(0,1fr)}.demo-row .set-label{grid-column:1}.demo-row .set-note{grid-column:1;grid-row:2}.demo-row .sub-btn{grid-column:2;grid-row:1/3;background:#e2efff}.reset-settings{text-align:center}.danger-btn{display:block;margin:5px auto 10px;min-width:52%;min-height:46px;background:linear-gradient(#ff6590,#ff3e67);border:1.5px solid #903c35;box-shadow:0 4px 0 #874029;border-radius:15px;color:white;padding:8px 15px;font-size:19px;line-height:1.5;font-weight:800}.timing-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:5px 0 12px}.timing-chips>span{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 4px;border:1px solid #84b5a1;border-radius:14px;background:#e1f7ee;font-size:12px;justify-content:center}.timing-chips>span:nth-child(2){background:#e4eeff;border-color:#9bb1d6}.timing-chips>span:nth-child(3){background:#fff0f4;border-color:#e0a4b9}.timing-chips b{display:block;font-size:19px}.timing-chips svg{width:35px;height:35px}.rules-settings p{font-size:11px;line-height:1.9;text-align:center;color:#8b7b78}.result-screen{margin-top:20px;padding:22px 20px;border:3px solid #be863d;border-radius:25px;background:#fff7e7;box-shadow:0 5px 0 #875426}.result-screen h1{font-size:28px;line-height:1.5}.result-party{height:110px}.result-screen .result-score strong{font-size:60px}.result-screen p{line-height:1.8;font-size:13px}#result-home{margin-top:15px;width:100%}.camp-dialog-mascot{width:100%;height:100%;object-fit:contain}.camp-sheet-mascot{object-fit:cover;object-position:left center}.qsoftie,.confirm-art{overflow:hidden}dialog{max-width:min(92vw,480px);max-height:88vh;max-height:88dvh;overflow-y:auto;border:3px solid #c5904f;border-radius:24px;background:linear-gradient(120deg,#fffcf5,#fff2d7);box-shadow:0 5px 0 #875029;color:#4d2913}dialog::backdrop{background:#1c2911a6;backdrop-filter:blur(1px)}#confirm-dialog{width:84%;max-width:440px;padding:35px 20px 20px;overflow:visible;margin:auto}#confirm-dialog .dialog-head{display:none}#confirm-dialog .confirm-art{position:absolute;top:-74px;left:50%;transform:translateX(-50%);width:110px;height:110px;overflow:visible}#confirm-dialog .confirm-dialog-body{padding:0}#confirm-dialog .confirm-msg{font-size:14px;line-height:1.9;text-align:center}#confirm-dialog .confirm-dialog-body::before{content:"确定要全部重置吗？";display:block;text-align:center;font-size:21px;font-weight:900;margin:0 0 10px}#confirm-dialog #confirm-msg small{display:none}#confirm-dialog .dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}#confirm-dialog .danger-btn{width:100%;min-width:0;margin:0;font-size:16px}#confirm-dialog .secondary{font-size:16px;min-height:46px;background:#fff0d5}.close-dialog-btn{border-color:#643813;background:#fff7e7;color:#6b3b1a}.device-note{pointer-events:none}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #2e89df;outline-offset:3px}.settings-screen button:focus-visible{outline-offset:2px}body.reduced .hero-art{animation:none}.hero-art{animation:hero-breathe 5s ease-in-out infinite;transform-origin:50% 60%}@keyframes hero-breathe{50%{transform:translateY(-2px)}}@media(prefers-reduced-motion:reduce){.hero-art{animation:none}}
@media(min-width:600px){.home-stage{height:140px}.mission-panel{padding-bottom:32px}.big-btn.start-button{min-height:95px;grid-template-columns:35px minmax(0,1fr) 52px}.start-play{width:48px;height:48px;font-size:35px}.activity-pill{min-height:90px}.activity-pill .activity-icon{width:34px;height:34px}.level-card{min-height:90px;grid-template-columns:52px minmax(0,1fr) auto 16px;gap:12px;padding:12px 16px}.level-icon{width:48px}.game-dock .settings-btn{width:48px;height:48px;min-width:48px}.game-dock{padding:12px 18px}.return-home{min-height:48px;padding:8px 14px}.play-top,.settings-heading{grid-template-columns:100px minmax(0,1fr) 100px}.settings-paper{padding:24px}.settings-intro{font-size:17px;margin-bottom:80px}.settings-softie{width:150px;height:150px;top:85px}.wood-title{min-height:85px}.question-card{padding:20px 26px}.speaker-btn,.speaker-btn.icon-only{width:52px;height:52px;min-width:52px;min-height:52px}.tally-pill{font-size:15px}.tally-pill b{font-size:30px}.combo-box b{font-size:34px}.energy-row{font-size:15px}.energy-row b{font-size:33px}.choice{min-height:90px}.set-note{font-size:14px}.toggle-btn{font-size:16px;min-height:42px}.wood-label{font-size:23px}.set-row{padding-block:16px}}
@media(max-width:360px){#app{padding-inline:9px}.hero{margin-inline:-9px}.home-core{width:94%}.intro{margin-inline:8%!important}.home-stage{height:78px}.activity-bar{gap:5px}.activity-pill{min-height:60px}.game-dock{gap:5px;padding-inline:8px;border-radius:24px}.dock-tools{gap:4px}.game-dock .settings-btn{width:31px;height:31px;min-width:31px;padding:6px}#dock-music{font-size:22px}.return-home{font-size:10px;padding:5px;min-height:34px}.play-top,.settings-heading{grid-template-columns:60px minmax(0,1fr) 60px}.wood-title{font-size:18px;padding-inline:8px}.hud-bottom{margin-inline:0;gap:5px}.tally-pill{font-size:9px;padding:5px}.tally-pill b{font-size:18px}.combo-box{min-width:50px;padding:4px}.combo-box b{font-size:20px}.combo-box small{font-size:8px}.energy-row{font-size:9px;min-width:65px}.energy-row b{font-size:21px}.settings-paper{padding:12px 7px}.settings-card{padding:6px 8px}.audio-row{grid-template-columns:35% 28% minmax(0,1fr);gap:4px}.set-label{font-size:11px}.toggle-btn{font-size:11px}.option-row{grid-template-columns:35% minmax(0,1fr) 20px;gap:5px}.motion-row{grid-template-columns:53% minmax(0,1fr)}.level-card{gap:6px;padding-inline:8px}.level-count{font-size:10px}.level-count b{font-size:17px}}
@media(orientation:landscape) and (max-height:500px){#app,.game-dock{max-width:600px}.settings-softie{top:65px}dialog{max-height:82vh}#confirm-dialog{overflow-y:auto;padding-top:25px}#confirm-dialog .confirm-art{display:none}.play-stage{height:130px}}
/* Explicitly replace the old settings heading, keeping the approved wood plaque. */
body{position:relative}#paper{position:absolute;inset:0;background-size:cover;min-height:100vh}
.settings-screen h1.wood-title,.play-top h1.wood-title{display:grid;background:url('assets/brand/wood-plaque.png') center/100% 100% no-repeat;color:#4c2411;border:0;border-radius:0;box-shadow:none;rotate:0;font-size:clamp(19px,3.6vw,32px);padding:12px 8px;min-height:64px;letter-spacing:0}
.set-label{white-space:normal}.motion-row .set-label{font-size:clamp(11px,2.25vw,20px);white-space:nowrap}.settings-intro{margin-top:4px}.settings-softie{top:76px;right:0}.demo-row .set-note{font-size:10px;line-height:1.6}.timing-chips>span>span{display:block;text-align:center}.choice small{position:absolute;left:7px;top:4px;font-size:10px;color:#948484}.choice::before{display:none}
#confirm-dialog .dialog-head{display:block;position:static;margin:0 0 10px;padding:0}#confirm-dialog #confirm-title{font-size:21px;line-height:1.5;text-align:center}#confirm-dialog .confirm-dialog-body::before{display:none}#close-confirm{display:none}
.game-dock .settings-btn{min-width:40px;width:40px;height:40px;padding:8px}.game-dock{gap:6px}.brand{flex-basis:30%}.return-home{min-height:42px}.game-dock .settings-btn:hover{background:#fff0cf}.home-actions .sub-btn:disabled{background:#fffcf4}
@media(max-width:360px){.game-dock .settings-btn{width:36px;height:36px;min-width:36px;padding:7px}.return-home{min-height:40px}.motion-row{grid-template-columns:56% minmax(0,1fr)}.motion-row .set-label{font-size:10px}.settings-intro{max-width:70%;margin-inline:auto}.audio-row .set-label{white-space:nowrap;font-size:10px}.game-dock .brand{max-width:85px}}
@media(min-width:600px){.game-dock .settings-btn{width:48px;height:48px;min-width:48px}.settings-screen h1.wood-title,.play-top h1.wood-title{min-height:86px}.settings-softie{top:85px}.demo-row .set-note{font-size:14px}}
body[data-question-type=spelling] #context .target-word-row{display:none!important}.word-row{width:100%}.question-timer{rotate:0}.time-track{background:#e2cfb8}.time-track i{background:#dfb878}
.play-lower{background:linear-gradient(#fffaf4f5,#fff4dcf5);border-radius:24px;margin:10px 0 4px;padding:8px 8px 4px}.play-lower #answer-area{margin-top:0}.play-lower .speech-status{padding-inline:5px}.play-lower .device-note{margin-bottom:9px}.hint-row:has(#show-hint[hidden]):has(#skip-question[hidden]){display:none}
/* Nine-slice botanical timber frame retains corner detail at different heights. */
.settings-paper,.question-card,#confirm-dialog{border-style:solid;border-width:16px;border-image-source:url('assets/brand/panel-frame.png');border-image-slice:150 fill;border-image-width:24px;border-image-outset:7px;border-image-repeat:stretch;background:#fff9ee}
.settings-paper{padding:8px 4px 12px}.question-card{padding:6px 8px 14px}.question-card .card-heading{padding:0 4px}#confirm-dialog{padding:28px 8px 12px}
@media(min-width:600px){.settings-paper{border-width:24px;padding:15px 8px}.question-card{padding:15px 16px}.settings-paper,.question-card,#confirm-dialog{border-image-width:35px;border-image-outset:10px}}
/* Short-phone overrides: never shrink the stage underneath a full-size actor. */
body[data-screen=play] .play-stage{height:clamp(155px,35vw,250px);margin:16px 0 0}body[data-screen=play] .play-stage .slime-party{inset:0;height:100%;padding:0}body[data-screen=play] .play-stage .softie.active-actor{width:clamp(130px,30vw,205px)!important}.play-top .text-button,.settings-heading .text-button{white-space:nowrap;padding-inline:5px}.toggle-pill,.toggle-btn{min-width:0;width:100%}.toggle-btn{padding:3px;height:34px}.set-label b{font-size:inherit;letter-spacing:0}.set-label{gap:4px}.audio-row{grid-template-columns:minmax(0,35fr) minmax(0,25fr) minmax(0,40fr)}.audio-row .slider{max-width:100%}.settings-intro{max-width:calc(100% - 112px);margin:4px 0 55px 8px;text-align:center}.settings-softie{top:84px;right:1%}.motion-row{gap:10px}.motion-row .set-label{white-space:normal}.game-dock .settings-btn{width:44px;height:44px;min-width:44px;padding:9px}.game-dock .brand{min-height:44px}.game-dock .return-home{min-height:44px}.game-dock{gap:5px;padding-inline:8px}.dock-tools{gap:4px}
@media(max-width:360px){.game-dock .brand{max-width:75px}.game-dock .return-home{font-size:9px;padding-inline:4px}.game-dock{gap:4px}.settings-intro{font-size:11px}.motion-row{grid-template-columns:56% minmax(0,1fr)}.toggle-btn{font-size:10px}.settings-softie{width:100px;height:100px}}
@media(min-width:600px){.game-dock .settings-btn{width:48px;height:48px;min-width:48px}.settings-intro{max-width:calc(100% - 155px);margin-bottom:80px;font-size:17px}}
.learning-panel{background:linear-gradient(#fffaf1f5,#fff6e5e8);border-radius:24px;padding:7px;box-shadow:0 1px 0 #d0a87b}.learning-panel .mode-toggle{margin-bottom:10px}.learning-panel .home-actions{margin-inline:2px}.learning-panel .footnote,.learning-panel .device-note{margin-inline:4px}
.settings-softie img{width:100%;height:100%;object-fit:contain}.settings-softie::after{content:"";position:absolute;bottom:-3px;left:-7%;width:110%;height:15px;z-index:-1;background:linear-gradient(#e9b564,#a85c24);border:1px solid #744017;border-radius:7px;box-shadow:0 3px 0 #76502b}
.voice-label{align-items:center}.voice-label>span:last-child{line-height:1.5}.voice-break{display:block}@media(min-width:600px){.voice-break{display:none}}
#settings-title:focus,#result-title:focus{outline:none}
#app{padding-top:env(safe-area-inset-top,0px);padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}.game-dock{padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px))}
.settings-softie img{animation:portrait-breathe 4s ease-in-out infinite;transform-origin:50% 95%}@keyframes portrait-breathe{50%{transform:translateY(-2px) rotate(1deg)}}body.reduced .settings-softie img{animation:none}@media(prefers-reduced-motion:reduce){.settings-softie img{animation:none}}
