/*
 * Wanli player login presentation bridge.
 * Desktop geometry is the authorized 1920x1080 source scene. Authentication,
 * agreement, player context, and navigation remain owned by web/login.html.
 */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #000;
}

.html-shell__field-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.html-shell__lang-button.is-active {
    filter: brightness(1.08) drop-shadow(0 0 5px rgba(246, 211, 133, 0.45));
}

.html-shell__agent-label--mobile {
    display: none;
}

.html-shell__verification {
    position: relative;
    box-sizing: border-box;
    display: block;
    width: 300px;
    height: 65px;
    min-height: 65px;
    padding: 0;
    overflow: visible;
    color: #f7e3ad;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 0;
    clip-path: none;
    background: url("../assets/login/verification-desktop.svg") center / 100% 100% no-repeat;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    filter: none;
}

.html-shell__verification::before,
.html-shell__verification::after {
    display: none;
    content: none;
}

.html-shell__verification-check {
    position: absolute;
    left: 19px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    overflow: visible;
    color: #ffe19a;
    font-size: 0;
    line-height: 0;
    text-shadow: 0 0 8px rgba(246, 220, 149, 0.25);
}

.html-shell__verification-check::before {
    content: "";
    display: block;
    width: 9px;
    height: 16px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    border-radius: 1px;
    transform: rotate(42deg) translate(-1px, -2px);
    transform-origin: center;
    filter: drop-shadow(0 0 5px rgba(255, 225, 154, 0.28));
}

.html-shell__verification-title {
    position: absolute;
    left: 52px;
    top: 19px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 0;
    overflow: hidden;
    color: #f7e3ad;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.55px;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.html-shell__verification-shield {
    display: none;
}

.html-shell__verification.is-pending .html-shell__verification-check::before {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(242, 212, 129, 0.18);
    border-top-color: #f2d481;
    border-radius: 50%;
    transform: none;
    filter: none;
    animation: wanli-login-verification-spin 900ms linear infinite;
}

.html-shell__verification.is-error .html-shell__verification-check::before {
    content: "!";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    color: #ff9a6a;
    font-size: 18px;
    font-weight: 800;
    transform: none;
    filter: none;
}

@keyframes wanli-login-verification-spin {
    to { transform: rotate(360deg); }
}

