/* 学習コース（かずおぼえ・たしざんの きほん）と 10フレーム。九九バトルの style.css とは べつの ファイル。
   色だけで 区別しない：● まる（みどり）＝はじめの かず、▲ さんかく（オレンジ）＝たす かず、■ しかく（あお）＝予備 */
.learn,.tenframe,.hands,.lt-token{--lg:#24614e;--la:#2f9a6f;--lb:#ef8a1f;--lc:#3d7bd9;--ink:#244f45;--tf:min(13vw,60px)}

/* ---------- STEPえらび ---------- */
.lm-lead{text-align:center;font-size:19px;font-weight:900;color:var(--ink);margin:4px 0 12px}
.learn .lm-continue{display:flex;flex-direction:column;align-items:center;gap:2px;max-width:520px;margin:0 auto 16px}
.lm-cont-main{font-size:24px}.lm-cont-sub{font-size:15px;opacity:.92;font-weight:bold}
.lm-steps{display:grid;gap:10px;max-width:520px;margin:0 auto}
.lm-step{display:grid;grid-template-columns:38px 36px 1fr auto;align-items:center;gap:8px;min-height:66px;border:2px solid #cfe0d7;background:#fff;border-radius:18px;padding:8px 12px;text-align:left;color:var(--ink);box-shadow:0 4px 0 #d8e5de}
.lm-step.now{border-color:var(--lg);box-shadow:0 4px 0 #163f33;background:#f2fbf6}
.lm-step.done .lm-state{color:#1d7a52}
.lm-step.locked,.lm-step.soon{opacity:.5;cursor:default;box-shadow:none}
.lm-num{width:36px;height:36px;border-radius:50%;background:#e5eeea;display:grid;place-items:center;font-weight:900;font-size:18px}
.lm-step.now .lm-num{background:var(--lg);color:#fff}.lm-step.done .lm-num{background:#d6f0e2}
.lm-icon{font-size:26px;text-align:center}.lm-name{font-size:18px;font-weight:900;line-height:1.3}.lm-state{font-size:13px;font-weight:900;white-space:nowrap}

/* ---------- 学習画面 ---------- */
.lp-head{display:flex;align-items:center;justify-content:center;gap:6px 10px;flex-wrap:wrap;margin-bottom:4px}
.lp-badge{background:var(--lg);color:#fff;border-radius:999px;padding:3px 12px;font-weight:900;font-size:14px}
.lp-title{font-size:18px;color:var(--ink)}
.lp-head .lp-dots{width:100%}.lp-dots .dot.now{box-shadow:0 0 0 3px #ffd34d}
.lp-prompt-row{display:flex;justify-content:center;align-items:center;gap:8px;min-height:48px}
.lp-prompt{margin:4px 0;font-size:22px;font-weight:900;text-align:center;color:var(--ink);line-height:1.45}
.lp-again{flex:none;border:0;background:#e5eeea;border-radius:50%;width:40px;height:40px;font-size:18px}
.lp-stage{display:flex;flex-direction:column;align-items:center;gap:14px;min-height:280px;padding:8px 0}
.lp-msg{text-align:center;font-size:19px;font-weight:900;min-height:1.5em;margin:6px 0;color:var(--ink)}
.lp-msg.good{color:#1d7a52}.lp-msg.bad{color:#b4561a}
.learn .lp-next{max-width:440px;margin:4px auto 0;font-size:22px}
.lp-view{display:flex;justify-content:center;align-items:center}
.lp-pair{gap:18px;flex-wrap:wrap}
.lp-frames{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;align-items:center}
.lp-note{width:100%;margin:2px 0;text-align:center;font-size:16px;font-weight:bold;color:#5d6f68;line-height:1.5}
.lp-big{font-size:72px;font-weight:900;line-height:1;color:var(--ink);min-height:72px}
.lp-big.good{color:#1d7a52;animation:lp-pop .4s ease-out}
.lp-hint{margin:0}
.learn .lp-go{max-width:320px;margin:0}

/* せんたくし（大きな 数字ボタン） */
.lp-choices{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.lp-choice{min-width:86px;height:86px;padding:0 8px;border:3px solid var(--lg);background:#fff;border-radius:22px;font-size:42px;font-weight:900;color:var(--ink);box-shadow:0 5px 0 #163f33}
.lp-choice:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #163f33}
.lp-choice.right{background:var(--la);border-color:var(--la);color:#fff;animation:lp-pop .4s ease-out}
.lp-choice:disabled{cursor:default}
.lp-choice:disabled:not(.right){opacity:.45;box-shadow:none}
.lp-choice.wrong{position:relative;border-color:#e3c3ac;color:#b9977f;animation:lp-shake .35s}
.lp-choice.wrong::after{content:'✕';position:absolute;right:6px;top:2px;font-size:18px;color:#b4561a}

/* しき・さくらんぼ */
.lp-lines{display:flex;flex-direction:column;align-items:center;gap:6px}
.lp-eq,.lp-eq-row{display:flex;align-items:center;justify-content:center;gap:8px;font-size:34px;font-weight:900;color:var(--ink);line-height:1.2}
.lp-eq-row{align-items:flex-start}
.lp-eq-big{font-size:44px}
.eq-op{font-size:.75em;color:#5d7a70}
.eq-box{border:3px solid #f0b44c;background:#fff6d8;border-radius:12px;padding:0 10px}
.eq-q{color:#b4561a}
.lp-eq-final{margin-top:4px;padding:4px 14px;border-radius:16px;background:#e9f7ef;animation:lp-pop .4s ease-out}
.eq-split{display:flex;flex-direction:column;align-items:center}
.cherry{display:flex;flex-direction:column;align-items:center;animation:lp-pop .4s ease-out}
.cherry-lines{position:relative;display:block;width:64px;height:20px}
.cherry-lines::before,.cherry-lines::after{content:'';position:absolute;left:calc(50% - 2px);top:0;width:4px;height:24px;background:#c9483c;border-radius:2px;transform-origin:top center}
.cherry-lines::before{transform:rotate(42deg)}.cherry-lines::after{transform:rotate(-42deg)}
.cherry-nums{display:flex;gap:20px}
.cherry-n{width:46px;height:46px;border-radius:50%;background:#ffe5e1;border:3px solid #d9564a;display:grid;place-items:center;font-size:26px}

/* ---------- 10フレーム（tenframe.js） ---------- */
.tenframe{position:relative;display:grid;grid-template-columns:repeat(5,var(--tf));grid-template-rows:repeat(2,var(--tf));gap:4px;row-gap:8px;padding:8px;background:var(--lg);border-radius:14px;box-shadow:0 4px 0 #163f33}
.tenframe.tf-sm{--tf:min(9vw,46px)}
.tf-cell{position:relative;display:grid;place-items:center;background:#fff;border-radius:8px;cursor:default}
.tf-cell.tf-empty{background:#eef4f1;box-shadow:inset 0 0 0 2px #c5d8cf}
.tf-mark{display:block;width:72%;height:72%}
.tf-a{background:var(--la);border-radius:50%}
.tf-b{background:var(--lb);clip-path:polygon(50% 5%,97% 93%,3% 93%)}
.tf-c{background:var(--lc);border-radius:4px;width:62%;height:62%}
.tf-pop .tf-mark{animation:tf-pop .32s ease-out}
.tf-hint,.tf-next{animation:tf-blink 1s ease-in-out infinite}
.tf-next{box-shadow:inset 0 0 0 4px #f0b44c}
.tf-num{position:absolute;font-size:calc(var(--tf) * .38);font-weight:900;color:#9a6a18;pointer-events:none}
.tf-num.on{color:#fff;text-shadow:0 1px 3px #000a}
.tf-badge{position:absolute;right:-12px;top:-16px;background:#ffd34d;color:#3b2a06;border-radius:999px;font-weight:900;font-size:20px;padding:2px 12px;box-shadow:0 3px 0 #b9811c;animation:lp-pop .4s ease-out}
.tenframe.tf-full{box-shadow:0 0 0 4px #ffd34d,0 4px 0 #163f33}
.lp-build .tf-cell,.lp-to-ten .tf-cell{cursor:pointer}

/* ---------- コマ・グループ ---------- */
.lt-token{position:relative;width:58px;height:58px;padding:0;border:2px solid #cfe0d7;background:#fff;border-radius:16px;display:grid;place-items:center;box-shadow:0 3px 0 #d8e5de;color:inherit}
.lt-token .tf-mark{width:68%;height:68%}
.lt-token:disabled{cursor:default}
.lt-token.counted{background:#eef8f2;border-color:var(--la)}
.lt-token.gone{background:transparent;border-style:dashed;box-shadow:none}.lt-token.gone .tf-mark{visibility:hidden}
.lt-count{position:absolute;top:-11px;right:-9px;min-width:28px;height:28px;padding:0 4px;border-radius:999px;background:var(--lg);color:#fff;font-size:16px;font-weight:900;display:grid;place-items:center}
.lt-field,.lt-tray,.lt-group{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.lt-field{max-width:420px}
.lt-tray{padding:10px;border-radius:18px;background:#fff7ec;border:2px dashed #f3c48a}
.lt-tray.lt-glow{animation:lt-glow 1.2s ease-in-out infinite}
.lt-tray-wrap{display:flex;align-items:center;gap:10px}
.lt-tray-n{font-size:32px;font-weight:900;color:#b4561a}
.lt-groups{display:flex;align-items:center;gap:10px;justify-content:center}
.lt-group-wrap{display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border-radius:18px;padding:10px;border:2px solid #e2eae6}
.lt-group{max-width:140px}
.lt-group .lt-token{width:52px;height:52px}
.lt-group-n{font-size:30px;font-weight:900;color:var(--ink)}
.lt-plus{font-size:36px;font-weight:900;color:var(--ink)}

/* ---------- て（かたて＝5、りょうて＝10） ---------- */
.hands{display:flex;gap:12px;align-items:flex-end}
.hand{display:flex;flex-direction:column;align-items:center;transition:opacity .2s}
.fingers{display:flex;gap:3px;align-items:flex-end;height:50px}
.hand-b .fingers{flex-direction:row-reverse}
.finger{width:12px;height:12px;border-radius:7px 7px 3px 3px;background:#dfe7e3;transition:height .2s,background .2s}
.finger.up.f0{height:26px}.finger.up.f1{height:42px}.finger.up.f2{height:48px}.finger.up.f3{height:43px}.finger.up.f4{height:33px}
.hand-a .finger.up{background:var(--la)}.hand-b .finger.up{background:var(--lb)}
.palm{width:72px;height:36px;margin-top:-2px;border-radius:12px 12px 24px 24px;background:#f3dcc4}
.hand-full .palm{box-shadow:0 0 0 3px #ffd34d}
.hand-off{opacity:.35}
.hand-cap{font-size:22px;font-weight:900;color:var(--ink)}
.hand-a .hand-cap::before{content:'● ';color:var(--la);font-size:.75em}
.hand-b .hand-cap::before{content:'▲ ';color:var(--lb);font-size:.75em}

/* ---------- 10を つくる（8+5）：さいごは 2つの へやを よこに ならべる（10 と 3）---------- */
.lp-make-ten .tenframe{--tf:min(11vw,54px)}
.lp-make-ten .lp-frames.two .tenframe{--tf:min(7.2vw,52px);gap:3px;row-gap:6px;padding:6px}
@media(max-width:700px){.lp-make-ten .lp-frames.two .tf-badge{font-size:14px;padding:0 8px;top:-13px;right:-6px}}
.lp-make-ten .lt-token{width:54px;height:54px}

/* ---------- STEP クリア ---------- */
.lp-clear-box{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:440px;text-align:center}
.lp-clear-star{font-size:80px;line-height:1;animation:lp-pop .5s ease-out}
.lp-clear-title{margin:0;font-size:30px;color:var(--ink)}
.lp-clear-text{margin:0;font-size:18px;font-weight:bold;line-height:1.6;color:#41605a}
.learn .lp-clear-box .primary{margin-top:8px}

@keyframes lp-pop{0%{transform:scale(.6)}70%{transform:scale(1.08)}100%{transform:scale(1)}}
@keyframes tf-pop{0%{transform:scale(.2)}70%{transform:scale(1.18)}100%{transform:scale(1)}}
@keyframes tf-blink{50%{background:#fff1c2}}
@keyframes lp-shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@keyframes lt-glow{50%{border-color:#ef8a1f;background:#ffeeda}}

/* タブレット（701px〜）：ゆびで さわる ものを 大きく */
@media(min-width:701px){
 .tenframe{--tf:min(9.5vw,78px)}
 .lp-make-ten .tenframe{--tf:min(9vw,66px)}.lp-make-ten .lp-frames.two .tenframe{--tf:min(6.6vw,56px)}
 .lp-prompt{font-size:26px}.lp-msg{font-size:22px}
 .lp-choice{min-width:104px;height:104px;font-size:50px;border-radius:26px}
 .lp-big{font-size:92px;min-height:92px}
 .lt-token,.lp-make-ten .lt-token{width:70px;height:70px;border-radius:18px}
 .lt-group .lt-token{width:62px;height:62px}.lt-group{max-width:170px}
 .lp-eq,.lp-eq-row{font-size:40px}.lp-eq-big{font-size:52px}
 .fingers{height:70px;gap:4px}.finger{width:16px}.finger.up.f0{height:36px}.finger.up.f1{height:58px}.finger.up.f2{height:66px}.finger.up.f3{height:60px}.finger.up.f4{height:46px}
 .palm{width:98px;height:48px}.hand-cap{font-size:28px}
}
@media(max-width:700px){
 .lp-prompt{font-size:20px}
 .lp-choice{min-width:78px;height:78px;font-size:38px}
 .lp-eq,.lp-eq-row{font-size:30px}.lp-eq-big{font-size:38px}
 .lp-big{font-size:60px;min-height:60px}
 .lm-name{font-size:17px}
 .lp-make-ten .lt-token{width:46px;height:46px}.lp-make-ten .lt-tray{gap:8px;padding:8px}.lp-make-ten .lp-eq,.lp-make-ten .lp-eq-row{font-size:28px}.lp-make-ten .lp-eq-big{font-size:34px}.lp-make-ten .lp-stage,.lp-make-ten{gap:10px}
 .lt-groups{gap:6px}.lt-group{max-width:120px}.lt-group .lt-token{width:46px;height:46px}.lt-plus{font-size:28px}
}
@media(prefers-reduced-motion:reduce){.learn *,.learn *::before,.learn *::after{animation:none!important;transition:none!important}}

/* ---------- 10の まとまり（2けた：18 ＝ 10の まとまり ＋ 8）---------- */
.tenframe.tf-mini,.lp-make-ten .tenframe.tf-mini,.lp-make-ten .lp-frames .tenframe.tf-bundle,.lp-make-ten .lp-frames.two .tenframe.tf-mini,.lp-make-ten .lp-frames.two .tenframe.tf-bundle{--tf:12px;gap:2px;row-gap:2px;padding:4px;border-radius:8px;box-shadow:0 2px 0 #163f33}
.tenframe.tf-mini .tf-cell,.tenframe.tf-bundle .tf-cell{border-radius:3px}
.tenframe.tf-mini .tf-badge,.lp-make-ten .lp-frames .tenframe.tf-bundle .tf-badge{position:static;grid-column:1/-1;grid-row:3;justify-self:center;font-size:15px;padding:0 8px;margin-top:3px;animation:none;box-shadow:0 2px 0 #b9811c}
.tenframe.tf-mini{grid-template-rows:repeat(2,var(--tf)) auto}
.lp-make-ten .lp-frames .tenframe.tf-bundle{grid-template-rows:repeat(2,var(--tf)) auto}
.lt-bundles{display:flex;gap:6px;align-items:flex-start}
.lp-place{gap:10px;align-items:flex-start}
@media(min-width:701px){.tenframe.tf-mini,.lp-make-ten .tenframe.tf-mini,.lp-make-ten .lp-frames .tenframe.tf-bundle,.lp-make-ten .lp-frames.two .tenframe.tf-mini,.lp-make-ten .lp-frames.two .tenframe.tf-bundle{--tf:16px}}

/* ---------- コース クリア（たしざんの きほん クリア！）---------- */
.lp-finish-title{margin:4px 0 0;font-size:26px;font-weight:900;color:#1d7a52;animation:lp-pop .5s ease-out}
.lp-finish .lp-clear-star{font-size:96px}

/* ---------- ます けいさん（masu-keisan.js）：うえ＝○、ひだり＝△（形でも わける）---------- */
.mk-lock{text-align:center;max-width:440px;margin:20px auto}.mk-lock-icon{font-size:64px}.mk-lock-text{font-size:19px;font-weight:900;color:var(--ink);line-height:1.6}
.mk-label{max-width:520px;margin:12px auto 6px;font-weight:900;color:#5d6f68;font-size:15px}
.mk-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:520px;margin:0 auto}
.mk-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:72px;border:2px solid #cfe0d7;background:#fff;border-radius:16px;padding:6px 4px;color:var(--ink);box-shadow:0 3px 0 #d8e5de}
.mk-choice.on{border-color:var(--lg);background:#e9f7ef;box-shadow:0 3px 0 #163f33}
.mk-choice.locked{opacity:.5;box-shadow:none;cursor:default}
.mk-choice-main{font-size:19px;font-weight:900;white-space:nowrap}.mk-choice-icon{font-size:22px;line-height:1}.mk-modes .mk-choice-main{font-size:16px}.mk-choice-sub{font-size:12px;font-weight:bold;color:#5d6f68;line-height:1.3}
.mk-note{max-width:520px;margin:6px auto 0;font-size:13px;color:#6b7f76;text-align:center}
.learn .mk-start{max-width:520px;margin:14px auto 0}
.mk-rec{text-align:center;font-size:14px;color:#5d6f68;margin:8px 0}
.learn .mk-howto{display:block;margin:4px auto}
.mk-head{margin-bottom:6px}.mk-left-n,.mk-score{font-size:14px;font-weight:900;color:#5d6f68}
.mk-grid{display:grid;gap:3px;width:100%;margin:0 auto 8px}
.mk-n3{max-width:300px}.mk-n5{max-width:380px}.mk-n9{max-width:560px;gap:2px}
.mk-grid>span{display:grid;place-items:center;aspect-ratio:1;border-radius:8px;font-weight:900;font-size:26px;line-height:1;min-width:0}
.mk-n5>span{font-size:22px}.mk-n9>span{font-size:15px;border-radius:5px}
.mk-corner{color:#5d6f68}
.mk-h .mk-shape{display:grid;place-items:center;width:88%;height:88%}
.mk-top .mk-shape{border-radius:50%;background:#fff;border:3px solid var(--la);color:#1d6f4f}
.mk-left .mk-shape{background:#ffe2c4;color:#8a4a10;clip-path:polygon(50% 0,100% 100%,0 100%);padding-top:28%}
.mk-n9 .mk-top .mk-shape{border-width:2px}
.mk-h.hl .mk-shape{transform:scale(1.12);animation:mk-blink 1s ease-in-out infinite}
.mk-top.hl .mk-shape{background:#c9f0dc}.mk-left.hl .mk-shape{background:#ffc98e}
.mk-cell{background:#fff;border:2px solid #dbe7e1;color:var(--ink)}
.mk-cell.cross{background:#fff6d8;border-color:#f3dc9a}
.mk-cell.now{background:#fff;border:3px solid #f0b44c;box-shadow:0 0 0 3px #ffd34d;animation:mk-blink 1s ease-in-out infinite;position:relative;z-index:1}
.mk-random .mk-cell.now{animation:mk-pop-up .35s ease-out,mk-blink 1s .35s ease-in-out infinite}
.mk-cell.filled{background:#e9f7ef;border-color:#bfe3cf;color:#1d6f4f}
.mk-cell.demo{background:#eef2ff;border-style:dashed}
.mk-cell.pop{animation:lp-pop .35s ease-out}
.mk-cell.oops{animation:lp-shake .35s}
.mk-q{display:flex;align-items:center;justify-content:center;gap:10px;font-size:40px;font-weight:900;color:var(--ink);margin:2px 0}
.mk-qa,.mk-qb{display:grid;place-items:center;width:62px;height:62px}
.mk-qa{border-radius:50%;border:4px solid var(--la);background:#fff}
.mk-qb{background:#ffe2c4;clip-path:polygon(50% 0,100% 100%,0 100%);padding-top:18px;width:70px;height:66px;color:#8a4a10}
.mk-ans{min-width:76px;height:62px;padding:0 6px;display:grid;place-items:center;border:3px dashed #b9cec5;border-radius:14px;background:#fff;color:#b4561a}
.mk-ans.typed{border-style:solid;border-color:var(--lg);color:var(--ink)}
.mk-say{width:36px;height:36px;font-size:16px}
.mk-msg{margin:2px 0;min-height:1.4em}
.mk-tools{display:flex;justify-content:center;min-height:0}
.mk-pad{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;max-width:520px;margin:6px auto 0}
.mk-key{height:54px;border:2px solid var(--lg);background:#fff;border-radius:14px;font-size:26px;font-weight:900;color:var(--ink);box-shadow:0 3px 0 #163f33;padding:0}
.mk-key:active{transform:translateY(2px);box-shadow:0 1px 0 #163f33}
.mk-key.del{font-size:15px;background:#f3f6f5}.mk-key.ok{font-size:14px;background:var(--lg);color:#fff}
.mk-hint{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;max-width:520px;margin:6px auto;padding:12px;background:#fffdf3;border:2px solid #f0d48a;border-radius:18px}
.mk-hint-q{margin:0;font-size:28px;font-weight:900;color:var(--ink)}
.learn .mk-hint-close{margin:0;max-width:240px;min-height:48px;padding:10px}
.mk-tut{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:520px;margin:6px auto;padding:12px;background:#f2fbf6;border:2px solid #bfe3cf;border-radius:18px}
.mk-tut-text{margin:0;font-size:20px;font-weight:900;text-align:center;line-height:1.5;color:var(--ink)}
.learn .mk-tut-next{margin:0;max-width:280px}
.mk-result{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;max-width:440px;margin:6px auto}
.mk-res-line{margin:0;font-size:19px;font-weight:900;color:var(--ink)}
.mk-res-new{margin:0;font-size:16px;font-weight:900;color:#1d7a52}
@keyframes mk-blink{50%{filter:brightness(1.08);box-shadow:0 0 0 5px #ffe48a}}
@keyframes mk-pop-up{0%{transform:scale(.5)}70%{transform:scale(1.2)}100%{transform:scale(1)}}
@media(max-width:700px){
 .mk-q{font-size:32px;gap:8px}.mk-qa,.mk-qb{width:52px;height:52px}.mk-qb{width:58px;height:54px;padding-top:15px}.mk-ans{min-width:64px;height:52px}
 .mk-n9>span{font-size:14px}.mk-n9 .mk-cell.now{border-width:2px;box-shadow:0 0 0 2px #ffd34d}
 .mk-key{height:52px;font-size:24px}.lp-make-ten .lp-mt-frames .lt-bundles{flex-direction:column}.mk-result .lp-clear-star{font-size:48px}.mk-result .lp-clear-title{font-size:24px}.mk-key.ok,.mk-key.del{font-size:12px;white-space:nowrap;letter-spacing:-.5px}
}
@media(min-width:701px){.mk-key{height:66px;font-size:30px}.mk-key.del,.mk-key.ok{font-size:17px}.mk-n3{max-width:340px}.mk-n5{max-width:440px}.mk-n9{max-width:600px}.mk-n9>span{font-size:22px}.mk-choice{min-height:86px}.mk-choice-main{font-size:22px}}
/* 2026-10-13 旧たし算・ひき算きほん（#learnPlayScreen.lp-steady）だけ：問題エリアの高さを画面の高さから決める（svh＝ブラウザのバーを考えた高さ）。
   メッセージは2行分を確保。中身が高いときは learn-core.js が エリアの中で縮める。 */
#learnPlayScreen.lp-steady .lp-stage{min-height:clamp(300px,calc(100vh - 450px),520px);min-height:clamp(300px,calc(100svh - 450px),520px);justify-content:flex-start}
#learnPlayScreen.lp-steady .lp-msg{min-height:2.9em}

/* First publication: keep-ten controls retain their real touch size; never zoom this activity. */
#learnPlayScreen.lp-steady .lp-subtract-keep-ten{gap:6px}
#learnPlayScreen .lp-subtract-keep-ten > h2{margin:0;font-size:26px}
#learnPlayScreen .lp-subtract-keep-ten > p{margin:2px 0}
#learnPlayScreen .lp-subtract-keep-ten .ns-bundles{margin:0;gap:8px}
#learnPlayScreen .lp-subtract-keep-ten .tenframe{--tf:24px}
#learnPlayScreen .lp-subtract-keep-ten > .lp-go{margin:auto 0 4px;min-height:48px;padding:8px 12px}
#learnPlayScreen .lp-subtract-keep-ten > .lp-go:disabled{display:none}
#learnPlayScreen .lp-subtract-keep-ten .lp-choices{margin-top:auto}
#learnPlayScreen .lp-subtract-keep-ten .lp-choice{min-height:48px}

/* From-ten: frame and hands side-by-side; controls retain size below both views. */
#learnPlayScreen.lp-steady .lp-subtract-frame:has(.hands){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;align-content:start;align-items:center}
#learnPlayScreen .lp-subtract-frame:has(.hands) > :not(.lp-view){grid-column:1/-1}
#learnPlayScreen .lp-subtract-frame:has(.hands) .tenframe{--tf:26px;padding:6px;gap:3px;row-gap:6px}
#learnPlayScreen .lp-subtract-frame:has(.hands) .hands{gap:8px}
#learnPlayScreen .lp-subtract-frame:has(.hands) .palm{width:68px;height:32px}
#learnPlayScreen .lp-subtract-frame:has(.hands) .hand-cap{font-size:22px}
#learnPlayScreen .lp-subtract-frame:has(.hands) > p{margin:2px 0}
#learnPlayScreen .lp-subtract-frame:has(.hands) > .lp-go{margin:4px 0;min-height:48px;padding:8px 12px}
