body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffe6ec, #ffd1dc);
    text-align: center;
}

.puzzle-container {
    padding: 40px 20px;
}

.puzzle-title {
    font-size: 32px;
    color: #c2185b;
    margin-bottom: 30px;
}

.puzzle-grid {
    width: 420px;
    height: 420px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
}

.tile {
    background-size: 420px 420px;
    cursor: pointer;
    border: 1px solid white;
}


.love-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.6s ease;
    overflow: hidden;
    z-index: 9999;
}

.love-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.love-text {
    font-size: 60px;
    font-family: 'Great Vibes', cursive;
    color: white;
    text-shadow: 0 0 20px #ff6fa5, 0 0 40px #ff3c7d;
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

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

/* Floating hearts */
.floating-heart {
    position: absolute;
    font-size: 24px;
    animation: floatUp linear infinite;
}

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