@charset "UTF-8";

:root {
    color-scheme: light;
    --cream: #fff5df;
    --ink: #5c3020;
    --red: #a72b1c;
    --gold: #bc7726;
    --muted: #805b41;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #d3e4e8; }
body { color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, a, input { touch-action: manipulation; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid #943c19;
    outline-offset: 3px;
}
[hidden] { display: none !important; }
html, dialog, .account-fields, .policy-scroll { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }

.cloud-world {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 540px;
    min-height: 760px;
    height: 100svh;
    margin: 0 auto;
    background: #499ac1;
}
.journey-artwork { position: absolute; z-index: -2; inset: 0; margin: 0; overflow: hidden; }
.world-poster { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.world-title { position: absolute; top: 5.2%; left: 3%; right: 3%; }
.world-title h1 { margin: 0; }
.world-title img { display: block; width: 100%; height: auto; }
.world-launch { position: absolute; left: 7%; right: 7%; bottom: 19.5%; }
.cloud-button {
    position: relative;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff3d1;
    aspect-ratio: 3 / 1;
    transition: transform 150ms ease, filter 150ms ease;
}
.cloud-button img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cloud-button span {
    position: relative;
    margin-top: .25em;
    padding-left: .12em;
    font: 700 30px/1 "STKaiti", "KaiTi", "FangSong", serif;
    letter-spacing: .12em;
    text-shadow: 0 2px 3px #7d1a0b;
}
.start-game { width: 100%; filter: drop-shadow(0 5px 7px #84390f66); }
.start-game span { font-size: clamp(29px, 8.4vw, 42px); }
.cloud-button:active { transform: translateY(2px); }
.cloud-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px max(12px, env(safe-area-inset-bottom));
    color: #583d28;
    text-align: center;
    background: linear-gradient(180deg, #fff5df00, #fff5dff2 14%, #fff5df 100%);
}
.footer-policies { display: flex; justify-content: center; align-items: center; gap: 13px; }
.footer-policies button { min-height: 44px; min-width: 55px; padding: 0; border: 0; background: transparent; color: #873d21; font-size: 12px; }
.footer-policies > span { color: #9d743e; }
.company-name { margin: 0; color: #634025; font-size: 12px; letter-spacing: .04em; }
.filing-link { display: inline-flex; min-height: 44px; align-items: center; padding: 0 3px; color: #6b452b; font-size: 11px; text-decoration: none; }
.healthy-play { margin: 0; color: #74543c; font-size: 9px; line-height: 1.8; }

.cloud-dialog {
    width: min(97vw, 440px);
    height: min(700px, calc(100dvh - 16px));
    max-width: none;
    max-height: calc(100dvh - 16px);
    margin: auto;
    padding: 0;
    border: 0;
    overflow: hidden;
    color: var(--ink);
    background: transparent url("../img/journey-frame.webp") center / 100% 100% no-repeat;
    filter: drop-shadow(0 10px 24px #53311855);
}
.cloud-dialog.is-register { height: min(760px, calc(100dvh - 16px)); }
.cloud-dialog::backdrop { background: #18374eae; }
.cloud-panel { position: absolute; inset: 21% 12% 12%; display: flex; flex-direction: column; min-height: 0; }
.close-button {
    position: absolute;
    z-index: 2;
    top: -16px;
    right: -18px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9e3d18;
    font: 30px/1 Georgia, serif;
}
.account-heading { flex: 0 0 auto; text-align: center; }
.account-logo { display: block; width: 77%; max-width: 235px; height: auto; margin: -5px auto 5px; }
.account-heading h2 { margin: 3px 0 16px; color: #8c361e; font: 700 25px/1.3 "STKaiti", "KaiTi", serif; letter-spacing: .12em; }
.account-form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.account-fields { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 4px 2px; scroll-padding: 5px; }
.input-row { display: block; margin-bottom: 12px; }
.input-row > label, .input-row > span { display: block; margin-bottom: 5px; color: #70452a; font-size: 12px; }
.input-row input {
    display: block;
    width: 100%;
    height: 45px;
    padding: 0 11px;
    border: 1px solid #b8884e;
    border-radius: 5px;
    color: #542c1c;
    background: #fffaf0;
    font-size: 16px;
}
.input-row input::placeholder { color: #896d4f; font-size: 12px; }
.password-row { position: relative; }
.password-row input { padding-right: 54px; }
.password-row button { position: absolute; right: 1px; top: 1px; min-width: 48px; height: 43px; padding: 0 5px; border: 0; background: transparent; color: #94411f; font-size: 12px; }
.identity-fields { min-width: 0; margin: 10px 0 0; padding: 0; border: 0; }
.identity-fields legend { width: 100%; margin-bottom: 12px; padding-top: 11px; border-top: 1px solid #b68e5359; color: #8d471c; font-size: 12px; letter-spacing: .08em; }
.auth-tip { flex: 0 0 auto; margin: 5px 4px; padding: 8px 10px; border: 1px solid #be7553; border-radius: 3px; color: #8f2f1c; background: #fff0df; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.auth-tip.is-success { color: #486024; background: #f5f4dc; border-color: #9b9e57; }
.account-actions { flex: 0 0 auto; padding-top: 5px; }
.submit-button { width: 100%; height: 77px; aspect-ratio: auto; }
.submit-button span { font-size: clamp(24px, 6vw, 30px); }
.submit-button:disabled { filter: saturate(.5); opacity: .72; }
.switch-button { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; color: #9b321e; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.agreement-note { display: flex; align-items: center; justify-content: center; gap: 3px; flex: 0 0 auto; min-height: 44px; white-space: nowrap; color: #805c41; font-size: 10px; }
.agreement-note button { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #8b391f; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.agreement-dialog { height: min(740px, calc(100dvh - 16px)); }
.policy-panel { inset: 22% 13% 12%; }
.policy-heading { flex: 0 0 auto; margin-bottom: 17px; text-align: center; }
.policy-heading p { margin: 0 0 6px; color: #99622b; font-size: 12px; letter-spacing: .12em; }
.policy-heading h2 { margin: 0; color: #8b391f; font: 700 24px/1.3 "STKaiti", "KaiTi", serif; letter-spacing: .1em; }
.policy-scroll { min-height: 0; padding: 4px 4px 10px; overflow-y: auto; overscroll-behavior: contain; color: #64472e; font-size: 13px; line-height: 1.95; overflow-wrap: anywhere; }
.policy-scroll h4 { margin: 0 0 7px; color: #8b391f; font-size: 15px; }
.policy-scroll p { margin: 0 0 20px; }
.script-notice { position: fixed; inset: 30% 8% auto; padding: 20px; background: var(--cream); text-align: center; }

@media (hover: hover) {
    .cloud-button:hover { filter: brightness(1.07); }
    .footer-policies button:hover, .switch-button:hover, .agreement-note button:hover { color: #c83c22; }
    .filing-link:hover { text-decoration: underline; }
}
@media (max-width: 360px) {
    .healthy-play { font-size: 8px; }
    .cloud-panel { inset-inline: 11%; }
    .account-logo { width: 73%; }
    .agreement-note { gap: 2px; font-size: 9px; }
}
@media (min-width: 600px) {
    .cloud-world { width: min(540px, calc(100svh * .58)); min-width: 375px; }
    .start-game span { font-size: 38px; }
}
@media (max-height: 680px) {
    .account-logo { width: 60%; margin-bottom: 2px; }
    .account-heading h2 { margin-bottom: 10px; font-size: 22px; }
    .submit-button { height: 65px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
