body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    overflow: hidden;
}

/* popup */

.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popup-box {
    background: white;
    padding: 30px;
    border-radius: 18px;
    width: 280px;
}

.popup input {
    padding: 10px;
    width: 90%;
    margin: 10px 0;
}

/* container */

.container {
    margin-top: 70px;
    min-height: 420px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* typing */

#typing {
    color: #cc0066;
    font-size: 2.3rem;
    min-height: 120px;
    white-space: pre-line;
    font-family: "Brush Script MT", cursive;
}

/* gif */

.gif {
    width: 480px;
    margin: 15px;
}

/* photo */

.photo {
    width: 220px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* buttons */

button {
    padding: 14px 26px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

#yesBtn {
    background: #ff4d88;
    color: white;
    animation: pulse 1.3s infinite;
}

#noBtn {
    background: #eeeeee;
}

@keyframes pulse {
    50% { transform: scale(1.12); }
}

/* shake */

.shake { animation: shake .3s; }

@keyframes shake {
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* cursor trail */

@keyframes fade {
    to { opacity: 0; transform: translateY(-20px); }
}

@keyframes fall {
    to { transform: translateY(110vh); opacity: 0; }
}


/* -------- MOBILE FIXES -------- */

@media (max-width: 600px) {

    .container {
        margin-top: 40px;
        padding: 16px;
        min-height: auto;
    }

    #typing {
        font-size: 1.6rem;
        min-height: 100px;
    }

    .gif {
        width: 180px;
    }

    .photo {
        width: 160px;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    button {
        width: 80%;
        font-size: 1rem;
        padding: 12px;
    }

    .popup-box {
        width: 85%;
    }
}
