.math-game-card{background:linear-gradient(145deg,#c7f7d4,#65d6a0)!important;border:3px solid #279568!important}.math-game-card span{background:#fff!important;color:#177451!important;font-size:21px!important;font-weight:1000;letter-spacing:-.08em}.math-game{max-width:1080px;margin:34px auto 55px;padding:clamp(22px,5vw,52px);border-radius:34px;background:radial-gradient(circle at 88% 12%,#fff0a5 0 7%,transparent 23%),linear-gradient(145deg,#effff6,#e8f3ff);box-shadow:0 18px 55px #17213d20;text-align:center;scroll-margin-top:18px}.math-game-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.math-game-progress{font-weight:1000;color:#16845a}.math-matio{position:relative;width:140px;height:92px;margin:12px auto 0}.math-matio span{position:absolute;left:37px;z-index:2;font-size:70px;animation:mathBob 2s ease-in-out infinite}.math-matio b,.math-matio i{position:absolute;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font-style:normal;font-size:24px;color:#fff}.math-matio b{left:5px;top:32px;background:#ff715b;animation:mathFloat 1.8s ease-in-out infinite}.math-matio i{right:0;top:6px;background:#2857d6;animation:mathFloat 1.8s .4s ease-in-out infinite}.math-game h2{margin:5px 0 10px;font-size:clamp(34px,6vw,62px);line-height:1.05}.math-game-coach{max-width:760px;margin:0 auto 22px;font-size:clamp(18px,2.5vw,24px);line-height:1.35;font-weight:800;color:#445476}.math-game-stage{max-width:880px;margin:auto;padding:clamp(18px,4vw,38px);border:5px solid #6acb9a;border-radius:30px;background:#fff;box-shadow:0 10px 0 #b8dfcf}.math-game-stage[data-level="2"]{border-color:#69bce8}.math-game-stage[data-level="3"]{border-color:#8d76e3}.math-game-stage[data-level="4"]{border-color:#ff9b63}.math-game-kind{margin:0;color:#16845a;font-size:16px;font-weight:1000;letter-spacing:.12em}.math-game-stage h3{max-width:760px;margin:10px auto 14px;color:#17213d;font-size:clamp(25px,4vw,38px);line-height:1.2}.math-game-visual{display:flex;min-height:110px;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:8px auto 24px;padding:14px;border-radius:22px;background:linear-gradient(135deg,#effbff,#fff8d8);font-size:clamp(39px,8vw,67px);line-height:1.1;letter-spacing:.02em}.math-game-visual .math-group{display:inline-flex;align-items:center;justify-content:center;gap:5px}.math-game-visual .math-sign{margin:0 10px;color:#2857d6;font-size:clamp(38px,7vw,62px);font-weight:1000}.math-game-visual .shape{display:inline-block;width:60px;height:60px}.math-game-visual .circle{border-radius:50%;background:#ff715b}.math-game-visual .square{background:#2857d6}.math-game-visual .triangle{width:0;height:0;border-left:34px solid transparent;border-right:34px solid transparent;border-bottom:60px solid #f5bb28}.math-game-visual .rectangle{width:85px;background:#56b87a}.math-game-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.math-game-choices button{min-height:88px;border:4px solid #c9d7ef;border-radius:22px;background:#f8fbff;color:#17213d;font:inherit;font-size:clamp(29px,5vw,48px);font-weight:1000;box-shadow:0 7px 0 #9caeca;cursor:pointer;transition:.16s}.math-game-choices button:hover,.math-game-choices button:focus-visible{border-color:#16845a;transform:translateY(-3px)}.math-game-choices button.wrong{opacity:.38;box-shadow:none;transform:none}.math-game-choices button.correct{background:#bff3c8;border-color:#3dab5c;animation:mathPop .45s}.math-game-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:28px auto 10px}.math-game-actions button,.next-math-round{min-height:52px;border:0;border-radius:99px;padding:13px 20px;background:#16845a;color:#fff;font-size:16px;font-weight:950;cursor:pointer}.math-game-actions button:nth-child(2){background:#2857d6}.math-game-actions button:nth-child(3){background:#fff;color:#273251;border:3px solid #273251}.math-game-feedback{max-width:760px;margin:18px auto 10px;padding:17px;border-radius:18px;background:#fff;color:#185d36;font-size:21px;font-weight:950}.next-math-round{margin:10px auto;background:#ff715b;box-shadow:0 5px 0 #c84433}.math-game-feedback[hidden],.next-math-round[hidden]{display:none!important}.math-game-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:700px;margin:28px auto 0}.math-game-stats div{padding:14px;border-radius:18px;background:#ffffffb8}.math-game-stats strong{display:block;color:#16845a;font-size:30px}.math-game-stats span{display:block;color:#5d6880;font-size:13px;font-weight:900}.math-game.celebrate .math-matio span{animation:mathSpin .7s ease-out}.math-game.round-arrive .math-game-visual{animation:mathArrive .35s ease-out}@keyframes mathBob{50%{transform:translateY(-7px) rotate(2deg)}}@keyframes mathFloat{50%{transform:translateY(-9px)}}@keyframes mathPop{50%{transform:scale(1.07)}}@keyframes mathArrive{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes mathSpin{to{transform:rotate(360deg) scale(1.16)}}@media(max-width:1120px){.math-game{margin-left:clamp(10px,4vw,40px);margin-right:clamp(10px,4vw,40px)}}@media(max-width:650px){.math-game{margin:16px 8px 34px;padding:18px 10px}.math-game-top{align-items:flex-start;flex-direction:column}.math-game-stage{padding:14px 10px;border-width:4px}.math-game-visual{min-height:90px;font-size:44px}.math-game-choices{gap:10px}.math-game-choices button{min-height:72px;border-width:3px}.math-game-actions button{flex:1 1 45%}.math-game-stats{gap:7px}.math-game-stats div{padding:10px 5px}.math-game-stats strong{font-size:24px}}