/* Authorized desktop source scene: fixed 1920x1080 canvas, contain-centered. */
.html-shell--desktop-shell {
    position: fixed;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.html-shell--desktop-shell::before,
.html-shell--desktop-shell::after {
    display: none;
    content: none;
}

.html-shell--desktop-shell .html-shell__desktop-login-stage {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: 1920px;
    height: 1080px;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(var(--wanli-login-stage-scale, 1));
    transform-origin: 50% 50%;
    background: #001d17;
}

.html-shell--desktop-shell .html-shell__desktop-login-scene {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.html-shell--desktop-shell .html-shell__desktop-login-hero-clip,
.html-shell--desktop-shell .html-shell__desktop-login-seam-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.html-shell--desktop-shell .html-shell__desktop-login-hero-clip {
    clip-path: inset(0 618px 0 0);
}

.html-shell--desktop-shell .html-shell__desktop-login-seam-clip {
    clip-path: inset(0 604px 0 1292px);
}

.html-shell--desktop-shell .html-shell__desktop-login-hero-pan,
.html-shell--desktop-shell .html-shell__desktop-login-seam-pan {
    position: absolute;
    inset: 0;
    animation: wanli-login-desktop-hero-pan 52s ease-in-out infinite;
    will-change: transform;
}

.html-shell--desktop-shell .html-shell__desktop-login-hero {
    position: absolute;
    left: 751.72px;
    top: 540px;
    display: block;
    width: 1536px;
    height: 1024px;
    max-width: none;
    object-fit: fill;
    animation: wanli-login-desktop-hero-scale 36s ease-in-out infinite;
    will-change: transform;
}

.html-shell--desktop-shell .html-shell__desktop-login-right-panel {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 1920px;
    height: 1080px;
    max-width: none;
    object-fit: fill;
}

.html-shell--desktop-shell .html-shell__desktop-login-seam-clip {
    z-index: 3;
}

.html-shell--desktop-shell .html-shell__desktop-login-divider {
    position: absolute;
    z-index: 4;
    left: 1291px;
    top: 0;
    display: block;
    width: 20px;
    height: 1080px;
    max-width: none;
}

.html-shell--desktop-shell .html-shell__desktop-login-edge {
    position: absolute;
    z-index: 5;
    left: 1301.5px;
    top: 0;
    display: block;
    width: 0;
    height: 0;
    pointer-events: none;
    will-change: transform;
}

.html-shell--desktop-shell .html-shell__desktop-login-edge-trail,
.html-shell--desktop-shell .html-shell__desktop-login-edge-star {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    max-width: none;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.html-shell--desktop-shell .html-shell__desktop-login-edge-trail {
    width: 12px;
    height: 168px;
    opacity: 0.28;
}

.html-shell--desktop-shell .html-shell__desktop-login-edge-star {
    width: 34px;
    height: 34px;
    opacity: 0.62;
}

.html-shell--desktop-shell .html-shell__desktop-login-history-badge {
    position: absolute;
    z-index: 6;
    left: 158px;
    top: 135px;
    display: block;
    width: 520px;
    height: 512px;
    max-width: none;
    transform-origin: 50% 50%;
    animation: wanli-login-desktop-badge 4.8s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes wanli-login-desktop-hero-pan {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(54px, 0, 0); }
}

@keyframes wanli-login-desktop-hero-scale {
    0%, 100% { transform: translate(-50%, -50%) scale(1.058805); }
    50% { transform: translate(-50%, -50%) scale(1.088691); }
}

@keyframes wanli-login-desktop-badge {
    0%, 100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.34475);
    }
    50% {
        opacity: 0.98;
        transform: translate(-50%, -50%) scale(0.3675);
    }
}

.html-shell--desktop-shell .html-shell__canvas {
    position: absolute;
    z-index: 7;
    inset: 0;
    display: block;
    width: 1920px;
    height: 1080px;
    opacity: 0;
    pointer-events: none;
}

.html-shell--desktop-shell.html-shell--desktop-scene-ready .html-shell__canvas {
    opacity: 1;
}

.html-shell--desktop-shell.html-shell--desktop-scene-ready .html-shell__desktop-login-scene,
.html-shell--desktop-shell.html-shell--desktop-scene-ready .html-shell__brand {
    display: none;
}

.html-shell--desktop-shell .html-shell__veil {
    display: none;
}

.html-shell--desktop-shell .html-shell__panel,
.html-shell--desktop-shell.is-ready .html-shell__panel {
    position: absolute;
    z-index: 10;
    inset: 0;
    display: block;
    width: 1920px;
    height: 1080px;
    margin: 0;
    padding: 0;
    overflow: visible;
    opacity: 1;
    transform: none;
    transition: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.html-shell--desktop-shell .html-shell__panel::before,
.html-shell--desktop-shell .html-shell__panel::after {
    display: none;
    content: none;
}

.html-shell--desktop-shell .html-shell__lang-switcher {
    position: absolute;
    z-index: 20;
    left: 110px;
    top: 5px;
    right: auto;
    display: flex;
    align-items: center;
    width: 660px;
    height: 48px;
    box-sizing: border-box;
    gap: 6px;
    padding: 7px 9px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.html-shell--desktop-shell .html-shell__lang-button {
    flex: 0 0 48px;
    width: 48px;
    height: 34px;
    min-width: 48px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 48px 34px;
    box-shadow: none;
}

.html-shell--desktop-shell .html-shell__brand,
.html-shell--desktop-shell.is-ready .html-shell__brand {
    position: absolute;
    z-index: 16;
    left: 1467.575px;
    top: 329.09px;
    display: block;
    width: 284.85px;
    height: 165.82px;
    margin: 0;
    padding: 0;
    opacity: 1;
    transform: none;
    transition: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.html-shell--desktop-shell .html-shell__brand::after {
    display: none;
    content: none;
}

.html-shell--desktop-shell .html-shell__logo-wrap {
    position: relative;
    display: block;
    width: 284.85px;
    height: 165.82px;
    margin: 0;
    line-height: 0;
}

.html-shell--desktop-shell .html-shell__logo {
    display: block;
    width: 284.85px;
    height: 165.82px;
    max-width: none;
    margin: 0;
    object-fit: fill;
    filter: drop-shadow(0 9px 16px rgba(0, 0, 0, 0.32));
}

.html-shell--desktop-shell .html-shell__logo--shimmer {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: brightness(1.68) saturate(1.04);
    -webkit-mask-image: linear-gradient(90deg, transparent, #fff 43%, #fff 57%, transparent);
    -webkit-mask-size: 45% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: 145% 0;
    mask-image: linear-gradient(90deg, transparent, #fff 43%, #fff 57%, transparent);
    mask-size: 45% 100%;
    mask-repeat: no-repeat;
    mask-position: 145% 0;
    animation: wanli-login-desktop-logo-shimmer 10.1s linear 1.2s infinite;
}

@keyframes wanli-login-desktop-logo-shimmer {
    0%, 31.7% {
        opacity: 0;
        -webkit-mask-position: 145% 0;
        mask-position: 145% 0;
    }
    34% { opacity: 0.7; }
    97% { opacity: 0.7; }
    100% {
        opacity: 0;
        -webkit-mask-position: -45% 0;
        mask-position: -45% 0;
    }
}

.html-shell--desktop-shell .html-shell__form {
    position: absolute;
    z-index: 17;
    inset: 0;
    width: 1920px;
    height: 1080px;
    margin: 0;
    pointer-events: none;
}

.html-shell--desktop-shell .html-shell__field,
.html-shell--desktop-shell.is-ready .html-shell__field {
    position: absolute;
    inset: 0;
    width: 1920px;
    height: 1080px;
    margin: 0;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: none;
}

.html-shell--desktop-shell .html-shell__desktop-login-field-label {
    position: absolute;
    left: 1373px;
    width: 57px;
    height: 27px;
    color: #eee0b9;
    font: 22px/27px "Noto Serif CJK TC", "Noto Serif TC", "Noto Serif SC", "Songti SC", "Microsoft JhengHei", serif;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.68);
    white-space: nowrap;
}

.html-shell--desktop-shell .html-shell__field--account .html-shell__desktop-login-field-label {
    top: 556.5px;
}

.html-shell--desktop-shell .html-shell__field--password .html-shell__desktop-login-field-label {
    top: 632.5px;
}

.html-shell--desktop-shell .html-shell__field-shell {
    position: absolute;
    left: 1434.5px;
    display: block;
    width: 371px;
    height: 66px;
    min-height: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: url("../assets/login/desktop-input-idle.png") center / 368px 58px no-repeat;
    box-shadow: none;
    pointer-events: auto;
}

.html-shell--desktop-shell.html-shell--desktop-scene-ready .html-shell__field-shell {
    background: transparent;
}

.html-shell--desktop-shell .html-shell__field--account .html-shell__field-shell {
    top: 524px;
}

.html-shell--desktop-shell .html-shell__field--password .html-shell__field-shell {
    top: 600px;
}

.html-shell--desktop-shell .html-shell__field:focus-within .html-shell__field-shell {
    background-image: url("../assets/login/desktop-input-focus.png");
}

.html-shell--desktop-shell.html-shell--desktop-scene-ready .html-shell__field:focus-within .html-shell__field-shell {
    background-image: none;
}

.html-shell--desktop-shell.html-shell--desktop-scene-ready .html-shell__desktop-login-field-label {
    display: none;
}

.html-shell--desktop-shell .html-shell__field-icon,
.html-shell--desktop-shell .html-shell__field-divider {
    display: none;
}

.html-shell--desktop-shell .html-shell__input,
.html-shell--desktop-shell .html-shell__input:-webkit-autofill,
.html-shell--desktop-shell .html-shell__input:-webkit-autofill:hover,
.html-shell--desktop-shell .html-shell__input:-webkit-autofill:focus {
    position: absolute;
    inset: 0;
    display: block;
    width: 349px;
    height: 50px;
    box-sizing: content-box;
    min-width: 0;
    margin: 0;
    padding: 8px;
    padding-left: 14px;
    border: 0;
    outline: 0;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #f1e6c9;
    font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
    font-size: 24px;
    line-height: normal;
    letter-spacing: 0.5px;
    caret-color: #f1e6c9;
    -webkit-text-fill-color: #f1e6c9 !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.html-shell--desktop-shell .html-shell__turnstile,
.html-shell--desktop-shell.is-ready .html-shell__turnstile {
    position: absolute;
    z-index: 18;
    left: 1460px;
    top: 689.5px;
    display: block;
    width: 300px;
    height: 65px;
    min-height: 0;
    margin: 0;
    padding: 0;
    opacity: 1;
    transform: scale(0.9);
    transform-origin: 50% 50%;
    transition: none;
    pointer-events: auto;
}

.html-shell--desktop-shell .html-shell__actions,
.html-shell--desktop-shell.is-ready .html-shell__actions {
    position: absolute;
    z-index: 19;
    inset: 0;
    display: block;
    width: 1920px;
    height: 1080px;
    margin: 0;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: none;
}

.html-shell--desktop-shell .html-shell__button {
    appearance: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 0;
    border-radius: 0;
    color: #3f2812;
    font-family: "Noto Serif CJK TC", "Noto Serif TC", "Noto Serif SC", "Songti SC", "Microsoft JhengHei", serif;
    box-shadow: none;
    text-shadow: 0 1px 0 rgba(255, 238, 189, 0.74), 0 -1px 0 rgba(61, 35, 10, 0.34);
    pointer-events: auto;
}

.html-shell--desktop-shell #html-shell-login {
    position: absolute;
    left: 1469px;
    top: 791px;
    display: grid;
    place-items: center;
    width: 282px;
    height: 66px;
    min-height: 0;
    background: url("../assets/login/desktop-login-button-plate.webp") center / 282px 66px no-repeat;
    color: #42270f;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: filter 120ms ease, transform 90ms ease;
}

.html-shell--desktop-shell #html-shell-login:not(:disabled):hover {
    filter: brightness(1.08) saturate(1.04);
}

.html-shell--desktop-shell #html-shell-login:not(:disabled):active {
    transform: translateY(1px) scale(0.992);
    filter: brightness(0.93);
}

.html-shell--desktop-shell #html-shell-login:disabled {
    opacity: 1;
    cursor: default;
}

.html-shell--desktop-shell #html-shell-login.is-submitting span {
    opacity: 0;
}

.html-shell--desktop-shell #html-shell-login.is-submitting::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 32px;
    height: 32px;
    background: url("../assets/login/desktop-spinner.png") center / contain no-repeat;
    transform: translate(-50%, -50%);
    animation: wanli-login-button-spinner 900ms linear infinite;
}

