/* Tic-Tac-Toe Game Styles */
.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    color: white;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.game-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.current-player {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.player-indicator {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.4rem;
    min-width: 50px;
    text-align: center;
    transition: all 0.3s ease;
}

.player-indicator.player-x {
    background: linear-gradient(45deg, #ff6b6b, #ee5a5a);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.player-indicator.player-o {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.game-message {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-board-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    width: 300px;
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 10px;
}

.board-cell {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.board-cell:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.board-cell.disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.board-cell.x {
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.board-cell.o {
    color: #4ecdc4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.board-cell.winning {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.game-over-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.game-result {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.game-over-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-stats {
    margin-bottom: 30px;
}

.game-stats h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 0.9rem;
}

.stat-text strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.game-instructions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-instructions h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.instruction-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.instruction-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.instruction-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.game-tips h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.game-tips ul {
    list-style: none;
    padding: 0;
}

.game-tips li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    line-height: 1.4;
}

.game-tips li:before {
    content: "💡 ";
    margin-right: 8px;
}

.game-tips li:last-child {
    border-bottom: none;
}

.button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a5a);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.button.secondary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.button.secondary:hover {
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 15px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .game-board {
        width: 250px;
        height: 250px;
    }
    
    .board-cell {
        font-size: 2.5rem;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .game-board {
        width: 200px;
        height: 200px;
    }
    
    .board-cell {
        font-size: 2rem;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-status {
        flex-direction: column;
        gap: 10px;
    }
}