
{
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

:root {
    --cell-size: 70px;
    --light-cell: #f0d9b5;
    --dark-cell: #b58863;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #2c3e50;
    font-family: sans-serif;
}

.info-panel {
    margin-bottom: 20px;
    font-size: 24px;
    color: white;
}

/* Обертка */
.board-wrapper {
    padding: 5px; 
    background: #34495e;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    line-height: 0; /* Убирает лишние микро-отступы между инлайновыми элементами */
}

.board {
    display: grid;
    grid-template-columns: repeat(8, var(--cell-size));
    grid-template-rows: repeat(8, var(--cell-size));
    
    
    border: 5px solid #1a252f; 
    width: max-content; 
    height: max-content;
    overflow: hidden; 
}

.cell {
    width: var(--cell-size);
    height: var(--cell-size);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px; 
    cursor: pointer;
    user-select: none;
    line-height: 1; 
}

.cell.light { background-color: var(--light-cell); }
.cell.dark { background-color: var(--dark-cell); }

/* Фигуры */
.white-piece { 
    color: #ffffff; 
    text-shadow: 1px 1px 2px #000; 
}
.black-piece { 
    color: #000000; 
}

/* Подсветка */
.selected { 
    background-color: #bbc14d !important; 
}
.possible-move {
    position: relative;
}
.possible-move::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
}
.possible-capture {
    box-shadow: inset 0 0 15px rgba(255, 0, 0, 0.6);
}