@keyframes wanli-login-button-spinner {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.html-shell--desktop-shell #html-shell-agent,
.html-shell--desktop-shell #html-shell-agent-2 {
    position: absolute;
    top: 8px;
    display: grid;
    place-items: center;
    width: 146px;
    height: 44px;
    min-height: 0;
    padding-bottom: 1px;
    background: url("../assets/login/desktop-agent-button-static.png") center / 146px 44px no-repeat;
    color: #eadcad;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

.html-shell--desktop-shell #html-shell-agent {
    left: 1591px;
}

.html-shell--desktop-shell #html-shell-agent-2 {
    left: 1747px;
}

.html-shell--desktop-shell #html-shell-agent:hover,
.html-shell--desktop-shell #html-shell-agent-2:hover {
    background-image: url("../assets/login/desktop-agent-button-hover.png");
}

.html-shell--desktop-shell #html-shell-agent:active,
.html-shell--desktop-shell #html-shell-agent-2:active {
    background-image: url("../assets/login/desktop-agent-button-pressed.png");
}

.html-shell--desktop-shell.html-shell--desktop-scene-ready #html-shell-login,
.html-shell--desktop-shell.html-shell--desktop-scene-ready #html-shell-agent,
.html-shell--desktop-shell.html-shell--desktop-scene-ready #html-shell-agent-2 {
    background: transparent;
    color: transparent;
    filter: none;
    text-shadow: none;
}

