/* 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 18% 22%, rgba(0, 220, 255, 0.18), transparent 34%),
        radial-gradient(circle at 82% 82%, rgba(255, 104, 0, 0.20), transparent 36%),
        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.16) 280deg,
            transparent 340deg);
    filter: blur(46px);
    opacity: 0.55;
    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.018) 0px,
        rgba(255,255,255,0.018) 1px,
        transparent 1px,
        transparent 7px
    );
    opacity: 0.2;
    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(-8px);
}

.fy-splash-card {
    position: relative;
    width: min(58vw, 238px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 30%;
    overflow: visible;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 230, 255, 0.22), transparent 32%),
        radial-gradient(circle at 84% 88%, rgba(255, 104, 0, 0.25), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 28px 80px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 0 44px rgba(0, 220, 255, 0.10),
        0 0 64px rgba(255, 104, 0, 0.08);
    transform: translateY(10px) scale(0.94);
    opacity: 0;
    animation: fySplashCardIn 760ms cubic-bezier(.2,.8,.2,1) 80ms forwards;
}

.fy-splash-ring {
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    background: conic-gradient(from 245deg,
        rgba(0, 234, 255, 0.10),
        rgba(0, 234, 255, 0.95),
        rgba(255,255,255,0.20),
        rgba(255, 104, 0, 0.92),
        rgba(255, 104, 0, 0.10),
        rgba(0, 234, 255, 0.10));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    filter: drop-shadow(0 0 16px rgba(0, 230, 255, 0.22)) drop-shadow(0 0 18px rgba(255, 104, 0, 0.18));
    animation: fySplashRing 1.8s ease-in-out infinite alternate;
}

.fy-splash-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.02em;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: clamp(58px, 16.5vw, 92px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.06;
    padding: 0 0.12em 0.04em 0.06em;
    overflow: visible;
    transform: translateY(2px);
}

.fy-splash-logo .fy-f {
    color: #f5f7fb;
    text-shadow: 0 2px 18px rgba(255,255,255,0.16);
}

.fy-splash-logo .fy-dot,
.fy-splash-logo .fy-y {
    background: linear-gradient(135deg, #04e8ff 0%, #12d4d0 32%, #f3a31b 62%, #ff6800 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.fy-splash-logo .fy-dot {
    margin-left: 0.08em;
    margin-right: 0.05em;
}

.fy-splash-logo .fy-y {
    padding-right: 0.04em;
}

.fy-splash-tagline {
    margin-top: 22px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(232, 236, 242, 0.74);
    opacity: 0;
    text-shadow: 0 10px 24px rgba(0,0,0,0.35);
    animation: fySplashTagIn 650ms ease 520ms forwards;
}

.fy-splash-bottom {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: max(28px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: lowercase;
    color: rgba(232, 236, 242, 0.68);
    text-shadow: 0 14px 28px rgba(0,0,0,0.4);
    opacity: 0;
    animation: fySplashBottomIn 650ms ease 760ms forwards;
}

@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; }
}

@keyframes fySplashRing {
    from { transform: rotate(-8deg) scale(0.985); opacity: 0.82; }
    to { transform: rotate(10deg) scale(1.015); opacity: 1; }
}

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

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

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