
* {
    box-sizing: border-box;
    font-family: 'Poppins', system-ui, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #ffb6c1, #ff4f81);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.card {
    background: #fff;
    width: 100%;
    max-width: 360px;
    padding: 28px 22px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    animation: float 4s ease-in-out infinite;
    position: relative;
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h1 {
    margin: 0;
    color: #ff2f6d;
    font-size: clamp(22px, 5vw, 28px);
}

.gif-box {
    width: 180px;
    height: 180px;
    margin: 22px auto;
    border-radius: 22px;
    background: linear-gradient(135deg, #ff9eb5, #ff5f8a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 82px;
    color: white;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    min-width: 120px;
}

.yes {
    background: #ff2f6d;
    color: #fff;
}

.no {
    background: #ffd1dc;
    color: #ff2f6d;
}

button:active {
    transform: scale(0.95);
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: scale(0.9); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.hearts span {
    position: absolute;
    bottom: -20px;
    font-size: 22px;
    animation: rise 4.5s linear infinite;
}

@keyframes rise {
    from { transform: translateY(0) scale(0.8); opacity: 1; }
    to { transform: translateY(-120vh) scale(1.4); opacity: 0; }
}

/* Falling hearts background */
.falling-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.falling-hearts span {
    position: absolute;
    top: -40px;
    font-size: 20px;
    animation: fall linear forwards;
    opacity: 0.85;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* Mobile polish */
@media (max-width: 420px) {
    .gif-box {
        width: 150px;
        height: 150px;
        font-size: 68px;
    }
}
