.math-nav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}.math-nav button{flex:1;padding:14px 18px;border:1px solid #ccd9bd;background:#fffdf4;border-radius:16px;color:#35583e;font:800 17px var(--font);cursor:pointer}.math-nav button[aria-pressed=true]{background:#166b54;color:white;border-color:#166b54}.math-skill-trail{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:22px}.math-skill-trail button{width:40px;height:40px;border:1px solid #c9d9bc;border-radius:50%;background:#f2f6e6;color:#2b563e;font:800 17px var(--font);cursor:pointer}.math-skill-trail button[aria-pressed=true]{background:#166b54;color:white}.math-skill-question{font-size:19px;line-height:1.5;color:#405d46;margin:12px 0 20px}.compare-baskets{display:grid;grid-template-columns:1fr 1fr;gap:16px}.compare-basket{background:#fff5df;border:2px solid #e5d3ac;border-radius:24px;padding:18px 12px}.compare-basket:nth-child(2){background:#eaf4f6;border-color:#bddade}.compare-basket h3{font-size:18px;margin:0 0 15px}.compare-frame{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;max-width:260px;margin:auto}.compare-frame span{display:grid;place-items:center;aspect-ratio:1;border:1px dashed #cabd98;border-radius:6px;font-size:clamp(18px,2.6vw,32px)}.basket-count{display:block;font-size:36px;margin:12px 0 0}.math-skill-options{display:flex;gap:12px;margin:24px 0 12px;justify-content:center}.math-skill-choice{flex:1;max-width:180px;min-height:80px;display:flex;align-items:center;justify-content:center;gap:8px;background:#fff;border:2px solid #c7d8bc;border-radius:19px;font:800 23px var(--font);color:#29533e;cursor:pointer}.math-skill-choice span{font-size:27px}.math-skill-choice.correct{background:#e5f6ba;border-color:#5e8c30}.math-skill-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.math-skill-actions .primary-button{width:auto;min-width:145px}.snack-story{display:flex;align-items:center;justify-content:center;gap:15px;font-size:18px;font-weight:800;margin-bottom:18px;color:#405d46}.snack-frame{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;max-width:420px;margin:auto;padding:18px;background:#fff5df;border:2px solid #e5d3ac;border-radius:24px}.snack-apple{position:relative;min-height:53px;background:#fffaf0;border:1px solid #d5c29c;border-radius:12px;font-size:36px;cursor:pointer;transition:opacity .2s}.snack-apple.shared{opacity:.4}.snack-apple.shared::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;font-size:36px;font-weight:900;color:#194332}.snack-count{font-size:16px;min-height:28px;color:#486149}.snack-equation{font-size:30px;font-weight:800;color:#28543e;margin:14px 0}.math-skills-content button:focus-visible,.math-nav button:focus-visible{outline:3px solid #bc7626;outline-offset:3px}.math-skills-content button:disabled{cursor:default}.math-skills-content .feedback{min-height:55px;line-height:1.5}@media(max-width:600px){.math-nav{gap:7px}.math-nav button{padding:12px 8px;font-size:14px;min-width:100px}.compare-baskets{gap:9px}.compare-basket{padding:14px 8px;border-radius:18px}.compare-basket h3{font-size:15px}.compare-frame{gap:2px}.compare-frame span{font-size:18px}.basket-count{font-size:29px}.math-skill-options{gap:8px}.math-skill-choice{font-size:18px;flex-direction:column;gap:0;min-height:80px}.math-skill-choice span{font-size:22px}.math-skill-trail{gap:5px}.math-skill-trail button{width:32px;height:32px;font-size:15px}.snack-frame{gap:6px;padding:12px}.snack-apple{font-size:28px;min-height:45px}.snack-story{font-size:16px;gap:8px}.math-skill-question{font-size:17px}}@media(prefers-reduced-motion:reduce){.snack-apple{transition:none}}
/* Fill the centered game column so answer targets stay large on every screen. */
.math-skill-scene{width:100%;max-width:620px}.math-skill-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:560px}.math-skill-choice{width:100%;max-width:none;padding:12px 8px}main .math-skill-choice{min-height:88px!important}.snack-apple{color:#284f3c}.snack-apple:disabled:not(.shared){opacity:1}.math-skills-content .snack-equation{font-size:30px}.math-skill-trail button{width:44px;border-radius:16px}@media(max-width:600px){.math-skill-trail{max-width:240px}.math-skill-trail button{width:44px}.math-skill-options{margin-top:18px}}
