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

:root {
--primary: #e94560;
--secondary: #ff6b6b;
--accent: #feca57;
--dark: #1a1a2e;
--light: #fff;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='0' y='24' font-size='24'%3E❤️%3C/text%3E%3C/svg%3E") 8 8, auto;
}


         /* Card Container */
        .card-container {
            position: relative;
            width: 100%;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            perspective: 1000px;
        }

        .card {
            position: absolute;
            width: 90%;
            max-width: 500px;
            min-height: 600px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 40px;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .card.active {
            display: flex;
            animation: slideIn 0.6s ease;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(50px) scale(0.9); }
            to { opacity: 1; transform: translateX(0) scale(1); }
        }

        .card.exit {
            animation: slideOut 0.6s ease forwards;
        }

        @keyframes slideOut {
            to { opacity: 0; transform: translateX(-50px) scale(0.9); }
        }

        /* Key Animations - DEFINED EARLY */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes flash {
            0%, 100% { filter: brightness(1); }
            50% { filter: brightness(2) hue-rotate(30deg); }
        }

        @keyframes floatUp {
            to { transform: translateY(-50px) scale(1.5); opacity: 0; }
        }

        /* Typography */
        h1 { font-family: 'Dancing Script', cursive; font-size: 3rem; margin-bottom: 20px; }
        h2 { font-size: 1.8rem; margin-bottom: 15px; font-weight: 600; }
        p { font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,0.8); }

        /* Buttons */
        .btn {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            margin: 10px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
        }

        .btn:active {
            transform: scale(0.95);
        }

        /* Card 1 - Typewriter */
        .typewriter {
            overflow: hidden;
            border-right: 3px solid var(--primary);
            white-space: nowrap;
            animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
            max-width: 100%;
        }

        @keyframes typing {
            from { width: 0 }
            to { width: 100% }
        }

        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: var(--primary); }
        }

        .heartbeat {
            animation: heartbeat 1.5s ease-in-out infinite;
        }

        @keyframes heartbeat {
            0%, 100% { transform: scale(1); }
            25% { transform: scale(1.1); }
            50% { transform: scale(1); }
            75% { transform: scale(1.05); }
        }
        

        /* Card 2 - Runaway Button */
        .runaway {
            position: relative;
            transition: all 0.1s ease;
        }

        /* Card 3 - Shake */
        .shake:hover {
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        /* Card 4 - Glow */
        .glow-select {
            transition: all 0.3s ease;
        }

        .glow-select.selected {
            box-shadow: 0 0 30px var(--primary), inset 0 0 20px rgba(233, 69, 96, 0.3);
            border-color: var(--primary);
        }

        /* Card 5 - Expanding Input */
        .expanding-input {
            background: rgba(255,255,255,0.1);
            border: 2px solid rgba(255,255,255,0.2);
            color: white;
            padding: 15px;
            border-radius: 15px;
            width: 200px;
            transition: all 0.4s ease;
            font-size: 1rem;
            margin: 20px 0;
        }

        .expanding-input:focus {
            width: 300px;
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
        }

        /* Card 6 specific */
        .correct-btn {
            position: relative;
        }

        .btn:disabled {
            cursor: not-allowed;
        }

        .response-text {
            margin-top: 20px;
            font-size: 1.2rem;
            color: var(--accent);
            opacity: 0;
            transition: opacity 0.5s;
        }

        .response-text.show { 
            opacity: 1; 
        }

        /* Card 7 - Sparkle */
        .sparkle {
            position: relative;
            overflow: visible;
        }

        .sparkle::before,
        .sparkle::after {
            content: '✨';
            position: absolute;
            opacity: 0;
            animation: sparkle 1s ease-in-out infinite;
        }

        .sparkle::before { top: -10px; left: -10px; animation-delay: 0s; }
        .sparkle::after { bottom: -10px; right: -10px; animation-delay: 0.5s; }

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

        /* Card 8 - Fast Heartbeat */
        .fast-heartbeat:hover {
            animation: heartbeat 0.8s ease-in-out infinite;
        }

        /* Card 9 - Merge */
        .merge-container {
            position: relative;
            height: 100px;
            width: 150%;    
        }

        .merge-btn {
            position: absolute;
            transition: all 0.8s ease;
        }

        .merge-btn.left { left: 20%; }
        .merge-btn.right { right: 20%; }

        .merged {
            left: 50% !important;
            right: auto !important;
            transform: translateX(-50%) scale(1.2) !important;
            background: var(--primary) !important;
        }

        /* Card 10 - Slider */
.slider-container {
    width: 100%;
    margin: 50px 0 30px;
    position: relative;
}

.love-slider {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.2);
    outline: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 2;
}

