/* VENOM — wet black, oil-slick, title-sequence typography. Almost no color. */
:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --bg-metal: #101010;
  --ink: #edeae3;
  --muted: #a7a39a;
  --faint: #6e6a63;
  --acid: #c8c24a;
  --acid-ink: #0c0c00;
  --danger: #c45a5a;
  --ok: #c8c24a;
  --line: rgba(237, 234, 227, 0.12);
  --line-strong: rgba(237, 234, 227, 0.22);
  --metal-face: linear-gradient(180deg, #161616 0%, #0b0b0b 100%);
  --metal-inset:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65);
  --font: "Noto Sans SC", "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ui: "Outfit", "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Big Shoulders Display", "Noto Sans SC", sans-serif;
  --serif: "Instrument Serif", "Noto Serif SC", "Songti SC", serif;
  --serif-sc: "Noto Serif SC", "Songti SC", "Instrument Serif", serif;
  --max: 1280px;
  --radius: 3px;
  --pad: 28px;
  --demo-h: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
  overflow-x: hidden;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* Soft atmospheric oil in the far background — not a neon wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 82% 18%, rgba(40, 52, 46, 0.35), transparent 62%),
    radial-gradient(700px 480px at 70% 80%, rgba(36, 28, 44, 0.22), transparent 60%),
    radial-gradient(600px 400px at 8% 100%, rgba(20, 22, 18, 0.5), transparent 70%);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--acid);
  color: var(--acid-ink);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.fx-canvas,
.film-grain,
.vignette,
.frame {
  pointer-events: none;
}
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.film-grain {
  position: fixed;
  inset: -40%;
  width: 180%;
  height: 180%;
  z-index: 80;
  opacity: 0.07;
  background-image: url("img/grain.png");
  background-size: 256px 256px;
  mix-blend-mode: overlay;
  animation: grainShift 0.5s steps(5) infinite;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: radial-gradient(ellipse at 50% 42%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
.frame {
  position: fixed;
  inset: 14px;
  z-index: 75;
  border: 1px solid rgba(237, 234, 227, 0.07);
}

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  text-align: center;
  padding: 7px 16px;
  background: #0a0a0a;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

/* Top bar — quiet, like a fashion campaign header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 32px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
body:has(#demoBanner:not([hidden])) .topbar { top: var(--demo-h); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}
.brand img { width: 28px; height: 28px; display: block; }
.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.22em;
  line-height: 1;
}
.nav {
  display: flex;
  gap: 26px;
  flex: 1 1 auto;
  justify-content: center;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
}
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.mini-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 88px;
}
.mini-count-label {
  font-size: 9px;
  color: var(--faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--ui);
}
.mini-count strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

/* Buttons — sharp, no pills, no glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  color: var(--ink);
}
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
}
.btn-acid {
  background: var(--acid);
  color: var(--acid-ink);
}
.btn-acid:hover:not(:disabled) { background: #d4ce58; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 11px 21px;
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--ink);
  background: rgba(237, 234, 227, 0.04);
}
#connectBtn.on {
  border-color: var(--acid);
  color: var(--acid);
}
.btn-block { width: 100%; }

/* Hero — full viewport title card */
.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 58px);
  display: flex;
  align-items: flex-end;
  padding: 48px 32px 56px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.28) 58%, transparent 76%);
}
.hero-ink {
  position: absolute;
  inset: 0 0 0 0;
  z-index: 0;
  pointer-events: none;
}
.hero-ornament {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 1;
  filter: contrast(1.08) saturate(0.85);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--faint);
  letter-spacing: 0.28em;
  font-size: 11px;
  font-family: var(--ui);
  font-weight: 400;
  text-transform: uppercase;
}
.hero .eyebrow { margin-bottom: 8px; }

.hero-lockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: end;
}
h1 { margin: 0; }
.wordmark {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(92px, 22vw, 300px);
  line-height: 0.78;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--ink);
  margin-left: -0.04em;
  background-image: linear-gradient(
    105deg,
    #edeae3 0%,
    #edeae3 42%,
    #d8e4d0 48%,
    #c4b4d8 51.5%,
    #c8c24a 53.5%,
    #edeae3 58%,
    #edeae3 100%
  );
  background-size: 220% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 22s ease-in-out infinite;
}

.cine {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0;
}
.cine-zh {
  margin: 8px 0 0;
  font-family: var(--serif-sc);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--muted);
  letter-spacing: 0.08em;
}

