#backgammon-app{margin:12px 0 0}.bg-game{gap:12px;min-width:0;display:grid}.bg-topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;display:flex}.bg-info{flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:1.1rem;display:flex}.bg-tag{border:2px solid var(--brass-dark);background:var(--highlight-soft);border-radius:999px;padding:2px 10px;font-size:1rem;font-weight:700}@media (width<=767px){.bg-wide-only{display:none!important}}.bg-status .game-status{min-height:4.2em}.bg-banner{font-family:var(--font-display);align-items:center;gap:10px;font-size:1.7rem;font-weight:800;line-height:1.2;display:flex;margin:0 0 4px!important}.bg-banner span{text-underline-offset:5px;text-decoration:underline;text-decoration-thickness:3px}.bg-table{gap:8px;min-width:0;display:grid}.bg-players-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.bg-player{border:2px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);min-width:0;padding:6px 10px;line-height:1.3}.bg-player.is-to-play{border-width:4px;border-color:var(--highlight);background:linear-gradient(180deg, var(--highlight-soft), var(--surface));padding:4px 8px}.bg-player-head{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.bg-player-name{font-family:var(--font-display);overflow-wrap:anywhere;font-size:1.25rem}.bg-to-play{background:var(--text);color:var(--surface);border-radius:999px;padding:0 8px;font-size:.95rem;font-weight:700}.bg-player-score{font-weight:700}.bg-player-stats{font-variant-numeric:tabular-nums;font-size:1.05rem}.bg-pips{font-weight:800}.bg-on-bar{font-weight:800;text-decoration:underline}@media (width<=767px){.bg-player{padding:4px 6px}.bg-player.is-to-play{padding:2px 4px}.bg-player-head{flex-wrap:nowrap;gap:4px}.bg-player-name{text-overflow:ellipsis;white-space:nowrap;font-size:1.25rem;overflow:hidden}.bg-to-play{display:none}.bg-player-stats{font-size:1.25rem;line-height:1.2}.bg-info,.bg-tag,.bg-cube-line{font-size:1.25rem}}.bg-cube-line{text-align:center;margin:0;font-size:1.05rem}.bg-ck-icon{vertical-align:middle;flex:none;display:inline-block}.bg-board-wrap{min-width:0}.bg-board{width:100%;height:auto;box-shadow:var(--shadow-md);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;border-radius:12px;margin:0 auto;display:block}.bg-board-horizontal{max-width:920px;max-height:max(360px,100vh - 230px)}@media (width<=767px){.bg-board-wrap{margin-inline:calc(-1 * var(--gutter,16px))}.bg-board-vertical{max-height:max(400px, calc(100svh - var(--dock-h,170px) - 76px));border-radius:0}}.bg-frame{fill:#5a3a1f}.bg-felt{fill:#1f5a36}.bg-bar{fill:#4a2c17;stroke:#2b190b;stroke-width:1px}.bg-tray{fill:#2f2014;stroke:#1a1208;stroke-width:1px}.bg-pt{stroke:#00000059;stroke-width:.8px}.bg-pt-a{fill:#b5392c}.bg-pt-b{fill:#e8d7b0}.bg-board text{text-anchor:middle;dominant-baseline:central;pointer-events:none;font-family:var(--font)}.bg-num{fill:#f5e9cc;font-size:13px;font-weight:600}.bg-num.is-home{fill:#ffe9a8;font-weight:900}.bg-ck-light .bg-ck-body{fill:#f8f1df;stroke:#3d2f1e;stroke-width:1.6px}.bg-ck-light .bg-ck-groove{fill:none;stroke:#3d2f1e66;stroke-width:1.2px}.bg-ck-dark .bg-ck-body{fill:#2a201b;stroke:#0b0806;stroke-width:1.6px}.bg-ck-dark .bg-ck-ring{fill:none;stroke:#f0c75e;stroke-width:2.8px}[data-arriving]{opacity:0}.bg-count{font-size:15px;font-weight:900}.bg-count-p0{fill:#1a1208}.bg-count-p1{fill:#fff}.bg-slab{stroke-width:1px}.bg-slab-p0{fill:#f8f1df;stroke:#3d2f1e}.bg-slab-p1{fill:#2a201b;stroke:#f0c75e}.bg-tray-count{fill:#fff;font-size:14px;font-weight:800}.bg-cube rect{fill:#fffdf6;stroke:#1a1208;stroke-width:2px}.bg-cube.is-owned rect{stroke:var(--highlight);stroke-width:3px}.bg-cube text{fill:#1a1208;font-size:13px;font-weight:900}.bg-movable{fill:none;stroke:#fff;stroke-width:2.2px;stroke-dasharray:4 3;pointer-events:none}.bg-selected{fill:none;stroke:var(--highlight);stroke-width:4.5px;pointer-events:none}.bg-pt-target,.bg-tray-target{fill:#ffc80038;stroke:var(--highlight);stroke-width:3px;stroke-dasharray:6 4;pointer-events:none}.bg-dot{fill:var(--highlight);stroke:#1a1208;stroke-width:2px;pointer-events:none}.bg-badge rect{fill:#1a1208;stroke:var(--highlight);stroke-width:1.5px}.bg-badge text{fill:#ffe27a;font-size:13px;font-weight:800}.bg-badge{pointer-events:none}.bg-arrow-last{stroke:#ffffffd9;stroke-width:2.5px;stroke-dasharray:5 4;pointer-events:none}.bg-arrowhead{fill:#ffffffe6}.bg-arrow-hint{stroke:var(--highlight);stroke-width:4px;pointer-events:none}.bg-arrowhead-hint{fill:var(--highlight)}.bg-hit{fill:#0000;cursor:pointer}.bg-hit:focus{outline:none}.bg-hit:focus-visible{stroke:var(--focus);stroke-width:3px}.bg-controls{gap:8px;display:grid}.bg-dock-row{flex-wrap:wrap;align-items:center;gap:8px 14px;display:flex}.bg-dice{align-items:center;gap:8px;display:flex}.bg-dice-label{font-weight:700}.bg-dice-row{gap:6px;display:flex}.bg-die{display:block}.bg-die-p0 .bg-die-face{fill:#fffdf6;stroke:#1a1208;stroke-width:2px}.bg-die-p0 .bg-die-pips{fill:#1a1208}.bg-die-p1 .bg-die-face{fill:#2a201b;stroke:#f0c75e;stroke-width:2.5px}.bg-die-p1 .bg-die-pips{fill:#fff}.bg-die.is-used{opacity:.45}.bg-die-strike{stroke:#b5392c;stroke-width:3.5px;stroke-linecap:round}.bg-buttons,.bg-targets{flex-wrap:wrap;gap:8px;display:flex}@media (width<=767px){.bg-dice-label{display:none}.bg-buttons .btn,.bg-targets .btn{padding-left:12px;padding-right:12px}.bg-targets{flex-wrap:nowrap}.bg-targets .btn{white-space:nowrap;flex:none}.bg-targets [data-role=deselect]{display:none}}.bg-history summary{cursor:pointer;min-height:48px;padding:8px 0;font-weight:700}.bg-history-body p{margin:.4em 0}.bg-history-table{max-width:520px}.bg-expected td{color:var(--muted);font-size:1rem}.bg-two-form label{margin-top:10px;font-weight:700;display:block}.bg-two-form .text-input{width:100%;max-width:360px}.bg-house-rules h4{margin:12px 0 4px}
