.ttt-page {
    gap: 20px;
}

.mode-selector {
    color: #999;
    margin-bottom: 5px;
}

.mode-selector select {
    background: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid #2a2a4a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-left: 8px;
}

.ttt-board {
    display: grid;
    grid-template-columns: repeat(3, 110px);
    grid-template-rows: repeat(3, 110px);
    gap: 6px;
    margin: 10px 0;
}

.cell {
    background: #1a1a2e;
    border: 2px solid #2a2a4a;
    border-radius: 12px;
    font-size: 2.8rem;
    font-weight: 700;
    color: #e0e0e0;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.cell:hover {
    background: #252545;
    border-color: #667eea;
}

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

.cell.winning {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    animation: pulse 0.6s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { background: rgba(102, 126, 234, 0.2); }
    to { background: rgba(102, 126, 234, 0.5); }
}