.lede {
  color: var(--muted);
  font-size: 16px;
  margin: 28px 0 0;
  max-width: 36em;
  font-weight: 400;
}
.hero-intro {
  margin: 20px 0 0;
  max-width: 34em;
}
.hero-intro p {
  margin: 0 0 0.75em;
  font-weight: 400;
}
.hero-intro p:last-child { margin-bottom: 0; }
.hero-intro p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}
html[data-lang="zh"] .hero-intro p {
  font-family: var(--serif-sc);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

/* Countdown as end-credits lockup, not a card */
.countdown-lockup {
  min-width: 280px;
  padding: 0 0 10px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
  align-self: end;
}
.count-kicker {
  margin: 0 0 10px;
  color: var(--faint);
  letter-spacing: 0.22em;
  font-size: 10px;
  font-family: var(--ui);
  text-transform: uppercase;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  width: max-content;
  max-width: 100%;
  justify-content: start;
}
.count-cell {
  text-align: left;
  padding: 0 18px 0 0;
  margin-right: 18px;
  border-right: 1px solid var(--line);
}
.count-cell:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.count-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px);
  color: var(--ink);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.count-lbl {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.2em;
  font-family: var(--ui);
  text-transform: uppercase;
}
.count-note {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
  max-width: 28em;
}

.hero-cta { display: flex; gap: 14px; margin: 32px 0 0; flex-wrap: wrap; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.specs li {
  padding: 12px 22px 0 0;
  margin-right: 22px;
  border-right: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: var(--ui);
}
.specs li:last-child {
  border-right: 0;
  margin-right: 0;
}

.open-source {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 36px 0 0;
  font-size: 11px;
  font-family: var(--ui);
  letter-spacing: 0.1em;
  color: var(--faint);
}
.open-source span { color: var(--faint); }
.open-source a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.open-source a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Sections */
.section, #alloc {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 32px 12px;
  scroll-margin-top: 80px;
}
.sec-head { margin-bottom: 36px; max-width: 46em; }
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
}
h2 em, .sec-head em {
  font-family: var(--serif-sc);
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
}
.sec-sub { color: var(--muted); margin: 14px 0 0; font-size: 15px; }

/* Dark luxury modules — inset metal, tight radius, no glow */
.ticket-booth,
.wallet-card,
.invite-link-card,
.board-card,
.market-card,
.tweet-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--metal-face);
  box-shadow: var(--metal-inset);
}

.round-progress,
.invite-nums,
.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.round-progress { padding: 28px 0 20px; }
.rp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 72px;
  margin-bottom: 32px;
}
.rp-stats span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-family: var(--ui);
  text-transform: uppercase;
}
.rp-stats strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  color: var(--ink);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  word-break: break-all;
  line-height: 1.1;
}
.rp-stats .prog-pct { color: var(--acid); }
.rp-track { padding: 8px 20px 0; }
.rp-line-wrap { position: relative; min-height: 72px; }

/* Progress as a thin slit of light */
.rp-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 1px;
  background: rgba(237, 234, 227, 0.16);
  overflow: visible;
  z-index: 0;
}
.rp-line i {
  display: block;
  height: 2px;
  width: 0;
  margin-top: -0.5px;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(200, 194, 74, 0.35);
  transition: width 0.6s ease;
}
.rp-line.over i { background: var(--ink); box-shadow: none; }
.rp-nodes {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  height: 72px;
}
.rp-nodes li {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transform: translateX(-50%);
  width: max-content;
}
.rp-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  border: 1px solid var(--muted);
  background: var(--bg);
  transform: rotate(45deg);
  margin-top: 4px;
}
.rp-nodes li.on .rp-dot {
  background: var(--acid);
  border-color: var(--acid);
}
.rp-nodes li.now .rp-dot {
  background: var(--ink);
  border-color: var(--ink);
}
.rp-nodes li b { font-size: 11px; font-weight: 500; font-family: var(--ui); letter-spacing: 0.12em; }
.rp-nodes li span { color: var(--faint); font-size: 11px; }
.rp-nodes li.on b { color: var(--acid); }
.rp-nodes li.now b { color: var(--ink); }
.rp-cap {
  color: var(--faint);
  font-size: 12px;
  margin: 8px 0 0;
  line-height: 1.65;
}

.mint-grid, .invite-grid, .market-grid, .tweet-grid {
  display: grid;
  gap: 16px;
}
.mint-grid { grid-template-columns: 1.5fr 0.9fr; }
.invite-grid, .tweet-grid { grid-template-columns: 1fr 1fr; }
.market-grid { grid-template-columns: 1fr; max-width: 720px; }

