/* CSS for chess drag-drop functionality */
.board-container .figura {
    position: relative;
    top: 0;
    left: 0;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 100;
    touch-action: none;
    user-select: none;
}

.board-container .figura.dragging {
    opacity: 1;
    z-index: 9999;
    transform: scale(1.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@keyframes pieceSelectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.board-container .figura.selected {
    z-index: 200;
    animation: pieceSelectPulse 0.2s ease-out;
}

.board-container .square:has(.figura.dragging) {
    z-index: 9999;
}

.board-container .board .square.selected-from {
    box-shadow: inset 0 0 24px 12px rgba(34, 139, 34, 0.75);
}

.board-container .square.drop-target {
    box-shadow: inset 0 0 14px 6px rgba(182,249,21, 0.2);
}

.board-container .square.drop-target.possible-move {
    box-shadow: inset 0 0 14px 6px rgba(182, 249, 21, 0.65), inset 0 0 14px 5px rgba(0, 255, 65, 0.5);
}
