body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    max-width: 600px;
}

.game-area {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: var(--primary-color);
    margin: 0;
}

.status {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2c3e50;
    min-height: 1.5em;
}

/* Board */
.checkers-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    border: 4px solid #5d3a1a;
    border-radius: 4px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.checkers-cell {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
}

.checkers-cell.light {
    background: #f0d9b5;
}

.checkers-cell.dark {
    background: #b58863;
}

/* Pieces */
.checkers-piece {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.checkers-piece:hover {
    transform: scale(1.05);
}

.checkers-piece.red {
    background: radial-gradient(circle at 35% 35%, #ff6b6b, #c0392b);
    border: 2px solid #922b21;
}

.checkers-piece.black {
    background: radial-gradient(circle at 35% 35%, #555, #1a1a1a);
    border: 2px solid #000;
}

/* King indicator */
.checkers-piece.king::after {
    content: '👑';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* Selected piece */
.checkers-cell.selected {
    box-shadow: inset 0 0 0 3px #f1c40f;
}

/* Valid move indicator */
.checkers-cell.valid-move {
    cursor: pointer;
}

.checkers-cell.valid-move::after {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.6);
    position: absolute;
}

/* Valid capture indicator */
.checkers-cell.valid-capture::after {
    content: '';
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(231, 76, 60, 0.7);
    background: transparent;
    position: absolute;
}

/* Captured pieces sections */
.captured-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 8px 0;
    min-height: 30px;
    flex-wrap: wrap;
}

.captured-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.captured-pieces {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.captured-piece-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.captured-piece-dot.red {
    background: #c0392b;
}

.captured-piece-dot.black {
    background: #1a1a1a;
}

/* Game buttons */
.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#exit-game-btn {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Online info */
.online-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.opponent-name {
    font-weight: 600;
    color: var(--text-muted, #666);
}

/* Responsive */
@media (max-width: 500px) {
    .checkers-cell {
        width: 45px;
        height: 45px;
    }

    .checkers-piece {
        width: 36px;
        height: 36px;
    }

    .checkers-piece.king::after {
        font-size: 14px;
    }

    .checkers-cell.valid-move::after {
        width: 14px;
        height: 14px;
    }

    .checkers-cell.valid-capture::after {
        width: 28px;
        height: 28px;
    }
}
