/* Styling Papan Catur */
#chess-board {
    display: grid;
    /* KUNCI: Membuat tampilan grid */
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 480px;
    /* Ukuran total papan (60px * 8) */
    height: 480px;
    border: 3px solid #333;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Styling Petak (Kotak) Catur */
.square {
    width: 100%;
    /* Mengisi penuh sel grid */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    /* Ukuran bidak */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.1s;
    /* Efek halus saat highlight */
}

/* Warna Petak */
.light {
    background-color: #f0d9b5;
    /* Warna terang */
}

.dark {
    background-color: #b58863;
    /* Warna gelap */
}

/* Styling Saat Petak Diklik */
.selected {
    background-color: #ff6666 !important;
    /* Warna saat bidak dipilih */
    box-shadow: inset 0 0 5px 5px rgba(255, 0, 0, 0.5);
}

/* Warna untuk petak tujuan yang valid */
.highlight {
    background-color: #6c9a75 !important;
    opacity: 0.9;
}