.love-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 20px var(--primary);
}

.love-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 20px var(--primary);
    border: none;
}

.hearts-bar {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    width: 100%;
    opacity: 0.8;
    z-index: 1;
}

.tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    z-index: 3;
}

.tooltip.show { 
    opacity: 1; 
}

.hearts-display {
    margin-top: 20px;
    font-size: 1.5rem;
    letter-spacing: 5px;
}

        /* Card 11 - Emoji Float */
        .emoji-btn {
            font-size: 3rem;
            background: none;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0 10px;
            filter: grayscale(0.3);
        }

        .emoji-btn:hover {
            transform: scale(1.3);
            filter: grayscale(0);
        }

        .emoji-btn.selected {
            animation: floatUp 1s ease forwards;
        }

        /* Card 12 - Tilt */
        .tilt-left { transform: rotate(-3deg); }
        .tilt-right { transform: rotate(3deg); }

        /* Card 13 - Custom Cursor */
        .heart-cursor {
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="20" font-size="20">❤️</text></svg>') 12 12, auto;
        }

        .word-fade span {
            opacity: 0;
            animation: fadeInWord 0.5s ease forwards;
        }

        @keyframes fadeInWord {
            to { opacity: 1; }
        }

        /* Card 15 - Breathing */
        .breathing-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, rgba(233, 69, 96, 0.3), transparent);
            animation: breathe 4s ease-in-out infinite;
            z-index: -1;
            border-radius: 30px;
        }

        @keyframes breathe {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }

        /* Card 16 - Tiles */
        .tiles-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            width: 100%;
            margin-top: 20px;
        }

        .tile {
            background: rgba(255,255,255,0.1);
            padding: 30px;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .tile:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            border-color: var(--primary);
        }

        /* Card 17 - Glowing Text */
        .glow-text {
            background: rgba(255,255,255,0.1);
            border: 2px solid rgba(255,255,255,0.2);
            color: white;
            padding: 20px;
            border-radius: 15px;
            width: 100%;
            min-height: 100px;
            font-size: 1rem;
            transition: all 0.3s ease;
            resize: none;
        }

        .glow-text:focus {
            outline: none;
            box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
            border-color: var(--primary);
        }

        /* Card 18 - Progress */
        .progress-container {
            width: 100%;
            height: 10px;
            background: rgba(255,255,255,0.2);
            border-radius: 5px;
            overflow: hidden;
            margin: 30px 0;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            width: 0%;
            transition: width 2s ease;
        }

        /* Card 19 - Big Yes */
        .big-yes {
            font-size: 1.5rem;
            padding: 20px 60px;
            animation: pulse-glow 2s ease-in-out infinite;
        }

        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 20px rgba(233, 69, 96, 0.5); }
            50% { box-shadow: 0 0 40px rgba(233, 69, 96, 0.8), 0 0 60px rgba(233, 69, 96, 0.4); }
        }

        .escaping {
            position: relative;
            transition: all 0.3s ease;
        }

        /* Card 20 - Final */
        .final-text {
            font-family: 'Dancing Script', cursive;
            font-size: 2.5rem;
            line-height: 1.4;
        }

        .line-reveal {
            opacity: 0;
            transform: translateY(20px);
            animation: revealLine 1s ease forwards;
        }

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

        /* Confetti */
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            background: var(--primary);
            position: absolute;
            animation: confetti-fall 3s ease-out forwards;
        }

        @keyframes confetti-fall {
            to {
                transform: translateY(100vh) rotate(720deg);
                opacity: 0;
            }
        }

        /* Heart Pop */
        .heart-pop {
            position: absolute;
            font-size: 2rem;
            animation: pop 1s ease-out forwards;
            pointer-events: none;
        }

        @keyframes pop {
            0% { transform: scale(0) translateY(0); opacity: 1; }
            100% { transform: scale(1.5) translateY(-100px); opacity: 0; }
        }

        /* Utility */
        .hidden { display: none !important; }
        
        .response-text {
            margin-top: 20px;
            font-size: 1.2rem;
            color: var(--accent);
            opacity: 0;
            transition: opacity 0.5s;
        }

        .response-text.show { opacity: 1; }

        /* Progress Indicator */
        .progress-indicator {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 100;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            transition: all 0.3s;
        }

        .dot.active {
            background: var(--primary);
            transform: scale(1.3);
        }

        .dot.completed {
            background: var(--secondary);
        }

        /* Navigation */
        .nav-hint {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255,255,255,0.5);
            font-size: 0.9rem;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-10px); }
        }

        /* Delayed fade utilities */
        .delay-1 { animation-delay: 1s; }
        .delay-2 { animation-delay: 2s; }
        .delay-3 { animation-delay: 3s; }
        .delay-4 { animation-delay: 4s; }

        /* ===== FULLSCREEN PHOTO COLLAGE ===== */