.ticket-booth { padding: 6px; }
.booth-window { padding: 22px 22px 8px; }
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.stat-lbl {
  display: block;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-family: var(--ui);
  text-transform: uppercase;
}
.stat-val {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.stat-val.accent-acid { color: var(--acid); }
.stat-hint { display: block; color: var(--faint); font-size: 12px; margin-top: 6px; }

.ticket-picker { padding: 8px 22px 22px; }
.picker-label { color: var(--muted); font-size: 13px; margin: 12px 0; }
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.presets button {
  min-width: 72px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.presets button.active,
.presets button[aria-pressed="true"] {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--acid-ink);
}
.amt-field, .ref-field { display: block; margin: 12px 0; }
.amt-field span, .ref-field span {
  display: block;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  font-family: var(--ui);
  text-transform: uppercase;
}
.amt-field input, .ref-field input, .link-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070707;
  color: var(--ink);
  padding: 11px 12px;
  font-family: var(--ui);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.amt-field input:focus, .link-row input:focus {
  outline: 1px solid var(--acid);
  outline-offset: 0;
  border-color: var(--acid);
}
.ref-note, .fineprint, .board-split {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}
.mint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}
.status {
  min-height: 1.4em;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.fineprint code, .faq code, .board-split code, .footer code, .foot-ca code, .kv dd {
  font-family: var(--ui);
  font-size: 12px;
  word-break: break-all;
}

.wallet-card, .invite-link-card, .board-card, .market-card, .tweet-card { padding: 24px; }
.wallet-card h3, .invite-link-card h3, .board-card h3, .market-card h3, .tweet-card h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.kv { margin: 0 0 16px; }
.kv div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.kv dt { color: var(--faint); font-size: 11px; letter-spacing: 0.1em; font-family: var(--ui); }
.kv dd { margin: 0; color: var(--ink); }

.invite-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 28px;
}
.big-num {
  padding: 28px 24px 28px 0;
  margin-right: 24px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.big-num:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.big-num span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-family: var(--ui);
  text-transform: uppercase;
}
.big-num strong {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
}
.big-num em { font-style: normal; color: var(--muted); font-size: 12px; }
.big-num.remain strong { color: var(--ink); }

.link-row { display: flex; gap: 8px; margin: 12px 0; }
.link-row input { flex: 1; }
.board { list-style: none; margin: 0; padding: 0; }
.board li {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.board .rank { font-family: var(--display); font-weight: 800; color: var(--muted); letter-spacing: 0.06em; }
.board .empty {
  color: var(--faint);
  grid-template-columns: 1fr;
  text-align: left;
  padding: 18px 0;
}
.board-mine { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.mm-phase {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.mm-note, #pancakeHint { color: var(--muted); font-size: 14px; }
#pancakeBtn { margin: 8px 0 12px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.m {
  padding: 24px 24px 24px 0;
  margin-right: 24px;
  border-right: 1px solid var(--line);
}
.m:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.m span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-family: var(--ui);
  text-transform: uppercase;
}
.m b {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.m small { color: var(--muted); font-size: 12px; }
.m.hl b { color: var(--acid); }

.faq details {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  padding: 18px 0;
  font-size: 16px;
  list-style: none;
  font-family: var(--font);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--faint);
  font-family: var(--ui);
  font-weight: 300;
}
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0 0 18px; max-width: 52em; }
.faq code { color: var(--ink); }

.footer {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 72px auto 0;
  padding: 40px 32px 80px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ink);
}
.foot-brand strong {
  font-family: var(--display);
  letter-spacing: 0.2em;
  font-weight: 800;
  font-size: 14px;
}
.foot-brand p { margin: 2px 0 0; color: var(--faint); font-size: 11px; letter-spacing: 0.08em; }
.foot-ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot-ca a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-ca a:hover { color: var(--ink); }
.foot-ca .btn { padding: 6px 12px; font-size: 11px; }
.social {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin: 16px 0 0;
}
.copy { color: var(--faint); letter-spacing: 0.12em; font-size: 11px; }

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--metal-inset);
}
.toast b {
  display: block;
  color: var(--acid);
  font-family: var(--ui);
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}
.toast span { font-size: 13px; color: var(--ink); }

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-1.4%, 0.8%); }
  40% { transform: translate(1.1%, -1.2%); }
  60% { transform: translate(-0.6%, 1.5%); }
  80% { transform: translate(1.8%, 0.4%); }
  100% { transform: translate(0, 0); }
}
@keyframes inkDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.4%, 1.6%, 0) scale(1.045); }
}
@keyframes sheen {
  0%, 72% { background-position: 0% 0; }
  88% { background-position: 100% 0; }
  100% { background-position: 100% 0; }
}

