:root{--mist:#d7ecf5;--rose:#f097bd;--navy:#13283e}button{border-radius:15px;background:linear-gradient(#284964,#19334e);border:1px solid #a5d4e64d;box-shadow:inset 0 1px #fff2,0 3px 8px #020c1633;transition:transform .14s,background .14s;min-height:44px}button:hover{background:linear-gradient(#395d7d,#294562);transform:translateY(-1px)}button:active{transform:translateY(1px) scale(.97)}button.pink,.primary{background:linear-gradient(135deg,#e474a2,#af507f)!important;color:#fff7fb}.top{padding:20px 26px}.chapter{border-radius:0 20px 20px 0;background:linear-gradient(90deg,#11263eec,#11263e55);backdrop-filter:blur(10px);padding:14px 25px;border-left:3px solid #ffacd1}.topActions button,.bottomActions button{backdrop-filter:blur(12px);background:#152e48d9}.chapter strong{font-size:22px}.chapter small{color:#b2ccdf;letter-spacing:2px}.chapter #objective{font-size:16px}.panel,.mathGame,.puzzleShell{border-radius:26px;border:1px solid #a6cfe757;background:linear-gradient(145deg,#1b354ff5,#162441fa);box-shadow:0 26px 90px #0008}.mathGame{position:relative;padding-top:50px}.stopExit{position:absolute;right:14px;top:10px;font-size:13px;padding:5px 12px;min-height:34px}.mathEquation b{background:#0a1f36;border:1px solid #a4c9e033;border-radius:18px;font-variant-numeric:tabular-nums;box-shadow:inset 0 3px 10px #06152c88}.mathChoices button{background:linear-gradient(#39607f,#294666);color:#fff5db;min-height:56px}.mathPicture{opacity:.5;height:38px;margin:6px}.mathLevel{color:#c9e7f4;letter-spacing:2px}.rewardReveal{padding:0}.heldReward{width:min(520px,80vw);height:auto;display:block;margin:auto;animation:rewardPop .7s cubic-bezier(.2,1.2,.4,1)}.rewardReveal h2{font-size:26px}.rewardReveal p{margin:6px}.scienceVisual{height:110px;display:flex;justify-content:center;align-items:center;gap:12px}.scienceVisual i{display:block;width:14px;height:70px;border-radius:10px;background:linear-gradient(#ffc4dc,#74cfe7);animation:scienceWave 1.5s ease-in-out infinite alternate}.scienceVisual i:nth-child(2n){animation-delay:-.7s}.scienceVisual i:nth-child(3n){animation-delay:-1.1s}.scienceVisual.vibrate i{width:4px;height:90px;animation:scienceShake .12s linear infinite alternate}.scienceVisual.energy i{height:28px;width:28px;border-radius:8px;animation:scienceRun 2s ease-in-out infinite alternate}.scienceVisual.matter i{height:40px;width:40px;animation:none;border-radius:5px}.scienceVisual.matter i:nth-child(2n){border-radius:50%;background:#8cd5eb}.scienceVisual.matter i:last-child{opacity:.3}.englishGame .mathChoices button{font-size:25px;min-width:135px}.englishGame h2{margin:10px}.englishGame p{margin:8px}.puzzleInfo .eyebrow{color:#a2cede}.puzzleExit{z-index:5}.bottomActions{padding:16px 24px}#toast{pointer-events:none;max-width:80%;font-size:16px}#context{max-width:50%;border-radius:14px;background:#10283bc9;backdrop-filter:blur(10px)}@keyframes scienceWave{to{transform:scaleY(.25)}}@keyframes scienceShake{to{transform:translateX(6px)}}@keyframes scienceRun{to{transform:translateX(28px) rotate(90deg)}}@media(max-height:540px){.top{padding:10px 14px}.chapter{padding:9px 16px}.chapter strong{font-size:17px}.chapter #objective{font-size:13px}.bottomActions{padding:7px 12px}.mathGame{max-height:92vh;overflow:auto;padding:35px 16px 10px}.mathPicture{display:none}.mathLevel{font-size:14px}.mathChoices{margin:8px}.mathChoices button{min-height:44px}.scienceVisual{height:64px;transform:scale(.65)}.heldReward{width:330px}.rewardReveal h2{font-size:20px}.rewardReveal .rewardStars{margin:3px}.panel{max-height:94vh;overflow:auto}}
