:root{--raised:inset 0 1.5px 0 #ffffff8c, inset 1px 0 0 #ffffff2e, inset -1px 0 0 #00000014, inset 0 -4px 0 #0000002e, 0 1px 1px #0000002e, 0 4px 8px -2px #00000047;--raised-strong:inset 0 2px 0 #fff9, inset 1px 0 0 #fff3, inset -1px 0 0 #0000001a, inset 0 -5px 0 #00000038, 0 2px 2px #0003, 0 8px 14px -4px #00000059;--pressed:inset 0 3px 5px #0003, inset 0 1px 1px #0000001f, inset 0 -1px 0 #ffffff4d;--tray:inset 0 4px 10px #00000042, inset 0 -1px 0 #ffffff4d, 0 0 0 1px #ffffff59, 0 1px 0 #fff6, 0 14px 30px -10px #00000059;--sheen:radial-gradient(ellipse 70% 50% at 30% 18%, #ffffff47, #fff0 70%), linear-gradient(180deg, #ffffff29, #fff0 55%);--ambient:radial-gradient(ellipse 70% 45% at 50% 28%, #fff8e673, transparent 70%), radial-gradient(ellipse 120% 60% at 50% 110%, #00000014, transparent 70%);--shade:radial-gradient(ellipse 120% 95% at 50% 40%, transparent 52%, #0000002e)}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--ambient:radial-gradient(ellipse 80% 60% at 50% 32%, #ffffff0f, transparent 70%);--shade:radial-gradient(ellipse 130% 100% at 50% 40%, transparent 55%, #00000059);--sheen:linear-gradient(180deg, #ffffff1a, #fff0 55%)}}:root[data-theme=dark]{--ambient:radial-gradient(ellipse 80% 60% at 50% 32%, #ffffff0f, transparent 70%);--shade:radial-gradient(ellipse 130% 100% at 50% 40%, transparent 55%, #00000059);--sheen:linear-gradient(180deg, #ffffff1a, #fff0 55%)}@keyframes art-pop{0%{opacity:0;transform:scale(.4)}70%{opacity:1;transform:scale(1.08)}to{transform:scale(1)}}@keyframes art-pulse{0%{transform:scale(1)}45%{transform:scale(1.14)}to{transform:scale(1)}}@keyframes art-shake{0%,to{transform:translate(0)}20%,60%{transform:translate(-5px)}40%,80%{transform:translate(5px)}}@keyframes art-press{0%{transform:scale(1)}40%{transform:scale(.9)}to{transform:scale(1)}}.art-pop{animation:.22s ease-out art-pop}.art-pulse{animation:.22s ease-out art-pulse}.art-shake{animation:.32s ease-in-out art-shake}.art-press{animation:.18s ease-out art-press}@media (prefers-reduced-motion:reduce){.art-pop,.art-pulse,.art-shake,.art-press{animation:none}}.sound-toggle{background:var(--btn,#00000040);width:36px;min-width:36px;height:36px;color:var(--ink,#fff);cursor:pointer;border:0;border-radius:50%;place-items:center;padding:0;display:inline-grid}.sound-toggle svg{width:20px;height:20px}.sound-toggle[aria-pressed=true]{opacity:.7}.sound-toggle:focus-visible{outline:3px solid var(--focus,#ffd54a);outline-offset:2px}:root{--bg:#efe7da;--ink:#2b2118;--btn:#3c281414;--btn-on:#3d6b45;--btn-on-ink:#fff;--focus:#e07b22;--dialog:#fffdf8;--dialog-ink:#2b2118;--wood-a:#b07a45;--wood-b:#7a4b22}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#1e1a16;--ink:#f1e9dc;--btn:#ffffff1a;--dialog:#2a231c;--dialog-ink:#f1e9dc}}:root[data-theme=dark]{--bg:#1e1a16;--ink:#f1e9dc;--btn:#ffffff1a;--dialog:#2a231c;--dialog-ink:#f1e9dc}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--ambient), var(--shade), var(--grain,none), var(--bg);color:var(--ink);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;font:14px/1.3 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}#app.hn{grid-template-rows:auto auto auto 1fr;justify-items:center;gap:6px;height:100dvh;padding:8px 10px 12px;display:grid}.hn-bar{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;display:flex}.group{align-items:center;gap:3px;display:flex}.glabel{opacity:.8;margin-right:2px;font-size:12px}.btn{font:inherit;color:var(--ink);background:var(--btn);cursor:pointer;min-width:32px;min-height:34px;box-shadow:var(--raised);border:0;border-radius:9px;padding:7px 11px}.btn:disabled{opacity:.45;cursor:default}.btn[aria-pressed=true]{background:var(--btn-on);color:var(--btn-on-ink);font-weight:700}.btn.primary{background:var(--btn-on);color:#fff;font-weight:800}.btn:focus-visible,.peg:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.sound-toggle{width:34px;height:34px}.hn-info{font-variant-numeric:tabular-nums;gap:14px;font-size:13px;display:flex}.hn-status{text-align:center;min-height:1.3em;margin:0;font-weight:700}.hn-stage{place-items:center;width:100%;min-height:0;display:grid;container-type:size}.hn-board{--bw:min(100cqw, 760px, calc(100cqh * 1.9));--bh:min(100cqh, calc(var(--bw) * .55));--dh:calc(var(--bh) * .8 / (var(--n) + 1.5));width:var(--bw);height:var(--bh);padding-bottom:calc(var(--bh) * .08);grid-template-columns:repeat(3,1fr);display:grid;position:relative}.base{height:calc(var(--bh) * .08);background:var(--sheen), linear-gradient(180deg, var(--wood-a), var(--wood-b));box-shadow:var(--raised-strong);border-radius:10px;position:absolute;bottom:0;left:0;right:0}.peg{cursor:pointer;background:0 0;border:0;border-radius:14px;flex-direction:column-reverse;justify-content:flex-start;align-items:center;padding:0;display:flex;position:relative}.peg .rod{width:calc(var(--bw) * .018);background:linear-gradient(90deg,#8a5a2b,#d49a5c 45%,#6b4220);border-radius:6px 6px 0 0;height:92%;position:absolute;bottom:0;left:50%;translate:-50%;box-shadow:0 2px 4px #0000004d}.peg.selected{background:#ffd54a24}.peg.target{background:#3d6b4524}.peg:disabled{cursor:default}.disk{z-index:1;width:calc(var(--w) * 100%);height:var(--dh);border-radius:calc(var(--dh) / 2);background:var(--sheen), linear-gradient(180deg, color-mix(in srgb, var(--c), #fff 25%), var(--c) 55%, color-mix(in srgb, var(--c), #000 25%));box-shadow:var(--raised);transition:translate .15s ease-out;position:relative}.disk.lifted{translate:0 calc(var(--dh) * -1.4);box-shadow:var(--raised-strong), 0 0 0 3px #ffd54acc}.won .disk{animation:1s ease-in-out infinite alternate hn-glow}@keyframes hn-glow{to{filter:brightness(1.2)}}.overlay{z-index:20;background:#0006;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.overlay[hidden]{display:none}.overlay.later{animation:1s step-end both hn-later}@keyframes hn-later{0%{visibility:hidden}}.dialog{background:var(--dialog);color:var(--dialog-ink);text-align:center;border-radius:14px;flex-direction:column;gap:10px;max-width:360px;padding:20px 24px;display:flex;box-shadow:0 10px 40px #00000073}.dialog h2{margin:0;font-size:20px}.dialog p{margin:0}.dialog .row{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}@media (max-height:480px){#app.hn{gap:3px;padding:4px 8px 8px}.btn{min-width:28px;min-height:28px;padding:4px 8px}.hn-status{font-size:12px}.glabel{display:none}}@media (prefers-reduced-motion:reduce){.disk{transition:none}.won .disk,.overlay.later{animation:none}}
