:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff758f;
    --dark-bg: #1a0a0c;
    --text-white: #ffffff;
    --gold: #ffb703;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #1a0a0c, #2b0b0e, #120506, #3d0c11);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-white);
    height: 100vh;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 480px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(255, 77, 109, 0.1);
    transition: all 0.5s ease;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    /* Fallback for exceptionally small screens, but body stays hidden */
    scrollbar-width: none;
    /* Hide scrollbar in Firefox */
}

.card::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar in Chrome/Safari */
}

@media (min-width: 480px) {
    .card {
        padding: 3rem 2rem;
    }
}

.card:hover {
    border-color: rgba(255, 77, 109, 0.3);
    box-shadow: 0 20px 50px rgba(255, 77, 109, 0.2);
}

.love-icon {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 15px var(--primary-color));
    animation: heartBeat 1.2s infinite ease-in-out;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.15);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.15);
    }

    40% {
        transform: scale(1);
    }
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 10vw, 3.5rem);
    background: linear-gradient(to right, #ff4d6d, #ffb703, #ff4d6d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
    margin-bottom: 1rem;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.message {
    font-size: clamp(0.9rem, 4vw, 1.05rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    min-height: 60px;
    align-items: center;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: clamp(0.8rem, 3vw, 1rem);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-yes {
    background: linear-gradient(45deg, #ff4d6d, #ff758f, #ffb703);
    background-size: 200% 200%;
    animation: gradientBG 3s ease infinite;
    color: white;
    box-shadow: 0 8px 15px rgba(255, 77, 109, 0.4);
    position: relative;
    z-index: 10;
}

.btn-yes:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 77, 109, 0.7);
}

.btn-no {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.signature {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.signature strong {
    color: var(--gold);
    display: block;
    font-size: 1rem;
    margin-top: 4px;
}

/* Success Message Overlay */
.hidden {
    display: none !important;
}

#success-message {
    background: rgba(0, 0, 0, 0.85);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.kiss-animation {
    font-size: 6rem;
    margin-bottom: 2rem;
    animation: kissPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes kissPop {
    0% {
        transform: scale(0);
        rotate: -15deg;
    }

    70% {
        transform: scale(1.2);
        rotate: 10deg;
    }

    100% {
        transform: scale(1);
        rotate: 0deg;
    }
}

#success-message h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Floating Heart Styles */
.particle-heart {
    position: absolute;
    color: var(--primary-color);
    font-size: 20px;
    user-select: none;
    pointer-events: none;
    animation: floatUp linear forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}