/* === Checkers Styles === */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    min-height: calc(100vh - var(--nav-height));
    padding-top: calc(var(--nav-height) + var(--space-6));
}

.ck-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    border: 3px solid rgba(139, 92, 46, 0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: clamp(280px, 85vw, 420px);
    aspect-ratio: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.ck-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
}

.ck-cell--light {
    background: linear-gradient(145deg, #d4a76a, #c4975a);
}

.ck-cell--dark {
    background: linear-gradient(145deg, #5a3825, #4a2e1d);
    cursor: pointer;
}

.ck-cell--dark:hover {
    background: linear-gradient(145deg, #6a4835, #5a3e2d);
}

.ck-cell--valid {
    background: linear-gradient(145deg, #4a6a35, #3a5a25) !important;
    cursor: pointer;
}

.ck-cell--valid::after {
    content: '';
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.ck-piece {
    width: 75%;
    height: 75%;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ck-piece--red {
    background: radial-gradient(circle at 35% 35%, #f87171, #b91c1c);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 3px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(239, 68, 68, 0.6);
}

.ck-piece--black {
    background: radial-gradient(circle at 35% 35%, #4b5563, #1f2937);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 3px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(75, 85, 99, 0.6);
}

.ck-piece--selected {
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.6), 0 0 30px rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
    border-color: rgba(99, 102, 241, 0.8);
}

.ck-piece--forced:not(.ck-piece--selected) {
    animation: forcedPulse 1s ease-in-out infinite;
}

@keyframes forcedPulse {

    0%,
    100% {
        box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 0 8px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 0 16px rgba(245, 158, 11, 0.6), 0 0 24px rgba(245, 158, 11, 0.3);
    }
}

.ck-piece--king::after {
    content: '👑';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(0.6rem, 3vw, 1rem);
}

/* Info modal */
.info-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.info-modal__card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    max-width: 420px;
    width: 90%;
}

.info-modal__card h2 {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.info-modal__card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.info-modal__card li {
    color: var(--text-secondary);
    padding-left: var(--space-4);
    position: relative;
}

.info-modal__card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary-bright);
}

@media (max-width: 480px) {
    .ck-board {
        width: min(92vw, 350px);
    }
}