/* ─── Tap highlight removal ──────────────────────────────────────────────── */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ─── Backgammon CSS Variables ────────────────────────────────────────────── */
:root {
    --bg-board-wood: #5c3d2e;
    --bg-felt: #1a5c32;
    --bg-frame: #3a2418;
    --bg-point-light: #d4a76a;
    --bg-point-dark: #8b4513;
    --bg-bar: #3a2418;
    --bg-checker-white: #f0ebe0;
    --bg-checker-black: #1a1a1a;
    --bg-checker-size: 32px;
    --bg-dice-bg: #f8f4ec;
    --bg-dice-pip: #1a1a1a;
    --bg-valid: rgba(76, 175, 80, 0.5);
    --bg-selected: rgba(255, 200, 50, 0.6);
    --bg-hit: rgba(244, 67, 54, 0.4);
}

/* ─── Game Layout ────────────────────────────────────────────────────────── */
.bg-layout {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding: 8px;
    direction: ltr;
}

.bg-board-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

/* ─── Board Frame ────────────────────────────────────────────────────────── */
.bg-board {
    position: relative;
    width: 580px;
    aspect-ratio: 1.4 / 1;
    background: var(--bg-board-wood);
    border-width: 10px;
    border-style: solid;
    border-color: #4a2f1e;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.bg-board-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a5c32 0%, #16522c 50%, #1a5c32 100%);
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.4);
    gap: 2px;
}

/* ─── Board Halves ───────────────────────────────────────────────────────── */
.bg-half {
    display: flex;
    flex: 1;
    position: relative;
}

.bg-half--top {
    align-items: flex-start;
    border-bottom: 1px solid rgba(0,0,0,0.4);
}

.bg-half--bottom {
    align-items: flex-end;
    border-top: 1px solid rgba(0,0,0,0.4);
}

/* ─── Quadrants ──────────────────────────────────────────────────────────── */
.bg-quadrant {
    display: flex;
    flex: 1;
    height: 100%;
    padding: 0;
}

.bg-quadrant--top-left,
.bg-quadrant--top-right {
    align-items: flex-start;
}

.bg-quadrant--bottom-left,
.bg-quadrant--bottom-right {
    align-items: flex-end;
}

/* ─── Points (Triangles) ─────────────────────────────────────────────────── */
.bg-point {
    position: relative;
    display: flex;
    align-items: center;
    width: calc(100% / 6);
    height: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 1;
}

.bg-point:hover {
    background: rgba(255,255,255,0.05);
}

.bg-half--top .bg-point {
    flex-direction: column;
    justify-content: flex-start;
}

.bg-half--bottom .bg-point {
    flex-direction: column-reverse;
    justify-content: flex-start;
}

/* Triangle shape via pseudo-element */
.bg-point::before {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    width: 90%;
    height: 85%;
    z-index: 0;
}

.bg-half--top .bg-point::before {
    top: 0;
    clip-path: polygon(50% 100%, 5% 0%, 95% 0%);
}

.bg-half--bottom .bg-point::before {
    bottom: 0;
    clip-path: polygon(50% 0%, 5% 100%, 95% 100%);
}

/* Alternating point colors */
.bg-point:nth-child(odd)::before {
    background: var(--bg-point-light);
}

.bg-point:nth-child(even)::before {
    background: var(--bg-point-dark);
}

/* Point highlights */
.bg-point--valid {
    background: var(--bg-valid);
    border-radius: 4px;
    cursor: pointer;
}

.bg-point--valid::after {
    content: '';
    position: absolute;
    inset: 20%;
    border: 2px dashed rgba(76,175,80,0.7);
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
}

.bg-point--selected {
    background: var(--bg-selected);
    border-radius: 4px;
}

.bg-point--source {
    cursor: pointer;
}

.bg-point--source .bg-checker:last-child,
.bg-point--source .bg-checkers-stack .bg-checker:last-child {
    box-shadow: 0 0 0 3px rgba(255,200,50,0.5), 0 0 10px rgba(255,200,50,0.3);
    transform: scale(1.05);
}

.bg-point--hover-preview {
    background: rgba(76,175,80,0.3);
}

