/* Romantic background outside the card */
* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ffe6f1 0%, #ffe8dd 55%, #fff3f7 100%);
    padding: 24px;
}

.corner-bows {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.corner-bow {
    position: absolute;
    width: clamp(72px, 12vw, 140px);
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 12px 20px rgba(24, 16, 24, 0.18));
}

.corner-bow--tl { top: 10px; left: 10px; transform: rotate(-10deg); }
.corner-bow--tr { top: 10px; right: 10px; transform: scaleX(-1) rotate(-10deg); }
.corner-bow--bl { bottom: 10px; left: 10px; transform: rotate(10deg); }
.corner-bow--br { bottom: 10px; right: 10px; transform: scaleX(-1) rotate(10deg); }

.container {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1; /* keep card above corner bows */
}

/* Soft “card” layout */
.card {
    position: relative;
    display: inline-block;
    width: auto;
    max-width: 95vw;
    min-width: 360px;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 182, 203, 0.35);
    border-radius: 22px;
    padding: 22px 22px 26px;
    box-shadow: 0 18px 55px rgba(24, 16, 24, 0.10);
    backdrop-filter: blur(6px);
}

/* Panda + blob depth */
.banner-gif {
    position: relative;
    display: grid;
    place-items: center;
    margin: 6px 0 10px;
}

.banner-gif::before {
    content: "";
    position: absolute;
    width: 270px;
    height: 220px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 138, 198, 0.28), rgba(255, 214, 236, 0.0) 60%),
                radial-gradient(circle at 70% 60%, rgba(255, 180, 140, 0.22), rgba(255, 230, 241, 0.0) 62%),
                rgba(255, 220, 235, 0.35);
    border-radius: 58% 42% 48% 52% / 48% 55% 45% 52%;
    filter: blur(0.2px);
    transform: translateY(6px) rotate(-8deg);
    z-index: 0;
}

.banner-gif img {
    position: relative;
    z-index: 1;
    width: auto;
    height: 315px; /* bigger and closer */
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
}

#question-heading {
    margin: 4px 0 6px;
    font-size: clamp(28px, 4.6vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #2b2026;
}

.subtitle {
    margin: 0 0 16px;
    color: rgba(43, 32, 38, 0.72);
    font-size: 14px;
}

.message {
    display: none;
    margin-top: 14px;
}

#success-message {
    margin: 0;
    font-size: 18px;
    color: #2b2026;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: center;
    align-items: center; /* keep No vertically centered next to big Yes */
    gap: 12px;
    flex-wrap: nowrap; /* keep No next to Yes */
    margin-top: 10px;
    overflow-x: auto; /* if Yes gets huge, allow scroll instead of wrapping */
}

.buttons button {
    position: relative;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    padding: 12px 18px;
    min-width: 110px;
    height: 44px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 18px rgba(24, 16, 24, 0.14);
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
    user-select: none;
    flex: 0 0 auto; /* don't shrink buttons; let card/scroll handle it */
}

.buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(24, 16, 24, 0.16);
}

.buttons button:active {
    transform: translateY(0);
    box-shadow: 0 8px 14px rgba(24, 16, 24, 0.14);
}

/* Tiny heart bounce on hover */
.buttons button::after {
    content: "";
    position: absolute;
    right: 10px;
    top: -16px;
    font-size: 26px;
    opacity: 0;
    transform: translateY(6px) scale(0.9);
    filter: drop-shadow(0 6px 8px rgba(24, 16, 24, 0.20));
    pointer-events: none;
}

/* Per-button hover icon */
#yes-button::after {
    content: "❤";
    color: rgba(168, 85, 247, 0.95); /* purple heart */
}

#no-button::after {
    content: "✖";
    color: rgba(0, 0, 0, 0.85); /* black cross */
}

.buttons button:hover::after {
    opacity: 1;
    animation: heartBounce 650ms ease forwards;
}

@keyframes heartBounce {
    0%   { transform: translateY(6px) scale(0.9); }
    35%  { transform: translateY(-2px) scale(1.08); }
    70%  { transform: translateY(2px) scale(0.98); }
    100% { transform: translateY(0) scale(1.0); }
}

#yes-button {
    background: linear-gradient(135deg, #1fbf6a 0%, #0fa85a 55%, #0b8f4a 100%);
}

#no-button {
    background: linear-gradient(135deg, #ff4b6a 0%, #ff2e55 55%, #e61e44 100%);
}

/* Floating hearts/sparkles around the panda */
.floating-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.floaty {
    position: absolute;
    opacity: 0.85;
    transform: translate3d(0, 0, 0);
    animation: floatyDrift var(--d, 8s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    filter: drop-shadow(0 10px 14px rgba(24, 16, 24, 0.10));
}

.floaty--heart::before {
    content: "❤";
    font-size: var(--s, 18px);
    color: rgba(255, 80, 140, 0.75);
}

.floaty--sparkle::before {
    content: "✦";
    font-size: var(--s, 16px);
    color: rgba(255, 170, 120, 0.70);
}

@keyframes floatyDrift {
    0%   { transform: translate3d(0, 6px, 0) rotate(-6deg); opacity: 0.70; }
    50%  { transform: translate3d(0, -10px, 0) rotate(10deg); opacity: 0.95; }
    100% { transform: translate3d(0, 6px, 0) rotate(-6deg); opacity: 0.70; }
}

/* Place + vary each decor item */
.floating-decor .floaty:nth-child(1) { left: 22px; top: 84px;  --s: 18px; --d: 7.5s; --delay: -1.2s; }
.floating-decor .floaty:nth-child(2) { right: 32px; top: 78px; --s: 16px; --d: 9.0s; --delay: -2.8s; }
.floating-decor .floaty:nth-child(3) { left: 52px; top: 148px; --s: 14px; --d: 8.2s; --delay: -3.6s; }
.floating-decor .floaty:nth-child(4) { right: 62px; top: 160px; --s: 18px; --d: 10.5s; --delay: -1.6s; }
.floating-decor .floaty:nth-child(5) { left: 18px; top: 210px; --s: 20px; --d: 9.6s; --delay: -4.2s; }
.floating-decor .floaty:nth-child(6) { right: 18px; top: 230px; --s: 14px; --d: 8.8s; --delay: -2.0s; }
.floating-decor .floaty:nth-child(7) { left: 110px; top: 54px; --s: 14px; --d: 11.0s; --delay: -5.0s; }
.floating-decor .floaty:nth-child(8) { right: 120px; top: 46px; --s: 15px; --d: 7.8s; --delay: -3.1s; }
.floating-decor .floaty:nth-child(9) { left: 140px; top: 236px; --s: 16px; --d: 10.8s; --delay: -2.4s; }
.floating-decor .floaty:nth-child(10){ right: 150px; top: 248px; --s: 14px; --d: 9.2s; --delay: -4.7s; }

/* Make responsive for mobile */
@media (max-width: 480px) {
    body { padding: 18px; }

    .card { padding: 20px 16px 22px; }

    .banner-gif::before {
        width: 240px;
        height: 200px;
    }

    .banner-gif img {
        height: 290px;
    }

    .buttons button {
        min-width: 120px;
    }

    .buttons {
        flex-wrap: wrap; /* allow stacking on small screens */
        overflow-x: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floaty { animation: none; }
    .buttons button,
    .buttons button:hover { transition: none; }
    .buttons button:hover::after { animation: none; }
}