@font-face{font-family:Rubik Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(./rubik-latin-wght-normal-CnQIisVs.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Rubik Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(./rubik-latin-ext-wght-normal-OacczzuJ.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Rubik Variable;font-style:normal;font-display:swap;font-weight:300 900;src:url(./rubik-arabic-wght-normal-CGnJ-sf6.woff2) format("woff2-variations");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}@font-face{font-family:Noto Kufi Arabic Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./noto-kufi-arabic-arabic-wght-normal-DGgC7XND.woff2) format("woff2-variations");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}@font-face{font-family:"Press Start 2P";font-style:normal;font-display:swap;font-weight:400;src:url(./press-start-2p-latin-400-normal-_wFEWmAB.woff2) format("woff2")}:root{--po-bg: #0c0f24;--po-bg-glow: #1c2266;--po-surface: #171c44;--po-surface-2: #1d2353;--po-border: #2b3270;--po-border-control: #6b75c9;--po-shadow: #05071a;--po-text: #eef0ff;--po-text-muted: #a6aedb;--po-primary: #ffcf6e;--po-on-primary: #0c0f24;--po-accent: #3fe0c5;--po-on-accent: #0c0f24;--po-success: #5ee07a;--po-on-success: #0c0f24;--po-danger: #ff8a8a;--po-danger-strong: #b3261e;--po-on-danger-strong: #ffffff;--po-warning: #ffcf6e;--po-focus: var(--po-accent);--po-overlay: rgb(12 15 36 / .82);--po-subject-arcade: #ff7ab6;--po-subject-math: #ffcf6e;--po-subject-science: #7cc4ff;--po-subject-language: #8ce27a;--po-font-text: "Rubik Variable", "Rubik", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;--po-font-pixel: "Press Start 2P", "Courier New", monospace;--po-font-kufi: "Noto Kufi Arabic Variable", "Noto Kufi Arabic", "Rubik Variable", Tahoma, sans-serif;--po-font-display: var(--po-font-pixel);--po-text-sm: 14px;--po-text-md: 16px;--po-text-lg: 18px;--po-text-xl: 20px;--po-text-h2: clamp(22px, 2vw + 14px, 24px);--po-text-h1: clamp(26px, 2.4vw + 16px, 32px);--po-text-play: clamp(22px, 2.5vw + 12px, 28px);--po-text-display: clamp(16px, 2.6vw, 26px);--po-leading-tight: 1.3;--po-leading: 1.55;--po-leading-display: 1.6;--po-space-1: 4px;--po-space-2: 8px;--po-space-3: 12px;--po-space-4: 16px;--po-space-5: 24px;--po-space-6: 32px;--po-space-7: 48px;--po-space-8: 64px;--po-tap: 48px;--po-tap-lg: 64px;--po-radius-sm: 4px;--po-radius-md: 8px;--po-radius-lg: 12px;--po-radius-pill: 999px;--po-shadow-x: 1;--po-shadow-1: calc(var(--po-shadow-x) * 2px) 2px 0 var(--po-shadow);--po-shadow-2: calc(var(--po-shadow-x) * 4px) 4px 0 var(--po-shadow);--po-shadow-3: calc(var(--po-shadow-x) * 6px) 6px 0 var(--po-shadow);--po-duration-fast: .12s;--po-duration: .2s;--po-duration-slow: .32s;--po-content-max: 1120px;--po-gutter-left: max(16px, env(safe-area-inset-left, 0px));--po-gutter-right: max(16px, env(safe-area-inset-right, 0px));color-scheme:dark}:root:lang(ar){--po-font-display: var(--po-font-kufi);--po-text-display: clamp(26px, 4.4vw, 42px);--po-leading: 1.75;--po-leading-tight: 1.5;--po-leading-display: 1.5}[dir=rtl]{--po-shadow-x: -1;--po-shadow-1: calc(var(--po-shadow-x) * 2px) 2px 0 var(--po-shadow);--po-shadow-2: calc(var(--po-shadow-x) * 4px) 4px 0 var(--po-shadow);--po-shadow-3: calc(var(--po-shadow-x) * 6px) 6px 0 var(--po-shadow)}@media(prefers-reduced-motion:reduce){:root{--po-duration-fast: 0ms;--po-duration: 0ms;--po-duration-slow: 0ms}}[data-theme=calm]{--po-bg: #f6f5fb;--po-bg-glow: #f6f5fb;--po-surface: #ffffff;--po-surface-2: #f0f0f8;--po-border: #d9dbea;--po-border-control: #7a80aa;--po-shadow: rgb(20 24 58 / .12);--po-text: #14183a;--po-text-muted: #4b5180;--po-primary: #0f766e;--po-on-primary: #ffffff;--po-accent: #0f766e;--po-on-accent: #ffffff;--po-success: #15803d;--po-on-success: #ffffff;--po-danger: #b91c1c;--po-danger-strong: #b91c1c;--po-warning: #b45309;--po-overlay: rgb(20 24 58 / .5);--po-shadow-1: 0 1px 2px var(--po-shadow);--po-shadow-2: 0 2px 8px var(--po-shadow);--po-shadow-3: 0 8px 24px var(--po-shadow);color-scheme:light}[data-theme=calm-dark]{--po-primary: #3fe0c5;--po-on-primary: #0c0f24;--po-shadow-1: 0 1px 2px var(--po-shadow);--po-shadow-2: 0 2px 8px var(--po-shadow);--po-shadow-3: 0 8px 24px var(--po-shadow)}*,*:before,*:after{box-sizing:border-box}[hidden]{display:none!important}html{-webkit-text-size-adjust:100%}body{margin:0;color:var(--po-text);font-family:var(--po-font-text);font-size:var(--po-text-md);line-height:var(--po-leading);background:radial-gradient(ellipse 80% 50% at 50% 0%,var(--po-bg-glow) 0%,transparent 70%),var(--po-bg);-webkit-tap-highlight-color:transparent}h1,h2,h3{text-wrap:balance}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--po-focus);outline-offset:3px}.po-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.po-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--po-space-2);min-height:var(--po-tap);padding:var(--po-space-2) var(--po-space-4);border:2px solid var(--po-border-control);border-radius:var(--po-radius-sm);background:var(--po-surface-2);color:var(--po-text);font:inherit;font-size:var(--po-text-md);font-weight:600;line-height:var(--po-leading-tight);text-align:center;text-decoration:none;cursor:pointer;transition:border-color var(--po-duration-fast),transform var(--po-duration-fast),box-shadow var(--po-duration-fast)}.po-button:hover{border-color:var(--po-accent)}.po-button:active:not(:disabled){transform:translateY(2px)}.po-button:disabled,.po-button[aria-disabled=true]{opacity:.5;cursor:default}.po-button--primary{border-color:var(--po-primary);background:var(--po-primary);color:var(--po-on-primary);font-weight:700;box-shadow:var(--po-shadow-1)}.po-button--primary:hover{border-color:var(--po-primary);filter:brightness(1.08)}.po-button--quiet{background:transparent}.po-button--danger{border-color:var(--po-danger-strong);background:var(--po-danger-strong);color:var(--po-on-danger-strong)}.po-button--danger:hover{border-color:var(--po-danger-strong);filter:brightness(1.1)}.po-button--lg{min-height:var(--po-tap-lg);min-width:10rem;padding-inline:var(--po-space-5);font-size:var(--po-text-xl);box-shadow:var(--po-shadow-2)}.po-icon-button{display:inline-grid;place-items:center;min-width:var(--po-tap);min-height:var(--po-tap);padding:var(--po-space-2);border:2px solid var(--po-border-control);border-radius:var(--po-radius-sm);background:transparent;color:var(--po-text);font-size:var(--po-text-lg);line-height:1;cursor:pointer}.po-icon-button:hover{border-color:var(--po-accent)}.po-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--po-space-2)}.po-panel{display:flex;flex-direction:column;gap:var(--po-space-4);padding:var(--po-space-5);background:var(--po-surface);border:2px solid var(--po-border);border-radius:var(--po-radius-md);box-shadow:var(--po-shadow-2)}.po-panel>h2{margin:0;font-size:var(--po-text-xl);line-height:var(--po-leading-tight)}.po-chip{--po-chip-color: var(--po-text-muted);display:inline-flex;align-items:center;padding:2px var(--po-space-2);border:1px solid var(--po-chip-color);border-radius:var(--po-radius-sm);color:var(--po-chip-color);font-size:var(--po-text-sm);line-height:var(--po-leading-tight)}.po-choice{border:0;margin:0;padding:0;min-inline-size:0}.po-choice>legend{padding:0;margin-block-end:var(--po-space-2);font-size:var(--po-text-md);font-weight:600}.po-choice-options{display:flex;flex-wrap:wrap;gap:var(--po-space-2)}.po-choice-option{position:relative}.po-choice-option input{position:absolute;top:0;right:0;bottom:0;left:0;margin:0;opacity:0;cursor:pointer}.po-choice-option span{display:flex;align-items:center;min-height:var(--po-tap);padding:var(--po-space-2) var(--po-space-4);border:2px solid var(--po-border-control);border-radius:var(--po-radius-sm);background:var(--po-surface-2);font-size:var(--po-text-md)}.po-choice-option input:checked+span{border-color:var(--po-primary);background:var(--po-primary);color:var(--po-on-primary);font-weight:700}.po-choice-option input:focus-visible+span{outline:3px solid var(--po-focus);outline-offset:2px}.po-settings{border-top:2px dashed var(--po-border);padding-top:var(--po-space-3)}.po-settings>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--po-space-1) var(--po-space-3);min-height:var(--po-tap);padding-block:var(--po-space-3);cursor:pointer;font-weight:600}.po-settings>summary::marker{color:var(--po-primary)}.po-settings-summary{color:var(--po-text-muted);font-weight:400;font-size:var(--po-text-sm)}.po-settings-body{display:flex;flex-direction:column;gap:var(--po-space-4);padding-top:var(--po-space-2)}.po-effects-note{margin:var(--po-space-2) 0 0;color:var(--po-text-muted);font-size:var(--po-text-sm)}.po-field{display:flex;flex-direction:column;gap:var(--po-space-2);font-weight:600}.po-field input,.po-field select,.po-field textarea{min-height:var(--po-tap);padding:var(--po-space-2) var(--po-space-3);border:2px solid var(--po-border-control);border-radius:var(--po-radius-sm);background:var(--po-bg);color:var(--po-text);font-size:var(--po-text-md);font-weight:400}.po-field input:focus-visible,.po-field select:focus-visible,.po-field textarea:focus-visible{outline:none;border-color:var(--po-focus)}.po-field-hint{color:var(--po-text-muted);font-size:var(--po-text-sm);font-weight:400}.po-table{width:100%;border-collapse:collapse;font-size:var(--po-text-md)}.po-table th,.po-table td{padding:var(--po-space-2);text-align:start;border-bottom:1px solid var(--po-border)}.po-table th{color:var(--po-text-muted);font-weight:600}.po-table td{font-variant-numeric:tabular-nums}:root{--po-bg: #0b1a22;--po-bg-glow: #12404a;--po-surface: #11262f;--po-surface-2: #183440;--po-border: #24505c;--po-border-control: #6fa7b4;--po-primary: #ffcf6e;--po-on-primary: #0b1a22;--po-focus: #7ef0c8;--patterns: #ffcf6e;--expressions: #ff9ec0;--equations: #7ef0c8;--inequalities: #ffa36b;--lines: #7cc4ff;--systems: #c9a6ff;--powers: #ff8f8f;--quadratics: #8ef08a;--sc-board: #0f2a2f;--sc-grid: #173a40;--sc-ink: #eef7f2;--sc-muted: #9cc3c4;--sc-accent: #ffd166;--sc-warn: #ff9a8a;--sc-x: #4fb3ff;--sc-k: #ffb347;--sc-sq: #9b7bff;--sc-wood: #c98b4f;--sc-metal: #c3cad8}[data-world=patterns]{--world: var(--patterns)}[data-world=expressions]{--world: var(--expressions)}[data-world=equations]{--world: var(--equations)}[data-world=inequalities]{--world: var(--inequalities)}[data-world=lines]{--world: var(--lines)}[data-world=systems]{--world: var(--systems)}[data-world=powers]{--world: var(--powers)}[data-world=quadratics]{--world: var(--quadratics)}html,body{height:100%}.flip:dir(rtl){transform:scaleX(-1)}.app{min-height:100svh;max-width:1040px;margin-inline:auto;display:flex;flex-direction:column;gap:var(--po-space-4);padding-block:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-bottom));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}.top{display:flex;align-items:center;justify-content:space-between;gap:12px}.top h1{margin:0;font-family:var(--po-font-display);font-size:var(--po-text-display);font-weight:400;line-height:var(--po-leading-display);color:var(--po-primary);text-shadow:var(--po-shadow-1)}:lang(ar) .top h1{font-weight:800}.tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.loading,.note{margin:0;color:var(--po-text-muted)}.note{padding:10px 14px;border:2px solid var(--po-border);border-radius:var(--po-radius-md);background:var(--po-surface)}.map{display:flex;flex-direction:column;gap:var(--po-space-5)}.map-top{display:flex;align-items:center;gap:var(--po-space-4);flex-wrap:wrap}.play{flex:1 1 260px;flex-direction:column;align-items:flex-start;gap:2px;text-align:start}.play>span:first-child{font-size:var(--po-text-xl)}.play-next{font-size:var(--po-text-sm);font-weight:500;opacity:.85}.total{margin:0;font-size:var(--po-text-lg);font-weight:700;color:var(--po-accent, var(--sc-accent));white-space:nowrap}.world{display:flex;flex-direction:column;gap:var(--po-space-3);padding:var(--po-space-4);border:2px solid var(--po-border);border-inline-start:6px solid var(--world);border-radius:var(--po-radius-lg);background:var(--po-surface)}.world-head{display:flex;align-items:center;gap:var(--po-space-3)}.world-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:var(--po-radius-md);background:var(--po-surface-2);color:var(--world)}.world-name{display:flex;flex-direction:column;flex:1;min-width:0}.world-name h3{margin:0;font-size:var(--po-text-lg);color:var(--world)}.world-skills{font-size:var(--po-text-sm);color:var(--po-text-muted)}.world-progress{font-size:var(--po-text-sm);font-weight:700;white-space:nowrap}.levels{display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:var(--po-space-3);margin:0;padding:0;list-style:none}.levels li{display:flex;flex-direction:column;align-items:center;gap:4px}.level{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:56px;height:56px;border:2px solid var(--world);border-radius:var(--po-radius-md);background:var(--po-surface-2);color:var(--po-text);font-size:var(--po-text-lg);font-weight:700;transition:transform var(--po-duration-fast)}.level:hover{transform:translateY(-2px)}.level[aria-current=step]{box-shadow:0 0 0 3px color-mix(in srgb,var(--world) 40%,transparent)}.level[data-state=done]{background:var(--world);color:var(--po-on-primary)}.level-n{line-height:1}.pips{display:inline-flex;gap:3px}.pip{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.25}.pip.on{opacity:1}.stars{display:inline-flex;gap:2px;font-size:1.6rem;line-height:1}.stars--small{font-size:var(--po-text-sm)}.star{color:var(--po-border-control)}.star.on{color:var(--sc-accent)}.level-screen{display:flex;flex-direction:column;gap:var(--po-space-3)}.level-head{display:flex;align-items:center;gap:var(--po-space-3)}.level-name{display:flex;flex-direction:column;flex:1;min-width:0}.level-where{font-size:var(--po-text-sm);font-weight:700;color:var(--world);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.level-name h2{margin:0;font-size:var(--po-text-lg);line-height:var(--po-leading-tight)}.hint-button{gap:6px}.hint-count{display:grid;place-items:center;min-width:24px;height:24px;padding-inline:6px;border-radius:var(--po-radius-pill);background:var(--po-primary);color:var(--po-on-primary);font-size:var(--po-text-sm);font-weight:700}.progress-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--po-space-2);margin:0;padding:0;list-style:none;font-size:var(--po-text-sm);color:var(--po-text-muted)}.progress-steps li{display:flex;flex-direction:column;gap:4px}.progress-steps .bar{height:6px;border-radius:var(--po-radius-pill);background:var(--po-surface-2)}.progress-steps [data-state=done] .bar{background:var(--world)}.progress-steps [data-state=now] .bar{background:linear-gradient(90deg,var(--world) 50%,var(--po-surface-2) 50%)}.progress-steps [data-state=now]:dir(rtl) .bar{background:linear-gradient(270deg,var(--world) 50%,var(--po-surface-2) 50%)}.progress-steps [data-state=now]{color:var(--po-text);font-weight:700}.level-body{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--po-space-4);align-items:start}@media(min-width:760px){.level-body{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.board{position:sticky;top:16px}}.board{margin:0;padding:var(--po-space-2);border:2px solid var(--po-border);border-radius:var(--po-radius-lg);background-color:var(--sc-board);background-image:linear-gradient(var(--sc-grid) 1px,transparent 1px),linear-gradient(90deg,var(--sc-grid) 1px,transparent 1px);background-size:20px 20px;box-shadow:var(--po-shadow-3)}.scene{display:block;width:100%;height:auto;max-height:48svh}.level-side{display:flex;flex-direction:column;gap:var(--po-space-3)}.level-side h3{margin:0;font-size:var(--po-text-md)}.question{margin:0;font-size:var(--po-text-lg);line-height:var(--po-leading)}.ladder{display:flex;flex-direction:column;gap:var(--po-space-2)}.ladder>ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--po-space-2)}.ladder-n{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:var(--po-surface-2);font-size:var(--po-text-sm);font-weight:700}.ladder-open,.ladder-take{display:flex;gap:var(--po-space-2);align-items:flex-start}.ladder-open p{margin:0;unicode-bidi:plaintext}.ladder-open .ladder-n{background:var(--po-primary);color:var(--po-on-primary)}.ladder-take{width:100%;min-height:var(--po-tap);align-items:center;padding:8px 10px;border:2px dashed var(--po-border-control);border-radius:var(--po-radius-md);background:transparent;color:var(--po-text);text-align:start}.ladder-take:disabled{color:var(--po-text-muted);cursor:default}.ladder-take:not(:disabled):hover{border-color:var(--po-primary)}.choices{display:flex;flex-direction:column;gap:var(--po-space-2)}.choice{min-height:var(--po-tap);padding:10px 14px;border:2px solid var(--po-border-control);border-radius:var(--po-radius-md);background:var(--po-surface);color:var(--po-text);font-size:var(--po-text-lg);font-weight:600;text-align:start;transition:border-color var(--po-duration-fast),transform var(--po-duration-fast)}.choice:hover{border-color:var(--world);transform:translateY(-1px)}.answer{display:flex;flex-direction:column;gap:var(--po-space-2)}.answer-field{display:flex;align-items:center;gap:var(--po-space-2);padding:4px 12px;border:2px solid var(--po-border-control);border-radius:var(--po-radius-md);background:var(--po-surface-2)}.answer-field:focus-within{outline:3px solid var(--po-focus);outline-offset:2px}.answer-field input{flex:1;min-width:0;min-height:var(--po-tap);border:0;background:transparent;color:inherit;font:inherit;font-size:var(--po-text-xl);font-weight:700;outline:none}.answer-unit{font-size:var(--po-text-lg);font-weight:700;color:var(--world);white-space:nowrap}.check,.run{width:100%}.feedback{margin:0;min-height:1.5em;font-weight:600;color:var(--po-warning)}.tune{display:flex;flex-direction:column;gap:var(--po-space-3)}.goal{margin:0;padding:8px 12px;border-inline-start:4px solid var(--world);border-radius:var(--po-radius-sm);background:var(--po-surface)}.slider{display:flex;flex-direction:column;gap:4px}.slider label{display:flex;justify-content:space-between;gap:var(--po-space-2);font-weight:600}.slider output{color:var(--world);font-weight:700}.slider-row{display:flex;align-items:center;gap:var(--po-space-2)}.slider-row input{flex:1;min-width:0;height:var(--po-tap);accent-color:var(--world)}.slider-row input:dir(rtl){direction:ltr}.step{min-width:var(--po-tap);padding-inline:0;font-size:var(--po-text-xl)}.watching{display:flex;align-items:center;justify-content:space-between;gap:var(--po-space-3)}.watching p{margin:0;font-weight:700;color:var(--world)}.done{display:flex;flex-direction:column;gap:var(--po-space-2)}.done .stars{align-self:center;font-size:2.4rem}.done h3{text-align:center;font-size:var(--po-text-xl);color:var(--po-primary)}.done h4{margin:var(--po-space-2) 0 0;font-size:var(--po-text-md);color:var(--world)}.done-answer{margin:0;text-align:center;font-size:var(--po-text-xl);font-weight:700;color:var(--world)}.done-note{margin:0;text-align:center;color:var(--po-text-muted)}.explain{margin:0;line-height:var(--po-leading)}.idea{margin:0;padding:8px 12px;border-radius:var(--po-radius-md);background:var(--po-surface-2)}.done-actions{flex-wrap:wrap}.done-actions .po-button{flex:1 1 auto}@media(prefers-reduced-motion:no-preference){.done .stars .on{animation:pop var(--po-duration-slow) ease-out both}.done .stars .on:nth-child(2){animation-delay:.12s}.done .stars .on:nth-child(3){animation-delay:.24s}}@keyframes pop{0%{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}.choice[data-state=wrong]{border-style:dashed;border-color:var(--po-border);color:var(--po-text-muted);text-decoration:line-through;cursor:default}.choice:disabled:hover{transform:none}.stepper{display:grid;grid-template-columns:minmax(0,1fr) var(--po-tap) 3.5rem var(--po-tap);align-items:center;gap:var(--po-space-2)}.stepper-label{font-weight:600;unicode-bidi:plaintext}.stepper-value{text-align:center;font-size:var(--po-text-xl);font-weight:700;color:var(--world)}.step:disabled{opacity:.4}.choices--grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.choice--math{text-align:center;font-size:var(--po-text-xl);unicode-bidi:plaintext;white-space:nowrap}@media(max-width:480px){.choices--long{grid-template-columns:minmax(0,1fr)}}.option{margin:0}.balance{display:flex;flex-direction:column;gap:var(--po-space-3)}.eq-steps{display:flex;flex-direction:column;gap:2px;margin:0;padding:8px 12px;border-inline-start:4px solid var(--world);border-radius:var(--po-radius-sm);background:var(--po-surface);list-style:none}.eq-steps li{font-size:var(--po-text-lg);color:var(--po-text-muted)}.eq-steps .eq-now{font-size:var(--po-text-xl);font-weight:700;color:var(--po-text)}.moves{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--po-space-2)}.move{justify-content:center;font-size:var(--po-text-lg);text-align:center}.sign{min-width:var(--po-tap);padding-inline:0;font-size:var(--po-text-xl)}.scene{font-family:var(--po-font-text)}.scene text{font-size:13px;fill:var(--sc-ink)}.scene line,.scene path{stroke-linecap:round;stroke-linejoin:round}.scene .sc-math{font-size:16px;font-weight:600}.scene .sc-math-mid{font-size:18px;font-weight:700}.scene .sc-math-big{font-size:22px;font-weight:700}.scene .sc-math-huge{font-size:34px;font-weight:800}.scene .sc-small{font-size:12px}.scene .sc-muted{fill:var(--sc-muted)}.scene .sc-accent{fill:var(--sc-accent);font-weight:700}.scene .sc-warn{fill:var(--sc-warn);font-weight:700}.scene .sc-help-text{fill:var(--sc-accent);font-size:13px;font-weight:600}.scene .sc-op{font-size:26px;font-weight:700;fill:var(--sc-muted)}.scene .sc-total{font-size:24px;font-weight:800}.scene .sc-scale-n{font-size:11px;fill:var(--sc-muted)}.sc-tag rect{fill:var(--po-surface-2);stroke:var(--po-border-control);stroke-width:1.5}.scene .sc-tag text{font-weight:700}.scene .sc-tag--small text{font-size:13px}.sc-guide{stroke:var(--sc-muted);stroke-width:1.5;stroke-dasharray:4 4;fill:none}.sc-cross{stroke:var(--sc-warn);stroke-width:3}.sc-star{fill:none;stroke:var(--sc-accent);stroke-width:2}.sc-star-lit{fill:var(--sc-accent);filter:drop-shadow(0 0 6px var(--sc-accent))}.sc-belt{stroke:var(--sc-metal);stroke-width:4}.sc-belt-dot{fill:var(--sc-muted)}.sc-machine-box{fill:#1d4a52;stroke:var(--world, var(--sc-accent));stroke-width:3}.sc-gear{fill:none;stroke:var(--sc-muted);stroke-width:3}.scene .sc-machine-rule{font-size:24px;font-weight:800;fill:var(--world, var(--sc-accent))}.sc-ball{fill:var(--sc-accent);stroke:#0b1a22;stroke-width:2}.sc-ball-empty{fill:none;stroke:var(--sc-muted);stroke-width:2;stroke-dasharray:4 4}.scene .sc-ball-text{font-size:18px;font-weight:800;fill:#0b1a22}.scene .sc-ball-empty+.sc-ball-text,.scene .sc-ball-text.sc-muted{fill:var(--sc-muted)}.sc-tile-fixed{fill:var(--sc-muted)}.sc-tile-new{fill:var(--world, var(--sc-accent))}.sc-help-box{fill:none;stroke:var(--sc-accent);stroke-width:2;stroke-dasharray:4 3}.sc-help-box--new{stroke:#fff}.sc-unknown{fill:none;stroke:var(--sc-muted);stroke-width:2;stroke-dasharray:6 5}.scene .sc-big-q{font-size:40px;font-weight:800;fill:var(--sc-muted)}.sc-table{fill:color-mix(in srgb,var(--po-surface) 80%,transparent);stroke:var(--po-border-control);stroke-width:2}.sc-table-line{stroke:var(--po-border-control);stroke-width:1}.scene .sc-table-head{font-size:15px;font-weight:800;fill:var(--world, var(--sc-accent))}.scene .sc-cell-text{font-size:17px;font-weight:700}.sc-diff-arc{fill:none;stroke:var(--sc-accent);stroke-width:2}.sc-bag{fill:#b5824f;stroke:#5c3b1c;stroke-width:2}.sc-bag-open{fill:#e0b07a}.sc-bag-tie{fill:none;stroke:#5c3b1c;stroke-width:3}.scene .sc-bag-text{font-size:16px;font-weight:800;fill:#1c120a}.sc-marble{fill:var(--sc-k);stroke:#0b1a22;stroke-width:1.5}.sc-marble-gone{opacity:.3}.sc-group{fill:color-mix(in srgb,var(--po-surface-2) 70%,transparent);stroke:var(--po-border-control);stroke-width:1.5;stroke-dasharray:5 4}.sc-chip-x rect,.sc-chip-x circle{fill:var(--sc-x);stroke:#0b1a22;stroke-width:2}.sc-chip-k rect,.sc-chip-k circle{fill:var(--sc-k);stroke:#0b1a22;stroke-width:2}.sc-chip-help rect,.sc-chip-help circle{stroke:#fff;stroke-width:3}.scene .sc-chip-text{font-size:17px;font-weight:800;fill:#0b1a22}.sc-area-x{fill:color-mix(in srgb,var(--sc-x) 70%,transparent);stroke:var(--sc-ink);stroke-width:2}.sc-area-k{fill:color-mix(in srgb,var(--sc-k) 70%,transparent);stroke:var(--sc-ink);stroke-width:2}.scene .sc-area-text{font-size:20px;font-weight:800;fill:#0b1a22}.scene .sc-side{font-size:18px;font-weight:800;fill:var(--sc-accent)}.sc-card{fill:#f4efe2;stroke:#c9bfa5;stroke-width:2}.sc-card-rule{stroke:#d9d0b9;stroke-width:1}.scene .sc-card~g text,.scene .sc-card~text{fill:#1d2a33}.scene .sc-card~g .sc-accent,.scene .sc-card~.sc-accent{fill:#b4441c}.scene .sc-card~.sc-help-text{fill:#2a6f78}.scene .sc-card~.sc-op{fill:#2a6f78}.scene .sc-step-arrow{font-size:16px;fill:#7d8f95}.sc-sum-line{stroke:#1d2a33;stroke-width:2}.sc-stand{fill:#2a5560;stroke:var(--sc-metal);stroke-width:2}.sc-beam{stroke:var(--sc-wood);stroke-width:8}.sc-pivot{fill:var(--sc-accent);stroke:#0b1a22;stroke-width:2}.sc-string{stroke:var(--sc-muted);stroke-width:1.5}.sc-pan{fill:var(--sc-metal);stroke:#0b1a22;stroke-width:1.5}.sc-box{fill:var(--sc-x);stroke:#0b1a22;stroke-width:2}.sc-box-open{fill:var(--sc-accent)}.scene .sc-box-text{font-size:15px;font-weight:800;fill:#0b1a22}.sc-unit{fill:var(--sc-k);stroke:#0b1a22;stroke-width:1}.sc-gone{opacity:var(--fade, 0);transform:translateY(var(--lift, 0))}.sc-axis-line,.sc-axis{stroke:var(--sc-ink);stroke-width:2}.sc-tick{stroke:var(--sc-ink);stroke-width:1.5}.sc-set-line{stroke:var(--world, var(--sc-accent));stroke-width:6}.sc-set-arrow{fill:var(--world, var(--sc-accent))}.sc-end{fill:var(--sc-board);stroke:var(--world, var(--sc-accent));stroke-width:3}.sc-end-filled{fill:var(--world, var(--sc-accent))}.sc-set-hit .sc-set-line,.sc-set-hit .sc-set-arrow{filter:drop-shadow(0 0 5px var(--sc-accent))}.sc-set-miss{opacity:.75}.sc-paper{fill:color-mix(in srgb,var(--sc-board) 80%,#000);stroke:var(--po-border);stroke-width:1}.sc-grid-line{stroke:#1f4a52;stroke-width:1}.scene .sc-axis-name{font-size:15px;font-weight:800;fill:var(--sc-muted)}.sc-plot{fill:none;stroke:var(--world, var(--sc-accent));stroke-width:3.5}.sc-plot-2{stroke:#ff9ec0}.sc-plot-dashed{stroke-dasharray:10 8;stroke-width:5}.sc-plot-faint{opacity:.7}.sc-plot-ghost{stroke:var(--sc-muted);stroke-dasharray:6 6;stroke-width:3}.sc-plot-hit{filter:drop-shadow(0 0 6px var(--sc-accent))}.sc-dot{fill:var(--sc-ink);stroke:#0b1a22;stroke-width:2}.sc-dot-lit{fill:var(--sc-accent)}.sc-dot-faint{opacity:.45}.sc-dot-target{fill:none;stroke:var(--sc-accent);stroke-width:2;stroke-dasharray:3 3}.sc-dot-help{fill:none;stroke:#fff;stroke-width:2.5}.sc-help-ring{fill:none;stroke:var(--sc-accent);stroke-width:2;stroke-dasharray:4 4}.sc-walk{fill:none;stroke:var(--sc-accent);stroke-width:2.5;stroke-dasharray:5 4}.sc-run{stroke:var(--sc-k);stroke-width:3.5;fill:none}.sc-rise{stroke:var(--sc-x);stroke-width:3.5;fill:none}.scene .sc-run-text{fill:var(--sc-k);font-weight:700}.scene .sc-rise-text{fill:var(--sc-x);font-weight:700}.sc-step-help{fill:none;stroke:var(--sc-accent);stroke-width:2.5;stroke-dasharray:4 3}.scene .sc-label-bg{paint-order:stroke;stroke:var(--sc-board);stroke-width:4px;font-weight:700}.scene .sc-note{font-size:15px;font-weight:700}.scene .sc-note-2{fill:#ff9ec0}.sc-fruit-apple{fill:#e5383b}.sc-fruit-leaf{fill:#5ad18a}.sc-fruit-stem{fill:none;stroke:#7a4a22;stroke-width:2.5}.sc-fruit-banana{fill:#ffd84a;stroke:#b88a12;stroke-width:1.5}.sc-fruit-cherry{fill:#c9184a;stroke:#6b0d26;stroke-width:1}.sc-fruit-lemon{fill:#f6e05e;stroke:#b9a12a;stroke-width:1.5}.sc-fruit-lemon-tip{stroke:#b9a12a;stroke-width:3}.sc-fruit-grape{fill:#8f5bff;stroke:#3f2380;stroke-width:1}.sc-diamond{stroke:var(--sc-ink);stroke-width:3}.sc-xchip rect{fill:var(--sc-x);stroke:#0b1a22;stroke-width:1.5}.sc-xchip-2 rect{fill:#ff9ec0}.scene .sc-xchip text{font-size:14px;font-weight:800;fill:#0b1a22}.sc-frac-line{stroke:var(--sc-ink);stroke-width:3}.sc-frame{fill:none;stroke:var(--sc-ink);stroke-width:2;stroke-dasharray:5 4}.sc-frame-hit{stroke:var(--sc-accent);stroke-dasharray:none;filter:drop-shadow(0 0 5px var(--sc-accent))}.sc-tile-squares{fill:var(--sc-sq);stroke:#0b1a22;stroke-width:1.5}.sc-tile-longs{fill:var(--quadratics);stroke:#0b1a22;stroke-width:1.5}.sc-tile-ones{fill:var(--sc-k);stroke:#0b1a22;stroke-width:1}.sc-slot{fill:none;stroke:var(--sc-muted);stroke-width:1;stroke-dasharray:2 3}.sc-missing{fill:color-mix(in srgb,var(--sc-warn) 25%,transparent);stroke:var(--sc-warn);stroke-width:1.5;stroke-dasharray:3 2}.sc-extra{stroke:var(--sc-warn);stroke-width:2.5}.sc-tray{fill:color-mix(in srgb,var(--po-surface) 75%,transparent);stroke:var(--po-border);stroke-width:1.5}@media(prefers-reduced-motion:reduce){.sc-gone{transition:none}}@media(prefers-reduced-motion:no-preference){[data-effects=rich] .level[aria-current=step]{animation:next-pulse 1.6s ease-in-out infinite}[data-effects=rich] .levels li{animation:level-in .35s cubic-bezier(.3,1.5,.5,1) backwards}[data-effects=rich] .levels li:nth-child(2){animation-delay:.04s}[data-effects=rich] .levels li:nth-child(3){animation-delay:.08s}[data-effects=rich] .levels li:nth-child(4){animation-delay:.12s}[data-effects=rich] .levels li:nth-child(5){animation-delay:.16s}[data-effects=rich] .levels li:nth-child(n+6){animation-delay:.2s}[data-effects=rich] .done{animation:done-in .4s ease-out}[data-effects=rich] .done .stars .on{animation:star-in .55s cubic-bezier(.3,1.8,.5,1) both;text-shadow:0 0 12px var(--sc-accent)}[data-effects=rich] .done .stars .on:nth-child(2){animation-delay:.18s}[data-effects=rich] .done .stars .on:nth-child(3){animation-delay:.36s}[data-effects=rich] .done-answer{animation:star-in .5s .3s cubic-bezier(.3,1.6,.5,1) both}[data-effects=rich] .feedback:not(:empty){animation:nudge .3s ease-out}[data-effects=rich] .ladder-open{animation:done-in .3s ease-out}[data-effects=rich] .scene .sc-tag--result{animation:tag-in .4s cubic-bezier(.3,1.7,.5,1) both;transform-box:fill-box;transform-origin:center}}[data-effects=rich] .level[data-state=done]{box-shadow:0 0 10px color-mix(in srgb,var(--world) 55%,transparent)}[data-effects=rich] .scene .sc-win{filter:drop-shadow(0 0 6px var(--sc-accent))}@keyframes next-pulse{50%{box-shadow:0 0 0 7px color-mix(in srgb,var(--world) 22%,transparent),0 0 16px var(--world);transform:translateY(-2px)}}@keyframes level-in{0%{transform:scale(.6);opacity:0}}@keyframes done-in{0%{transform:translateY(10px);opacity:0}}@keyframes star-in{0%{transform:scale(0) rotate(-40deg);opacity:0}}@keyframes nudge{30%{transform:translate(-5px)}65%{transform:translate(4px)}}@keyframes tag-in{0%{transform:scale(.4);opacity:0}}[data-effects=rich] .scene .sc-balanced{stroke:var(--sc-accent);filter:drop-shadow(0 0 8px var(--sc-accent));transition:stroke .3s}[data-effects=rich] .scene .sc-box-open{filter:drop-shadow(0 0 6px var(--sc-accent))}[data-effects=rich] .scene .sc-plot{filter:drop-shadow(0 0 4px var(--world, var(--sc-accent)))}[data-effects=rich] .scene .sc-dot-lit{filter:drop-shadow(0 0 6px var(--sc-accent))}@media(prefers-reduced-motion:no-preference){[data-effects=rich] .scene .sc-box:not(.sc-gone),[data-effects=rich] .scene .sc-unit:not(.sc-gone){transform-box:fill-box;transform-origin:50% 100%;animation:drop-in .45s cubic-bezier(.3,1.5,.5,1) backwards}[data-effects=rich] .scene .sc-dot-lit{transform-box:fill-box;transform-origin:center;animation:point-pop .4s cubic-bezier(.3,1.9,.5,1) backwards}[data-effects=rich] .scene .sc-chip-x,[data-effects=rich] .scene .sc-chip-k,[data-effects=rich] .scene .sc-area-x,[data-effects=rich] .scene .sc-area-k{transform-box:fill-box;transform-origin:center;animation:tile-bounce .5s cubic-bezier(.3,1.7,.5,1) backwards}}@keyframes drop-in{0%{transform:translateY(-40px) scaleY(1.15);opacity:0}70%{transform:translateY(0) scaleY(.85);opacity:1}}@keyframes point-pop{0%{transform:scale(0)}}@keyframes tile-bounce{0%{transform:scale(.5) translateY(-12px);opacity:0}}