:focus-visible {
  outline: 1px solid var(--acid);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .rp-line i { transition: none; }
  .film-grain, .hero-ornament, .wordmark { animation: none; }
  .wordmark {
    background: none;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
  }
  .film-grain { opacity: 0.045; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 148px; }
  .section, #alloc { scroll-margin-top: 148px; }
  .hero-lockup, .mint-grid, .invite-grid, .market-grid, .tweet-grid, .metrics, .invite-nums {
    grid-template-columns: 1fr;
  }
  .hero { padding: 36px 20px 48px; min-height: calc(100svh - 96px); align-items: flex-end; }
  .hero-ink { inset: 8% -12% -8% 0; opacity: 0.9; }
  .wordmark { font-size: clamp(88px, 28vw, 200px); }
  .countdown-lockup {
    border-left: 0;
    padding-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    min-width: 0;
  }
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .nav {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 18px;
    order: 3;
    flex-basis: 100%;
    padding: 6px 0 2px;
    -webkit-overflow-scrolling: touch;
  }
  .nav a { white-space: nowrap; }
  .section, #alloc, .footer { padding-left: 20px; padding-right: 20px; }
  .big-num, .m {
    border-right: 0;
    margin-right: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .m:nth-child(3n), .m:nth-child(-n+3), .m:nth-child(n+4) {
    border-right: 0;
    margin-right: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .metrics, .invite-nums { border-bottom: 0; }
  .frame { inset: 8px; }
}

@media (max-width: 640px) {
  .mini-count { display: none; }
  .stat-row, .board li { grid-template-columns: 1fr; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .link-row { flex-direction: column; }
  .hero, .section, #alloc, .footer, .topbar { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 28px; padding-bottom: 40px; }
  .wordmark { font-size: clamp(86px, 32vw, 160px); letter-spacing: -0.05em; }
  .cine { font-size: 22px; }
  .count-num { font-size: 40px; }
  .count-cell { padding-right: 12px; margin-right: 12px; }
  .specs li {
    flex: 1 1 100%;
    border-right: 0;
    margin: 0;
    padding: 10px 0 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }
  .section, #alloc { padding-top: 72px; }
  h2 { font-size: clamp(30px, 10vw, 44px); }
}



.tweet-card #eligStats { margin-top: 16px; }
.tweet-step-locked { opacity: 0.62; }
/* Language switch: one language visible at a time */
[data-i] { display: none !important; }
html[data-lang="en"] [data-i="en"]:not([hidden]),
html[data-lang="zh"] [data-i="zh"]:not([hidden]) { display: revert !important; }
[hidden],
[hidden] [data-i] { display: none !important; }

.lang-switch {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lang-switch button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--faint);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.lang-switch button[data-lang="zh"] {
  letter-spacing: 0.12em;
  text-transform: none;
}
.lang-switch button[aria-pressed="true"] { color: var(--ink); }
.lang-switch button:hover { color: var(--ink); }
.lang-sep { color: var(--line-strong); pointer-events: none; }

html[data-lang="zh"] .cine {
  font-family: var(--serif-sc);
  font-style: normal;
  letter-spacing: 0.04em;
}
html[data-lang="zh"] .eyebrow {
  letter-spacing: 0.16em;
  text-transform: none;
}
html[data-lang="zh"] .count-lbl { text-transform: none; letter-spacing: 0.2em; }
html[data-lang="en"] h2 em,
html[data-lang="en"] .sec-head em {
  font-family: var(--serif);
  font-style: italic;
}
html[data-lang="zh"] h2 em,
html[data-lang="zh"] .sec-head em {
  font-family: var(--serif-sc);
  font-style: normal;
}
.count-note .tz { display: block; margin-top: 4px; }

@media (max-width: 720px) {
  .lang-switch { letter-spacing: 0.12em; }
}

.tweet-tx {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}
.tweet-tx a { color: inherit; }

.tweet-template { margin-top: 24px; padding: 24px; }
.tweet-tpl { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 15px; line-height: 1.7; color: var(--ink, #EDEAE3); background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 12px 0 16px; }
