/* Fan.Yard Splash Screen */
.fy-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 220, 255, 0.22), transparent 32%),
        radial-gradient(circle at 92% 96%, rgba(255, 104, 0, 0.26), transparent 38%),
        linear-gradient(145deg, #05070c 0%, #090d16 50%, #020309 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 520ms ease, visibility 520ms ease;
    pointer-events: auto;
}

.fy-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fy-splash::before {
    content: '';
    position: absolute;
    inset: -24%;
    background:
        conic-gradient(from 220deg at 50% 50%,
            transparent 0deg,
            rgba(0, 230, 255, 0.18) 42deg,
            transparent 86deg,
            transparent 210deg,
            rgba(255, 104, 0, 0.18) 280deg,
            transparent 340deg);
    filter: blur(46px);
    opacity: 0.56;
    animation: fySplashAurora 2.6s ease-in-out infinite alternate;
}

.fy-splash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.016) 0px,
        rgba(255,255,255,0.016) 1px,
        transparent 1px,
        transparent 7px
    );
    opacity: 0.16;
    mix-blend-mode: screen;
    pointer-events: none;
}

.fy-splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-7vh);
}

.fy-splash-card {
    position: relative;
    width: min(72vw, 340px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 30%;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow:
        0 30px 90px rgba(0,0,0,0.38),
        0 0 48px rgba(0, 220, 255, 0.12),
        0 0 76px rgba(255, 104, 0, 0.12);
    transform: translateY(10px) scale(0.94);
    opacity: 0;
    animation: fySplashCardIn 760ms cubic-bezier(.2,.8,.2,1) 80ms forwards;
}

.fy-splash-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: url('./assets/favicons/android-chrome-512x512.png') center / contain no-repeat;
    filter:
        drop-shadow(0 26px 58px rgba(0,0,0,0.42))
        drop-shadow(-10px -10px 30px rgba(0, 220, 255, 0.12))
        drop-shadow(14px 18px 38px rgba(255, 104, 0, 0.12));
}

.fy-splash-ring,
.fy-splash-logo,
.fy-splash-tagline,
.fy-splash-bottom {
    display: none !important;
}

@keyframes fySplashAurora {
    from { transform: rotate(-4deg) scale(1); opacity: 0.42; }
    to { transform: rotate(7deg) scale(1.08); opacity: 0.70; }
}

@keyframes fySplashCardIn {
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 420px) {
    .fy-splash-content {
        transform: translateY(-6vh);
    }
    .fy-splash-card {
        width: min(76vw, 300px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fy-splash,
    .fy-splash::before,
    .fy-splash-card {
        animation: none !important;
        transition: opacity 180ms ease, visibility 180ms ease;
    }
    .fy-splash-card { opacity: 1; transform: none; }
}
