.bd-game{--bd-ink:#193b36;--bd-paper:#fffdf6;--bd-green:#225349;--bd-line:#647e71;min-width:0;max-width:100%;color:var(--bd-ink);font-size:1rem;line-height:1.65;overflow-wrap:normal;word-break:normal}.bd-game *{box-sizing:border-box}.bd-game [hidden]{display:none!important}.bd-game .bd-intro{display:block;width:100%;max-width:none;margin:0 0 1rem;padding:1rem;border:2px solid #c2aa7c;border-radius:20px;background:#f5eddb}.bd-game h3{font-size:1.5rem;line-height:1.35;margin:0 0 .5rem}.bd-game h4{font-size:1.2rem;line-height:1.45;margin:0 0 .7rem}.bd-game p{font-size:1rem!important;line-height:1.65!important;margin:0 0 .7rem}.bd-game .bd-eyebrow{font-weight:800;letter-spacing:.02em;font-size:.85rem!important}.bd-game button,.bd-game select{min-height:64px;font:inherit;font-size:1rem;line-height:1.5!important;min-width:0;max-width:100%;border:2px solid var(--bd-line);border-radius:12px;padding:.45rem .65rem;white-space:normal;word-break:normal;overflow-wrap:normal;color:var(--bd-ink);background:#fff;touch-action:manipulation}.bd-game button{cursor:pointer;font-weight:800}.bd-game button:hover{background:#edf4e8}.bd-game button:disabled{cursor:default;opacity:1;color:#52655c;border-color:#8f9d93;background:#e5e9e3}.bd-game button.bd-primary{background:var(--bd-green);border-color:var(--bd-green);color:white;font-weight:850}.bd-game button.bd-primary:disabled{color:#52655c;border-color:#8f9d93;background:#e5e9e3}.bd-game :is(button,select,summary,[tabindex]):focus-visible{outline:4px solid #9b3d19;outline-offset:4px}.bd-help,.bd-settings,.bd-rules,.bd-number-tools,.bd-board-tools{border:2px solid var(--bd-line);border-radius:14px;background:var(--bd-paper);padding:.35rem .7rem;margin:0 0 .9rem}.bd-game summary{font-size:1rem;font-weight:800;line-height:1.6;min-height:64px;padding:.4rem 0;cursor:pointer}.bd-game details[open]>summary{margin-bottom:.65rem}.bd-game ol{padding-left:1.3rem}.bd-game li{font-size:1rem;line-height:1.7;margin-bottom:.7rem}.bd-settings label,.bd-number-choice label{display:grid;gap:.35rem;font-weight:800;min-width:0;margin-bottom:.7rem}.bd-settings select{width:100%}.bd-settings>button{width:100%;margin:.4rem 0 .7rem}.bd-scorebar{padding:.8rem 1rem;border-left:6px solid var(--bd-green);background:#ecf3e7;margin:1rem 0}.bd-scorebar strong{display:block;font-size:1.15rem;line-height:1.5;margin-bottom:.5rem}.bd-scorebar p{margin-bottom:.25rem}.bd-status{min-height:4.95em;font-weight:800;padding:.75rem;border:2px solid var(--bd-line);border-radius:12px;background:#fff}.bd-number-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:1rem 0}.bd-number-choice label{margin:0}.bd-number-choice button{grid-column:1/-1}.bd-confirm-panel{margin:.8rem 0 1rem;padding:.7rem;border:2px solid var(--bd-green);border-radius:14px;background:#f0f4e8}.bd-confirm-panel button{width:100%}.bd-game .bd-preview{font-weight:850;margin-bottom:.55rem;min-height:1.65em}.bd-game .bd-pan-note{margin:1rem 0 .6rem}.bd-pan{--bd-cell:44px;--bd-size:9;position:relative;overflow:auto;width:calc(var(--bd-size) * var(--bd-cell) + 2rem + 6px);max-width:100%;margin-inline:auto;max-height:650px;max-height:min(650px,72vh);padding:0;border:3px solid #654b26;border-radius:12px;background:linear-gradient(92deg,#e6c790,#f0d9aa 32%,#e4c38b 70%,#edd1a1);isolation:isolate;overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:#546c54 #eee2c3;touch-action:pan-x pan-y}.bd-column-numbers,.bd-board-row{display:grid;grid-template-columns:2rem repeat(var(--bd-size),var(--bd-cell));width:max-content;min-width:100%}.bd-column-numbers{height:calc(1.2rem + 10px);align-items:center;background:#ead09d;color:#342914}.bd-column-numbers>span,.bd-row-number{display:flex;align-items:center;justify-content:center;font-size:1rem;line-height:1;font-weight:800}.bd-board-row{height:var(--bd-cell)}.bd-row-number{background:#ead09d;color:#342914}.bd-point{position:relative;width:var(--bd-cell);height:var(--bd-cell);min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;cursor:crosshair;user-select:none;-webkit-user-select:none}.bd-point::before,.bd-point::after{position:absolute;content:'';display:block;background:#594321;z-index:0;pointer-events:none}.bd-point::before{height:1px;left:0;right:0;top:50%}.bd-point::after{width:1px;top:0;bottom:0;left:50%}.bd-point.bd-top::after{top:50%}.bd-point.bd-bottom::after{bottom:50%}.bd-point.bd-left::before{left:50%}.bd-point.bd-right::before{right:50%}.bd-point.bd-cursor{box-shadow:inset 0 0 0 2px #7c401b;border-radius:4px}.bd-stone,.bd-preview-stone{position:relative;z-index:1;width:78%;height:78%;display:flex;align-items:center;justify-content:center;border-radius:50%;pointer-events:none}.bd-stone.bd-black{background:radial-gradient(circle at 32% 25%,#525557 0,#191d1d 36%,#050707 90%);border:1px solid #050707;box-shadow:1px 3px 4px #34280b77}.bd-stone.bd-white{background:radial-gradient(circle at 32% 25%,#fff 0,#fdfdfa 46%,#d1d1c7 95%);border:1px solid #717568;box-shadow:1px 3px 4px #34280b66}.bd-last-mark{display:block;width:27%;height:27%;border:2px solid #fff;border-radius:50%}.bd-white .bd-last-mark{border-color:#1d3a32}.bd-preview-stone{border:3px dashed #7c3016;background:rgba(25,29,27,.3)}.bd-hand{position:absolute;z-index:8;display:block;width:170px!important;max-width:none!important;height:auto!important;object-fit:contain;pointer-events:none;transform:translate(-63%,-83%);filter:drop-shadow(3px 6px 5px #0003)}.bd-hand-move{animation:bd-place-hand .7s ease-in-out both}@keyframes bd-place-hand{0%{opacity:0;transform:translate(-20%,-140%) rotate(-10deg)}35%,65%{opacity:1;transform:translate(-63%,-83%) rotate(0)}100%{opacity:0;transform:translate(-63%,-83%) rotate(0)}}.bd-pan-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.6rem 0 1rem}.bd-pan-tools #bd-zoom{grid-column:1/-1}.bd-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:1rem 0}.bd-actions #bd-show-result,.bd-actions #bd-pass,.bd-actions #bd-retry,.bd-actions #bd-restart{grid-column:1/-1}.bd-result{padding:1rem;border:3px solid var(--bd-green);border-radius:18px;background:#f0f4e8;margin:1rem 0}.bd-result dl{display:grid;grid-template-columns:minmax(0,1fr);gap:.3rem;margin:.8rem 0}.bd-result dt{font-weight:850}.bd-result dd{margin:0 0 .7rem;line-height:1.65}.bd-result button{width:100%}.bd-game .bd-storage{border-top:1px solid var(--bd-line);padding-top:.8rem;margin-top:1.2rem;font-size:.9rem!important}.bd-rules a{display:flex;align-items:center;min-height:64px;padding:.4rem 0;color:var(--bd-green);font-weight:750;overflow-wrap:anywhere}.high-contrast .bd-game{--bd-ink:#111;--bd-line:#111;--bd-green:#111;--bd-paper:#fff}.high-contrast .bd-game .bd-stone.bd-black{background:#111!important;border:2px solid #111!important}.high-contrast .bd-game .bd-stone.bd-white{background:#fff!important;border:2px solid #111!important}.high-contrast .bd-game .bd-black .bd-last-mark{border-color:#fff!important;background:#111!important}.high-contrast .bd-game .bd-white .bd-last-mark{border-color:#111!important;background:#fff!important}.high-contrast .bd-game .bd-point::before,.high-contrast .bd-game .bd-point::after{background:#111!important}.high-contrast .bd-game .bd-point.bd-cursor{outline:2px solid #111!important;outline-offset:-3px}.high-contrast .bd-game .bd-preview-stone{border:3px dashed #111!important;background:#fff!important}.high-contrast .bd-game button.bd-primary:not(:disabled){color:#fff!important;background:#111!important}.high-contrast .bd-game button:disabled{border-style:dashed!important}.high-contrast .bd-game .bd-pan{border:3px solid #111!important}@media(max-width:600px){.bd-game .bd-intro{padding:.7rem}.bd-game h3{font-size:1.3rem}.bd-game .bd-number-choice,.bd-game .bd-actions{grid-template-columns:minmax(0,1fr)}.bd-game .bd-status{min-height:6.6em}.bd-game .bd-scorebar{padding:.65rem}.bd-game .bd-help,.bd-game .bd-settings,.bd-game .bd-rules,.bd-game .bd-number-tools,.bd-game .bd-board-tools{padding:.25rem .55rem}.bd-game .bd-result{padding:.7rem}.bd-game .bd-hand{width:145px!important}}@media(prefers-reduced-motion:reduce){.bd-game *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
