:root {
  --yellow: #ffd400;
  --ink: #111;
  --paper: #fffdf7;
  --muted: #626262;
  --line: rgba(17, 17, 17, .12);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
.shell { width: min(820px, calc(100% - 40px)); margin: 0 auto; }
header { border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav img { width: 128px; display: block; }
.back { font-size: 14px; font-weight: 750; text-decoration: none; }
main { padding: 72px 0 96px; }
.eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--yellow);
  font-size: 12px;
  font-weight: 800;
}
h1 { margin: 28px 0 16px; font-size: clamp(42px, 8vw, 72px); line-height: 1; }
h2 { margin: 48px 0 12px; font-size: 25px; }
h3 { margin: 30px 0 8px; font-size: 18px; }
p, li { color: var(--muted); font-size: 16px; line-height: 1.8; }
.lead { max-width: 680px; font-size: 19px; }
.updated { margin-top: 22px; font-size: 13px; color: var(--muted); }
.en { margin-top: 72px; padding-top: 48px; border-top: 2px solid var(--ink); }
.notice { margin: 30px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.links a { font-weight: 800; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.invite-main { max-width: 720px; }
.invite-card { margin-top: 34px; padding: 30px; border: 2px solid var(--ink); background: #fff; box-shadow: 7px 7px 0 var(--ink); }
.invite-card h2, .invite-help h2 { margin: 0 0 12px; }
.invite-code { margin: 0; color: var(--ink); font-size: 28px; font-weight: 800; letter-spacing: .08em; overflow-wrap: anywhere; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.invite-button { min-height: 48px; padding: 12px 17px; border: 2px solid var(--ink); border-radius: 0; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.invite-button.primary { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.invite-button.secondary { background: #fff; }
.invite-button[aria-disabled="true"], .invite-button:disabled { cursor: not-allowed; opacity: .55; }
.copy-status { min-height: 29px; margin: 16px 0 0; font-size: 14px; }
.invite-help { margin-top: 54px; }
.wechat-guide[hidden] { display: none; }
.is-wechat { min-height: 100dvh; overflow: hidden; background: var(--paper); }
.is-wechat > header, .is-wechat > .invite-main { display: none; }
.wechat-guide { position: fixed; z-index: 1000; inset: 0; overflow-y: auto; background: var(--paper); }
.wechat-guide-pointer { position: fixed; z-index: 2; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 104px; height: 70px; color: var(--ink); pointer-events: none; }
.wechat-guide-pointer span { position: absolute; top: 24px; right: 48px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.wechat-guide-pointer i { position: absolute; top: 10px; right: 4px; width: 52px; height: 3px; border-radius: 2px; background: var(--yellow); transform: rotate(-34deg); transform-origin: right center; }
.wechat-guide-pointer i::after { content: ""; position: absolute; top: -5px; right: -1px; width: 10px; height: 10px; border-top: 3px solid var(--yellow); border-right: 3px solid var(--yellow); transform: rotate(34deg); }
.wechat-guide-content { width: min(100% - 40px, 440px); min-height: 100dvh; margin: 0 auto; padding: max(104px, calc(env(safe-area-inset-top) + 88px)) 0 max(28px, env(safe-area-inset-bottom)); }
.wechat-guide-logo { display: block; width: 122px; height: auto; }
.wechat-guide-kicker { margin: 30px 0 10px; color: var(--ink); font-size: 13px; font-weight: 800; }
.wechat-guide-content h1 { max-width: 360px; margin: 0; font-size: 40px; line-height: 1.12; }
.wechat-guide-summary { margin: 18px 0 30px; font-size: 16px; line-height: 1.65; }
.wechat-guide-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.wechat-guide-steps li { display: grid; grid-template-columns: 38px 1fr; align-items: center; min-height: 62px; padding: 11px 14px; border: 1.5px solid var(--ink); background: #fff; }
.wechat-guide-steps li > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 900; }
.wechat-guide-steps p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.45; }
.wechat-guide-code { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 15px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wechat-guide-code div { min-width: 0; }
.wechat-guide-code small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.wechat-guide-code strong { display: block; overflow-wrap: anywhere; font-size: 20px; letter-spacing: .06em; }
.wechat-guide-code button { flex: 0 0 auto; min-width: 64px; min-height: 38px; padding: 8px 12px; border: 1.5px solid var(--ink); background: var(--yellow); color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.wechat-copy-status { min-height: 24px; margin: 8px 0 0; font-size: 13px; text-align: right; }
@media (max-width: 380px) {
  .wechat-guide-content { width: min(100% - 28px, 440px); padding-top: max(92px, calc(env(safe-area-inset-top) + 76px)); }
  .wechat-guide-content h1 { font-size: 34px; }
  .wechat-guide-summary { margin-bottom: 22px; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 820px); }
  main { padding-top: 52px; }
  .nav img { width: 110px; }
  .invite-card { padding: 22px; }
}
