.math-app-container{width:100%;height:100%;background:linear-gradient(135deg,#a1c4fd,#c2e9fb);color:#333;display:flex;flex-direction:column;overflow-y:auto;font-family:Fredoka Rounded,Nunito,sans-serif}body[data-theme-mode=dark] .math-app-container{background:linear-gradient(135deg,#1e293b,#0f172a);color:#e2e8f0}.math-profile-container,.math-dashboard,.math-summary{width:100%;max-width:600px;margin:0 auto;padding:2rem;display:flex;flex-direction:column;gap:1.5rem;align-items:center}.math-profile-container .card,.math-dashboard .card,.math-summary .card{background:var(--paper-bg-color, white);color:var(--text-color, #333);border-radius:20px;padding:2rem;width:100%;box-shadow:0 10px 25px #0000001a;display:flex;flex-direction:column;align-items:center;gap:1rem}body[data-theme-mode=dark] .math-profile-container .card,body[data-theme-mode=dark] .math-dashboard .card,body[data-theme-mode=dark] .math-summary .card{box-shadow:0 10px 25px #00000080;border:1px solid rgba(255,255,255,.1)}.math-mode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1.5rem;width:100%}.math-mode-grid .mode-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:1.5rem;border-radius:20px;border:none;cursor:pointer;transition:all .2s ease;aspect-ratio:1.2}.math-mode-grid .mode-tile .icon{font-size:2.5rem}.math-mode-grid .mode-tile .label{font-weight:800;font-size:1.1rem}.math-mode-grid .mode-tile.add-sub{background:#e3f2fd;color:#1976d2;box-shadow:0 6px #bbdefb}body[data-theme-mode=dark] .math-mode-grid .mode-tile.add-sub{background:#1e3a8a;color:#bfdbfe;box-shadow:0 6px #1e1b4b}.math-mode-grid .mode-tile.multiply{background:#f3e5f5;color:#7b1fa2;box-shadow:0 6px #e1bee7}body[data-theme-mode=dark] .math-mode-grid .mode-tile.multiply{background:#581c87;color:#f3e8ff;box-shadow:0 6px #3b0764}.math-mode-grid .mode-tile.mixed{background:#fffde7;color:#fbc02d;box-shadow:0 6px #fff9c4}body[data-theme-mode=dark] .math-mode-grid .mode-tile.mixed{background:#713f12;color:#fef9c3;box-shadow:0 6px #422006}.math-mode-grid .mode-tile:hover{transform:translateY(-4px)}.math-mode-grid .mode-tile:active{transform:translateY(2px);box-shadow:none}.math-history-item{width:100%;display:flex;justify-content:space-between;padding:1rem;border-bottom:1px solid var(--border-color, #eee)}.math-history-item:last-child{border-bottom:none}.math-history-item .stats{display:flex;gap:1rem;color:var(--text-secondary-color, #666);font-size:.9rem}.math-player-container{display:flex;flex-direction:column;height:100%;width:100%;max-width:500px;margin:0 auto;padding:1rem;box-sizing:border-box;justify-content:space-between}.math-header{display:flex;justify-content:space-between;align-items:center;width:100%;padding:.5rem;background:#ffffff80;border-radius:12px;font-weight:700;color:#333}body[data-theme-mode=dark] .math-header{background:#0000004d;color:#e2e8f0}.math-question-area{flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.math-question-area .question-text{font-size:clamp(3rem,15vw,6rem);font-weight:800;display:flex;align-items:center;gap:.5rem;color:var(--heading-color, inherit)}.math-question-area .answer-placeholder{color:#999;border:2px dashed var(--border-color, #ccc);width:1.5em;height:1.5em;display:flex;justify-content:center;align-items:center;border-radius:8px;margin-left:.2em;font-size:.8em}.math-question-area .answer-box{min-width:1.5em;height:1.5em;display:flex;justify-content:center;align-items:center;border-bottom:8px solid var(--primary-color);margin-left:.2em;font-size:1em;color:var(--primary-color)}.math-question-area .answer-box.shake{border-bottom-color:#f44336}.math-numpad{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;width:100%;max-width:400px;margin:0 auto 1rem;padding:1rem;background:#0f172acc;border-radius:20px}.math-numpad button{font-size:1.8rem;font-weight:700;padding:.8rem;border-radius:12px;border:none;background:#475569;color:#fff;cursor:pointer;transition:transform .1s,background-color .2s;display:flex;justify-content:center;align-items:center}.math-numpad button:active{transform:scale(.95);background-color:#334155}.math-numpad button.key-back{background-color:#64748b}.math-numpad button.key-enter{grid-column:span 2;background-color:#64748b;font-size:1.4rem;text-transform:uppercase;letter-spacing:1px}.math-choices-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:1.5rem;width:100%;margin-bottom:1.5rem}.math-choices-grid .choice-btn{font-size:2.5rem;padding:1.5rem 1rem;border-radius:20px;border:none;background:#ffffffe6;box-shadow:0 6px #0000001a;font-weight:800;cursor:pointer;transition:all .2s cubic-bezier(.25,.8,.25,1);color:#333;position:relative;overflow:hidden}body[data-theme-mode=dark] .math-choices-grid .choice-btn{background:#ffffff1a;color:#e2e8f0;box-shadow:0 6px #0000004d}.math-choices-grid .choice-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px #0000001a}body[data-theme-mode=dark] .math-choices-grid .choice-btn:hover:not(:disabled){box-shadow:0 8px #0000004d}.math-choices-grid .choice-btn:active:not(:disabled){transform:translateY(4px);box-shadow:0 2px #0000001a}body[data-theme-mode=dark] .math-choices-grid .choice-btn:active:not(:disabled){box-shadow:0 2px #0000004d}.math-choices-grid .choice-btn.correct{background-color:#4caf50!important;color:#fff!important;box-shadow:0 6px #2e7d32!important}.math-choices-grid .choice-btn.wrong{background-color:#ef5350!important;color:#fff!important;box-shadow:0 6px #c62828!important}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}.shake{animation:shake .3s ease-in-out;color:#f44336!important;border-color:#f44336!important}.correct-flash{color:#4caf50!important;border-color:#4caf50!important}.science-app-container{width:100%;height:100%;display:flex;flex-direction:column;background:linear-gradient(135deg,#e0f7fa,#e1bee7);color:#333;overflow-y:auto;font-family:Fredoka Rounded,Nunito,sans-serif}body[data-theme-mode=dark] .science-app-container{background:linear-gradient(135deg,#1a237e,#311b92);color:#e2e8f0}.science-menu{max-width:900px;margin:0 auto;padding:2rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem}.science-menu .science-card{background:#fffc;border-radius:20px;padding:2rem;display:flex;flex-direction:column;align-items:center;text-align:center;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 4px 6px #0000001a}body[data-theme-mode=dark] .science-menu .science-card{background:#1e293bcc;box-shadow:0 4px 6px #0000004d}.science-menu .science-card:hover{transform:translateY(-5px);box-shadow:0 10px 15px #00000026}.science-menu .science-card .icon{font-size:4rem;margin-bottom:1rem}.science-menu .science-card h3{margin:0 0 .5rem;font-size:1.5rem}.science-menu .science-card p{opacity:.8;font-size:.95rem}.color-chemist{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2rem}.color-chemist .beaker-container{width:200px;height:250px;border:4px solid #333;border-top:none;border-radius:0 0 20px 20px;position:relative;background:#fff3;overflow:hidden}.color-chemist .beaker-container .liquid{position:absolute;bottom:0;left:0;right:0;transition:height .3s,background-color .5s}.color-chemist .beaker-container .beaker-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:1.5rem;font-weight:800;color:#fff;text-shadow:-2px -2px 0 #000,2px -2px 0 #000,-2px 2px 0 #000,2px 2px 0 #000;pointer-events:none;z-index:10;text-align:center;width:100%;text-transform:capitalize}.color-chemist .droplets{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}.color-chemist .droplets button{width:60px;height:80px;border-radius:0 0 30px 30px;border:none;cursor:pointer;transition:transform .2s;font-weight:700;color:#333}.color-chemist .droplets button:active{transform:scale(.9) translateY(5px)}.color-chemist .droplets button.white-drop{background-color:#fff;border:2px solid #ccc}.color-chemist .droplets button.black-drop{background-color:#212121;color:#fff;border:2px solid #555}.solar-system{display:flex;flex-direction:column;padding:1rem;overflow-x:hidden;width:100%}.solar-system .orbit-view{position:relative;height:300px;width:100%;display:flex;align-items:center;justify-content:center;margin-bottom:2rem}.solar-system .orbit-view .sun{width:60px;height:60px;background:#fdb813;border-radius:50%;box-shadow:0 0 30px #fdb813;z-index:10;position:absolute}.solar-system .orbit-view .orbit-track{position:absolute;border:1px dashed rgba(128,128,128,.3);border-radius:50%;animation:spin linear infinite}.solar-system .orbit-view .planet-orbiter{position:absolute;top:50%;right:-10px;margin-top:-10px;width:20px;height:20px;border-radius:50%}.solar-system .sorting-bench{display:flex;gap:1rem;overflow-x:auto;padding:1rem;min-height:120px;align-items:center;background:#0000001a;border-radius:12px}.solar-system .sorting-bench .planet-card{min-width:80px;display:flex;flex-direction:column;align-items:center;cursor:grab;padding:.5rem;border-radius:8px;background:#ffffff80;touch-action:none;-webkit-user-select:none;user-select:none}.solar-system .sorting-bench .planet-card.correct{background:#a5d6a7;cursor:default}.solar-system .sorting-bench .planet-card.incorrect{background:#ef9a9a}.solar-system .sorting-bench .planet-card.dragging{opacity:.2}.solar-system .sorting-bench .planet-card .planet-circle{border-radius:50%;margin-bottom:.5rem;pointer-events:none}.planet-ghost{position:fixed;z-index:9999;pointer-events:none;min-width:80px;display:flex;flex-direction:column;align-items:center;padding:.5rem;border-radius:8px;background:#fffc;box-shadow:0 10px 20px #0000004d;transform:translate(-50%,-50%)}.planet-ghost .planet-circle{border-radius:50%;margin-bottom:.5rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.circuit-snap{display:flex;flex-direction:column;align-items:center;padding:1rem}.circuit-snap .grid{display:grid;gap:2px;background:#555;padding:4px;border-radius:4px}.circuit-snap .grid .cell{width:60px;height:60px;background:#222;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative}.circuit-snap .grid .cell.powered .wire{background-color:gold;box-shadow:0 0 5px gold}.circuit-snap .grid .cell .wire{position:absolute;background-color:#444;transition:background-color .3s}.circuit-snap .grid .cell.straight .wire{width:100%;height:8px}.circuit-snap .grid .cell.corner .wire.h{width:60%;height:8px;left:0}.circuit-snap .grid .cell.corner .wire.v{width:8px;height:60%;top:0}.circuit-snap .grid .cell.t-shape .wire.h{width:100%;height:8px}.circuit-snap .grid .cell.t-shape .wire.v{width:8px;height:50%;bottom:50%}.circuit-snap .grid .cell.bulb{font-size:2rem;color:#555}.circuit-snap .grid .cell.bulb.on{color:#ffeb3b;text-shadow:0 0 10px #ffeb3b}.circuit-snap .grid .cell.battery{font-size:2rem}.animal-sorter{display:flex;flex-direction:column;align-items:center;padding:2rem;width:100%;max-width:800px;margin:0 auto}.animal-sorter .bins{display:flex;gap:2rem;width:100%;justify-content:center;margin-bottom:3rem}.animal-sorter .bins .bin{flex:1;height:200px;border:4px dashed #999;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;background:#ffffff4d;transition:all .3s}.animal-sorter .bins .bin.hover{background:#fff9;border-color:var(--primary-color);transform:scale(1.02)}.animal-sorter .animal-deck{height:150px;display:flex;align-items:center;justify-content:center}.animal-sorter .animal-deck .animal-card{font-size:6rem;cursor:grab;-webkit-user-select:none;user-select:none;transition:transform .2s}.animal-sorter .animal-deck .animal-card:active{cursor:grabbing;transform:scale(1.1)}.syllabication-app{width:100%;height:100%;background:linear-gradient(135deg,#fdfbfb,#ebedee);color:#333;display:flex;flex-direction:column;overflow-y:auto;font-family:Fredoka Rounded,Nunito,sans-serif}body[data-theme-mode=dark] .syllabication-app{background:linear-gradient(135deg,#2c3e50,#000);color:#ecf0f1}.syllabication-app .container{width:100%;max-width:800px;margin:0 auto;padding:2rem;display:flex;flex-direction:column;gap:1.5rem;align-items:center}.syllabication-app .card{background:var(--paper-bg-color, white);color:var(--text-color, #333);border-radius:20px;padding:2rem;width:100%;box-shadow:0 10px 25px #0000000d}body[data-theme-mode=dark] .syllabication-app .card{background:#ffffff0d;box-shadow:0 10px 25px #00000080}.syllabication-app .rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;width:100%;margin-top:1rem}.syllabication-app .rule-grid .rule-btn{padding:1.5rem;border:2px solid transparent;border-radius:16px;background:#fff;box-shadow:0 4px 6px #0000000d;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;align-items:center;gap:.5rem}body[data-theme-mode=dark] .syllabication-app .rule-grid .rule-btn{background:#34495e;color:#ecf0f1}.syllabication-app .rule-grid .rule-btn:hover{transform:translateY(-4px);box-shadow:0 8px 15px #0000001a}.syllabication-app .rule-grid .rule-btn.active{border-color:var(--primary-color);background:#f0f9ff}body[data-theme-mode=dark] .syllabication-app .rule-grid .rule-btn.active{background:#2c3e50;border-color:#3498db}.syllabication-app .rule-grid .rule-btn .icon{font-size:2rem}.syllabication-app .rule-grid .rule-btn .label{font-weight:700}.syllabication-app .word-container{display:flex;justify-content:center;align-items:center;margin:3rem 0;font-size:clamp(2.5rem,8vw,4.5rem);font-weight:800;-webkit-user-select:none;user-select:none;flex-wrap:wrap}.syllabication-app .word-container .letter-group{display:flex;align-items:center}.syllabication-app .word-container .letter{padding:.1em;border-radius:8px;transition:background .3s,color .3s;cursor:pointer}.syllabication-app .word-container .letter.vowel-selected{color:#27ae60;text-shadow:0 0 10px rgba(39,174,96,.4)}.syllabication-app .word-container .letter.vowel-missed{color:#e74c3c}.syllabication-app .word-container .divider-slot{width:.6em;height:1.5em;margin:0 .1em;background:transparent;border-radius:4px;cursor:pointer;position:relative;transition:background .2s}.syllabication-app .word-container .divider-slot:hover{background:#0000000d}.syllabication-app .word-container .divider-slot:after{content:"";position:absolute;top:10%;bottom:10%;left:50%;width:4px;background:#ddd;transform:translate(-50%);border-radius:2px}.syllabication-app .word-container .divider-slot.active:after{background:var(--primary-color);width:6px;box-shadow:0 0 10px var(--primary-color)}.syllabication-app .instruction-box{background:#fff3e0;padding:1rem;border-radius:12px;display:flex;align-items:center;gap:1rem;border-left:6px solid #ff9800;width:100%}body[data-theme-mode=dark] .syllabication-app .instruction-box{background:#3e2723;border-left-color:#ff5722;color:#ffccbc}
