*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #d666ea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.container{
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

h2{
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-info{
    margin-bottom: 20px;
    font-size: 1.2em;
}

.current-player{
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.game-board{
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 15px;
}

.cell{
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    font-size: 2em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell:hover{
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cell:disabled{
    cursor: not-allowed;
    opacity: 0.8;
}

.cell:x{
    color: #e74c3c;
}

.cell.o{
    color: #3498db;
}

.winner{
    background: linear-gradient(45deg, #ffd700, #ffed4e) !important;
    animation: celebration 0.6s ease-in-out;
}

@keyframes celebration {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.game-status{
    margin: 20px 0;
    font-size: 1.3em;
    min-height: 30px;
}

.winner-text{
    color: #ffd700;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.draw-text{
    color: #ff9500;
    font-weight: bold;
}

.controls{
    margin-top: 20px;
}

.reset-btn{
    background: linear-gradient(45deg, #ff6b6b, #ee5a5a);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 90, 90, 0.4);
}
.reset-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 90, 0.6);
}

.score-board{
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.1em;
}

.score{
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.score-x{
    border-left: 4px solid #e74c3c;
}

.score-0{
    border-left: 4px solid #3498db;
}

@media (max-width: 480px) {
    .game-board{
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
    }

    .cell {
        font-size: 1.5em;
    }

    h1{
        font-size: 2em;
    }

    .score-board{
        flex-direction: column;
        gap: 10px;
        
    }
}