body[loading] {
    background: #fff;
}

body:not([ready]) container,
body:not([ready]) footer {
    visibility: hidden;
}

.app-splash {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .32s ease, visibility .32s ease;
}

body:not([loading]) .app-splash {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-splash-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
}

.app-splash-logo::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 79, 232, .14) 0%, rgba(91, 79, 232, 0) 72%);
    animation: splash-glow 1.6s ease-in-out infinite;
}

.app-splash-logo img {
    position: relative;
    width: 72px;
    height: 72px;
    object-fit: contain;
    animation: splash-logo 1.6s ease-in-out infinite;
}

@keyframes splash-logo {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(.94);
        opacity: .68;
    }
}

@keyframes splash-glow {
    0%, 100% {
        transform: scale(.92);
        opacity: .55;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (max-width: 520px) {
    body {
        display: block;
        background: var(--bg);
    }

    body[loading] {
        background: #fff;
    }

    .phone-shell {
        width: 100vw;
        height: calc(var(--vh) * 100);
        box-shadow: none;
    }
}
body.admin-preview {
    overflow: auto;
    background: #e8edf6;
}

body.admin-preview .app-splash {
    display: none;
}

body.admin-preview .phone-shell {
    width: 100%;
    min-height: 100vh;
    height: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

body.admin-preview member-card {
    min-height: 100vh;
}
