@charset "UTF-8";

/* 宣纸承接主图的水墨留白；旧金仅强调边框和游戏入口。ENERGY 3 / RHYTHM 1 / MOTION 1。 */
:root { color-scheme: light; --ink: #292b25; --paper: #f5eddd; --muted: #665c4d; --gold: #805a26; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); }
body { color: var(--ink); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, input:focus-visible, .agreement-body:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.landing { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; isolation: isolate; }
.landing::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(#20231de0, #20231db3), url("../img/gujian-main-art.png") center / cover; filter: blur(24px); }
.poster-shell { position: relative; width: min(100%, calc(100dvh * 690 / 1227)); aspect-ratio: 690 / 1227; }
.game-background { display: block; width: 100%; height: auto; }
/* 按钮锚定海报而非屏幕，任何宽高比下都留出底部出版信息。 */
.start-game { position: absolute; left: 50%; top: 81%; transform: translateX(-50%); display: grid; place-items: center; width: 72%; min-height: 44px; aspect-ratio: 4.3; padding: 0; border: 0; background: transparent; color: #fff0c3; transition: filter .16s ease, translate .16s ease; }
.start-game img { position: absolute; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.start-game span { position: relative; padding-left: .18em; font: 700 clamp(20px, 4.4vw, 32px)/1.2 "STKaiti", "KaiTi", serif; letter-spacing: .18em; }
.start-game:hover { filter: brightness(1.18); translate: 0 -2px; }
.start-game:active { filter: brightness(.92); translate: 0 1px; }
dialog { margin: auto; color: var(--ink); }
dialog::backdrop { background: #151811a8; backdrop-filter: blur(4px); }
.auth-dialog { position: fixed; width: min(96vw, 450px); max-width: none; max-height: 94dvh; padding: 64px 46px 42px; border: 0; background: transparent; overflow: visible; }
.auth-dialog[open] { display: flex; flex-direction: column; }
.auth-brand { flex-shrink: 0; }
.auth-footer { flex-shrink: 0; padding: 12px 3px 3px; }
/* 生图框独立于滚动表单，注册内容增长时边框仍完整可见。 */
.auth-dialog::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/gujian-frame.png") center / 100% 100% no-repeat; pointer-events: none; }
.modal-box { min-height: 0; overflow-y: auto; padding: 0 3px 3px; scrollbar-width: thin; scrollbar-color: #9c8054 transparent; }
.close-button { position: absolute; z-index: 1; top: 50px; right: 26px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #61513b; font: 300 28px/1 sans-serif; transition: color .15s, background .15s; }
.close-button:hover { color: #211a10; background: #805a2610; }
.close-button:active { background: #805a2620; }
.auth-title { display: block; width: min(100%, 282px); height: auto; margin: 8px auto 16px; }
.auth-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; color: #594831; font: 400 21px/1.5 "STKaiti", "KaiTi", serif; letter-spacing: .16em; text-indent: .16em; }
.auth-heading::before, .auth-heading::after { content: ""; height: 1px; flex: 1; background: #9c80544d; }
.field { margin: 0 0 18px; }
.field label { display: block; margin-bottom: 7px; color: #514a3f; font-size: 13px; line-height: 1.5; }
.field input { display: block; width: 100%; min-width: 0; height: 48px; padding: 0 13px; border: 1px solid #a89a81; border-radius: 2px; background: #fffcf5c9; color: #292820; font-size: 16px; transition: border-color .15s, background .15s; }
.field input::placeholder { color: #756b5c; font-size: 13px; opacity: 1; }
.field input:focus { border-color: var(--gold); background: #fffdf7; }
.field input[aria-invalid="true"] { border-color: #9a3524; }
.password-field { position: relative; }
.password-field input { padding-right: 58px; }
.password-toggle { position: absolute; top: 2px; right: 3px; min-width: 48px; height: 44px; padding: 0 8px; border: 0; background: transparent; color: #765123; font-size: 12px; }
.password-toggle:hover { color: #3b2b14; background: #805a2610; }
.password-toggle:active { background: #805a2620; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.consent { display: flex; align-items: flex-start; gap: 2px; margin: -1px 0 8px -8px; color: #615747; font-size: 12px; line-height: 1.7; }
.check-target { display: grid; flex-shrink: 0; place-items: center; width: 44px; min-height: 44px; cursor: pointer; }
.check-target input { width: 17px; height: 17px; margin: 0; accent-color: #805a26; cursor: pointer; }
.consent > div { padding-top: 0; }
.consent label { cursor: pointer; }
.text-button { display: inline; min-height: 44px; padding: 0 1px; border: 0; background: transparent; color: #755021; font-size: inherit; line-height: inherit; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: #34220e; }
.text-button:active { color: #a24c20; }
.auth-message { margin: 0 0 12px; color: #943521; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-message.is-success { color: #3f5a35; }
.submit-button { display: block; width: 100%; min-height: 50px; padding: 10px 16px; border: 1px solid #8a6932; border-radius: 2px; background: #302f26; color: #ffe6ad; font: 700 21px/1.3 "STKaiti", "KaiTi", serif; letter-spacing: .16em; text-indent: .16em; box-shadow: inset 0 0 0 3px #302f26, inset 0 0 0 4px #a58a54; transition: background .15s, transform .15s; }
.submit-button:hover { background: #464331; }
.submit-button:active { transform: translateY(1px); }
.switch-mode { display: block; width: 100%; min-height: 44px; margin: 10px 0 4px; padding: 8px 0; border: 0; background: transparent; color: #615747; font-size: 13px; }
.switch-mode span { color: #755021; text-decoration: underline; text-underline-offset: 3px; }
.switch-mode:hover span { color: #34220e; }
.switch-mode:active { background: #805a2610; }
.company-name { margin: 4px 0 0; color: #75664f; font-size: 10px; line-height: 1.6; text-align: center; }
.auth-dialog.register-mode .auth-title { width: 220px; margin-bottom: 10px; }
.auth-dialog.register-mode .auth-heading { margin-bottom: 17px; }
.auth-dialog.register-mode .field { margin-bottom: 13px; }
.auth-dialog.register-mode .field input { height: 44px; }
.agreement-dialog { width: min(92vw, 620px); max-height: min(84dvh, 760px); padding: 0; border: 1px solid #a88c56; border-radius: 2px; background: var(--paper); box-shadow: 0 20px 70px #0004; }
.agreement-header { position: relative; padding: 17px 60px 17px 22px; border-bottom: 1px solid #c7b791; background: #eee3cd; }
.agreement-header h2 { margin: 0; font: 400 21px/1.5 "STKaiti", "KaiTi", serif; }
.agreement-header .close-button { top: 10px; right: 10px; }
.agreement-body { max-height: calc(84dvh - 72px); padding: 10px 22px 22px; overflow-y: auto; color: #514a3f; font-size: 14px; line-height: 1.9; }
.agreement-body h3 { margin: 22px 0 10px; color: #493a23; font-size: 15px; }
@media (min-width: 600px) {
    .poster-shell { box-shadow: 0 0 80px #0005; }
    .auth-dialog { width: 460px; padding-left: 52px; padding-right: 52px; }
}
@media (max-width: 359px) {
    .auth-dialog { width: 100vw; padding: 60px 33px 38px; }
    .auth-title { width: 240px; }
    .auth-heading { margin-bottom: 18px; }
    .close-button { right: 18px; }
    .field { margin-bottom: 14px; }
    .consent { font-size: 11px; }
}
@media (max-height: 600px) {
    .auth-dialog { padding-top: 46px; padding-bottom: 32px; }
    .close-button { top: 32px; }
    .auth-title { width: 190px; margin-top: 4px; margin-bottom: 10px; }
    .auth-heading { margin-bottom: 14px; }
    .start-game span { font-size: clamp(17px, 4dvh, 24px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
