body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container */
.container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Buttons */
button {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 10px;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: #5a67d8;
}

/* Active (subtle highlight) */
.active {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
    transform: scale(1.08);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

/* Board */
.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 10px;
    margin: 20px auto;
}

/* Cells */
.cell {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 10px;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


/*Pop animation */
.cell.pop {
    animation: pop 0.2s ease;
}

@keyframes pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Winner animation */
.winner {
    background: #4ade80 !important;
    animation: winPulse 0.6s infinite alternate;
}

@keyframes winPulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

#status {
    margin-top: 10px;
    font-weight: bold;
}

#score {
    margin-top: 10px;
}
#restart {
    margin-top: 10px;
    background: #ff6b6b;
    transition: all 0.2s ease;
}

/* Hover = lift */
#restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Click = press */
#restart:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#restart {
    background: #667eea;
}
#restart {
    font-weight: bold;
}