/* ==========================================================================
   TIC-TAC-TOE COMPONENT
   ========================================================================== */

.init-ttt {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.init-ttt__status {
    min-height: 24px;
    font-weight: 600;
}

.init-ttt__board {
    display: grid;
    grid-template-columns: repeat(3, 72px);
    gap: 8px;
}

.init-ttt__cell {
    width: 72px;
    height: 72px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 72px;
    text-align: center;
    transition: border .15s, transform .05s, box-shadow .15s;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.init-ttt__cell:hover {
    border-color: #cbd5e1;
}

.init-ttt__cell:active {
    transform: scale(.98);
}

@media (min-width: 480px) {
    .init-ttt__board {
        grid-template-columns: repeat(3, 88px);
    }

    .init-ttt__cell {
        width: 88px;
        height: 88px;
        line-height: 88px;
        font-size: 32px;
    }
}

/* ======================================================================
   DARK MODE SUPPORT
   ====================================================================== */

.uk-light .init-ttt__cell {
    background: #1e293b; /* slate-800 vibe */
    border-color: #334155; /* slate-700 */
    color: #f8fafc; /* almost white */
    box-shadow: 0 1px 2px rgba(255,255,255,.05);
}

.uk-light .init-ttt__cell:hover {
    border-color: #475569; /* slate-600 */
}

.uk-light .init-ttt__cell:active {
    background: #0f172a; /* slate-900, nhấn mạnh khi click */
    transform: scale(.97);
}

.uk-light .init-ttt__status {
    color: #f1f5f9; /* text-panel trong dark mode */
}
