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

body {
    background-color: cadetblue;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

h1 {
    margin-top: 2rem;
    color: #000;
    font-size: 3rem;
}

.container {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.game {
    width: 90vmin;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5vmin;
}

.box {
    flex: 1 1 30%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
    font-size: 10vmin;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#reset {
    padding: 0.6rem 1.2rem;
    font-weight: bold;
    font-size: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
    cursor: pointer;
    color: #111;
    margin-top: 1rem;
}

.winner {
    font-size: 2rem;
    color: #fff;
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.hidden {
    display: none;
}

/* ✅ Responsive tweaks */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .box {
        font-size: 9vmin;
    }

    #reset {
        font-size: 0.9rem;
    }

    .winner {
        font-size: 1.5rem;
    }
}
