* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #0e0e12;
    color: #f5f0e8;
}

#tic_tac_toe {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 50rem;
    background: #18181e;
    border: 1px solid #2a2a32;
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
}

.container h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.turn {
    font-size: 1.8rem;
    color: #b8b8c0;
    margin-bottom: 2.5rem;
}

.turn span {
    color: #d4af37;
    font-weight: bold;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.cell {
    aspect-ratio: 1;
    border: none;
    border-radius: 1.4rem;
    background: #22222a;
    border: 1px solid #34343d;
    cursor: pointer;
    font-size: 4rem;
    font-weight: bold;
    color: #f5f0e8;
    transition: all 0.2s ease;
}

.cell:hover {
    border-color: #d4af37;
    transform: scale(1.03);
}

.result {
    font-size: 1.8rem;
    color: #8a8a92;
    margin-bottom: 2rem;
    min-height: 2.5rem;
}

.reset-btn {
    border: none;
    outline: none;
    cursor: pointer;
    background: #d4af37;
    color: #0e0e12;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 1.3rem 2.4rem;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

@media (max-width: 500px) {
    .container {
        padding: 2rem;
    }

    .container h1 {
        font-size: 2.6rem;
    }

    .cell {
        font-size: 3rem;
    }
}