/* ==========================================================================
   AI Agent Mint · 黑黄高对比（neo-brutalist）样式
   设计要点：黑底 + 亮黄强调 + 黑粗描边 + 硬阴影 + 超大展示字 + 编号分区
   ========================================================================== */

:root {
  --yellow: #ffd60a;
  --yellow-2: #ffe45c;
  --yellow-deep: #e8b800;
  --ink: #111111;
  --ink-2: #1c1c1c;
  --paper: #fffcf0;
  --paper-2: #fff6d8;
  --orange: #ff8a00;
  --red: #e5422b;
  --green: #17a34a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --r: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* 黑色画布：正文默认浅色，浅色卡片里再单独压回黑字 */
  color: #f7f3e6;
  background-color: #0c0b09;
  background-image:
    radial-gradient(900px 420px at 50% -6%, rgba(255, 214, 10, 0.13), transparent 70%),
    radial-gradient(rgba(255, 214, 10, 0.16) 1.3px, transparent 1.3px);
  background-size: auto, 26px 26px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--yellow);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: #141312;
}
::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border: 3px solid #141312;
  border-radius: 999px;
}

a {
  color: inherit;
}

[id] {
  scroll-margin-top: 100px;
}

.hidden {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.mint-card :focus-visible {
  outline-color: var(--yellow);
}

/* ── 顶部跑马灯 ─────────────────────────────────────── */
.ticker {
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 9px 26px 9px 0;
}
.ticker-group span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
  text-transform: uppercase;
}
.tick-strong {
  color: #fff;
}
/* 品牌名和代币符号按配置原样显示，不转大写 */
.ticker-group .js-brand,
.ticker-group .js-symbol {
  text-transform: none;
}
.tick-dot {
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 50%;
  flex: 0 0 auto;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── 顶栏 ──────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 13px 24px;
  background: var(--yellow);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark {
  width: 52px;
  height: 52px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.25);
  overflow: hidden;
  transition: transform 0.18s ease;
}
.brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.04);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text strong {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.brand-text small {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(17, 17, 17, 0.62);
}
.top-nav {
  display: flex;
  gap: 2px;
  margin-left: 8px;
  flex: 1;
}
.top-nav a {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 2px solid transparent;
}
.top-nav a:hover {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* ── 按钮 ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--yellow);
}
.btn-ghost {
  background: transparent;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-width: 2px;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-sm:hover {
  box-shadow: 5px 5px 0 var(--ink);
}
.btn-lg {
  padding: 16px 30px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
  margin-top: 6px;
  white-space: normal;
}

/* 黑底卡片里的按钮 */
.mint-card .btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  box-shadow: 5px 5px 0 rgba(255, 214, 10, 0.28);
}
.mint-card .btn-primary:hover {
  box-shadow: 7px 7px 0 rgba(255, 214, 10, 0.42);
}
.mint-card .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.18);
}
.mint-card .btn-ghost:hover {
  box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.26);
}

/* 操作进度提示：显示当前卡在哪一步 */
.op-status {
  margin: 10px 0 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-all;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
}

/* 扫码说明：只支持币安 App 扫码 */
.scan-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 12px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.65;
  color: rgba(247, 243, 230, 0.66);
}
.scan-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 214, 10, 0.35);
  animation: scanPulse 1.8s ease-in-out infinite;
}
@keyframes scanPulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(255, 214, 10, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 214, 10, 0.12);
  }
}

