:root{color-scheme:light;--ink:#294c3e;--muted:#728174;--cream:#f8f6e9;--green:#285d47;--gold:#e9b957;--line:#dce2ca;--shadow:0 14px 38px #33513b14;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#f1f2e5;color:var(--ink);min-width:320px}button,select{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #c79836;outline-offset:3px}[hidden]{display:none!important}a{color:var(--green)}.game-shell{max-width:1560px;margin:auto;padding:22px 28px 12px}.brand-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.back{text-decoration:none;font-size:16px;font-weight:700;white-space:nowrap}.brand{display:flex;gap:12px;align-items:center}.brand-mark{width:47px;height:47px;background:#e5ebd8;border-radius:15px;display:grid;place-items:center;font-size:30px}.brand h1{margin:0;font-size:27px;letter-spacing:-1px;font-weight:900}.brand em{font-style:normal;color:#648347}.brand p{margin:2px 0 0;font-size:18px;color:var(--muted)}.brand-actions{display:flex;gap:7px;align-items:center}.player-label{font-size:16px;font-weight:700;background:#e5ebd8;border-radius:20px;padding:8px 12px}.icon-button{display:grid;place-items:center;min-width:36px;min-height:36px;background:#e6ebd9;border:1px solid #d5dfc7;border-radius:11px;font-size:18px}.icon-button:hover{background:#d5e2c7}.game-frame{display:grid;grid-template-columns:minmax(0,1fr) 295px;background:var(--cream);border:1px solid #d2dcc3;border-radius:22px;overflow:hidden;box-shadow:var(--shadow);position:relative}.battle-column{min-width:0;border-right:1px solid var(--line)}.arena-hud{display:flex;align-items:center;gap:26px;background:#244e40;color:#f5f4de;padding:13px 20px;min-height:77px}.stat{display:flex;flex-direction:column;gap:3px}.stat>span{font-size:16px;font-weight:800;letter-spacing:1.4px;color:#b7ceb1;white-space:nowrap}.stat strong{font-size:26px;line-height:1;font-weight:800}.pile-stat strong{color:#ffdf7e}.pile-stat>span{color:#e1d899}.mini-stat{display:flex;flex-direction:column;gap:6px;margin-left:auto;font-size:16px;color:#bdcfb5}.mini-stat b{color:#eef0d3;font-size:16px}.hud-button{background:#436855;border:1px solid #75927a70;color:#eff4df;border-radius:9px;padding:10px 12px;font-size:14px;font-weight:700}.canvas-wrap{position:relative;aspect-ratio:1080/600;overflow:hidden;background:#cbd598}canvas{width:100%;height:100%;display:block;touch-action:none;outline:none}.arena-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:20px;background:#e5ebc54f;overflow:auto;backdrop-filter:blur(2px)}.welcome-card{background:#fcfaecd9;border:1px solid #fffdf7;border-radius:22px;text-align:center;padding:23px 31px;box-shadow:0 12px 40px #4663401a;max-width:620px;outline:none}.eyebrow{font-size:16px;letter-spacing:1.6px;font-weight:900;color:#789261}.welcome-card h2{font-size:48px;line-height:1.02;margin:12px 0;letter-spacing:-2px;color:#305640}.welcome-card h2 em{font-style:normal;color:#8c9d50}.welcome-card p{font-size:18px;line-height:1.6;margin:0 0 16px}.level-choices{display:flex;gap:8px;margin:16px 0}.level-choice{flex:1;min-width:0;padding:10px 8px;background:#eff1df;border:1.5px solid #d6dfc5;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:3px}.level-choice span{font-size:21px}.level-choice b{font-size:16px}.level-choice small{font-size:16px;color:#7a846d;white-space:nowrap}.level-choice.selected{background:#e1ebce;border-color:#83a267;box-shadow:0 0 0 2px #73945113}.button{border-radius:12px;padding:13px 18px;font-size:16px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:var(--green);color:#fff5d5;box-shadow:0 4px 0 #204532}.primary:hover{background:#367253}.secondary{background:#e7ecd7;color:#375540;border:1px solid #d1ddbe;box-shadow:none}.start-button{width:100%;font-size:16px}.resume-note{font-size:18px!important;color:#73816a;margin:11px 0 9px!important}.kind-note{font-size:18px;color:#6f7f63;display:block}.outcome-card{border-radius:22px;max-width:470px;background:#fffbeeeb;text-align:center;padding:23px 32px;border:1px solid #fff;box-shadow:var(--shadow);outline:none}.outcome-card h2{font-size:30px;letter-spacing:-1px;margin:7px 0 12px}.outcome-card p{font-size:18px;line-height:1.65;margin:0 0 16px}.outcome-card .button{margin:5px 4px}.outcome-icon{font-size:39px;margin-bottom:8px}.countdown{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);font-size:105px;font-weight:900;line-height:1;color:#fff9da;filter:drop-shadow(0 5px 0 #4b7440);pointer-events:none}.pouch-hud{position:absolute;top:12px;left:19px;background:#fff9e3dd;border:1px solid #e0dcba;border-radius:11px;padding:8px 12px;width:148px;pointer-events:none}.pouch-hud>span{font-size:14px;font-weight:900}.reload-track{height:4px;background:#dbdec2;border-radius:4px;margin:6px 0 4px;overflow:hidden}.reload-track span{display:block;height:100%;width:100%;background:#88a762}.pouch-hud small{font-size:14px;color:#7d876b}.play-controls{display:flex;align-items:stretch;gap:7px;padding:12px 12px 10px;border-top:1px solid #c5d29e;min-height:65px;background:#f8f5e4}.move-pad{display:flex;align-items:stretch;gap:3px}.move-pad button{min-width:32px;min-height:39px;border-radius:8px;background:#e4ead3;border:1px solid #ccd9b9;font-size:18px;touch-action:none}.move-pad button:active,.control-button:active{background:#d2e0b9;transform:translateY(1px)}.control-button{min-height:39px;padding:8px 12px;border-radius:9px;background:#e8edd7;border:1px solid #d1ddbd;font-size:16px;font-weight:800;display:flex;align-items:center;gap:6px;touch-action:none}.control-button>span:first-child{font-size:17px}.auto-button{padding:7px 10px;font-size:16px;background:#e5ebd6;border-radius:9px;line-height:1.7;white-space:nowrap;margin-left:auto}.auto-button b{color:#497349;padding-left:4px}.auto-button[aria-pressed=false] b{color:#8a7554}.arena-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 15px 12px;font-size:16px;line-height:1.45;color:#7c856e;min-height:28px}.level-label{font-weight:900;color:#6e815a;white-space:nowrap}.learning-lab{background:#f8f7ec;padding:20px 16px 0;display:flex;flex-direction:column;min-height:0;max-height:100%;overflow:hidden}.lab-heading{display:flex;align-items:center;justify-content:space-between}.lab-heading h2{font-size:23px;letter-spacing:-.6px;margin:6px 0 9px}.lab-heading .eyebrow{font-size:16px}.lab-description{font-size:18px;line-height:1.7;color:#7a846e;margin:0 0 12px}.lab-description b{color:#48664a}.lab-summary{font-size:16px;display:flex;justify-content:space-between;gap:5px;color:#7b8b64;border-bottom:1px solid var(--line);padding-bottom:12px}.lab-summary b{color:#466544}.abilities{overflow:auto;min-height:0;flex:1;padding-top:10px;padding-bottom:5px;scrollbar-width:thin;scrollbar-color:#cad5bb transparent;max-height:490px}.ability{display:grid;grid-template-columns:35px 1fr;gap:8px;align-items:center;text-align:left;width:100%;background:#fffdf3;border:1px solid #dbe2cb;border-radius:12px;padding:10px;margin-bottom:8px}.ability:hover{border-color:#98ae7a;background:#eff3df}.ability-icon{font-size:21px;display:grid;place-items:center;background:#eaf0d8;width:35px;height:39px;border-radius:10px}.ability-copy{min-width:0}.ability-title{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:16px;font-weight:900}.rank{font-size:16px;color:#6d8054;background:#eef1df;padding:3px 6px;border-radius:5px;white-space:nowrap}.ability-detail{font-size:16px;color:#7d8670;display:block;line-height:1.45;margin-top:3px}.ability-action{font-size:16px;font-weight:800;color:#567e47;display:flex;justify-content:space-between;align-items:center;margin-top:6px}.ability-progress{height:3px;background:#e7ebd9;display:block;width:100%;margin-top:5px;border-radius:4px;overflow:hidden}.ability-progress i{display:block;height:100%;background:#88a567}.lab-footer{border-top:1px solid var(--line);padding:11px 0 7px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}.text-button{padding:0;background:transparent;color:#6b8155;font-size:16px;font-weight:800;cursor:pointer}.lab-footer p{font-size:18px;color:#909881;margin:2px 0;width:100%;text-align:center}.lab-close,.lab-toggle{display:none}.page-footer{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 0 4px;font-size:16px;color:#94a084}.page-footer a{color:#7d8d6c;text-decoration:none}.save-warning{background:#fbebc3;color:#785f32;padding:9px 14px;border:1px solid #e8d59d;border-radius:10px;margin-bottom:10px;font-size:18px}.quiz-dialog,.help-dialog{background:#fffbee;color:var(--ink);border:1px solid #d2ddc0;border-radius:22px;box-shadow:0 30px 120px #1e3a3255;padding:24px;max-height:90dvh;max-width:calc(100% - 24px);width:650px;overflow:auto}.quiz-dialog::backdrop,.help-dialog::backdrop{background:#203d34a8;backdrop-filter:blur(4px)}.quiz-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.quiz-dialog h2{font-size:28px;margin:9px 0 14px;letter-spacing:-.8px}.quiz-progress{display:flex;gap:8px;margin-bottom:20px}.progress-dot{height:8px;flex:1;border-radius:8px;background:#e2e8d1}.progress-dot.filled{background:#87a768}.subject-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:8px}.subject-row label{font-size:16px;font-weight:800}.subject-row select{border:1px solid #cbdab8;background:#edf1de;color:#3c6348;font-size:16px;font-weight:700;border-radius:10px;padding:8px 12px;min-height:40px;max-width:230px}.skill-step{font-size:16px;color:#84906f;margin-left:auto}.skill-topic{margin:2px 0 14px;font-size:16px;color:#7e8e69}.question-visual{background:#f1f3e0;border:1px solid #e0e5c9;border-radius:14px;padding:17px;text-align:center;margin-bottom:15px;font-size:47px;min-height:82px}.question-visual.passage{font-size:16px;line-height:1.8;text-align:left;color:#466047}.question-visual.count{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;font-size:32px}.question-visual.pattern{font-size:31px;word-spacing:8px}.question-visual svg{height:130px;max-width:100%;width:320px}.question-visual .chart{display:flex;gap:10px;justify-content:center;align-items:flex-end;font-size:16px;height:135px;padding-top:5px}.chart-column{display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:5px;flex:1;max-width:70px;height:100%;min-width:28px}.chart-bar{background:#94b278;border-radius:5px 5px 0 0;width:80%;min-height:5px}.chart-value{font-weight:800;color:#507243}.chart-label{white-space:normal;text-align:center;font-size:16px}.quiz-dialog h3{font-size:21px;line-height:1.45;margin:9px 0 18px;font-weight:800;overflow-wrap:anywhere}.answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.answer{border:2px solid #d6e0c4;border-radius:13px;background:#f5f5e6;padding:14px 10px;min-height:60px;font-size:17px;font-weight:800;white-space:normal;overflow-wrap:anywhere}.answer:hover{background:#e4eccf;border-color:#93ad73}.answer.correct{background:#dae8c7;border-color:#6e9c58;color:#42683b}.answer.wrong{background:#f2e2cf;border-color:#c8a275;color:#8c673f}.question-feedback{font-size:16px;line-height:1.65;min-height:24px;color:#7b866c;margin:15px 0}.question-feedback.good{color:#4d793e;font-weight:700}.question-feedback.retry{color:#8c704b}.quiz-footnote{font-size:18px;color:#929b7d;margin:15px 0 0;text-align:center}.quiz-dialog>.button{width:100%}.help-dialog{width:600px}.help-dialog h2{font-size:28px;margin:10px 0 20px;letter-spacing:-.8px}.help-dialog ol{padding-left:23px;font-size:16px;line-height:1.7}.help-dialog li{margin-bottom:13px}.help-close{float:right}.help-dialog>p{font-size:18px;line-height:1.7}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap}.game-shell:fullscreen{padding:10px 16px;background:#f1f2e5;overflow:auto;max-width:none}.game-shell:fullscreen .brand-row{margin-bottom:9px}.game-shell:fullscreen .game-frame{height:calc(100dvh - 100px);grid-template-columns:minmax(0,1fr) 305px}.game-shell:fullscreen .battle-column{display:flex;flex-direction:column;min-height:0}.game-shell:fullscreen .canvas-wrap{flex:1;aspect-ratio:auto;min-height:0}.game-shell:fullscreen canvas{object-fit:contain}.game-shell:fullscreen .abilities{max-height:none}.game-shell:fullscreen .page-footer{padding:8px}.game-shell:fullscreen .arena-hud{min-height:65px}.game-shell:fullscreen .play-controls{min-height:58px}
@media(min-width:1350px){.abilities{max-height:570px}.control-button{font-size:16px}.welcome-card{padding:27px 35px}.welcome-card h2{font-size:54px}}
@media(max-width:1050px){.game-shell{padding:14px}.game-frame{grid-template-columns:minmax(0,1fr) 252px}.arena-hud{gap:15px;padding:12px}.stat>span{font-size:16px}.stat strong{font-size:24px}.mini-stat{font-size:16px}.brand h1{font-size:24px}.learning-lab{padding:15px 12px 0}.abilities{max-height:350px}.play-controls{flex-wrap:wrap}.move-pad button{min-width:31px}.control-button{padding:7px 8px;font-size:16px}.welcome-card{padding:15px 22px}.welcome-card h2{font-size:36px;margin:8px 0}.welcome-card p{font-size:18px;margin-bottom:8px}.level-choices{margin:9px 0}.level-choice{padding:6px}.level-choice b{font-size:16px}.level-choice small{font-size:16px}.eyebrow{font-size:16px}.start-button{padding:10px}.resume-note{font-size:18px!important}.kind-note{font-size:18px}.pouch-hud{width:125px;padding:6px 10px;top:8px;left:12px}}
@media(max-width:760px){.game-shell{padding:10px}.brand-row{gap:8px;flex-wrap:wrap;margin-bottom:10px}.back{font-size:16px;order:0}.brand{order:2;width:100%;justify-content:center;margin-top:0}.brand-actions{margin-left:auto;order:1}.brand h1{font-size:24px}.brand-mark{width:38px;height:38px;font-size:24px}.brand p{font-size:18px}.player-label{font-size:16px;padding:6px 10px}.icon-button{min-height:32px;min-width:32px}.game-frame{display:block;border-radius:15px}.battle-column{border:0}.arena-hud{padding:11px;gap:17px;min-height:64px}.mini-stat{display:none}.stat>span{font-size:16px;letter-spacing:1px}.stat strong{font-size:24px}.hud-button{margin-left:auto;font-size:14px;padding:8px}.canvas-wrap{aspect-ratio:1080/690}.welcome-card{padding:15px 14px;border-radius:14px;max-width:calc(100% - 12px)}.welcome-card h2{font-size:29px;margin:6px 0;line-height:1.05}.welcome-card p{font-size:18px;line-height:1.45;margin-bottom:6px}.welcome-card .eyebrow{font-size:16px;letter-spacing:1px}.level-choice b{font-size:16px}.level-choice small{display:none}.level-choice span{font-size:18px}.level-choices{margin:8px 0;gap:6px}.start-button{font-size:16px;padding:9px}.resume-note{font-size:18px!important;margin:8px 0 5px!important}.kind-note{font-size:18px}.arena-overlay{padding:8px;align-items:center}.pouch-hud{left:8px;top:7px;width:105px;padding:5px 8px}.pouch-hud>span{font-size:14px}.pouch-hud small{font-size:14px}.reload-track{margin:4px 0 3px;height:3px}.play-controls{padding:8px;gap:6px;justify-content:center}.move-pad{flex:0 0 auto}.move-pad button{min-width:33px;min-height:39px}.control-button{font-size:16px;min-height:39px;padding:7px 9px}.auto-button{margin-left:0;min-height:39px}.control-button>span:first-child{font-size:16px}.arena-caption{padding:0 10px 9px;min-height:33px;font-size:16px;align-items:flex-start}.lab-toggle,.lab-close{display:flex}.learning-lab{display:none;position:absolute;inset:0 0 0 auto;width:min(340px,94%);z-index:8;border-left:1px solid var(--line);box-shadow:-12px 0 50px #344a3255;padding:18px 16px 0}.learning-lab.open{display:flex}.abilities{max-height:none}.lab-heading .eyebrow{font-size:16px}.lab-description{font-size:18px}.lab-summary{font-size:16px}.ability-title{font-size:16px}.ability-detail{font-size:16px}.ability-action{font-size:16px}.lab-footer .text-button{font-size:16px}.page-footer{font-size:16px;gap:10px;padding:10px}.outcome-card{padding:17px 18px;max-width:90%}.outcome-card h2{font-size:23px}.outcome-card p{font-size:18px;margin-bottom:8px}.outcome-icon{font-size:26px;margin-bottom:3px}.outcome-card .button{font-size:16px;padding:10px 13px}.countdown{font-size:70px}.quiz-dialog,.help-dialog{padding:19px 16px;border-radius:17px}.quiz-dialog h3{font-size:19px}.answer{font-size:16px;min-height:57px}.subject-row{gap:8px}.subject-row select{font-size:16px;max-width:200px}.skill-step{font-size:16px}.question-visual.passage{font-size:16px}.question-visual{font-size:41px;padding:12px}.quiz-dialog h2{font-size:25px}.help-dialog ol{font-size:16px}.game-shell:fullscreen .game-frame{display:block;height:auto}.game-shell:fullscreen .canvas-wrap{aspect-ratio:1080/600;min-height:230px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}dialog::backdrop{backdrop-filter:none}}
canvas{object-fit:contain}.comparison-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 15px;background:#ecf0dc;border-top:1px solid #dde4ca;font-size:16px;line-height:1.5;color:#7a896a}.comparison-row b{color:#507342}.comparison-row .text-button{font-size:16px;white-space:nowrap}.leaders-list{list-style:none;padding:0!important}.leaders-list li{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px;border-bottom:1px solid #e0e7cd;font-size:16px!important;margin:0!important}.leaders-list .you{background:#eaf0d7;border-radius:10px}.leaders-list b{color:#507342}.quiz-dialog .answers[hidden]{display:none!important}@media(max-width:760px){.comparison-row{flex-wrap:wrap;padding:7px 10px;font-size:16px}.comparison-row .text-button{font-size:16px}.comparison-row span:nth-child(2){margin-left:auto}}
.upgrade-dialog{background:#fffbee;color:var(--ink);border:1px solid #d2ddc0;border-radius:22px;box-shadow:0 30px 120px #1e3a3255;padding:24px;width:740px;max-width:calc(100% - 24px);max-height:90dvh;overflow:auto}.upgrade-dialog::backdrop{background:#203d34a8;backdrop-filter:blur(4px)}.upgrade-dialog h2{font-size:27px;letter-spacing:-.7px;margin:12px 0 8px}.upgrade-dialog>p{font-size:18px;color:#7b896d;line-height:1.6;margin:0 0 18px}.upgrade-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.upgrade-choices .ability{margin:0;min-height:88px}.upgrade-choices .ability-title{font-size:16px}.upgrade-choices .ability-detail{font-size:16px}.upgrade-choices .ability-action{font-size:16px}.hud-sound{background:#436855;border-color:#75927a70;color:#eff4df;flex-shrink:0}.hud-sound:hover{background:#5a8165}@media(max-width:500px){.upgrade-dialog{padding:18px 14px}.upgrade-dialog h2{font-size:23px}.upgrade-choices{grid-template-columns:1fr}.upgrade-dialog .eyebrow{font-size:16px}.upgrade-choices .ability{min-height:84px}}@media(max-width:400px){.arena-hud{gap:10px}.arena-hud .stat>span{font-size:14px;letter-spacing:.8px}.hud-sound{min-width:31px;min-height:33px;font-size:16px}}@media(prefers-reduced-motion:reduce){.upgrade-dialog::backdrop{backdrop-filter:none}}

#bomb[aria-pressed=true]{background:#f5d99a;border-color:#b28a3c;color:#5f4a24;box-shadow:0 0 0 2px #d4ab5555}canvas.bomb-targeting{cursor:crosshair}

.lesson-listening{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.lesson-mode{font-size:16px;font-weight:800;color:#6b7c55;margin-right:auto}.lesson-listening .button{min-height:44px;padding:9px 15px;font-size:16px}.lesson-listening .icon-button{min-width:44px;min-height:44px}.picture-answers .answer{min-height:130px;padding:10px;display:grid;place-items:center}.answer .answer-picture{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;background:transparent;border:0;border-radius:0;margin:0;padding:0;min-height:90px;width:100%;font-size:58px}.answer-picture svg{width:100%;max-width:170px;height:92px}.quantity-group{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;justify-content:center;align-items:center;max-width:230px;font-size:29px;line-height:1.2}.quantity-group.dense{grid-template-columns:repeat(10,minmax(0,1fr));font-size:16px;gap:2px}.answer-picture .quantity-group{font-size:24px;gap:4px;max-width:200px}.answer-picture .quantity-group.dense{font-size:16px;gap:1px;width:100%}.quantity-item{display:block}.empty-group{min-width:85px;min-height:45px;border:2px dashed #a9b895;border-radius:12px;background:#f6f6e9}.visual-count{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}.visual-number{font-size:29px;font-weight:900;display:block;width:100%;line-height:1.1;color:#405e43}.visual-equation{display:flex;align-items:center;justify-content:center;gap:16px}.visual-equation .quantity-group{font-size:23px;max-width:230px}.equation-symbol{font-size:35px;font-weight:900}.visual-symbol{font-size:56px;font-weight:900;line-height:1.15}.visual-pattern,.visual-number-pattern{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.pattern-chip{font-size:31px;min-width:35px}.pattern-chip.missing{color:#8c8459}.visual-listen{font-size:58px;background:#edf1df}.coin-group{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;max-width:320px;margin:auto}.coin{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:3px double #7f8c8b;background:#d6dedb;color:#49605b;font-size:20px;font-weight:900}.coin.penny{background:#dcb591;border-color:#9f724b;color:#805832}.answer-picture .coin{width:26px;height:26px;font-size:16px;border-width:2px}.answer-picture .coin-group{gap:4px;max-width:190px}.visual-coins>.visual-number{margin-top:6px}.visual-change{display:flex;justify-content:center;align-items:center;gap:8px}.answer-picture.visual-change{font-size:39px}.change-arrow{font-size:29px;color:#7d8a69}.diagram-label{display:block;width:100%;font-size:16px}.visual-story-pair,.visual-monkey-pair{display:flex;justify-content:space-around;gap:15px}.monkey-portrait{display:inline-flex;align-items:center;justify-content:center;position:relative;max-width:180px;flex:1;min-width:0}.monkey-portrait svg{width:100%;height:125px}.story-item{font-size:37px;position:absolute;right:-2px;bottom:2px}.answer-picture .monkey-portrait{max-width:110px}.answer-picture .monkey-portrait svg{height:90px}.visual-monkey-pair .monkey-portrait{max-width:80px}.question-visual .chart{font-size:16px}.picture-answers .answer.correct{box-shadow:inset 0 0 0 2px #81a75f}.picture-answers .answer.correct::after{content:'✓';font-size:22px;font-weight:900;color:#416f3d}.picture-answers .answer.wrong::after{content:'↻';font-size:22px;color:#92663d}@media(max-width:500px){.picture-answers .answer{min-height:120px;padding:8px}.answer .answer-picture{font-size:45px;gap:5px;min-height:84px}.answer-picture svg{height:82px}.answer-picture .quantity-group{font-size:21px;gap:3px}.answer-picture .quantity-group.dense{font-size:16px;gap:1px}.visual-equation{gap:8px}.visual-equation .quantity-group{font-size:18px;gap:3px}.visual-equation .quantity-group.dense{font-size:16px;gap:1px}.lesson-listening{gap:7px}.lesson-mode{font-size:16px}.lesson-listening .button{font-size:16px;padding:8px 12px}.answer-picture.visual-change{font-size:31px}.change-arrow{font-size:22px}.visual-symbol{font-size:47px}.monkey-portrait svg{height:110px}.story-item{font-size:31px}}

.collection-button{background:#f4d77a;color:#395436;box-shadow:0 3px 0 #c5a247;min-height:44px}.collection-button:hover{background:#ffe393}.welcome-card .collection-button{width:100%;margin-top:9px}.wallet-link{white-space:nowrap;font-weight:800;text-decoration:none;padding:6px 8px;background:#e9edda;border-radius:8px;color:#456a45}.wallet-link b{color:#375b36}.arena-caption{flex-wrap:wrap}.arena-caption>span:first-child{flex:1;min-width:150px}.arena-overlay{align-items:start}.arena-overlay>section{margin-block:auto}.auto-button[aria-pressed=true]{background:#f5d99a;border:1px solid #b28a3c}.auto-button[aria-pressed=true] b{color:#5f4a24}

/* November 6: readable return goals, daily play and short demonstrations. */
.journey-dashboard{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 18px}
.journey-dashboard article{background:#fffdf1;border:1px solid #d2dcc3;border-radius:18px;padding:20px;min-width:0}
.journey-dashboard h2{font-size:24px;margin:8px 0}.journey-dashboard p{font-size:17px;line-height:1.5;margin:8px 0 12px}
.daily-card{background:#f5ecd1!important}.daily-card label{font-weight:800;margin-right:8px}
.daily-card input{font:inherit;min-height:44px;max-width:100%;padding:7px;border:1px solid #a9b995;border-radius:8px;color:#294c3e;background:#fffdf1}
.daily-card details{margin-top:15px}.daily-card summary{cursor:pointer;font-weight:700;min-height:32px}
.return-target{display:flex;gap:12px;align-items:center;margin:12px 0}.return-target>span{flex:0 0 70px;font-size:45px}.return-target svg{width:70px;height:80px}.return-target p{margin:4px 0;font-size:16px}
.mission-strip{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 18px;background:#f5dfa4;color:#294c3e}
.mission-strip strong,.mission-strip>span{flex:1 1 210px}.mission-strip .button{min-height:44px;padding:9px 12px}
.starter-section{padding:0 0 16px}.starter-section h3{margin:16px 0 6px;font-size:21px}.starter-section p{font-size:16px;line-height:1.4}
.starter-upgrades{display:grid;gap:10px}.starter-card{text-align:left;border:1px solid #b9caa6;border-radius:12px;padding:13px;background:#f2f0d5;display:grid;gap:7px;min-height:44px}
.starter-card b{font-size:19px}.starter-card span{font-size:16px;line-height:1.4}.starter-card small{font-size:16px;color:#345b3c;font-weight:800}.starter-card:hover{background:#e1edcd}
#all-upgrades>summary,.chooser-all>summary{font-weight:800;cursor:pointer;padding:12px 0;min-height:44px}
#chooser-starters{grid-template-columns:repeat(3,1fr);margin:18px 0}
.demo-dialog{width:min(760px,calc(100vw - 24px));max-height:92dvh;overflow:auto}.demo-dialog h2{margin:18px 0 10px}.demo-dialog p{font-size:19px;line-height:1.5}
#demo-arena{height:auto;aspect-ratio:1080/600;border-radius:14px;touch-action:auto}
.pace-choice{display:flex;gap:12px;align-items:center;padding:12px 0;min-height:48px;font-size:16px;line-height:1.5}
.pace-choice input{width:24px;height:24px;flex:none;accent-color:#285d47}
.narration-status{padding:12px;border-radius:10px;background:#fff0c6;font-size:17px;line-height:1.5}
body.acorn-arena-active{overscroll-behavior:contain}
.canvas-wrap{overscroll-behavior:contain}
#arena.arena-active,.acorn-arena-active .play-controls{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.game-shell:fullscreen{overflow:auto;overscroll-behavior:contain;background:#f1f2e5;padding:12px;width:100%;max-width:none}
.arena-hud{gap:14px;flex-wrap:wrap}.hud-button,.icon-button{min-height:44px;min-width:44px}
@media(max-width:800px){.journey-dashboard{grid-template-columns:1fr}.journey-dashboard article{padding:16px}.journey-dashboard .button{width:100%}.arena-hud{padding:12px;gap:12px}.arena-hud .mini-stat{display:none}.mission-strip{padding:12px}.mission-strip .button{flex:1}#chooser-starters{grid-template-columns:1fr}.demo-dialog .dialog-actions{display:flex;flex-wrap:wrap}.demo-dialog .dialog-actions button{flex:1 1 180px}}
@media(prefers-reduced-motion:reduce){.demo-dialog canvas{opacity:1}}

.welcome-daily{width:100%;margin-top:12px}.level-choice small{white-space:normal}.move-pad button{min-width:44px;min-height:44px}.journey-dashboard{margin-top:18px}

.canvas-wrap.showing-welcome{aspect-ratio:auto;height:auto;min-height:0}.canvas-wrap.showing-welcome>#arena{position:absolute;inset:0;width:100%;height:100%}.canvas-wrap.showing-welcome>#welcome{position:relative;inset:auto}.canvas-wrap.showing-welcome .welcome-card{margin-block:0}@media(max-width:500px){.welcome-card{padding:18px 12px}.welcome-card .eyebrow{font-size:13px;letter-spacing:1px}.welcome-card .kind-note{font-size:15px}.welcome-card p{font-size:17px;line-height:1.4}.level-choice{padding:9px 4px}.level-choice small{font-size:13px}.welcome-card .resume-note{font-size:16px!important}}

@media(max-width:500px){.level-choice b{font-size:clamp(12px,3.5vw,16px)!important;max-width:100%;line-height:1.3}}

/* Live weather, shared-screen play and camp rewards. */
.weather-hud:not([hidden]){display:flex;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;align-items:center;padding:9px 15px;border-bottom:1px solid #c4d7b4;background:#f2f7e8;color:#244535}
.weather-hud strong,.weather-hud small{display:block}
.weather-hud small{font-size:.85rem;line-height:1.35}
.defender-points{text-align:right}
.party-modes{display:flex;justify-content:center;gap:8px;margin:13px 0}
.party-modes button{flex:1;min-height:44px;border:1px solid #a7bd91;border-radius:10px;padding:6px;background:#f5f8eb;color:#244535;font:inherit;font-weight:750}
.party-modes button[aria-pressed=true]{background:#285a43;color:#fff;border-color:#285a43}
.party-modes button:focus-visible,.supply-panel button:focus-visible{outline:3px solid #a34d19;outline-offset:3px}
.welcome-card #party-roles{margin:0 0 11px;line-height:1.3;font-size:.92rem}
.camp-unlocked{color:#2d6342;font-weight:800}
.defender-camp-link a{color:#255845;font-weight:700}
.supply-panel{min-width:0;border-radius:19px;border:1px solid #b9d3a5;background:#f5f9ec;padding:15px;color:#254534}
.supply-heading{display:flex;justify-content:space-between;align-items:center;gap:6px}
.supply-heading h2{font-size:1.4rem;margin:4px 0}
.supply-intro,.supply-feedback{margin:8px 0;line-height:1.35}
.supply-question{font-weight:750;margin:8px 0}
.supply-visual:empty{display:none}
.supply-visual{min-height:0;padding:4px}
.supply-visual svg{max-height:78px}
.supply-answers:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.supply-answer{display:flex;align-items:center;gap:4px;justify-content:flex-start;text-align:left;font:inherit;font-weight:650;min-height:44px;border:1px solid #9fb992;border-radius:9px;background:#fff;color:#244535;padding:5px 6px;overflow-wrap:anywhere}
.supply-answer:disabled{opacity:.58}
.supply-answer kbd{font:inherit;font-size:.78rem;background:#e7eedf;border-radius:3px;padding:0 4px}
.supply-answer svg{width:100%;height:auto;max-height:52px}
.supply-answer>span{flex:1;min-width:0}
@media(min-width:901px){
  .coop-active .game-frame{grid-template-columns:minmax(0,1fr) minmax(255px,300px);align-items:start}
  .coop-active .battle-column{grid-row:span 2}
  .coop-active .learning-lab{grid-column:2}
}
@media(max-width:900px){
  .coop-active .game-frame{display:grid;grid-template-columns:minmax(0,1fr)}
  .supply-panel{margin-top:10px}
  .defender-points{text-align:left}
}
