.heart-splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background:
        radial-gradient(ellipse 85% 65% at 50% 42%, rgba(255, 79, 163, 0.12) 0%, transparent 58%),
        radial-gradient(ellipse at center, #120810 0%, #071018 42%, #030508 100%);
    opacity: 0;
    pointer-events: all;
    overflow: hidden;
    transition: opacity 0.7s ease;
}

.heart-splash-overlay.heart-splash-visible {
    opacity: 1;
}

.heart-splash-overlay.heart-splash-hiding {
    opacity: 0;
    pointer-events: none;
}

.heart-splash-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.heart-splash-welcome {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    margin-top: min(40vh, 260px);
    padding: 0 1.25rem;
}

.heart-splash-welcome.heart-splash-welcome-visible {
    animation: heartSplashWelcomeIn 1.1s ease forwards;
    animation-delay: 1.8s;
}

@keyframes heartSplashWelcomeIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 18px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.heart-splash-brand {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.65rem, 2vw, 0.8rem);
    letter-spacing: 0.38em;
    color: rgba(255, 79, 163, 0.92);
    margin-bottom: 0.65rem;
}

.heart-splash-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5.5vw, 2.75rem);
    color: #fff5fb;
    font-weight: 500;
    margin: 0;
    text-shadow:
        0 0 20px rgba(255, 79, 163, 0.6),
        0 0 44px rgba(194, 24, 91, 0.3);
}

.heart-splash-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(0.85rem, 2.8vw, 1.05rem);
    color: rgba(255, 245, 251, 0.74);
    margin: 0.75rem 0 0;
    letter-spacing: 0.04em;
}

.heart-splash-replay {
    position: absolute;
    bottom: clamp(1.25rem, 4vh, 2.5rem);
    right: clamp(1.25rem, 4vw, 2.5rem);
    z-index: 3;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 79, 163, 0.35);
    border-radius: 50%;
    background: rgba(7, 16, 24, 0.72);
    color: rgba(255, 179, 217, 0.95);
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.5s ease;
}

.heart-splash-replay.heart-splash-replay-visible {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 2.8s;
}

.heart-splash-replay:hover {
    background: rgba(255, 79, 163, 0.18);
    border-color: rgba(255, 79, 163, 0.65);
    transform: scale(1.06);
}

@media (max-width: 480px) {
    .heart-splash-welcome {
        margin-top: min(36vh, 200px);
    }

    .heart-splash-replay {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}
