html.app-splash-active,
html.app-splash-active body {
    overflow: hidden;
}

.app-launch-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 38%),
        linear-gradient(155deg, var(--primary-dark), color-mix(in srgb, var(--primary) 58%, var(--primary-dark)));
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 280ms ease, visibility 0s linear 280ms;
}

.app-launch-splash.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 220ms ease;
}

.app-launch-splash.is-leaving {
    opacity: 0;
    pointer-events: none;
}

.app-launch-splash__glow {
    position: absolute;
    width: min(78vw, 520px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    box-shadow:
        0 0 0 54px rgba(255, 255, 255, .025),
        0 0 0 108px rgba(255, 255, 255, .018);
    animation: app-splash-breathe 2.4s ease-in-out infinite;
}

.app-launch-splash__content {
    position: relative;
    display: grid;
    justify-items: center;
    width: min(100%, 360px);
    text-align: center;
}

.app-launch-splash__logo-wrap {
    display: grid;
    place-items: center;
    width: clamp(132px, 35vw, 178px);
    aspect-ratio: 1;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 34px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
    animation: app-splash-arrive 600ms cubic-bezier(.2, .8, .2, 1) both;
}

.app-launch-splash__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-launch-splash__initial {
    color: var(--primary);
    font-size: clamp(3rem, 14vw, 5.25rem);
    font-weight: 900;
    letter-spacing: -.06em;
}

.app-launch-splash__club {
    max-width: 100%;
    font-size: clamp(1.35rem, 5vw, 1.9rem);
    line-height: 1.15;
    text-wrap: balance;
}

.app-launch-splash__powered-label {
    margin-top: 16px;
    color: rgba(255, 255, 255, .78);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.app-launch-splash__bluca-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    color: #fff;
}

.app-launch-splash__bluca-logo svg {
    width: 24px;
    height: 40px;
    flex: 0 0 auto;
}

.app-launch-splash__bluca-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.085em;
}

.app-launch-splash__bluca-u {
    background: linear-gradient(145deg, #2563eb, #38bdf8);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.app-launch-splash__loader {
    width: min(190px, 56vw);
    height: 3px;
    margin-top: 36px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.app-launch-splash__loader i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
    animation: app-splash-progress var(--app-splash-progress-duration, 2.82s) ease-out 60ms forwards;
}

@keyframes app-splash-arrive {
    from { opacity: 0; transform: translateY(14px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes app-splash-progress {
    to { transform: scaleX(1); }
}

@keyframes app-splash-breathe {
    50% { transform: scale(1.035); opacity: .72; }
}

@media (prefers-reduced-motion: reduce) {
    .app-launch-splash,
    .app-launch-splash__glow,
    .app-launch-splash__logo-wrap,
    .app-launch-splash__loader i {
        animation: none;
        transition: none;
    }

    .app-launch-splash__loader i { transform: scaleX(1); }
}
