:root {
  color-scheme: dark;
  --night: #141518;
  --panel: #1E2026;
  --panel-hi: #2A2D35;
  --line: #2E3139;
  --gold: #F6D27A;
  --gold-2: #E5A83B;
  --ice: #F3F2EF;
  --mist: #A3A6AE;
  --ok: #3FBF7F;
  --bad: #FF6B6B;
  --dot: #ffffff10;
  --glow: #e5a83b27;
  --gold-fill: linear-gradient(110deg, #F6D27A, #E5A83B);
  --headline: linear-gradient(105deg, var(--gold), var(--gold-2));
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --night: #F5F3EE;
    --panel: #FFFFFF;
    --panel-hi: #F0EDE6;
    --line: #E2DED4;
    --gold: #B8862A;
    --gold-2: #C9962E;
    --ice: #17181C;
    --mist: #6B6E76;
    --dot: #7a5b251b;
    --glow: #e5a83b30;
    --headline: linear-gradient(105deg, #76501a, #996313);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ice);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: var(--ice); text-decoration-color: var(--gold); text-underline-offset: .2em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.orb {
  position: relative;
  width: var(--orb-size);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7dd 0 8%, #f6d27a 18%, #e5a83b66 40%, #1b1406 66%), #201704;
  box-shadow: 0 0 0 1px #f6d27a66, 0 0 0 12px #f6d27a13, 0 0 60px #e5a83b55;
  animation: orb-pulse 5s ease-in-out infinite;
}

.orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1.5px solid transparent;
  border-top-color: #F6D27A;
  border-right-color: #f6d27a75;
  border-radius: 50%;
  animation: orbit 14s linear infinite;
}

@keyframes orb-pulse {
  0%, 100% { scale: .98; }
  50% { scale: 1.035; filter: brightness(1.12); }
}

@keyframes orbit {
  from { transform: rotate(-36deg); }
  to { transform: rotate(324deg); }
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover, .btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 27px #e5a83b45;
}

.btn:active { transform: translateY(-1px) scale(.98); }

html[data-lang="zh"] .le, html:not([data-lang="zh"]) .lz { display: none !important; }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 480px 330px at 50% 133px, var(--glow), transparent 76%),
    radial-gradient(circle, var(--dot) .75px, transparent 1px) center top / 16px 16px,
    var(--night);
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(13px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
}

.lang {
  display: flex;
  width: fit-content;
  margin-left: auto;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.lang button {
  min-height: 40px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-size: .875rem;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.lang button:hover, .lang button:active { color: var(--ice); transform: translateY(-1px); }
html[data-lang="zh"] [data-set="zh"], html:not([data-lang="zh"]) [data-set="en"] {
  background: var(--panel-hi);
  color: var(--ice);
  font-weight: 700;
}

.hero { margin: 19px 0 23px; text-align: center; animation: enter .55s ease both; }
.hero .orb { --orb-size: 79px; margin-bottom: 23px; }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 11vw, 3.35rem); line-height: 1.05; letter-spacing: -.045em; }
.tag {
  margin: 6px 0 0;
  background: var(--headline);
  background-clip: text;
  color: transparent;
  font-size: 1.125rem;
  font-weight: 650;
}

.feat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 18px;
  color: var(--mist);
  font-size: .875rem;
  line-height: 1.32;
  text-align: center;
  animation: enter .55s .08s ease both;
}
.feat > div { padding: 10px 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }

.gauge-defs { position: absolute; }
.gauge {
  display: block;
  width: 31px;
  height: 31px;
  margin: 0 auto 6px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card { margin-bottom: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }

.btn {
  width: 100%;
  min-height: 49px;
  color: #1a1307;
  background: var(--gold-fill);
  box-shadow: 0 5px 18px #e5a83b22;
}
.btn svg { flex: none; width: 20px; height: 20px; }
.btn:not([hidden]) + .btn { margin-top: 8px; }

.qr { display: grid; justify-items: center; }
.qr img { max-width: 100%; height: auto; padding: 7px; border-radius: 11px; background: white; }
.note { margin: 10px 0 0; color: var(--mist); font-size: .875rem; text-align: center; }
.note.first { margin: 0 0 12px; color: var(--ice); font-size: 1rem; }
.note.signup { margin: 16px 0 5px; }
footer { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 16px; font-size: .875rem; }
footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--mist); }
h2 { margin: 0 0 10px; font-size: 1.0625rem; }
.steps { margin: 0; padding-inline-start: 1.4em; }
.steps li { padding: 8px 0 8px 4px; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::marker { color: var(--gold); font-weight: 700; }

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.reveal-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal-ready .reveal.in, .reveal-ready .reveal:focus-within { opacity: 1; transform: none; }
