* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Georgia', serif;
            background: linear-gradient(-45deg, #667eea, #764ba2, #ff758c, #ff7eb3);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow-x: hidden;
            position: relative;
        }

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

        .video-background {
            position: relative;
            width: 100%;
            height: 80px;
            margin-top: 30px;
            z-index: 1;
            overflow: hidden;
            opacity: 1;
            pointer-events: auto;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .video-background audio {
            width: 95%;
            pointer-events: auto;
            border-radius: 15px;
        }

        .heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff69b4;
    transform: rotate(45deg);
    animation: float 6s ease-in-out;
    opacity: 0;
    border-radius: 2px; /* softens the square edges */
    pointer-events: none;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff69b4;
    border-radius: 50%;
}

.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    left: -10px; /* THIS was wrong before */
    top: 0;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(45deg);
        opacity: 0;
    }
    20% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) rotate(45deg);
        opacity: 0;
    }
}


        .container {
            background: rgba(255, 255, 255, 0.95);
            padding: 60px 50px;
            border-radius: 30px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 700px;
            text-align: center;
            position: relative;
            z-index: 10;
            backdrop-filter: blur(10px);
        }

        .big-heart {
            font-size: 80px;
            color: #ff1744;
            animation: pulse 1.5s ease-in-out infinite;
            margin-bottom: 20px;
        }

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

        h1 {
            color: #ff1744;
            font-size: 48px;
            margin-bottom: 30px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .message {
            color: #333;
            font-size: 20px;
            line-height: 1.8;
            margin-bottom: 30px;
            text-align: left;
        }

        .signature {
            font-size: 24px;
            font-style: italic;
            color: #ff1744;
            margin-top: 40px;
        }

        .hearts-row {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 30px 0;
            font-size: 30px;
        }

        .corner-heart {
            position: absolute;
            font-size: 40px;
            color: #ff1744;
            opacity: 0.6;
            pointer-events: none;
        }

        .corner-heart.top-left { top: 20px; left: 20px; }
        .corner-heart.top-right { top: 20px; right: 20px; }
        .corner-heart.bottom-left { bottom: 20px; left: 20px; }
        .corner-heart.bottom-right { bottom: 20px; right: 20px; }

        .instruction {
            color: #666;
            margin-bottom: 20px;
            font-size: 18px;
        }

        #card-stack {
            position: relative;
            width: 300px;
            height: 450px;
            margin: 0 auto 30px;
        }

        .card {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            cursor: grab;
            transform-origin: 50% 100%;
            user-select: none;
            -webkit-user-select: none;
        }

        .card img {
            width: 100%;
            height: 65%;
            object-fit: cover;
            pointer-events: none;
        }

        .card-content {
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 35%;
            text-align: center;
            font-size: 18px;
            color: #444;
            line-height: 1.4;
        }

        .love-btn {
            background: #ff1744;
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 18px;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(255, 23, 68, 0.4);
            transition: transform 0.2s;
            position: relative;
            z-index: 20;
        }

        .love-btn:hover {
            transform: scale(1.1);
        }

        .love-btn.pulse {
            animation: buttonPulse 2s infinite;
        }

        @keyframes buttonPulse {
            0% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 23, 68, 0.4); }
            50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(255, 23, 68, 0.8); }
            100% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 23, 68, 0.4); }
        }

        .love-meter-container {
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .meter-heart {
            width: 80px;
            height: 80px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
            animation: pulse var(--pulse-duration, 2s) infinite;
        }

        #click-display {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 18px;
            font-weight: bold;
            color: white;
            text-shadow: 0 1px 3px rgba(0,0,0,0.6);
            pointer-events: none;
            line-height: 1;
        }

        .meter-heart.shake {
            animation: shake 0.4s ease-in-out;
        }

        @keyframes shake {
            0% { transform: scale(1) rotate(0deg); }
            25% { transform: scale(1.1) rotate(-5deg); }
            50% { transform: scale(1.1) rotate(5deg); }
            75% { transform: scale(1.1) rotate(-5deg); }
            100% { transform: scale(1) rotate(0deg); }
        }