/* GMGNF public home: one offer, one participation path, two claim stages. */
:root {
  color-scheme: dark;
  --bg: #090d13;
  --surface: #111b23;
  --text: #eef3f9;
  --muted: #c2ced9;
  --line: #26353d;
  --green: #61efc1;
  --green-hover: #8af4d2;
  --red: #ff7c86;
  --green-tint: #61efc10d;
  --green-border: #61efc12e;
  --control-border: #58727f;
  --section-gap: 24px;
  --rail-width: 220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; }
.keep { white-space: nowrap; }
p { text-wrap: pretty; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -80px; left: 20px; padding: 10px 18px; background: var(--green); color: var(--bg); z-index: 2; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand img { width: 38px; height: 38px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); object-fit: contain; }
.brand > span { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 780; letter-spacing: -.8px; }
.brand small { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px; border: 1px solid var(--green-border); border-radius: 6px; background: var(--green-tint); color: var(--green); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .2px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-anchor { position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border-radius: 7px; color: var(--muted); line-height: 1.5; white-space: nowrap; }
.nav-highlight { color: var(--green); }
.nav-anchor:hover { background: #61efc11a; }
.nav-anchor:active { background: #61efc126; }
.nav-anchor:hover, .inline-link:hover, .footer a:hover { color: var(--green); }
.login { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 34px; margin-left: 4px; padding: 4px 14px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: var(--bg); font-size: 15px; font-weight: 650; line-height: 1.5; }
.mobile-login { display: none; text-decoration: none; }
.nav-anchor::before, .login::before { content: ""; position: absolute; inset: -6px 0; }
.login:hover { border-color: var(--green-hover); background: var(--green-hover); }
.login:active { border-color: #4edbad; background: #4edbad; }
.nav-anchor, .login, .invite-link, .contact-toggle { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 56px; align-items: center; padding: 24px 0 40px; }
.hero-offer, .overview { min-width: 0; }
.hero h1 { margin: 0 0 14px; font-size: 32px; font-weight: 650; line-height: 1.35; letter-spacing: -.8px; }
.hero-rate { display: block; margin-bottom: 16px; color: var(--green); font-size: clamp(96px, 9vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -6px; }
.hero-tagline { margin: 0; font-size: 18px; color: var(--muted); }
.overview { padding: 30px 28px; border: 1px solid var(--green-border); border-radius: 18px; background: linear-gradient(135deg, #122324, #101820); box-shadow: inset 0 1px 0 #ffffff04; }
.rebate-motion { margin: 0; }
.motion-values { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 16px; align-items: center; }
.motion-value { position: relative; min-width: 0; }
.motion-value span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.motion-value b { display: block; font-size: clamp(48px, 4.8vw, 64px); font-weight: 650; line-height: 1.15; letter-spacing: -2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.motion-value .motion-rebate { color: var(--green); }
.motion-arrow { align-self: end; padding-bottom: 7px; color: var(--muted); font-size: 24px; }
.motion-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 24px; }
.motion-track > span { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.motion-track i { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .6s ease; }
.motion-track .is-filled i { transform: scaleX(1); }
.motion-meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid #ffffff0b; color: var(--muted); }
.motion-example { display: block; font-size: 14px; line-height: 1.65; text-wrap: pretty; }
.networks { display: flex; align-items: center; gap: 24px; padding: 20px 0; border-block: 1px solid var(--line); }
.network-label { flex-shrink: 0; color: var(--muted); font-size: 13px; line-height: 24px; }
.network-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.chain { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; line-height: 24px; }
.chain img { object-fit: contain; flex-shrink: 0; }
.section { margin-top: var(--section-gap); }
.section-head { margin-bottom: 24px; }
.claim-guide-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.guide-entry { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--green); font-size: 14px; text-decoration: none; }
.guide-entry:hover { text-decoration: underline; }
h2 { margin: 0; font-size: 26px; font-weight: 650; line-height: 1.4; letter-spacing: -.4px; text-wrap: balance; }
h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.55; }
.start-steps { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.04fr) minmax(0, 1.25fr); gap: 20px; padding: 0; margin: 0; list-style: none; }
.start-steps > li { position: relative; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.start-steps > li h3 { min-height: 28px; padding-left: 42px; }
.step-number { position: absolute; left: 22px; top: 22px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; border: 1px solid var(--green-border); border-radius: 50%; background: var(--green-tint); color: var(--green); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.start-steps p { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.address-examples { display: grid; gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.address-example { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.address-status { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--green); }
.address-status path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.address-status.is-ineligible { color: var(--red); }
.invite-link { display: inline-flex; align-items: center; gap: 4px; margin-inline: 3px; padding: 1px 8px; border: 1px solid #61efc1b3; border-radius: 999px; background: #61efc11a; color: var(--green); font-size: inherit; font-weight: 600; line-height: 1.35; vertical-align: baseline; white-space: nowrap; text-decoration: none; cursor: pointer; }
.invite-link:hover { border-color: var(--green); background: #61efc124; color: var(--text); }
code { color: var(--text); font: 500 15px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.invite-copy { position: relative; display: inline; padding: 0; border: 0; background: none; color: var(--green); font-weight: 600; line-height: inherit; vertical-align: baseline; cursor: pointer; text-underline-offset: 3px; }
.invite-copy::before { content: ""; position: absolute; inset: -8px -4px; }
.invite-copy:hover { text-decoration: underline; }
.invite-copy code { color: inherit; font-size: 1em; font-weight: 700; user-select: text; }
.invite-copy.is-copied::after { content: "✓"; position: absolute; left: calc(100% + 6px); font: 600 12px/1.8 sans-serif; }
.inline-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; color: var(--green); font-size: 15px; text-decoration: none; }
.safety-note { display: flex; align-items: flex-start; gap: 14px; margin-top: 30px; padding: 20px 24px; border-left: 2px solid var(--line); background: var(--surface); border-radius: 0 8px 8px 0; }
.safety-note svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; color: var(--green); }
.safety-note strong { font-size: 15px; font-weight: 550; }
.safety-note p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.faq-heading { margin: 0; }
.claim-table { min-width: 0; padding-inline: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.claim-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; padding: 14px 0; }
.claim-row + .claim-row { border-top: 1px solid var(--line); }
.claim-period { min-width: 0; }
.claim-period h3 { font-size: 18px; }
.claim-period span { display: block; margin-top: 5px; color: var(--green); font-size: 14px; }
.claim-row p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.claim-emphasis { color: var(--text); font-size: inherit; font-weight: 700; line-height: inherit; }
.faq-section { margin-bottom: var(--section-gap); }
.faq-heading p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.faq-list { display: grid; min-width: 0; gap: 12px; }
details { min-width: 0; padding-inline: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
details[open] { border-color: #61efc166; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
summary:hover { color: var(--green); }
summary::-webkit-details-marker { display: none; }
.faq-symbol { position: relative; flex-shrink: 0; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.faq-symbol::before, .faq-symbol::after { content: ""; position: absolute; top: 10px; left: 6px; width: 10px; height: 1px; background: currentColor; }
.faq-symbol::after { transform: rotate(90deg); }
details[open] .faq-symbol::after { transform: rotate(0); }
details[open] .faq-symbol { border-color: var(--green-border); background: var(--green-tint); color: var(--green); }
details p { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.faq-negative { color: var(--red); }
.footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; padding: 25px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.copyright { justify-self: start; color: var(--text); font-weight: 550; }
.footer p { margin: 0; text-align: center; }
.footer a { flex-shrink: 0; text-decoration: none; }
.admin-contact { position: fixed; right: 24px; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 10; }
.contact-toggle { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--green); border-radius: 28px; background: var(--green); color: var(--bg); font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 24px #0005; }
.contact-toggle svg { width: 22px; height: 22px; }
.contact-toggle:hover { background: var(--text); border-color: var(--text); }
.contact-panel { inset: auto 24px calc(max(28px, env(safe-area-inset-bottom)) + 62px) auto; margin: 0; width: min(292px, calc(100vw - 36px)); max-height: calc(100dvh - 120px); overflow-y: auto; padding: 18px; border: 1px solid var(--green-border); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 16px 48px #0006; }
.contact-panel h2 { margin: 0 0 12px; color: var(--green); font-size: 16px; letter-spacing: 0; }
.contact-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }
.contact-item:hover { background: #61efc11a; }
.contact-item:focus-visible { outline-offset: 0; }
.contact-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 10px; color: var(--green); background: #61efc112; }
.contact-icon svg { width: 21px; height: 21px; }
.contact-item strong, .contact-item small { display: block; }
.contact-item strong { font-size: 15px; font-weight: 600; }
.contact-item small { color: var(--muted); font-size: 14px; user-select: text; }
.contact-action { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.contact-status { margin: 12px 6px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
#wechat-copy-label { padding: 2px 6px; border: 1px solid var(--green-border); border-radius: 6px; color: var(--green); }
@media (max-width: 1100px) {
  .start-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .start-steps > #address-rule { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .brand small { display: none; }
  .nav-links { gap: 2px; }
  .nav-anchor { padding-inline: 10px; }
  .hero { gap: 36px; }
  .hero h1 { font-size: 30px; }
  .overview { padding: 24px; }
  .motion-value b { font-size: clamp(36px, 4.6vw, 46px); letter-spacing: -1.5px; }
  .motion-values { gap: 10px; }
  .networks { gap: 22px; }
  .start-steps { gap: 20px; }
  .claim-row { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  .admin-contact { right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .contact-toggle { justify-content: center; width: 48px; height: 48px; gap: 0; padding: 0; border-radius: 50%; }
  .contact-toggle > span { display: none; }
  .contact-panel { right: 18px; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 62px); }
  .shell { width: calc(100% - 36px); }
  .nav { min-height: 76px; flex-wrap: wrap; gap: 6px 12px; }
  .brand > span { font-size: 21px; }
  .brand img { width: 32px; height: 32px; padding: 3px; }
  .nav-anchor { display: none; }
  .nav-links { margin-left: auto; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .login { min-height: 44px; margin-left: 0; padding-inline: 14px; }
  .login::before, .nav-anchor::before { content: none; }
  .home-nav { padding: 12px 0 8px; }
  .mobile-login { display: inline-flex; margin-left: auto; }
  .home-nav .nav-links { flex: 1 0 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .home-nav .nav-links .login { display: none; }
  .home-nav .nav-anchor { display: inline-flex; justify-content: center; min-height: 44px; padding: 4px; background: var(--surface); white-space: normal; text-align: center; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .hero h1 { font-size: 28px; }
  .hero-rate { font-size: clamp(88px, 24vw, 100px); margin-bottom: 14px; letter-spacing: -4px; overflow-wrap: anywhere; }
  .hero-tagline { font-size: 16px; }
  .overview { padding: 22px 20px; border-radius: 16px; }
  .motion-values { display: flex; flex-wrap: wrap; }
  .motion-value { flex: 1; min-width: max-content; }
  .motion-value span { position: static; display: block; margin-bottom: 10px; font-size: 14px; }
  .motion-value b { font-size: clamp(36px, 10.5vw, 52px); }
  .motion-track { margin-top: 22px; }
  .networks { display: block; padding-block: 20px; }
  .network-label { display: block; margin-bottom: 12px; }
  .network-list { gap: 12px 18px; }
  .chain { font-size: 13px; }
  .section { margin-top: 24px; }
  .section-head { margin-bottom: 20px; }
  h2 { font-size: 24px; letter-spacing: -.4px; }
  .start-steps { grid-template-columns: 1fr; gap: 14px; }
  .start-steps > #address-rule { grid-column: auto; }
  .start-steps > li { padding: 18px; }
  .start-steps > li h3 { min-height: 26px; padding-left: 38px; }
  .step-number { position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; margin: 0; }
  .start-steps p { margin-top: 8px; }
  .invite-link { min-height: 44px; vertical-align: middle; }
  .inline-link { margin-top: 5px; }
  .safety-note { margin-top: 26px; padding: 18px; }
  .claim-table { padding-inline: 18px; }
  .claim-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 14px; }
  .claim-row .keep { display: inline-block; max-width: 100%; white-space: normal; }
  .claim-period { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .claim-period h3 { font-size: 18px; }
  .claim-period span { flex-shrink: 0; margin: 0; font-size: 13px; }
  .faq-section { gap: 20px; }
  .faq-section { margin-bottom: 24px; }
  .faq-heading p { margin-top: 8px; }
  details { padding-inline: 18px; }
  summary { padding: 18px 0; gap: 16px; }
  details p { margin: 0 0 18px; }
  .footer { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; padding-block: 24px; font-size: 13px; }
  .footer p { grid-column: 1 / -1; grid-row: 2; line-height: 1.8; text-align: left; }
  .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  #contact-admin-inline { margin-inline: 2px; padding-inline: 4px; }
  .hero h1 { font-size: 26px; }
  .overview { padding-inline: 18px; }
  .motion-value b { font-size: clamp(32px, 10vw, 36px); }
  .motion-values { gap: 8px; }
  .claim-period { display: block; }
  .claim-period span { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-track i { transition: none; }
  .nav-anchor, .login, .invite-link, .contact-toggle { transition: none; }
}
