/* Reusing variables from blackjack-online.css for consistency */
@import url('blackjack-online.css');

#board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#chess-board {
    width: 480px;
    height: 480px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    border: 4px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.square {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.square.light {
    background-color: #e0e6ed;
    color: #0a0b10;
}

.square.dark {
    background-color: #2a3b55;
    color: #e0e6ed;
}

/* Highlight moves */
.square.highlight {
    position: relative;
}

.square.highlight::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 255, 157, 0.5);
    /* Neon Green */
    border-radius: 50%;
}

.square.selected {
    background-color: rgba(0, 243, 255, 0.5) !important;
    /* Neon Blue */
}

.square.check {
    background-color: rgba(255, 0, 85, 0.6) !important;
    /* Neon Red/Pink */
}

/* Pieces */
.piece {
    cursor: grab;
    transition: transform 0.1s;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.piece:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/* Captured pieces display */
.captured-pieces {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.captured-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 30px;
}

/* Responsive */
@media (max-width: 600px) {
    #chess-board {
        width: 320px;
        height: 320px;
    }

    .square {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}