/**
 * Checkers Game Styles
 */

.checkers-board {
    display: inline-block;
    border: 4px solid #5d4037;
    border-radius: 4px;
    background: #5d4037;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.checkers-row {
    display: flex;
}

.checkers-cell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}

.checkers-cell-light {
    background: #ffecb3;
}

.checkers-cell-dark {
    background: #8d6e63;
}

.checkers-piece {
    font-size: 44px;
    cursor: pointer;
    transition: transform 0.15s;
    user-select: none;
    line-height: 1;
}

.checkers-piece:hover {
    transform: scale(1.1);
}

.checkers-black {
    color: #212121;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.checkers-white {
    color: #fafafa;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.checkers-king {
    filter: drop-shadow(0 0 3px gold);
}

.checkers-selected {
    background: #81c784 !important;
    box-shadow: inset 0 0 0 3px #4caf50;
}

.checkers-valid-move {
    position: relative;
}

.checkers-valid-move::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(76, 175, 80, 0.6);
    border-radius: 50%;
    pointer-events: none;
}

.checkers-info {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.checkers-captured {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.capture-count {
    font-size: 14px;
    color: #1d2327;
    font-weight: 500;
}

.checkers-notice {
    margin-top: 12px;
    padding: 10px 15px;
    background: #fff3cd;
    border: 1px solid #ffb74d;
    border-radius: 6px;
    font-weight: 600;
    color: #856404;
}

/* Responsive */
@media (max-width: 600px) {
    .checkers-cell {
        width: 42px;
        height: 42px;
    }
    
    .checkers-piece {
        font-size: 32px;
    }
    
    .checkers-valid-move::after {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================
   MIDNIGHT ARCADE — Checkers modern layer (v1.2.3)
   Additive overrides per docs/design-spec.md. Original rules
   above are preserved; these win by cascade order.
   ============================================================ */

.checkers-board {
    border: 0;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(145deg, #4a3226 0%, #2b1d14 55%, #3d2a1e 100%);
    box-shadow:
        0 24px 50px -18px rgba(0, 0, 0, 0.75),
        inset 0 2px 3px rgba(255, 255, 255, 0.08),
        inset 0 -3px 6px rgba(0, 0, 0, 0.5);
}

.checkers-cell-light {
    background: linear-gradient(160deg, #f4e3c1 0%, #e9d3ab 100%);
}

.checkers-cell-dark {
    background: linear-gradient(160deg, #7d6156 0%, #6a5044 100%);
}

/* Glossy disc treatment over the glyph pieces */
.checkers-piece {
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.15s ease, filter 0.15s ease;
}

.checkers-piece:hover {
    transform: translateY(-3px) scale(1.08);
    filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.55));
}

.checkers-black {
    color: #23262e;
    text-shadow:
        0 2px 2px rgba(0, 0, 0, 0.6),
        0 -1px 1px rgba(255, 255, 255, 0.18);
}

.checkers-white {
    color: #f6f1e7;
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.55),
        0 -1px 1px rgba(255, 255, 255, 0.5);
}

.checkers-king {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.85)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

.checkers-selected {
    background: linear-gradient(160deg, #7c88f8 0%, #5865e8 100%) !important;
    box-shadow:
        inset 0 0 0 3px rgba(199, 210, 254, 0.9),
        0 0 18px rgba(99, 102, 241, 0.55);
}

.checkers-valid-move::after {
    background: radial-gradient(circle at 35% 35%, rgba(74, 222, 128, 0.95), rgba(22, 163, 74, 0.75));
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}

.checkers-info {
    background: linear-gradient(180deg, #131a30 0%, #0b1020 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.checkers-info .capture-count {
    color: #e7ecf7;
}

.checkers-notice {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fcd34d;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
    animation: checkers-notice-glow 1.6s ease-in-out infinite;
}

@keyframes checkers-notice-glow {
    0%, 100% { box-shadow: 0 0 6px rgba(251, 191, 36, 0.25); }
    50% { box-shadow: 0 0 18px rgba(251, 191, 36, 0.5); }
}
