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

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

.controls {
    margin-bottom: 15px;
}

button {
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: #667eea;
    color: white;
    transition: background 0.3s;
}

button:hover {
    background: #5568d3;
}

.info {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

#currentPlayer {
    margin-bottom: 5px;
}

#board {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    grid-template-rows: repeat(8, 60px);
    gap: 0;
    margin: 0 auto;
    border: 3px solid #333;
}

.square {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.square.light {
    background: #f0d9b5;
}

.square.dark {
    background: #b58863;
}

.square.selected {
    background: #7fc97f;
}

.square.valid-move {
    background: #ffeb3b;
}

.piece {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #333;
    cursor: pointer;
}

.piece.red {
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
}

.piece.black {
    background: radial-gradient(circle at 30% 30%, #495057, #212529);
}

.piece.king::after {
    content: '♔';
    font-size: 30px;
    color: gold;
    position: absolute;
}
