#odakMathDialog{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:#f4f8fc;padding:24px;border:0;box-shadow:0 24px 80px #15325240;scrollbar-gutter:stable}
#odakMathDialog .math-head{border-bottom:1px solid #d9e5f1;padding-bottom:16px;margin-bottom:12px}
#odakMathDialog .math-head h2{margin:0;font-weight:850;letter-spacing:-.7px;color:#17375c}
#odakMathDialog>.math-head+p{color:#536e89;line-height:1.6;font-size:14px}
#odakMathDialog .math-settings{padding:16px;background:white;border:1px solid #dce7f0;border-radius:16px;gap:16px}
#odakMathDialog label{font-size:13px;font-weight:750;color:#456482}
#odakMathDialog select{background:#f6f9fd;color:#17375c;font-weight:600}
#odakMathDialog button:focus-visible,#odakMathDialog select:focus-visible{outline:3px solid #f6b832;outline-offset:3px}
#odakMathDialog .math-primary{background:#1769cf;border:0;padding:12px 24px;font-weight:750;box-shadow:0 4px 10px #1769cf20}
#odakMathDialog .math-work-area{margin-top:18px}
#odakMathDialog .math-welcome{border:1px dashed #aec7df;border-radius:18px;padding:30px;background:#edf5ff;text-align:center;color:#244d79}
#odakMathDialog .math-welcome strong{font-size:22px}
#odakMathDialog .math-welcome p{font-size:14px;line-height:1.6}
#odakMathDialog .math-progress-label{font-size:13px;font-weight:700;color:#486887}
#odakMathDialog progress{display:block;width:100%;height:8px;border:0;border-radius:9px;overflow:hidden;accent-color:#209c84}
#odakMathDialog progress::-webkit-progress-bar{background:#dfebf6}
#odakMathDialog progress::-webkit-progress-value{background:#209c84;border-radius:9px}
#odakMathDialog .math-layout>div:first-child{background:#fff;padding:20px;border:1px solid #dce7f0;border-radius:18px;min-width:0}
#odakMathDialog .math-layout h3{font-size:clamp(22px,3vw,32px);line-height:1.45;margin:16px 0 20px;font-weight:800;overflow-wrap:anywhere}
#odakMathDialog .math-layout p{color:#4a6480;font-size:14px;line-height:1.6}
#odakMathDialog .math-answers button{background:#edf5ff;color:#174777;font-size:23px;font-weight:800;min-height:68px}
#odakMathDialog .math-feedback{font-size:16px;font-weight:650;margin-top:10px}
#odakMathDialog .math-picked-correct{background:#e2f7ed!important;color:#126947!important;border-color:#35a67c!important}
#odakMathDialog .math-picked-wrong{background:#fff0ef!important;color:#a43832!important;border-color:#d8776f!important}
#odakMathDialog .math-road{background:repeating-linear-gradient(90deg,transparent 0,transparent calc(100% / var(--lanes) - 2px),#d4e1ec calc(100% / var(--lanes) - 2px),#d4e1ec calc(100% / var(--lanes))),linear-gradient(#263f59,#385976);padding:16px 12px 122px;border:8px solid #d5eacb;min-height:250px}
#odakMathDialog .math-road button{align-self:start;font-size:25px;font-weight:800;min-height:64px;color:#183b61;border-bottom:3px solid #c5d8e9!important;box-shadow:0 4px 0 #112c4240}
#odakMathDialog .math-road img{height:100px;width:80px;background:white;border-radius:12px;box-shadow:0 4px 12px #14283f50}
#odakMathDialog .math-puzzle{background:white;box-shadow:0 6px 16px #15325212}
#odakMathDialog .math-covers>div{background:linear-gradient(145deg,#276fba,#184e8f);color:white;border:2px solid #cfe1f4;text-shadow:0 1px 2px #1236;font-weight:800}
#odakMathDialog .math-covers>div:nth-child(3n){background:linear-gradient(145deg,#29a28d,#18756a)}
#odakMathDialog .math-history{border-top:1px solid #dce7f0;padding-top:14px;margin-top:20px;font-size:12px;line-height:1.6}
@media(max-width:650px){#odakMathDialog{padding:14px;width:96vw;max-height:94dvh}#odakMathDialog .math-settings{padding:12px;gap:10px}#odakMathDialog .math-layout>div:first-child{padding:14px}#odakMathDialog .math-head h2{font-size:19px}#odakMathDialog .math-road{padding-left:6px;padding-right:6px;gap:6px}#odakMathDialog .math-road button{font-size:21px;padding:8px}}
@media(prefers-reduced-motion:reduce){#odakMathDialog .math-road img{transition:none}}
#odakMathDialog .math-configuration summary{cursor:pointer;color:#315a80;font-weight:700;padding:10px 0;margin-bottom:8px}#odakMathDialog .math-head{position:sticky;top:-24px;background:#f4f8fc;z-index:2}@media(max-width:650px){#odakMathDialog .math-head{top:-14px}}
#odakMathDialog .math-written-answer label{display:grid;gap:8px;font-size:16px}#odakMathDialog .math-written-answer input{width:100%;max-width:300px;min-height:60px;padding:12px;font:700 26px system-ui;border:2px solid #b6cbe4;border-radius:12px}#odakMathDialog .math-written-answer input:focus{outline:3px solid #f6b832;outline-offset:2px}
#odakMathDialog .math-written-road{min-height:126px;height:126px;padding:0;margin-top:12px}#odakMathDialog .math-written-road img{height:92px}#odakMathDialog .math-written-answer form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}#odakMathDialog .math-feedback{min-height:64px}
.math-placement{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:24px;align-items:start}.math-placement-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));aspect-ratio:4/5;border:4px solid #183153;border-radius:16px;overflow:hidden;background:white}.math-piece-slot{min-width:0;border-radius:0!important;background:#e8f1ff;color:#183153;font-weight:700;font-size:clamp(15px,3vw,24px);border:1px dashed #87a6ce!important}.math-piece-slot.is-placed{opacity:1;cursor:default!important;border:0!important;background-repeat:no-repeat}.math-piece-tray{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.math-answer-piece{background:#fff;color:#12539b;font-size:24px!important;font-weight:800;box-shadow:0 4px 0 #b4cce8;min-height:64px!important}.math-answer-piece[aria-pressed=true]{outline:3px solid #1265c7;background:#dcecff}.math-answer-piece:disabled{opacity:.3;box-shadow:none}.math-placement button:focus-visible{outline:3px solid #ed9d12;outline-offset:-4px}@media(max-width:600px){.math-placement{grid-template-columns:1fr;gap:16px}.math-placement-board{width:min(340px,100%);justify-self:center}.math-piece-tray{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.math-answer-piece{padding:4px!important;font-size:19px!important;min-height:48px!important}}
.math-domino{display:flex;width:min(320px,100%);margin:12px auto;border:3px solid #183153;border-radius:16px;background:#fff;box-shadow:0 6px 0 #c5d3e4;overflow:hidden}.math-domino-half{width:50%;aspect-ratio:1;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:10%;padding:12%;font-size:48px;place-content:center}.math-domino-half+div{border-left:2px solid #183153}.math-domino-half .is-dot{background:#183153;border-radius:50%}.math-domino-path{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin:16px 0}.math-domino-path span{text-align:center;padding:10px 0;border:1px dashed #9ab2cf;border-radius:7px;color:#52647a}.math-domino-path .is-complete{background:#d8f5e5;color:#146c3a;border-style:solid}@media(max-width:450px){.math-domino-path{grid-template-columns:repeat(5,minmax(0,1fr))}}
.math-dice-row{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:20px 0}.math-die{width:86px;height:86px;background:#fff;border:2px solid #183153;border-radius:16px;box-shadow:0 5px 0 #c5d3e4;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:7px;padding:12px}.math-die .is-dot{border-radius:50%;background:#183153}.math-written-answer[hidden]{display:none!important}
.math-auto-note{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#52647a;min-height:52px}.math-dice-scene{width:76px;height:76px;perspective:500px;margin:16px 6px}.math-dice-cube{width:100%;height:100%;position:relative;transform-style:preserve-3d;transform:rotateX(0deg) rotateY(0deg);animation:math-toss 1s ease-out}.math-cube-face{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:12px;gap:6px;border:2px solid #b7c8df;border-radius:12px;background:#fff;backface-visibility:hidden}.math-cube-face .is-dot{border-radius:50%;background:#183153}.math-face-0{transform:translateZ(38px)}.math-face-1{transform:rotateY(180deg) translateZ(38px)}.math-face-2{transform:rotateY(90deg) translateZ(38px)}.math-face-3{transform:rotateY(-90deg) translateZ(38px)}.math-face-4{transform:rotateX(90deg) translateZ(38px)}.math-face-5{transform:rotateX(-90deg) translateZ(38px)}@keyframes math-toss{0%{transform:translateY(-24px) rotateX(250deg) rotateY(280deg)}65%{transform:translateY(6px) rotateX(30deg) rotateY(45deg)}100%{transform:translateY(0) rotateX(0) rotateY(0)}}
.math-domino-path{position:relative;grid-template-columns:repeat(5,minmax(0,1fr));gap:26px 8px;padding:22px 12px;border:2px solid #bbdfc7;border-radius:22px;background:linear-gradient(155deg,#edf9ff,#def5df);isolation:isolate}.math-domino-path span{position:relative;justify-self:center;width:42px;height:48px;padding:10px 0;background:#fff;border:2px solid #a9b9cf;border-radius:9px;box-shadow:0 4px 0 #a9b9cf;font-weight:800;z-index:1}.math-domino-path span:nth-child(n+6){grid-row:2;grid-column:calc(11 - var(--stop) - 1)}.math-domino-path span:not(:nth-child(5)):not(:last-child)::after{content:'';position:absolute;top:20px;left:100%;width:calc((min(100vw, 1000px) - 100px)/5 - 25px);height:6px;background:#afceb7;z-index:-1}.math-domino-path span:nth-child(n+6)::after{left:auto;right:100%}.math-domino-path span:nth-child(5)::after{content:'';position:absolute;top:100%;left:17px;width:6px;height:30px;background:#afceb7;z-index:-1}.math-domino-path .is-current{outline:3px solid #f6b93b;outline-offset:4px;color:#134fb2}.math-domino-path .is-complete{background:#168552;color:#fff;border-color:#11673f;box-shadow:0 4px 0 #11673f}.math-domino-path span:last-child:not(.is-complete){color:#97490d;background:#fff1be}.math-domino-path{overflow:hidden}@media(prefers-reduced-motion:reduce){.math-dice-cube{animation:none}}
.math-picture-puzzle{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:24px;align-items:start}.math-puzzle-question{padding:20px;background:#fff;border:1px solid #cfdded;border-radius:18px}.math-question-large{font-size:clamp(26px,5vw,42px);font-weight:800;padding:20px 8px;text-align:center;background:#e8efff;border-radius:12px;color:#174c93}.math-picture-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,1fr);aspect-ratio:4/5;border:3px solid #183153;border-radius:14px;overflow:hidden;background:white}.math-picture-cell{min-width:0;padding:2px!important;border-radius:0!important;background:#19365e;color:white;font-size:clamp(16px,3vw,23px)!important;font-weight:700;border:1px solid #7592b4!important}.math-picture-cell.is-placed{opacity:1!important;border:0!important;background-repeat:no-repeat}.math-picture-cell:focus-visible{outline:3px solid #ffbc35;outline-offset:-4px}.math-puzzle-question [role=status]{min-height:52px;line-height:1.5}@media(max-width:650px){.math-picture-puzzle{grid-template-columns:1fr;gap:12px}.math-puzzle-question{padding:12px}.math-question-large{padding:10px}.math-picture-board{width:min(360px,100%);justify-self:center}}.math-domino-path span:nth-child(n+6):not(:last-child)::after{left:auto;right:100%}
.math-picture-tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.math-movable-piece{min-width:0;aspect-ratio:4/5;padding:3px!important;background-repeat:no-repeat;border:2px solid #afc2dc!important;display:flex;align-items:end;justify-content:center}.math-movable-piece span{background:#183153;color:white;border-radius:5px;padding:2px 7px;font-weight:800}.math-movable-piece[aria-pressed=true]{outline:3px solid #eeaa24;outline-offset:1px}.math-movable-piece:disabled{opacity:.2;cursor:default}.math-picture-cell{color:#a3bad7}.math-picture-puzzle{grid-template-columns:minmax(0,1fr) minmax(0,400px)}@media(max-width:650px){.math-picture-puzzle{grid-template-columns:1fr}.math-picture-tray{grid-template-columns:repeat(4,minmax(0,1fr))}.math-movable-piece{max-height:85px}}
.math-picture-board{overflow:visible;background:#d4e2ee;padding:0;border:0;border-radius:12px;box-shadow:0 0 0 6px #c3d3e5;margin:16px 8px}.math-picture-cell,.math-picture-cell.is-placed{position:relative;overflow:visible;border:0!important;background:transparent!important;isolation:isolate;min-height:0!important;color:#57718b;font-size:14px!important}.math-jigsaw-art{position:absolute;width:132%;height:125.6%;left:-16%;top:-12.8%;pointer-events:none;z-index:-1;overflow:visible}.math-picture-cell.is-placed{z-index:2}.math-picture-tray{gap:20px 16px;padding:16px 10px}.math-movable-piece{position:relative;overflow:visible;border:0!important;background:transparent!important;box-shadow:none!important;isolation:isolate;aspect-ratio:4/5;min-height:54px!important}.math-movable-piece span{position:relative;font-size:15px;z-index:1;background:#102d53;color:white;box-shadow:0 1px 4px #0006}.math-movable-piece[aria-pressed=true]{outline:none;filter:drop-shadow(0 0 3px #ed9d12);transform:translateY(-3px)}.math-movable-piece:focus-visible{outline:2px solid #1265c7;outline-offset:5px}.math-picture-puzzle{gap:30px}.math-puzzle-question{min-width:0}@media(max-width:650px){.math-picture-tray{gap:16px 12px}.math-picture-board{width:min(330px,calc(100% - 20px))}.math-picture-puzzle{gap:16px}.math-movable-piece{max-height:none}}@media(prefers-reduced-motion:reduce){.math-movable-piece{transition:none}}
.math-settings label[hidden]{display:none!important}
.math-balance-scene{position:relative;min-height:230px;padding:45px 18px 70px;background:linear-gradient(#e7f5ff,#f3faf5);border:1px solid #c9dcec;border-radius:20px;margin:16px 0;overflow:hidden}.math-balance-scene::after{content:'';position:absolute;bottom:12px;left:calc(50% - 40px);width:80px;height:95px;background:#456589;clip-path:polygon(45% 0,55% 0,65% 85%,100% 85%,100% 100%,0 100%,0 85%,35% 85%)}.math-balance-beam{position:relative;display:flex;justify-content:space-between;border-top:8px solid #456589;transform:rotate(var(--tilt,0deg));transition:transform .35s ease;z-index:1;margin:0 8px}.math-scale-pan{display:flex;align-items:center;justify-content:center;width:42%;min-height:70px;border:3px solid #637fa1;border-top:0;border-radius:0 0 28px 28px;background:#fff5cc;padding:14px 4px;font-size:clamp(14px,3vw,20px);color:#183153}.math-weight-bank,.math-balance-added{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.math-weight-bank button{background:#184b85;color:white;font-weight:800;min-width:52px}.math-balance-added{min-height:48px}.math-balance-added button{background:#e9f2ff;color:#183153}@media(prefers-reduced-motion:reduce){.math-balance-beam{transition:none}}
.math-focus-cards{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin:24px 0}.math-focus-cards button{min-width:65px;min-height:80px!important;font-size:28px!important;font-weight:800;background:#fff;color:#183153;box-shadow:0 5px 0 #b8cbe2}.math-focus-cards button[aria-pressed=true],.math-weight-bank button[aria-pressed=true]{outline:3px solid #f3af31;outline-offset:3px}
.math-picture-cell.is-target{z-index:4;outline:4px solid #f0a91e;outline-offset:-4px;filter:drop-shadow(0 0 5px #f0a91e)}.math-picture-cell.is-target .math-jigsaw-art{opacity:.7}
#odakMathDialog{width:min(1100px,98vw);max-width:98vw;max-height:96dvh;padding:16px;overscroll-behavior:contain}#odakMathDialog .math-head{top:-16px;z-index:10;padding:8px 0;margin:0 0 6px}#odakMathDialog .math-head h2{font-size:20px}#odakMathDialog.math-playing>.math-head+p{display:none}#odakMathDialog .math-work-area{margin-top:8px}#odakMathDialog .math-configuration summary{margin:0;padding:8px 0}#odakMathDialog .math-history{margin-top:8px;padding-top:8px}#odakMathDialog .math-layout{gap:12px;margin-top:8px}#odakMathDialog .math-layout>div:first-child{padding:12px}#odakMathDialog .math-layout h3{margin:8px 0;font-size:clamp(21px,3vw,28px)}#odakMathDialog .math-layout p{margin:6px 0}#odakMathDialog .math-feedback{padding:6px 0;min-height:48px;margin:6px 0;font-size:14px}#odakMathDialog .math-domino{width:200px;margin:8px auto}#odakMathDialog .math-domino-path{padding:10px 8px;gap:18px 6px;margin:8px 0}#odakMathDialog .math-balance-scene{min-height:180px;padding-top:28px;padding-bottom:56px;margin:8px 0}#odakMathDialog .math-balance-added{margin:6px 0}.math-focus-steps{display:flex;gap:6px;margin:12px 0;flex-wrap:wrap}.math-focus-steps span{flex:1;padding:8px;border-radius:8px;background:#e6edf5;color:#4c627d;font-size:13px}.math-focus-steps .is-active{background:#175eb5;color:white;font-weight:750}.math-focus-expression{text-align:center;padding:10px;border:1px dashed #a9bfdc;border-radius:10px;font-size:25px;font-weight:750;color:#234970}.math-focus-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}#odakMathDialog .math-focus-cards{margin:12px 0;gap:10px}#odakMathDialog .math-focus-cards button{min-height:62px!important;min-width:52px}.math-question-large{padding:12px 8px;font-size:30px}#odakMathDialog .math-picture-tray{max-width:340px;margin:auto}#odakMathDialog .math-picture-board{width:min(340px,100%);justify-self:center}#odakMathDialog .math-puzzle-question{padding:12px}#odakMathDialog .math-puzzle-question h3{margin:4px 0}#odakMathDialog .math-puzzle-question p{margin:8px 0;font-size:13px}@media(max-width:650px){#odakMathDialog{padding:10px;max-height:98dvh;width:98vw}#odakMathDialog .math-head{top:-10px}#odakMathDialog .math-head h2{font-size:17px}#odakMathDialog .math-settings{padding:8px;gap:8px}#odakMathDialog .math-picture-puzzle{display:flex;flex-direction:column;align-items:stretch;gap:8px}#odakMathDialog .math-puzzle-question{display:contents}#odakMathDialog .math-puzzle-question h3{order:0}#odakMathDialog .math-puzzle-question>p:first-of-type{order:1}#odakMathDialog .math-question-large{order:2}#odakMathDialog .math-puzzle-question [role=status]{order:3;min-height:32px}#odakMathDialog .math-puzzle-question>p:last-of-type{order:4}#odakMathDialog .math-picture-board{order:5;width:180px;align-self:center;margin:8px}#odakMathDialog .math-picture-tray{order:6;width:100%;max-width:290px;padding:10px;gap:14px}#odakMathDialog .math-puzzle-question>.math-primary{order:7}#odakMathDialog .math-movable-piece{min-height:44px!important}#odakMathDialog .math-focus-cards{gap:8px}#odakMathDialog .math-focus-actions button{font-size:12px;padding:8px}#odakMathDialog .math-written-answer input{min-height:48px;font-size:22px;padding:8px}.math-focus-steps span{font-size:12px;padding:6px}}
.math-number-bond{padding:12px;border-radius:16px;background:#edf6ff;text-align:center;margin-bottom:10px}.math-number-bond>strong{display:inline-block;background:#175eb5;color:#fff;padding:10px 20px;border-radius:24px;font-size:24px}.math-bond-parts{font-size:27px;font-weight:800;margin:12px;color:#244e7e}.math-ten-frame{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;width:min(260px,100%);margin:auto}.math-ten-frame span{aspect-ratio:1;border:2px dashed #9ab6d5;border-radius:9px;background:#fff}.math-ten-frame .is-filled{background:#22a38b;border:2px solid #15806e;box-shadow:inset 0 0 0 6px #d2f7ee}
.math-bond-diagram{display:flex;flex-direction:column;align-items:center;padding:16px!important;background:linear-gradient(140deg,#f0f7ff,#faf1ff)}.math-bond-whole,.math-bond-known,.math-bond-missing{display:flex;align-items:center;justify-content:center;width:90px;height:90px;border-radius:50%;font-size:36px;font-weight:800;border:3px solid white;box-shadow:0 4px 0 #b8cde0}.math-bond-whole{background:#7658c9;color:white}.math-bond-known{background:#20a38d;color:white}.math-bond-missing{background:#fff0bf;border:3px dashed #d99512;box-shadow:none}.math-bond-arrows{white-space:pre;font-size:36px;line-height:1.2;color:#697d9e;padding:6px 0}.math-bond-children{display:flex;gap:52px}.math-bond-missing input{box-sizing:border-box;width:100%;height:100%;border:0;border-radius:50%;background:transparent;text-align:center;font-size:36px;font-weight:800;color:#805500;min-width:0;outline-offset:4px}.math-bond-missing input::placeholder{color:#aa771a}.math-bond-missing input:focus{outline:3px solid #f2aa23}.math-bond-diagram>p{margin:0 0 12px!important}@media(max-width:380px){.math-bond-whole,.math-bond-known,.math-bond-missing{width:76px;height:76px}.math-bond-children{gap:44px}}
.math-written-answer label[hidden]{display:none!important}
/* Keep the problem beside its response on phone screens. */
@media(max-width:650px){
#odakMathDialog .math-head{padding:2px 0}#odakMathDialog .math-head h2{margin:6px 0}
#odakMathDialog .math-current-question{position:sticky;top:46px;z-index:9;background:#fff;padding:10px 4px;box-shadow:0 2px 0 #dce7f0;font-size:21px}
#odakMathDialog .math-progress-label{margin:4px 0;font-size:12px}#odakMathDialog .math-feedback{min-height:32px}
#odakMathDialog .math-picture-tray{order:4;max-width:300px;gap:8px;padding:4px}#odakMathDialog .math-picture-board{order:7;width:120px;margin:4px auto}
#odakMathDialog .math-puzzle-question>p:last-of-type{order:5}#odakMathDialog .math-question-large{padding:8px;font-size:26px}
#odakMathDialog .math-puzzle-question>p:first-of-type{font-size:12px;margin:3px 0}#odakMathDialog .math-movable-piece{font-size:18px!important}
#odakMathDialog .math-domino-path{display:none}#odakMathDialog .math-domino{width:128px}
#odakMathDialog .math-bond-diagram{padding:8px!important}#odakMathDialog .math-bond-whole,#odakMathDialog .math-bond-known,#odakMathDialog .math-bond-missing{width:64px;height:64px;font-size:28px}
#odakMathDialog .math-bond-arrows{font-size:26px;padding:2px}#odakMathDialog .math-bond-diagram>p{margin-bottom:4px!important}
#odakMathDialog .math-balance-scene{min-height:120px;padding:14px 10px 25px}#odakMathDialog .math-scale-pan{min-height:48px;padding:6px}
#odakMathDialog .math-focus-cards{margin:6px 0}#odakMathDialog .math-focus-cards button{min-height:48px!important}
.math-next-work{display:flex;gap:8px;flex-wrap:wrap}.math-next-work p{flex-basis:100%}
}
@media(max-width:650px){#odakMathDialog .math-picture-tray{max-width:240px}#odakMathDialog .math-puzzle-question [role=status]{min-height:24px;margin:3px 0}.geo-control-panel summary{cursor:pointer;padding:10px 0;min-height:44px}.geo-control-panel[open] summary{margin-bottom:4px}}
#odakMathDialog .math-split-group{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}#odakMathDialog .math-split-caption{font-size:13px;font-weight:700}#odakMathDialog .math-split-dots{display:grid;grid-template-columns:repeat(5,12px);gap:4px;min-height:28px;justify-content:center}#odakMathDialog .math-split-dots span{width:12px;height:12px;border-radius:50%;background:#7658c9}#odakMathDialog .math-split-dots.known span{background:#158776}#odakMathDialog .math-split-dots.missing span{background:#bb7910}#odakMathDialog .math-split-visual .math-bond-children{gap:30px}#odakMathDialog .math-split-visual .math-bond-arrows{padding:0;line-height:1}#odakMathDialog .math-split-visual .math-bond-whole,#odakMathDialog .math-split-visual .math-bond-known,#odakMathDialog .math-split-visual .math-bond-missing{width:64px;height:64px;font-size:28px}
#odakMathDialog .math-split-empty{grid-column:1/-1;font-size:12px;line-height:28px;white-space:nowrap;color:#52647a}

#odakMathDialog .math-head{flex-wrap:wrap}#odakMathDialog .math-back-settings{font-size:13px;background:#e8f0fc;color:#174a91}#odakMathDialog .math-back-settings[hidden]{display:none}

/* Full viewport workspace: same page, close returns to the panel. */
html body #odakMathDialog{position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:20px;padding-bottom:max(20px,env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain}
html body #odakMathDialog .math-head{top:-20px;z-index:20;background:#f4f8fc;min-height:60px}
@media(max-width:650px){html body #odakMathDialog{padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom))}html body #odakMathDialog .math-head{top:-12px}}

.math-play-scene{position:relative;min-height:150px;border-radius:20px;overflow:hidden;margin:8px 0;background:linear-gradient(#bceaff,#edfaff 65%,#f5c68c 65%);border:2px solid #b7d6eb}
.math-shot-ball{position:absolute;left:12%;bottom:12px;font-size:42px}.math-hoop{position:absolute;right:14%;top:28px;width:65px;height:55px;background:white;border:3px solid #24476b;border-radius:5px}.math-hoop:after{content:'';position:absolute;left:6px;right:6px;bottom:-12px;height:15px;border:5px solid #e75a23;border-radius:50%}
.scored .math-shot-ball{animation:odakBasketShot 1s ease-in-out forwards}@keyframes odakBasketShot{50%{left:55%;bottom:110px}100%{left:74%;bottom:30px}}
.math-play-scene.treasure{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;padding:18px;background:linear-gradient(130deg,#d9f8df,#fff1ba)}.math-route-stop{display:grid;place-items:center;min-height:44px;border:2px dashed #bc984b;background:#fff9e7;border-radius:50%;font-size:22px}.math-route-stop.complete{background:#b9efcb;border-style:solid;border-color:#29875a}
@media(prefers-reduced-motion:reduce){.scored .math-shot-ball{animation:none;left:74%;bottom:30px}}@media(max-height:500px){.math-play-scene{min-height:110px}.math-play-scene.treasure{padding:8px;gap:5px}}

.math-basket-court{display:block!important;position:relative;text-align:center;padding:14px 10px;background:linear-gradient(#dbf3ff 0 65%,#efc797 65%);border-radius:18px;min-height:240px}.math-answer-hoops{display:flex;gap:10px;justify-content:space-around}.math-answer-hoop{position:relative;flex:1;max-width:150px;min-width:0;font-size:clamp(20px,4vw,32px)!important;font-weight:800;min-height:80px!important;background:#fff;border:3px solid #326693!important;margin-bottom:20px}.math-answer-hoop:after{content:'';position:absolute;left:15%;right:15%;bottom:-15px;height:16px;border:5px solid #e76c22;border-radius:50%;background:repeating-linear-gradient(70deg,transparent 0 9px,#fff 10px 12px)}.math-drag-ball{touch-action:none;user-select:none;position:relative;z-index:2;background:transparent!important;border:0!important;font-size:48px!important;cursor:grab!important;min-width:64px}.math-answer-hoop.basket-scored{background:#b9f3cb;box-shadow:0 0 0 4px #3eab61}.math-basket-court p{font-size:14px}.math-answer-hoop:focus-visible{outline:4px solid #faaf22;outline-offset:4px}@media(max-width:480px){.math-answer-hoops{gap:6px}.math-answer-hoop{padding:6px!important}.math-basket-court{padding:10px 6px}}

.math-shop-game,.math-bridge-game{display:block!important;text-align:center;background:#fff4da;padding:16px;border-radius:20px}.math-shop-game button,.math-bridge-game button{margin:6px;min-height:48px}.math-ice-cone{color:#ae376b;font-size:32px;overflow-wrap:anywhere}.math-shop-game form label{display:grid;gap:8px}.math-shop-game input{font:inherit;min-height:48px;max-width:100%}.math-bridge-game{background:#dff4ff}.math-bridge-game>p{font-size:30px}

/* Balance: level pans, proportional beam movement, visible central pivot. */
.math-balance-scene{min-height:270px;padding:65px 22px 85px}.math-balance-beam{max-width:650px;margin:0 auto;transform-origin:50% 4px;transition:transform .65s cubic-bezier(.22,.75,.25,1);border-color:#7659de}.math-balance-beam::after{content:'';position:absolute;top:-14px;left:calc(50% - 11px);width:22px;height:22px;background:#ffc64b;border:3px solid #24265d;border-radius:50%}.math-scale-pan{transform:rotate(calc(-1 * var(--tilt,0deg)));transition:transform .65s cubic-bezier(.22,.75,.25,1);box-shadow:0 5px 0 #ddba64;background:linear-gradient(#fff9df,#ffe59a);border-color:#9b7319;min-height:82px}.math-balance-scene::after{height:160px;background:linear-gradient(90deg,#24265d,#7659de)}
@media(prefers-reduced-motion:reduce){.math-balance-beam,.math-scale-pan{transition:none}}

#odakMathDialog .math-balance-scene{min-height:270px;padding:75px 22px 75px}#odakMathDialog .math-scale-pan{min-height:70px;padding:12px 4px}
