/* Sael Games: shared visual hierarchy and interaction states. */
.games-page{--game-ink:#15243b;--game-muted:#596980;--game-blue:#0758a8;--game-bright:#0869ce;--game-line:#dbe4ef;--game-soft:#edf4fc;background:#f7f9fc;color:var(--game-ink);line-height:1.55}
.games-page::before{z-index:0;opacity:.25}
.games-header,.games-main,.games-footer{position:relative}
.games-header{max-width:1160px;margin:auto;border-bottom:1px solid var(--game-line);background:#ffffffd9}
.games-header nav{display:flex;align-items:center;font-weight:700;font-size:.8rem}
.games-main{max-width:1104px;margin:auto;padding:28px 28px 48px;min-height:calc(100svh - 162px)}
.games-footer{max-width:1048px;margin:auto;padding:22px 0 28px;border-top:1px solid var(--game-line);display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--game-muted);font-size:.75rem}
.games-footer p{margin:0}.games-footer>span{font-weight:800;letter-spacing:.1em;color:var(--game-blue)}
.games-page h1,.games-page h2{letter-spacing:-.045em;line-height:1.15}
.games-kicker{display:block;font-size:.7rem;font-weight:800;letter-spacing:.14em;color:var(--game-blue);line-height:1.6}
.intro{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;margin-bottom:24px;padding:28px 34px;border:1px solid #d3e3f6;border-radius:22px;background:#eef5ff}
.intro .games-kicker{display:inline-flex;align-items:center;gap:9px}
.intro .games-kicker::before{content:"";width:7px;height:7px;background:var(--game-blue);border-radius:50%}
.intro h1{font-size:clamp(2.2rem,4.5vw,3.25rem);margin:8px 0 0;max-width:680px;line-height:1.12}
.intro h1 span{color:var(--game-bright)}
.intro-art{width:126px;height:126px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.intro-art>span{display:grid;place-items:center;border:1px solid #c8daef;border-radius:16px;background:#fff;color:var(--game-blue);font-size:2.4rem;font-weight:700;box-shadow:0 3px 0 #d7e5f5}
.intro-art>span:first-child{background:var(--game-blue);border-color:var(--game-blue);color:#fff;box-shadow:0 3px 0 #06396d}
.intro-art>span:last-child{background:#ffdb52;border-color:#ffdb52;box-shadow:0 3px 0 #e7c440}
.intro-art .division-symbol{display:block;width:1em;height:1em}
.ui-icon{width:20px;height:20px;display:inline-block;flex:none;vertical-align:middle}
.steps{display:flex;align-items:center;list-style:none;margin:0 0 28px;padding:0;color:var(--game-muted);font-size:.78rem;gap:0}
.steps li{display:flex;align-items:center;gap:8px;white-space:nowrap}
.steps li+li::before{content:"";width:32px;height:1px;margin:0 14px 0 6px;background:#ced9e7}
.steps b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--game-line);background:#fff;font-size:.72rem}
.steps .ui-icon{width:16px;height:16px}
.steps [aria-current=step]{color:var(--game-blue);font-weight:800}
.steps [aria-current=step] b{background:var(--game-blue);border-color:var(--game-blue);color:#fff}
.steps .is-complete{color:var(--game-blue)}.steps .is-complete b{background:#e3effc;border-color:#c4daf3}
.section-top{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px}
.section-top h2{font-size:1.65rem;margin:0}.section-top p{font-size:.78rem;color:var(--game-muted);margin:0}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.game-card{display:grid;grid-template-columns:48px minmax(0,1fr);align-content:center;align-items:center;gap:16px;position:relative;min-height:124px;padding:23px 32px 23px 22px;border:1px solid var(--game-line);border-radius:16px;background:#fff;box-shadow:0 3px 0 #e6ecf4;cursor:pointer;color:var(--game-ink);text-align:left;transition:border-color .15s,box-shadow .15s,transform .15s}
.game-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#eaf3ff;color:var(--game-blue);font-size:1.7rem;font-weight:700}
.game-copy{min-width:0}.game-card strong{display:block;font-size:1.08rem;line-height:1.3;margin:0 0 6px;font-weight:800;letter-spacing:-.025em}
.game-card small{display:block;color:var(--game-muted);font-size:.76rem;line-height:1.55}
.card-arrow{position:absolute;right:12px;top:14px;color:#768ba6}.card-arrow .ui-icon{width:15px;height:15px}
.game-card:last-child:nth-child(3n + 1){grid-column:1/-1;min-height:92px;padding-top:18px;padding-bottom:18px;background:#f0f6ff;border-color:#cbdcf1}
.game-card:last-child:nth-child(3n + 1) .card-arrow{top:calc(50% - 10px);right:22px}.game-card:last-child:nth-child(3n + 1) .game-symbol{background:#fff}
.back{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--game-muted);padding:8px 0;cursor:pointer;font-size:.8rem;font-weight:700;min-height:44px;margin:0 0 20px}
.back .ui-icon{width:17px;height:17px}
#app[data-screen=levels],#app[data-screen=count]{max-width:780px;margin:auto}
.setup-header{margin:0 0 26px}.setup-header h1{font-size:clamp(1.9rem,4vw,2.65rem);margin:9px 0 12px}
.setup-header p{color:var(--game-muted);font-size:.9rem;margin:0}
.level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.level-card{display:flex;flex-direction:column;justify-content:center;gap:12px;position:relative;min-height:170px;border:1px solid var(--game-line);border-radius:16px;background:#fff;padding:26px;text-align:left;cursor:pointer;color:var(--game-ink);box-shadow:0 3px 0 #e6ecf4;transition:border-color .15s,box-shadow .15s,transform .15s}
.level-card::before{content:"";width:30px;height:4px;background:#bcd6f5;border-radius:9px;position:absolute;right:22px;top:23px}
.level-card:nth-child(2)::before{background:#4e90d8}.level-card:nth-child(3)::before{background:#0758a8}
.level-number{font-size:.8rem;font-weight:700;color:var(--game-blue);line-height:1.4}.level-card h2{font-size:2rem;line-height:1.2;margin:0}
.panel{padding:32px;background:#fff;border:1px solid var(--game-line);border-radius:22px;box-shadow:0 10px 32px #12305a06}
.count-panel{max-width:100%}.count-panel h2{font-size:1.1rem;margin:0 0 22px}
.count-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}
.count-choice{position:relative;min-height:94px;border:1px solid #cbd8e8;border-radius:13px;background:#fff;cursor:pointer;color:var(--game-ink);box-shadow:0 3px 0 #e6ecf4;transition:background .15s,border-color .15s}
.count-choice strong{display:block;font-size:1.8rem;line-height:1.3;font-weight:800}.count-choice small{display:block;font-size:.73rem;color:var(--game-muted)}
.count-choice[aria-pressed=true]{background:var(--game-blue);border-color:var(--game-blue);color:#fff;box-shadow:0 3px 0 #06396d}.count-choice[aria-pressed=true] small{color:#e0edff}
.custom-count{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.85rem;padding:20px 0 0;border-top:1px solid #e7edf5}
.custom-count label{font-weight:700}.custom-count small{display:block;color:var(--game-muted);font-size:.73rem;font-weight:500;margin-top:4px}
.custom-count input{width:88px;padding:10px 12px;border:1px solid #b4c5db;border-radius:10px;min-height:46px;text-align:center;font-size:1rem;color:var(--game-ink);background:#fff}
.count-error{color:#a92a35;font-size:.8rem;min-height:1.3em;margin:12px 0}
.games-page .button{min-height:50px;border-radius:11px;font-size:.9rem;gap:12px;letter-spacing:0;transition:background .15s,box-shadow .15s;transform:none}
.games-page .button-primary{background:var(--game-blue);box-shadow:0 3px 0 #06396d;color:#fff}
.games-page .button-ghost{border-color:#cbd8e8;color:var(--game-ink);box-shadow:0 3px 0 #e6ecf4}
.start-button{width:100%;min-height:54px!important}
.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.game-toolbar .back{margin:0}.sound-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;min-height:44px;border:1px solid var(--game-line);border-radius:10px;background:#fff;font-size:.76rem;cursor:pointer;color:var(--game-muted);font-weight:700}
.sound-button .ui-icon{width:17px;height:17px}.sound-button[aria-pressed=true]{color:var(--game-blue)}
.play-wrap{max-width:760px;margin:auto}.games-main:has(>#app[data-screen=play]){padding-top:14px;padding-bottom:28px}
#app[data-screen=play] .panel{padding:24px}
.stats{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:24px;align-items:center;margin-bottom:16px}
.stats p{font-size:.72rem;color:var(--game-muted);margin:0 0 4px;line-height:1.45}.stats strong{font-family:'DM Mono',monospace;font-variant-numeric:tabular-nums;font-size:1.05rem}
.stats .session-name{font-family:inherit;font-size:1rem;font-weight:800;letter-spacing:-.02em}
.stats>div:not(:first-child){text-align:right}.stats>div:last-child{padding-left:20px;border-left:1px solid #e3eaf3}
.progress{appearance:none;display:block;width:100%;height:6px;border:0;border-radius:20px;overflow:hidden;background:#e8eef7;margin:0 0 20px}
.progress::-webkit-progress-bar{background:#e8eef7}.progress::-webkit-progress-value{background:var(--game-bright);border-radius:20px}.progress::-moz-progress-bar{background:var(--game-bright);border-radius:20px}
.question-stage{display:flex;flex-direction:column;justify-content:center;min-height:140px;margin:0 0 22px;padding:18px 12px;border-radius:14px;background:#f3f7fd}
.question-caption{font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;text-align:center;color:var(--game-muted);margin:0 0 10px}
.equation{max-width:100%;text-align:center;font-size:clamp(1.9rem,4.5vw,3rem);line-height:1.5;letter-spacing:-.03em;margin:0;overflow-wrap:anywhere;color:#102c53}
.answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.answer{display:flex;align-items:center;gap:14px;padding:15px 16px;border:2px solid #d7e1ef;border-radius:12px;background:#fff;box-shadow:0 3px 0 #e5ebf4;min-height:72px;font-size:1.3rem;font-weight:800;cursor:pointer;color:var(--game-ink);text-align:left;transition:background .12s,border-color .12s,box-shadow .12s}
.answer-key{flex:none;width:28px;height:28px;border-radius:7px;background:#f0f4fa;display:grid;place-items:center;color:var(--game-muted);font-size:.72rem;font-family:'DM Mono',monospace}
.answer:disabled{cursor:default;opacity:1}
.answer.is-pending{border-color:var(--game-blue);background:#edf5ff;box-shadow:0 3px 0 #b6cde9}.answer.is-pending .answer-key{color:#fff;background:var(--game-blue)}
.answer.correct{border-color:#16815c;background:#eaf8ef;color:#136145;box-shadow:0 3px 0 #c4e4d2}.answer.wrong{border-color:#c43e4b;background:#fff0f1;color:#9c2531;box-shadow:0 3px 0 #f1cbd0}
.answer.correct .answer-key{background:#16815c;color:#fff}.answer.wrong .answer-key{background:#c43e4b;color:#fff}
.feedback{display:flex;flex-wrap:wrap;align-items:center;align-content:center;gap:4px 12px;min-height:70px;padding:12px 0;font-size:.84rem;line-height:1.6;margin:8px 0 4px;color:var(--game-muted)}
.feedback.good{color:#136145;font-weight:700}.feedback.bad{color:#9c2531}
.next-button{width:100%}.games-page .button:disabled{background:#edf1f7;color:#647189;border-color:#e4eaf2;box-shadow:none;cursor:default;transform:none}
.keyboard-tip{text-align:center;color:var(--game-muted);font-size:.72rem;margin:16px 0 0}
.result-header{text-align:center}.result-medal{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 18px;border-radius:20px;background:#fff3c4;color:#7d5a06}.result-medal .ui-icon{width:34px;height:34px}
.result-header h1{font-size:clamp(2.2rem,5vw,3rem);margin:8px 0 12px}.result-header p{color:var(--game-muted);font-size:.9rem;max-width:460px;margin:0 auto 20px}
.result-header .tag{display:inline-block;margin:0;border-radius:8px;font-family:inherit;letter-spacing:0;text-transform:none;font-size:.73rem;padding:6px 12px}
.result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:26px 0 16px}
.result-stat{padding:18px 8px;text-align:center;border:1px solid var(--game-line);border-radius:13px;background:#f7f9fd}
.result-stat strong{display:block;color:var(--game-blue);font-size:1.8rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.4}.result-stat span{font-size:.74rem;color:var(--game-muted)}
.result-stat:first-child{background:var(--game-blue);border-color:var(--game-blue)}.result-stat:first-child strong{color:#fff}.result-stat:first-child span{color:#e1edff}
.result-actions{display:flex;gap:12px}.result-actions .button{flex:1}
.review{margin-top:28px;border-top:1px solid var(--game-line);padding-top:16px}.review summary{cursor:pointer;font-size:.88rem;font-weight:800;color:var(--game-blue);min-height:44px;padding:10px 0}.review ol{padding-left:22px;margin-bottom:0}
.review li{padding:14px 0;border-bottom:1px solid #e8edf5;font-size:.85rem;overflow-wrap:anywhere}.review li:last-child{border:0}.review small{display:block;color:var(--game-muted);margin-top:5px}.review-good{color:#136145}.review-bad{color:#9c2531}
.exit-dialog{max-width:420px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid var(--game-line);border-radius:20px;color:var(--game-ink)}
.exit-dialog::backdrop{background:#14233d80}.exit-dialog h2{font-size:1.6rem}.exit-dialog p{color:var(--game-muted);font-size:.9rem}.exit-dialog .button-row{margin-top:24px}
.games-page :focus-visible{outline:3px solid var(--game-bright);outline-offset:4px}.games-page [tabindex='-1']:focus{outline:none}
@media(hover:hover){
 .game-card:hover,.level-card:hover{border-color:#6e9fd8;box-shadow:0 4px 0 #bfd3ec;transform:translateY(-2px)}
 .game-card:hover .card-arrow{color:var(--game-blue)}
 .answer:hover:not(:disabled){border-color:var(--game-blue);background:#f1f7ff;box-shadow:0 3px 0 #b6cde9}
 .back:hover,.games-footer a:hover{color:var(--game-blue)}
 .games-page .button-primary:hover:not(:disabled){background:#064b90}
 .games-page .button-ghost:hover{background:#f3f7fd}
 .count-choice:hover:not([aria-pressed=true]){border-color:var(--game-blue);background:#f5f9ff}
}
.game-card:active,.level-card:active{transform:translateY(1px);box-shadow:0 1px 0 #cbdcf0}
@media(max-width:1000px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-card{min-height:124px}.games-footer{margin:0 28px}.intro h1{font-size:2.7rem}}
@media(max-width:600px){
 .games-main{padding:22px 20px 36px}.intro{padding:23px;border-radius:18px;grid-template-columns:1fr;margin-bottom:22px}.intro h1{font-size:2.15rem}.intro-art{display:none}
 .steps{font-size:.68rem;margin-bottom:24px}.steps li{gap:6px}.steps b{width:24px;height:24px;font-size:.65rem}.steps li+li::before{width:15px;margin:0 8px 0 2px}
 .section-top{align-items:center;gap:12px;margin-bottom:16px}.section-top h2{font-size:1.35rem}.section-top p{max-width:82px;font-size:.7rem;text-align:right}
 .category-grid{gap:12px}.game-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;padding:18px 15px;min-height:154px;border-radius:14px}
 .game-symbol{width:40px;height:40px;font-size:1.5rem;border-radius:11px}.game-card strong{font-size:1rem;margin-bottom:5px}.game-card small{font-size:.73rem}
 .card-arrow{top:19px;right:13px}.game-card:last-child:nth-child(3n + 1){display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;min-height:94px;padding:18px 34px 18px 16px;gap:14px}.game-card:last-child:nth-child(3n + 1) .card-arrow{right:12px}
 .back{margin-bottom:16px;font-size:.76rem}.setup-header h1{font-size:1.9rem}.setup-header{margin-bottom:24px}.setup-header p{font-size:.85rem}
 .level-grid{grid-template-columns:1fr;gap:14px}.level-card{min-height:98px;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;padding:22px}.level-card h2{font-size:1.65rem}.level-number{font-size:.78rem}.level-card::before{display:none}
 .panel{padding:24px 18px;border-radius:18px}.count-choice{min-height:86px}.count-choices{gap:10px}.count-choice strong{font-size:1.65rem}.count-choice small{font-size:.69rem}.count-panel h2{font-size:1rem}.custom-count{font-size:.8rem;gap:12px}.custom-count input{width:72px}.custom-count small{font-size:.72rem}
 .games-main:has(>#app[data-screen=play]){padding:10px 16px 26px}.game-toolbar{margin-bottom:8px}.game-toolbar .back{font-size:.73rem}.sound-button{font-size:.7rem;gap:6px;padding:8px 10px}
 #app[data-screen=play] .panel{padding:20px 16px}.stats{gap:12px;margin-bottom:14px}.stats p{font-size:.64rem}.stats strong{font-size:.95rem}.stats .session-name{font-size:.82rem}.stats>div:last-child{padding-left:12px}
 .progress{margin-bottom:16px}.question-stage{min-height:120px;padding:16px 10px;margin-bottom:18px}.question-caption{font-size:.64rem;margin-bottom:8px}.equation{font-size:1.9rem}
 .answers{gap:12px}.answer{min-height:66px;font-size:1.15rem;padding:12px 10px;gap:10px}.answer-key{width:24px;height:24px;font-size:.67rem}.feedback{font-size:.78rem;min-height:70px;margin-top:6px}.keyboard-tip{display:none}
 .result-stats{gap:8px}.result-stat{padding:14px 5px}.result-stat strong{font-size:1.45rem}.result-stat span{font-size:.65rem}.result-actions{flex-direction:column}.result-actions .button{width:100%}
 .games-footer{margin:0 20px;gap:12px;font-size:.68rem;padding:20px 0 24px}.games-footer p{display:none}
}
@media(max-width:359px){.games-main{padding-left:16px;padding-right:16px}.intro{padding:20px}.intro h1{font-size:1.85rem}.steps li+li::before{width:10px;margin-right:6px}.game-card{padding:16px 12px;min-height:160px}.game-card strong{font-size:.94rem}.section-top h2{font-size:1.2rem}.stats{gap:8px}.stats>div:last-child{padding-left:8px}.answer{gap:8px;padding:12px 8px}.answer-key{width:22px;height:22px}.level-card{padding:20px}.custom-count input{width:65px}}
@media(prefers-reduced-motion:reduce){html:has(.games-page){scroll-behavior:auto}.games-page *{animation:none!important;transition:none!important}.game-card:hover,.level-card:hover{transform:none}}

/* Notação matemática independente dos glifos de operações da fonte. */
.math-notation{display:inline-block;max-width:100%;vertical-align:middle;font-family:'Cambria Math','STIX Two Math','Noto Sans Math',Georgia,serif;font-variant-numeric:lining-nums tabular-nums;font-weight:400;letter-spacing:0;line-height:1.45}
.math-visual{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.12em .17em;max-width:100%;vertical-align:middle}
.math-number,.math-character,.math-power{white-space:nowrap}
.math-operator{display:inline-block;flex:none;width:.72em;height:.82em;overflow:visible}
.math-power{display:inline-flex;align-items:baseline;line-height:1.4}
.math-power sup{position:relative;top:-.48em;margin-left:.04em;font-size:.6em;line-height:1;vertical-align:baseline}
.math-root{position:relative;display:inline-flex;flex:none;align-items:center;height:1.25em;line-height:1;font-size:1em;font-style:normal;white-space:nowrap;vertical-align:middle}
.math-root-outline{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.math-radicand{display:block;padding:.2em .12em .05em .76em;line-height:1}
.math-root-placeholder{display:block;width:.3em;height:1em}
.math-root-degree{position:absolute;top:.02em;left:.12em;font-size:.4em;line-height:1}
.intro-art .math-notation{font-size:1em;line-height:1}
.equation .math-notation{width:100%;font-size:1.05em}
.answer .math-notation{font-size:1.15em}
.answer>span:last-child{min-width:0}
.game-symbol .math-notation{line-height:1}
.feedback .math-notation,.review .math-notation{font-size:1.1em}
@media(max-width:520px){.equation{font-size:1.9rem}.equation .math-visual{gap:.12em .12em}}


/* Algebra uses the same round controls, with legible grouped equations. */
.game-symbol:has(.math-character){font-size:1.35rem}
.level-copy{min-width:0}.level-copy small{display:block;margin-top:10px;max-width:24ch;font-size:.8rem;line-height:1.55;font-weight:500;color:var(--game-muted)}
.equation-algebra{font-size:clamp(1.2rem,3.5vw,2rem);letter-spacing:0}
.equation-sides{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.2em .3em}
.equation-sides>.math-notation{width:auto}
.equation-sides .math-visual{flex-wrap:nowrap;gap:.12em}
.system-notation{position:relative;display:inline-flex;padding-left:.85em;text-align:left}
.system-brace{position:absolute;left:0;top:0;width:.65em;height:100%}
.system-lines{display:grid;gap:.3em}
.system-lines>.math-notation{width:auto}
.system-lines .math-visual{justify-content:flex-start;flex-wrap:nowrap;gap:.12em}
.solution-values{display:inline-flex;flex-wrap:wrap;gap:.25em .8em}
.solution-values .math-visual{flex-wrap:nowrap;gap:.12em}
.answers-system .answer{font-size:1.05rem;align-items:center}
.answers-system .solution-values{display:grid;gap:.2em}
.review-problem,.review-solution{display:block;margin-top:10px}
.review-problem .equation-sides{justify-content:flex-start}
.review-problem .system-lines{gap:.3em}
@media(max-width:600px){
 .game-card:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;min-height:94px;padding:18px 34px 18px 16px;gap:14px;background:#f0f6ff;border-color:#cbdcf1}
 .game-card:last-child:nth-child(odd) .card-arrow{top:calc(50% - 10px);right:12px}
 .game-card:last-child:nth-child(odd) .game-symbol{background:#fff}
 .level-copy{text-align:right}.level-copy small{font-size:.74rem;max-width:22ch;margin-top:6px}
 .equation-algebra{font-size:clamp(1.15rem,4.7vw,1.65rem)}
 .answers-system .answer{font-size:1rem;gap:8px}
}

/* Exact fractions and worked solutions share the existing game layout. */
.math-fraction{display:inline-grid;grid-template-rows:auto auto;align-items:center;text-align:center;line-height:1.05;vertical-align:middle;font-size:.87em;min-width:.8em}
.math-numerator{padding:0 .16em .12em;border-bottom:.065em solid currentColor}
.math-denominator{padding:.12em .16em 0}
.game-symbol .math-fraction{font-size:.64em}
.game-symbol.game-symbol-letters{font-size:1rem;font-family:'DM Mono',monospace}
.game-symbol-letters .math-notation{font-family:inherit}
.game-symbol-letters .math-visual{gap:0;flex-wrap:nowrap}
.equation-fraction{font-size:clamp(1.6rem,4vw,2.5rem);padding:6px 0}
.equation-fraction .math-visual{row-gap:.45em}
.question-stage:has(.equation-prompt){padding:24px}
.equation-prompt{font-size:clamp(1.1rem,2.5vw,1.5rem);font-weight:700;line-height:1.7;letter-spacing:0;text-align:left;text-wrap:pretty}
.equation-worked{font-size:clamp(1.3rem,3.5vw,2rem)}
.worked-steps{list-style:none;display:grid;gap:8px;padding:0;margin:18px 0 0;text-align:left}
.worked-steps>li{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px;border:1px solid #dce6f3;border-radius:9px;background:#fff;color:#102c53}
.worked-step-label{font:700 .7rem Manrope,sans-serif;color:#566176;white-space:nowrap}
.worked-steps .math-notation{font-size:1.25rem}
.worked-steps .math-visual{justify-content:flex-start}
.answer-text{font-size:1em;line-height:1.4;overflow-wrap:anywhere}
.answer-currency{white-space:nowrap;overflow-wrap:normal;font-size:.95em}
.answer-explanation{display:block;width:100%;font-size:.8rem;font-weight:500;line-height:1.65;text-align:left;color:#344765}
.feedback:has(.answer-explanation){height:auto;min-height:90px;flex-wrap:wrap;gap:8px;padding:14px 0}
.review-explanation{display:block;margin:9px 0;color:var(--game-muted);line-height:1.65}
.review .worked-steps>li{padding:8px 10px;border:1px solid #dce6f3}
.review .worked-steps .math-notation{font-size:1rem}
@media(max-width:600px){
 .question-stage:has(.equation-prompt){padding:18px 14px}
 .equation-fraction{font-size:1.7rem}.equation-worked{font-size:1.3rem}
 .worked-steps>li{grid-template-columns:46px minmax(0,1fr);gap:6px;padding:9px 8px}
 .worked-steps .math-notation{font-size:1.05rem}.worked-step-label{font-size:.63rem}
 .worked-steps .math-visual{gap:.1em .1em}.answer-explanation{font-size:.75rem}
}
@media(max-width:359px){.answers:has(.answer-currency){grid-template-columns:1fr}}


.practice-notice{margin:0 0 16px;padding:10px 14px;border:1px solid #edce68;border-radius:12px;background:#fff3c4;color:#715200;font-size:.8rem;font-weight:700;line-height:1.5}
