/* Tic-Tac-Do — board aligned to the site's design tokens (custom.css :root). */
#game {
    text-align: center;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, 110px);
    grid-template-rows: repeat(3, 110px);
    gap: 10px;
    margin: 20px auto;
    width: max-content;
}

.cell {
    background-color: #fff;
    border: 1px solid #e0e4ea;
    border-radius: var(--site-radius, 0.4rem);
    box-shadow: var(--site-shadow, 0 1px 4px rgba(130, 143, 163, 0.15));
    font-size: 3.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--site-transition, all 0.25s ease-in-out);
}

.cell:hover:not(.taken) {
    transform: translateY(-2px);
    border-color: #ed5565;
    box-shadow: var(--site-shadow-hover, 0 0.5rem 1.25rem rgba(130, 143, 163, 0.28));
}

.cell.taken {
    cursor: not-allowed;
    background-color: #f7f9fb;
}

.cell.win {
    background-color: #ed5565;
    border-color: #ed5565;
    color: white;
}

.game-over.tie .cell {
    background-color: #fff6d9;
    color: black;
}

#status {
    margin-bottom: 20px;
    color: #23303c;
    font-size: 22px;
    font-weight: 600;
}

/* Kyu/Dan selector + restart, brand-aligned */
#restartButton {
    background: #ed5565;
    border-color: #ed5565;
    color: #fff;
}

@media (max-width: 600px) {
    #board {
        grid-template-columns: repeat(3, 30vw);
        grid-template-rows: repeat(3, 30vw);
        gap: 2vw;
    }

    .cell {
        font-size: 13vw;
    }

    #status {
        font-size: 18px;
    }
}
