* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff9a8b 0%, #ff6a88 40%, #ff416c 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 30px 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card */

.card {
    width: 90%;
    max-width: 480px;
    padding: 50px 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(180, 0, 60, 0.35);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: pop-in 0.7s ease;
}

@keyframes pop-in {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.card.celebrate {
    animation: celebrate-pulse 0.6s ease;
}

@keyframes celebrate-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.heart {
    font-size: 68px;
    animation: beat 1s infinite;
    filter: drop-shadow(0 4px 10px rgba(255, 65, 108, 0.4));
}

.whisper {
    font-family: 'Cormorant Garamond', 'Segoe UI', serif;
    font-style: italic;
    color: #c2185b;
    opacity: 0.75;
    font-size: 16px;
    margin: 6px 0 0;
    letter-spacing: 0.3px;
}

h1 {
    font-family: 'Dancing Script', 'Segoe UI', cursive;
    color: #ff416c;
    margin: 10px 0 12px;
    font-size: 42px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(255, 65, 108, 0.25);
}

p {
    color: #666;
    line-height: 1.8;
    margin: 15px 0;
    font-size: 15.5px;
}

p em {
    color: #ff416c;
    font-style: italic;
    font-weight: 600;
}

h2 {
    font-family: 'Cormorant Garamond', 'Segoe UI', serif;
    color: #333;
    margin: 25px 0;
    font-size: 26px;
    font-weight: 600;
    font-style: italic;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

button {
    border: none;
    padding: 15px 34px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.yes {
    background: linear-gradient(135deg, #ff416c, #ff4b8b);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 65, 108, 0.45);
}

.yes:hover {
    background: linear-gradient(135deg, #e62e59, #ff3d7a);
    transform: scale(1.1);
    box-shadow: 0 14px 30px rgba(255, 65, 108, 0.55);
}

.no {
    background: #f1f1f1;
    color: #555;
    position: relative;
}

.no:hover {
    background: #e6e6e6;
}

#message {
    color: #ff416c;
    font-weight: bold;
    margin-top: 25px;
    min-height: 24px;
    font-size: 17px;
}

/* Floating background hearts */

.bg-hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    bottom: -10vh;
    opacity: 0.85;
    animation-name: float-up;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes float-up {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    to {
        transform: translateY(-120vh) rotate(25deg);
        opacity: 0;
    }
}

@keyframes beat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Confetti */

.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.confetti-piece {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 16px;
    opacity: 0.9;
    animation-name: confetti-fall;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
    border-radius: 2px;
}

@keyframes confetti-fall {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.9;
    }
}

@media (max-width: 400px) {
    .card {
        padding: 40px 22px;
    }
    h1 {
        font-size: 24px;
    }
    button {
        padding: 13px 26px;
        font-size: 15px;
    }
}
