:root { color-scheme: dark; font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif; background: #0b1011; color: #f1e2bf; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 32%, #29302e, #0a1012 72%); }
.login-scene { position: relative; width: min(100vw, 56.28vh); width: min(100vw, 56.28svh); aspect-ratio: 941 / 1672; container-type: inline-size; background: url("./login-scene-v1.webp") center / 100% 100% no-repeat; box-shadow: 0 0 100px #0007; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, .remember-hit:has(input:focus-visible) { outline: 2px solid #efd18a; outline-offset: 4px; }
.value-cover { position: absolute; left: 23.8%; width: 24%; height: 2.75%; background: #111313; box-shadow: 0 0 8px 2px #111313; pointer-events: none; }
.account-cover { top: 54.7%; }
.password-cover { top: 61.25%; }
.credential { position: absolute; left: 23.9%; width: 61.5%; height: 5.25%; border: 0; border-radius: 0; color: #fff2d3; caret-color: #e8bc6a; padding: 3.7cqw .2cqw 0; background: transparent; font-size: max(16px, 3.3cqw); line-height: 1.2; box-shadow: none; }
.credential::placeholder { color: #b5a484; font-size: max(16px, 2.7cqw); }
.credential:-webkit-autofill { -webkit-text-fill-color: #fff2d3; transition: background-color 999999s; }
.credential:focus { outline-offset: 1px; }
.account { top: 52.25%; }
.password { top: 58.85%; }
.remember-hit { position: absolute; left: 12.65%; top: 65.6%; width: 26%; height: 2.6%; cursor: pointer; }
.remember-hit input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.check-art { position: absolute; left: 0; top: .1cqw; width: 4.1cqw; height: 4.1cqw; background: linear-gradient(135deg,#6f2314,#34120e); border: .2cqw solid #c8a75e; border-radius: .25cqw; pointer-events: none; box-shadow: 0 0 .4cqw #000; }
.remember-hit input:checked + .check-art::after { content: ""; position: absolute; width: 1.2cqw; height: 2.3cqw; left: 1.15cqw; top: .35cqw; transform: rotate(42deg); border: solid #fff0ba; border-width: 0 .45cqw .45cqw 0; }
.server-picker { position: absolute; left: 12.65%; top: 74.25%; width: 74.7%; height: 4.1%; padding: 0 3cqw 0 8.8cqw; border: 0; background: transparent; color: #fff0d2; text-align: left; display: flex; align-items: center; justify-content: space-between; font-size: max(14px, 3.05cqw); }
.server-picker #server-name { background: #111414; box-shadow: 0 0 1cqw .5cqw #111414; padding: .4cqw 1cqw; }
.chevron { color: #dfc28a; font-size: 4.5cqw; }
.server-picker:hover { background: #d6b7700c; }
.start-game { position: absolute; left: 11.477%; top: 79.127%; width: 77.152%; height: 7.835%; border: 0; padding: 0; background: url("./start-game-v1.webp") center / 100% 100% no-repeat; transition: filter .15s; }
.start-game:hover { filter: brightness(1.14); }
.start-game:active { filter: brightness(.85); }
.start-game:disabled { cursor: wait; filter: saturate(.65) brightness(.75); }
.advanced-cover { position: absolute; left: 41%; top: 87.9%; width: 18.5%; height: 3.1%; background: #111515; box-shadow: 0 0 1.1cqw 1cqw #111515; pointer-events: none; }
.login-status { position: absolute; left: 13%; top: 87.7%; width: 74%; margin: 0; text-align: center; color: #ffcf94; font-size: max(12px,2.4cqw); line-height: 1.4; text-shadow: 0 1px 3px #000; }
.login-status:not(:empty) { background: #111515; padding: .8cqw; }
dialog { width: min(86vw, 420px); padding: 24px; border: 1px solid #b28e4f; color: #f1e2bf; background: linear-gradient(145deg,#242621,#0e1516); box-shadow: 0 25px 90px #000c,inset 0 0 0 5px #c2a05e12; }
dialog::backdrop { background: #020708bf; backdrop-filter: blur(5px); }
dialog header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
dialog h2 { margin: 0; font-size: 23px; font-weight: 500; letter-spacing: 3px; }
#close-servers { border: 0; background: transparent; color: #d6c49d; font: 30px/1 system-ui; width: 44px; height: 44px; }
.server-hint { margin: 5px 0 22px; color: #b8ad94; font-size: 14px; }
#server-list { display: grid; gap: 10px; }
.server-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 14px; border: 1px solid #6a5b3f; background: #101919; color: #f1e2bf; font-size: 17px; text-align: left; }
.server-option[aria-checked="true"] { border-color: #ddbb70; background: #b993461c; }
.server-option::before { content: ""; width: 10px; height: 10px; border: 1px solid #c3aa70; border-radius: 50%; }
.server-option[aria-checked="true"]::before { background: #dfbd71; box-shadow: inset 0 0 0 2px #21231d; }
.server-option .selection { margin-left: auto; font-size: 12px; color: #d0b777; }
.confirm-server { width: 100%; min-height: 46px; margin-top: 24px; border: 1px solid #b28c48; background: linear-gradient(#882819,#511a14); color: #fff0c2; font-size: 17px; letter-spacing: 3px; }
.no-script { position: fixed; bottom: 12px; left: 0; width: 100%; text-align: center; background: #111; padding: 12px; }
@media (max-height: 520px) { .login-scene { width: min(100vw, 360px); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
