.game-art--backgammon .bg-layout{width:100%;padding:10px 22px 14px;display:flex;flex-direction:column;align-items:center;gap:7px}.game-art--backgammon .bg-status{min-height:27px;font-size:var(--art-fs-title);font-weight:600;line-height:1.25;text-align:center}.game-art--backgammon .bg-directions{width:min(100%,980px);display:flex;justify-content:space-between;gap:12px;font-size:var(--art-fs-body);line-height:1.3}.game-art--backgammon .bg-direction{display:inline-flex;align-items:center;gap:7px;color:var(--art-muted)}.game-art--backgammon .bg-direction b{color:var(--art-text);font-family:var(--font-mono);font-size:var(--art-fs-label);font-weight:500}.game-art--backgammon .bg-direction--blue:before,.game-art--backgammon .bg-direction--coral:before{width:10px;height:10px;border:1px solid var(--art-text);border-radius:50%;content:""}.game-art--backgammon .bg-direction--blue:before{background:#d9e4e6}.game-art--backgammon .bg-direction--coral:before{background:#efddd5;background-image:repeating-linear-gradient(135deg,transparent 0 3px,rgb(61 64 58 / 22%) 3px 4px)}.game-art--backgammon .bg-board-group{width:min(100%,1040px);min-inline-size:0;margin:0;padding:0;border:0}.game-art--backgammon .bg-board{width:min(100%,1040px);height:clamp(280px,42vh,354px);min-inline-size:0;margin:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) minmax(50px,.7fr) repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:4px;padding:5px;border:1px solid var(--sketch-ink);background-color:var(--sketch-ground);background-image:repeating-linear-gradient(0deg,transparent 0 19px,rgb(61 64 58 / 5%) 19px 20px)}.game-art--backgammon .bg-point{position:relative;grid-column:var(--bg-grid-column);grid-row:var(--bg-grid-row);min-width:40px;min-height:40px;overflow:hidden;padding:0;border:1px solid rgb(61 64 58 / 35%);border-radius:0;background:var(--sketch-paper);color:var(--art-text);cursor:pointer;isolation:isolate;touch-action:manipulation}.game-art--backgammon .bg-point:before{position:absolute;z-index:0;inset:0 7%;background-color:var(--bg-point-tone);clip-path:polygon(0 0,100% 0,50% 100%);content:"";opacity:.58}.game-art--backgammon .bg-point[data-row=bottom]:before{clip-path:polygon(50% 0,100% 100%,0 100%)}.game-art--backgammon .bg-point[data-tone=blue]{--bg-point-tone: #c8d8db}.game-art--backgammon .bg-point[data-tone=coral]{--bg-point-tone: #ead3ca}.game-art--backgammon .bg-point:enabled:hover,.game-art--backgammon .bg-point[data-selected=true]{border-color:var(--art-focus);outline:1px solid var(--art-focus);outline-offset:-2px}.game-art--backgammon .bg-point:disabled{opacity:1;cursor:default}.game-art--backgammon .bg-point-number{position:absolute;z-index:2;inset-inline:0;font-family:var(--font-mono);font-size:var(--art-fs-label);font-variant-numeric:tabular-nums;line-height:1;color:var(--art-muted)}.game-art--backgammon .bg-point[data-row=top] .bg-point-number{top:4px}.game-art--backgammon .bg-point[data-row=bottom] .bg-point-number{bottom:4px}.game-art--backgammon .bg-checker-stack{position:absolute;z-index:1;left:50%;display:flex;flex-direction:column;align-items:center;width:100%;max-height:calc(100% - 31px);transform:translate(-50%)}.game-art--backgammon .bg-point[data-row=top] .bg-checker-stack{top:21px}.game-art--backgammon .bg-point[data-row=bottom] .bg-checker-stack{bottom:21px;flex-direction:column-reverse}.game-art--backgammon .bg-checker{flex:0 0 auto;width:clamp(18px,38%,32px);aspect-ratio:1;margin-block:-1px;border:1.5px solid var(--sketch-ink);border-radius:50%}.game-art--backgammon .bg-checker--blue{background-color:#b8cdd3;background-image:repeating-linear-gradient(135deg,transparent 0 4px,rgb(61 64 58 / 23%) 4px 5px)}.game-art--backgammon .bg-checker--coral{background-color:#e4c3b7;background-image:radial-gradient(rgb(61 64 58 / 23%) .7px,transparent .8px);background-size:5px 5px}.game-art--backgammon .bg-point-count{position:absolute;z-index:3;inset-inline:1px;padding:1px;background:var(--sketch-paper);font-family:var(--font-mono);font-size:var(--art-fs-label);font-weight:700;font-variant-numeric:tabular-nums;line-height:1}.game-art--backgammon .bg-point[data-row=top] .bg-point-count{bottom:3px}.game-art--backgammon .bg-point[data-row=bottom] .bg-point-count{top:3px}.game-art--backgammon .bg-bar{z-index:2;grid-column:7;grid-row:1 / span 2;min-width:40px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:6px 2px;border:1px solid var(--sketch-ink);border-radius:0;background-color:#eee;background-image:repeating-linear-gradient(135deg,transparent 0 5px,rgb(61 64 58 / 12%) 5px 6px);color:var(--art-text);cursor:pointer;touch-action:manipulation}.game-art--backgammon .bg-bar:disabled{opacity:1;cursor:default}.game-art--backgammon .bg-bar[data-selected=true]{outline:2px solid var(--art-focus);outline-offset:-3px}.game-art--backgammon .bg-bar-label{font-size:var(--art-fs-label);font-weight:600;writing-mode:vertical-rl}.game-art--backgammon .bg-bar-count{min-width:24px;padding:2px;border:1px solid var(--sketch-ink);border-radius:50%;font-family:var(--font-mono);font-size:var(--art-fs-label);font-variant-numeric:tabular-nums;line-height:1.5}.game-art--backgammon .bg-bar-count--blue{background-color:#d9e4e6}.game-art--backgammon .bg-bar-count--coral{background-color:#efddd5;background-image:repeating-linear-gradient(135deg,transparent 0 3px,rgb(61 64 58 / 18%) 3px 4px)}.game-art--backgammon .bg-bottom-row{width:min(100%,1040px);display:grid;grid-template-columns:auto minmax(260px,1fr) auto;align-items:center;gap:12px}.game-art--backgammon .bg-off{display:flex;flex-direction:column;gap:3px;font-size:var(--art-fs-label);color:var(--art-muted)}.game-art--backgammon .bg-off-stat{display:flex;align-items:center;gap:6px;white-space:nowrap}.game-art--backgammon .bg-off-stat:before{width:8px;height:8px;border:1px solid var(--sketch-ink);border-radius:50%;content:""}.game-art--backgammon .bg-off-stat--blue:before{background:#d9e4e6}.game-art--backgammon .bg-off-stat--coral:before{background-color:#efddd5;background-image:repeating-linear-gradient(135deg,transparent 0 3px,rgb(61 64 58 / 22%) 3px 4px)}.game-art--backgammon .bg-off strong{min-width:22px;font-family:var(--font-mono);font-size:var(--art-fs-value);font-weight:600;font-variant-numeric:tabular-nums;text-align:end;color:var(--art-text)}.game-art--backgammon .bg-actions{min-width:0;display:flex;align-items:center;gap:8px}.game-art--backgammon .bg-actions-label{flex:0 0 auto;font-size:var(--art-fs-label);color:var(--art-muted)}.game-art--backgammon .bg-move-list{min-width:0;max-height:76px;display:flex;flex-wrap:wrap;gap:5px;overflow:auto}.game-art--backgammon .bg-move-list [data-slot=button]{white-space:normal;line-height:1.2}.game-art--backgammon .bg-actions-prompt{font-size:var(--art-fs-label);line-height:1.35;color:var(--art-muted)}.game-art--backgammon .bg-turn-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.game-art--backgammon .bg-turn-actions [data-slot=button],.game-art--backgammon .bg-move-list [data-slot=button]{border:1px solid var(--sketch-ink);background-color:var(--sketch-paper);color:var(--art-text)}.game-art--backgammon .bg-turn-actions [data-slot=button]:enabled:hover,.game-art--backgammon .bg-move-list [data-slot=button]:enabled:hover{background-color:var(--sketch-ground);color:var(--art-text)}.game-art--backgammon .bg-turn-actions [data-slot=button]:disabled,.game-art--backgammon .bg-move-list [data-slot=button]:disabled{opacity:.58}.game-art--backgammon .bg-turn-actions [data-slot=button]:focus-visible,.game-art--backgammon .bg-move-list [data-slot=button]:focus-visible{outline:3px solid var(--art-focus);outline-offset:2px}@media(max-width:767px){.game-art--backgammon .bg-layout{gap:7px;padding:12px 8px 14px}.game-art--backgammon .bg-status{min-height:24px;font-size:var(--art-fs-body)}.game-art--backgammon .bg-directions{gap:5px}.game-art--backgammon .bg-direction{gap:4px;font-size:var(--art-fs-label)}.game-art--backgammon .bg-board{width:100%;height:auto;margin:0;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:40px repeat(4,minmax(64px,1fr));gap:3px;padding:4px}.game-art--backgammon .bg-bar{grid-column:1 / -1;grid-row:auto;min-height:40px;flex-direction:row;gap:7px;padding:2px 7px}.game-art--backgammon .bg-bar-label{writing-mode:horizontal-tb}.game-art--backgammon .bg-bar-count{min-width:21px;line-height:1.3}.game-art--backgammon .bg-point{grid-column:auto;grid-row:auto;min-width:40px;min-height:64px}.game-art--backgammon .bg-checker-stack{max-height:calc(100% - 25px)}.game-art--backgammon .bg-point[data-row=top] .bg-checker-stack{top:19px}.game-art--backgammon .bg-point[data-row=bottom] .bg-checker-stack{bottom:19px}.game-art--backgammon .bg-checker{width:min(32px,58%)}.game-art--backgammon .bg-bottom-row{grid-template-columns:minmax(0,1fr) auto;gap:7px}.game-art--backgammon .bg-off{flex-direction:row;gap:8px}.game-art--backgammon .bg-off-stat{gap:3px;font-size:var(--art-fs-label)}.game-art--backgammon .bg-off strong{min-width:16px;font-size:var(--art-fs-action)}.game-art--backgammon .bg-actions{grid-column:1 / -1;grid-row:2;align-items:flex-start}.game-art--backgammon .bg-move-list{max-height:90px}.game-art--backgammon .bg-turn-actions{grid-column:2;grid-row:1}}
