/* Chess Pieces Styling */

.piece {
    font-size: 60px;
    cursor: grab;
    user-select: none;
    z-index: 10;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
    transition: transform 0.1s ease;
}

.piece:hover {
    transform: scale(1.1);
}

.piece:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.piece.dragging {
    opacity: 0.6;
    cursor: grabbing;
}

/* Unicode Chess Pieces - Using CSS Hex Escapes */
.piece[data-piece="K"]::before { content: "\2654"; color: white; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.piece[data-piece="Q"]::before { content: "\2655"; color: white; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.piece[data-piece="R"]::before { content: "\2656"; color: white; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.piece[data-piece="B"]::before { content: "\2657"; color: white; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.piece[data-piece="N"]::before { content: "\2658"; color: white; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.piece[data-piece="P"]::before { content: "\2659"; color: white; text-shadow: 0 0 2px #000, 0 0 2px #000; }

.piece[data-piece="k"]::before { content: "\265A"; color: #000; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.piece[data-piece="q"]::before { content: "\265B"; color: #000; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.piece[data-piece="r"]::before { content: "\265C"; color: #000; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.piece[data-piece="b"]::before { content: "\265D"; color: #000; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.piece[data-piece="n"]::before { content: "\265E"; color: #000; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.piece[data-piece="p"]::before { content: "\265F"; color: #000; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }

/* Promotion Dialog */
.promotion-dialog {
    position: absolute;
    background: var(--panel-bg);
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promotion-dialog h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    text-align: center;
}

.promotion-pieces {
    display: flex;
    gap: 10px;
}

.promotion-piece {
    font-size: 50px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.promotion-piece:hover {
    background: var(--primary-color);
    border-color: white;
    transform: scale(1.1);
}
