:root {
    --bg-gradient: linear-gradient(135deg, #fff0f3 0%, #ffe5ec 50%, #ffccd5 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --primary-color: #ff85a1;
    --primary-hover: #ff758f;
    --primary-shadow: rgba(255, 133, 161, 0.2);
    --secondary-color: #fff0f3;
    --secondary-border: #ffe5ec;
    --text-color: #5c4d50;
    --title-color: #ff758f;
}

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

body {
    font-family: 'Fredoka', 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-color);
    position: relative;
}

/* Floating background elements */
.background-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    color: rgba(255, 117, 143, 0.35);
    animation: floatUp 6s linear infinite;
    bottom: -50px;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Card Container */
.card-container {
    width: 90%;
    max-width: 500px;
    z-index: 10;
    perspective: 1000px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(255, 182, 193, 0.3),
                0 0 100px rgba(255, 255, 255, 0.5) inset;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-5px);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-content.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

/* Animations and emojis */
.emoji-container {
    font-size: 70px;
    margin-bottom: 10px;
    user-select: none;
}

.bounce {
    display: inline-block;
    animation: bounceEmoji 2.5s infinite ease-in-out;
}

@keyframes bounceEmoji {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.pop {
    display: inline-block;
    animation: popEmoji 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popEmoji {
    0% { transform: scale(0); }
    100% { transform: scale(1.2) rotate(15deg); }
}

/* Titles and Text */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--title-color);
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.subtitle {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Buttons */
.btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    position: relative;
    min-height: 140px; /* Reserve space for buttons */
    margin-top: 15px;
}

.btn {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 14px 45px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    outline: none;
    user-select: none;
}

.btn-yes {
    background: linear-gradient(135deg, #ffb3c1 0%, #ff85a1 100%);
    color: white;
    box-shadow: 0 10px 20px var(--primary-shadow);
    width: 200px;
    z-index: 5;
}

.btn-yes:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 25px rgba(255, 133, 161, 0.35);
    background: linear-gradient(135deg, #ff85a1 0%, #ff758f 100%);
}

.btn-yes:active {
    transform: scale(0.98);
}

.btn-no {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-border);
    color: #888;
    width: 200px;
    z-index: 4;
}

.btn-no.moving {
    position: fixed !important;
    transition: none !important;
    z-index: 9999 !important;
}

/* Success state styling */
.success-title {
    color: var(--title-color);
}

.success-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #666;
}

/* Media Queries */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .btn {
        width: 100%;
        max-width: 220px;
    }
}