/* ── 验证码弹层（钱包签名核对）────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(8, 7, 5, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.verify-card {
  width: min(92vw, 430px);
  padding: 26px 24px 22px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  text-align: center;
}
.verify-card .eyebrow {
  margin: 0 0 14px;
}
.verify-title {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.verify-code {
  margin: 0 0 16px;
  padding: 12px 8px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.verify-lead {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.72);
}
.verify-status {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.verify-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: scanPulse 1.4s ease-in-out infinite;
  vertical-align: 1px;
}
.verify-note {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.52);
}
@media (prefers-reduced-motion: reduce) {
  .scan-dot,
  .verify-status::before {
    animation: none;
  }
}

/* ── 未部署提示条 ──────────────────────────────────── */
.banner {
  padding: 12px 24px;
  background: var(--orange);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

/* ── 页面骨架 ──────────────────────────────────────── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.hero-head {
  max-width: 1080px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 15px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 163, 74, 0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(23, 163, 74, 0.25);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(23, 163, 74, 0.08);
  }
}
.display {
  margin: 0;
  font-size: clamp(2.15rem, 5.2vw, 4.9rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.display-line {
  display: block;
}
.display em {
  display: inline-block;
  padding: 0 0.1em;
  font-style: normal;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 10px;
  transform: rotate(-1.2deg);
}
.display-outline {
  margin-top: 10px;
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
}
@supports not (-webkit-text-stroke: 1px #000) {
  .display-outline {
    color: var(--yellow);
  }
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 44px;
  align-items: start;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 4px;
}
.lede {
  max-width: 56ch;
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.65;
  color: rgba(247, 243, 230, 0.78);
}

/* ── 数据小卡 ─────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 rgba(255, 214, 10, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.stat:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(255, 214, 10, 0.32);
}
.stat-label {
  display: block;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}
.stat strong {
  display: block;
  margin: 6px 0 3px;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.stat small {
  font-size: 11px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.55);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip-row li {
  padding: 6px 12px;
  color: var(--ink);
  background: rgba(255, 252, 240, 0.9);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.chip-row li::before {
  content: "✓ ";
  font-weight: 900;
}

/* ── 规则速览条 ───────────────────────────────────── */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: #161512;
  border: 3px solid rgba(255, 214, 10, 0.4);
  border-radius: 16px;
  box-shadow: 6px 6px 0 rgba(255, 214, 10, 0.22);
}
.hero-facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
}
.hero-facts > div:first-child {
  border-left: 0;
}
.hero-facts > div > span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 214, 10, 0.62);
}
.hero-facts strong {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--yellow);
  overflow-wrap: anywhere;
}

