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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.game-modes {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.game-modes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
}

.game-modes input[type="radio"] {
    transform: scale(1.2);
}

.game-info {
    margin-bottom: 1.5rem;
}

.current-player {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #555;
}

#currentPlayer {
    font-weight: bold;
    color: #007bff;
}

.game-status {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5px;
    max-width: 300px;
    margin: 0 auto 2rem;
    background-color: #333;
    padding: 5px;
    border-radius: 5px;
}

.cell {
    background-color: white;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 3px;
}

.cell:hover {
    background-color: #f8f9fa;
}

.cell.disabled {
    cursor: not-allowed;
}

.cell.knight {
    color: #6c757d;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cell.dragon {
    color: #dc3545;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.reset-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.reset-btn:hover {
    background-color: #0056b3;
}

.winner {
    background-color: #d4edda !important;
    border: 2px solid #28a745 !important;
}

.game-over .cell {
    cursor: not-allowed;
}