/* MNEME studio site — arcade-muse facelift */
@font-face {
  font-family: "Press Start 2P";
  src: url("./assets/fonts/press-start-2p.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #0d0618;
  --bg2: #120826;
  --panel: #170b30;
  --ink: #f5ead6;
  --ink-dim: #cbbfa8;
  --gold: #f5b301;
  --gold-soft: #ffd23f;
  --purple: #2b1152;
  --cyan: #41f4d0;
  --magenta: #ff4ecd;
  --line: #2e1a55;
  --display: "Press Start 2P", monospace;
  --body: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-soft); }
img { display: block; max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
  background: rgba(13, 6, 24, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display); font-size: 15px; color: var(--gold);
  text-decoration: none; letter-spacing: 1px; white-space: nowrap;
}
.nav-links { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 13px;
  white-space: nowrap; text-transform: uppercase; letter-spacing: 1px;
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta {
  margin-left: auto; flex-shrink: 0;
  font-size: 12px; text-decoration: none; color: var(--bg);
  background: var(--gold); padding: 9px 14px; border-radius: 4px; font-weight: 600;
}
.nav-cta:hover { background: var(--gold-soft); }

/* ---------- tabs ---------- */
.tab-main { padding-top: 60px; min-height: 60vh; }
.tab { display: none; }
.tab.active { display: block; }
.tab-link {
  font-family: var(--display); font-size: 10px;
  padding: 8px 4px; border-bottom: 2px solid transparent;
}
.tab-link.active {
  color: var(--gold); border-bottom-color: var(--gold);
}
.trade-rail { margin-top: 28px; }
.payout-line { font-size: 15px; color: var(--ink-dim); margin-top: 28px; max-width: 62ch; }
.payout-line strong { color: var(--gold-soft); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 120px 24px 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("./assets/key-art.webp") center 30% / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(13,6,24,0.82) 0%,
    rgba(13,6,24,0.55) 38%,
    rgba(13,6,24,0.72) 72%,
    var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.kicker {
  font-family: var(--display); font-size: 11px; line-height: 2;
  color: var(--cyan); letter-spacing: 2px; margin-bottom: 26px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(44px, 11vw, 118px);
  color: var(--gold);
  text-shadow: 0 4px 0 #7a5200, 0 8px 32px rgba(245,179,1,0.35);
  letter-spacing: 4px; margin-bottom: 22px;
}
.hero-sub { font-size: clamp(15px, 2.4vw, 19px); color: var(--ink); margin-bottom: 26px; }
.hero-sub strong { color: var(--gold-soft); }
.hero-game-kicker {
  font-family: var(--display); font-size: 11px; letter-spacing: 3px;
  color: var(--cyan); margin: 34px 0 14px;
}
.hero-game {
  font-family: var(--display);
  font-size: clamp(34px, 8.5vw, 88px);
  color: var(--gold);
  text-shadow: 0 4px 0 #7a5200, 0 8px 32px rgba(245,179,1,0.35);
  letter-spacing: 4px; margin-bottom: 16px;
}
.hero-game-sub { font-size: clamp(15px, 2.4vw, 19px); color: var(--ink); margin-bottom: 8px; }
.hero-throughline {
  font-family: var(--display);
  font-size: clamp(16px, 3.4vw, 28px); line-height: 1.9;
  color: var(--ink); margin: 30px 0 34px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.8);
}

.countdown-label {
  font-family: var(--display); font-size: 10px; letter-spacing: 2px;
  color: var(--ink-dim); margin-bottom: 12px;
}
.countdown-chips { display: flex; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip {
  background: rgba(23, 11, 48, 0.9); border: 1px solid var(--line);
  border-radius: 8px; min-width: 74px; padding: 12px 6px 10px;
}
.chip span { font-family: var(--display); font-size: 20px; color: var(--gold-soft); display: block; margin-bottom: 6px; }
.chip small { font-size: 10px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1px; }

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  font-family: var(--display); font-size: 12px; text-decoration: none;
  padding: 16px 22px; border-radius: 6px; display: inline-block;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border: 2px solid var(--gold); color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(245,179,1,0.12); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-kicker {
  font-family: var(--display); font-size: 11px; letter-spacing: 2px;
  color: var(--magenta); margin-bottom: 18px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(22px, 4.6vw, 40px); line-height: 1.5;
  color: var(--ink); margin-bottom: 20px;
}
.lede { font-size: 17px; color: var(--ink-dim); max-width: 62ch; margin-bottom: 44px; }
.lede strong { color: var(--gold-soft); }

/* draw cards */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 26px 22px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-step { font-family: var(--display); font-size: 12px; color: var(--cyan); margin-bottom: 14px; }
.card h3 { font-family: var(--display); font-size: 13px; color: var(--gold-soft); margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--ink-dim); }

.callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.callout {
  border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px;
  background: var(--panel);
}
.callout-gold { border-color: var(--gold); background: linear-gradient(180deg, rgba(245,179,1,0.10), rgba(245,179,1,0.02)); }
.callout h3 { font-family: var(--display); font-size: 13px; color: var(--gold-soft); margin-bottom: 10px; }
.callout p { font-size: 14px; color: var(--ink-dim); }

/* relics */
.tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.tier {
  border-radius: 10px; padding: 22px 16px; text-align: center;
  border: 1px solid var(--line); background: var(--panel);
}
.tier-name { font-family: var(--display); font-size: 10px; line-height: 1.8; color: var(--ink); margin-bottom: 10px; min-height: 36px; display: flex; align-items: center; justify-content: center; }
.tier-count { font-family: var(--display); font-size: 22px; color: var(--gold-soft); margin-bottom: 8px; }
.tier-weight { font-size: 12px; color: var(--ink-dim); }
.tier-rare { border-top: 3px solid var(--ink-dim); }
.tier-superrare { border-top: 3px solid var(--gold); }
.tier-ultra { border-top: 3px solid var(--magenta); }
.tier-goddess { border-top: 3px solid var(--cyan); }
.tier-oneofone { border-top: 3px solid #fff; }

.fineprint { font-size: 13px; color: var(--ink-dim); margin-bottom: 28px; max-width: 62ch; }

.mint-box {
  border: 2px dashed var(--gold); border-radius: 12px;
  padding: 28px; text-align: center; margin-bottom: 48px;
  background: rgba(245,179,1,0.05);
}
.mint-kicker { font-family: var(--display); font-size: 11px; letter-spacing: 2px; color: var(--gold); margin-bottom: 12px; }
.mint-line { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.mint-soon { font-size: 14px; color: var(--ink-dim); }
.mint-soon + .mint-soon { margin-top: 6px; }

.btn-sm { font-size: 10px; padding: 12px 16px; }
button.btn { border: none; cursor: pointer; font-family: var(--display); }
button.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* live mint */
.mint-progress { max-width: 420px; margin: 18px auto 20px; }
.mint-progress-track {
  height: 10px; border-radius: 6px; background: #241a3a;
  border: 1px solid var(--line); overflow: hidden; margin-bottom: 8px;
}
.mint-progress-track span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 0.6s ease;
}
.mint-progress-label { font-size: 13px; color: var(--ink-dim); }
.mint-progress-label span { color: var(--gold-soft); font-weight: 600; }
.mint-connect-row { margin: 6px 0 4px; }
.mint-wallet { font-size: 13px; color: var(--cyan); }
.mint-controls { margin-top: 18px; }
.qty-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 12px; }
.qty-row button {
  width: 44px; height: 44px; border-radius: 8px; font-size: 22px; line-height: 1;
  background: var(--panel); color: var(--gold-soft);
  border: 1px solid var(--line); cursor: pointer;
}
.qty-row button:hover { border-color: var(--gold); }
.qty-row button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-row button:disabled:hover { border-color: var(--line); }
.qty-row span { font-family: var(--display); font-size: 20px; color: var(--ink); min-width: 40px; }
.mint-total { font-size: 14px; color: var(--ink-dim); margin-bottom: 16px; }
.mint-total span { color: var(--gold-soft); font-weight: 600; }
.mint-status { font-size: 13px; color: var(--cyan); margin-top: 14px; min-height: 22px; }

/* trade */
.trade-app { margin-bottom: 8px; }
.token-sub { font-size: 14px; color: var(--ink-dim); margin-bottom: 18px; }
.addr-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.addr-row code {
  font-family: var(--body); font-size: 13px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 14px; word-break: break-all;
}
.copy-btn {
  font-family: var(--display); font-size: 10px; color: var(--bg);
  background: var(--gold); border: none; border-radius: 4px;
  padding: 10px 14px; cursor: pointer;
}
.copy-btn:hover { background: var(--gold-soft); }
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 12px;
}
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 14px; text-align: center;
}
.stat-label {
  font-family: var(--display); font-size: 9px; letter-spacing: 1px;
  color: var(--cyan); margin-bottom: 10px; text-transform: uppercase;
}
.stat-val { font-family: var(--display); font-size: 15px; color: var(--gold-soft); }
.stat-note { font-size: 12px; color: var(--ink-dim); margin-bottom: 24px; }
.chart-wrap {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  margin-bottom: 20px; background: var(--panel);
}
.chart-wrap iframe { width: 100%; height: 480px; border: 0; display: block; }
.chart-placeholder {
  border: 2px dashed var(--line); border-radius: 12px;
  padding: 56px 24px; text-align: center; margin-bottom: 20px;
}
.chart-placeholder p { font-size: 14px; color: var(--ink-dim); }
.trade-links { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.gallery {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.g-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; transition: transform 0.18s ease;
}
.g-card:hover { transform: translateY(-4px); }
.g-card img { width: 100%; aspect-ratio: 540/860; object-fit: cover; }
.g-card figcaption {
  font-family: var(--display); font-size: 9px; text-align: center;
  padding: 12px 6px; color: var(--gold-soft); line-height: 1.8;
}

/* token */
.big-line {
  font-family: var(--display); font-size: clamp(15px, 3vw, 24px); line-height: 1.8;
  color: var(--gold-soft); margin-bottom: 24px;
}
.token-facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.token-facts > div { display: grid; grid-template-columns: 160px 1fr; background: var(--panel); }
.token-facts > div + div { border-top: 1px solid var(--line); }
.token-facts dt { padding: 18px; font-family: var(--display); font-size: 10px; color: var(--cyan); align-self: center; }
.token-facts dd { padding: 18px; font-size: 14px; color: var(--ink-dim); }

/* proof */
.proof-list { list-style: none; display: grid; gap: 16px; margin-bottom: 36px; }
.proof-list li {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--cyan);
  border-radius: 8px; padding: 20px 22px; font-size: 15px; color: var(--ink-dim);
}
.proof-list strong { color: var(--ink); }
.operator {
  font-family: var(--display); font-size: 12px; line-height: 2;
  color: var(--gold-soft); margin-bottom: 22px;
}
.future-rails {
  font-size: 13px; color: #6f6484; margin-bottom: 22px;
  filter: grayscale(1);
}
.payout-rail { margin-bottom: 22px; }
.rail-label-top { font-size: 13px; color: var(--ink-dim); margin-bottom: 10px; }
.teaser-switch { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.rail-label { font-family: var(--display); font-size: 12px; }
.rail-label.on { color: var(--gold); }
.rail-label.off { color: #6f6484; filter: grayscale(1); }
.switch { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; cursor: not-allowed; border-radius: 28px;
  background: #241a3a; border: 1px solid var(--line); transition: none;
}
.slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  border-radius: 50%; background: var(--gold);
}
.rail-note { font-size: 13px; color: #6f6484; }
.subhead {
  font-family: var(--display); font-size: 14px; color: var(--gold-soft);
  margin: 44px 0 12px;
}
.example {
  border: 1px solid var(--gold-dim, var(--line)); border-radius: 8px;
  padding: 20px 22px; margin-top: 22px; background: rgba(212,175,55,0.05);
}
.example h4 {
  font-family: var(--display); font-size: 12px; color: var(--gold);
  margin: 0 0 10px;
}
.example p { font-size: 14px; color: var(--ink-dim); margin: 0; max-width: 68ch; }
.example p strong { color: var(--ink); }
.legal-body p { font-size: 14px; color: var(--ink-dim); margin-bottom: 16px; max-width: 68ch; }
.legal-body p strong { color: var(--ink); }
.disclosure {
  border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px;
  font-size: 13px; color: var(--ink-dim); background: rgba(255,78,205,0.05);
}

/* faq */
.faq {
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px;
  background: var(--panel); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--display);
  font-size: 12px; line-height: 1.8; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 18px; flex-shrink: 0; }
.faq[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--gold-soft); }
.faq p { padding: 0 22px 20px; font-size: 14px; color: var(--ink-dim); max-width: 62ch; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; background: #0a0414; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { font-size: 13px; text-decoration: none; }
.footer-op { font-family: var(--display); font-size: 11px; color: var(--gold-soft); margin-bottom: 12px; }
.footer-disc { font-size: 12px; color: var(--ink-dim); }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .nav { gap: 16px; padding: 12px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 11px; }
  .nav-cta { padding: 8px 10px; font-size: 11px; }
  .section { padding: 64px 0; }
  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -24px; padding: 0 24px 8px;
  }
  .g-card { scroll-snap-align: start; }
  .token-facts > div { grid-template-columns: 1fr; }
  .token-facts dt { padding-bottom: 0; }
  .token-facts dd { padding-top: 8px; }
  .chip { min-width: 64px; }
  .chip span { font-size: 16px; }
}
