* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    z-index: 10;
    transition: transform 0.3s ease;
}

.hidden {
    display: none !important;
}

.illustration img {
    width: 160px;
    border-radius: 15px;
    margin-bottom: 20px;
}

h1 {
    color: #ff4757;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

h1 span {
    color: #ff6b81;
}

p {
    color: #57606f;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: relative; /* Penting agar tombol no bisa absolute relatif ke body nanti */
}

button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#btn-yes {
    background: #ff4757;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

#btn-yes:hover {
    transform: scale(1.08);
    background: #ff6b81;
}

/* Tambahkan atau timpa khusus untuk ID btn-no di style.css */
#btn-no {
    background: #f1f2f6;
    color: #57606f;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Transisi ini yang bikin efek meluncurnya gesit tapi halus, nggak langsung hilang */
    transition: left 0.25s ease-out, top 0.25s ease-out; 
    z-index: 999; /* Supaya saat kabur, tombolnya tetap ada di lapisan paling atas */
}

/* --- Animasi Background Hati Melayang --- */
.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 24px;
    animation: float 6s linear infinite;
    bottom: -50px;
    opacity: 0;
}

/* Mengatur posisi dan kecepatan hati secara acak menggunakan nth-child */
.heart:nth-child(1) { left: 10%; animation-duration: 5s; animation-delay: 0s; }
.heart:nth-child(2) { left: 20%; animation-duration: 7s; animation-delay: 2s; font-size: 18px; }
.heart:nth-child(3) { left: 30%; animation-duration: 4s; animation-delay: 1s; }
.heart:nth-child(4) { left: 40%; animation-duration: 6s; animation-delay: 3s; font-size: 30px;}
.heart:nth-child(5) { left: 50%; animation-duration: 8s; animation-delay: 0s; }
.heart:nth-child(6) { left: 60%; animation-duration: 5s; animation-delay: 4s; font-size: 20px;}
.heart:nth-child(7) { left: 70%; animation-duration: 7s; animation-delay: 1s; }
.heart:nth-child(8) { left: 80%; animation-duration: 6s; animation-delay: 2s; }
.heart:nth-child(9) { left: 90%; animation-duration: 5s; animation-delay: 5s; font-size: 28px;}
.heart:nth-child(10) { left: 85%; animation-duration: 6s; animation-delay: 0.5s; }
.heart:nth-child(11) { left: 15%; animation-duration: 5s; animation-delay: 1.5s; }
.heart:nth-child(12) { left: 35%; animation-duration: 7s; animation-delay: 0.2s; }
.heart:nth-child(13) { left: 55%; animation-duration: 4s; animation-delay: 3.5s; }
.heart:nth-child(14) { left: 75%; animation-duration: 6s; animation-delay: 1.8s; }
.heart:nth-child(15) { left: 95%; animation-duration: 8s; animation-delay: 2.2s; }

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}