.html-shell--desktop-shell.html-shell--desktop-scene-ready #html-shell-login span,
.html-shell--desktop-shell.html-shell--desktop-scene-ready #html-shell-agent span,
.html-shell--desktop-shell.html-shell--desktop-scene-ready #html-shell-agent-2 span,
.html-shell--desktop-shell.html-shell--desktop-scene-ready #html-shell-login::after {
    display: none;
}

.html-shell--desktop-shell.html-shell--desktop-scene-ready .html-shell__brand {
    display: none;
}

.html-shell--desktop-shell .html-shell__agent-label--desktop {
    display: inline;
}

.html-shell--desktop-shell .html-shell__message,
.html-shell--desktop-shell.is-ready .html-shell__message {
    position: absolute;
    z-index: 20;
    left: 1430px;
    top: 932px;
    width: 400px;
    min-height: 28px;
    margin: 0;
    opacity: 1;
    transform: none;
    transition: none;
    color: #f0ca79;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    text-shadow: 0 1px 2px #000;
    pointer-events: none;
}

.html-shell--desktop-shell .html-shell__message.is-visible {
    position: fixed;
    z-index: 30;
    left: 50%;
    top: 50%;
    width: auto;
    min-width: 220px;
    min-height: 0;
    padding: 12px 22px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    line-height: 1.35;
    transform: translate(-50%, -50%);
}

