@import "https://fonts.googleapis.com/css2?family=Schoolbell&display=swap";
:is(html:has(.math-app),body:has(.math-app)){overscroll-behavior:none;height:100%;overflow:hidden}.math-app{--math-card-outer-gap:12px;--math-footer-reserve:40px;text-align:right;min-height:100dvh;max-height:min(100dvh,100svh);padding-bottom:calc(var(--math-footer-reserve) + var(--math-card-outer-gap) + env(safe-area-inset-bottom,0px));box-sizing:border-box;overscroll-behavior:none;direction:rtl;background-color:#f0f0f0;flex-direction:column;align-items:center;width:100%;margin:0;font-family:Heebo,Assistant,Rubik,Arial Hebrew,sans-serif;display:flex;position:fixed;top:0;left:0;overflow:hidden}.math-app:has(.practice-section--text-input){-webkit-overflow-scrolling:touch;max-height:none;overflow:hidden auto}.math-app h1{text-align:center;color:#333;margin-bottom:0;font-size:clamp(24px,5vw,32px)}.math-app .math-app-title-row{width:100%;max-width:600px;margin:0 auto var(--math-card-outer-gap);padding:max(2px, env(safe-area-inset-top,0px)) 8px 0;box-sizing:border-box;direction:rtl;flex-shrink:0;grid-template-columns:44px 1fr 44px;align-items:center;display:grid}.math-app .math-app-title-corner{justify-content:center;align-items:center;min-width:44px;min-height:44px;display:flex}.math-app .math-app-title-corner--gear{grid-column:1}.math-app .math-app-title-row h1{text-align:center;grid-column:2;min-width:0;margin:0}.math-app .math-app-greeting-title{flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 10px;display:flex}.math-app .math-app-greeting-text{flex:0 auto}.math-app .title-xp-pill{color:#1b5e20;unicode-bidi:isolate;background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%);border:1px solid #81c784;border-radius:999px;flex-wrap:nowrap;align-items:baseline;gap:2px;padding:4px 12px;font-size:clamp(15px,3.8vw,18px);font-weight:800;line-height:1.2;display:inline-flex;box-shadow:0 1px 3px #2e7d3226}.math-app .title-xp-pill-number{font-variant-numeric:tabular-nums}.math-app .title-xp-pill-suffix{color:#2e7d32;font-size:.92em;font-weight:800}.math-app .title-xp-pill--animating{z-index:2600;transition:transform .3s;animation:.5s ease-in-out infinite alternate xp-pill-glow;position:relative;transform:scale(1.08)}@keyframes xp-pill-glow{0%{box-shadow:0 0 8px #ffc10780,0 0 16px #ff98004d}to{box-shadow:0 0 14px #ffc107b3,0 0 28px #ff980066}}.math-app .xp-countup-overlay{-webkit-backdrop-filter:blur(3px);z-index:2500;background:#000000b8;justify-content:center;align-items:center;animation:.3s xp-overlay-in;display:flex;position:fixed;inset:0}@keyframes xp-overlay-in{0%{opacity:0}to{opacity:1}}.math-app .xp-countup-number{color:#fff;background:linear-gradient(#fff 30%,#ffd54f 100%);-webkit-text-fill-color:transparent;filter:drop-shadow(0 0 24px #ffc10799)drop-shadow(0 0 48px #ff980059)drop-shadow(0 4px 8px #0006);font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none;-webkit-background-clip:text;background-clip:text;border-radius:24px;padding:20px 36px;font-size:clamp(56px,18vw,88px);font-weight:900;animation:.7s ease-in-out infinite alternate xp-number-pulse;position:relative}.math-app .xp-countup-number:before{content:"";z-index:-1;background:radial-gradient(#ffc10740 0%,#ff98001f 40%,#0000 70%);border-radius:32px;animation:1s ease-in-out infinite alternate xp-glow-breathe;position:absolute;inset:-30px}@keyframes xp-glow-breathe{0%{opacity:.7;transform:scale(.95)}to{opacity:1;transform:scale(1.05)}}.math-app .xp-countup-label{-webkit-text-fill-color:#ffd700e6;font-size:.45em;font-weight:800}@keyframes xp-number-pulse{0%{transform:scale(1)}to{transform:scale(1.03)}}.math-app h2{color:#444;margin-top:4px;margin-bottom:6px;font-size:clamp(18px,4vw,22px)}.math-app .config-section{transition:opacity .3s,transform .3s}.math-app .config-section.hidden{opacity:0;pointer-events:none;transform:translateY(-20px)}.math-app .math-app-practice-under-results{pointer-events:none;-webkit-user-select:none;user-select:none}.math-app .math-app-practice-under-results .questionCard{filter:blur(8px)}.math-app .practice-section:not(.hidden){opacity:1}.math-app .practice-section{box-sizing:border-box;opacity:0;flex-direction:column;justify-content:flex-start;align-items:center;width:100%;max-width:600px;min-height:min(85dvh,100dvh - 100px);margin:0 auto;padding-bottom:12px;transition:opacity .3s,transform .3s;display:flex;transform:translateY(20px)}.math-app .hidden{opacity:0;display:none}.math-app .hide{visibility:hidden}.math-app .practice-section .stats{margin-bottom:20px}.math-app .practice-section .questionCard{margin:0 auto}.math-app .selection,.math-app .learn-section{box-sizing:border-box;text-align:center;background-color:#fff;border-radius:10px;width:100%;max-width:600px;min-height:280px;margin:0 auto;padding:10px 16px;transition:opacity 3s,display 3s;box-shadow:0 2px 5px #0000001a}.math-app .selection{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex-direction:column;flex:0 auto;align-self:stretch;width:100%;min-height:0;max-height:min(100dvh - 118px,100svh - 118px);display:flex;position:relative;overflow:hidden auto}.math-app .learn-section{background-color:#1f2920;border:14px solid #0000;border-image:linear-gradient(90deg,#8b4513,sienna,peru) 1;flex-direction:column;min-height:0;padding:14px 0 0;display:flex;position:relative;overflow:hidden;box-shadow:0 4px 6px #00000080}.math-app .learn-section ::-webkit-scrollbar{width:6px}.math-app .learn-section ::-webkit-scrollbar-track{background:#1f2920}.math-app .learn-section ::-webkit-scrollbar-thumb{background:#4a6b4a;border-radius:3px}.math-app .selection.hidden,.math-app .learn-section.hidden{opacity:0;display:none}.math-app .checkbox-grid{color:#444;direction:ltr;grid-template-columns:repeat(5,1fr);justify-content:center;justify-items:center;gap:10px;max-width:280px;margin:8px auto;font-family:sans-serif;font-size:22px;font-weight:700;display:grid}.math-app .checkbox-grid label{cursor:pointer;-webkit-user-select:none;user-select:none;text-align:center;background:linear-gradient(120deg,#fdfbfb 0%,#ebedee 100%);border:1px solid #ccc;border-radius:8px;width:50px;height:50px;line-height:50px;transition:background .3s,color .3s,transform .3s;display:inline-block;position:relative;overflow:hidden;box-shadow:0 2px 4px #a5bf86}.math-app .checkbox-grid label:hover{background:#f7fdf1;border-color:#7fa453;transform:translateY(-3px);box-shadow:0 4px 8px #a5bf86}.math-app .checkbox-grid label input[type=checkbox]{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.math-app .checkbox-grid label:has(input[type=checkbox]:checked){color:#fff;background:linear-gradient(135deg,#b6eb77,#359ab6);border-color:#7fa453}.math-app .exit-button{color:#f55a4e;background-color:#fff;background-image:url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"14px\" viewBox=\"0 -960 960 960\" width=\"14px\" fill=\"%23f55a4e\"><path d=\"m289-199-89-90 190-191-190-191 89-91 191 191 191-191 89 91-190 191 190 191-89 90-191-191-191 191Z\"/></svg>");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:50%;justify-content:center;align-items:center;width:28px;min-width:0;height:28px;margin:0;padding:0;transition:all .3s;display:flex;border:2px solid #f55a4e!important}.math-app .exit-button:hover{color:#fff;background-color:#f55a4e;background-image:url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"20px\" viewBox=\"0 -960 960 960\" width=\"20px\" fill=\"%23FFFFFF\"><path d=\"m289-199-89-90 190-191-190-191 89-91 191 191 191-191 89 91-190 191 190 191-89 90-191-191-191 191Z\"/></svg>")}.math-app .questionCard{box-sizing:border-box;background-color:#fff;border-radius:10px;flex-direction:column;flex:auto;justify-content:center;align-items:center;width:100%;max-width:600px;min-height:min(52dvh,380px);margin:12px 16px 8px;padding:30px 24px 20px;transition:transform .3s;display:flex;position:relative;box-shadow:0 2px 5px #0000001a}.math-app .questionCard-header{box-sizing:border-box;justify-content:space-between;align-items:center;width:100%;padding:0 10px;display:flex;position:absolute;top:10px;left:0;right:0}.math-app .timer{color:#666;text-align:center;background-color:#f5f5f5;border:2px solid #666;border-radius:50%;justify-content:center;align-items:center;min-width:26px;height:26px;font-family:sans-serif;font-size:16px;font-weight:700;transition:background-color .3s;display:flex}.math-app .timer--wide{min-width:32px;height:32px;padding:0 1px;font-size:12px}.math-app .timer.warning-mild{color:#d32f2f;background-color:#ffcdd2;border-color:#d32f2f}.math-app .timer.warning-severe{color:#fff;background-color:#f44;border-color:#fff;animation:1s infinite math-pulse}.math-app .perfect-score{margin:14px;font-size:24px;font-weight:700;animation:2s infinite math-rainbow}.math-app .answer-mode{flex-direction:column;justify-content:center;align-items:center;width:100%;display:flex}.math-app .answer-options{grid-template-columns:repeat(2,1fr);gap:20px;margin-top:10px;padding-bottom:16px;display:grid}.math-app .answer-option{color:#444;cursor:pointer;-webkit-user-select:none;user-select:none;text-align:center;background:linear-gradient(120deg,#fdfbfb 0%,#ebedee 100%);border:1px solid #ccc;border-radius:8px;justify-content:center;align-items:center;width:100px;min-width:0;height:100px;margin:0;padding:0;font-family:sans-serif;font-size:clamp(28px,5vw,32px);transition:background .3s,color .3s,transform .3s;display:flex;position:relative;overflow:hidden;box-shadow:0 2px 4px #ddd}@media (hover:hover) and (pointer:fine){.math-app .answer-option:hover{color:#796538;background:linear-gradient(44.8deg,#ff8866ab -53.1%,#ffdd8847 49%);border-color:#ffa455;transform:translateY(-5px);box-shadow:0 4px 8px #ffb255}}.math-app .answer-option.correct{color:#fff;background:#4caf50;border-color:#3c8b40;box-shadow:0 4px 8px #357938}.math-app .answer-option.wrong{color:#fff;background:#f44;border-color:#8b0000;box-shadow:0 4px 8px #8b0000}.math-app .answer-option.faded{opacity:.12;pointer-events:none;transition:all .15s}.math-app .learn-container{direction:ltr;flex:1;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));justify-content:center;min-height:0;padding:6px 0;display:grid;overflow:hidden auto}.math-app .multiplication-table{background:0 0;padding:5px 0 0}.math-app .multiplication-row{color:#fff;justify-content:center;padding:6px 0;font-family:Schoolbell,cursive;font-size:20px;display:flex}.math-app .table-title{text-align:center;color:#fff;justify-content:center;align-items:center;font-family:Schoolbell,cursive;font-size:26px;font-weight:700;display:flex}.math-app .back-button{margin:20px auto;display:block}.math-app .action-buttons{justify-content:center;gap:20px;margin-top:12px;display:flex}.math-app .learning-action-buttons{background-color:#1f2920;flex-shrink:0;justify-content:center;gap:10px;margin-top:auto;padding:10px 0;display:flex}@keyframes math-rainbow{0%{color:#ff3e41}20%{color:#ff8a43}40%{color:#ffeb7f}60%{color:#00c9a7}80%{color:#007ea7}to{color:#ff3e41}}@keyframes math-pulse{0%{transform:scale(1)}50%{transform:scale(1.5)}to{transform:scale(1)}}.math-app .correct-animation{animation:.7s math-correctAnswer}.math-app .wrong-animation{animation:1.6s math-wrongAnswer}.math-app .wrong-animation-input{animation:.8s math-wrongAnswer}@keyframes math-correctAnswer{0%{background-color:#fff}to{background-color:#90ee90}}@keyframes math-wrongAnswer{0%{background-color:#fff}to{background-color:#ffb6b6}}.math-app .problem{color:#444;text-align:center;word-break:break-word;-webkit-user-select:none;user-select:none;direction:ltr;margin:10px 0;font-family:sans-serif;font-size:clamp(32px,12vw,48px)}.math-app input[type=number].answer-input,.math-app input.answer-input[type=number]{text-align:center;box-sizing:border-box;-moz-appearance:textfield;direction:ltr;border:2px solid #4caf50;border-radius:8px;width:80%;max-width:220px;height:auto;min-height:52px;margin-bottom:10px;padding:10px 14px;font-size:clamp(22px,6.5vw,44px);line-height:1.15}.math-app input.answer-input[type=number]::placeholder{opacity:.55;font-size:.92em}.math-app input[type=number]:focus{box-shadow:none;outline:none}.math-app input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}.math-app input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.math-app button{color:#fff;cursor:pointer;background-color:#4caf50;border:none;border-radius:50px;outline:none;justify-content:center;align-items:center;min-width:80px;margin:0 8px 4px;padding:7px 18px;font-size:clamp(14px,3.5vw,16px);font-weight:600;line-height:1.2;transition:background-color .3s;display:inline-flex}.math-app button:hover{background-color:#45a049}.math-app .end-game-buttons{flex:none;min-width:120px}.math-app .modal-buttons{box-sizing:border-box;direction:ltr;flex-flow:wrap;justify-content:center;align-items:stretch;gap:8px;width:100%;display:flex}.math-app .final-score .modal-buttons button{box-sizing:border-box;min-height:44px;margin:0;padding:11px 22px;font-size:clamp(15px,3.6vw,17px)}.math-app .retry-button{background-color:#ff9800;background-image:none}.math-app .retry-button:hover{background-color:#f57c00}.math-app .continue-button{background-color:#9800ff;background-image:none}.math-app .continue-button:hover{background-color:#7900cc}.math-app .sound-toggle{position:absolute;top:10px;right:10px}.math-app .sound-button{background-color:#f5f5f5;background-image:none;justify-content:center;align-items:center;width:45px;min-width:0;margin:0;padding:0;transition:background-color .3s;display:flex;border:1px solid #ddd!important}.math-app .sound-button:hover{background-color:#e0e0e0}.math-app .sound-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;width:24px;height:24px}.math-app .sound-icon.muted{background-image:url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"%235f6368\"><path d=\"M3.63 3.63c-.39.39-.39 1.02 0 1.41L7.29 8.7 7 9H4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h3l3.29 3.29c.63.63 1.71.18 1.71-.71v-4.17l4.18 4.18c-.49.37-1.02.68-1.6.91-.36.15-.58.53-.58.92 0 .72.73 1.18 1.39.91.8-.33 1.55-.77 2.22-1.31l1.34 1.34c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L5.05 3.63c-.39-.39-1.02-.39-1.42 0zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-3.83-2.4-7.11-5.78-8.4-.59-.23-1.22.23-1.22.86v.19c0 .38.25.71.61.85C17.18 6.54 19 9.06 19 12zm-8.71-6.29l-.17.17L12 7.76V6.41c0-.89-1.08-1.33-1.71-.7zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v1.79l2.48 2.48c.01-.08.02-.16.02-.24z\"/></svg>")}.math-app .sound-icon.unmuted{background-image:url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"%235f6368\"><path d=\"M3 10v4c0 .55.45 1 1 1h3l3.29 3.29c.63.63 1.71.18 1.71-.71V6.41c0-.89-1.08-1.34-1.71-.71L7 9H4c-.55 0-1 .45-1 1zm13.5 2c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 4.45v.2c0 .38.25.71.6.85C17.18 6.53 19 9.06 19 12s-1.82 5.47-4.4 6.5c-.36.14-.6.47-.6.85v.2c0 .63.63 1.07 1.21.85C18.6 19.11 21 15.84 21 12s-2.4-7.11-5.79-8.4c-.58-.23-1.21.22-1.21.85z\"/></svg>")}.math-app .stats{text-align:center;-webkit-user-select:none;user-select:none;background-color:#fff;border-radius:8px;width:320px;padding:15px;font-family:sans-serif;font-size:14px;box-shadow:0 2px 5px #0000001a}.math-app .progress-info{text-align:center;direction:ltr;background-color:#f5f5f5;border:1px solid #ddd;border-radius:5px;padding:10px 6px;font-size:1.2em}.math-app .xp-counter{color:#e6a817;white-space:nowrap;background:#fef9e7;border:1px solid #f0d060;border-radius:12px;padding:4px 10px;font-size:.85em;font-weight:600}.math-app .practice-xp-footer{color:#c49000;text-align:center;box-sizing:border-box;background:#fffbea;border:1px solid #f0d060;border-radius:14px;width:calc(100% - 32px);max-width:600px;margin-top:8px;padding:8px 16px;font-size:clamp(15px,3.8vw,17px);font-weight:700}.math-app .practice-xp-retry-hint{color:#666;font-size:.82em;font-weight:600}.math-app .score-containers{direction:ltr;justify-content:space-between;gap:18px;display:flex}.math-app .score-box{text-align:center;color:#fff;direction:ltr;border-radius:5px;width:41px;padding:10px 0;box-shadow:0 2px 4px #0000001a}.math-app .correct-box{color:#4caf50;background-color:#fff;border:2px solid #4caf50}.math-app .incorrect-box{color:#f44336;background-color:#fff;border:2px solid #f44336}.math-app .score-label{font-size:.9em}.math-app .score-value{font-size:1.2em;font-weight:700}.math-app .final-score{text-align:center;z-index:1000;box-sizing:border-box;direction:rtl;background-color:#fff;border-radius:10px;width:fit-content;min-width:280px;max-width:min(85vw,600px);max-height:70vh;padding:14px;position:fixed;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%);box-shadow:0 4px 6px #0000001a}.math-app .results-container{direction:ltr;flex-direction:row;justify-content:center;gap:12px;margin:15px 0;display:flex}.math-app .results-section{box-sizing:border-box;border-radius:5px;flex:1;width:100%;max-width:60%;padding:10px}.math-app .correct-answers{background-color:#f0f8f0}.math-app .wrong-answers{background-color:#fff0f0}.math-app .answer-item{border-radius:5px;margin:8px 0;padding:6px;font-family:sans-serif;font-size:16px}.math-app .correct-item{background-color:#e8ffe8}.math-app .wrong-item{background-color:#ffe8e8}.math-app .wrong-answer-text{color:red;margin-right:5px;text-decoration:line-through}.math-app .correct-solution{color:green;display:inline}.math-app .mode-selector{text-align:right;background-color:#f5f5f5;border-radius:5px;margin:15px 0;padding:10px;font-size:14px}.math-app .difficulty-selector{margin:8px 0}.math-app select{cursor:pointer;appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%234CAF50'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:10px;border:2px solid #ddd;border-radius:5px;padding:8px 30px 8px 12px;font-size:16px}.math-app select:focus{border:2px solid #4caf50;outline:none}.math-app select::-ms-expand{display:none}.math-app .mode-chips{flex-wrap:wrap;justify-content:center;gap:8px;margin:10px 0;display:flex}.math-app .mode-chip{color:#555;cursor:pointer;background:#fff;border:1.5px solid #ddd;border-radius:20px;min-width:0;margin:0;padding:6px 14px;font-size:14px;font-weight:500;transition:all .15s}.math-app .mode-chip:hover{background:#f5f5f5;border-color:#ccc}.math-app .mode-chip.active{color:#2e7d32;background:#e8f5e9;border-color:#4caf50;font-weight:600}.math-app .main-cta{color:#fff;cursor:pointer;background:#4caf50;border:none;border-radius:50px;width:100%;max-width:280px;margin:16px auto 8px;padding:14px 20px;font-size:20px;font-weight:700;transition:background-color .2s;display:block;box-shadow:0 3px 10px #4caf504d}.math-app .main-cta:hover{background:#43a047}.math-app .secondary-links{justify-content:center;gap:0;margin:4px 0 10px;display:flex}.math-app .secondary-links button{color:#666;cursor:pointer;background:0 0;border:none;min-width:0;margin:0;padding:6px 10px;font-size:14px;font-weight:500;transition:color .2s}.math-app .secondary-links button:hover{color:#333;background:0 0}.math-app .secondary-links button.done{color:#999}.math-app .secondary-links button+button:before{content:"·";color:#ccc;margin-left:6px}.math-app .checkbox-wrapper-16{justify-content:space-evenly;gap:4px;display:flex}.math-app .checkbox-wrapper-16 *,.math-app .checkbox-wrapper-16 :after,.math-app .checkbox-wrapper-16 :before{box-sizing:border-box}.math-app .checkbox-wrapper-16 .checkbox-input{clip:rect(0 0 0 0);clip-path:inset(100%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.math-app .checkbox-wrapper-16 .checkbox-input:checked+.checkbox-tile{color:#4caf50;border-color:#4caf50;box-shadow:0 5px 10px #0000001a}.math-app .checkbox-wrapper-16 .checkbox-input:checked+.checkbox-tile:before{opacity:1;background-color:#4caf50;border-color:#4caf50;transform:scale(1)}.math-app .checkbox-wrapper-16 .checkbox-input:checked+.checkbox-tile .checkbox-icon,.math-app .checkbox-wrapper-16 .checkbox-input:checked+.checkbox-tile .checkbox-label{color:#4caf50}.math-app .checkbox-wrapper-16 .checkbox-input:focus+.checkbox-tile{border-color:#4caf50}.math-app .checkbox-wrapper-16 .checkbox-input:focus+.checkbox-tile:before{opacity:1;transform:scale(1)}.math-app .checkbox-wrapper-16 .checkbox-tile{cursor:pointer;background-color:#fff;border:2px solid #ddd;border-radius:.5rem;flex-direction:column;justify-content:center;align-items:center;width:5.75rem;min-height:5.75rem;transition:all .15s;display:flex;position:relative;box-shadow:0 5px 10px #0000001a}.math-app .checkbox-wrapper-16 .checkbox-tile:before{content:"";opacity:0;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' fill='%23FFFFFF' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'%3E%3C/rect%3E%3Cpolyline points='204 72 104 168 52 120' fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='32'%3E%3C/polyline%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:12px;border:2px solid #a5bf86;border-radius:50%;width:1.1rem;height:1.1rem;transition:all .25s;display:block;position:absolute;top:.25rem;left:.25rem;transform:scale(0)}.math-app .checkbox-wrapper-16 .checkbox-tile:hover{border-color:#4caf50}.math-app .checkbox-wrapper-16 .checkbox-tile:hover:before{opacity:1;transform:scale(1)}.math-app .checkbox-wrapper-16 .checkbox-icon{color:#494949;transition:all .375s}.math-app .checkbox-wrapper-16 .checkbox-icon svg{width:2.75rem;height:2.75rem}.math-app .checkbox-wrapper-16 .checkbox-label{color:#333;text-align:center;transition:all .3s}.math-app .checkbox-label{margin-top:5px;font-size:14px}.math-app .checkbox-wrapper-16 .checkbox-input:checked+.checkbox-tile .checkbox-icon svg{fill:#4caf50;stroke:#4caf50}.math-app .message-modal{z-index:2000;background-color:#00000080;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;top:0;left:0}.math-app .message-content{text-align:center;background-color:#fff;border-radius:10px;width:300px;max-width:90%;padding:20px;animation:.5s cubic-bezier(.68,-.55,.265,1.55) math-messagePopInBounce;box-shadow:0 2px 10px #0000001a}.math-app .message-content button{min-width:80px;margin-top:15px;padding:8px 16px}.math-app .message-text{color:#333;margin-bottom:15px;font-size:16px}@keyframes math-messagePopIn{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes math-messagePopInBounce{0%{opacity:0;transform:scale(.95)}50%{opacity:.9;transform:scale(1.02)}75%{opacity:.95;transform:scale(.99)}to{opacity:1;transform:scale(1)}}.math-app .backdrop{z-index:999;background-color:#00000080;width:100%;height:100%;position:fixed;top:0;left:0}.math-app.math-app-modal-portal{pointer-events:none;z-index:3500;box-sizing:border-box;background:0 0;width:100%;height:100%;min-height:0;max-height:none;margin:0;padding:0;display:block;position:fixed;inset:0;overflow:visible}.math-app.math-app-modal-portal>*{pointer-events:auto}.math-app .footer{width:100%;padding:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));text-align:center;color:#666;z-index:50;box-sizing:border-box;background-color:#f5f5f5;border-top:1px solid #ddd;font-size:15px;position:fixed;bottom:0;left:0}.math-app .background-pattern{pointer-events:none;z-index:-1;opacity:.05;background-image:url(https://st2.depositphotos.com/1069290/6209/v/450/depositphotos_62093095-stock-illustration-abstract-background-with-numbers-vector.jpg);background-repeat:repeat;background-size:240px;width:100%;height:100%;position:fixed;top:0;left:0}.math-app .flip-container{perspective:1200px;flex-direction:column;flex:1;width:95%;max-width:600px;min-height:0;max-height:min(100dvh - 118px,100svh - 118px);margin:0 auto;display:flex;position:relative;overflow:visible}.math-app .flip-inner{width:100%;height:100%;min-height:0;max-height:100%;transform-style:preserve-3d;-webkit-transform-style:preserve-3d;flex:1;transition:transform .7s;position:relative;overflow:visible}.math-app .flip-container.flip-to-learn .flip-inner{transform:rotateY(180deg)}.math-app .flip-inner>.selection,.math-app .flip-inner>.learn-section{backface-visibility:hidden}.math-app .flip-inner>.selection{min-height:100%;max-height:none;position:absolute;inset:0;overflow:hidden auto;transform:rotateY(0)translateZ(1px)}.math-app .flip-inner>.learn-section{pointer-events:none;height:auto;max-height:100%;position:absolute;inset:0;transform:rotateY(180deg)translateZ(1px)}.math-app .flip-container.flip-to-learn .flip-inner>.learn-section{pointer-events:auto}.math-app .flip-container.flip-to-learn .flip-inner>.selection{pointer-events:none}.math-app .donate-button-container{text-align:center;color:#777;flex-shrink:0;margin-top:auto;padding:clamp(8px,1.5vh,16px) 10px 4px;font-size:12px}.math-app .result-text{-webkit-user-select:none;user-select:none;min-height:25px;margin-top:10px;font-size:24px;font-weight:700}.math-app .progress-bar-container{box-sizing:border-box;background-color:#e0e0e0;border-radius:4px;flex-direction:row;gap:0;width:320px;max-width:100%;height:8px;margin:6px auto 12px;display:flex;overflow:hidden}.math-app .progress-bar-segment{border-radius:0;flex:1 1 0;min-width:0;height:100%;transition:background-color .22s}.math-app .progress-bar-segment--correct{background-color:#7ac853}.math-app .progress-bar-segment--wrong{background-color:#f55}.math-app .progress-bar-segment--pending{background-color:#e0e0e0}.math-app .correction-text{color:#333;text-align:center;direction:ltr;background-color:#fff3e0;border:2px solid #ff9800;border-radius:8px;justify-content:center;align-items:center;min-height:48px;margin:8px 0;padding:8px 16px;font-family:sans-serif;font-size:clamp(24px,6vw,28px);font-weight:700;display:flex}.math-app .gamification-bar{direction:rtl;background:linear-gradient(135deg,#f7fdf1 0%,#e8f5e9 100%);border:1px solid #c8e6c9;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;padding:6px 12px;font-size:13px;display:flex}.math-app .xp-bar-with-levels{direction:rtl;flex-direction:row;flex:1;align-items:center;gap:8px;min-width:0;display:flex}.math-app .xp-bar-side-label{color:#1b5e20;text-align:center;white-space:nowrap;flex:none;font-size:12px;font-weight:800;line-height:1.15}.math-app .xp-bar-side-next{color:#2e7d32}.math-app .xp-progress-wrap{background-color:#dcedc8;border-radius:4px;flex:none;width:100%;min-width:40px;height:7px;overflow:hidden}.math-app .xp-progress-wrap--bar{direction:ltr;flex-direction:row;flex:1 1 0;justify-content:flex-end;width:auto;min-width:20px;max-width:100%;display:flex}.math-app .xp-progress-fill{background:linear-gradient(90deg,#66bb6a,#43a047);border-radius:4px;height:100%;transition:width .4s}.math-app .streak-display{color:#e65100;white-space:nowrap;background:#fff3e0;border-radius:6px;flex-shrink:0;padding:2px 8px;font-size:13px;font-weight:700}.math-app .settings-gear-btn{cursor:pointer;background:0 0;border:none;border-radius:50%;outline:none;flex-shrink:0;justify-content:center;align-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;transition:background-color .2s;display:flex}.math-app .settings-gear-btn:hover{background-color:#0000000f}.math-app .player-name-badge{color:#555;white-space:nowrap;text-overflow:ellipsis;max-width:70px;font-size:12px;font-weight:600;overflow:hidden}.gear-overlay{-webkit-backdrop-filter:blur(3px);z-index:2000;background:#0000008c;position:fixed;inset:0}.gear-dropdown{z-index:2001;direction:rtl;background:#fff;border-radius:12px;min-width:220px;max-width:min(320px,100vw - 24px);max-height:calc(100dvh - 24px);animation:.2s math-messagePopInBounce;position:fixed;left:auto;overflow:hidden auto;box-shadow:0 8px 30px #00000040}.gear-player-header{direction:rtl;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;padding:12px 12px 12px 10px;display:grid}.gear-dropdown .gear-profile-pencil-btn{box-sizing:border-box;aspect-ratio:1;text-align:center;white-space:normal;-webkit-tap-highlight-color:transparent;color:#444;cursor:pointer;background:#0000000f;border:none;border-radius:50%;flex-shrink:0;justify-content:center;justify-self:end;align-items:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;margin:0;padding:0;line-height:0;transition:background-color .2s,color .2s,transform .15s;display:flex}.gear-dropdown .gear-profile-pencil-btn:hover{color:#1b5e20;background:#2e7d3224;border-radius:50%}.gear-dropdown .gear-profile-pencil-btn:focus-visible{outline-offset:2px;border-radius:50%;outline:2px solid #2e7d32}.gear-dropdown .gear-profile-pencil-btn:active{transform:scale(.96)}.gear-dropdown .gear-profile-pencil-btn svg{flex-shrink:0;width:20px;height:20px;margin:0;display:block}.gear-player-emoji{justify-content:center;justify-self:start;align-items:center;width:44px;height:44px;font-size:26px;line-height:1;display:flex}.gear-player-emoji.gear-player-avatar-initial{text-align:center;font-size:18px;font-weight:800}.gear-player-name{color:#333;text-align:center;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:17px;font-weight:700;overflow:hidden}.gear-divider{background:#e0e0e0;height:1px;margin:0 12px}.gear-dropdown button{text-align:right;color:#333;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:0;width:100%;min-width:0;margin:0;padding:14px 20px;font-size:16px;font-weight:500;display:block}.gear-dropdown button:hover{background-color:#f5f5f5}.gear-dropdown button+button{border-top:1px solid #eee}.math-app .gear-submenu-inline{background:#f8f8f8;border-top:1px solid #eee}.math-app .gear-submenu-inline button{text-align:right;color:#555;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:0;width:100%;min-width:0;margin:0;padding:10px 32px 10px 20px;font-size:15px;display:block}.math-app .gear-submenu-inline button:hover{background-color:#f0f0f0}.math-app .gear-submenu-inline button+button{border-top:1px solid #eee}.math-app .gear-submenu-inline button.selected{color:#2e7d32;font-weight:600}.achievements-modal-overlay{-webkit-backdrop-filter:blur(3px);z-index:3000;-webkit-overflow-scrolling:touch;background:#0000008c;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0;overflow:hidden auto}.achievements-modal{box-sizing:border-box;direction:rtl;background:#fff;border-radius:16px;width:100%;max-width:min(520px,100vw - 24px);padding:16px 18px 20px;animation:.25s math-messagePopInBounce;position:relative;overflow:visible;box-shadow:0 8px 30px #00000040}.achievements-modal h3{text-align:center;color:#333;margin:0 0 16px;font-size:20px}.math-app button.achievements-modal-close{cursor:pointer;justify-content:center;align-items:center;width:36px;height:36px;transition:background-color .2s;display:flex;position:absolute;top:10px;left:auto;right:10px;box-shadow:none!important;color:#999!important;background:0 0!important;border:none!important;border-radius:50%!important;min-width:0!important;margin:0!important;padding:0!important}.math-app button.achievements-modal-close:hover{color:#555!important;background:#00000014!important}.profile-editor-overlay{-webkit-backdrop-filter:blur(3px);z-index:3000;background:#0000008c;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.profile-editor{background:#fff;border-radius:16px;width:100%;max-width:360px;max-height:85vh;padding:20px;animation:.25s math-messagePopInBounce;position:relative;overflow-y:auto;box-shadow:0 8px 30px #00000040}.profile-editor h3{text-align:center;color:#333;margin:0 0 12px;font-size:20px}.profile-editor-close{color:#999;cursor:pointer;background:0 0;border:none;border-radius:50%;min-width:0;margin:0;padding:4px 8px;font-size:18px;position:absolute;top:10px;left:10px}.profile-editor-close:hover{background:#0000000f}.profile-preview{flex-direction:column;align-items:center;gap:6px;margin-bottom:16px;display:flex}.profile-preview-avatar{border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;font-size:32px;display:flex;box-shadow:0 2px 8px #00000026}.profile-preview-avatar.profile-preview-avatar-emoji-flat{width:auto;min-width:56px;height:auto;min-height:56px;box-shadow:none;border-radius:0;padding:4px;font-size:52px;line-height:1;background:0 0!important}.profile-preview-avatar.profile-preview-avatar-initial{font-size:28px;font-weight:800}.profile-preview-name{color:#333;font-size:16px;font-weight:700}.profile-field{margin-bottom:14px}.profile-field label{color:#555;margin-bottom:6px;font-size:14px;font-weight:600;display:block}.profile-field-label,.profile-gender-fieldset>legend.profile-field-label{color:#555;margin:0 0 8px;padding:0;font-size:14px;font-weight:600;display:block}.profile-field select{background:#fff;border:1.5px solid #ddd;border-radius:8px;width:100%;padding:8px 12px;font-size:16px}.profile-gender-fieldset{border:none;min-width:0;margin:0;padding:0}.profile-gender-segmented{width:100%}.profile-gender-segmented-track{background:#e5e5ea;border-radius:10px;gap:3px;padding:3px;display:flex}.profile-gender-segmented-track label{color:#3a3a3c;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;border-radius:8px;flex:1;justify-content:center;align-items:center;min-height:44px;margin:0;padding:10px 14px;font-size:15px;font-weight:500;transition:background .2s,color .2s,box-shadow .2s,font-weight .15s;display:flex;position:relative}.profile-gender-segmented-track label.is-active{color:#000;background:#fff;font-weight:600;box-shadow:0 1px 2px #0000000f,0 2px 6px #00000014}.profile-gender-segmented-track label:not(.is-active):hover{color:#000}.profile-gender-segmented-track label:focus-within{outline-offset:2px;outline:2px solid #0a84ff}.profile-gender-segmented-track input[type=radio]{opacity:0;pointer-events:none;width:0;height:0;margin:0;position:absolute}.profile-gender-segment-text{pointer-events:none;line-height:1.2}.profile-emoji-trigger{cursor:pointer;text-align:right;background:#fafafa;border:1.5px solid #e0e0e0;border-radius:12px;align-items:center;gap:12px;width:100%;min-height:52px;margin:0;padding:10px 14px;transition:background .15s,border-color .15s;display:flex}.profile-emoji-trigger:hover,.profile-emoji-trigger:focus-visible{background:#f0f0f0;border-color:#bdbdbd;outline:none}.profile-emoji-trigger-preview{min-width:40px;min-height:44px;box-shadow:none;background:0 0;border-radius:0;justify-content:center;align-items:center;padding:0 6px;font-size:34px;line-height:1;display:flex}.profile-emoji-trigger-text{color:#333;flex:1;font-size:16px;font-weight:600}.profile-emoji-trigger-chevron{color:#888;font-size:12px}.profile-emoji-sheet-backdrop{z-index:3100;background:#0006;justify-content:center;align-items:flex-end;animation:.2s profile-sheet-fade-in;display:flex;position:fixed;inset:0}@keyframes profile-sheet-fade-in{0%{opacity:0}to{opacity:1}}.profile-emoji-sheet{width:100%;max-width:480px;max-height:min(70vh,520px);padding-bottom:env(safe-area-inset-bottom,12px);background:#fff;border-radius:16px 16px 0 0;flex-direction:column;animation:.22s profile-sheet-slide-up;display:flex;box-shadow:0 -4px 24px #0000002e}@keyframes profile-sheet-slide-up{0%{opacity:.9;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.profile-emoji-sheet-handle{background:#ddd;border-radius:2px;flex-shrink:0;width:36px;height:4px;margin:10px auto 6px}.profile-emoji-sheet-header{color:#333;border-bottom:1px solid #eee;flex-shrink:0;justify-content:space-between;align-items:center;padding:4px 12px 10px;font-size:17px;font-weight:700;display:flex}.profile-emoji-sheet-close{color:#888;cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;width:40px;min-width:0;height:40px;margin:0;padding:0;font-size:18px;display:flex}.profile-emoji-sheet-close:hover{color:#333;background:#f0f0f0}.profile-emoji-sheet-grid{-webkit-overflow-scrolling:touch;background:#fff;grid-template-columns:repeat(12,1fr);gap:6px 4px;padding:10px 12px 18px;display:grid;overflow-y:auto}@media (max-width:420px){.profile-emoji-sheet-grid{grid-template-columns:repeat(9,1fr);gap:5px 3px;padding:8px 8px 16px}}@media (max-width:340px){.profile-emoji-sheet-grid{grid-template-columns:repeat(8,1fr)}}.profile-emoji-sheet-cell{aspect-ratio:1;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:none;border-radius:0;justify-content:center;align-items:center;min-width:0;min-height:0;margin:0;padding:4px;transition:background .1s;display:flex}.profile-emoji-sheet-char{pointer-events:none;font-size:28px;line-height:1;transition:transform .12s;display:block}.profile-emoji-sheet-cell:hover,.profile-emoji-sheet-cell:focus-visible{background:#0000000a;outline:none}.profile-emoji-sheet-cell:active{background:#00000012}.profile-emoji-sheet-cell.is-selected{background:#00000012;border-radius:6px}.profile-emoji-sheet-cell.is-selected .profile-emoji-sheet-char{transform:scale(1.06)}.profile-color-row{background:#fafafa;border:1.5px solid #e0e0e0;border-radius:12px;align-items:center;gap:12px;padding:8px 12px;display:flex}.profile-color-icon-circle{border:2px solid #0000001a;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:52px;min-width:52px;height:52px;display:flex;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff59,0 2px 6px #0000001a}.profile-color-emoji-glyph{justify-content:center;align-items:center;width:100%;height:100%;font-size:28px;line-height:0;display:flex;transform:translateY(.1em)}.profile-color-initial-glyph{font-size:22px;font-weight:800;line-height:1}.profile-color-input-native{cursor:pointer;background:0 0;border:none;border-radius:8px;flex:1;min-width:0;height:44px;padding:0}.profile-color-input-native::-webkit-color-swatch-wrapper{padding:4px}.profile-color-input-native::-webkit-color-swatch{border:1px solid #ccc;border-radius:8px}.profile-color-hex{color:#555;text-align:left;min-width:72px;font-size:14px;font-weight:600}.profile-save-btn{color:#fff;cursor:pointer;background:#4caf50;border:none;border-radius:50px;width:100%;margin-top:16px;padding:12px 18px;font-size:clamp(14px,3.5vw,16px);font-weight:600;line-height:1.2;transition:background-color .3s;display:block}.profile-save-btn:hover{background:#43a047}.math-app button.profile-emoji-sheet-cell{width:100%;max-width:none;min-width:0!important;box-shadow:none!important;color:inherit!important;appearance:none!important;background:0 0!important;border:none!important;border-radius:0!important;margin:0!important;padding:4px!important;font-weight:400!important;line-height:1!important}.math-app button.profile-emoji-sheet-cell:hover,.math-app button.profile-emoji-sheet-cell:focus-visible{background:#0000000a!important}.math-app button.profile-emoji-sheet-cell:active,.math-app button.profile-emoji-sheet-cell.is-selected:active{background:#00000012!important}.math-app button.profile-emoji-sheet-cell.is-selected{background:#00000012!important;border-radius:6px!important}.math-app button.profile-emoji-sheet-close{width:40px;height:40px;min-width:0!important;box-shadow:none!important;color:#888!important;background:0 0!important;border:none!important;border-radius:50%!important;margin:0!important;padding:0!important}.math-app button.profile-emoji-sheet-close:hover{color:#333!important;background:#f0f0f0!important}.math-app button.profile-editor-close{min-width:0!important;box-shadow:none!important;color:#999!important;background:0 0!important;border:none!important;border-radius:50%!important;margin:0!important;padding:4px 8px!important}.math-app button.profile-editor-close:hover{background:#0000000f!important}.math-app button.profile-emoji-trigger{text-align:right;width:100%;color:#333!important;min-width:0!important;box-shadow:none!important;background:#fafafa!important;border:1.5px solid #e0e0e0!important;border-radius:12px!important;justify-content:flex-start!important;margin:0!important;font-weight:600!important}.math-app button.profile-emoji-trigger:hover,.math-app button.profile-emoji-trigger:focus-visible{background:#f0f0f0!important;border-color:#bdbdbd!important}.math-app button.profile-save-btn{color:#fff!important;width:100%!important;box-shadow:none!important;background:#4caf50!important;border:none!important;border-radius:50px!important;margin:16px 0 0!important;padding:12px 18px!important;font-size:clamp(14px,3.5vw,16px)!important;font-weight:600!important;line-height:1.2!important;transition:background-color .3s!important;display:block!important}.math-app button.profile-save-btn:hover{background:#43a047!important}@media (hover:none){.math-app button.profile-emoji-sheet-cell:active{background-color:#00000012!important}}.math-app .operation-tabs{border-bottom:2px solid #e0e0e0;flex-direction:row;justify-content:stretch;gap:0;width:100%;margin-bottom:4px;display:flex}.math-app .operation-tab{cursor:pointer;color:#666;min-width:0;box-shadow:none;background:0 0;border:none;border-bottom:3px solid #0000;border-radius:0;outline:none;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:1px;margin:0;padding:6px 4px;font-family:inherit;font-size:13px;font-weight:400;transition:color .2s,border-color .2s;display:flex}.math-app .operation-tab:hover{color:#333;background-color:#f5f5f5}.math-app .operation-tab.active{color:#2e7d32;background-color:#0000;border-bottom-color:#4caf50;font-weight:700}.math-app .op-tab-symbol{font-family:sans-serif;font-size:18px;line-height:1}.math-app .op-tab-label{font-size:12px;line-height:1}.math-app .level-picker{grid-template-columns:repeat(4,1fr);gap:8px;max-width:520px;margin:10px auto;padding:2px 4px;display:grid}.math-app .level-card{cursor:pointer;text-align:center;color:#444;background:linear-gradient(120deg,#fdfbfb 0%,#ebedee 100%);border:1.5px solid #ccc;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:72px;padding:8px 4px;font-family:inherit;transition:background .2s,border-color .2s,transform .2s,box-shadow .2s;display:flex;box-shadow:0 2px 4px #a5bf86}.math-app .level-card:hover{background:#f7fdf1;border-color:#7fa453;transform:translateY(-2px);box-shadow:0 4px 8px #a5bf86}.math-app .level-card.selected{color:#fff;background:linear-gradient(135deg,#b6eb77,#359ab6);border-color:#7fa453;box-shadow:0 4px 8px #4caf5059}.math-app .level-card-num{font-size:20px;font-weight:700;line-height:1}.math-app .level-card-name{text-align:center;font-size:14px;font-weight:600;line-height:1.2}.math-app .level-card-example{opacity:.85;direction:ltr;font-family:sans-serif;font-size:14px;line-height:1}.math-app .level-card.selected .level-card-name,.math-app .level-card.selected .level-card-example{opacity:1}.math-app .as-learn-container{box-sizing:border-box;direction:rtl;flex-direction:column;flex:1;align-items:center;width:100%;min-height:0;padding:10px 12px 16px;display:flex;overflow:hidden auto}.math-app .as-learn-title{color:#fff;text-align:center;margin-bottom:6px;font-family:Schoolbell,cursive;font-size:1.4rem}.math-app .as-direction-hint,.math-app .as-method-hint{color:#c8e6c9;text-align:center;margin-bottom:12px;font-size:.95rem;font-weight:600}.math-app .as-direction-arrow{margin-left:6px;font-size:1.2rem}.math-app .nl-examples-list{flex-direction:column;gap:18px;width:100%;max-width:480px;display:flex}.math-app .nl-example{width:100%}.math-app .nl-label{color:#fff;text-align:center;direction:ltr;margin-bottom:4px;font-family:Schoolbell,cursive;font-size:1.15rem}.math-app .nl-track-wrap{width:100%;height:52px;margin:0 auto;position:relative}.math-app .nl-track{background:#5d8a6a;border-radius:2px;height:3px;position:absolute;bottom:8px;left:0;right:0}.math-app .nl-tick{flex-direction:column;align-items:center;display:flex;position:absolute;bottom:0;transform:translate(-50%)}.math-app .nl-tick-mark{background:#8bc34a;width:2px;height:8px}.math-app .nl-tick-num{color:#b0bec5;margin-top:1px;font-family:Schoolbell,cursive;font-size:.65rem;line-height:1}.math-app .nl-tick.nl-tick-from .nl-tick-mark{background:#ffd54f;width:3px;height:12px}.math-app .nl-tick.nl-tick-from .nl-tick-num{color:#ffd54f;font-size:.75rem;font-weight:700}.math-app .nl-tick.nl-tick-to .nl-tick-mark{background:#81c784;width:3px;height:12px}.math-app .nl-tick.nl-tick-to .nl-tick-num{color:#81c784;font-size:.75rem;font-weight:700}.math-app .nl-arc{box-sizing:border-box;pointer-events:none;border-top:3px solid #0000;border-left:none;border-right:none;border-top-left-radius:50%;border-top-right-radius:50%;height:22px;position:absolute;bottom:18px}.math-app .nl-arc-add{border-top-color:#66bb6a;border-left:3px solid #66bb6a;border-right:3px solid #66bb6a}.math-app .nl-arc-sub{border-top-color:#ef9a9a;border-left:3px solid #ef9a9a;border-right:3px solid #ef9a9a}.math-app .nl-arrow{color:#a5d6a7;pointer-events:none;font-size:.9rem;font-weight:700;position:absolute;bottom:36px;transform:translate(-50%)}.math-app .nl-arrow.nl-arrow-left{color:#ef9a9a}.math-app .col-examples-list{direction:ltr;flex-flow:wrap;justify-content:center;gap:14px;width:100%;max-width:480px;display:flex}.math-app .col-example{background:#ffffff12;border:1px solid #ffffff26;border-radius:10px;min-width:120px;padding:10px 14px}.math-app .col-table{direction:ltr;flex-direction:column;align-items:stretch;gap:0;display:inline-flex}.math-app .col-row{flex-direction:row;align-items:center;display:flex;position:relative}.math-app .col-header-row{margin-bottom:2px}.math-app .col-carry-row{min-height:18px}.math-app .col-cell{text-align:center;color:#fff;width:32px;font-family:Schoolbell,cursive;font-size:1.3rem;line-height:1.4}.math-app .col-header{color:#90a4ae;text-align:center;letter-spacing:0;direction:rtl;font-family:Heebo,sans-serif;font-size:.6rem;line-height:1.2}.math-app .col-op-symbol{color:#ffd54f;text-align:center;flex-shrink:0;width:24px;font-family:Schoolbell,cursive;font-size:1.3rem}.math-app .col-carry-cell{justify-content:center;align-items:center;height:18px;display:flex}.math-app .col-num{color:#e3f2fd}.math-app .col-num2-row .col-op-symbol,.math-app .col-cell-carry{color:#ffd54f}.math-app .col-cell-borrow{color:#ef9a9a}.math-app .col-empty{opacity:.3;font-size:.8rem}.math-app .col-divider{background:#fff6;border-radius:1px;height:2px;margin:3px 0}.math-app .col-result-row{margin-top:1px}.math-app .col-result-cell{color:#a5d6a7;font-family:Schoolbell,cursive;font-size:1.4rem;font-weight:700}.math-app .carry-indicator{color:#ffd54f;background:#ffd54f26;border-radius:4px;padding:1px 3px;font-family:Schoolbell,cursive;font-size:.75rem;line-height:1}.math-app .borrow-indicator{color:#ef9a9a;background:#ef9a9a26;border-radius:4px;padding:1px 3px;font-family:Schoolbell,cursive;font-size:.75rem;line-height:1}@media screen and (max-width:480px){.math-app .as-learn-container{padding:8px 6px 12px}.math-app .nl-examples-list{gap:14px}.math-app .nl-label{font-size:1rem}.math-app .col-examples-list{gap:10px}.math-app .col-cell{width:26px;font-size:1.1rem}.math-app .col-result-cell{font-size:1.2rem}.math-app .col-header{font-size:.55rem}}@keyframes math-shake{0%,to{transform:translate(0)}25%{transform:translate(-4px)}75%{transform:translate(4px)}}.math-app .qc-perspective{perspective:1200px;flex:auto;justify-content:center;margin:12px 16px 8px;display:flex;overflow:visible}.math-app .qc-perspective--no-flip{perspective:none}.math-app .qc-perspective>.questionCard{transform-style:preserve-3d;-webkit-transform-style:preserve-3d;margin:0;transition:transform .7s;overflow:visible}.math-app .qc-perspective>.questionCard.questionCard--flipped{transform:rotateY(180deg)}.math-app .qc-face{backface-visibility:hidden}.math-app .qc-face--front{flex-direction:column;flex:1;align-items:center;width:100%;display:flex;transform:translateZ(1px)}.math-app .qc-perspective>.questionCard{justify-content:flex-start;width:100%;max-width:600px;padding:0}.math-app .qc-face--front>.questionCard-header{box-sizing:border-box;flex-shrink:0;width:100%;padding:10px 10px 0;position:static}.math-app .qc-face--front>.problem{margin-top:auto;padding:0 24px}.math-app .qc-face--front>.answer-mode{margin-bottom:auto;padding:0 24px}.math-app .qc-face--front>.correction-text{padding:0 24px}.math-app .qc-face--back{color:#fff;-webkit-overflow-scrolling:touch;pointer-events:none;box-sizing:border-box;background:#1f2920;border:8px solid;border-image:linear-gradient(135deg,#8b4513,sienna,peru,sienna,#8b4513) 10;border-radius:10px;flex-direction:column;justify-content:flex-start;align-items:center;gap:8px;padding:14px 10px;font-family:Schoolbell,cursive;display:flex;position:absolute;inset:0;overflow-y:auto;transform:rotateY(180deg)translateZ(1px)}.math-app .questionCard.questionCard--flipped>.qc-face--back{pointer-events:auto}.math-app .questionCard.questionCard--flipped>.qc-face--front{pointer-events:none}.math-app .help-button{cursor:pointer;background:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;min-width:28px;max-width:28px;height:28px;margin:0;padding:0;transition:all .3s;display:flex;border:2px solid #d97706!important}.math-app .help-button:hover{background:#d97706}.math-app .help-button:hover svg path[fill]{fill:#fff}.math-app .help-button:hover svg path,.math-app .help-button:hover svg line{stroke:#fff}.math-app .help-button:disabled{opacity:.35;cursor:default;background:#fff}.math-app .help-button svg{width:16px;height:16px;display:block}.math-app .qc-xp-pill{color:#7fa453;white-space:nowrap;background:#f0f7e8;border:1px solid #d4e8c0;border-radius:10px;padding:2px 8px;font-family:Heebo,sans-serif;font-size:11px;font-weight:700}.math-app .help-back-btn{color:#e2e8f0;cursor:pointer;background:#ffffff26;border:1px solid #ffffff40;border-radius:10px;flex-shrink:0;min-width:0;margin:0;padding:6px 16px;font-family:Heebo,sans-serif;font-size:.85rem}.math-app .help-back-btn:hover{background:#ffffff40}.math-app .help-xp-hint{color:#f6ad55;font-family:Heebo,sans-serif;font-size:.85rem;font-weight:700}.math-app .help-xp-struck{opacity:.55;font-size:.8rem;text-decoration:line-through}.math-app .help-done-msg{color:#68d391;text-align:center;font-family:Heebo,sans-serif;font-size:.9rem;font-weight:700}.math-app .digit-boxes{direction:ltr;flex-direction:row-reverse;justify-content:center;gap:6px;margin-top:6px;display:flex}.math-app .digit-box{text-align:center;color:#fff;appearance:textfield;background:#ffffff1f;border:2px solid #90a4ae;border-radius:8px;outline:none;width:44px;height:52px;font-family:Schoolbell,cursive;font-size:1.6rem;transition:border-color .2s,background .2s}.math-app .digit-box::-webkit-inner-spin-button{display:none}.math-app .digit-box::-webkit-outer-spin-button{display:none}.math-app .digit-box:focus{background:#29b6f626;border-color:#29b6f6}.math-app .digit-box--correct{color:#a5d6a7;background:#66bb6a40;border-color:#66bb6a}.math-app .digit-box--wrong{color:#ef9a9a;background:#ef535033;border-color:#ef5350;animation:.3s math-shake}.math-app .help-view-column,.math-app .help-view-dots{flex-direction:column;align-items:center;gap:10px;display:flex}.math-app .help-view-dots-label{color:#e2e8f0;font-family:Heebo,sans-serif;font-size:1rem;font-weight:600}.math-app .dot-grid{background:#ffffff0f;border-radius:10px;gap:4px;max-width:260px;padding:8px;display:grid}.math-app .dot-grid-dot{background:#63b3ed;border-radius:50%;width:14px;height:14px;display:block}.math-app .help-view-dots-counts{color:#a0aec0;gap:6px;font-family:Heebo,sans-serif;font-size:.8rem;display:flex}.math-app .help-view-easy{flex-direction:column;align-items:center;gap:10px;display:flex}.math-app .ten-frames{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.math-app .ten-frame{background:#ffffff14;border:2px solid #ffffff26;border-radius:10px;grid-template-rows:repeat(2,1fr);grid-template-columns:repeat(5,1fr);gap:4px;padding:8px;display:grid}.math-app .ten-frame-cell{border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:.85rem;font-weight:700;transition:transform .15s;display:flex}.math-app .ten-frame-cell--empty{background:#ffffff0f;border:1px dashed #ffffff26}.math-app .ten-frame-cell--first{background:#63b3ed}.math-app .ten-frame-cell--second{background:#68d391}.math-app .ten-frame-cell--remaining{background:#63b3ed}.math-app .ten-frame-cell--crossed{background:#fc8181;position:relative}.math-app .ten-frame-x{color:#fff;font-size:1rem;font-weight:900;line-height:1}.math-app .ten-frame-legend{border-radius:8px;justify-content:center;align-items:center;width:28px;height:28px;font-size:.85rem;font-weight:700;display:inline-flex}.math-app .ten-frame-legend--first{color:#90cdf4;background:#63b3ed4d}.math-app .ten-frame-legend--second{color:#9ae6b4;background:#68d3914d}.math-app .ten-frame-legend--remaining{color:#90cdf4;background:#63b3ed4d}.math-app .ten-frame-legend--crossed{color:#feb2b2;background:#fc81814d}.math-app .help-missing-label{color:#a0aec0;margin-top:2px;font-family:Heebo,sans-serif;font-size:.85rem}@media screen and (min-width:768px){.math-app .results-container{flex-direction:row}.math-app .final-score{max-width:450px;max-height:80vh}}@media screen and (min-width:769px){.math-app .practice-section{max-width:min(600px,94vw);min-height:min(72dvh,100dvh - 120px)}.math-app .practice-section .stats{width:min(400px,100%);max-width:100%}.math-app .questionCard{flex:0 auto;width:min(100%,540px);max-width:540px;min-height:min(280px,34vh);margin:12px 20px 10px;padding:26px 40px 22px}.math-app .questionCard:not(.questionCard--input){min-height:min(340px,44vh)}.math-app .qc-perspective>.questionCard{width:min(100%,440px);max-width:440px;padding:0}.math-app .questionCard .problem{font-size:clamp(34px,3.6vw,52px)}.math-app .practice-section .practice-xp-footer{max-width:min(440px,94vw)}}@media screen and (max-width:768px){.math-app{--math-footer-reserve:36px}.math-app select,.math-app textarea{font-size:16px!important}.math-app button{padding:5px 14px}.math-app .action-buttons{margin-top:10px}.math-app .donate-button-container{margin-top:auto;padding:clamp(10px,2vh,18px) 6px 4px;font-size:11px}#main-header{margin:6px auto 8px}.math-app .selection{max-height:calc(100svh - 108px)}.math-app input.answer-input[type=number]{color:#444}.math-app .checkbox-grid{margin:10px auto}.math-app .difficulty-selector{margin:12px 0}.math-app .final-score{width:90%;padding:12px}.math-app .perfect-score{font-size:21px}.math-app .result-text{font-size:20px}.math-app .selection,.math-app .learn-section{min-height:240px;margin:0 auto;padding:8px 10px}.math-app .learn-section{border:11px solid #0000;border-image:linear-gradient(90deg,#8b4513,sienna,peru) 1;padding:4px 0}.math-app .learn-container{flex:1}.math-app .multiplication-row{padding:2px 0;font-size:20px}.math-app .table-title{font-size:22px}.math-app .flip-container{margin:0 auto}.math-app .checkbox-wrapper-16 .checkbox-tile{width:4.75rem;min-height:4.75rem;transition:all .15s}.math-app .checkbox-wrapper-16 .checkbox-icon svg{width:2rem;height:2rem}.math-app .checkbox-label{margin-top:4px;font-size:12px}.math-app .checkbox-wrapper-16 .checkbox-icon{margin-top:6px}.math-app .stats{margin-top:50px}.math-app .practice-section .stats{margin-top:6px}.math-app .practice-section{justify-content:flex-start;min-height:0;transform:none}.math-app .practice-section .questionCard.questionCard--input{flex:0 auto;justify-content:flex-start;min-height:0;margin:6px 12px 4px;padding:40px 18px 12px}.math-app .qc-perspective>.questionCard.questionCard--input{min-height:min(56dvh,340px);padding:0}.math-app .digit-box{width:38px;height:44px;font-size:1.3rem}.math-app .practice-section .questionCard.questionCard--input .problem{margin:4px 0 6px;font-size:clamp(26px,8.5vw,38px)}.math-app .practice-section .questionCard:not(.questionCard--input){flex:0 auto;min-height:min(44dvh,300px)}.math-app .practice-section .practice-xp-footer{margin-top:4px;margin-bottom:4px}.math-app .footer{padding:4px}.math-app .progress-bar-container{width:95%}.math-app .gamification-bar{margin-bottom:6px;padding:5px 8px;font-size:12px}.math-app .xp-bar-side-label{font-size:11px}.math-app .streak-display{padding:2px 6px;font-size:12px}.math-app .operation-tab{padding:5px 2px}.math-app .op-tab-symbol{font-size:16px}.math-app .op-tab-label{font-size:11px}.math-app .level-picker{grid-template-columns:repeat(3,1fr);gap:6px;margin:8px auto}.math-app .level-card{min-height:54px;padding:5px 2px}.math-app .level-card-num{font-size:16px}.math-app .level-card-name,.math-app .level-card-example{font-size:11px}}@media (hover:none){.math-app button:active:not(.profile-emoji-sheet-cell):not(.profile-emoji-sheet-close):not(.profile-editor-close):not(.profile-emoji-trigger):not(.achievements-modal-close):not(.modal-close-btn){background-color:#45a049}}.math-app .problem,.math-app button,.math-app .stats{-webkit-user-select:none;user-select:none}.math-app .daily-challenge-btn{color:#333;cursor:pointer;background-color:#f2cc8f;border:none;border-radius:50px;min-width:auto;margin:0;padding:6px 14px;font-size:clamp(13px,3.5vw,15px);font-weight:600;transition:background-color .2s}.math-app .daily-challenge-btn:hover{background-color:#e6bc7a}.math-app .daily-challenge-btn.daily-challenge-done{color:#fff;cursor:default;background-color:#90a4ae}.math-app .daily-challenge-btn.daily-challenge-done:hover{opacity:1}.math-app .daily-challenge-heading{color:#c77800;direction:rtl;background:#fff8e1;border:2px solid #f6c90e;border-radius:8px;margin-bottom:8px;padding:6px 14px;font-size:18px;font-weight:700;display:inline-block}.math-app .achievements-section{text-align:center;margin-top:6px}.math-app .achievements-toggle-btn{color:#fff;cursor:pointer;background-color:#3d405b;border:none;border-radius:50px;min-width:auto;margin:0;padding:6px 14px;font-size:clamp(13px,3.5vw,15px);font-weight:600;transition:background-color .2s}.math-app .achievements-toggle-btn:hover{background-color:#2e3047}.math-app .achievements-panel{direction:rtl;background:#f3f0ff;border:1.5px solid #d1c4e9;border-radius:10px;margin-top:8px;padding:10px 8px}.math-app .achievements-panel h3{color:#4a148c;margin:0 0 8px;font-size:14px;font-weight:700}.math-app .badges-grid{grid-template-columns:repeat(4,minmax(0,1fr));place-items:stretch stretch;gap:10px;width:100%;display:grid}@media screen and (max-width:360px){.math-app .badges-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}@media screen and (min-width:640px){.math-app .achievements-modal .badges-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.math-app .achievements-modal .badge-slot{border-radius:6px;gap:3px;padding:6px 4px}.math-app .achievements-modal .badge-icon{font-size:clamp(15px,2.8vw,18px)}.math-app .achievements-modal .badge-name{font-size:clamp(10px,1.8vw,12px)}}@media screen and (min-width:900px){.math-app .achievements-modal .badges-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.math-app .achievements-modal .badge-slot{padding:5px 3px}}.math-app .badge-slot{aspect-ratio:1;box-sizing:border-box;background:#fff;border:1.5px solid #e0d7f5;border-radius:8px;flex-direction:column;justify-content:center;align-items:stretch;gap:4px;width:100%;min-width:0;max-width:100%;min-height:0;padding:8px 5px;transition:transform .15s;display:flex;position:relative;overflow:visible}.math-app .badge-slot.earned{background:linear-gradient(135deg,#ede7f6,#f3e5f5);border-color:#7c4dff;box-shadow:0 2px 6px #7c4dff33}.math-app .badge-slot:hover{transform:scale(1.05)}.math-app .badge-icon{flex-shrink:0;align-self:center;font-size:clamp(18px,5vw,22px);line-height:1}.math-app .badge-icon.unearned{filter:grayscale();opacity:.3}.math-app .badge-name{color:#444;text-align:center;overflow-wrap:break-word;word-break:normal;-webkit-line-clamp:3;line-clamp:3;-webkit-hyphens:manual;hyphens:manual;-webkit-box-orient:vertical;width:100%;min-width:0;max-width:100%;font-size:clamp(11px,2.85vw,13px);font-weight:500;line-height:1.28;display:-webkit-box;overflow:hidden}.math-app .badge-slot.earned .badge-name{color:#4a148c;font-weight:600}.math-app .badge-popup-tooltip{color:#fff;white-space:nowrap;z-index:10;pointer-events:none;background:#333;border-radius:6px;padding:6px 10px;font-size:12px;line-height:1.3;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);box-shadow:0 2px 8px #00000040}.math-app .badge-popup-tooltip:after{content:"";border:5px solid #0000;border-top-color:#333;position:absolute;top:100%;left:50%;transform:translate(-50%)}.math-app .badge-toast{color:#fff;z-index:3000;white-space:nowrap;direction:rtl;background:linear-gradient(135deg,#7c4dff,#651fff);border-radius:20px;padding:10px 20px;font-size:15px;font-weight:700;animation:.4s math-toastIn;position:fixed;bottom:70px;left:50%;transform:translate(-50%);box-shadow:0 4px 14px #7c4dff80}@keyframes math-toastIn{0%{opacity:0;transform:translate(-50%)translateY(20px)}to{opacity:1;transform:translate(-50%)translateY(0)}}@media print{.math-app .final-score{max-height:none;box-shadow:none;position:static;transform:none}.math-app .backdrop,.math-app .footer,.math-app .background-pattern,.math-app .sound-toggle,.math-app .action-buttons,.math-app .end-game-buttons{display:none!important}}.math-app .table-checkbox-label{position:relative}.math-app .table-indicator{z-index:2;pointer-events:none;border-radius:50%;width:8px;height:8px;display:block;position:absolute;top:4px;right:4px}.math-app .table-indicator-weak{background-color:#ff8c00;box-shadow:0 0 3px #ff8c0099}.math-app .table-indicator-strong{background-color:#4caf50;box-shadow:0 0 3px #4caf5099}.math-app .secondary-actions-row{flex-wrap:wrap;justify-content:center;gap:10px;max-width:100%;margin:14px 0 4px;display:flex}.math-app .secondary-actions-row>button{flex:1;max-width:140px;padding:7px 10px;font-size:clamp(13px,3.2vw,14px)}.math-app .speed-drill-button{color:#333;cursor:pointer;background-color:#f2cc8f;border:none;border-radius:50px;min-width:auto;margin:0;padding:6px 14px;font-size:clamp(13px,3.5vw,15px);font-weight:600;transition:background-color .2s}.math-app .speed-drill-button:hover{background-color:#e6bc7a}.math-app .parent-report-btn{color:#fff;cursor:pointer;background-color:#7e57c2;border:none;border-radius:50px;min-width:auto;margin:0;padding:6px 14px;font-size:clamp(13px,3.5vw,15px);font-weight:600;transition:background-color .2s}.math-app .parent-report-btn:hover{background-color:#6a3fc8}.math-app .parent-report{z-index:1100;box-sizing:border-box;direction:rtl;background-color:#fff;border-radius:12px;width:95%;max-width:560px;max-height:85vh;padding:20px;position:fixed;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%);box-shadow:0 6px 24px #0000002e}.math-app .parent-report-pin-wrap{flex-direction:column;align-items:center;gap:12px;padding:30px 20px;display:flex}.math-app .pin-form{flex-direction:column;align-items:center;gap:12px;width:100%;display:flex}.math-app .pin-label{color:#333;text-align:center;margin:0;font-size:16px;font-weight:600}.math-app .pin-input{letter-spacing:10px;text-align:center;-webkit-appearance:none;-moz-appearance:textfield;border:2px solid #7e57c2;border-radius:8px;outline:none;width:140px;padding:10px 16px;font-family:monospace;font-size:28px}.math-app .pin-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.math-app .pin-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.math-app .pin-input-wrap{flex-direction:column;align-items:center;gap:4px;display:flex}.math-app .pin-eye-btn{cursor:pointer;opacity:.6;background:0 0;border:none;min-width:0;margin:0;padding:4px;font-size:20px;line-height:1;transition:opacity .2s}.math-app .pin-eye-btn:hover{opacity:1;background:0 0}.math-app .pin-input:focus{border-color:#6a3fc8;box-shadow:0 0 0 3px #7e57c226}.math-app .pin-error{color:#e53935;margin:0;font-size:14px;font-weight:600}.math-app .parent-report-header{border-bottom:2px solid #ede7f6;justify-content:space-between;align-items:center;margin-bottom:14px;padding-bottom:10px;display:flex}.math-app .parent-report-title{color:#4a148c;margin:0;font-size:20px;font-weight:700}.math-app .parent-report-actions{align-items:center;gap:8px;display:flex}.math-app .parent-report-print-btn{color:#fff;background-color:#43a047;border-radius:50px;min-width:0;margin:0;padding:5px 12px;font-size:13px}.math-app .parent-report-print-btn:hover{background-color:#2e7d32}.math-app .parent-report-close-btn{color:#555;background-color:#f5f5f5;border-radius:50px;min-width:0;margin:0;padding:5px 12px;font-size:15px;font-weight:700;border:1px solid #ddd!important}.math-app .parent-report-close-btn:hover{background-color:#e0e0e0}.math-app .report-summary-row{flex-wrap:wrap;justify-content:center;gap:10px;margin-bottom:16px;display:flex}.math-app .report-stat-card{background:linear-gradient(135deg,#ede7f6,#f3e5f5);border:1.5px solid #ce93d8;border-radius:10px;flex-direction:column;align-items:center;min-width:70px;padding:10px 16px;display:flex}.math-app .report-stat-value{color:#4a148c;font-size:18px;font-weight:700;line-height:1.2}.math-app .report-stat-label{color:#7b1fa2;margin-top:2px;font-size:11px}.math-app .report-player-tabs{border-bottom:2px solid #e0e0e0;gap:0;margin-bottom:12px;display:flex}.math-app .report-player-tab{color:#888;cursor:pointer;background:0 0;border:none;border-bottom:3px solid #0000;border-radius:0;flex:1;min-width:0;margin:0;padding:8px 12px;font-size:15px;font-weight:600;transition:color .2s,border-color .2s}.math-app .report-player-tab:hover{color:#555;background:0 0}.math-app .report-player-tab.active{color:#2e7d32;border-bottom-color:#4caf50}.math-app .report-section-title{color:#4a148c;border-bottom:1px solid #ede7f6;margin:12px 0 6px;padding-bottom:4px;font-size:15px;font-weight:700}.math-app .report-empty{color:#999;text-align:center;margin:8px 0;font-size:14px}.math-app .report-table{border-collapse:collapse;direction:rtl;width:100%;margin-bottom:8px;font-size:14px}.math-app .report-table th{color:#4a148c;text-align:right;background-color:#ede7f6;border-bottom:2px solid #ce93d8;padding:6px 10px;font-weight:700}.math-app .report-table td{color:#333;text-align:right;border-bottom:1px solid #f3e5f5;padding:6px 10px}.math-app .report-table tr:last-child td{border-bottom:none}.math-app .report-score-badge{border-radius:10px;padding:1px 6px;font-size:12px;font-weight:700;line-height:1.4;display:inline-block}.math-app .report-score-badge.perfect{color:#1b5e20;background-color:#c8e6c9}.math-app .report-score-badge.good{color:#f57f17;background-color:#fff9c4}.math-app .report-score-badge.needs-work{color:#b71c1c;background-color:#ffcdd2}.math-app .report-accuracy-grid{flex-direction:column;gap:6px;margin-bottom:8px;display:flex}.math-app .accuracy-row{direction:ltr;align-items:center;gap:8px;display:flex}.math-app .accuracy-label{color:#4a148c;text-align:left;flex-shrink:0;width:30px;font-size:13px;font-weight:700}.math-app .accuracy-track{background-color:#ede7f6;border-radius:7px;flex:1;height:14px;overflow:hidden}.math-app .accuracy-bar{border-radius:7px;height:100%;transition:width .4s}.math-app .accuracy-bar.bar-strong{background:linear-gradient(90deg,#66bb6a,#43a047)}.math-app .accuracy-bar.bar-medium{background:linear-gradient(90deg,#ffd54f,#ff9800)}.math-app .accuracy-bar.bar-weak{background:linear-gradient(90deg,#ef9a9a,#e53935)}.math-app .accuracy-bar.bar-empty{opacity:.5;background-color:#e0e0e0}.math-app .accuracy-pct{color:#555;text-align:right;flex-shrink:0;width:34px;font-size:12px;font-weight:700}.math-app .accuracy-count{color:#999;flex-shrink:0;min-width:30px;font-size:11px}@media print{body>*{display:none!important}.math-app .parent-report{max-height:none!important;box-shadow:none!important;z-index:auto!important;width:100%!important;max-width:100%!important;padding:10px!important;display:block!important;position:static!important;overflow:visible!important;transform:none!important}.math-app .no-print,.math-app .backdrop{display:none!important}}.math-app .personal-best-banner{color:#555;text-align:center;direction:rtl;background:#fff8e1;border:1px solid #ffd54f;border-radius:8px;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin:8px auto;padding:8px 14px;font-size:14px;display:flex}.math-app .personal-best-banner.personal-best-new{color:#333;background:linear-gradient(135deg,#fff8e1,#fffde7);border-color:#ffc107;font-size:15px;font-weight:600;animation:.5s cubic-bezier(.68,-.55,.265,1.55) math-personalBestPop;box-shadow:0 2px 10px #ffc10759}@keyframes math-personalBestPop{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.math-app .personal-best-trophy{font-size:20px;line-height:1}.math-app .personal-best-prev{color:#888;font-size:12px;font-weight:400}.math-app .personal-best-record{color:#777;font-size:13px}.math-app .speed-drill-heading{color:#ff8c00;margin-bottom:4px;font-size:15px;font-weight:700}.math-app .speed-drill-best{color:#555;background:#fff8e1;border:1px solid #ffd54f;border-radius:8px;margin:6px auto;padding:6px 14px;font-size:14px;display:inline-block}.math-app .sync-bar{direction:rtl;justify-content:flex-end;align-items:center;gap:8px;min-height:30px;margin-bottom:2px;display:flex}.math-app .sync-badge{color:#1565c0;white-space:nowrap;background:#e3f2fd;border:1px solid #90caf9;border-radius:20px;align-items:center;gap:5px;padding:3px 10px;font-size:13px;font-weight:600;display:inline-flex}.math-app .sync-switch-btn{color:#1565c0;cursor:pointer;background:0 0;border:1px solid #90caf9;border-radius:20px;min-width:0;margin:0;padding:3px 10px;font-size:12px;font-weight:500;transition:background-color .2s}.math-app .sync-switch-btn:hover{background-color:#e3f2fd}.math-app .sync-open-btn{color:#5c85c8;cursor:pointer;background:0 0;border:1.5px dashed #90caf9;border-radius:20px;min-width:0;margin:0;padding:3px 12px;font-size:13px;font-weight:500;transition:background-color .2s,border-color .2s}.math-app .sync-open-btn:hover{color:#1565c0;background-color:#e3f2fd;border-color:#1565c0}@keyframes playerCardPop{0%{opacity:0;transform:translateY(18px)scale(.92)}60%{opacity:1;transform:translateY(-4px)scale(1.02)}to{opacity:1;transform:translateY(0)scale(1)}}.math-app .player-select{box-sizing:border-box;background:linear-gradient(170deg,#fff 0%,#f7faf5 100%);border-radius:18px;flex-direction:column;justify-content:flex-start;align-items:center;width:100%;max-width:600px;min-height:70vh;margin:10px auto;padding:28px 20px 20px;display:flex;overflow-y:auto;box-shadow:0 4px 20px #00000014}.math-app .player-select-header{text-align:center;margin-bottom:20px}.math-app .player-select-title{color:#333;margin:0 0 8px;font-size:clamp(24px,6vw,32px);font-weight:800}.math-app .player-select-code{color:#7fa453;cursor:pointer;-webkit-user-select:none;user-select:none;direction:rtl;background:#f0f7e8;border:1px solid #d4e8c0;border-radius:20px;align-items:center;gap:4px;margin:0;padding:4px 14px;font-size:13px;transition:background .2s;display:inline-flex}.math-app .player-select-code:hover{background:#e4f0d8}.math-app .player-select-empty{color:#aaa;margin:20px 0;font-size:16px}.math-app .player-cards-grid{flex-wrap:wrap;justify-content:center;gap:16px;width:100%;max-width:500px;margin:0 auto 20px;display:flex}.math-app .player-card{cursor:pointer;text-align:center;opacity:0;border:2px solid #0000000f;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:145px;min-height:140px;margin:0;padding:10px;font-family:inherit;font-size:20px;font-weight:700;transition:transform .18s,box-shadow .18s;animation:.4s ease-out forwards playerCardPop;display:flex;position:relative;box-shadow:0 4px 12px #0000001a}.math-app .player-card:hover{transform:translateY(-6px)scale(1.05);box-shadow:0 8px 24px #00000026}.math-app .player-card:active{transform:scale(.96)}.math-app .player-card-crown{filter:drop-shadow(0 1px 2px #0003);z-index:1;font-size:32px;line-height:1;position:absolute;top:-16px;left:50%;transform:translate(-50%)}.math-app .player-card-avatar{background:#ffffff80;border:2px solid;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:68px;height:68px;font-size:22px;font-weight:900;transition:box-shadow .2s;display:flex}.math-app .player-card:hover .player-card-avatar{box-shadow:0 0 18px var(--card-color,#00000026)!important}.math-app .player-card-avatar-emoji{font-size:0;line-height:0}.math-app .player-card-emoji-glyph{justify-content:center;align-items:center;width:100%;height:100%;font-size:40px;font-weight:400;line-height:1;display:flex;transform:translateY(.12em)}.math-app .player-card-avatar-initial{font-size:24px;font-weight:900;line-height:1}.math-app .player-card-name{word-break:break-word;text-align:center;max-width:100%;font-size:18px;font-weight:800;line-height:1.2}.math-app .player-card-xp{font-variant-numeric:tabular-nums;opacity:.85;letter-spacing:.02em;margin-top:0}.math-app .player-card-xp-num{font-size:16px;font-weight:800}.math-app .player-card-xp-label{font-size:13px;font-weight:700}.math-app .player-card.player-card-add{color:#2e7d32;box-shadow:none;background:linear-gradient(135deg,#f0f9f0,#e8f5e9);border:2.5px dashed #81c784;gap:6px;min-height:140px}.math-app .player-card.player-card-add:hover{background:linear-gradient(135deg,#e0f2e0,#c8e6c9);box-shadow:0 4px 14px #81c78440}.math-app .player-card-add-icon{opacity:.7;font-size:36px;font-weight:300;line-height:1}.math-app .player-add-inline{box-sizing:border-box;opacity:0;background:#fff;border:2.5px solid #81c784;border-radius:20px;flex-direction:column;align-items:center;gap:8px;width:145px;min-height:140px;padding:14px 10px;animation:.3s ease-out forwards playerCardPop;display:flex}.math-app .player-add-inline .player-add-input{text-align:right;color:#333;box-sizing:border-box;-moz-appearance:auto;direction:rtl;border:1.5px solid #c8e6c9;border-radius:10px;outline:none;width:100%;padding:8px 10px;font-family:inherit;font-size:15px;height:auto!important}.math-app .player-add-inline .player-add-input:focus{border-color:#4caf50;box-shadow:0 0 0 2px #4caf5033}.math-app .player-add-inline-actions{gap:6px;width:100%;display:flex}.math-app .player-add-confirm-btn{color:#fff;cursor:pointer;background:#4caf50;border:none;border-radius:10px;flex:1;min-width:0;margin:0;padding:7px 12px;font-size:14px;font-weight:700}.math-app .player-add-confirm-btn:hover{background:#388e3c}.math-app .player-add-cancel-btn{color:#666;cursor:pointer;background:#f5f5f5;border:none;border-radius:10px;flex:1;min-width:0;margin:0;padding:7px 10px;font-size:13px}.math-app .player-add-cancel-btn:hover{background:#e0e0e0}.math-app .player-add-error{text-align:center;color:#d32f2f;width:100%;margin:0;font-size:12px}.math-app .player-select-footer{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-top:auto;padding-top:20px;display:flex}.math-app .player-anonymous-btn{color:#555;cursor:pointer;background-color:#f5f5f5;border:1.5px solid #ddd;border-radius:50px;min-width:0;margin:0;padding:8px 20px;font-size:14px;font-weight:600;transition:background-color .2s,transform .15s}.math-app .player-anonymous-btn:hover{background-color:#e8e8e8;transform:scale(1.02)}.math-app .player-logout-btn{color:#bbb;cursor:pointer;background:0 0;border:none;min-width:0;margin:0;padding:4px 8px;font-size:13px;font-weight:400;text-decoration:underline;transition:color .2s}.math-app .player-logout-btn:hover{color:#888;background:0 0!important}.math-app .player-back-btn{color:#fff;cursor:pointer;background:#4caf50;border:none;border-radius:20px;min-width:0;margin:0;padding:8px 20px;font-size:14px;font-weight:600;transition:background .2s,transform .15s}.math-app .player-back-btn:hover{background:#43a047;transform:scale(1.02)}.math-app .sync-modal-overlay{-webkit-backdrop-filter:blur(3px);z-index:1500;box-sizing:border-box;background:#0000008c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.math-app .sync-modal{box-sizing:border-box;direction:rtl;background:#fff;border-radius:16px;width:100%;max-width:400px;max-height:90vh;padding:28px 24px 24px;animation:.35s math-messagePopInBounce;position:relative;overflow-y:auto;box-shadow:0 8px 32px #00000038}.math-app .sync-modal-close{color:#999;cursor:pointer;background:0 0;border:none;border-radius:50%;min-width:0;margin:0;padding:4px 8px;font-size:18px;line-height:1;transition:background-color .2s,color .2s;position:absolute;top:12px;left:14px}.math-app .sync-modal-close:hover{color:#333;background:#f5f5f5}.math-app .sync-modal-title{color:#1565c0;text-align:center;margin:0 0 4px;font-size:22px;font-weight:700}.math-app .sync-modal-subtitle{color:#888;text-align:center;margin:0 0 18px;font-size:14px}.math-app .sync-tabs{border-bottom:2px solid #e0e0e0;gap:0;margin-bottom:20px;display:flex}.math-app .sync-tab{color:#888;cursor:pointer;box-shadow:none;background:0 0;border:none;border-bottom:3px solid #0000;border-radius:0;outline:none;flex:1;min-width:0;margin:0;padding:9px 8px;font-size:15px;font-weight:500;transition:color .2s,border-color .2s}.math-app .sync-tab:hover{color:#1565c0;background:#f5f5f5}.math-app .sync-tab-active{color:#1565c0;background:0 0;border-bottom-color:#1565c0;font-weight:700}.math-app .sync-tab-content{flex-direction:column;align-items:center;gap:14px;display:flex}.math-app .sync-instructions{color:#555;text-align:center;margin:0;font-size:15px}.math-app .sync-code-row{justify-content:center;align-items:center;gap:8px;width:100%;display:flex}.math-app .sync-input{letter-spacing:2px;text-align:center;color:#333;-moz-appearance:auto;direction:ltr;border:2px solid #90caf9;border-radius:10px;outline:none;width:160px;max-width:200px;padding:10px 14px;font-family:monospace;font-size:18px;transition:border-color .2s,box-shadow .2s;height:auto!important}.math-app .sync-input:focus{border-color:#1565c0;box-shadow:0 0 0 3px #1565c026}.math-app .sync-generate-btn{color:#1565c0;cursor:pointer;white-space:nowrap;background:#e3f2fd;border-radius:10px;min-width:0;margin:0;padding:10px 14px;font-size:14px;font-weight:600;transition:background-color .2s}.math-app .sync-generate-btn:hover{background:#bbdefb}.math-app .sync-primary-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#1976d2,#1565c0);border:none;border-radius:50px;min-width:140px;margin:4px 0 0;padding:11px 36px;font-size:16px;font-weight:700;transition:opacity .2s}.math-app .sync-primary-btn:hover{opacity:.9}.math-app .sync-primary-btn:disabled{opacity:.6;cursor:not-allowed}.math-app .sync-secondary-btn{color:#444;cursor:pointer;background:#f5f5f5;border:none;border-radius:50px;min-width:0;margin:0;padding:9px 24px;font-size:14px;font-weight:600;transition:background-color .2s}.math-app .sync-secondary-btn:hover{background:#e0e0e0}.math-app .sync-error{color:#d32f2f;text-align:center;box-sizing:border-box;direction:rtl;background:#fff3f3;border:1px solid #ef9a9a;border-radius:8px;width:100%;margin:-6px 0 0;padding:6px 12px;font-size:13px}.math-app .sync-success-msg{color:#2e7d32;text-align:center;box-sizing:border-box;direction:rtl;background:#f1f8e9;border:1px solid #a5d6a7;border-radius:8px;width:100%;margin:0;padding:8px 14px;font-size:15px}.math-app .sync-player-list{flex-direction:column;gap:8px;width:100%;max-height:220px;display:flex;overflow-y:auto}.math-app .sync-player-option{color:#333;cursor:pointer;text-align:right;direction:rtl;background:linear-gradient(120deg,#fdfbfb,#ebedee);border:1.5px solid #ddd;border-radius:12px;width:100%;min-width:0;margin:0;padding:12px 18px;font-size:17px;font-weight:600;transition:background .15s,border-color .15s,transform .1s}.math-app .sync-player-option:hover{background:#e3f2fd;border-color:#90caf9;transform:translate(-3px)}@media screen and (max-width:480px){.math-app .player-cards-grid{gap:10px}.math-app .player-card{width:130px;min-height:120px;font-size:16px}.math-app .player-card-avatar{width:48px;height:48px;font-size:18px}.math-app .player-card-emoji-glyph{font-size:28px;transform:translateY(.1em)}.math-app .player-card-avatar-initial{font-size:20px}.math-app .player-card.player-card-add,.math-app .player-add-inline{width:130px;min-height:120px}.math-app .sync-modal{padding:22px 16px 20px}.math-app .sync-input{width:140px;font-size:16px}}.math-app .practice-section--immersive{z-index:0;box-sizing:border-box;background:linear-gradient(170deg,#e8f5e9 0%,#f1f8e9 30%,#fffde7 70%,#fff8e1 100%);border-radius:0;flex-direction:column;align-items:center;width:100%;max-width:600px;min-height:100dvh;margin-inline:auto;padding:0;display:flex;position:relative;overflow:hidden}.math-app:has(.practice-section--immersive){background:linear-gradient(170deg,#e8f5e9 0%,#f1f8e9 30%,#fffde7 70%,#fff8e1 100%);align-items:stretch!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}.math-app:has(.practice-section--immersive)>div{width:100%}.math-app:has(.practice-section--immersive)>.background-pattern{display:none}.math-app:has(.practice-section--immersive)>.math-app-title-row{display:none}.math-app .math-app-practice-under-results .practice-section--immersive{filter:blur(8px)}.math-app .ps-imm-header{box-sizing:border-box;z-index:10;background:linear-gradient(#e8f5e9 0%,#f1f8e9 100%);flex-direction:column;width:min(100vw,600px);max-width:600px;transition:opacity .25s;display:flex;position:fixed;top:0;left:50%;right:auto;transform:translate(-50%)}.math-app .practice-section--immersive:has(.ps-imm-help-backdrop--open) .ps-imm-header{opacity:.3;pointer-events:none}.math-app .practice-section--immersive:has(.ps-imm-help-backdrop--open) .ps-imm-card-area{z-index:11}.math-app .ps-imm-top-bar{direction:rtl;justify-content:space-between;align-items:center;width:100%;padding:10px 10px 0;display:flex}.math-app .ps-imm-util-bar{direction:rtl;border-top:1px solid #0000000f;justify-content:space-between;align-items:center;width:100%;margin-top:6px;padding:6px 10px 8px;display:flex}.math-app .ps-imm-exit-btn{cursor:pointer;color:#999;aspect-ratio:1;background:#fff;border:2px solid #e0e0e0;border-radius:50%;justify-content:center;align-items:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;font-size:16px;transition:background .15s;display:flex;box-shadow:0 2px 8px #00000014}.math-app .ps-imm-exit-btn:active{background:#f0f0f0}.math-app .ps-imm-ring-wrap{width:60px;height:60px;position:relative}.math-app .ps-imm-ring-wrap svg{width:60px;height:60px;transform:rotate(-90deg)}.math-app .ps-imm-ring-track{fill:none;stroke:#e0e0e0;stroke-width:5px}.math-app .ps-imm-ring-fill{fill:none;stroke:#4caf50;stroke-width:5px;stroke-linecap:round;transition:stroke-dashoffset .4s}.math-app .ps-imm-ring-text{color:#333;-webkit-user-select:none;user-select:none;direction:ltr;justify-content:center;align-items:center;font-size:14px;font-weight:700;display:flex;position:absolute;inset:0}.math-app .ps-imm-timer-area{flex-direction:column;align-items:center;gap:1px;display:flex}.math-app .ps-imm-timer-number{color:#555;direction:ltr;font-family:sans-serif;font-size:30px;font-weight:900;line-height:1}.math-app .ps-imm-timer-label{color:#999;font-size:11px;font-weight:600}.math-app .ps-imm-timer-number.warning-mild{color:#d32f2f}.math-app .ps-imm-timer-number.warning-severe{color:#f44;animation:1s infinite math-pulse}.math-app .ps-imm-pill{-webkit-user-select:none;user-select:none;background:#fff;border-radius:20px;align-items:center;gap:6px;padding:6px 16px;font-size:18px;font-weight:700;display:flex;box-shadow:0 2px 8px #00000014}.math-app .ps-imm-pill-icon{font-size:14px;line-height:1}.math-app .ps-imm-pill--correct .ps-imm-pill-icon,.math-app .ps-imm-pill--correct .ps-imm-pill-count{color:#2e7d32}.math-app .ps-imm-pill--incorrect .ps-imm-pill-icon,.math-app .ps-imm-pill--incorrect .ps-imm-pill-count{color:#c62828}.math-app .ps-imm-card-area{z-index:1;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;inset:0;overflow:hidden}.math-app .ps-imm-front{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;width:100%;min-width:0;padding:0 16px;display:flex;position:relative}.math-app .ps-imm-problem{color:#333;letter-spacing:3px;text-shadow:0 2px 4px #0000000d;text-align:center;-webkit-user-select:none;user-select:none;white-space:nowrap;direction:ltr;padding-bottom:20px;font-family:sans-serif;font-size:clamp(48px,14vw,64px);font-weight:900}.math-app .ps-imm-xp-hint{color:#8d6e00;direction:ltr;background:#fff8e1b3;border-radius:8px;padding:2px 10px;font-size:14px;font-weight:600}.math-app .ps-imm-answer-options{box-sizing:border-box;grid-template-columns:1fr 1fr;align-self:center;gap:14px;width:min(100%,360px);min-width:0;max-width:360px;margin-inline:auto;display:grid}.math-app .ps-imm-option{cursor:pointer;color:#333;background:#fff;border:none;border-radius:18px;justify-content:center;align-items:center;min-height:72px;padding:22px;font-family:sans-serif;font-size:clamp(26px,6vw,34px);font-weight:700;transition:all .15s;display:flex;box-shadow:0 3px 12px #0000001a}.math-app .ps-imm-option:active{background-color:#ececec;transform:scale(.97);box-shadow:0 1px 4px #0000001a}.math-app .ps-imm-option:hover{background-color:#f2f2f2}.math-app .ps-imm-submit-btn:hover{background-color:#c5d0ad}.math-app .ps-imm-icon-btn:hover{background-color:#ebebebe6}.math-app .ps-imm-exit-btn:hover,.math-app .ps-imm-pill:hover{background-color:#f2f2f2}.math-app .ps-imm-help-sheet-content .help-back-btn:hover{background-color:#f2f2f2!important}.math-app .ps-imm-option.correct{color:#fff;background:#4caf50;box-shadow:0 4px 12px #4caf5066}.math-app .ps-imm-option.wrong{color:#fff;background:#f44;box-shadow:0 4px 12px #f446}.math-app .ps-imm-option.faded{opacity:.15;pointer-events:none;transition:all .15s}.math-app .ps-imm-answer-input-area{box-sizing:border-box;flex-direction:column;align-self:center;align-items:stretch;gap:10px;width:min(100%,320px);min-width:0;max-width:320px;margin-inline:auto;display:flex}.math-app .ps-imm-answer-input{text-align:center;color:#333;direction:ltr;background:#fff;border:2px solid #ccc;border-radius:50px;outline:none;width:100%;padding:10px;font-family:sans-serif;font-size:24px;font-weight:700;box-shadow:0 2px 8px #0000000f}.math-app .ps-imm-answer-input::placeholder{color:#bbb}.math-app .ps-imm-answer-input:focus{background:#fefefe;border-color:#cfdbb6;box-shadow:0 2px 12px #c7f9cc66}.math-app .ps-imm-submit-btn{box-sizing:border-box;color:#5b6052;cursor:pointer;background:#cfdbb6;border:none;border-radius:50px;width:100%;padding:12px 40px;font-size:18px;font-weight:700;transition:all .15s;box-shadow:0 2px 8px #7fa4534d}.math-app .ps-imm-submit-btn:active{transform:scale(.96)}.math-app .ps-imm-correction{color:#e65100;text-align:center;direction:ltr;background:#fff3e0;border:1px solid #ff9800;border-radius:10px;padding:6px 16px;font-size:clamp(22px,5vw,28px);font-weight:700}.math-app .ps-imm-help-backdrop{z-index:199;opacity:0;pointer-events:none;background:#00000073;transition:opacity .2s .17s;position:fixed;inset:0}.math-app .ps-imm-help-backdrop--open{opacity:1;pointer-events:auto;transition:opacity .2s .17s}.math-app .ps-imm-help-backdrop:not(.ps-imm-help-backdrop--open){transition:opacity .3s}.math-app .ps-imm-help-sheet{z-index:200;pointer-events:none;visibility:hidden;flex-direction:column;justify-content:flex-end;transition:visibility 0s linear .35s;display:flex;position:fixed;inset:76px 0 0}.math-app .ps-imm-help-sheet--open{pointer-events:auto;visibility:visible;transition:visibility linear}.math-app .ps-imm-help-sheet-content{color:#fff;-webkit-overflow-scrolling:touch;background:linear-gradient(#2c3e6b 0%,#1a2744 100%);border-radius:30px 30px 0 0;flex-direction:column;justify-content:center;align-items:center;gap:clamp(14px,3vw,24px);height:100%;padding:28px 20px clamp(28px,4vw,40px);font-family:Heebo,Assistant,sans-serif;transition:transform .35s cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow-y:auto;transform:translateY(100%);box-shadow:0 -4px 24px #00000040}.math-app .ps-imm-help-sheet--open .ps-imm-help-sheet-content{transform:translateY(0)}.math-app .ps-imm-help-sheet-content .help-title{color:#e8eaf6;font-family:Heebo,sans-serif;font-size:clamp(24px,5vw,32px);font-weight:700}.math-app .ps-imm-help-sheet-content .dot-grid-container{background:#ffffff1a;border:1px solid #ffffff26;border-radius:16px;padding:clamp(14px,3vw,24px)}.math-app .ps-imm-help-sheet-content .help-description{color:#ffffffbf;font-family:Heebo,sans-serif;font-size:clamp(16px,3.5vw,22px)}.math-app .ps-imm-help-sheet-content .dot-grid{border-radius:14px;gap:clamp(6px,1.5vw,10px);max-width:none;padding:clamp(12px,2.5vw,20px)}.math-app .ps-imm-help-sheet-content .help-view-dots-label{font-size:clamp(1.3rem,4.5vw,2rem)}.math-app .ps-imm-help-sheet-content .dot-grid-dot{width:clamp(18px,4.5vw,28px);height:clamp(18px,4.5vw,28px)}.math-app .ps-imm-help-sheet-content .help-view-dots-counts{gap:10px;font-size:clamp(1.1rem,3.5vw,1.5rem)}.math-app .ps-imm-help-sheet-content .help-view-dots,.math-app .ps-imm-help-sheet-content .help-view-column,.math-app .ps-imm-help-sheet-content .help-view-easy{gap:clamp(16px,3.5vw,28px)}.math-app .ps-imm-help-sheet-content .col-cell{width:clamp(44px,12vw,64px);font-size:clamp(2rem,6vw,2.8rem)}.math-app .ps-imm-help-sheet-content .col-header{font-size:clamp(1rem,3vw,1.3rem)}.math-app .ps-imm-help-sheet-content .col-op-symbol{width:clamp(28px,6vw,40px);font-size:clamp(1.6rem,5vw,2.4rem)}.math-app .ps-imm-help-sheet-content .col-carry-cell{height:clamp(22px,4vw,30px)}.math-app .ps-imm-help-sheet-content .carry-indicator,.math-app .ps-imm-help-sheet-content .borrow-indicator{font-size:clamp(.85rem,2.5vw,1.1rem)}.math-app .ps-imm-help-sheet-content .col-cell.col-cell-carry,.math-app .ps-imm-help-sheet-content .col-cell.col-cell-borrow{color:#fff!important;font-size:clamp(2rem,6vw,2.8rem)!important}.math-app .ps-imm-help-sheet-content .col-line{border-width:2px}.math-app .ps-imm-help-sheet-content .col-op-symbol{width:0;margin:0;padding:0;overflow:hidden}.math-app .ps-imm-help-sheet-content .col-num2-row{margin-top:4px;position:relative}.math-app .ps-imm-help-sheet-content .col-num2-row .col-op-symbol{color:#ffd54f;width:auto;font-size:clamp(1.8rem,5vw,2.6rem);position:absolute;top:-.8em;left:clamp(-36px,-9vw,-52px);overflow:visible}.math-app .ps-imm-help-sheet-content .digit-box{border-radius:10px;width:clamp(44px,12vw,64px);height:clamp(44px,12vw,64px);font-size:clamp(1.6rem,5vw,2.4rem)}.math-app .ps-imm-help-sheet-content .help-missing-label{font-size:clamp(18px,4.5vw,26px)}.math-app .ps-imm-help-sheet-content .help-back-btn{color:#2c3e6b;cursor:pointer;background:#fff;border:none;border-radius:50px;padding:14px 36px;font-family:Heebo,sans-serif;font-size:clamp(17px,3.5vw,22px);font-weight:700;transition:transform .15s;box-shadow:0 2px 12px #0003}.math-app .ps-imm-help-sheet-content .help-back-btn:active{transform:scale(.96)}.math-app .ps-imm-help-sheet-content .help-xp-hint{color:#ffd54f;font-family:Heebo,sans-serif;font-size:clamp(15px,3vw,20px)}.math-app .ps-imm-help-sheet-content .help-xp-struck{color:#fff6}.math-app .ps-imm-help-sheet-content .help-done-msg{color:#81c784;background:#81c78426;border-radius:10px;padding:8px 16px;font-family:Heebo,sans-serif;font-weight:600}.math-app .ps-imm-help-sheet-content input[type=text],.math-app .ps-imm-help-sheet-content input[type=number]{color:#fff;background:#ffffff1f;border:2px solid #ffffff40;border-radius:12px}.math-app .ps-imm-help-sheet-content input:focus{background:#ffffff2e;border-color:#7986cb}.math-app .ps-imm-icon-btn{cursor:pointer;aspect-ratio:1;background:#fff;border:2px solid #e0e0e0;border-radius:50%;justify-content:center;align-items:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;transition:background .15s;display:flex;box-shadow:0 2px 8px #00000014}.math-app .ps-imm-icon-btn:active{background:#e8e8e8}.math-app .ps-imm-icon-btn svg{width:22px;height:22px}.math-app .ps-imm-xp-center{color:#555;-webkit-user-select:none;user-select:none;direction:ltr;align-items:baseline;gap:3px;font-weight:700;display:inline-flex}.math-app .ps-imm-xp-number{font-size:22px}.math-app .ps-imm-xp-label{opacity:.7;font-size:14px;font-weight:600}.math-app .ps-imm-front.correct-animation{animation:.7s ps-imm-correctFlash}.math-app .ps-imm-front.wrong-animation,.math-app .ps-imm-front.wrong-animation-input{animation:.8s ps-imm-wrongFlash}@keyframes ps-imm-correctFlash{0%{background-color:#0000}40%{background-color:#4caf5026}to{background-color:#0000}}@keyframes ps-imm-wrongFlash{0%{background-color:#0000}30%{background-color:#f4433626}to{background-color:#0000}}@media screen and (max-width:768px){.math-app .ps-imm-problem{letter-spacing:2px;font-size:clamp(28px,11vw,52px)}.math-app .ps-imm-answer-options{gap:12px;width:min(100%,290px);max-width:290px}.math-app .ps-imm-option{min-height:64px;padding:18px}}.math-app .bonus-modal-overlay{-webkit-backdrop-filter:blur(4px);z-index:2200;background:#0009;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0;overflow:hidden}.math-app .bonus-modal{text-align:center;z-index:1;direction:rtl;background:linear-gradient(160deg,#fffde7 0%,#fff8e1 40%,#fff 100%);border-radius:20px;width:100%;max-width:min(420px,100vw - 32px);padding:28px 24px 24px;animation:.5s cubic-bezier(.68,-.55,.265,1.55) math-messagePopInBounce;position:relative;box-shadow:0 8px 32px #ffc10759,0 0 0 2px #ffc10733}.math-app .bonus-modal-exit{animation:.35s forwards bonus-exit}@keyframes bonus-exit{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.08)}}.math-app .bonus-modal-title{background:linear-gradient(135deg,#ff9800,#ffc107,#ff5722);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:18px;font-size:32px;font-weight:800;animation:1.5s ease-in-out infinite alternate bonus-title-glow}@keyframes bonus-title-glow{0%{filter:brightness()}to{filter:brightness(1.15)}}.math-app .bonus-items{flex-direction:column;gap:10px;margin-bottom:16px;display:flex}.math-app .bonus-item{background:#ffc1071a;border:1px solid #ffc10740;border-radius:12px;justify-content:space-between;align-items:center;padding:12px 16px;font-size:16px;font-weight:600;display:flex}.math-app .bonus-item-label{color:#5d4037}.math-app .bonus-item-amount{color:#e65100;font-family:monospace,sans-serif;font-size:20px;font-weight:800}.math-app .bonus-total{justify-content:center;align-items:center;gap:10px;margin-bottom:20px;padding:8px 0;display:flex}.math-app .bonus-total-label{color:#795548;font-size:16px;font-weight:600}.math-app .bonus-total-amount{color:#e65100;text-shadow:0 1px 3px #e6510033;font-size:28px;font-weight:900}.math-app .bonus-collect-btn{color:#fff;cursor:pointer;text-shadow:0 1px 2px #00000026;background:linear-gradient(135deg,#ffc107,#ff9800);border:none;border-radius:14px;padding:14px 40px;font-size:20px;font-weight:800;transition:transform .15s,box-shadow .15s;animation:1.5s ease-in-out infinite bonus-btn-pulse;display:inline-block;box-shadow:0 4px 16px #ff980073,0 0 20px #ffc10740}.math-app .bonus-collect-btn:hover{transform:scale(1.05);box-shadow:0 6px 20px #ff98008c,0 0 30px #ffc10759}.math-app .bonus-collect-btn:active{transform:scale(.97)}@keyframes bonus-btn-pulse{0%,to{box-shadow:0 4px 16px #ff980073,0 0 20px #ffc10740}50%{box-shadow:0 4px 24px #ff980099,0 0 36px #ffc10766}}.math-app .bonus-floating-emoji{pointer-events:none;z-index:2199;opacity:0;will-change:transform, opacity;animation:linear forwards bonus-rise,ease-in-out infinite bonus-sway;animation-duration:var(--duration,3.5s), 2s;animation-delay:var(--delay,0s), var(--delay,0s);font-size:40px;position:fixed;bottom:0}@keyframes bonus-rise{0%{opacity:0;transform:translateY(20px)}6%{opacity:1}75%{opacity:.9}to{opacity:0;transform:translateY(-105vh)}}@keyframes bonus-sway{0%,to{margin-left:0}25%{margin-left:14px}75%{margin-left:-14px}}@media screen and (max-width:768px){.math-app .bonus-modal{padding:22px 18px 20px}.math-app .bonus-modal-title{font-size:26px}.math-app .bonus-total-amount{font-size:24px}.math-app .bonus-floating-emoji{font-size:28px}}.math-app .xp-info-overlay{-webkit-backdrop-filter:blur(3px);z-index:2000;background:#0000008c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.math-app .xp-info-modal{direction:rtl;background:#fff;border-radius:16px;flex-direction:column;width:100%;max-width:min(520px,100vw - 24px);max-height:min(80vh,100dvh - 32px);padding:0;animation:.3s math-messagePopInBounce;display:flex;position:relative;overflow:hidden;box-shadow:0 8px 30px #00000040}.math-app .xp-info-modal-header{z-index:2;background:#fff;border-bottom:1px solid #e8e8e8;border-radius:16px 16px 0 0;flex:none;padding:14px 48px 12px;position:relative;box-shadow:0 4px 12px #0000000f}.math-app .xp-info-modal-header .modal-close-btn{z-index:3;position:absolute;top:10px;left:auto;right:10px}.math-app .xp-info-modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0;padding:16px 20px calc(20px + env(safe-area-inset-bottom,0px));flex:auto;overflow:hidden auto}.math-app button.modal-close-btn{cursor:pointer;z-index:1;justify-content:center;align-items:center;width:36px;height:36px;font-size:18px;transition:background-color .2s;display:flex;position:absolute;top:10px;left:auto;right:10px;box-shadow:none!important;color:#999!important;background:0 0!important;border:none!important;border-radius:50%!important;min-width:0!important;margin:0!important;padding:0!important}.math-app button.modal-close-btn:hover{color:#555!important;background:#00000014!important}.math-app .xp-info-title{color:#333;text-align:center;margin:0;padding:2px 0 0;font-size:22px;font-weight:800;line-height:1.35}.math-app .xp-info-modal-body .xp-info-section{border-bottom:1px solid #eee;margin-bottom:18px;padding-bottom:16px}.math-app .xp-info-modal-body .xp-info-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.math-app .xp-info-section h3{color:#444;margin:0 0 8px;font-size:19px;font-weight:700}.math-app .xp-info-section p{color:#555;margin:5px 0;font-size:16px;line-height:1.55}.math-app .xp-info-table{border:1px solid #e0e0e0;border-radius:10px;margin:8px 0;overflow:hidden}.math-app .xp-info-row{border-bottom:1px solid #f0f0f0;justify-content:space-between;align-items:center;padding:10px 14px;font-size:15px;display:flex}.math-app .xp-info-row:last-child{border-bottom:none}.math-app .xp-info-row--header{color:#333;background:#f5f5f5;font-size:15px;font-weight:700}.math-app .xp-info-val{color:#2e7d32;font-variant-numeric:tabular-nums;direction:ltr;font-weight:700}.math-app .xp-info-note{color:#777!important;font-size:13px!important}.math-app .xp-info-tip{background:#e8f5e9;border-radius:8px;margin-top:8px;padding:8px 12px;font-weight:600;color:#2e7d32!important;font-size:14px!important}.math-app .xp-info-levels{flex-direction:column;gap:4px;margin-top:8px;display:flex}.math-app .xp-info-level-row{background:#fafafa;border-radius:8px;align-items:center;gap:10px;padding:6px 12px;font-size:13px;display:flex}.math-app .xp-info-level-row:nth-child(2n){background:#f5f5f5}.math-app .xp-info-level-row.xp-info-level-row--current,.math-app .xp-info-level-row:nth-child(2n).xp-info-level-row--current{background:linear-gradient(135deg,#fffbf0 0%,#ffecb3 100%);border:2px solid #d4a017;box-shadow:0 0 0 1px #d4a01759}.math-app .xp-info-level-row.xp-info-level-row--current .xp-info-level-num{color:#b8860b}.math-app .xp-info-level-row.xp-info-level-row--current .xp-info-level-name{color:#7a5b00}.math-app .xp-info-level-row.xp-info-level-row--current .xp-info-level-xp{color:#9a7200}.math-app .xp-info-level-num{color:#2e7d32;text-align:center;min-width:20px;font-weight:800}.math-app .xp-info-level-name{color:#333;flex:1;font-weight:600}.math-app .xp-info-level-xp{color:#888;font-variant-numeric:tabular-nums;font-size:12px;font-weight:700}
