:root {
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  background: #10140f;
  color: #f4f0e4;
  --gold: #e9bd72;
  --text: #f4f0e4;
  --muted: #aaa99a;
  --panel: #191e17;
  --line: #3c4132;
  --error: #f5a694;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 24% 15%, #1b2217 0%, transparent 54%), #10140f; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.masthead { border-bottom: 1px solid #303529; background: #10140fe0; }
.topbar { margin: auto; max-width: 1336px; min-height: 76px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-icon { width: 37px; height: 39px; display: grid; place-items: center; color: var(--gold); }
.brand-icon svg { width: 32px; height: 32px; stroke-width: 1.45; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .14em; font-weight: 760; line-height: 1.22; }
.brand small { margin-top: 4px; font-size: 9px; font-weight: 650; color: #b0ad94; letter-spacing: .17em; }
.topbar-actions { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 24px); }
.topbar-link { color: var(--gold); font-size: 13px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.topbar-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; margin-right: -3px; border: 1px solid #414737; background: #20251b; color: #dad8c9; border-radius: 6px; font-size: 13px; cursor: pointer; }
.guide-button svg { width: 18px; height: 18px; color: #c6ac7b; }
.guide-button:hover, .dialog-close:hover { border-color: #867954; color: var(--gold); }
.page { max-width: 1336px; margin: 0 auto; padding: 37px 34px 0; }
.registration-layout { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); min-height: 660px; border: 1px solid #4a4b37; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 65px #0005; }
.world { position: relative; display: flex; flex-direction: column; justify-content: end; isolation: isolate; min-height: 100%; overflow: hidden; background: #20271b; }
.world-image, .world-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-image { z-index: -3; object-fit: cover; object-position: 49% 50%; }
.world-shade { z-index: -2; background: linear-gradient(180deg, #1c281ab3 0%, #1927172c 28%, transparent 50%, #10150e25 61%, #10160cf0 91%, #10160c 100%), linear-gradient(90deg, #151e0f32, transparent 64%); }
.world-frame { position: absolute; z-index: -1; inset: 16px; pointer-events: none; background: linear-gradient(#e8c389a0,#e8c389a0) 0 0/24px 1px,linear-gradient(#e8c389a0,#e8c389a0) 0 0/1px 24px,linear-gradient(#e8c389a0,#e8c389a0) 100% 0/24px 1px,linear-gradient(#e8c389a0,#e8c389a0) 100% 0/1px 24px,linear-gradient(#e8c389a0,#e8c389a0) 0 100%/24px 1px,linear-gradient(#e8c389a0,#e8c389a0) 0 100%/1px 24px,linear-gradient(#e8c389a0,#e8c389a0) 100% 100%/24px 1px,linear-gradient(#e8c389a0,#e8c389a0) 100% 100%/1px 24px; background-repeat: no-repeat; }
.game-logo { position: absolute; top: 39px; left: 41px; width: clamp(158px, 27vw, 265px); height: auto; filter: drop-shadow(0 4px 14px #161609c4); }
.world-caption { padding: 34px 44px 45px; }
.world-kicker, .panel-kicker { display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: 10px; font-weight: 720; letter-spacing: .16em; }
.world-kicker { margin: 0 0 14px; }
.world-kicker span, .panel-kicker i { width: 6px; height: 6px; flex: 0 0 auto; display: inline-block; background: var(--gold); transform: rotate(45deg); }
.world-kicker b { width: 15px; height: 1px; background: #e9bd726c; }
.world-title { margin: 0; font-weight: 820; font-size: clamp(29px, 3.35vw, 51px); line-height: 1.18; letter-spacing: .035em; text-shadow: 0 2px 13px #111a10; }
.world-description { margin: 14px 0 0; color: #dadbcb; font-size: 14px; line-height: 1.75; letter-spacing: .04em; }
.world-index { position: absolute; right: 36px; bottom: 28px; color: #c4bc99; font-size: 9px; letter-spacing: .16em; }
.mobile-break { display: none; }
.panel { display: flex; justify-content: center; align-items: center; padding: 36px clamp(27px, 4.0vw, 64px); background: radial-gradient(ellipse at 95% 0, #292d20, transparent 55%), var(--panel); border-left: 1px solid #5c5741; }
.panel-inner { width: 100%; max-width: 396px; }
.panel-kicker { margin-bottom: 12px; }
.panel-kicker i { width: 5px; height: 5px; }
h1 { margin: 0; font-weight: 800; font-size: clamp(31px, 3vw, 43px); line-height: 1.2; letter-spacing: .045em; }
.intro { margin: 11px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 21px; }
.field label { display: block; font-size: 13px; font-weight: 690; margin-bottom: 7px; color: #ede8d7; }
.input-wrap { display: flex; align-items: center; min-height: 48px; border: 1px solid #454a39; border-radius: 6px; background: #111610; transition: border-color .15s, box-shadow .15s; }
.input-wrap > svg { flex: 0 0 auto; width: 18px; height: 18px; margin-left: 12px; color: #b1a986; }
.input-wrap:focus-within { border-color: #d6ab66; box-shadow: 0 0 0 2px #d6ab6627; }
.input-wrap:has(input[aria-invalid="true"]) { border-color: var(--error); }
.input-wrap input { flex: 1; width: 100%; min-width: 0; padding: 11px 11px; min-height: 46px; outline: none; border: 0; background: transparent; color: var(--text); font-size: 14px; }
.input-wrap input::placeholder { color: #858778; opacity: 1; }
.reveal { display: grid; place-items: center; flex: 0 0 43px; min-height: 43px; padding: 0; background: none; border: 0; color: #aaa68e; cursor: pointer; }
.reveal:hover { color: var(--gold); }
.reveal:focus-visible { outline-offset: -4px; border-radius: 6px; }
.reveal svg { width: 18px; height: 18px; }
.eye-off, .reveal[aria-pressed="true"] .eye { display: none; }
.reveal[aria-pressed="true"] .eye-off { display: block; }
.field-hint, .field-error { margin: 6px 0 0; font-size: 11px; line-height: 1.45; }
.field-hint { color: var(--muted); }
.field-error { color: var(--error); }
.notice { padding: 9px 11px; margin: 0 0 12px; border: 1px solid #6a493f; border-radius: 5px; background: #382921; color: var(--error); line-height: 1.5; font-size: 13px; }
.submit { position: relative; width: 100%; min-height: 49px; display: grid; place-items: center; border: 1px solid #f0c88c; border-radius: 6px; padding: 10px 42px; background: linear-gradient(115deg, #edc382, #d9a653); box-shadow: inset 0 1px #ffe0a67a; color: #21180b; font-size: 15px; font-weight: 800; letter-spacing: .09em; cursor: pointer; }
.submit > svg { position: absolute; right: 14px; width: 19px; height: 19px; stroke-width: 1.8; }
.submit:not(:disabled):hover { background: linear-gradient(115deg, #f6d5a0, #e7b766); }
.submit:disabled { cursor: not-allowed; }
#register:not([data-submitting]) .submit:disabled { opacity: .75; }
#register[data-submitting] .submit { cursor: wait; }
.connection { display: flex; align-items: baseline; gap: 7px; min-height: 20px; margin-top: 9px; color: #c1bba8; font-size: 11px; line-height: 1.5; }
.connection-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #ae8755; }
.connection[data-state="ready"] .connection-dot { background: #9dc38c; }
.connection[data-state="ready"] { color: #b9c9ad; }
.connection button { padding: 0; border: 0; background: transparent; color: var(--gold); font-size: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.panel-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-top: 1px solid #3b4031; margin-top: 19px; padding-top: 15px; color: var(--muted); font-size: 12px; }
.panel-footer button { padding: 2px 0; border: 0; background: transparent; color: var(--gold); cursor: pointer; }
.panel-footer button:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-footer { display: flex; justify-content: space-between; gap: 14px; padding: 23px 1px 26px; color: #a19e87; font-size: 11px; line-height: 1.5; letter-spacing: .04em; }
.page-footer span { display: flex; align-items: center; gap: 9px; }
.page-footer b { display: inline-block; flex: 0 0 3px; width: 3px; height: 3px; background: #a08757; transform: rotate(45deg); }
.success { margin: 24px 0; }
.success-mark { display: grid; place-items: center; width: 48px; height: 48px; background: #30432a; color: #c1d8b3; border: 1px solid #5b7352; border-radius: 50%; }
.success h2, dialog h2 { margin: 12px 0 7px; font-size: 25px; }
.success p, dialog p, dialog li { color: #c9c7b7; font-size: 14px; line-height: 1.75; }
.success p { margin: 0; }
.account-receipt { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: #111610; font-size: 13px; }
.account-receipt dt { color: var(--muted); }
.account-receipt dd { margin: 0; overflow-wrap: anywhere; color: var(--gold); font-weight: 700; }
dialog { position: relative; width: min(420px, calc(100% - 34px)); padding: 28px; background: #20261b; color: var(--text); border: 1px solid #675b42; border-radius: 12px; box-shadow: 0 18px 65px #0009; }
dialog::backdrop { background: #0c100bd0; }
dialog ol { padding-left: 21px; margin: 15px 0; }
dialog li { padding-left: 4px; margin-bottom: 6px; }
dialog li::marker { color: var(--gold); }
dialog p { margin-bottom: 0; font-size: 13px; }
.dialog-close { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: #161b13; border: 1px solid #494d38; border-radius: 5px; font-size: 23px; line-height: 1; cursor: pointer; }
@media (max-width: 980px) {
  .topbar, .page { padding-left: 23px; padding-right: 23px; }
  .registration-layout { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .world-caption { padding-left: 30px; padding-right: 22px; }
  .game-logo { left: 28px; }
}
@media (max-width: 720px) {
  .topbar { min-height: 61px; padding: 0 16px; }
  .page { padding: 16px 13px 0; }
  .registration-layout { display: block; border-radius: 12px; }
  .world { min-height: clamp(259px, 66vw, 380px); }
  .world-image { object-position: 50% 47%; }
  .world-shade { background: linear-gradient(180deg, #1c281a9c, transparent 44%, #10160c15 49%, #10160cea 92%, #10160c 100%); }
  .world-frame { inset: 11px; }
  .game-logo { top: 17px; left: 19px; width: clamp(155px, 36vw, 205px); }
  .world-caption { padding: 56px 20px 24px; }
  .world-kicker { margin-bottom: 7px; font-size: 9px; }
  .world-title { font-size: clamp(25px, 6.4vw, 35px); }
  .world-description { margin-top: 6px; font-size: 11px; line-height: 1.6; letter-spacing: .02em; }
  .mobile-break { display: block; }
  .desktop-break, .world-index { display: none; }
  .panel { padding: 26px clamp(20px, 6vw, 43px) 22px; border-left: 0; border-top: 1px solid #5c5741; }
  .intro { margin-bottom: 22px; }
  .input-wrap input { font-size: 16px; }
  .page-footer { padding: 17px 2px; font-size: 10px; }
  .page-footer span { gap: 5px; }
}
@media (max-width: 360px) {
  .topbar-actions .guide-button { white-space: nowrap; }
  .topbar-actions .guide-button svg { display: none; }
  .world-description { max-width: 220px; }
  .page-footer span:last-child { display: none; }
}
