body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffb6c1, #ffe4e1);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

/* Card */

.card {
    background: white;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 340px;
    position: relative;
    z-index: 2;
    transition: transform 0.15s ease;
}

.heart {
    font-size: 60px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.heart:hover {
    transform: scale(1.1);
}

h1 {
    margin: 8px 0 12px;
    font-size: 22px;
    color: #d6336c;
}

p {
    margin: 6px 0;
    color: #555;
}

/* Yes buttons */

.options {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.yes-button {
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background: #ff4d6d;
    color: white;
    font-weight: 600;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.3s ease;
    box-shadow: 0 6px 15px rgba(255, 77, 109, 0.4);
}

.yes-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 77, 109, 0.5);
}

.yes-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 10px rgba(255, 77, 109, 0.4);
}

/* iMessage-style YAY bubble + glow */

.answer-message {
    margin-top: 16px;
    display: none;             /* hidden at first */
    background: linear-gradient(135deg, #ff4d6d, #ff85a1);
    color: #fff;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 18px 18px 4px 18px; /* chat bubble shape */
    box-shadow: 0 6px 18px rgba(255, 77, 109, 0.6);
    max-width: 260px;
    margin-left: auto;         /* push to right like an iMessage send */
    margin-right: 0;
    opacity: 0;
    transform: translateY(8px);
}

.answer-message.show {
    display: inline-block;
    animation: bubbleIn 0.35s ease-out forwards, glowPulse 1.6s ease-in-out infinite alternate;
}

@keyframes bubbleIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 6px 18px rgba(255, 77, 109, 0.4);
    }
    100% {
        box-shadow: 0 0 26px rgba(255, 255, 255, 0.9), 
                    0 8px 24px rgba(255, 77, 109, 0.9);
    }
}

.tiny-note {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

/* YES bubble effect – now hearts instead of text */

.bubble {
    position: fixed;
    bottom: -20px;
    color: #ff4d6d;
    font-weight: 600;
    opacity: 0.9;
    pointer-events: none;
    animation: floatUp 3s ease-out forwards;
    z-index: 1;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-120vh) scale(1.6);
        opacity: 0;
    }
}

/* Card shake when he clicks anywhere else */

.card.shake {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-4px); }
    40%  { transform: translateX(4px); }
    60%  { transform: translateX(-3px); }
    80%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}
