.bhb-board{--bhb-cell-stroke-width:0;--bhb-cell-font-family:system-ui, "Segoe UI", Roboto, sans-serif;--bhb-cell-font-size:1.5rem;--bhb-cell-font-weight:600;--bhb-hand-font:"Patrick Hand", "Comic Sans MS", "Segoe Print", cursive;user-select:none;max-width:100%;height:auto;display:block}.bhb-theme-classic{--bhb-bg:transparent;--bhb-empty:#e6e9f2;--bhb-empty-stroke:#a7aec8;--bhb-player1:#4da3ff;--bhb-player2:#ff8a3d;--bhb-piece-text:#071020;--bhb-black-hole:#000;--bhb-black-hole-stroke:#ffd166;--bhb-hole-ink:#ffd166;--bhb-safe-ring:#ffd166;--bhb-cell-stroke-width:1;--bhb-cell-font-weight:800}@media (prefers-color-scheme:dark){.bhb-theme-classic{--bhb-empty:#080d1d;--bhb-empty-stroke:#52617e}}.bhb-theme-handwriting{--bhb-bg:#fbfbf2;--bhb-bg-overlay:url(#bhb-paper-lines);--bhb-empty:transparent;--bhb-empty-stroke:#b8c4d0;--bhb-player1:#1f6fd1;--bhb-player2:#c8571a;--bhb-piece-text:currentColor;--bhb-black-hole:#1a1a1a;--bhb-hole-ink:#1a1a1a;--bhb-safe-ring:#b7950b;--bhb-cell-stroke-width:2.2;--bhb-cell-font-family:var(--bhb-hand-font);--bhb-cell-font-size:1.7rem;--bhb-cell-font-weight:700}@media (prefers-color-scheme:dark){.bhb-theme-handwriting{--bhb-bg:#14321f;--bhb-bg-overlay:transparent;--bhb-empty-stroke:#6f8a78;--bhb-player1:#8ec5ff;--bhb-player2:#ffb27a;--bhb-black-hole:#000;--bhb-hole-ink:#eef2ea;--bhb-safe-ring:#ffe08a}}.bhb-bg{fill:var(--bhb-bg)}.bhb-bg-overlay{fill:var(--bhb-bg-overlay,transparent);pointer-events:none}.bhb-cell-circle{stroke-width:var(--bhb-cell-stroke-width);transition:opacity .3s,transform .3s}.bhb-cell-empty .bhb-cell-circle{fill:var(--bhb-empty);stroke:var(--bhb-empty-stroke)}.bhb-cell-player1 .bhb-cell-circle{fill:var(--bhb-player1)}.bhb-cell-player2 .bhb-cell-circle{fill:var(--bhb-player2)}.bhb-cell-black-hole .bhb-cell-circle{fill:var(--bhb-black-hole);stroke:var(--bhb-black-hole-stroke,none);stroke-width:2px}.bhb-swallowed-fade .bhb-cell-sucked-in{opacity:.25}.bhb-cell-strike{fill:none;stroke:var(--bhb-piece-text);stroke-width:3px;stroke-linecap:round;pointer-events:none;display:none}.bhb-swallowed-strike .bhb-cell-strike{display:inline}.bhb-hole-mark{fill:none;stroke:var(--bhb-hole-ink);stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;display:none}.bhb-hole-spiral .bhb-hole-mark-spiral,.bhb-hole-scribble .bhb-hole-mark-scribble{display:inline}.bhb-hole-spiral .bhb-cell-black-hole .bhb-cell-circle,.bhb-hole-scribble .bhb-cell-black-hole .bhb-cell-circle{fill:var(--bhb-empty);stroke:var(--bhb-empty-stroke);stroke-width:var(--bhb-cell-stroke-width)}.bhb-cell-safe .bhb-cell-circle{stroke:var(--bhb-safe-ring);stroke-width:4px}.bhb-cell-label{font-family:var(--bhb-cell-font-family);font-size:var(--bhb-cell-font-size);font-weight:var(--bhb-cell-font-weight);fill:var(--bhb-piece-text);pointer-events:none;dominant-baseline:central;text-anchor:middle}.bhb-cell-player1 .bhb-cell-label,.bhb-cell-player2 .bhb-cell-label{fill:var(--bhb-piece-text)}.bhb-theme-handwriting .bhb-cell-circle,.bhb-theme-handwriting .bhb-hole-mark,.bhb-theme-handwriting .bhb-cell-strike{filter:url(#bhb-rough)}.bhb-theme-handwriting .bhb-cell-player1 .bhb-cell-strike{stroke:var(--bhb-player1)}.bhb-theme-handwriting .bhb-cell-player2 .bhb-cell-strike{stroke:var(--bhb-player2)}.bhb-theme-handwriting .bhb-cell-player1 .bhb-cell-circle,.bhb-theme-handwriting .bhb-cell-player2 .bhb-cell-circle{fill:#0000;stroke:var(--bhb-empty-stroke)}.bhb-theme-handwriting .bhb-cell-player1 .bhb-cell-label{fill:var(--bhb-player1)}.bhb-theme-handwriting .bhb-cell-player2 .bhb-cell-label{fill:var(--bhb-player2)}.bhb-clickable{cursor:pointer}.bhb-cell-banked .bhb-cell-circle{opacity:.3}.bhb-flying-token{font-family:var(--bhb-cell-font-family);font-size:var(--bhb-cell-font-size);dominant-baseline:central;text-anchor:middle;font-weight:700}.bhb-flying-p1{fill:var(--bhb-player1)}.bhb-flying-p2{fill:var(--bhb-player2)}.bhb-score{font-family:var(--bhb-cell-font-family);dominant-baseline:central;font-size:1.25rem;font-weight:700}.bhb-score-p1{fill:var(--bhb-player1);text-anchor:start}.bhb-score-p2{fill:var(--bhb-player2);text-anchor:end}.bhb-cycle-counter{fill:var(--bhb-empty-stroke);font-family:var(--bhb-cell-font-family);font-variant-numeric:tabular-nums;font-size:1.1rem;font-weight:600}.bhb-transposition{display:block;position:relative}.bhb-flip-bg{pointer-events:none;display:block;position:absolute;inset:0}.bhb-flip-card{transform-style:preserve-3d;will-change:transform;position:relative}.bhb-flip-face{backface-visibility:hidden;display:block}.bhb-flip-back{position:absolute;inset:0}.bhb-pt,.bhb-enc{--bhb-pt-bg:#f4f6fb;--bhb-pt-ink:#1b2340;box-sizing:border-box;background:var(--bhb-pt-bg);width:100%;color:var(--bhb-pt-ink);border-radius:14px;padding:16px}.bhb-pt.bhb-theme-handwriting,.bhb-enc.bhb-theme-handwriting{--bhb-pt-bg:#fbfbf2;--bhb-pt-ink:#2b3440;background-image:repeating-linear-gradient(#0000 0 27px,#dbe7f2 27px 28px)}@media (prefers-color-scheme:dark){.bhb-pt,.bhb-enc{--bhb-pt-bg:#0b1224;--bhb-pt-ink:#dfe6f5}.bhb-pt.bhb-theme-handwriting,.bhb-enc.bhb-theme-handwriting{--bhb-pt-bg:#14321f;--bhb-pt-ink:#eef2ea;background-image:none}}.bhb-pt-stage{position:relative}.bhb-board.bhb-proof-tree{width:100%;overflow:visible}.bhb-pt-board{transform-box:view-box;transform-origin:0 0;transition:transform .9s ease-in-out,opacity .4s}.bhb-pt-board[role=button]{cursor:zoom-in}.bhb-pt-focused .bhb-pt-board:not(.bhb-pt-faded){cursor:zoom-out}.bhb-pt-hidden{visibility:hidden}.bhb-pt-faded{opacity:0;pointer-events:none}.bhb-pt-hit{fill:#0000;stroke:none}.bhb-pt-board:hover .bhb-pt-hit,.bhb-pt-board:focus-visible .bhb-pt-hit{stroke:var(--bhb-empty-stroke);stroke-width:2px;vector-effect:non-scaling-stroke}.bhb-pt-board:focus{outline:none}.bhb-proof-tree .bhb-cell-circle,.bhb-proof-tree .bhb-hole-mark,.bhb-proof-tree .bhb-cell-strike{filter:none}.bhb-pt-result{font-family:var(--bhb-cell-font-family);dominant-baseline:hanging;pointer-events:none;font-size:5rem;font-weight:800;display:none}.bhb-pt-p1{fill:var(--bhb-player1)}.bhb-pt-p2{fill:var(--bhb-player2)}.bhb-pt-draw{fill:var(--bhb-empty-stroke)}.bhb-pt-show-result .bhb-pt-result{display:inline}.bhb-pt-next .bhb-pt-hit{stroke:var(--bhb-player1);stroke-width:3px;vector-effect:non-scaling-stroke}.bhb-pt-start{place-items:center;display:grid;position:absolute;inset:0}.bhb-pt-start button{background:var(--bhb-player1);color:#fff;font:inherit;cursor:pointer;border:0;border-radius:999px;padding:12px 22px;font-weight:700;box-shadow:0 4px 14px #0000002e}.bhb-pt-controls{flex-wrap:wrap;align-items:center;gap:10px 12px;margin-top:12px;display:flex}.bhb-pt-controls button,.bhb-pt .bhb-pt-link{color:inherit;font:inherit;line-height:inherit;font-weight:inherit;cursor:pointer;background:0 0;border:1px solid;border-radius:6px;padding:6px 12px;text-decoration:none}.bhb-pt-controls>button{min-width:5.5em}.bhb-pt-chapters{gap:4px;display:inline-flex}.bhb-pt-chapters button{font-variant-numeric:tabular-nums;min-width:2.2em;padding:6px 0}.bhb-pt-chapters button[aria-pressed=true]{background:var(--bhb-player1);border-color:var(--bhb-player1);color:#fff}.bhb-pt-controls input{accent-color:var(--bhb-player1);flex:160px}.bhb-pt-status{opacity:.85;min-height:2.8em;margin:8px 0 0;font-size:14px}@media (prefers-reduced-motion:reduce){.bhb-pt-board{transition:none}}.bhb-enc{font-size:15px}.bhb-enc-tabs{flex-wrap:wrap;gap:6px;display:flex}.bhb-enc-tabs button{color:inherit;font:inherit;cursor:pointer;background:0 0;border:1px solid;border-radius:999px;padding:6px 12px}.bhb-enc-tabs button[aria-selected=true]{background:var(--bhb-player1);border-color:var(--bhb-player1);color:#fff}.bhb-enc-summary{min-height:3em;margin:12px 0}.bhb-enc-body{flex-wrap:wrap;align-items:flex-start;gap:20px;display:flex}.bhb-enc-position{flex:0 240px;min-width:200px}.bhb-enc-position .bhb-bg,.bhb-enc-position .bhb-bg-overlay{fill:#0000}.bhb-enc-slider{gap:4px;margin-top:8px;font-size:13px;display:grid}.bhb-enc-slider input{width:100%;accent-color:var(--bhb-player1)}.bhb-enc-planes{flex:300px;min-width:0}.bhb-enc-group h4{margin:0 0 6px;font-size:13px;font-weight:600}.bhb-enc-group+.bhb-enc-group{margin-top:14px}.bhb-enc-grid{flex-wrap:wrap;gap:8px 10px;display:flex}.bhb-enc-plane{width:56px;margin:0}.bhb-enc-plane svg{width:56px;height:56px;display:block}.bhb-enc-plane figcaption{margin-top:3px;font-size:10.5px;line-height:1.2}.bhb-enc-idx{opacity:.6;font-variant-numeric:tabular-nums}.bhb-enc-const{font-variant-numeric:tabular-nums}.bhb-enc-sq{fill:#0000;stroke:var(--bhb-empty-stroke);stroke-width:.6px}.bhb-enc-off{fill:var(--bhb-empty-stroke);fill-opacity:.18;stroke-opacity:.4}.bhb-enc-sq.bhb-enc-pos{fill:var(--bhb-pt-ink)}.bhb-enc-sq.bhb-enc-neg{fill:var(--bhb-player2)}.bhb-enc-cells{grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:4px;display:grid}.bhb-enc-cells span{border:1px solid var(--bhb-empty-stroke);font-variant-numeric:tabular-nums;border-radius:4px;place-items:center;padding:4px 0;font-weight:700;display:grid}.bhb-enc-cells small{opacity:.6;font-size:9px;font-weight:400}.bhb-enc-p1{color:var(--bhb-player1)}.bhb-enc-p2{color:var(--bhb-player2)}.bhb-enc-zero{opacity:.45}.bhb-enc-vector figcaption{opacity:.8;margin-top:6px;font-size:13px}.bh-figure{flex-direction:column;align-items:center;gap:.75rem;margin:2em auto;display:flex}.bh-figure svg.bhb-board:not(.bhb-proof-tree),.bh-figure .bhb-flip-bg,.bh-figure .bhb-flip-face{border-radius:14px;overflow:hidden}.bh-figure-controls{flex-wrap:wrap;justify-content:center;gap:.5rem;display:flex}.bh-figure-controls button{cursor:pointer;font:inherit;background:0 0;border:1px solid;border-radius:999px;padding:6px 14px;font-size:.875rem;line-height:1.25}.bh-figure-controls button:disabled{opacity:.4;cursor:default}.prose .bh-figure figcaption{text-align:center;text-wrap:pretty;color:var(--un-prose-captions);margin:0;font-size:.875rem;line-height:1.5}