/* ── 卡片 ─────────────────────────────────────────── */
.card {
  position: relative;
  padding: 26px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  /* 黑底上的卡片用淡黄硬阴影，保留 brutalist 的“错位”感 */
  box-shadow: 8px 8px 0 rgba(255, 214, 10, 0.18);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(17, 17, 17, 0.14);
}
.head-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.idx {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 7px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.card-head h2 {
  min-width: 0;
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
/* 卡片头部里的状态胶囊可能带长句，允许换行，避免撑破卡片 */
.card-head .pill {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
  text-align: left;
}
.head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── 铸造黑卡 ─────────────────────────────────────── */
.mint-card {
  padding: 26px;
  color: #f7f3e6;
  background: var(--ink);
  /* 黑底页面上给黑卡加一圈黄边，避免和背景糊在一起 */
  border-color: var(--yellow);
  box-shadow: 10px 10px 0 rgba(255, 214, 10, 0.28);
}
.mint-card .card-head {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
.mint-card .idx {
  background: var(--yellow);
  color: var(--ink);
}
.mint-card .field-label {
  color: rgba(247, 243, 230, 0.8);
}

.progress {
  margin: 4px 0 12px;
}
.progress-bar {
  height: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 10px, #ffc400 10px 20px);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(247, 243, 230, 0.6);
}

.field-label {
  display: block;
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  outline: none;
  text-overflow: ellipsis;
  transition: box-shadow 0.15s ease;
}
.input::placeholder {
  color: rgba(17, 17, 17, 0.38);
  font-weight: 600;
}
.input:focus {
  box-shadow: 4px 4px 0 var(--ink);
}
.mint-card .input:focus {
  box-shadow: 4px 4px 0 var(--yellow);
}

.stepper {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: stretch;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.step-btn {
  border: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.step-btn:hover {
  background: var(--yellow);
}
.step-btn:active {
  background: var(--yellow-deep);
}
#sharesInput {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
#sharesInput::-webkit-outer-spin-button,
#sharesInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 13px 16px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.quote span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.quote strong {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hint {
  margin: 10px 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.6);
}
.hint strong {
  color: var(--ink);
}
.mint-card .hint {
  color: rgba(247, 243, 230, 0.62);
}
.mint-card .hint strong {
  color: #fff;
}
.quota-hint {
  margin: 10px 0 14px;
  font-size: 13px;
}
.mint-card .quota-hint strong {
  color: var(--yellow);
  font-size: 15px;
}
.fineprint {
  margin: 14px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(247, 243, 230, 0.5);
}

.agent-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 2px dashed rgba(247, 243, 230, 0.3);
  border-radius: 12px;
  color: rgba(247, 243, 230, 0.9);
  font-size: 12px;
  font-weight: 700;
}
.agent-box small {
  font-size: 11px;
  color: rgba(247, 243, 230, 0.55);
}
.agent-box > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  flex: 0 0 auto;
}
.register-row {
  display: flex;
  gap: 8px;
}
.register-row .input {
  flex: 1;
  min-width: 0;
}

/* ── 状态胶囊 / 徽章 ─────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  flex: 0 0 auto;
}
.pill.warn {
  background: var(--orange);
  color: var(--ink);
}
.pill-muted {
  background: transparent;
  color: rgba(17, 17, 17, 0.65);
  border-color: rgba(17, 17, 17, 0.25);
}
.pill-muted::before {
  background: rgba(17, 17, 17, 0.4);
}
.mint-card .pill {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.mint-card .pill.warn {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 230px;
  padding: 6px 11px;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.badge.ok {
  background: var(--green);
  color: #fff;
}
.badge.warn {
  background: var(--red);
  color: #fff;
}

/* ── 双列与小组件 ─────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mini {
  padding: 11px 13px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}
.mini span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}
.mini strong {
  display: block;
  margin-top: 5px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row .input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
}

.owed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.task-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.task-btn:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.mech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  text-align: left;
}
.mech-pct {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 48px;
  height: 26px;
  padding: 0 8px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.task-plus {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 6px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

/* ── 表格 ─────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin-top: 6px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  padding: 11px 14px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-top: 2px solid rgba(17, 17, 17, 0.12);
  font-weight: 700;
  vertical-align: middle;
}
.table tbody tr:hover {
  background: var(--paper-2);
}
.table .num {
  font-family: var(--mono);
  text-align: right;
}
.table .addr {
  font-family: var(--mono);
  font-size: 12px;
}
.table .empty {
  padding: 26px;
  color: rgba(17, 17, 17, 0.5);
  font-weight: 700;
  text-align: center;
}
.tier-pct {
  font-weight: 900;
}
/* 手机端把等级表拆成卡片后，用它显示百分比前的标签；桌面端隐藏 */
.cell-k {
  display: none;
}
/* 窄屏表格提示（排行榜等宽表可横向滑动） */
.table-hint {
  display: none;
  margin: 8px 2px 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.5);
  text-align: right;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tier-base {
  background: var(--paper);
}
.tier-silver {
  background: #d7dce4;
}
.tier-gold {
  background: #ffc400;
}
.tier-platinum {
  background: #8fe3d2;
}

/* ── 链上数据 ─────────────────────────────────────── */
.data-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
}
.data-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 2px dashed rgba(17, 17, 17, 0.22);
}
.data-list dt {
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(17, 17, 17, 0.55);
  white-space: nowrap;
}
.data-list dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}
.data-list dd a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ── 步骤 / FAQ ───────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.step-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--yellow-deep);
  font-size: 16px;
  font-weight: 900;
}
.steps strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14.5px;
  font-weight: 900;
}
.steps p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.62);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
}
.faq summary {
  position: relative;
  padding: 12px 38px 12px 14px;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.faq details[open] summary {
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
}
.faq details[open] summary::after {
  content: "−";
}
.faq p {
  margin: 0;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.68);
}
.faq code {
  padding: 1px 5px;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ── 底部行动条 ───────────────────────────────────── */
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px 38px 34px;
  overflow: hidden;
  background: #141310;
  color: var(--yellow);
  border: 3px solid rgba(255, 214, 10, 0.45);
  border-radius: 24px;
  box-shadow: 10px 10px 0 rgba(255, 214, 10, 0.2);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: repeating-linear-gradient(45deg, var(--yellow) 0 12px, var(--ink) 12px 24px);
}
.cta-kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 214, 10, 0.7);
}
.cta-band h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cta-copy p:last-child {
  max-width: 52ch;
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(247, 243, 230, 0.7);
}
.cta-band .btn-primary {
  padding: 15px 28px;
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  box-shadow: 6px 6px 0 rgba(255, 214, 10, 0.3);
  font-size: 16px;
}
.cta-band .btn-primary:hover {
  box-shadow: 8px 8px 0 rgba(255, 214, 10, 0.42);
}

/* ── 页脚 ─────────────────────────────────────────── */
.footer {
  padding: 38px 24px 46px;
  background: #0a0908;
  color: rgba(247, 243, 230, 0.7);
  border-top: 3px solid rgba(255, 214, 10, 0.28);
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto 16px;
}
.footer-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #1e1e1e;
  border: 2px solid rgba(255, 214, 10, 0.35);
  border-radius: 12px;
}
.footer-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.footer-top strong {
  color: var(--yellow);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.footer-sym {
  padding: 4px 9px;
  border: 1px solid rgba(247, 243, 230, 0.25);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(247, 243, 230, 0.45);
}
.footer p {
  max-width: 1200px;
  margin: 0 auto 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Toast ────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  max-width: min(92vw, 520px);
  padding: 13px 20px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--yellow);
  border-radius: 14px;
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.35);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.toast.ok {
  background: #0b3d22;
  color: #c9ffdf;
  border-color: #4ade80;
}
.toast.error {
  background: #3d0b0b;
  color: #ffd6d0;
  border-color: #ff6b57;
}

