/* ============================================
   TicTacToe - Game Styles
   ============================================ */

/* Background */
.ttt-bg {
    background: #1a2332;
    background: linear-gradient(135deg, #1a2332 0%, #0f1923 50%, #1a2332 100%);
}

/* Content wrapper */
.ttt-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* Turn indicator */
.ttt-turn-indicator {
    text-align: center;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttt-turn-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #c0c8d0;
}

.ttt-win-text {
    color: #81c784;
    text-shadow: 0 0 12px rgba(129, 199, 132, 0.4);
}

.ttt-lose-text {
    color: #e57373;
    text-shadow: 0 0 12px rgba(229, 115, 115, 0.4);
}

.ttt-draw-text {
    color: #90caf9;
}

/* Board */
.ttt-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 6px;
    background: rgba(212, 175, 55, 0.25);
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 175, 55, 0.08);
}

/* Cells */
.ttt-cell {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 35, 50, 0.95);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: default;
}

.ttt-cell-clickable {
    cursor: pointer;
}

.ttt-cell-clickable:hover {
    background: rgba(40, 55, 75, 0.95);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Marks */
.ttt-mark {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    transition: all 0.15s ease;
}

.ttt-x {
    color: #5dade2;
    text-shadow: 0 0 10px rgba(93, 173, 226, 0.5);
}

.ttt-o {
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* Winning cells */
.ttt-cell-win {
    background: rgba(212, 175, 55, 0.2) !important;
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.25), 0 0 12px rgba(212, 175, 55, 0.15);
    animation: ttt-win-pulse 1s ease-in-out infinite alternate;
}

.ttt-cell-win .ttt-mark {
    color: #d4af37 !important;
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
}

@keyframes ttt-win-pulse {
    from {
        box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.15), 0 0 8px rgba(212, 175, 55, 0.1);
    }
    to {
        box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .ttt-board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
        gap: 4px;
        padding: 4px;
    }

    .ttt-cell {
        width: 80px;
        height: 80px;
    }

    .ttt-mark {
        font-size: 2.4rem;
    }
}