.html-shell--desktop-shell .html-shell__copyright {
    display: none;
}

/* Mobile keeps the authorized source layout and exact source raster plates. */
.html-shell--mobile .html-shell__desktop-login-stage {
    display: contents;
}

.html-shell--mobile .html-shell__desktop-login-scene,
.html-shell--mobile .html-shell__desktop-login-field-label,
.html-shell--mobile #html-shell-agent-2,
.html-shell--mobile .html-shell__agent-label--desktop {
    display: none;
}

.html-shell--mobile .html-shell__agent-label--mobile {
    display: inline;
}

.html-shell--mobile .html-shell__lang-switcher.is-compact {
    grid-template-columns: repeat(var(--lang-columns, 6), minmax(0, var(--lang-track-width, 31px)));
    column-gap: var(--lang-column-gap, 0);
    row-gap: var(--lang-row-gap, 5px);
}

.html-shell--mobile .html-shell__lang-switcher.is-compact .html-shell__lang-button {
    width: var(--lang-button-width, 42px);
    height: var(--lang-button-height, 30px);
}

.html-shell--mobile .html-shell__turnstile .html-shell__verification {
    width: 300px !important;
    max-width: 300px !important;
    height: 82px;
    min-height: 82px;
    margin: 0 auto !important;
    padding: 0;
    transform: none;
    background: url("../assets/login/verification-mobile.svg") center / 100% 100% no-repeat;
    clip-path: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    filter: none;
}

.html-shell--mobile .html-shell__verification-check {
    left: 34px;
    top: 24px;
    width: 36px;
    height: 36px;
}

.html-shell--mobile .html-shell__verification-check::before {
    width: 10px;
    height: 18px;
}

.html-shell--mobile .html-shell__verification-title {
    left: 76px;
    top: 25px;
    right: 18px;
    height: 32px;
    color: #f8e4b5;
    font-size: 24px;
    letter-spacing: 0.55px;
}

.html-shell--mobile .html-shell__verification.is-pending .html-shell__verification-check::before {
    width: 26px;
    height: 26px;
    border-color: rgba(255, 221, 170, 0.18);
    border-top-color: #f3d48e;
}

.html-shell--mobile .html-shell__verification.is-error .html-shell__verification-check::before {
    width: 100%;
    height: 100%;
    color: #ff9d73;
    font-size: 20px;
}

