/* Chess Board Styles */
/* This file handles all chess board rendering, layout, and interactive states */

#board {
    display: flex;
    flex-wrap: wrap;
    width: var(--play-board-size);
    height: var(--play-board-size);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    background: var(--color-bg);
}

.square {
    /* 8×8 board */
    --square-size: calc(var(--play-board-size) / 8);
    width: var(--square-size);
    height: var(--square-size);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(var(--square-size) * 0.45);
    user-select: none;
    position: relative;
    overflow: visible;
}

.light {
  background-color: var(--board-light, var(--color-board-light));
}

.dark {
  background-color: var(--board-dark, var(--color-board-dark));
}

.selected {
    outline: 3px solid yellow;
    outline-offset: -3px;
    background-color: rgba(255, 255, 0, 0.25);
    /* restored yellow highlight */
    /* soft glow under piece */
}

.dot {
    width: 15px;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.check {
    background-color: #ff4d4d !important;
}

/* Square coordinate labels */
.square-label-file {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 14px;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
    pointer-events: none;
    z-index: 1;
}

.square-label-rank {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 14px;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
    pointer-events: none;
    z-index: 1;
}

.light-label {
  color: var(--board-light-label, #b58863);
}

.dark-label {
  color: var(--board-dark-label, #f0d9b5);
}
