/* games/games/tic-tac-toe/style.css
   Game-specific styles, layered on top of the shared games CSS. */

.ttt-shell {
    padding-top: 6px;
}

.ttt-scoreboard {
    display: flex;
    gap: 12px;
}

.ttt-score-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.ttt-score-pill.is-active {
    opacity: 1;
    border-color: var(--warn);
}

.ttt-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttt-mark-x { color: #3b82f6; background: rgba(59, 130, 246, 0.14); }
.ttt-mark-o { color: #f5a524; background: rgba(245, 165, 36, 0.14); }

.ttt-score-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-dim);
}

.ttt-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: min(320px, 84vw);
    aspect-ratio: 1;
}

.ttt-cell-form {
    display: contents;
}

.ttt-cell {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 8vw, 40px);
    transition: background 0.12s ease, transform 0.08s ease;
}

button.ttt-cell:hover { background: #262936; }
button.ttt-cell:active { transform: scale(0.95); }

.ttt-cell-filled.ttt-mark-x { color: #3b82f6; }
.ttt-cell-filled.ttt-mark-o { color: #f5a524; }
