:root {
    /* Color Palette */
    --primary-pink: #E963A7;
    --soft-pink: #F0A6C5;
    --light-pink: #EACDDB;
    --ice-blue: #D1DCE0;
    --sky-blue: #9DB8D6;
    
    /* Text Colors */
    --text-dark: #6B344F;
    --text-soft: #8B5E74;
    
    /* Layout */
    --card-bg: rgba(234, 205, 219, 0.6); /* #EACDDB with transparency */
    --border-radius: 2rem;
    --transition: all 0.3s ease;
    --sparkle-color: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' style='font-size:18px'><text y='18'>❤️</text></svg>") 12 12, auto;
}

/* Dynamic Gradient Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, 
        var(--primary-pink), 
        var(--soft-pink), 
        var(--light-pink), 
        var(--ice-blue), 
        var(--sky-blue)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background Hearts */
.background-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(233, 99, 167, 0.15);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    margin-bottom: 1rem;
}

.emoji-heart {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.content {
    margin-bottom: 1.5rem;
}

#quote-text {
    font-size: 1.1rem;
    color: var(--text-soft);
}

.footer {
    display: flex;
    justify-content: center;
}

.btn {
    border: none;
    background: white;
    color: var(--primary-pink);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 99, 167, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn:hover, .btn:active {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 99, 167, 0.3);
}

.heart-counter {
    font-size: 0.9rem;
    color: white;
    background: rgba(233, 99, 167, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Floating Heart & Sparkle Styles */
.floating-heart, .floating-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    user-select: none;
}

.floating-heart {
    font-size: 1.5rem;
    animation: floatUp 2s ease-out forwards;
}

.floating-sparkle {
    font-size: 1rem;
    color: var(--sparkle-color);
    animation: sparkleAnim 1.5s ease-out forwards;
}

@keyframes sparkleAnim {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y))) scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(calc(-50% + var(--drift-x) * 1.5), calc(-50% + var(--drift-y) * 1.5)) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatUp {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--drift, 0px)), -150px) scale(1.5) rotate(20deg);
        opacity: 0;
    }
}

/* Media Queries for Desktop */
@media (min-width: 481px) {
    .container {
        max-width: 600px;
    }
    
    .card {
        padding: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}
