@font-face{font-family:Fredoka Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(./fredoka-hebrew-wght-normal-DdnsCkLr.woff2)format("woff2-variations");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Fredoka Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(./fredoka-latin-ext-wght-normal-CYrqKuxd.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,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:Fredoka Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(./fredoka-latin-wght-normal-DM6njrJ3.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--bg:#e4f3f0;--bg-deep:#cde7e2;--surface:#fff;--surface-2:#f1f8f6;--text:#16333a;--muted:#5d7c82;--line:#cfe2de;--board:#7cc3bb;--board-edge:#58a79e;--tile:#fff;--tile-edge:#c2dbd6;--tile-hover:#f0faf8;--x:#dc2626;--o:#2563eb;--duck:#ffc629;--duck-edge:#dc9f00;--duck-text:#3b2a00;--win:#ffe27a;--win-edge:#e7bd2c;--danger:#d63a3a;--backdrop:#0e282e73;--shadow:0 18px 40px #0e282e38;--ghost-filter:grayscale(1);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#11242c;--bg-deep:#0a171d;--surface:#17313b;--surface-2:#1d3a45;--text:#eaf4f3;--muted:#8eaab0;--line:#2a4a55;--board:#0e3a43;--board-edge:#082830;--tile:#1d3d48;--tile-edge:#0d252c;--tile-hover:#244854;--x:#ff5a6e;--o:#5aa2ff;--win:#6a5714;--win-edge:#3f330b;--danger:#ff6b5b;--backdrop:#0009;--shadow:0 18px 40px #00000080;--ghost-filter:grayscale(1) invert(1);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#11242c;--bg-deep:#0a171d;--surface:#17313b;--surface-2:#1d3a45;--text:#eaf4f3;--muted:#8eaab0;--line:#2a4a55;--board:#0e3a43;--board-edge:#082830;--tile:#1d3d48;--tile-edge:#0d252c;--tile-hover:#244854;--x:#ff5a6e;--o:#5aa2ff;--win:#6a5714;--win-edge:#3f330b;--danger:#ff6b5b;--backdrop:#0009;--shadow:0 18px 40px #00000080;--ghost-filter:grayscale(1) invert(1);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:radial-gradient(120% 70% at 50% 0%, var(--bg) 0%, var(--bg-deep) 100%) fixed;background-color:var(--bg-deep);color:var(--text);-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;font-family:Fredoka Variable,ui-rounded,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-weight:450}button,input,select{font:inherit;color:inherit}.app{min-height:100%;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);flex-direction:column;display:flex}.header{grid-template-columns:1fr auto 1fr;align-items:center;width:min(100%,560px);margin:0 auto;padding:10px 12px 4px;display:grid}.header-side{gap:2px;display:flex}.header-side.right{justify-content:flex-end}.logo{letter-spacing:-.01em;white-space:nowrap;align-items:center;gap:8px;margin:0;font-size:1.45rem;font-weight:700;display:flex}.logo .logo-duck{width:38px;height:38px;transform:rotate(-8deg)}.logo-sub{color:var(--muted);font-weight:600}@media (width<=460px){.logo{gap:6px;font-size:1.35rem}.logo-text{flex-direction:column;line-height:.95;display:flex}.logo-sub{letter-spacing:.04em;font-size:.72rem}.logo .logo-duck{width:34px;height:34px}.icon-button{width:38px}}.icon-button{width:42px;height:42px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:12px;place-items:center;display:inline-grid}.icon-button:hover{background:color-mix(in srgb, var(--surface) 70%, transparent);color:var(--text)}.main{flex-direction:column;flex:1;align-items:center;gap:16px;padding:10px 16px 24px;display:flex}.player-cards{grid-template-columns:1fr 1fr;gap:10px;width:min(100%,520px);display:grid}.player-card{background:var(--surface);min-width:0;box-shadow:0 3px 0 var(--line);opacity:.7;border:2.5px solid #0000;border-radius:18px;align-items:center;gap:10px;padding:9px 12px;transition:transform .15s,border-color .15s,opacity .15s;display:flex}.player-card.active{opacity:1;border-color:var(--duck);box-shadow:0 5px 0 var(--duck-edge);transform:translateY(-2px)}.player-card.won{opacity:1;background:var(--win);box-shadow:0 4px 0 var(--win-edge)}.player-card .card-mark{flex:none;width:30px;height:30px}.card-text{flex-direction:column;flex:1;min-width:0;line-height:1.15;display:flex}.card-name{text-overflow:ellipsis;white-space:nowrap;font-size:1.05rem;font-weight:650;overflow:hidden}.card-sub{white-space:nowrap;min-height:1.2em;color:var(--muted);align-items:center;gap:4px;font-size:.88rem;font-weight:550;display:flex}.card-sub.thinking{animation:1s ease-in-out infinite pulse}.player-card .card-duck{width:18px;height:18px}.card-score{font-variant-numeric:tabular-nums;font-size:1.5rem;font-weight:700}@keyframes pulse{50%{opacity:.45}}.board{--gap:clamp(6px, 1.8vw, 10px);grid-template-columns:repeat(var(--cols), 1fr);grid-template-rows:repeat(var(--rows), 1fr);gap:var(--gap);width:min(100%, 520px, calc(max(100dvh - 300px, 240px) * var(--cols) / var(--rows)));aspect-ratio:var(--cols) / var(--rows);padding:var(--gap);padding-bottom:calc(var(--gap) + 4px);background:var(--board);box-shadow:0 6px 0 var(--board-edge), var(--shadow);border-radius:24px;display:grid}.cell{background:var(--tile);box-shadow:0 4px 0 var(--tile-edge);cursor:default;border:0;border-radius:clamp(8px,2.4vw,14px);place-items:center;padding:0;transition:transform 80ms,box-shadow 80ms,background .15s;display:grid;position:relative;overflow:hidden}.cell>*{grid-area:1/1}.cell.playable{cursor:pointer}.cell.playable:active{box-shadow:0 1px 0 var(--tile-edge);transform:translateY(3px)}.cell.recent{background:var(--tile-hover)}.cell.highlight{background:var(--win);box-shadow:0 4px 0 var(--win-edge)}.cell.highlight .mark{animation:.6s ease-in-out .1s 2 cheer}.board.placing-duck.interactive .cell.playable:after{content:"";aspect-ratio:1;background:var(--duck);opacity:.55;border-radius:50%;grid-area:1/1;width:16%}.cell:focus-visible{outline:3px solid var(--duck-edge);outline-offset:-3px}.mark{place-items:center;width:70%;height:70%;display:grid}.mark-glyph{width:100%;height:100%}.mark-0{color:var(--x)}.mark-1{color:var(--o)}.cell .mark{animation:.2s cubic-bezier(.3,1.6,.6,1) pop}.duck{width:76%;height:76%;animation:.35s ease-out waddle;display:grid}.duck-glyph{object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;width:100%;height:100%}.duck.ghost{opacity:.28;filter:var(--ghost-filter);animation:none}.preview{opacity:0;pointer-events:none;place-items:center;width:100%;height:100%;display:grid}.preview .mark,.preview .duck{animation:none}@media (hover:hover){.cell.playable:hover{background:var(--tile-hover)}.cell.playable:hover .preview{opacity:.35}.board.placing-duck.interactive .cell.playable:hover:after{display:none}}@keyframes pop{0%{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}@keyframes waddle{0%{opacity:0;transform:translateY(-20%)rotate(-14deg)}60%{opacity:1;transform:translateY(0)rotate(8deg)}to{transform:rotate(0)}}@keyframes cheer{50%{transform:scale(1.15)rotate(-6deg)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.actions{flex-wrap:wrap;justify-content:center;gap:10px;min-height:50px;display:flex}.button{border:2px solid var(--line);background:var(--surface);min-height:48px;box-shadow:0 4px 0 var(--line);cursor:pointer;border-radius:16px;justify-content:center;align-items:center;gap:7px;padding:0 22px;font-size:1.02rem;font-weight:600;transition:transform 80ms,box-shadow 80ms;display:inline-flex}.button:active:not(:disabled){box-shadow:0 1px 0 var(--line);transform:translateY(3px)}.button svg{width:19px;height:19px}.button.primary{border-color:var(--duck);background:var(--duck);color:var(--duck-text);box-shadow:0 4px 0 var(--duck-edge)}.button.primary:active:not(:disabled){box-shadow:0 1px 0 var(--duck-edge)}.button.big{min-width:200px;min-height:54px;font-size:1.18rem;font-weight:700}.button.danger{border-color:var(--danger);background:var(--danger);color:#fff;box-shadow:0 4px 0 color-mix(in srgb, var(--danger) 70%, #000)}.button.quiet{box-shadow:none;color:var(--muted);background:0 0;border-color:#0000}.button:disabled{opacity:.4;cursor:default}.link-button{color:var(--muted);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:4px 6px;font-size:.9rem;text-decoration:underline}.link-button:disabled{opacity:.4;cursor:default}.setup-summary{background:color-mix(in srgb, var(--surface) 60%, transparent);color:var(--muted);cursor:pointer;border:0;border-radius:999px;padding:5px 14px;font-size:.88rem;font-weight:550}.muted{color:var(--muted)}.small{font-size:.88rem}.center{text-align:center}.modal-backdrop{z-index:10;background:var(--backdrop);place-items:center;padding:16px;animation:.15s ease-out fade;display:grid;position:fixed;inset:0}.modal{background:var(--surface);width:min(100%,420px);max-height:calc(100dvh - 32px);box-shadow:var(--shadow);border-radius:26px;padding:22px 20px 20px;animation:.25s cubic-bezier(.3,1.4,.6,1) rise;position:relative;overflow-y:auto}.modal h2{margin:0 44px 14px 0;font-size:1.45rem;font-weight:700}.modal h3{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:18px 0 8px;font-size:.82rem;font-weight:650}.modal-close{position:absolute;top:12px;right:12px}.modal .actions{margin-top:18px}.actions.stacked{flex-direction:column;align-items:stretch}@keyframes fade{0%{opacity:0}}@keyframes rise{0%{opacity:0;transform:translateY(24px)scale(.96)}}.result-modal{text-align:center;padding-top:26px}.result-duck{width:104px;height:104px;margin:0 auto 4px}.result-modal.win .result-duck{animation:.7s ease-in-out .2s 3 hop}.result-modal.loss .result-duck{filter:saturate(.5);transform:rotate(-18deg)translateY(6px)}.result-modal.draw .result-duck{animation:1.4s ease-in-out infinite sway}.result-headline{line-height:1.1;margin:0!important;font-size:2rem!important}.result-detail{color:var(--muted);margin:6px 0 0;font-size:1.05rem}.result-chips{justify-content:center;gap:10px;margin-top:16px;display:flex}.chip-stat{background:var(--surface-2);border-radius:16px;flex-direction:column;min-width:96px;padding:8px 14px;display:flex}.chip-stat.hot{background:color-mix(in srgb, var(--duck) 30%, var(--surface-2))}.chip-label{color:var(--muted);letter-spacing:.05em;text-transform:uppercase;font-size:.78rem;font-weight:600}.chip-value{font-variant-numeric:tabular-nums;font-size:1.45rem;font-weight:700}.chip-draws{color:var(--muted)}.kofi{color:var(--muted);text-align:center;margin-top:16px;font-size:.9rem;font-weight:550;text-decoration:none;display:block}.kofi:hover{color:var(--text);text-underline-offset:3px;text-decoration:underline}@keyframes hop{0%,to{transform:translateY(0)rotate(0)}30%{transform:translateY(-18px)rotate(-8deg)}60%{transform:translateY(0)rotate(6deg)}}@keyframes sway{0%,to{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}.help-modal{text-align:center}.help-modal h2{margin-right:0}.help-hero{width:84px;height:84px;margin:0 auto 6px;animation:2s ease-in-out infinite sway}.tagline{margin:0 0 16px;font-size:1.15rem;font-weight:600}.steps{counter-reset:step;text-align:left;gap:10px;margin:0;padding:0;list-style:none;display:grid}.steps li{background:var(--surface-2);counter-increment:step;border-radius:14px;align-items:center;gap:12px;padding:10px 12px;font-size:1.05rem;display:flex}.steps li:before{content:counter(step);background:var(--duck);width:30px;height:30px;color:var(--duck-text);border-radius:50%;flex:none;place-items:center;font-weight:700;display:grid}.field{flex-direction:column;gap:7px;margin-bottom:14px;display:flex}.field.row{flex-direction:row;justify-content:space-between;align-items:center;gap:12px}.field-label{font-weight:600}.help{color:var(--muted);font-size:.84rem;display:block}.text-input{border:2px solid var(--line);background:var(--surface-2);border-radius:14px;min-height:44px;padding:0 12px}.setup-select{width:100%;margin-bottom:12px}.segmented{background:var(--surface-2);border-radius:16px;gap:4px;padding:4px;display:flex}.segmented button{cursor:pointer;background:0 0;border:0;border-radius:12px;flex:1;min-height:40px;padding:0 8px;font-weight:550}.segmented button.selected{background:var(--duck);color:var(--duck-text);box-shadow:0 3px 0 var(--duck-edge);font-weight:650}.board-presets{grid-template-columns:1fr 1fr;gap:10px;display:grid}.board-preset{border:2.5px solid var(--line);background:var(--surface);box-shadow:0 3px 0 var(--line);cursor:pointer;border-radius:16px;flex-direction:column;align-items:center;gap:2px;padding:12px 8px;display:flex}.board-preset.selected{border-color:var(--duck);background:color-mix(in srgb, var(--duck) 22%, var(--surface));box-shadow:0 3px 0 var(--duck-edge)}.preset-label{font-size:1.1rem;font-weight:650}.preset-detail{color:var(--muted);font-size:.84rem;font-weight:550}.more-toggle{color:var(--muted);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;margin:2px 0 10px;padding:4px 0;font-weight:600;display:flex}.more-toggle .chevron{font-size:1.2rem;line-height:1;transition:transform .15s;display:inline-block}.more-toggle[aria-expanded=true] .chevron{transform:rotate(90deg)}.more-options{background:var(--surface-2);border-radius:16px;padding:14px 14px 2px}.rule-note{color:var(--muted);margin:12px 4px 0;font-size:.92rem}.stepper{align-items:center;gap:6px;display:flex}.stepper button{border:2px solid var(--line);background:var(--surface);width:38px;height:38px;box-shadow:0 3px 0 var(--line);cursor:pointer;border-radius:12px;font-size:1.25rem;font-weight:600}.stepper button:active:not(:disabled){box-shadow:0 1px 0 var(--line);transform:translateY(2px)}.stepper button:disabled{opacity:.35;cursor:default}.stepper-value{font-variant-numeric:tabular-nums;text-align:center;min-width:2ch;font-size:1.15rem;font-weight:700}.toggle{background:var(--line);appearance:none;cursor:pointer;border-radius:999px;flex:none;width:50px;height:30px;margin:0;transition:background .15s;position:relative}.toggle:before{content:"";background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 2px 3px #0003}.toggle:checked{background:var(--duck)}.toggle:checked:before{transform:translate(20px)}.tiles{grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px;display:grid}.tile{background:var(--surface-2);border-radius:14px;flex-direction:column;align-items:center;min-width:0;padding:10px 4px;display:flex}.tile-value{font-variant-numeric:tabular-nums;font-size:1.6rem;font-weight:700}.tile-label{max-width:100%;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-weight:550;overflow:hidden}.stat-lines{grid-template-columns:1fr auto;gap:8px 12px;margin:16px 2px 0;display:grid}.stat-lines dt{color:var(--muted)}.stat-lines dd{font-variant-numeric:tabular-nums;text-align:right;margin:0;font-weight:600}.reset-links{justify-content:center;gap:12px;margin-top:16px;display:flex}.confirm-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-top:16px;display:flex}.toast{left:50%;bottom:calc(24px + env(safe-area-inset-bottom));z-index:20;background:var(--text);color:var(--surface);opacity:0;pointer-events:none;border-radius:999px;padding:10px 18px;font-weight:600;transition:transform .2s,opacity .2s;position:fixed;transform:translate(-50%,20px)}.toast.show{opacity:1;transform:translate(-50%)}
