html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    background: #0f0f12;
}

.page-hidden {
    display: none !important;
}

.page-loading {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1a1a22 0%, #0f0f14 50%, #121018 100%);
    opacity: 1;
    transition: opacity 0.38s ease, visibility 0.38s ease;
    visibility: visible;
}

.page-loading.page-loading--out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loading-inner {
    text-align: center;
    padding: 24px;
}

.page-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 107, 157, 0.95);
    border-radius: 50%;
    animation: entry-spin 0.85s linear infinite;
}

.page-loading-text {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
}

.page-loading-hint {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
}

@keyframes entry-spin {
    to {
        transform: rotate(360deg);
    }
}

.page-error {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    box-sizing: border-box;
    background: #121218;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}
