/* ==========================================================================
   ENTWINED HEARTS UNIQUE ROMANTIC EFFECTS SECURE SANDBOX
   ========================================================================== */

/* 1. AMBIENT BUTTERFLIES */
.eh-fx-butterfly-net {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9996;
    overflow: hidden;
}

.eh-fx-butterfly {
    position: absolute;
    width: 12px;
    height: 12px;
    will-change: transform;
}

.eh-fx-butterfly::before,
.eh-fx-butterfly::after {
    content: '';
    position: absolute;
    top: 0;
    width: 8px;
    height: 10px;
    border-radius: 50% 50% 20% 40%;
    background: rgba(255, 182, 193, 0.75); /* Soft Rose Pink */
    box-shadow: 0 0 6px rgba(255, 105, 180, 0.5);
    transform-origin: right center;
    animation: eh-fx-flap 0.2s infinite ease-in-out alternate;
}

.eh-fx-butterfly::after {
    left: 8px;
    border-radius: 50% 50% 40% 20%;
    transform-origin: left center;
    animation-name: eh-fx-flap-reverse;
}

/* 2. CLICK SPARKLES */
.eh-fx-sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 20%, rgba(255, 223, 0, 0.9) 80%); /* Gold Sparkle */
    box-shadow: 0 0 8px #ffdf00;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
    animation: eh-fx-spark-out 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 3. ROMANTIC QUOTE BUBBLES */
.eh-fx-bubble-container {
    position: fixed;
    bottom: -60px;
    cursor: pointer;
    z-index: 9997;
    will-change: transform;
    animation: eh-fx-float-up 12s linear forwards;
}

.eh-fx-bubble-body {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 192, 203, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.2), inset 0 0 8px rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.eh-fx-bubble-body:hover {
    transform: scale(1.1);
}

.eh-fx-bubble-body::after {
    content: '✨';
    font-size: 14px;
    opacity: 0.7;
}

/* The Romantic Quote Pop-up */
.eh-fx-quote-pop {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(37, 37, 56, 0.92); /* Matches your dark generator card theme */
    color: #e0def4;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid rgba(203, 166, 247, 0.3); /* Accent Border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    animation: eh-fx-quote-fade 3.5s ease-out forwards;
}

/* ==========================================================================
   ANIMATION KEYFRAMES (Optimized Performance Layer)
   ========================================================================== */
@keyframes eh-fx-flap {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0.1); }
}
@keyframes eh-fx-flap-reverse {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0.1); }
}
@keyframes eh-fx-spark-out {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--mx), var(--my)) scale(0); opacity: 0; }
}
@keyframes eh-fx-float-up {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-50vh) translateX(25px); }
    100% { transform: translateY(-115vh) translateX(-15px); }
}
@keyframes eh-fx-quote-fade {
    0% { opacity: 0; transform: translate(-50%, 10px) scale(0.9); }
    10% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -5px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -15px) scale(0.95); }
}