body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Dancing Script', cursive;
}

.bg-image {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('https://images.unsplash.com/photo-1516589178581-6cd7833ae3b2?q=80&w=1920&auto=format&fit=crop'); /* Romantic dark bokeh */
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: slowZoom 30s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Viñeta profesional para oscurecer los bordes y enfocar el centro */
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.heart-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20;
    pointer-events: none; /* Let clicks pass through */
    filter: drop-shadow(0 0 10px rgba(255, 42, 42, 0.6));
}

/* Start screen */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Animated Gradient Background for a premium feel */
    background: linear-gradient(45deg, #0a0505, #1f0707, #080000, #2a0808);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-out, visibility 1.5s;
}

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

.start-content {
    text-align: center;
    color: white;
}

.start-content h2 {
    font-size: 3rem;
    font-weight: normal;
    margin-bottom: 10px;
    opacity: 0.9;
}

.support-text {
    font-size: 1.6rem;
    color: #ffd1d1;
    margin-bottom: 40px;
    font-family: 'Arial', sans-serif;
    font-style: italic;
    opacity: 0.85;
}

#startBtn {
    background: transparent;
    color: #ff4d4d;
    border: 2px solid #ff4d4d;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-family: 'Dancing Script', cursive;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

#startBtn:hover {
    background: #ff4d4d;
    color: white;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.6);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.message {
    color: #fff;
    font-size: 4rem;
    margin: 0;
    /* Degradado de texto elegante */
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 10px rgba(255, 42, 42, 0.5));
    opacity: 0;
    /* Animación se lanza vía clase o en CSS al iniciar */
    animation: fadeIn 3s ease-in-out forwards 0.5s;
}

/* Final screen overlay */
.final-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 4s ease-in, visibility 4s;
    background: rgba(5, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.final-screen.show {
    opacity: 1;
    visibility: visible;
}

.final-content h2 {
    font-size: 3.5rem;
    color: #fff;
    text-align: center;
    line-height: 1.5;
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 15px rgba(255, 42, 42, 0.4));
    animation: pulseFinal 3s infinite alternate;
}

@keyframes pulseFinal {
    0% { transform: scale(1); filter: drop-shadow(0px 0px 10px rgba(255, 42, 42, 0.2)); }
    100% { transform: scale(1.05); filter: drop-shadow(0px 0px 25px rgba(255, 42, 42, 0.8)); }
}

@media (max-width: 768px) {
    .final-content h2 {
        font-size: 2.5rem;
        padding: 0 20px;
    }
    .message {
        font-size: 3.5rem;
        margin-top: -2vh; /* Slight adjustment for mobile */
    }
    .start-content h2 {
        font-size: 2.2rem;
        padding: 0 20px;
    }
    .support-text {
        font-size: 1.2rem;
        padding: 0 20px;
        margin-bottom: 30px;
    }
    #startBtn {
        font-size: 1.2rem;
        padding: 12px 30px;
    }
}



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

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #e50000;
    border-radius: 15px 0px 15px 0px;
    box-shadow: 0 0 10px rgba(229, 0, 0, 0.5);
    z-index: 5;
    opacity: 0.8;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0);
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh) rotate(720deg) translateX(100px);
        opacity: 0;
    }
}
