* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 25%, #0369a1 50%, #1e40af 75%, #1e3a8a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.2), 0 5px 15px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.1);
    max-width: 400px;
    width: 100%;
}

h1 {
    margin-bottom: 20px;
    color: #0369a1;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(14, 165, 233, 0.2);
}

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

.current-player {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0c4a6e;
}

.current-player span {
    color: #0ea5e9;
    font-size: 1.3rem;
}

.game-status {
    font-size: 1rem;
    color: #0369a1;
    font-weight: 500;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
    margin: 20px auto;
    max-width: 300px;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    padding: 8px;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(6, 182, 212, 0.3);
}

.cell {
    aspect-ratio: 1;
    background: white;
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cell:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.25);
}

.cell.x {
    color: #dc2626;
}

.cell.o {
    color: #0284c7;
}

.cell.winning {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    animation: pulse 0.6s infinite alternate;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.5);
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.reset-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.reset-btn:active {
    transform: translateY(0);
}

.game-over .cell {
    pointer-events: none;
}

.winner {
    color: #0891b2;
    font-weight: bold;
}

.draw {
    color: #0369a1;
    font-weight: bold;
}

@media (max-width: 480px) {
    .container {
        margin: 20px;
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .cell {
        font-size: 2rem;
    }
}