.html-shell--mobile #html-shell-login {
    background: url("../assets/login/mobile-button-primary.webp") center / 100% 100% no-repeat;
}

.html-shell--mobile #html-shell-agent {
    background: url("../assets/login/mobile-button-secondary.webp") center / 100% 100% no-repeat;
}

.html-shell--mobile .html-shell__agreement-title {
    font-weight: 400;
}

.html-shell--mobile #wanliAgreementDecline {
    background: url("../assets/login/mobile-button-secondary.webp") center / 100% 100% no-repeat;
}

.html-shell--mobile #wanliAgreementConfirm {
    background: url("../assets/login/mobile-button-primary.webp") center / 100% 100% no-repeat;
}

.html-shell--mobile #html-shell-login.is-submitting span {
    opacity: 0;
}

.html-shell--mobile #html-shell-login.is-submitting::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 32px;
    height: 32px;
    background: url("../assets/login/desktop-spinner.png") center / contain no-repeat;
    transform: translate(-50%, -50%);
    animation: wanli-login-button-spinner 900ms linear infinite;
}

/* Official desktop Load scene, preserved in the existing login overlay owner. */
.html-shell--desktop-shell #loadingOverlay.html-shell__loading {
    position: fixed;
    inset: 0;
    z-index: 1000;
    isolation: isolate;
}

