:root {
    --bg: #fff7f9;
    --card: #fff3f5;
    --accent: #ff99c8;
    --accent-2: #ffd6e8;
    --text: #4b2b34;
    --muted: #8b6b72;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Poppins, system-ui, Segoe UI, Arial, sans-serif;
    background: linear-gradient(180deg, var(--bg), #fff);
    color: var(--text)
}

.stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px
}

.card {
    background: linear-gradient(180deg, var(--card), #fff);
    border-radius: 20px;
    padding: 36px 28px;
    width: min(720px, 92vw);
    box-shadow: 0 10px 30px rgba(203, 98, 129, 0.12);
    text-align: center;
    position: relative
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 42px;
    margin: 6px 0 18px;
    color: #8b3a4b
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    height: 120px;
    position: relative
}

.btn {
    min-width: 120px;
    padding: 14px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform .18s ease, box-shadow .18s ease
}

.btn:active {
    transform: translateY(2px)
}

.yes {
    background: linear-gradient(90deg, var(--accent), #ff7fbf);
    color: white;
    font-size: 18px;
    position: relative;
    z-index: 1001;
    /* always on top of the No button */
}

.no {
    background: linear-gradient(90deg, #fff, #ffeef6);
    color: var(--muted);
    font-size: 18px;
    position: relative;
    /* normal flow initially */
    z-index: 900;
}

.message-area {
    margin-top: 10px;
    min-height: 64px;
    position: relative;
}

.message-area p {
    margin: 8px auto;
    color: #7a4752;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.4s ease;
    position: absolute;
    width: 100%;
}

.message-area p.fade-out {
    opacity: 0;
}

.hidden {
    display: none
}

.thanks {
    max-width: 720px;
    text-align: center;
    padding: 36px;
    border-radius: 18px
}

.thanks h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 40px;
    color: #c94f70;
    margin: 6px 0
}

.thanks p {
    color: var(--muted);
    margin-top: 6px;
    font-size: 18px
}

/* floating heart animation */
.heart {
    position: fixed;
    pointer-events: none;
    will-change: transform, opacity
}

@media (max-width:480px) {
    .card {
        width: 100%;
    } 
    .title {
        font-size: 32px
    }

    .btn {
        min-width: 100px;
        padding: 12px 18px
    }
}