html,
body,
#app {
    width: 100%;
    height: 100%;
    margin: 0;
    touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html:has(.mobile-loading),
body:has(.mobile-loading),
#app:has(.mobile-loading) {
    overflow: hidden;
    overscroll-behavior: none;
}

.mobile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
    color: #557cf0;
    background: #ffffff;
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
        sans-serif;
}

.mobile-loading__phone {
    position: relative;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 1px solid rgb(85 124 240 / 12%);
    border-radius: 50%;
    background: #e8efff;
    box-shadow:
        0 18px 38px rgb(85 124 240 / 12%),
        inset 0 1px 0 rgb(255 255 255 / 90%);
    animation: mobile-loading-card 1.8s infinite ease-in-out;
}

.mobile-loading__phone::before {
    position: absolute;
    top: 30px;
    left: 26px;
    width: 46px;
    height: 34px;
    content: '';
    border: 4px solid transparent;
    border-top-color: #557cf0;
    border-right-color: #557cf0;
    border-radius: 50%;
    transform: rotate(-18deg);
}

.mobile-loading__phone::after {
    position: absolute;
    right: 23px;
    bottom: 25px;
    width: 14px;
    height: 14px;
    content: '';
    background: #557cf0;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgb(85 124 240 / 25%);
}

.mobile-loading__phone span {
    position: absolute;
    width: 13px;
    height: 13px;
    background: #557cf0;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgb(85 124 240 / 22%);
    animation: mobile-loading-pulse 1.2s infinite ease-in-out;
}

.mobile-loading__phone span:nth-child(1) {
    top: 26px;
    left: 22px;
}

.mobile-loading__phone span:nth-child(2) {
    top: 40px;
    left: 47px;
    background: #8da8ff;
    animation-delay: 0.16s;
}

.mobile-loading__phone span:nth-child(3) {
    right: 22px;
    bottom: 24px;
    background: #557cf0;
    animation-delay: 0.32s;
}

.mobile-loading p {
    margin: 22px 0 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.mobile-loading p::after {
    display: inline-block;
    width: 18px;
    overflow: hidden;
    vertical-align: bottom;
    content: '...';
    animation: mobile-loading-text 1.2s steps(4, end) infinite;
}

@keyframes mobile-loading-card {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.015);
    }
}

@keyframes mobile-loading-pulse {
    0%,
    100% {
        transform: scale(0.86);
        opacity: 0.66;
    }

    45% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes mobile-loading-text {
    0% {
        width: 0;
    }

    100% {
        width: 18px;
    }
}