.photo-collage-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.photo-collage-fullscreen.active {
    display: block;
    animation: fadeIn 1s ease;
}

.collage-photos-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.collage-photo {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.15);
    opacity: 0;
    transform: scale(0) rotate(0deg);
    transition: all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.collage-photo:hover {
    z-index: 1000 !important;
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border-color: rgba(233, 69, 96, 0.5);
}

.collage-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.collage-photo.show {
    opacity: 1;
    transform: scale(1) var(--final-transform);
}

/* Different entrance animations */
@keyframes flyFromLeft {
    0% { transform: translateX(-100vw) rotate(-30deg) scale(0.5); opacity: 0; }
    100% { transform: var(--final-transform); opacity: 1; }
}

@keyframes flyFromRight {
    0% { transform: translateX(100vw) rotate(30deg) scale(0.5); opacity: 0; }
    100% { transform: var(--final-transform); opacity: 1; }
}

@keyframes flyFromTop {
    0% { transform: translateY(-100vh) rotate(20deg) scale(0.5); opacity: 0; }
    100% { transform: var(--final-transform); opacity: 1; }
}

@keyframes flyFromBottom {
    0% { transform: translateY(100vh) rotate(-20deg) scale(0.5); opacity: 0; }
    100% { transform: var(--final-transform); opacity: 1; }
}

@keyframes flyFromCorner {
    0% { transform: translate(100vw, -100vh) rotate(45deg) scale(0.3); opacity: 0; }
    100% { transform: var(--final-transform); opacity: 1; }
}

@keyframes flyFromCorner2 {
    0% { transform: translate(-100vw, 100vh) rotate(-45deg) scale(0.3); opacity: 0; }
    100% { transform: var(--final-transform); opacity: 1; }
}

.collage-overlay {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2000;
    opacity: 0;
    animation: fadeInUp 1s ease 8s forwards;
    pointer-events: none;
}

.collage-overlay > * {
    pointer-events: auto;
}

.collage-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 40px rgba(233, 69, 96, 0.3);
}

.collage-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.collage-restart {
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid rgba(255,255,255,0.3);
    font-size: 1rem !important;
    padding: 12px 30px !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Floating particles */
.collage-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
    animation: particleFloat 10s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-100px) translateX(50px); opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    .collage-title {
        font-size: 2.5rem;
    }
    .collage-subtitle {
        font-size: 1rem;
    }
}