:root {
  color-scheme: dark;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #111119;
  color: #f5ecdf;
  --muted: #b4a8af;
  --line: #403440;
  --gold: #edc68f;
  --surface: #211b28;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh; margin: 0;
  background: radial-gradient(ellipse at 15% 0%, #312338 0, transparent 48%), #111119;
}
.top { border-bottom: 1px solid var(--line); padding: 1.1rem max(5vw, calc((100vw - 1060px) / 2)); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 750; color: inherit; }
.brand small { font-size: .76rem; padding-left: .65rem; border-left: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.mark, .moon { display: inline-block; border-radius: 50%; box-shadow: inset 7px -5px 0 var(--gold); width: 20px; height: 20px; transform: rotate(-15deg); }
main { width: min(1060px, 90vw); margin: 0 auto; padding: clamp(2.5rem, 9vh, 6rem) 0 4rem; }
.auth { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 6vw, 5.5rem); align-items: center; }
.moon { width: 57px; height: 57px; box-shadow: inset 14px -9px 0 var(--gold), -8px 10px 39px #ab6c5540; margin-bottom: 1.2rem; }
h1 { font-size: clamp(2rem, 4.2vw, 3.7rem); font-weight: 740; line-height: 1.1; margin: 0 0 .9rem; }
h2 { margin: 0 0 1.15rem; font-size: 1.28rem; }
p { line-height: 1.6; margin: 0; color: var(--muted); }
.benefits { margin-top: 2.25rem; display: grid; gap: .6rem; }
.benefits > div { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; padding: .85rem 0; }
.benefits strong { color: var(--gold); font-size: .97rem; }
.benefits span, .hint { color: var(--muted); font-size: .89rem; }
.panel { border-radius: 16px; background: linear-gradient(150deg, #2a2230, var(--surface)); border: 1px solid var(--line); padding: clamp(1.2rem, 4vw, 2rem); }
.auth-form, .redeem { display: grid; gap: 1.05rem; }
.auth-form h2 { margin-bottom: .15rem; }
label { display: grid; gap: .45rem; font-size: .9rem; color: #e4d9dd; }
input, button { font: inherit; border: 1px solid transparent; border-radius: 7px; min-height: 44px; }
input { width: 100%; padding: .65rem .75rem; background: #17141d; border-color: #4b3f4c; color: #f5ecdf; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
input::placeholder { color: #9d929d; }
button { background: var(--gold); color: #21150e; font-weight: 720; padding: .65rem 1.05rem; cursor: pointer; }
button:hover { background: #ffdaa6; }
a { color: var(--gold); text-underline-offset: .22em; }
.switch { text-align: center; margin-top: .2rem; font-size: .9rem; }
.dashboard-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.dashboard-title h1 { font-size: clamp(2rem, 4vw, 3rem); }
.secondary { background: transparent; border-color: #67546a; color: var(--gold); }
.secondary:hover { background: #352a3a; }
.zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.zone { display: flex; flex-direction: column; }
.level { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; margin-bottom: .9rem; }
.level strong { color: var(--gold); font-size: 1.85rem; line-height: 1; }
.level span { margin-left: auto; font-size: .82rem; }
.zone ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.zone li { display: flex; justify-content: space-between; gap: .65rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); font-size: .91rem; }
.zone li div { text-align: right; }
.zone li small { color: var(--muted); display: block; font-size: .74rem; margin-top: .25rem; }
.status { padding: .2rem .47rem; border-radius: 4px; font-size: .8rem; display: inline-block; }
.status.active { color: #f4d19f; background: #49382a; }
.status.neutral { color: var(--muted); background: #352b39; }
.redeem { grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .65rem; margin-top: auto; }
.hint { margin-top: auto; }
.notice { border-left: 3px solid; padding: .68rem .75rem; margin: 0 0 1rem; font-size: .91rem; }
.auth-form .notice { margin-bottom: 0; }
.notice.error { color: #ffc2c5; border-color: #f39aab; background: #472833; }
.notice.success { color: #c5ebce; border-color: #92caa1; background: #243a31; }
@media (max-width: 700px) {
  .auth, .zones { grid-template-columns: 1fr; }
  .auth { gap: 1.4rem; }
  .moon { width: 37px; height: 37px; box-shadow: inset 10px -6px 0 var(--gold); margin-bottom: .65rem; }
  .benefits { margin-top: 1.1rem; gap: 0; }
  .benefits > div { padding: .65rem 0; }
}
