body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Comic Sans MS", Arial, sans-serif;
    overflow: hidden;
}

/* TOP MENU */
#top-menu {
    display: flex;
    gap: 12px;
    margin: 15px;
    position: absolute;
    top: 10px;
    z-index: 10;
}

#top-menu select,
#top-menu button {
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

/* IMAGE */
#image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

#word-image {
    display: none;
    max-width: 350px;
    max-height: 350px;
    width: 90%;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* CARD */
.card {
    background: white;
    padding: 45px 30px;
    border-radius: 30px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    cursor: pointer;
}

#mascot {
    width: 140px;
    margin-bottom: 20px;
    animation: wiggle 1.2s infinite;
}

#word {
    font-size: 60px;
    color: #333;
}

#word.animate {
    animation: pop 0.6s ease forwards;
}

/* FOOTER */
#footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

#footer button {
    font-size: 34px;
    background: none;
    border: none;
    cursor: pointer;
}

#footer button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Animations */
@keyframes wiggle {
    0%,100% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* MOBILE */
@media (max-width: 500px) {
    #word { font-size: 42px; }
    #mascot { width: 120px; }

    #top-menu select,
    #top-menu button {
        font-size: 15px;
    }

    #refresh-text {
        display: none;
    }

    .card {
        width: 80%;
    }
}
