@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@300;400;600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Utilities */
.text-romantic-shadow {
    text-shadow: 2px 2px 4px rgba(244, 63, 94, 0.2);
}

.neon-text {
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.7), 0 0 20px rgba(244, 63, 94, 0.5);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Navigation Active State */
.nav-btn.active svg {
    fill: currentColor;
    transform: scale(1.1);
}

/* Confetti Helper */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    animation: fall linear forwards;
}

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

/* Game Specific Styles */

/* Memory Game */
.memory-card {
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.memory-front, .memory-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.memory-front {
    background: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid #fda4af;
}

.memory-back {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.memory-back::after {
    content: '❤️';
    font-size: 1.5rem;
    color: white;
}

/* Puzzle Game */
.puzzle-tile {
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}
.puzzle-tile.empty {
    background: transparent;
    cursor: default;
    border: none;
    box-shadow: none;
}

/* Catch Game */
#catch-canvas {
    touch-action: none;
}
