.kids-math-page{--quest-sky:linear-gradient(180deg,#dff5ff,#fff5d6);--quest-panel:rgba(255,251,235,0.92);--quest-border:#1f2937;--quest-shadow:0 10px 0 rgba(31,41,55,0.18);--quest-green:#22c55e;--quest-green-dark:#15803d;--quest-gold:#f59e0b;--quest-gold-soft:#fde68a;--quest-blue:#38bdf8;--quest-pink:#fb7185;--quest-red:#ef4444;display:flex;flex-direction:column;gap:1.5rem;min-height:100vh;padding:2.5rem 1.5rem 3rem;background:radial-gradient(circle at top left,rgba(255,255,255,.85),transparent 32%),linear-gradient(180deg,rgba(255,255,255,0) 70%,rgba(254,240,138,.55) 100%),var(--quest-sky)}.kids-math-actions,.kids-math-badge-grid,.kids-math-header,.kids-math-header-actions,.kids-math-journey-copy,.kids-math-levels,.kids-math-mini-stats,.kids-math-overview,.kids-math-problem-layout,.kids-math-reward-strip,.kids-math-summary-stats,.kids-math-track-checkpoints,.kids-math-track-header,.kids-math-type-grid,.math-block-groups{display:flex;gap:1rem}.kids-math-header,.kids-math-journey-copy,.kids-math-track-header{align-items:flex-start;justify-content:space-between}.kids-math-badge-grid,.kids-math-config-grid,.kids-math-header,.kids-math-header-actions,.kids-math-levels,.kids-math-mini-stats,.kids-math-practice-actions,.kids-math-reward-strip,.kids-math-reward-summary,.kids-math-type-grid{flex-wrap:wrap}.kids-math-kicker,.kids-math-panel-label{margin:0 0 .4rem;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:#475569}.kids-math-subtitle,.kids-math-support-copy{color:#475569}.kids-math-subtitle{max-width:48rem}.kids-math-answer-card,.kids-math-card,.kids-math-character-frame,.kids-math-practice,.kids-math-stat-bar,.kids-math-summary,.math-block-group{border:3px solid var(--quest-border);box-shadow:var(--quest-shadow)}.kids-math-badge,.kids-math-level-button,.kids-math-stat-bar,.kids-math-summary-stat,.kids-math-type-toggle{border-radius:18px}.kids-math-stat-bar{display:flex;align-items:center;gap:.85rem;padding:.7rem .9rem;background:rgba(255,255,255,.78)}.kids-math-badge span,.kids-math-level-button em,.kids-math-level-button small,.kids-math-problem-detail,.kids-math-stat-item,.kids-math-summary-stat span{display:block}.kids-math-badge span,.kids-math-level-button small,.kids-math-problem-detail,.kids-math-stat-item,.kids-math-summary-stat span{color:#475569}.kids-math-stat-item{display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap;font-weight:700}.kids-math-stat-item strong{color:#0f172a;font-size:1rem}.kids-math-overview{flex-wrap:wrap}.kids-math-answer-card,.kids-math-card,.kids-math-practice,.kids-math-summary{background:var(--quest-panel)}.kids-math-card,.kids-math-practice,.kids-math-summary{border-radius:26px;padding:1.2rem}.kids-math-card{flex:1 1 280px}.kids-math-card-compact{flex:1 1 240px;padding:1rem}.kids-math-card-hero{display:grid;gap:1rem;grid-template-columns:minmax(180px,240px) 1fr}.kids-math-scene{position:relative;min-height:220px;border-radius:22px;overflow:hidden;background:linear-gradient(180deg,#bfdbfe,#fef3c7)}.kids-math-cloud,.kids-math-ground,.kids-math-sun{position:absolute}.kids-math-sun{top:18px;right:18px;width:54px;height:54px;border-radius:16px;background:#fbbf24;box-shadow:0 0 0 6px rgba(251,191,36,.25)}.kids-math-cloud{width:72px;height:24px;border-radius:999px;background:rgba(255,255,255,.88)}.kids-math-cloud:after,.kids-math-cloud:before{content:"";position:absolute;background:inherit;border-radius:999px}.kids-math-cloud:before{width:28px;height:28px;left:8px;top:-8px}.kids-math-cloud:after{width:36px;height:36px;left:28px;top:-12px}.kids-math-cloud-left{top:32px;left:20px}.kids-math-cloud-right{top:64px;left:92px}.kids-math-ground{inset:auto 0 0;height:72px;background:linear-gradient(180deg,#4ade80,#22c55e)}.kids-math-ground:before{content:"";position:absolute;inset:0 0 auto;height:18px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.18) 0 16px,rgba(255,255,255,0) 16px 32px)}.kids-math-character-frame{position:absolute;left:50%;bottom:28px;display:grid;place-items:center;width:150px;height:150px;border-radius:20px;background:rgba(255,255,255,.92);transform:translateX(-50%)}.kids-math-character-image{image-rendering:pixelated}.kids-math-levels,.kids-math-type-grid{margin-top:.8rem}.kids-math-level-button,.kids-math-primary,.kids-math-secondary,.kids-math-type-toggle{border:3px solid var(--quest-border);font:inherit}.kids-math-level-button,.kids-math-type-toggle{padding:.75rem .9rem;background:#fff;color:#0f172a;text-align:left;cursor:pointer}.kids-math-level-button{flex:1 1 180px}.kids-math-level-button.selected,.kids-math-type-toggle.selected{background:#dcfce7;border-color:var(--quest-green-dark)}.kids-math-level-button:disabled{cursor:not-allowed;opacity:.55}.kids-math-level-button em{margin-top:.35rem;font-style:normal;color:var(--quest-pink)}.kids-math-practice{gap:1.15rem}.kids-math-journey-card{display:flex;flex-direction:column;gap:.85rem;padding:1rem 1rem .85rem;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(254,240,138,.48));border:3px solid var(--quest-border)}.kids-math-top-progress{font-size:1.15rem;line-height:1}.kids-math-track-hero{display:none}.kids-math-track-hero p{margin:.15rem 0 0}.kids-math-mini-stats span,.kids-math-top-progress{display:inline-flex;align-items:center;padding:.35rem .7rem;border-radius:999px;background:rgba(255,255,255,.7)}.kids-math-mini-stats{align-items:center;flex-wrap:nowrap}.kids-math-track{position:relative;min-height:136px;padding:1rem .5rem 2rem}.kids-math-track-compact{display:none}.kids-math-journey-action{align-self:flex-start;margin-top:.15rem}.kids-math-track-line{position:absolute;left:2%;right:5%;top:68px;height:16px;border:3px solid var(--quest-border);border-radius:999px;background:repeating-linear-gradient(90deg,#fbbf24 0 36px,#f59e0b 36px 72px)}.kids-math-track-goal{position:absolute;top:26px;right:0;padding:.35rem .6rem;border:3px solid var(--quest-border);border-radius:14px;background:#fff;font-weight:700}.kids-math-track-checkpoints{position:absolute;left:3%;right:8%;top:52px;justify-content:space-between}.kids-math-checkpoint{display:grid;place-items:center;width:32px;height:32px;border:3px solid var(--quest-border);border-radius:12px;background:#fff;font-size:.85rem;font-weight:700}.kids-math-checkpoint.reached{background:var(--quest-gold-soft)}.kids-math-runner{position:absolute;top:6px;transform:translateX(-50%);transition:left .35s ease}.kids-math-runner-image{image-rendering:pixelated}.kids-math-problem-layout{align-items:stretch;flex-wrap:wrap}.kids-math-answer-card,.kids-math-problem{flex:1 1 280px}.kids-math-problem{flex:1.65 1 420px}.kids-math-answer-card{flex:0.9 1 280px}.kids-math-problem{padding:1.1rem;border-radius:22px;background:rgba(255,255,255,.7);border:3px solid var(--quest-border)}.kids-math-problem h3{font-size:clamp(1.7rem,2.5vw,2.35rem);line-height:1.2;margin-bottom:.5rem}.kids-math-problem-header{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.75rem}.kids-math-answer-card{border-radius:22px;padding:1rem}.kids-math-answer{display:flex;flex-direction:column;gap:.75rem}.kids-math-answer input{width:min(100%,220px);padding:.75rem .9rem;border:3px solid var(--quest-border);border-radius:16px;background:#fff;color:#0f172a;font:inherit}.kids-math-primary{border-radius:16px;padding:.75rem 1rem;background:#22c55e;color:#082f1f;font-weight:700;cursor:pointer;box-shadow:0 6px 0 rgba(21,128,61,.35)}.kids-math-primary:hover{transform:translateY(-1px)}.kids-math-secondary{border-radius:16px;padding:.75rem 1rem;background:#fff;color:#0f172a;cursor:pointer}.kids-math-secondary:hover{transform:translateY(-1px)}.kids-math-config-panel{display:grid;gap:1rem;padding:1rem 1.1rem;border:3px solid var(--quest-border);border-radius:24px;background:rgba(255,255,255,.82)}.kids-math-config-header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.kids-math-config-header h2{margin:0;font-size:1.1rem}.kids-math-config-grid{display:flex;gap:1rem}.kids-math-config-group{display:flex;flex-direction:column;gap:.35rem;flex:1 1 280px}.kids-math-config-footer{display:flex;justify-content:flex-end}.kids-math-config-note{margin:0;color:#475569;font-size:.95rem}.kids-math-level-button.compact,.kids-math-type-toggle.compact{padding:.55rem .7rem;border-radius:14px}.kids-math-level-button.compact{flex:0 1 auto}.kids-math-level-button.compact small{display:none}.kids-math-reward-strip{margin:1rem 0}.kids-math-reward-star{display:grid;place-items:center;width:36px;height:36px;border:3px solid var(--quest-border);border-radius:12px;background:#fff;color:#94a3b8;font-size:1.1rem}.kids-math-reward-star.earned{background:var(--quest-gold-soft);color:#b45309}.kids-math-feedback{padding:.85rem .9rem;border-radius:18px;border:3px solid var(--quest-border)}.kids-math-feedback.correct{background:rgba(187,247,208,.8)}.kids-math-feedback.incorrect{background:rgba(254,202,202,.8)}.kids-math-feedback.neutral{background:rgba(224,242,254,.8)}.math-block-strip{display:flex;flex-direction:column;gap:.55rem;margin-top:.8rem}.math-block-groups{flex-wrap:wrap}.math-block-group{display:flex;flex-wrap:wrap;gap:.3rem;padding:.5rem;border-radius:16px;background:rgba(255,255,255,.8)}.math-block{width:18px;height:18px;border-radius:4px;background:linear-gradient(135deg,#fbbf24,#f97316);border:2px solid rgba(15,23,42,.18)}.kids-math-summary{min-height:220px;display:flex;flex-direction:column;justify-content:center;gap:1rem}.kids-math-badge,.kids-math-summary-stats-card{padding:.9rem 1rem;border:3px solid var(--quest-border);background:rgba(255,255,255,.82);border-radius:18px}.kids-math-badge strong{font-size:1.05rem}.kids-math-summary-stats-card{display:flex;gap:1rem;align-items:center;width:fit-content}.kids-math-summary-stats-card span{white-space:nowrap;font-size:1rem;font-weight:700}.kids-math-badge{flex:1 1 180px}.kids-math-footer{margin-top:-.2rem}code{font-size:.92em}@media (max-width:840px){.kids-math-card-hero{grid-template-columns:1fr}.kids-math-config-header,.kids-math-journey-copy,.kids-math-track-header{flex-direction:column}.kids-math-runner{top:10px}.kids-math-answer-card,.kids-math-problem{flex-basis:100%}}@media (max-width:640px){.kids-math-page{padding:1.25rem .9rem 2rem}.kids-math-badge-grid,.kids-math-config-footer,.kids-math-config-grid,.kids-math-header-actions,.kids-math-levels,.kids-math-mini-stats,.kids-math-practice-actions,.kids-math-type-grid{flex-direction:column}.kids-math-answer input,.kids-math-level-button,.kids-math-primary,.kids-math-secondary,.kids-math-type-toggle{width:100%}.kids-math-stat-bar{width:100%;justify-content:space-between;gap:.5rem}.kids-math-stat-item{font-size:.95rem}.kids-math-track{display:none}.kids-math-track-compact{display:flex;flex-direction:column;gap:.35rem;padding:.35rem 0 .2rem}.kids-math-track-compact-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.kids-math-track-compact-bar{position:relative;flex:1;height:14px;border:3px solid var(--quest-border);border-radius:999px;background:rgba(255,255,255,.8);overflow:visible}.kids-math-track-compact-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#fbbf24,#f59e0b)}.kids-math-track-compact-runner{position:absolute;top:50%;transform:translate(-50%,-50%)}.kids-math-problem{padding:1rem .9rem}.kids-math-problem h3{font-size:1.45rem}.kids-math-mini-stats{flex-direction:row;flex-wrap:wrap;gap:.5rem}.kids-math-journey-action{width:100%;align-self:stretch}.kids-math-config-panel{padding:.95rem}.kids-math-summary-stats-card{width:100%;justify-content:space-between;gap:.5rem;padding:.8rem .9rem}.kids-math-summary-stats-card span{font-size:.95rem}}