/* Make Local Friends splash screen */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    overflow: hidden;
    color: #b72e4b;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.38), transparent 34%),
        radial-gradient(circle at 12% 100%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(135deg, #f4b9c6 0%, #f8ccd4 48%, #f4c0cc 100%);
    transition: opacity 0.5s ease;
}

.loading-overlay::before {
    position: absolute;
    inset: -20%;
    content: '';
    pointer-events: none;
    opacity: 0.22;
    background-image: radial-gradient(rgba(255, 255, 255, 0.48) 0.7px, transparent 0.7px);
    background-size: 7px 7px;
    transform: rotate(-8deg);
}

.loading-container {
    position: relative;
    z-index: 1;
    width: min(96vw, 520px);
    padding: 28px 10px 34px;
    text-align: center;
}

.loading-heart-loader {
    width: min(76vw, 310px);
    height: 418px;
    margin: -4em auto 25px;
    display: grid;
    justify-items: center;
    align-content: start;
}

.loading-characters {
    display: block;
    width: min(76vw, 310px);
    height: auto;
    object-fit: contain;
}

.loading-heart-ring {
    position: relative;
    width: 102px;
    height: 102px;
    margin-top: -3px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 22px rgba(170, 55, 82, 0.1);
}

.loading-heart-ring::before {
    position: absolute;
    inset: -2px;
    content: '';
    border: 2px solid transparent;
    border-top-color: #e93f60;
    border-right-color: #e93f60;
    border-radius: 50%;
    animation: loading-ring-rotate 1.8s linear infinite;
}

.loading-heart-ring::after {
    position: absolute;
    inset: 8px;
    content: '';
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
}

.loading-heart {
    position: relative;
    z-index: 1;
    color: #ed1f3d;
    font-size: 34px;
    line-height: 1;
    text-shadow: 0 2px 7px rgba(183, 46, 75, 0.18);
    animation: loading-heart-blink 1.2s ease-in-out infinite;
}

.loading-status {
    margin-bottom: 15px;
    color: #b72e4b;
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 400;
    letter-spacing: 0.03em;
}

.loading-brand {
    margin-bottom: 10px;
    color: #cf3049;
    font-size: clamp(34px, 9.5vw, 46px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
}

.loading-tagline {
    color: #b72e4b;
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

@media (min-width: 400px) {
    .loading-tagline { white-space: nowrap; }
}

@keyframes loading-ring-rotate {
    to { transform: rotate(360deg); }
}

@keyframes loading-heart-blink {
    0%, 100% { opacity: 0.56; }
    50% { opacity: 1; }
}

@media (max-width: 380px) {
    .loading-container { padding-inline: 8px; }
    .loading-heart-loader { width: 280px; height: 377px; margin: -3.5em auto 21px; }
    .loading-characters { width: 280px; }
    .loading-heart-ring { transform: scale(0.9); transform-origin: top center; }
    .loading-status { margin-bottom: 12px; font-size: 13px; }
    .loading-brand { font-size: 32px; }
    .loading-tagline { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .loading-heart-ring::before,
    .loading-heart {
        animation: none;
    }
}
