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

html {
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #fee9f7, #e8f5fe, #fef2e8, #f0ffe8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

img, picture, video, canvas { max-width: 100%; }

.romantic-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.9rem;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 50% 42%, #ff94bd 0%, #d54584 40%, #52234e 100%);
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.romantic-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-glow {
    position: absolute;
    width: min(80vw, 32rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.32), transparent 66%);
    filter: blur(6px);
}

.loader-heart {
    position: relative;
    z-index: 1;
    color: #fff3f8;
    font-family: Georgia, serif;
    font-size: clamp(4.5rem, 20vw, 8.5rem);
    line-height: .65;
    filter: drop-shadow(0 0 18px rgba(255,255,255,.75));
    animation: loaderHeartBeat .75s ease-in-out infinite alternate;
}

.loader-count {
    position: relative;
    z-index: 1;
    min-width: 1.25em;
    color: white;
    font: 700 clamp(4rem, 16vw, 7rem)/1 'Arial Rounded MT Bold', Arial, sans-serif;
    text-align: center;
    text-shadow: 0 6px 18px rgba(79, 14, 54, .4);
}

.romantic-loader p {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
    font-size: clamp(.9rem, 3vw, 1.1rem);
    letter-spacing: .06em;
    text-align: center;
}

@keyframes loaderHeartBeat {
    to { transform: scale(1.16); }
}

.cursor {
    width: 20px;
    height: 20px;
    background: pink;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: transform 0.2s;
}

.container {
    width: min(100%, 44rem);
    padding-inline: clamp(0.25rem, 2vw, 1rem);
    text-align: center;
    z-index: 1;
}

h1 {
    font-size: clamp(2.1rem, 8vw, 3.5rem);
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    margin-bottom: clamp(1.25rem, 5vw, 2rem);
    opacity: 0;
    line-height: 1.15;
}

.greeting {
    font-size: clamp(1.05rem, 4.5vw, 1.5rem);
    color: #8a2be2;
    line-height: 1.55;
    margin: 0 auto clamp(1.75rem, 8vw, 3rem);
    max-width: 38rem;
    min-height: 2em;
}

.cta-button {
    width: min(100%, 23rem);
    min-height: 3.25rem;
    padding: 0.85rem 1.25rem;
    font-size: clamp(1rem, 4vw, 1.2rem);
    line-height: 1.25;
    background: linear-gradient(45deg, #ff69b4, #ff99cc);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    touch-action: manipulation;
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.7);
}

.floating {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

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

@media (max-width: 768px) {
    .container {
        padding-inline: 0;
    }
}

@media (hover: none), (pointer: coarse) {
    * {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .cta-button {
        cursor: pointer;
    }
}

@media (max-width: 360px) {
    body {
        justify-content: flex-start;
    }

    .romantic-loader { gap: .65rem; }

    .romantic-loader p { max-width: 20rem; }

    h1 {
        font-size: 2rem;
    }
}
