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

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff4d6d, #ff758f);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow: hidden;
}

/* Card */
.card {
    background: rgba(0, 0, 0, 0.25);
    padding: 30px 20px 40px;
    border-radius: 25px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

p {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    height: 60px;      /* prevents layout jump */
    position: relative;
}

button {
    padding: 12px 26px;
    font-size: 16px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Yes Button */
#yes {
    background: #2ecc71;
    color: white;
    margin-left: -12px;
}

#yes:hover {
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.9);
    transform: scale(1.08);
}

/* No Button */
#no {
    background: #e74c3c;
    color: white;
    position: relative;   /* ✅ KEY FIX */
}

#no:hover {
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.9);
}

/* Floating Hearts */
.hearts span {
    position: absolute;
    bottom: -20px;
    font-size: 18px;
    animation: floatUp linear infinite;
    opacity: 0.8;
}

@keyframes floatUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-110vh);
        opacity: 0;
    }
}

/* Confetti */
.confetti {
    position: fixed;
    top: -10px;
    width: 8px;
    height: 14px;
    opacity: 0.9;
    animation: confettiFall linear forwards;
    z-index: 999;
}

@keyframes confettiFall {
    from {
        transform: translateY(0) rotate(0deg);
    }
    to {
        transform: translateY(110vh) rotate(720deg);
    }
}

/* Mobile polish */
@media (max-width: 400px) {
    h1 {
        font-size: 24px;
    }
    p {
        font-size: 15px;
    }
}
