.mh-opening-splash {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #760016;
    color: #fef1ea;
    opacity: 1;
    transition: opacity 480ms ease, visibility 480ms ease;
}

.mh-opening-pending,
.mh-opening-pending body {
    overflow: hidden;
}

.mh-opening-pending .mh-opening-splash {
    display: grid;
}

.mh-opening-splash::before,
.mh-opening-splash::after {
    position: absolute;
    width: min(30vw, 420px);
    height: 1px;
    background: rgba(254, 241, 234, 0.3);
    content: "";
    transform: scaleX(0);
    animation: mh-opening-line 900ms 300ms ease forwards;
}

.mh-opening-splash::before {
    top: 50%;
    right: calc(50% + 145px);
    transform-origin: right center;
}

.mh-opening-splash::after {
    top: 50%;
    left: calc(50% + 145px);
    transform-origin: left center;
}

.mh-opening-splash__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(420px, calc(100vw - 56px));
    text-align: center;
}

.mh-opening-splash__line {
    width: 1px;
    height: clamp(42px, 7vh, 76px);
    margin-bottom: 28px;
    background: rgba(254, 241, 234, 0.7);
    transform: scaleY(0);
    transform-origin: top;
    animation: mh-opening-vertical 600ms 100ms ease forwards;
}

.mh-opening-splash__logo {
    width: clamp(148px, 12vw, 196px);
    height: auto;
    opacity: 0;
    transform: scale(0.72);
    animation: mh-opening-logo 700ms 380ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mh-opening-splash__slogan {
    margin: 22px 0 0;
    color: rgba(254, 241, 234, 0.82);
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(8px);
    animation: mh-opening-copy 500ms 850ms ease forwards;
}

.mh-opening-splash__progress {
    width: 96px;
    height: 1px;
    margin-top: 34px;
    overflow: hidden;
    background: rgba(254, 241, 234, 0.22);
    opacity: 0;
    animation: mh-opening-copy 300ms 950ms ease forwards;
}

.mh-opening-splash__progress i {
    display: block;
    width: 100%;
    height: 100%;
    background: #fef1ea;
    transform: scaleX(0);
    transform-origin: left center;
    animation: mh-opening-progress 1450ms 950ms linear forwards;
}

.mh-opening-splash__skip {
    position: absolute;
    right: max(28px, env(safe-area-inset-right));
    bottom: max(26px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid rgba(254, 241, 234, 0.45);
    border-radius: 0;
    background: transparent;
    color: #fef1ea;
    cursor: pointer;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    opacity: 0;
    animation: mh-opening-copy 400ms 900ms ease forwards;
}

.mh-opening-splash__skip:hover,
.mh-opening-splash__skip:focus-visible {
    border-bottom-color: #fef1ea;
}

.mh-opening-splash__skip:focus-visible {
    outline: 2px solid #fef1ea;
    outline-offset: 5px;
}

.mh-opening-splash.is-closing {
    visibility: hidden;
    opacity: 0;
}

@keyframes mh-opening-logo {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes mh-opening-copy {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mh-opening-line {
    to {
        transform: scaleX(1);
    }
}

@keyframes mh-opening-vertical {
    to {
        transform: scaleY(1);
    }
}

@keyframes mh-opening-progress {
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 767px) {
    .mh-opening-splash::before,
    .mh-opening-splash::after {
        width: calc(50vw - 112px);
    }

    .mh-opening-splash::before {
        right: calc(50% + 96px);
    }

    .mh-opening-splash::after {
        left: calc(50% + 96px);
    }

    .mh-opening-splash__logo {
        width: 148px;
    }

    .mh-opening-splash__skip {
        right: max(22px, env(safe-area-inset-right));
        bottom: max(22px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-opening-splash {
        display: none !important;
    }
}
