body {
    font-family: "Poppins", sans-serif;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Background pink + gambar love */
    background: #ffb6c9 url('pngtree-romantic-valentine-background-with-pink-decor-image_16913986.jpg');
    background-size: cover;
    background-position: center;
}

.popup-box, .popup-duplicate {
    position: absolute;
    padding: 25px;
    width: 260px;
    text-align: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(200, 200, 200, 0.4);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: fadeIn 0.3s ease;
}

#popup {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

button {
    padding: 10px 20px;
    margin: 8px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
}

#yesBtn { background: #ff4fa3; color: white; }
#noBtn { background: #ff4d4d; color: white; }

#successText {
    position: absolute;
    top: 40%;
    width: 100%;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #ff0055;
    opacity: 0;
    transform: scale(0.5);
    transition: 0.6s ease;
}

#hearts-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

/* FOTO LOVE + TALI */
.flying-photo {
    position: absolute;
    bottom: -80px;
    animation: floatUp 4s linear forwards;
    opacity: 0.9;

    background-size: cover;
    background-position: center;

    width: 100px;
    height: 100px;

    /* MASK LOVE */
    -webkit-mask-image: url('love.svg');
    mask-image: url('love.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* TALI BALON */
.flying-photo::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 80px;
    background: #ff4fa3;
    transform: translateX(-50%);
    animation: floatUp 4s linear forwards;
    opacity: 0.8;
}

@keyframes floatUp {
    0% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-110vh) translateX(var(--drift)) scale(1.2); opacity: 0; }
}
