@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-primary: #ffd23f;--po-focus: #ffd23f;--po-success: #5ee07a;--po-danger: #ff6b6b;--sail: #fff6dc;--ink: #1b1b2a}html,body{height:100%}button:disabled{cursor:default;opacity:.45}.app{min-height:100svh;max-width:1000px;margin-inline:auto;display:flex;flex-direction:column;gap:12px;padding-block:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-bottom));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 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:var(--po-space-2);flex-wrap:wrap;justify-content:flex-end}.menu,.scores{max-width:640px;width:100%;margin-inline:auto}.how-to{margin:0;color:var(--po-text-muted);font-size:var(--po-text-lg)}.overlay .name-field{width:min(100%,280px);text-align:start}.scores>button{align-self:flex-start}.scores .empty,.scores .scores-note{margin:0;color:var(--po-text-muted)}.scores .scores-note{font-size:var(--po-text-sm)}.scores .who{font-weight:600;max-width:10em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scores .mode{color:var(--po-text-muted);font-size:var(--po-text-sm)}.scores tr.mine td{background:#ffd23f26}.play{display:flex;flex-direction:column;align-items:center;gap:10px}.stage{position:relative;container-type:inline-size;width:min(100%,max(320px,calc((100svh - 240px)*1.6)))}.stage canvas{display:block;width:100%;height:auto;image-rendering:pixelated;border:3px solid var(--po-border);border-radius:4px;box-shadow:4px 4px 0 var(--po-shadow);background:#4fb8ee}.hud{position:absolute;left:calc(3px + (100% - 6px)*.84375);top:calc(3px + (100% - 6px)*.28);width:calc((100% - 6px)*.14375);height:calc((100% - 6px)*.45);display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:1.2cqw;padding:.8cqw .6cqw;color:var(--ink);text-align:center}.hud-box{display:flex;flex-direction:column;border:.35cqw solid var(--ink);background:#fffbe9;padding:.3cqw .2cqw}.hud-label{font-size:1.55cqw;font-weight:700;color:#8b4a1f}.hud-value{font-size:2.5cqw;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1}.hud-meta{display:flex;flex-direction:column;font-size:1.3cqw;font-weight:600;line-height:1.3}@container (max-width: 600px){.hud{position:static;width:100%;height:auto;flex-direction:row;align-items:center;gap:8px;margin-top:8px;padding:0;color:var(--po-text)}.hud-box{flex:1;flex-direction:row;justify-content:space-between;align-items:baseline;gap:6px;border:2px solid var(--ink);padding:4px 8px;border-radius:4px;color:var(--ink);background:var(--sail)}.hud-label{font-size:var(--po-text-sm)}.hud-value{font-size:var(--po-text-lg)}.hud-meta{font-size:var(--po-text-sm);color:var(--po-text-muted);white-space:nowrap}}.overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px;overflow:auto;background:var(--po-overlay);border-radius:4px;text-align:center}.overlay h2{margin:0;font-size:clamp(18px,4cqw,30px);color:var(--po-primary);text-shadow:2px 2px 0 var(--po-shadow)}.overlay p{margin:0;color:var(--po-text-muted)}.overlay .big{font-size:clamp(16px,3cqw,24px);color:var(--po-text);font-weight:700}.overlay .new-high{color:var(--po-success);font-weight:700;animation:blink .8s steps(2) 4}.overlay-actions{justify-content:center;margin-top:6px}@keyframes blink{50%{opacity:.3}}.feedback{margin:0;min-height:1.5em;font-size:var(--po-text-lg);font-weight:700;color:var(--po-success)}.feedback.wrong,.feedback.danger{color:var(--po-danger)}.feedback.danger{animation:blink .6s steps(2) infinite}.answer-area{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:360px}.answer{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;padding:6px 12px;border:3px solid var(--po-primary);border-radius:var(--po-radius-sm);background:var(--po-bg);font-size:30px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:.06em}.caret{width:3px;height:1em;margin-inline-start:4px;background:var(--po-primary);animation:blink 1s steps(2) infinite}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:100%}.keypad button{min-height:var(--po-tap);border-radius:var(--po-radius-sm);border:2px solid var(--po-border-control);border-bottom-width:4px;background:var(--po-surface);font-size:22px;font-weight:700}.keypad button:active:not(:disabled){transform:translateY(2px);border-bottom-width:2px}.keypad .key-enter{background:var(--po-success);border-color:#2f9a48;color:var(--ink);font-size:var(--po-text-lg)}.keypad .key-back{font-size:20px}@media(min-width:760px){.answer-area{flex-direction:row;max-width:none;justify-content:center}.answer{width:140px;flex-shrink:0;min-height:var(--po-tap);font-size:26px}.keypad{grid-template-columns:repeat(10,var(--po-tap)) var(--po-tap) 96px;width:auto}.keypad button{font-size:var(--po-text-lg)}.keypad .key-back{order:1}.keypad .key-enter{order:2}}.help{margin:0;color:var(--po-text-muted);font-size:var(--po-text-sm);text-align:center}@media(pointer:coarse){.help{display:none}}@media(prefers-reduced-motion:reduce){.caret,.feedback.danger,.overlay .new-high{animation:none}}.music-toggle{align-self:flex-start}
