:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f2a44;background:linear-gradient(180deg,#fdf6ff,#eef8ff)}*{box-sizing:border-box}html,body,#root{margin:0;min-width:320px;min-height:100%}body{min-height:100vh;background:linear-gradient(180deg,#fdf6ff,#eef8ff)}button,input{font:inherit}button{border:none;border-radius:16px;padding:.85rem 1.1rem;cursor:pointer;background:#e8edff;color:#20304c;font-weight:700;transition:transform .15s ease,box-shadow .2s ease,opacity .2s ease}button:hover{transform:translateY(-1px);box-shadow:0 10px 20px #4e6bff26}button:active{transform:translateY(0)}button:disabled{opacity:.65;cursor:not-allowed;box-shadow:none;transform:none}button.primary{background:linear-gradient(135deg,#6d8bff,#7f5cff);color:#fff}button.danger{background:#ffe2e2;color:#9b2d2d}input{width:100%;border-radius:16px;border:2px solid #dbe5ff;padding:.95rem 1rem;background:#fff;outline:none}input:focus{border-color:#7f5cff;box-shadow:0 0 0 4px #7f5cff1f}.app-shell{min-height:100vh;padding:20px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.app-card{width:min(1120px,100%);background:#ffffffd9;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.6);border-radius:30px;padding:24px;box-shadow:0 20px 50px #4a5d9c26;position:relative}.hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.brand-row{display:flex;align-items:center;gap:16px;margin-bottom:8px}.brand-logo{width:88px;height:88px;object-fit:contain;border-radius:18px;background:#fff;padding:6px;box-shadow:0 10px 24px #375a8c1f}.next-level-callout{margin:18px auto 0;width:min(640px,100%);display:grid;gap:6px;background:linear-gradient(180deg,#ecfdf5,#dcfce7);border:1px solid #bbf7d0;border-radius:20px;padding:16px 18px;color:#166534}.next-level-callout span{color:#166534}.eyebrow{margin:0 0 6px;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:#6877ad;font-weight:800}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,4vw,3.2rem);margin-bottom:8px}.subtext{max-width:680px;color:#5b6c94}.hero-badges{display:grid;gap:10px;min-width:240px}.hero-badges span,.toggle-pill,.install-pill{background:#fff;padding:10px 14px;border-radius:999px;font-weight:700;color:#47557c}.toggle-pill,.install-pill{border:1px solid #edf1ff}.panel{background:#ffffffd1;border:1px solid #edf1ff;border-radius:24px;padding:22px}.modules-panel,.placeholder-panel,.review-panel,.result-panel{background:linear-gradient(180deg,#ffffffeb,#f8fbfff5)}.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.module-card{text-align:left;min-height:190px;display:flex;flex-direction:column;gap:14px;padding:18px;border:2px solid transparent;background:linear-gradient(180deg,#fff,#f5f8ff)}.module-card.live{background:linear-gradient(180deg,#eff8ff,#dff0ff)}.module-card.coming-soon{background:linear-gradient(180deg,#fbfbff,#f4f2ff)}.module-card:hover{border-color:#7f5cff}.module-emoji,.placeholder-emoji{font-size:2.3rem;line-height:1}.module-title-row{display:flex;justify-content:space-between;gap:10px;align-items:center}.module-info p{color:#5b6c94;margin-bottom:0}.module-tag{padding:6px 10px;border-radius:999px;font-size:.8rem}.module-tag.live{background:#dcfce7;color:#166534}.module-tag.coming-soon{background:#ede9fe;color:#5b21b6}.hub-highlight,.placeholder-card,.module-bar,.welcome-box,.summary-box,.result-panel{background:linear-gradient(180deg,#fff,#f8fbff);border-radius:22px;padding:20px;border:1px solid #eef3ff}.hub-highlight,.module-bar{margin-top:18px;display:flex;justify-content:space-between;gap:12px;align-items:center}.placeholder-card{text-align:center;max-width:560px;margin:0 auto}.module-shell{display:grid;gap:18px}.home-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.button-row{display:flex;gap:12px;flex-wrap:wrap}.button-row.center{justify-content:center}.stack-mobile{margin-top:8px}.top-gap{margin-top:16px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.operation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.operation-card{text-align:center;min-height:126px;background:linear-gradient(180deg,#fff,#f6f8ff);border:2px solid transparent;display:flex;flex-direction:column;justify-content:center;gap:10px}.operation-card.active,.operation-card:focus-visible,.level-card.active,.level-card:focus-visible{border-color:#7f5cff;outline:none}.operation-card.add{background:linear-gradient(180deg,#effaf0,#ddf7e1)}.operation-card.subtract{background:linear-gradient(180deg,#fff3f3,#ffe3e3)}.operation-card.multiply{background:linear-gradient(180deg,#f3f0ff,#e7defe)}.operation-card.divide{background:linear-gradient(180deg,#eef8ff,#ddf1ff)}.operation-emoji{font-size:2rem;line-height:1}.operation-title{font-size:1.05rem}.operation-subtitle,.level-top span,.small-note,.summary-box p,.module-bar,.review-details p,.hub-highlight p{color:#5b6c94}.operation-picker{display:flex;flex-wrap:wrap;gap:10px}.operation-tab{display:inline-flex;align-items:center;gap:8px;border:1px solid #dfe6ff;background:#fff}.operation-tab.active{background:linear-gradient(135deg,#6d8bff,#7f5cff);color:#fff}.selected-strip{margin:16px 0 18px}.selected-operation-badge{display:inline-flex;align-items:center;gap:14px;padding:14px 18px;border-radius:20px}.selected-operation-badge.add{background:#effaf0}.selected-operation-badge.subtract{background:#fff3f3}.selected-operation-badge.multiply{background:#f3f0ff}.selected-operation-badge.divide{background:#eef8ff}.big-icon{font-size:1.8rem}.levels-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.levels-grid.roomy{gap:16px}.level-card{text-align:left;background:linear-gradient(180deg,#fff,#f4f7ff);border:2px solid transparent;min-height:148px;display:flex;flex-direction:column;justify-content:space-between}.level-card.locked{opacity:.75}.level-chip{display:inline-flex;gap:8px;align-items:center;width:fit-content;font-size:.75rem;font-weight:800;padding:6px 10px;border-radius:999px;background:#edf1ff;color:#47557c;margin-bottom:10px}.level-top{display:grid;gap:6px}.level-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:8px}.stars{display:flex;gap:2px}.stars.large{justify-content:center;font-size:1.3rem}.star{opacity:.35}.star.on{opacity:1}.practice-panel,.result-panel{text-align:center}.stats-strip,.review-summary-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-bottom:14px}.stats-strip span,.review-summary-strip span{padding:10px 14px;background:#fff;border-radius:999px;border:1px solid #edf1ff}.progress-line{width:100%;height:14px;background:#edf1ff;border-radius:999px;overflow:hidden;margin:10px 0}.progress-fill{height:100%;background:linear-gradient(90deg,#68d5ff,#7f5cff);border-radius:999px;transition:width .3s ease}.question-card{margin:24px auto;width:min(520px,100%);background:linear-gradient(180deg,#fff8d6,#fff0a6);border-radius:28px;padding:26px;box-shadow:0 18px 30px #ffca2833}.question-emoji{font-size:2rem;margin-bottom:12px}.question-text{font-size:clamp(2rem,5vw,3.4rem);font-weight:800;color:#37446f}.vertical-problem{width:min(220px,100%);margin:0 auto;color:#37446f;font-variant-numeric:tabular-nums}.vertical-problem.small{width:120px}.problem-top,.problem-bottom{display:block;text-align:right;font-size:clamp(2.4rem,6vw,3.8rem);line-height:1.05;font-weight:800}.vertical-problem.small .problem-top,.vertical-problem.small .problem-bottom{font-size:1.5rem}.problem-bottom-row{display:grid;grid-template-columns:32px 1fr;align-items:end;column-gap:10px}.problem-operator{text-align:center;font-size:clamp(2rem,4vw,2.8rem);line-height:1;font-weight:800}.vertical-problem.small .problem-operator{font-size:1.25rem}.problem-line{margin-top:8px;border-top:4px solid #37446f;width:100%}.problem-prompt{margin-top:8px;font-size:1rem;font-weight:700;text-align:center}.answer-row{width:min(500px,100%);margin:0 auto;display:grid;grid-template-columns:1fr auto;gap:12px}.hint-row{margin-top:12px}.hint-box,.message{margin-top:16px;font-size:1.05rem;font-weight:700}.hint-box{color:#5b21b6}.message{color:#1d4ed8}.result-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:18px 0}.result-stat{background:#fff;border:1px solid #edf1ff;border-radius:18px;padding:14px}.result-stat span{display:block;color:#6877ad;margin-bottom:6px}.review-list{display:grid;gap:14px}.review-card{display:grid;grid-template-columns:auto minmax(100px,150px) 1fr auto;gap:16px;align-items:center;padding:16px;border-radius:18px;border:1px solid #edf1ff;background:#fff}.review-card.correct{background:#f0fdf4}.review-card.wrong{background:#fff7f7}.review-index{font-weight:800;color:#6877ad}.review-inline-math{font-weight:800;color:#37446f}.review-status.correct{color:#15803d}.review-status.wrong{color:#dc2626}.confetti-wrap{pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.confetti{position:absolute;top:-5%;font-size:1.4rem;animation:fall 1s ease-in forwards}.bounce-in{animation:bounceIn .35s ease}@keyframes bounceIn{0%{transform:scale(.9);opacity:0}60%{transform:scale(1.03);opacity:1}to{transform:scale(1)}}@keyframes fall{0%{transform:translateY(0) rotate(0);opacity:0}15%{opacity:1}to{transform:translateY(105vh) rotate(280deg);opacity:0}}@media (max-width: 960px){.operation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-grid{grid-template-columns:1fr}.review-card{grid-template-columns:1fr;text-align:center}}@media (max-width: 760px){.hero{display:grid;grid-template-columns:1fr}.hero-badges{min-width:auto}.answer-row,.hub-highlight,.module-bar,.panel-head{grid-template-columns:1fr;flex-direction:column;align-items:stretch}.stack-mobile{flex-direction:column}}@media (max-width: 560px){.brand-row{align-items:flex-start}.brand-logo{width:72px;height:72px}.app-shell{padding:12px}.app-card{padding:16px;border-radius:22px}.panel{padding:16px}.operation-grid,.levels-grid,.module-grid,.result-summary-grid{grid-template-columns:1fr}.button-row{flex-direction:column}.button-row button{width:100%}.stats-strip,.review-summary-strip,.operation-picker{justify-content:stretch}.operation-tab{width:100%;justify-content:center}}