.html-shell--desktop-shell #loadingOverlay.html-shell__loading.is-boot-variant {
    background: #000;
    backdrop-filter: none;
    transition: none;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-card {
    position: absolute;
    left: 50%;
    top: calc(50% + var(--wanli-loading-offset-y, 0px));
    display: block;
    width: 792px;
    height: 392px;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translate(-50%, -50%) scale(var(--wanli-loading-scale, 1));
    transform-origin: 50% 50%;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-badge,
.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-title,
.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-ornaments {
    display: none;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-brand {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    min-height: 0;
    pointer-events: none;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-brand::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: calc(50% + 86px);
    width: 760px;
    height: 170px;
    background: radial-gradient(ellipse at center, rgba(11, 48, 36, 0.24), rgba(3, 20, 15, 0) 72%);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-brand::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: calc(50% - 40px);
    width: 212px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-wordmark {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: calc(50% - 325px);
    display: block;
    width: 675px;
    height: 392px;
    max-width: none;
    object-fit: contain;
    opacity: 0.98;
    filter: none;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.456, 0.459);
    transform-origin: 50% 50%;
    animation: wanli-login-loading-wordmark-in 820ms ease-out both;
}

@keyframes wanli-login-loading-wordmark-in {
    from {
        top: calc(50% - 315px);
        opacity: 0;
    }
    to {
        top: calc(50% - 325px);
        opacity: 0.98;
    }
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-crest {
    position: static;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-logo {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: calc(50% - 92px);
    display: block;
    width: 520px;
    height: 512px;
    max-width: none;
    opacity: 0.97;
    filter: none;
    transform: translate(-50%, -50%) scale(0.40385);
    transform-origin: 50% 50%;
    animation: wanli-login-loading-shield 4400ms ease-in-out infinite;
}

@keyframes wanli-login-loading-shield {
    0%, 100% {
        top: calc(50% - 92px);
        transform: translate(-50%, -50%) scale(0.40385);
    }
    50% {
        top: calc(50% - 102px);
        transform: translate(-50%, -50%) scale(0.4346);
    }
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    padding: 0;
    pointer-events: none;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress::before,
.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress::after,
.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-track::before,
.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-track::after {
    content: none;
    display: none;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-track {
    position: absolute;
    left: 50%;
    top: calc(50% + 98px);
    display: block;
    width: 792px;
    height: 56px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: url("../assets/login/desktop-loading-track-frame.png") center / 792px 56px no-repeat;
    box-shadow: none;
    transform: translate(-50%, -50%);
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-clip {
    position: absolute;
    left: 38px;
    top: 17px;
    width: var(--loading-progress-width, 0px);
    height: 22px;
    overflow: hidden;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-fill,
.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-pattern {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 716px;
    height: 22px;
    min-width: 0;
    transition: none;
    transform: none;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-fill {
    background: url("../assets/login/desktop-loading-track-fill.png") left center / 716px 22px no-repeat;
    box-shadow: none;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-fill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    mix-blend-mode: screen;
    opacity: 0.16;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-fill::after {
    content: none;
    display: none;
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-pattern {
    background: url("../assets/login/desktop-loading-track-pattern.png") 0 0 / 168px 22px repeat-x;
    mix-blend-mode: screen;
    opacity: 0.3;
    animation: wanli-login-loading-track-pattern 3600ms linear infinite;
}

@keyframes wanli-login-loading-track-pattern {
    to { background-position-x: 168px; }
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-tip {
    position: absolute;
    left: var(--loading-tip-left, 38px);
    top: 0;
    display: block;
    width: 38px;
    height: 52px;
    background: url("../assets/login/desktop-loading-track-tip.png") center / 38px 52px no-repeat;
    mix-blend-mode: screen;
    opacity: 0;
    transform: translateX(-50%);
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant.has-progress .html-shell__loading-progress-tip {
    animation: wanli-login-loading-track-tip 1800ms ease-in-out infinite;
}

@keyframes wanli-login-loading-track-tip {
    0%, 100% { opacity: 0.18; }
    50% { opacity: 0.44; }
}

.html-shell--desktop-shell #loadingOverlay.is-boot-variant .html-shell__loading-progress-value {
    position: absolute;
    left: 50%;
    top: calc(50% + 160px);
    display: block;
    margin: 0;
    color: #f3dd98;
    font: 700 34px/1 Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    text-align: center;
    text-shadow: 0 0 8px rgba(255, 228, 154, 0.2);
    text-transform: none;
    transform: translate(-50%, -50%);
}

.html-shell__verification.is-expired .html-shell__verification-check::before {
    content: "!";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    color: #ff9a6a;
    font-size: 18px;
    font-weight: 800;
    transform: none;
    filter: none;
}

.html-shell--mobile .html-shell__verification.is-expired .html-shell__verification-check::before {
    width: 100%;
    height: 100%;
    color: #ff9d73;
    font-size: 20px;
}

@media (max-width: 360px) {
    .html-shell--mobile .html-shell__turnstile .html-shell__verification {
        transform: scale(0.94);
        transform-origin: top center;
    }
}

.html-shell--desktop-shell .html-shell__agreement-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1920px;
    min-width: 1920px;
    max-width: none;
    height: 1080px;
    min-height: 1080px;
    max-height: none;
    display: block;
    gap: 0;
    padding: 0;
    transform: translate(-50%, -50%) scale(var(--wanli-login-stage-scale, 1));
    transform-origin: 50% 50%;
    border: 0;
    border-radius: 0;
    background: url("../assets/login/desktop-agreement-background.png") center / 1920px 1080px no-repeat;
    box-shadow: none;
    isolation: isolate;
}

body.html-shell-active::after {
    content:
        url("../assets/login/desktop-agreement-background.png") url("../assets/login/desktop-agreement-panel.png") url("../assets/login/desktop-agreement-button-static.png")
        url("../assets/login/desktop-agreement-button-hover.png") url("../assets/login/desktop-agreement-button-pressed.png")
        url("../assets/login/desktop-agreement-scroll-track.png") url("../assets/login/desktop-agreement-scroll-thumb.png");
    position: fixed;
    clip-path: inset(100%);
}

.html-shell--desktop-shell .html-shell__agreement-card::before {
    content: "";
    position: absolute;
    inset: auto;
    left: 181px;
    top: 14px;
    width: 1263px;
    height: 1052px;
    box-sizing: border-box;
    border: 0;
    background: url("../assets/login/desktop-agreement-panel.png") center / 1263px 1052px no-repeat;
    box-shadow: none;
    pointer-events: none;
    z-index: 1;
}

.html-shell--desktop-shell .html-shell__agreement-card::after {
    content: none;
    display: none;
}

.html-shell--desktop-shell .html-shell__agreement-title {
    display: none;
}

.html-shell--desktop-shell .html-shell__agreement-body {
    position: absolute;
    left: 225px;
    top: 51px;
    width: 1194px;
    height: 972px;
    min-height: 0;
    max-height: none;
    padding: 0 51px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    color: #d4c596;
    font: 400 23px/36px "Noto Serif SC","Songti SC","Microsoft YaHei",serif;
    overflow: auto;
    scrollbar-width: none;
    z-index: 3;
}

.html-shell--desktop-shell .html-shell__agreement-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.html-shell__agreement-scrollbar {
    display: none;
}

.html-shell--desktop-shell .html-shell__agreement-scrollbar {
    position: absolute;
    left: 1409px;
    top: 58px;
    z-index: 5;
    display: block;
    width: 10px;
    height: 968px;
    touch-action: none;
    cursor: pointer;
    background: none;
    box-shadow: none;
}

.html-shell--desktop-shell .html-shell__agreement-scrollbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/login/desktop-agreement-scroll-track.png") center / 10px 968px no-repeat;
    opacity: 0.92;
    pointer-events: none;
}

.html-shell--desktop-shell .html-shell__agreement-scrollbar-thumb {
    position: absolute;
    left: -3px;
    top: 0;
    width: 16px;
    min-height: 44px;
    background: url("../assets/login/desktop-agreement-scroll-thumb.png") center / 100% 100% no-repeat;
    box-shadow: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.html-shell--desktop-shell .html-shell__agreement-scrollbar-thumb.is-dragging {
    filter: brightness(1.04);
}

.html-shell--desktop-shell .html-shell__agreement-scrollbar.is-disabled {
    pointer-events: none;
}

.html-shell--desktop-shell .html-shell__agreement-body p {
    margin: 0 0 36px;
}

.html-shell--desktop-shell .html-shell__agreement-body p:last-child {
    margin-bottom: 20px;
}

.html-shell--desktop-shell .html-shell__agreement-brand {
    position: absolute;
    left: 1588px;
    top: 106px;
    right: auto;
    display: block;
    width: 182px;
    height: 106px;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 4;
}

.html-shell--desktop-shell .html-shell__agreement-brand img {
    display: block;
    width: 182px;
    height: 106px;
    object-fit: contain;
    opacity: 0.98;
    filter:
        drop-shadow(0 8px 14px rgba(0, 0, 0, 0.24))
        drop-shadow(0 0 8px rgba(255, 221, 136, 0.06));
}

.html-shell--desktop-shell .html-shell__agreement-actions {
    position: absolute;
    left: 1499px;
    top: 952px;
    right: auto;
    bottom: auto;
    width: 190px;
    height: 126px;
    margin-top: 0;
    flex-direction: column;
    gap: 14px;
    z-index: 3;
}

.html-shell--desktop-shell #wanliAgreementConfirm {
    order: -1;
}

.html-shell--desktop-shell #wanliAgreementDecline {
    order: 0;
}

.html-shell--desktop-shell .html-shell__agreement-actions .html-shell__button {
    flex: 0 0 56px;
    width: 190px;
    min-height: 56px;
    height: 56px;
    padding: 1px 0 0;
    border: 0;
    border-radius: 0;
    background: url("../assets/login/desktop-agreement-button-static.png") center / 190px 56px no-repeat;
    color: #f2dfa7;
    box-shadow: none;
    font: 700 24px/1 "Noto Serif SC","Songti SC","Microsoft YaHei",serif;
    text-shadow: none;
}

.html-shell--desktop-shell .html-shell__agreement-actions .html-shell__button::before {
    display: none;
}

.html-shell--desktop-shell .html-shell__agreement-actions .html-shell__button:hover {
    background: url("../assets/login/desktop-agreement-button-hover.png") center / 190px 56px no-repeat;
}

.html-shell--desktop-shell .html-shell__agreement-actions .html-shell__button:active {
    transform: none;
    background: url("../assets/login/desktop-agreement-button-pressed.png") center / 190px 56px no-repeat;
}

@media (prefers-reduced-motion: reduce) {
    .html-shell *,
    .html-shell *::before,
    .html-shell *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
