:root {
  --bg: #090909;
  --card: #141414;
  --text: #f6f3ee;
  --muted: #aaa49c;
  --line: rgba(255, 255, 255, 0.1);
  --red: #ff3b30;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html[lang="zh-Hans"] body,
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] button {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Manrope", sans-serif;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 420;
  line-height: 1.5;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.bar, .end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
}
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(9, 9, 9, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { font-family: var(--serif); font-size: 28px; letter-spacing: -0.03em; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 750;
  white-space: nowrap;
}
.btn.big { min-height: 52px; padding: 0 22px; }
.quiet { color: var(--muted); font-weight: 580; }

.cover {
  position: relative;
  min-height: calc(100dvh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}
.cover-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 28% center;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0.05) 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 30%);
}
.cover-copy {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  margin: 0 7vw 0 auto;
  padding: 64px 0 56px;
}
.cover .quiet { color: #f3efe8; }
.cover h1 { text-wrap: balance; }

main { width: min(1080px, 100%); margin: 0 auto; padding: 8px 20px 10px; }
.hero { display: grid; gap: 28px; }
.eyebrow {
  margin: 0 0 8px;
  color: #ffb2ad;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; }
h1 { margin: 0 0 12px; font-size: clamp(46px, 12vw, 84px); line-height: 0.92; }
h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; }
.lede, .paths p, .pass p, .creator p, .faq p, .end p { color: var(--muted); }
.lede { margin: 0 0 20px; max-width: 38rem; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.facts { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts strong, .facts span { display: block; }
.facts span { color: var(--muted); font-size: 14px; }

.stage { position: relative; margin: 0; min-height: 460px; }
.phone {
  position: relative;
  width: min(260px, 70vw);
  margin: 24px auto 0;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  overflow: hidden;
  border: 8px solid #1c1c1c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.phone img, .back { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.back {
  position: absolute;
  width: 120px;
  height: 168px;
  border-radius: 16px;
  object-fit: cover;
  opacity: 0.9;
}
.b1 { left: 8px; top: 36px; transform: rotate(-8deg); }
.b2 { right: 8px; top: 70px; transform: rotate(8deg); }
figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; text-align: center; }

.paths, .pass, .creator, .faq { margin-top: 22px; }
.paths { display: grid; gap: 12px; }
.paths a, .pass, .creator, .faq {
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}
.pass, .end { display: grid; gap: 16px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 750; }
.end {
  display: grid;
  justify-items: start;
  margin-top: 28px;
  padding: 36px 20px calc(36px + env(safe-area-inset-bottom));
  background: #120706;
}
.end .btn { width: 100%; }

@media (max-width: 800px) {
  .cover { min-height: calc(100dvh - 64px - env(safe-area-inset-top)); }
  .cover-still { object-position: 20% 35%; }
  .cover::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 18%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.92) 78%);
  }
  .cover-copy { padding: 0 20px calc(28px + env(safe-area-inset-bottom)); }
}

@media (min-width: 800px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .paths { grid-template-columns: repeat(3, 1fr); }
  .pass { grid-template-columns: 1fr auto; align-items: center; }
  .stage { min-height: 560px; }
  .phone { margin-top: 48px; }
  .end .btn { width: auto; }
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.72);
}
.gate[hidden] { display: none !important; }
body.gate-open { overflow: hidden; }
.gate-card {
  position: relative;
  width: min(440px, 100%);
  padding: 28px 22px 22px;
  border-radius: 24px;
  background: #161616;
  border: 1px solid var(--line);
}
.gate-card h2 { font-size: 36px; }
.gate-copy { margin: 0 0 18px; color: var(--muted); }
.gate-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.human {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #101010;
  cursor: pointer;
  font-weight: 750;
  font-size: 16px;
}
.box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  flex: none;
}
.human.checking .box { border-color: transparent; border-top-color: #fff; animation: spin 0.7s linear infinite; border-width: 2px; border-style: solid; border-color: rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; }
.human.passed { border-color: #3ddc84; }
.human.passed .box { background: #3ddc84; border-color: #3ddc84; color: #06210f; }
.human.passed .box::after { content: "✓"; font-size: 16px; }
.challenge { margin-top: 16px; }
.challenge[hidden] { display: none !important; }
.prompt { margin: 0 0 10px; font-weight: 750; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.check-grid button {
  aspect-ratio: 1;
  padding: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.check-grid img { width: 100%; height: 100%; object-fit: cover; }
.check-grid button.bad { border-color: var(--red); }
.check-grid button.good { border-color: #3ddc84; }
.check-status { min-height: 1.4em; margin: 10px 0 0; color: #ffb2ad; font-size: 14px; }
.gate-timer { display: grid; justify-items: center; gap: 8px; margin-top: 18px; }
.gate-timer[hidden] { display: none !important; }
.count-ring { position: relative; width: 88px; height: 88px; }
.count-ring svg { width: 88px; height: 88px; }
.count-track, .count-arc { fill: none; stroke-width: 3; }
.count-track { stroke: rgba(255, 255, 255, 0.12); }
.count-arc {
  stroke: var(--red);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 36px 36px;
  stroke-dasharray: 188.5;
}
.count-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.count-caption { margin: 0; color: var(--muted); text-align: center; }
.stage, .phone { cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .gate { padding: 12px; }
  .gate-card { width: 100%; max-height: calc(100dvh - 24px); overflow: auto; }
}
