:root {
    --bg-color: #ffeef2;
    --primary: #ff8fa3;
    --accent: #ff4d6d;
    --text: #594d5b;
    --white: #ffffff;
    --btn-shadow: rgba(255, 77, 109, 0.2);
}

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

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

#hearts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 60px 40px;
    box-shadow: 0 15px 30px rgba(255, 143, 163, 0.15);
    text-align: center;
    max-width: 90%;
    width: 450px;
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 2.2rem;
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
    margin: 30px 0;
    font-weight: 700;
}

/* --- Character CSS: Cute Bear --- */
.character-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
}

.bear {
    width: 100%;
    height: 120px;
    background: #e6a079;
    border-radius: 70px 70px 40px 40px;
    position: absolute;
    bottom: 0;
    animation: bounce 2s infinite ease-in-out;
}

.ear {
    width: 50px;
    height: 50px;
    background: #e6a079;
    border-radius: 50%;
    position: absolute;
    top: -10px;
}

.ear.left {
    left: 0px;
}

.ear.right {
    right: 0px;
}

.face {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
}

.eye {
    width: 12px;
    height: 12px;
    background: #594d5b;
    border-radius: 50%;
    position: absolute;
}

.eye.left {
    left: 35px;
}

.eye.right {
    right: 35px;
}

.blush {
    width: 25px;
    height: 12px;
    background: #ffa8ba;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    opacity: 0.6;
}

.blush.left {
    left: 25px;
}

.blush.right {
    right: 25px;
}

.nose {
    width: 15px;
    height: 15px;
    background: #594d5b;
    border-radius: 50% 50% 40% 40%;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.mouth {
    width: 20px;
    height: 10px;
    border: 2px solid #594d5b;
    border-top: none;
    border-radius: 0 0 10px 10px;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Buttons --- */
.button-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

.btn {
    padding: 15px 40px;
    font-size: 1.3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px var(--btn-shadow);
    color: var(--white);
    outline: none;
}

.btn.yes {
    background: var(--accent);
}

.btn.yes:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px var(--btn-shadow);
}

.btn.no {
    background: var(--primary);
    position: relative;
    z-index: 5;
}

/* --- Celebration --- */
#celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.hidden {
    display: none !important;
}

.success-content {
    text-align: center;
}

.heart-pulse {
    font-size: 6rem;
    animation: heartBeat 1.2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    12% {
        transform: scale(1.1);
    }

    24% {
        transform: scale(1);
    }

    36% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Floating Hearts --- */
.floating-heart {
    position: absolute;
    font-size: 20px;
    color: var(--accent);
    user-select: none;
    pointer-events: none;
    animation: floatUp 4s linear infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}