:root {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --cell-bg: #333;
    --cell-hover: #444;
    --accent: #4caf50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    margin: 20px auto;
}

.cell {
    background-color: var(--cell-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

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

.cell.x {
    color: #ff5252;
}

.cell.o {
    color: #448aff;
}

.status {
    font-size: 1.5rem;
    margin-bottom: 10px;
    min-height: 2rem;
}

button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.1s;
}

button:active {
    transform: scale(0.98);
}
