/* Fase 1: vocabulário visual comum, com laboratório próprio em cada aula. */
.math-path { max-width:1160px; margin-inline:auto; }
.math-path section { margin:0 0 clamp(52px,6vw,76px); }
.math-path .algebra-overline { color:#e1abe7 !important; }
.math-path h2 { max-width:780px; }
.math-path em { color:#e6d0f0; }
.math-hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(200px,.8fr); align-items:center; gap:30px; padding:clamp(25px,5vw,54px); border:1px solid #594765; border-radius:20px; background:radial-gradient(circle at 89% 17%,rgba(129,85,167,.18),transparent 34%),rgba(30,26,41,.75); }
.math-hero p { max-width:690px; }
.math-opening-question { margin-top:20px !important; padding-left:16px; border-left:2px solid #d79acc; color:#e5d4e9 !important; }
.math-hero-symbol { padding:22px; border-radius:17px; color:#f4d7ed; background:rgba(59,42,74,.47); font:clamp(30px,4vw,54px)/1.25 Georgia,serif; text-align:center; overflow-wrap:anywhere; }
.math-goals { display:grid; grid-template-columns:210px 1fr; gap:20px; padding:25px; border-radius:14px; background:rgba(33,29,43,.75); }
.math-goals h2 { font-size:21px; }
.math-goals ul { display:grid; grid-template-columns:1fr 1fr; gap:8px 24px; margin:0; padding-left:20px; }
.math-goals li { font-size:14px; line-height:1.6; }
.math-concept { max-width:890px; padding-left:18px; border-left:2px solid rgba(186,143,212,.55); }
.math-concept p { max-width:840px; }
.math-lab { padding:clamp(25px,4vw,44px); border-radius:19px; background:radial-gradient(circle at 95% 0%,rgba(151,86,168,.16),transparent 36%),rgba(25,23,34,.87); }
.math-lab h2 { margin-bottom:11px; }
.math-sliders { display:flex; flex-wrap:wrap; gap:20px 36px; margin:26px 0; }
.math-sliders label { display:grid; gap:11px; min-width:min(250px,100%); color:#f4e8fa; font-weight:700; }
.math-sliders input { width:100%; min-height:34px; accent-color:#ce94db; }
.math-area-grid,.math-square-pieces { display:grid; grid-template-columns:1.4fr .8fr; width:min(100%,570px); gap:5px; aspect-ratio:1.8; margin:22px 0; }
.math-area-grid span,.math-square-pieces span { display:grid; place-items:center; min-width:0; color:#fff; font:clamp(22px,3vw,38px)/1.2 Georgia,serif; background:#504163; border-radius:7px; }
.math-area-grid span:nth-child(2),.math-square-pieces span:nth-child(2) { background:#664466; }
.math-area-grid span:nth-child(3),.math-square-pieces span:nth-child(3) { background:#553d69; }
.math-area-grid span:nth-child(4),.math-square-pieces span:nth-child(4) { background:#70465f; }
.math-lab-result { max-width:850px; color:#fff0fa !important; font:clamp(18px,2.5vw,25px)/1.5 Georgia,serif !important; }
.math-lab-reason { font-size:14px !important; }
.math-examples > div { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.math-example { min-width:0; padding:17px 20px; border:1px solid #4b3d53; border-radius:12px; background:rgba(30,27,39,.8); }
.math-example summary { color:#f7e8f8; font-weight:730; cursor:pointer; }
.math-example p { margin:15px 0 0; font-size:14px; }
.math-errors { padding:clamp(25px,4vw,42px); border-radius:18px; background:linear-gradient(120deg,#392435,rgba(29,23,36,.83)); }
.math-error-count,.math-skill { color:#e3a6d7 !important; font-size:12px !important; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.math-error-title { margin-bottom:8px; }
.math-error-explain { max-width:800px; padding:14px 17px; border-left:2px solid #e0a8db; color:#f5e5f6 !important; background:rgba(255,255,255,.05); }
.math-error-explain[hidden],.math-reveal[hidden],.math-next[hidden] { display:none; }
.math-errors button,.math-next,.math-reverse-options button,.math-next-case,.math-options button { min-height:44px; padding:10px 16px; border:1px solid #725c80; border-radius:10px; color:#fff5fe; background:#372b45; font:650 15px/1.35 system-ui,sans-serif; cursor:pointer; }
.math-errors button:hover,.math-next:hover,.math-reverse-options button:hover,.math-next-case:hover,.math-options button:hover { border-color:#dbace9; background:#4a3659; }
.math-errors button:focus-visible,.math-next:focus-visible,.math-reverse-options button:focus-visible,.math-next-case:focus-visible,.math-options button:focus-visible,.math-example summary:focus-visible { outline:3px solid #e9b8e8; outline-offset:3px; }
.math-error-next { margin-left:10px; }
.math-guided,.math-train,.math-challenge { padding:clamp(25px,4vw,44px); border-radius:18px; background:rgba(32,27,43,.77); }
.math-activity { max-width:870px; padding:22px; border-radius:14px; background:rgba(13,12,22,.52); }
.math-progress { color:#cfc1db; font-size:13px; }
.math-prompt { margin:7px 0 18px; }
.math-options { display:grid; gap:9px; }
.math-options button { width:100%; text-align:left; }
.math-options button:disabled,.math-reverse-options button:disabled { opacity:.8; cursor:default; }
.math-options button[aria-pressed=true],.math-reverse-options button[aria-pressed=true] { border-color:#e4b0e8; background:#64416c; opacity:1; }
.math-feedback,.math-reverse-feedback { min-height:1.6em; margin:15px 0 10px !important; color:#e5d1ec !important; font-size:14px !important; }
.math-feedback.right,.math-reverse-feedback.right { color:#baf2d4 !important; }
.math-feedback.retry,.math-reverse-feedback.retry { color:#ffc2ce !important; }
.math-summary { max-width:900px; padding:28px; border-radius:15px; background:rgba(45,35,54,.54); }
.math-identities .math-hero { grid-template-columns:1.4fr .6fr; background:radial-gradient(circle at 82% 18%,rgba(173,89,151,.18),transparent 40%),rgba(35,26,42,.78); }
.math-identities .math-square-pieces { width:min(100%,510px); aspect-ratio:1; grid-template-columns:1fr 1fr; }
.math-identities .math-square-pieces span { background:#503453; }
.math-identities .math-square-pieces span:nth-child(2),.math-identities .math-square-pieces span:nth-child(3) { background:#744c75; }
.math-factoring .math-hero { grid-template-columns:1fr .9fr; background:radial-gradient(circle at 88% 10%,rgba(124,76,158,.2),transparent 35%),rgba(29,25,44,.79); }
.math-factoring .math-hero-symbol { font-size:clamp(25px,3.3vw,44px); }
.math-reverse-expression { width:max-content; max-width:100%; margin:22px 0; padding:14px 20px; border-radius:12px; color:#fff !important; background:#583d68; font:clamp(26px,3vw,37px)/1.3 Georgia,serif !important; overflow-wrap:anywhere; }
.math-reverse-options { display:grid; gap:10px; max-width:680px; }
.math-reverse-options button { text-align:left; }
@media(max-width:740px){.math-hero,.math-identities .math-hero,.math-factoring .math-hero,.math-goals { grid-template-columns:1fr; }.math-goals ul,.math-examples > div { grid-template-columns:1fr; }.math-hero-symbol { text-align:left; }.math-activity { padding:15px; }.math-error-next { margin:10px 0 0; }}
@media(prefers-reduced-motion:reduce){.math-path *, .math-path *::before,.math-path *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }}
