:root {
  --ink: #1a1208;
  --paper: #f6f3ee;
  --card: #fff;
  --line: #e4ddd3;
  --muted: #746c62;
  --soft: #f0ebe3;
  --green: #087a38;
  --green-soft: #e9f5ec;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-full: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.page { min-height: calc(100vh - 128px); }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  position: relative;
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand img { width: 28px; height: 28px; display: block; }
/* Pages with a wallet button need a third column, or the button wraps under the menu. */
.top-inner:has(.wallet) { grid-template-columns: auto 1fr auto; }
.nav { display: flex; justify-content: center; align-items: center; gap: 18px; }
.nav a,
.nav .nav-disabled {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav a { position: relative; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--ink);
}
.nav-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.55;
  cursor: not-allowed;
  user-select: none;
}
.nav-disabled small {
  font: 500 0.58rem "DM Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--muted);
}
.nav-toggle { display: none; }
.wallet {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-full);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.wallet span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #bbb;
}
.wallet.connected span { background: #2f9e44; }
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #1a120866;
}
.wallet-modal[hidden] { display: none; }
.wallet-dialog {
  width: min(360px, 100%);
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.wallet-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.wallet-dialog h2 { font-size: 1rem; }
.wallet-copy { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin-bottom: 12px; }
#wallet-list { display: grid; gap: 8px; }
.wallet-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
}
.wallet-option:hover { border-color: var(--ink); }
.wallet-option img { border-radius: 6px; }

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 32px;
  align-items: end;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.page-head h1 { margin: 8px 0 0; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.page-head .lede { margin: 0; }
.kicker {
  color: var(--muted);
  font: 500 0.72rem "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.tagline {
  margin: -4px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}
.lede { color: var(--muted); line-height: 1.65; font-size: 0.95rem; max-width: 46ch; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: 48px;
  align-items: center;
  padding: 48px 0 8px;
}
.home-hero-art svg {
  width: 100%;
  height: auto;
}
.home-actions { display: flex; gap: 10px; margin-top: 28px; }
.home-safe { margin-top: 12px; color: var(--muted); font-size: 0.72rem; }
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-stats div { padding: 18px 16px 18px 0; }
.home-stats small {
  display: block;
  color: var(--muted);
  font: 500 0.68rem "DM Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.home-stats strong { font-size: 0.95rem; font-weight: 700; }

.section { padding: 40px 0 72px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 { font-size: 1.15rem; letter-spacing: -0.03em; }
.section-head p, .browse-tools p { color: var(--muted); font-size: 0.84rem; }
.section-head a { text-decoration: underline; text-underline-offset: 3px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.value-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.value-grid article > span { color: var(--muted); font: 500 0.68rem "DM Mono", monospace; }
.value-grid h3 { margin: 52px 0 10px; font-size: 1.08rem; }
.value-grid p { color: var(--muted); font-size: 0.84rem; line-height: 1.65; }
.home-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.home-final h2 { margin-top: 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }

.browse {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 80px;
  align-items: start;
}
.browse.detail-open {
  grid-template-columns: 300px minmax(0, 1fr) minmax(300px, 380px);
}
.filters {
  position: sticky;
  top: 80px;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.filters-head h2 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.browse-main { min-width: 0; }
.browse-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.shape-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--card); }
.shape-toggle button { height: 30px; padding: 0 14px; border: 0; border-radius: var(--radius-full); background: transparent; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.shape-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.detail-shape { justify-self: start; }
.filter-toggle { display: none; }
.filter-group {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.filter-group-label {
  color: var(--muted);
  font: 500 0.68rem "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.filter-field { display: grid; gap: 8px; }
.filter-field span, .control-label {
  color: var(--muted);
  font: 500 0.68rem "DM Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.filter-field input,
.filter-field select,
.mint-actions select,
.mint-actions input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 0.84rem;
}
.filter-field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23746c62' d='M1 1.5 6 6.5 11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.rarity-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rarity-pills button {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.rarity-pills button.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.featured { grid-template-columns: repeat(6, 1fr); }
.preview-item { pointer-events: none; }
.home-preview .section-head > div { display: grid; gap: 7px; }
.home-preview .section-head h2 { font-size: 1.3rem; }
.gallery-item {
  min-width: 0;
  display: block;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: var(--muted);
}
.gallery-item svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #fff;
  border-radius: var(--radius);
}
.gallery-meta {
  display: flex;
  justify-content: space-between;
  padding: 8px 2px 0;
  font: 500 0.68rem "DM Mono", monospace;
}
.gallery-meta i { font-style: normal; text-transform: uppercase; }
.gallery-item:hover { color: var(--ink); background: var(--card); border-color: var(--line); }
.gallery-item.is-active { background: var(--card); border-color: var(--ink); }
.gallery-empty { color: var(--muted); padding: 40px 0; }
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pager span { font: 500 0.75rem "DM Mono", monospace; color: var(--muted); }

.drawer {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.drawer[hidden] { display: none; }
.drawer-head {
  position: sticky;
  top: -20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -20px -20px 16px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.drawer .stage-card { margin-bottom: 16px; }
.drawer .stage-card svg,
.drawer .stage-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius);
}
.token-id { font: 500 1.2rem "DM Mono", monospace; }
.chip {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.drawer-head .btn { margin-left: auto; }
.attrs {
  list-style: none;
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.attrs li {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  background: #fff;
  font-size: 0.78rem;
}
.attrs .k { color: var(--muted); }
.attrs .v { font-weight: 700; }
.attrs .r, .dex-card .r, .gallery-meta i {
  font: 500 0.62rem "DM Mono", monospace;
  color: var(--muted);
  text-transform: uppercase;
}
.controls { display: grid; gap: 12px; margin-top: 16px; }
.control-group { display: grid; gap: 6px; }
.export-buttons, .drawer-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.export-buttons .btn, .drawer-actions .btn { flex: 1; }
.filter-mask {
  position: fixed;
  inset: 0;
  z-index: 26;
  background: #1a120866;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--green); border-color: var(--green); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 0 6px; height: auto; }
.btn:hover { border-color: var(--ink); }
.btn.ghost:hover { color: var(--ink); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.al {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding: 44px 0 80px;
}
.al-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-top: 48px;
}
.al-head h1 { margin-bottom: 10px; }
.al-live {
  display: grid;
  gap: 3px;
  min-width: 230px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.al-live strong { color: var(--green); font: 700 1.7rem "DM Mono", monospace; }
.al-live span { color: var(--muted); font-size: 0.75rem; }
.al-board { display: grid; gap: 14px; }
.al-step {
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.al-step[data-state=done] { border-color: #c5d6b8; background: #f7faf4; }
.al-step[data-state=ok] { border-color: var(--ink); }
.al-step[data-state=lock] { opacity: 0.62; }
.al-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.al-num {
  color: var(--muted);
  font: 500 0.68rem "DM Mono", monospace;
  letter-spacing: 0.08em;
}
.al-badge {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--muted);
  font: 500 0.62rem "DM Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.al-step[data-state=done] .al-badge { border-color: #8aaa74; color: #3d5c2e; }
.al-step[data-state=ok] .al-badge { border-color: var(--ink); color: var(--ink); }
.al-step h2 { font-size: 1.12rem; letter-spacing: -0.03em; margin-bottom: 6px; }
.al-step p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.al-checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.al-check {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.al-check[data-on=true] { border-color: #8aaa74; color: #3d5c2e; background: #fff; }
.al-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.al-step[data-state=lock] .al-actions,
.al-step[data-state=lock] .al-field { opacity: 1; }
.al-field { margin-top: 14px; }
.al-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font: 500 0.68rem "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.al-row { display: flex; gap: 8px; align-items: stretch; }
.al-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 0.84rem;
}
.al-row input:focus { outline: none; border-color: var(--ink); }
.al-row .btn { height: 42px; }
.al-code {
  padding: 12px 14px;
  border: 1px dashed var(--ink);
  border-radius: var(--radius);
  background: #fff;
  font: 500 1rem "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-align: center;
  user-select: all;
}
.al-hint { margin-top: 14px; font-size: 0.82rem; }
.al-post {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.al-aside {
  position: sticky;
  top: 80px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.al-progress {
  font: 500 0.78rem "DM Mono", monospace;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.al-rules {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.al-rules li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
.al-rules li span { color: var(--muted); }
.al-rules li strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.al-rules li small {
  display: block;
  margin-top: 2px;
  font: 500 0.66rem "DM Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.al-note { margin-top: 14px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.al-info { padding: 16px 0; border-top: 1px solid var(--line); }
.al-info h2 { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.al-info p { color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
body[data-page="mint"] .protocol:first-of-type { padding-top: 36px; }
.protocol { padding: 0 0 28px; }
.protocol-card {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
}
.mint-copy span, .mint-stats small {
  color: var(--muted);
  font: 500 0.68rem "DM Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mint-copy h2 { margin: 6px 0 8px; font-size: 1.2rem; }
.mint-copy p, .mint-note { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.mint-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mint-stats div { display: grid; gap: 4px; min-width: 0; }
.mint-stats strong { overflow-wrap: anywhere; }
.mint-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mint-actions label { font-size: 0.75rem; font-weight: 700; }
.mint-actions input[type=number], .mint-actions select { width: auto; min-width: 88px; }
.tba-assets { list-style: none; display: grid; gap: 8px; }
.tba-assets li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tba-assets strong { font: 500 0.85rem "DM Mono", monospace; overflow-wrap: anywhere; }

.traits-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 20px;
}
.traits-top h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.03em; }
.traits-top p { color: var(--muted); font-size: 0.84rem; }
.dex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 0 72px;
}
.dex-card {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.dex-card h3 { font-size: 0.92rem; margin-bottom: 14px; }
.dex-card ul { list-style: none; display: grid; gap: 8px; }
.dex-card li {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}
.swatch {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  overflow: hidden;
}
.swatch.is-art {
  display: grid;
  place-items: center;
  background: #fff;
  padding: 3px;
}
.swatch.is-art svg { width: 100%; height: 100%; display: block; }
.swatch.is-empty { background: var(--soft); }
.dex-card .pct { font-family: "DM Mono", monospace; font-size: 0.7rem; }

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.spec th, .spec td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec th {
  width: 42%;
  color: var(--muted);
  font-weight: 600;
}

/* Each product page keeps the same chrome but has its own visual system. */
body[data-page="allowlist"] {
  background:
    radial-gradient(circle at 85% 12%, rgba(245, 166, 35, 0.09), transparent 26rem),
    var(--paper);
}
body[data-page="allowlist"] .intro { max-width: 1280px; padding-top: 72px; }
body[data-page="allowlist"] .al-step { box-shadow: 0 12px 32px rgba(65, 45, 20, 0.035); }

body[data-page="fees"] .intro {
  max-width: 1280px;
  margin-top: 32px;
  padding: 36px 40px;
  border: 1px solid #cce2d1;
  border-radius: var(--radius-lg);
  background: var(--green-soft);
}
body[data-page="fees"] .protocol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 72px;
}
body[data-page="fees"] .protocol-card {
  align-content: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
body[data-page="fees"] .protocol-card .chart-note { margin-top: 12px; }

.tokenomics { padding: 48px 0 24px; }
.tokenomics-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}
.tokenomics-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.045em;
}
.chart-title h2 { margin-top: 5px; font-size: 1.05rem; letter-spacing: -0.03em; }
.token-icon { width: 36px; height: 36px; display: block; flex: none; }
.tokenomics-head > p { max-width: 44ch; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.chart-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 16px; }
.chart-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.allocation-chart { display: grid; grid-template-columns: minmax(170px, 0.8fr) 1.2fr; align-items: center; gap: 30px; }
@property --reveal {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
.donut {
  width: min(220px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border-radius: 50%;
  --reveal: 1;
  background: conic-gradient(
    #087a38 0 calc(25% * var(--reveal)),
    #61b77d calc(25% * var(--reveal)) calc(70% * var(--reveal)),
    #e3aa45 calc(70% * var(--reveal)) calc(85% * var(--reveal)),
    #8c79bd calc(85% * var(--reveal)) calc(95% * var(--reveal)),
    #e27964 calc(95% * var(--reveal)) calc(100% * var(--reveal)),
    var(--card) calc(100% * var(--reveal)) 100%
  );
}
.donut::before { content: ""; grid-area: 1 / 1; width: 61%; aspect-ratio: 1; border-radius: 50%; background: var(--card); }
.donut div { z-index: 1; grid-area: 1 / 1; text-align: center; }
.donut strong, .donut span { display: block; }
.donut strong { font-size: 1.65rem; letter-spacing: -0.05em; }
.donut span { margin-top: 2px; color: var(--muted); font: 500 0.65rem "DM Mono", monospace; text-transform: uppercase; }
.chart-legend { list-style: none; display: grid; gap: 12px; }
.chart-legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; font-size: 0.76rem; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.chart-legend strong { font: 500 0.72rem "DM Mono", monospace; }
.chart-legend small { grid-column: 2 / 4; color: var(--muted); font: 400 0.65rem "DM Mono", monospace; }
.c-liquidity { background: #087a38; }
.c-growth { background: #61b77d; }
.c-airdrop { background: #e3aa45; }
.c-treasury { background: #8c79bd; }
.c-team { background: #e27964; }
.chart-title { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.chart-title > strong { padding: 6px 9px; border-radius: var(--radius-full); background: var(--green-soft); color: var(--green); font: 500 0.66rem "DM Mono", monospace; }
.supply-chart svg { width: 100%; margin-top: 8px; overflow: visible; }
.chart-gridlines path { fill: none; stroke: var(--line); stroke-width: 1; }
.chart-gridlines text, .chart-axis text { fill: var(--muted); font: 500 11px "DM Mono", monospace; }
.chart-axis text { text-anchor: middle; }
.supply-area { fill: rgba(8, 122, 56, 0.1); }
.supply-line { fill: none; stroke: var(--green); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.supply-points circle { fill: #fff; stroke: var(--green); stroke-width: 3; }
.chart-note { color: var(--muted); font-size: 0.72rem; line-height: 1.55; }
.spec tr.is-sub th { padding-left: 14px; font-weight: 500; color: var(--muted); }

body[data-page="fees"] .donut { animation: donut-fill 1.1s ease both; }
body[data-page="fees"] .chart-legend li {
  animation: chart-rise 0.45s ease both;
}
body[data-page="fees"] .chart-legend li:nth-child(1) { animation-delay: 0.12s; }
body[data-page="fees"] .chart-legend li:nth-child(2) { animation-delay: 0.22s; }
body[data-page="fees"] .chart-legend li:nth-child(3) { animation-delay: 0.32s; }
body[data-page="fees"] .chart-legend li:nth-child(4) { animation-delay: 0.42s; }
body[data-page="fees"] .chart-legend li:nth-child(5) { animation-delay: 0.52s; }
body[data-page="fees"] .supply-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: chart-draw 1.25s ease 0.15s forwards;
}
body[data-page="fees"] .supply-area {
  opacity: 0;
  animation: chart-fade 0.7s ease 0.85s forwards;
}
body[data-page="fees"] .supply-points circle {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: chart-pop 0.35s ease forwards;
}
body[data-page="fees"] .supply-points circle:nth-child(1) { animation-delay: 0.2s; }
body[data-page="fees"] .supply-points circle:nth-child(2) { animation-delay: 0.32s; }
body[data-page="fees"] .supply-points circle:nth-child(3) { animation-delay: 0.44s; }
body[data-page="fees"] .supply-points circle:nth-child(4) { animation-delay: 0.56s; }
body[data-page="fees"] .supply-points circle:nth-child(5) { animation-delay: 0.68s; }
body[data-page="fees"] .supply-points circle:nth-child(6) { animation-delay: 0.8s; }
body[data-page="fees"] .supply-points circle:nth-child(7) { animation-delay: 0.92s; }
body[data-page="fees"] .supply-points circle:nth-child(8) { animation-delay: 1.04s; }

@keyframes donut-fill { from { --reveal: 0; } to { --reveal: 1; } }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-fade { to { opacity: 1; } }
@keyframes chart-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes chart-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

body[data-page="dao"] .intro { max-width: 780px; padding-top: 72px; }
body[data-page="dao"] .home-stats {
  overflow: hidden;
  border: 1px solid #cce2d1;
  border-radius: var(--radius-lg);
  background: var(--green-soft);
}
body[data-page="dao"] .home-stats div { padding: 20px; }
body[data-page="dao"] .protocol {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 72px;
}
body[data-page="dao"] .protocol-card {
  align-content: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

body[data-page="mint"] .intro { max-width: 1280px; padding-top: 72px; }
body[data-page="mint"] .protocol-card {
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
body[data-page="mint"] .mint-actions,
body[data-page="mint"] .tba-assets,
body[data-page="mint"] .mint-note { grid-column: 1 / -1; }

body[data-page="gallery"] { background: #f9f8f5; }
body[data-page="gallery"] .browse-main {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.principles { border-top: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.principle-grid article { padding-right: 24px; }
.roadmap-state {
  color: var(--muted);
  font: 500 0.66rem "DM Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.roadmap-item.is-done .roadmap-state { color: var(--ink); }
.roadmap-item.is-current .roadmap-state { color: var(--ink); font-weight: 700; }

.rm { padding: 36px 0 80px; }
.rm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto 40px;
}
.rm-head h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.03em; }
.rm-line {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.rm-line::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}
.rm-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  gap: 0;
  align-items: start;
  padding: 0 0 36px;
}
.rm-item:nth-child(odd) .rm-copy {
  grid-column: 1;
  text-align: right;
  padding-right: 28px;
}
.rm-item:nth-child(even) .rm-copy {
  grid-column: 3;
  text-align: left;
  padding-left: 28px;
}
.rm-item:nth-child(odd) .rm-dot { grid-column: 2; }
.rm-item:nth-child(even) .rm-dot { grid-column: 2; }
.rm-dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.rm-item.is-done .rm-dot {
  border-color: var(--ink);
  background: var(--ink);
}
.rm-item.is-now .rm-dot {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--ink);
}
.rm-copy h2 { margin: 6px 0 6px; font-size: 1.15rem; letter-spacing: -0.03em; }
.rm-copy p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.rm-label {
  color: var(--muted);
  font: 500 0.66rem "DM Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rm-item.is-now .rm-label { color: var(--ink); font-weight: 700; }
.rm-cta { margin-top: 14px; }
.al { padding-top: 36px; }
.roadmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 28px;
  list-style: none;
  color: var(--muted);
  font: 500 0.68rem "DM Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.roadmap-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  vertical-align: 1px;
}
.dao-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 36px 0 72px;
  align-items: start;
}
.dao-vote, .dao-spec { min-width: 0; }
.dao-vote h2 { margin: 8px 0 10px; font-size: 1.2rem; }
.dao-dl { display: grid; gap: 0; margin: 20px 0; border-top: 1px solid var(--line); }
.dao-dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.dao-dl dt { color: var(--muted); font-size: 0.8rem; }
.dao-dl dd { font: 500 0.9rem "DM Mono", monospace; }
.trait-index { display: grid; gap: 0; padding-bottom: 72px; }
.trait-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.trait-row h3 { font-size: 0.92rem; }
.trait-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.trait-row li {
  display: grid;
  grid-template-columns: 12px auto auto auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}
.roadmap-legend i.is-soon { background: transparent; border-style: dashed; }
.roadmap { padding: 0; }
.roadmap-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  position: relative;
}
.roadmap-item::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: var(--line);
}
.roadmap-item:last-child::before { display: none; }
.roadmap-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font: 500 0.68rem "DM Mono", monospace;
}
.roadmap-item.is-done .roadmap-marker {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.roadmap-item.is-current .roadmap-marker {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--ink);
}
.roadmap-item.is-soon .roadmap-marker {
  border-style: dashed;
  color: var(--muted);
  background: var(--paper);
}
.roadmap-copy {
  padding: 2px 0 28px;
}
.roadmap-copy h2 { margin: 6px 0 8px; font-size: 1.2rem; letter-spacing: -0.03em; }
.roadmap-copy > p:not(.roadmap-state) { max-width: 62ch; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.roadmap-copy ul { display: grid; gap: 8px; margin: 16px 0 0; list-style: none; }
.roadmap-copy li { position: relative; padding-left: 16px; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.roadmap-copy li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 1px; background: var(--line); }
.roadmap-copy .btn { margin-top: 20px; }
.roadmap-item.is-soon .roadmap-copy h2 { color: var(--muted); font-weight: 600; }
.roadmap-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.82rem;
}
.roadmap-note a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.foot {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}
.foot strong { color: var(--ink); font-weight: 700; }
.foot-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }
.foot-nav .nav-disabled { font-size: inherit; opacity: 0.7; }
.footer-x { display: inline-flex; align-items: center; }
.footer-x svg { width: 15px; height: 15px; fill: currentColor; }
.soon-page { padding: 72px 0 96px; max-width: 36rem; }
.soon-page .soon-chip {
  display: inline-flex;
  margin-top: 22px;
  font: 500 0.68rem "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 12px;
}
body[data-page="allowlist"] .soon-page { max-width: 40rem; }
body[data-page="allowlist"] .soon-page .home-stats {
  margin: 40px 0 0;
  max-width: none;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show { opacity: 1; transform: none; }


@media (max-width: 1200px) {
  .nav-toggle {
    display: inline-flex;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-size: 0.75rem;
    font-weight: 700;
  }
  .top-inner { grid-template-columns: 1fr auto; }
  .top-inner:has(.wallet) { grid-template-columns: 1fr auto auto; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 8px 20px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a,
  .nav .nav-disabled { padding: 12px 0; }
  .nav a.is-active::after { right: auto; bottom: 5px; width: 24px; }
}
/* Mint page */
body[data-page="mint"] .page { display: grid; gap: 28px; padding-bottom: 24px; }
.mint-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  padding-top: 40px;
}
.mint-art { margin: 0; display: grid; gap: 10px; position: sticky; top: 84px; }
.mint-art-frame {
  aspect-ratio: 1;
  max-width: 100%;
  padding: 9%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.mint-art-frame svg { width: 100%; height: auto; }
.mint-art figcaption { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font: 500 0.72rem "DM Mono", monospace; letter-spacing: 0.04em; }
.mint-art figcaption span:first-child { color: var(--ink); }
.mint-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.mint-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mint-panel h1 { margin: -10px 0 0; text-wrap: balance; }
.mint-lede { margin-top: -10px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 52ch; }
.mint-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--soft);
  color: var(--muted);
  font: 500 0.7rem "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mint-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mint-state[data-state="live"] { background: var(--green-soft); color: var(--green); }
.mint-state[data-state="live"]::before { animation: mint-pulse 1.6s ease-in-out infinite; }
.mint-state[data-state="paused"] { background: #fbf1dc; color: #8a5a00; }
.mint-state[data-state="done"] { background: var(--ink); color: #fff; }
@keyframes mint-pulse { 50% { opacity: 0.35; } }
.mint-progress { display: grid; gap: 10px; }
.mint-progress-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-variant-numeric: tabular-nums; }
.mint-progress-row strong { font-size: 1.9rem; letter-spacing: -0.04em; line-height: 1; }
.mint-progress-row span { color: var(--muted); font-size: 0.9rem; }
.mint-progress-row em { margin-left: auto; color: var(--muted); font: 500 0.72rem "DM Mono", monospace; font-style: normal; }
.mint-bar { height: 10px; border-radius: var(--radius-full); background: var(--soft); overflow: hidden; }
.mint-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width 0.6s ease; }
.mint-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.mint-facts div { display: grid; gap: 4px; padding: 14px 14px 14px 0; }
.mint-facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.mint-facts dt { color: var(--muted); font: 500 0.66rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: 0.06em; }
.mint-facts dd { margin: 0; display: grid; gap: 2px; font-weight: 700; font-size: 0.95rem; overflow-wrap: anywhere; }
.mint-facts dd small { color: var(--muted); font-weight: 500; font-size: 0.74rem; }
.mint-buy { display: flex; gap: 10px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.stepper button { width: 44px; height: 52px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; }
.stepper button:disabled { color: var(--line); cursor: not-allowed; }
.stepper output { min-width: 32px; text-align: center; font: 500 1.05rem "DM Mono", monospace; }
.mint-cta { flex: 1; height: 52px; font-size: 0.95rem; }
.mint-total { margin-top: -12px; color: var(--muted); font-size: 0.8rem; min-height: 1.2em; }
.mint-tx { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); font-size: 0.88rem; }
.mint-tx[data-kind="success"] { background: var(--green-soft); }
.mint-tx[data-kind="error"] { background: #fdecea; color: #8d2a1f; }
.mint-tx a { font-weight: 700; text-underline-offset: 3px; }
.minted-tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.minted-tokens figure { margin: 0; display: grid; gap: 4px; }
.minted-tokens svg { width: 100%; height: auto; }
.minted-tokens figcaption { font: 500 0.66rem "DM Mono", monospace; color: var(--muted); }
.mint-reveal h2 { font-size: 1.35rem; letter-spacing: -0.03em; text-wrap: balance; }
/* Phases stack like a marketplace drop: the live one is outlined, ended ones recede. */
.phase-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.phase-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.phase-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.phase-name strong { font-size: 0.92rem; }
.phase-chip {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--soft);
  color: var(--muted);
  font: 500 0.62rem "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.phase-terms { display: grid; justify-items: end; gap: 2px; text-align: right; }
.phase-terms b { font: 500 0.82rem "DM Mono", monospace; }
.phase-terms small { color: var(--muted); font-size: 0.74rem; }
.phase-list li[data-status="current"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.phase-list li[data-status="current"] .phase-chip { background: var(--green-soft); color: var(--green); }
.phase-list li[data-status="done"] { background: var(--soft); }
.phase-list li[data-status="done"] strong, .phase-list li[data-status="done"] b { color: var(--muted); }
.mint-reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.mint-reveal .lede { max-width: 60ch; margin-top: 6px; }
.mint-reveal-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1080px) {
  .mint-hero { grid-template-columns: minmax(0, 1fr); }
  .mint-art { position: static; max-width: 460px; }
  .browse, .browse.detail-open { grid-template-columns: 1fr; padding-top: 20px; }
  .filters {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 27;
    width: min(340px, 90vw);
    padding: 20px;
    background: #fff;
    border-right: 1px solid var(--line);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transform: translateX(-105%);
    transition: transform 0.2s;
  }
  .filters.is-open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .gallery, .featured { grid-template-columns: repeat(3, 1fr); }
  .dex { grid-template-columns: 1fr 1fr; }
  .al { grid-template-columns: 1fr; }
  .al-aside { position: static; }
  .rm-line::before { left: 7px; transform: none; }
  .rm-item { grid-template-columns: 20px minmax(0, 1fr); padding-bottom: 28px; }
  .rm-item:nth-child(odd) .rm-copy,
  .rm-item:nth-child(even) .rm-copy {
    grid-column: 2;
    text-align: left;
    padding: 0 0 0 16px;
  }
  .rm-item .rm-dot { grid-column: 1; }
  .page-head, .home-hero, .dao-grid, .trait-row { grid-template-columns: 1fr; }
  .home-hero-art { max-width: 360px; }
  .chart-grid { grid-template-columns: 1fr; }
  body[data-page="mint"] .protocol-card { grid-template-columns: 1fr; }
  body[data-page="mint"] .mint-actions,
  body[data-page="mint"] .mint-note { grid-column: auto; }
}
@media (max-width: 720px) {
  .mint-panel { padding: 20px; }
  .mint-facts { grid-template-columns: 1fr; }
  .mint-facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .mint-buy { flex-wrap: wrap; }
  .mint-cta { min-width: 0; }
  .wrap { width: min(1280px, calc(100% - 24px)); }
  .intro { padding-top: 32px; }
  .gallery, .featured { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .home-stats, .dex, .mint-stats { grid-template-columns: 1fr; }
  .home-stats div { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .home-stats div:last-child { border-bottom: 0; }
  .value-grid, .al-head { grid-template-columns: 1fr; }
  .value-grid article { min-height: 0; }
  .value-grid h3 { margin-top: 28px; }
  .home-final { align-items: flex-start; flex-direction: column; }
  .al-live { min-width: 0; }
  .drawer { top: 72px; }
  .attrs li { grid-template-columns: 72px 1fr auto; font-size: 0.72rem; }
  .mint-actions { flex-direction: column; align-items: stretch; }
  .mint-actions input[type=number], .mint-actions select { width: 100%; }
  .spec th { width: 38%; }
  .pager { gap: 8px; }
  .roadmap-note { align-items: flex-start; flex-direction: column; }
  .rm-head { align-items: flex-start; flex-direction: column; }
  body[data-page="fees"] .intro { margin-top: 16px; padding: 28px 22px; }
  .tokenomics-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  body[data-page="fees"] .protocol { grid-template-columns: 1fr; }
  .chart-card { padding: 20px; }
  .allocation-chart { grid-template-columns: 1fr; }
  body[data-page="gallery"] .browse-main { padding: 14px; }
}
@media (max-width: 440px) {
  .top-inner { gap: 8px; }
  .brand span { display: none; }
  .wallet { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mint-state[data-state="live"]::before { animation: none; }
  .mint-bar i { transition: none; }
  html { scroll-behavior: auto; }
  .drawer, .filters, .toast { transition: none; }
  body[data-page="fees"] .donut,
  body[data-page="fees"] .chart-legend li,
  body[data-page="fees"] .supply-line,
  body[data-page="fees"] .supply-area,
  body[data-page="fees"] .supply-points circle { animation: none; }
}
