/* Equações: equilíbrio; problemas: tradução de situações. */
.algebra-phase-entry + .algebra-phase-entry { margin-top:30px; }
.math-equations .math-hero { background:radial-gradient(circle at 88% 23%,rgba(160,101,183,.18),transparent 35%),rgba(28,25,41,.79); }
.math-equations .math-hero-symbol { font-size:clamp(27px,4vw,51px); }
.math-balance-pans { display:flex; align-items:stretch; justify-content:center; gap:10px; max-width:680px; margin:26px 0 8px; }
.math-balance-pans span:not(.math-equals) { flex:1; display:grid; min-width:0; place-items:center; min-height:100px; padding:10px; border-bottom:5px solid #b590ce; border-radius:14px 14px 5px 5px; color:#fff; background:#463650; font:clamp(22px,3vw,35px)/1.3 Georgia,serif; overflow-wrap:anywhere; }
.math-equals { align-self:center; color:#e7c2ef; font:35px Georgia,serif; }
.math-balance-history { max-width:730px; color:#e9d1f2 !important; font:clamp(17px,2vw,24px)/1.5 Georgia,serif !important; overflow-wrap:anywhere; }
.math-balance-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:20px; }
.math-balance-actions button,.math-reset,.math-story-options button { min-height:44px; padding:10px 15px; border:1px solid #7a6088; border-radius:10px; color:#fff; background:#3d2e4c; font:650 15px/1.4 system-ui,sans-serif; cursor:pointer; }
.math-balance-actions button:hover,.math-reset:hover,.math-story-options button:hover { border-color:#e2b2ef; background:#523b5f; }
.math-balance-actions button:focus-visible,.math-reset:focus-visible,.math-story-options button:focus-visible { outline:3px solid #eabde6; outline-offset:3px; }
.math-balance-feedback,.math-story-feedback { min-height:1.6em; margin:15px 0 !important; color:#e8d5eb !important; font-size:14px !important; }
.math-equation-problems .math-hero { grid-template-columns:1.3fr .7fr; background:radial-gradient(circle at 93% 18%,rgba(159,92,151,.15),transparent 42%),rgba(34,26,44,.8); }
.math-equation-problems .math-hero-symbol { font-size:clamp(24px,3vw,41px); }
.math-story { max-width:780px; padding:18px 20px; border-left:3px solid #c390d0; border-radius:4px 12px 12px 4px; color:#fff2fb !important; background:#49374f; }
.math-story-options { display:grid; gap:9px; max-width:710px; }
.math-story-options button { text-align:left; }
.math-story-options button:disabled { opacity:.8; cursor:default; }
.math-story-options button[aria-pressed=true] { border-color:#e0b0e8; background:#63436c; opacity:1; }
.math-story-feedback.right { color:#baf2d4 !important; }
.math-story-feedback.retry { color:#ffc2ce !important; }
@media(max-width:740px){.math-equation-problems .math-hero { grid-template-columns:1fr; }.math-balance-pans span:not(.math-equals) { min-height:75px; }}
