/* ═══════════════════════════════════════════════
   CHESS SPECIFIC STYLES
   ═══════════════════════════════════════════════ */

.ambient-glow.white {
    background: radial-gradient(circle, rgba(226,232,240,0.06) 0%, transparent 70%);
    top: -10vh; right: 10vw;
}

.chess-board-wrap {
    padding: 12px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    margin-top: 10px;
}

.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.chess-cell {
    width: clamp(36px, 8vw, 65px);
    height: clamp(36px, 8vw, 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
    user-select: none;
}

.chess-cell.light {
    background: #b7c0d8;
}

.chess-cell.dark {
    background: #5d6b8a;
}

.chess-cell:hover {
    filter: brightness(1.15);
}

.chess-cell.selected {
    background: rgba(6, 182, 212, 0.5) !important;
    box-shadow: inset 0 0 15px rgba(6,182,212,0.4);
}

.chess-cell.valid-move::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    background: rgba(6,182,212,0.6);
    border-radius: 50%;
    pointer-events: none;
}

.chess-cell.valid-capture::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 3px solid rgba(239,68,68,0.7);
    border-radius: 50%;
    pointer-events: none;
}

.chess-cell.last-move {
    background: rgba(168,85,247,0.25) !important;
}

.chess-cell.check {
    background: rgba(239,68,68,0.4) !important;
    animation: pulse 1s infinite;
}

.chess-piece {
    filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.5));
    transition: transform 0.15s;
    pointer-events: none;
}

.chess-cell:hover .chess-piece {
    transform: scale(1.1);
}

.chess-info {
    margin-top: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    min-height: 24px;
    z-index: 10;
}

.promote-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.promote-btn {
    width: 60px; height: 60px;
    font-size: 2.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.promote-btn:hover {
    border-color: var(--cyan);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(6,182,212,0.3);
}

@media (max-width: 500px) {
    .chess-board-wrap { padding: 6px; }
}