.bg-point--hit {
    background: var(--bg-hit);
    border-radius: 4px;
}

.bg-move-flash {
    animation: bg-move-flash-anim 0.4s ease;
}

@keyframes bg-move-flash-anim {
    0% { background: rgba(255,255,255,0.3); }
    100% { background: transparent; }
}

.bg-tap-flash {
    animation: bg-tap-flash-anim 0.2s ease;
}

@keyframes bg-tap-flash-anim {
    0% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Status text */
.bg-status {
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1, #fff);
    min-height: 24px;
}

/* Pass button */
.bg-pass-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--text-2, #ccc);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.bg-pass-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Dice remaining text */
.bg-dice-remaining {
    font-size: 12px;
    color: var(--text-3, #888);
    text-align: center;
    padding: 4px 0;
}

/* New game button in overlay */
.bg-new-game-btn {
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e7a832, #d4922a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(231,168,50,0.4);
}

/* Point number labels (optional, shown on hover or always) */
.bg-point-label {
    position: absolute;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    z-index: 5;
}

.bg-half--top .bg-point-label {
    top: -14px;
}

.bg-half--bottom .bg-point-label {
    bottom: -14px;
}

/* ─── Checkers ───────────────────────────────────────────────────────────── */
.bg-checker {
    width: var(--bg-checker-size);
    height: var(--bg-checker-size);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.bg-checker--white {
    background: radial-gradient(circle at 40% 35%, #fffef8 0%, #f0ebe0 45%, #d4cbb8 50%, #f0ebe0 55%, #c8c0b0 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    border: 1px solid #b0a890;
}

.bg-checker--black {
    background: radial-gradient(circle at 40% 35%, #555 0%, #222 45%, #111 50%, #222 55%, #000 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
}

.bg-checker--selected {
    box-shadow: 0 0 0 3px var(--bg-selected), 0 0 12px rgba(255, 200, 50, 0.6);
    transform: scale(1.08);
    z-index: 10;
}

.bg-checker--valid-target {
    box-shadow: 0 0 0 3px var(--bg-valid), 0 0 10px rgba(76, 175, 80, 0.5);
    animation: bg-pulse 1.2s ease-in-out infinite;
}

.bg-checker--movable {
    animation: bg-pulse 1.5s ease-in-out infinite;
    cursor: pointer;
}

/* Checker count badge (when > 5 stacked) */
.bg-checker-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 3;
}

.bg-checker--white .bg-checker-count {
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.bg-checker-count-badge {
    background: rgba(0,0,0,0.7);
    padding: 1px 5px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    pointer-events: none;
    z-index: 3;
    margin-top: 2px;
}

/* Checker stacking within points */
.bg-point .bg-checkers-stack {
    display: flex;
    position: relative;
    z-index: 2;
    gap: 0;
}

.bg-half--top .bg-checkers-stack {
    flex-direction: column;
    margin-top: 2px;
}

.bg-half--bottom .bg-checkers-stack {
    flex-direction: column-reverse;
    margin-bottom: 2px;
}

/* Overlap checkers slightly when many */
.bg-checkers-stack--compact .bg-checker + .bg-checker {
    margin-top: -10px;
}

.bg-half--bottom .bg-checkers-stack--compact .bg-checker + .bg-checker {
    margin-top: 0;
    margin-bottom: -10px;
}

/* ─── Bar Area ───────────────────────────────────────────────────────────── */
.bg-bar-area {
    width: 6%;
    min-width: 24px;
    background: linear-gradient(180deg, #3a2418, #2a1810, #3a2418);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 0;
    box-shadow: inset 2px 0 4px rgba(0, 0, 0, 0.3), inset -2px 0 4px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.bg-bar--top {
    justify-content: flex-end;
    padding-bottom: 8px;
}

.bg-bar--bottom {
    justify-content: flex-start;
    padding-top: 8px;
}

.bg-bar-checkers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* ─── Borne Off Trays ────────────────────────────────────────────────────── */
.bg-borne-off-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: -40px;
    width: 32px;
    z-index: 5;
}

.bg-borne-off {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 2px;
    gap: 1px;
    overflow: hidden;
}

.bg-borne-off--white {
    justify-content: flex-end;
}

.bg-borne-off--black {
    justify-content: flex-start;
}

.bg-borne-off .bg-checker,
.bg-borne-chip {
    width: 24px;
    height: 6px;
    border-radius: 3px;
    cursor: default;
    flex-shrink: 0;
}

.bg-borne-off .bg-checker--white,
.bg-borne-chip--white {
    background: var(--bg-checker-white);
    border: 1px solid #b0a890;
    box-shadow: none;
}

.bg-borne-off .bg-checker--black,
.bg-borne-chip--black {
    background: var(--bg-checker-black);
    border: 1px solid #333;
    box-shadow: none;
}

.bg-borne-off-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    flex: 1;
}

.bg-borne-count {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-align: center;
}

/* ─── Dice ───────────────────────────────────────────────────────────────── */
.bg-dice-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
}

.bg-dice {
    width: 56px;
    height: 56px;
    background: var(--bg-dice-bg);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 8px;
    gap: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,0.5);
    border: 3px solid #c8b88a;
    transition: transform 0.3s ease;
}

.bg-dice-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-dice-dot--filled {
    background: var(--bg-dice-pip);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.bg-dice-pair {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bg-dice--used {
    opacity: 0.4;
    transform: scale(0.9);
}

.bg-dice--rolling {
    animation: bg-dice-roll 0.6s ease-in-out;
}

.bg-dice--doubles {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(231, 168, 50, 0.4), 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* ─── Doubling Cube ──────────────────────────────────────────────────────── */
.bg-cube {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border: 2px solid #999;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bg-cube:hover {
    transform: scale(1.05);
}

.bg-cube--offered {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(231, 168, 50, 0.5);
    animation: bg-pulse 1s ease-in-out infinite;
}

/* ─── Side Panel ─────────────────────────────────────────────────────────── */
.bg-side-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px;
    flex-shrink: 0;
    background: var(--bg-2, rgba(0,0,0,0.2));
    border-radius: 12px;
    padding: 12px;
}

.bg-turn-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-2, rgba(0, 0, 0, 0.3));
    border-radius: 8px;
    border: 1px solid var(--gold, #e7a832);
}

.bg-turn-indicator__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bg-turn-indicator__text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1, #fff);
}

.bg-turn-indicator--active {
    border-color: var(--gold, #e7a832);
    box-shadow: 0 0 12px rgba(231,168,50,0.4);
}

/* ─── Controls ───────────────────────────────────────────────────────────── */
.bg-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--bg-2, rgba(0, 0, 0, 0.3));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bg-roll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 28px;
    min-height: 44px;
    background: linear-gradient(135deg, #e7a832, #d4922a);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(231, 168, 50, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bg-roll-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(231, 168, 50, 0.5);
}

.bg-roll-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(231, 168, 50, 0.3);
}

.bg-roll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bg-undo-btn,
.bg-double-btn {
    padding: 8px 14px;
    min-height: 36px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-2, #ccc);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bg-undo-btn:hover,
.bg-double-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ─── Game Log ───────────────────────────────────────────────────────────── */
.bg-log {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: var(--bg-2, rgba(0, 0, 0, 0.3));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 180px;
    overflow-y: auto;
    font-size: 13px;
    color: var(--text-3, #888);
}

.bg-log-entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bg-log-entry:last-child {
    border-bottom: none;
}

.bg-log-entry--move {
    color: var(--text-2, #ccc);
}

.bg-log-entry--roll {
    color: var(--gold, #e7a832);
    font-weight: 600;
}

.bg-log-entry--hit {
    color: var(--red, #f44336);
}

/* ─── Players Bar ────────────────────────────────────────────────────────── */
.bg-players-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.bg-player-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-2, rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    flex: 1;
    min-width: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bg-player-info--active {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(231,168,50,0.4);
}

.bg-player-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-player-dot--white {
    background: var(--bg-checker-white);
}

.bg-player-dot--black {
    background: var(--bg-checker-black);
}

.bg-player-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bg-player-pip {
    font-size: 11px;
    color: var(--text-3, #888);
    margin-left: auto;
    white-space: nowrap;
}

/* ─── Pip Count Badge ────────────────────────────────────────────────────── */
.bg-pip-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 11px;
    color: var(--text-3, #888);
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes bg-checker-move {
    0% { transform: translate(var(--move-x, 0), var(--move-y, 0)); }
    100% { transform: translate(0, 0); }
}

@keyframes bg-dice-roll {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(180deg) rotateY(90deg) scale(0.9); }
    50% { transform: rotateX(360deg) rotateY(180deg) scale(1.05); }
    75% { transform: rotateX(540deg) rotateY(270deg) scale(0.95); }
    100% { transform: rotateX(720deg) rotateY(360deg) scale(1); }
}

@keyframes bg-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes bg-hit {
    0% { background: transparent; }
    25% { background: var(--bg-hit); }
    50% { background: transparent; }
    75% { background: var(--bg-hit); }
    100% { background: transparent; }
}

.bg-checker--moving {
    animation: bg-checker-move 0.35s ease-out;
}

.bg-point--hit-flash {
    animation: bg-hit 0.5s ease-in-out;
}

/* ─── Status / Overlay ───────────────────────────────────────────────────── */
.bg-status {
    text-align: center;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}

.bg-status--info { color: var(--cyan, #00bcd4); }
.bg-status--success { color: var(--green, #4caf50); }
.bg-status--warning { color: var(--gold, #e7a832); }

.bg-result-overlay,
.bg-game-over-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.bg-result-card {
    text-align: center;
    padding: 32px;
    border-radius: 16px;
    background: var(--bg-2, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 320px;
}

.bg-result-card h2 {
    font-size: 24px;
    color: var(--gold, #e7a832);
    margin-bottom: 8px;
}

.bg-result-type {
    font-size: 18px;
    color: var(--text-1, #fff);
    margin-bottom: 4px;
}

.bg-result-points {
    font-size: 16px;
    color: var(--cyan, #00bcd4);
}

.bg-game-over-content {
    text-align: center;
    padding: 32px;
    border-radius: 16px;
    background: var(--bg-2, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 320px;
}

.bg-game-over-content h3 {
    font-size: 22px;
    color: var(--text-1, #fff);
    margin-bottom: 12px;
}

.bg-game-over-result {
    color: var(--gold, #e7a832);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ─── Responsive: Mobile < 768px ─────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --bg-checker-size: 22px;
    }

    .bg-layout {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 8px;
    }

    .bg-board-column {
        width: 100%;
    }

    .bg-board {
        max-width: 100%;
        border-width: 4px;
        overflow: hidden;
    }

    .bg-borne-off-area {
        display: none;
    }

    .bg-players-bar {
        max-width: 100%;
    }

    .bg-side-panel {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        justify-content: center;
    }

    .bg-turn-indicator {
        flex: 1;
        min-width: 0;
    }

    .bg-controls {
        padding: 8px;
    }

    .bg-log {
        width: 100%;
        max-height: 80px;
    }

    .bg-dice-area {
        padding: 8px;
        gap: 8px;
    }

    .bg-dice {
        width: 40px;
        height: 40px;
        padding: 5px;
    }

    .bg-cube {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .bg-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .bg-roll-btn {
        flex: 1;
        min-width: 120px;
    }

    .bg-log {
        max-height: 100px;
        width: 100%;
    }

    .bg-players-bar {
        flex-direction: column;
        gap: 6px;
    }

    .bg-player-info {
        width: 100%;
    }

    .bg-bar-area {
        min-width: 22px;
    }
}

/* ─── Responsive: Large screens ──────────────────────────────────────────── */
@media (min-width: 1024px) {
    .bg-board {
        width: 680px;
    }

    :root {
        --bg-checker-size: 36px;
    }
}

/* ─── Reduced Motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .bg-checker,
    .bg-dice,
    .bg-cube,
    .bg-roll-btn {
        transition: none;
    }

    .bg-checker--moving,
    .bg-checker--movable,
    .bg-checker--valid-target,
    .bg-dice--rolling,
    .bg-point--hit-flash,
    .bg-cube--offered {
        animation: none;
    }
}
