body {
    background: #2c3e50;
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; margin: 0;
}

.dama-container {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.turno-box {
    background: white; padding: 10px 20px; border-radius: 20px;
    font-weight: bold; text-transform: uppercase;
}
.turno-box.branca { background: #ecf0f1; color: #333; border: 2px solid #bdc3c7; }
.turno-box.vermelha { background: #e74c3c; color: white; border: 2px solid #c0392b; }

/* O Tabuleiro */
.tabuleiro {
    width: 90vw; max-width: 600px;
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    border: 10px solid #5d4037;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.casa {
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    position: relative;
}

.casa.branca { background-color: #f0d9b5; }
.casa.preta { background-color: #b58863; cursor: pointer; }

/* Peças */
.peca {
    width: 80%; height: 80%;
    border-radius: 50%;
    box-shadow: 0 5px 5px rgba(0,0,0,0.3) inset, 0 5px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.1s;
    border: 3px solid rgba(0,0,0,0.1);
}

.peca.branca { background: #ecf0f1; border-color: #bdc3c7; }
.peca.vermelha { background: #e74c3c; border-color: #c0392b; }

.peca.dama {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gold"><path d="M12 2l3 6h6l-5 4 2 6-6-4-6 4 2-6-5-4h6z"/></svg>');
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    border: 4px solid gold;
}

/* Efeitos de Seleção */
.peca:active { transform: scale(0.9); }
.casa.selecionada { background-color: #6b8c42 !important; } /* Verde quando clica na peça */
.casa.movimento-possivel { 
    background-color: #7f8c8d; 
    position: relative;
}
.casa.movimento-possivel::after {
    content: '';
    width: 20%; height: 20%;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    position: absolute;
}