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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.game-container {
    text-align: center;
}

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

.status {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.cell {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    user-select: none;
}

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

.cell:active {
    transform: scale(0.95);
}

/* Custom player styling */
.cell.X {
    color: #3b82f6;
}

.cell.O {
    color: #ef4444;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #555;
}
