
/* V4.32.40 — Math Adventure polish: game-like presentation, logic untouched */
#mathPanel,
.math-panel{
  position:relative!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,#fffdf6 0%,#fff7d7 58%,#eef9ff 100%)!important;
}
#mathPanel:before,
.math-panel:before{
  content:"";
  position:absolute;
  right:24px;
  top:88px;
  width:180px;
  height:180px;
  background:url("school-math-scene-v43239.jpg") left center/470px auto no-repeat;
  border-radius:28px;
  box-shadow:0 7px 0 rgba(18,51,88,.12);
  pointer-events:none;
}
#mathPanel h2,
.math-panel h2{
  font-size:34px!important;
  margin-bottom:8px!important;
}
#mathProblem,
.math-problem{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:150px!important;
  margin:24px auto 12px!important;
  padding:18px 210px 18px 20px!important;
  font-size:clamp(62px,8vw,96px)!important;
  font-weight:950!important;
  line-height:1!important;
  color:#17365f!important;
}
#mathAnswer,
.math-answer{
  width:180px!important;
  min-height:76px!important;
  border:4px solid #17365f!important;
  border-radius:22px!important;
  font-size:38px!important;
  font-weight:900!important;
  text-align:center!important;
  background:#fff!important;
  box-shadow:0 6px 0 rgba(18,51,88,.12)!important;
}
#mathPanel button,
.math-panel button{
  min-height:62px!important;
  border-radius:20px!important;
  padding:12px 22px!important;
  font-size:18px!important;
  font-weight:900!important;
}
#mathPanel [id*="hint" i],
.math-panel [class*="hint" i]{
  background:#ffcf55!important;
}
#mathPanel [id*="check" i],
.math-panel [class*="check" i]{
  background:#48d57a!important;
}
#mathPanel:after,
.math-panel:after{
  content:"⭐ Try it • 💡 Get a hint • 🎉 Earn a star!";
  display:block;
  width:max-content;
  max-width:85%;
  margin:22px auto 4px;
  padding:10px 18px;
  border:2px dashed #65bfe8;
  border-radius:18px;
  background:rgba(255,255,255,.86);
  color:#174d7e;
  font-weight:900;
  font-size:16px;
  text-align:center;
}
@media(max-width:700px){
  #mathPanel:before,
  .math-panel:before{
    position:relative!important;
    display:block!important;
    right:auto!important;
    top:auto!important;
    width:150px!important;
    height:112px!important;
    margin:10px auto 0!important;
    background-size:390px auto!important;
  }
  #mathProblem,
  .math-problem{
    min-height:110px!important;
    padding:12px!important;
    margin:12px auto 8px!important;
    font-size:58px!important;
  }
  #mathAnswer,
  .math-answer{
    width:150px!important;
    min-height:68px!important;
  }
  #mathPanel button,
  .math-panel button{
    min-height:58px!important;
    font-size:16px!important;
  }
  #mathPanel:after,
  .math-panel:after{
    font-size:13px!important;
    max-width:92%!important;
  }
}