/* ── 响应式 ───────────────────────────────────────── */
@media (max-width: 1040px) {
  .top-nav {
    display: none;
  }
  .hero-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-copy {
    order: 2;
  }
  .mint-card {
    order: 1;
  }
  .display {
    font-size: clamp(2rem, 7vw, 3.6rem);
  }
}

@media (max-width: 860px) {
  .page {
    padding: 30px 18px 56px;
    gap: 32px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .data-list {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .topbar {
    gap: 12px;
    padding: 10px 16px;
  }
  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .brand-mark img {
    width: 36px;
    height: 36px;
  }
  .brand-text strong {
    font-size: 16px;
  }
  .brand-text small {
    display: none;
  }
  .cta-band {
    padding: 34px 24px 28px;
  }
}

@media (max-width: 640px) {
  .badge {
    display: none;
  }
  .top-actions {
    gap: 6px;
  }
  #connectBtn {
    padding: 8px 14px;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 12px;
  }
  .display {
    font-size: clamp(1.85rem, 8.4vw, 2.9rem);
  }
  .display-outline {
    -webkit-text-stroke-width: 1.6px;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat {
    padding: 12px;
  }
  .mini {
    padding: 10px 11px;
  }
  .mini strong {
    font-size: 1.05rem;
  }
  .hero-facts {
    grid-template-columns: 1fr;
  }
  .hero-facts > div {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-left: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
  }
  .hero-facts > div:first-child {
    border-top: 0;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-band .btn {
    width: 100%;
  }
  .footer {
    padding: 30px 18px 38px;
  }

  /* iOS 聚焦输入框时，字号小于 16px 会自动放大页面，这里统一压住 */
  .input,
  .copy-row .input {
    font-size: 16px;
  }
  .table-hint {
    display: block;
  }
  .table th {
    padding: 9px 8px;
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }
  .table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  /* 等级表：窄屏改成竖排卡片，避免第 4 列被横向裁掉 */
  .tier-table thead {
    display: none;
  }
  .tier-table,
  .tier-table tbody,
  .tier-table tr,
  .tier-table td {
    display: block;
  }
  .tier-table tr {
    padding: 13px 12px;
    border-top: 2px solid rgba(17, 17, 17, 0.14);
  }
  .tier-table tbody tr:first-child {
    border-top: 0;
  }
  .tier-table td {
    padding: 0;
    border: 0;
  }
  .tier-table td:first-child {
    margin-bottom: 8px;
  }
  .tier-table td:nth-child(2) {
    margin-bottom: 6px;
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(17, 17, 17, 0.72);
  }
  .tier-table td.num {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px dashed rgba(17, 17, 17, 0.2);
    font-size: 15px;
    text-align: left;
  }
  .tier-table .cell-k {
    display: inline;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(17, 17, 17, 0.55);
  }

  .toast {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

/* 超小屏（320px）：英文按钮更长，隐藏品牌文字只留 Logo，避免顶栏溢出 */
@media (max-width: 350px) {
  .brand-text {
    display: none;
  }
}

/* 小屏手机（iPhone SE 等 320–400px）：进一步压缩顶栏与卡片留白 */
@media (max-width: 400px) {
  .topbar {
    gap: 8px;
    padding: 9px 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .brand-mark img {
    width: 32px;
    height: 32px;
  }
  .brand-text strong {
    font-size: 14px;
  }
  .top-actions {
    gap: 5px;
  }
  #langBtn {
    padding: 6px 10px;
    font-size: 11px;
  }
  #connectBtn {
    padding: 7px 10px;
    font-size: 11px;
  }
  .page {
    padding: 24px 14px 48px;
    gap: 26px;
  }
  .card {
    padding: 18px;
  }
  .card-head {
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .cta-band {
    padding: 28px 18px 24px;
  }
  .verify-card {
    padding: 20px 16px 18px;
  }
  .verify-code {
    padding: 10px 4px;
    font-size: clamp(1.75rem, 9vw, 2.2rem);
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }
  .footer-top {
    gap: 8px;
  }
  .footer-top strong {
    font-size: 15px;
  }
  .footer-sym {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

/* 超窄屏（320–360px）：邀请链接输入框和复制按钮改为上下排列，避免文字被截断 */
@media (max-width: 360px) {
  .copy-row {
    flex-wrap: wrap;
  }
  .copy-row .input,
  .copy-row .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* 横屏手机：验证码弹层允许从顶部开始，避免被裁切 */
@media (max-height: 520px) {
  .modal-backdrop {
    align-items: flex-start;
  }
}

/* ── 动效降级 ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-track {
    animation: none;
  }
}
