:root {
  --paper: #0a0908;
  --paper-2: #100e0c;
  --ink: #f0ebe3;
  --ink-2: #a39a90;
  --ink-3: #6e675f;
  --line: rgba(240, 235, 227, 0.09);
  --line-strong: rgba(240, 235, 227, 0.14);
  --accent: #e85a28;
  --accent-2: #ff7a45;
  --accent-dim: rgba(232, 90, 40, 0.14);
  --ok: #3d9a64;
  --ok-dim: rgba(61, 154, 100, 0.12);
  --danger: #c44a52;
  --danger-dim: rgba(196, 74, 82, 0.12);
  --panel: #14110f;
  --radius: 8px;
  --display: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--display);
  overflow-x: hidden;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
b, strong { font-weight: 650; }

/* —— atmosphere: quiet, present —— */
.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.atm-paper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 48% at 50% -8%, #3a1a14 0%, transparent 62%),
    radial-gradient(ellipse 45% 40% at 90% 40%, #1a100c 0%, transparent 60%),
    radial-gradient(ellipse 40% 36% at 8% 70%, #16100e 0%, transparent 55%),
    linear-gradient(180deg, #14100e 0%, #0a0908 42%, #0d0b0a 100%);
}
.atm-dots {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle, rgba(240, 235, 227, 0.65) 0.75px, transparent 0.85px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 52% 58% at 50% 28%, #000 8%, transparent 78%);
}
.atm-glow {
  position: absolute;
  left: 5%;
  right: 5%;
  top: min(58vh, 480px);
  height: 360px;
  background: radial-gradient(ellipse 55% 65% at 50% 0%, rgba(196, 90, 50, 0.34), rgba(120, 40, 22, 0.1) 45%, transparent 72%);
}
.atm-grain {
  position: absolute;
  inset: -10%;
  opacity: 0.26;
  mix-blend-mode: soft-light;
  background-image: url("grain.png");
  background-size: 220px 220px;
}

/* —— continuous frame —— */
.frame {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  background: rgba(10, 9, 8, 0.22);
  min-height: 100vh;
  box-shadow:
    -40px 0 80px -40px rgba(196, 90, 50, 0.08),
    40px 0 80px -40px rgba(196, 90, 50, 0.08);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(12px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.mark {
  width: 14px;
  height: 14px;
  position: relative;
  display: inline-block;
}
.mark::before,
.mark::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border-left: 1.75px solid var(--accent);
  border-top: 1.75px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
}
.mark::before { top: -1px; }
.mark::after { top: 5px; opacity: 0.5; }

.nav {
  display: flex;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav a {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,0.03); }
.top-actions { display: flex; gap: 12px; align-items: center; }
.link-quiet {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}
.link-quiet:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 550;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: background .15s, border-color .15s, color .15s, filter .15s;
}
.btn.solid {
  background: var(--accent);
  color: #140804;
  box-shadow: none;
}
.btn.solid:hover { background: var(--accent-2); }
.btn.ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { border-color: rgba(240,235,227,0.28); background: rgba(255,255,255,0.03); }
.btn.lg { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* —— hero —— */
.hero {
  position: relative;
  padding: clamp(96px, 16vh, 148px) clamp(16px, 3vw, 28px) 88px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: auto 0 0;
  height: 520px;
  background:
    radial-gradient(44% 72% at 50% 100%, rgba(196, 90, 50, 0.32), rgba(140, 50, 28, 0.1) 46%, transparent 76%),
    radial-gradient(40% 50% at 50% 20%, rgba(224, 120, 72, 0.08), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.048em;
  font-weight: 650;
}
.accent-line {
  display: inline-block;
  min-height: 1.05em;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.accent-line.is-out { opacity: 0; transform: translateY(5px); }
.lead {
  position: relative;
  margin: 16px auto 0;
  max-width: 34ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.4;
}
.cta-row {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.cta-row.left { justify-content: flex-start; }
.hero-seam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 90, 40, 0.55) 25%, #ff7a45 50%, rgba(232, 90, 40, 0.55) 75%, transparent);
}

.ca-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px auto 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(14, 11, 10, 0.72);
  max-width: 100%;
}
.ca-label {
  font: 550 11px/1 var(--mono);
  color: var(--accent-2);
  letter-spacing: 0.06em;
}
.ca-val {
  font: 500 12px/1.2 var(--mono);
  color: var(--ink-2);
  max-width: min(42ch, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-x {
  font: 550 12px/1 var(--mono);
  color: var(--ink-2);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.ca-x:hover { color: var(--ink); border-color: var(--line); }
.linkish {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.linkish:hover { color: var(--ink); }

/* —— shared type —— */
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 650;
}
.h-inline {
  font-size: 22px;
  letter-spacing: -0.035em;
}
.body {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 48ch;
}
.body.wide { max-width: 62ch; }

/* —— coins —— */
.coins {
  padding: 28px clamp(16px, 3vw, 28px) 40px;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.coins-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.live-count {
  color: var(--ok);
  font: 500 13px/1 var(--mono);
}
.tabs { display: flex; gap: 2px; }
.tab {
  padding: 6px 11px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
}
.tab.on, .tab:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.045);
}

.coin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.coin {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 198px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s, background .15s;
}
.coin:hover {
  border-color: rgba(196, 90, 50, 0.35);
  background: #171311;
}
.coin-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #1a1614;
}
.coin-id { min-width: 0; flex: 1; }
.name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.coin h3 { margin: 0; font-size: 14px; letter-spacing: -0.025em; font-weight: 600; }
.age, .status {
  font: 500 11px/1 var(--mono);
  color: var(--ink-3);
}
.sym-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.coin .sym { color: var(--ink-3); font: 500 12px/1.2 var(--mono); }
.badge {
  font: 550 10px/1 var(--mono);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.badge.ok {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 30%, var(--line));
  background: var(--ok-dim);
}
.badge.bad {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  background: var(--danger-dim);
}
.coin-stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 6px;
}
.coin-stats span {
  display: block;
  color: var(--ink-3);
  font: 500 10px/1 var(--mono);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.coin-stats b {
  font-size: 13px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.coin-stats .mcap b { font-size: 15px; }
.spark-wrap {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}
.spark { width: 100%; height: 34px; display: block; }
.ch {
  font: 600 12px/1 var(--mono);
  padding-bottom: 4px;
}
.ch.up { color: var(--ok); }
.ch.dn { color: var(--danger); }

/* —— mosaic: blocks share edges —— */
.mosaic {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(16, 13, 11, 0.55);
}
.cell {
  padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 10px,
      rgba(255, 220, 190, 0.025) 10px,
      rgba(255, 220, 190, 0.025) 11px
    );
}
.cell:nth-child(2n) { border-right: 0; }
.cell:nth-last-child(-n+2) { border-bottom: 0; }
.cell.panel {
  background:
    linear-gradient(165deg, rgba(196, 90, 50, 0.07), transparent 48%),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 10px,
      rgba(255, 220, 190, 0.02) 10px,
      rgba(255, 220, 190, 0.02) 11px
    ),
    #12100e;
}

.split-list, .ticks, .rules {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.split-list li, .ticks li {
  color: var(--ink);
  font-size: 14.5px;
}
.split-list b {
  color: var(--accent-2);
  margin-right: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 550;
}
.split-list .zero b { color: var(--ink); }
.ticks li {
  display: flex;
  gap: 10px;
}
.ticks li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 1px;
}
.note {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
  max-width: 48ch;
}
.rules li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.rules li:first-child { border-top: 0; padding-top: 4px; }
.rules h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.rules p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}

.panel-top, .fee-line, .weight, .earned, .stats-2 > div, .meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.panel-top {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.panel-top b, .fee-line b, .weight b, .earned b { color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 550; }
.fee-line {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13px;
}
.fee-flow {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fee-flow li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.fee-flow li:last-child { border-bottom: 0; }
.fee-flow span { color: var(--ink-2); }
.fee-flow em {
  font-style: normal;
  color: var(--ok);
  font-family: var(--mono);
  font-size: 12px;
}
.fee-flow b { font-family: var(--mono); font-weight: 550; font-size: 12px; }

.meter { margin-bottom: 14px; }
.meter-head {
  color: var(--ink-2);
  font-size: 12px;
  margin-bottom: 8px;
}
.meter-head b { font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 550; }
.meter-head i { font-style: normal; }
.bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #3d9a64);
  border-radius: 3px;
  transition: width .4s var(--ease);
}

.curve-chart {
  position: relative;
  height: 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f0d0b;
  margin-bottom: 12px;
}
.curve-chart .hatch {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 23px,
    rgba(255,255,255,0.03) 23px,
    rgba(255,255,255,0.03) 24px
  );
}
.curve-chart svg { position: relative; width: 100%; height: 100%; display: block; }
.curve-ghost { stroke: rgba(240,235,227,0.12); stroke-width: 1.5; }
.curve-line { stroke: var(--accent-2); stroke-width: 2; }
.curve-guide { stroke: rgba(240,235,227,0.12); stroke-dasharray: 3 4; }
.curve-dot { fill: var(--ok); stroke: #0f0d0b; stroke-width: 2; }

.stats-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stats-2 > div {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.2);
}
.stats-2 span { color: var(--ink-3); font: 500 11px/1 var(--mono); }
.stats-2 b { font-size: 13px; font-weight: 600; }

.grad-badge {
  margin-top: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--ok-dim);
  color: var(--ok);
  font: 550 12px/1 var(--mono);
  border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent);
}
.grad-badge.show { opacity: 1; transform: none; }

.locks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.locks article {
  padding: 12px;
  border-right: 1px solid var(--line);
  background: transparent;
}
.locks article:last-child { border-right: 0; }
.locks article.on { background: var(--accent-dim); }
.locks h3 { margin: 0; font-size: 13px; font-weight: 600; }
.locks p { margin: 4px 0 10px; color: var(--ink-3); font-size: 12px; }
.locks b { font-family: var(--mono); font-size: 18px; color: var(--accent-2); font-weight: 550; }

.lock-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 14px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.2);
}
.lock-switch button {
  padding: 8px 6px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.lock-switch button.on {
  background: rgba(255,255,255,0.07);
  color: var(--ink);
}
.weight, .earned {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
}
.lock-note {
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 12px;
}

.chip {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(196, 90, 50, 0.35);
  background: var(--accent-dim);
  color: var(--accent-2);
  font: 550 12px/1.2 var(--mono);
}
.chip-note {
  margin: 10px 0 16px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.4;
}
.snipe {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.snipe > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.snipe span { color: var(--ink-2); font-size: 13px; }
.snipe b { font-family: var(--mono); font-size: 20px; color: var(--danger); font-weight: 550; }
.snipe p { margin: 6px 0 0; color: var(--ink-3); font-size: 12px; }
.copy-check {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
}
.copy-check span { color: var(--ink-3); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.copy-check code {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 550;
}
.copy-check em {
  font-style: normal;
  color: var(--ink-2);
  font-size: 12.5px;
}
.copy-check em.ok { color: var(--ok); }
.fee-flow li.is-pulse {
  background: rgba(196, 90, 50, 0.08);
}

/* —— terms / hooks / start —— */
.terms {
  border-bottom: 1px solid var(--line);
}
.terms-head {
  padding: clamp(36px, 5vw, 52px) clamp(16px, 3vw, 28px) 24px;
}
.lead-sm {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 42ch;
  line-height: 1.45;
}
.term-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.term-grid article {
  padding: 22px clamp(14px, 2vw, 22px);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.term-grid article:last-child { border-right: 0; }
.term-grid b {
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: -0.03em;
  font-weight: 650;
}
.term-grid span {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.35;
}

.hooks, .start {
  padding: clamp(40px, 6vw, 64px) clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}
.start { text-align: center; }
.start .body { margin-left: auto; margin-right: auto; }
.start .btn { margin-top: 20px; }
.disclaimer {
  margin: 18px auto 0;
  max-width: 42ch;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.45;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 36px clamp(16px, 3vw, 28px) 48px;
  color: var(--ink-2);
  font-size: 13px;
}
.foot .logo { color: var(--ink); margin-bottom: 8px; }
.foot p { margin: 0; max-width: 28ch; line-height: 1.45; }
.cols {
  display: flex;
  gap: clamp(28px, 5vw, 56px);
}
.cols h4 {
  margin: 0 0 10px;
  color: var(--ink-3);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cols a {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
}
.cols a:hover { color: var(--ink); }

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: 1fr; }
  .cell { border-right: 0 !important; }
  .cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cell:last-child { border-bottom: 0; }
  .term-grid { grid-template-columns: repeat(2, 1fr); }
  .term-grid article:nth-child(2n) { border-right: 0; }
  .term-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .coin-grid { grid-template-columns: 1fr; }
  .locks { grid-template-columns: 1fr; }
  .locks article { border-right: 0; border-bottom: 1px solid var(--line); }
  .locks article:last-child { border-bottom: 0; }
  .lock-switch { grid-template-columns: 1fr; }
  .term-grid { grid-template-columns: 1fr; }
  .term-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .term-grid article:last-child { border-bottom: 0; }
  .frame { border-left: 0; border-right: 0; }
  .link-quiet { display: none; }
}

/* —— app pages —— */
.coin { color: inherit; cursor: pointer; }
a.coin:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.btn.sm { min-height: 28px; padding: 0 10px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn.flash { filter: brightness(1.15); }
.btn.solid.is-connected,
a.btn.solid.is-connected {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 50;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.nav a.on { color: var(--ink); background: rgba(255,255,255,0.045); }
.link-quiet.on { color: var(--ink); }

.page-head { padding: 28px clamp(16px, 3vw, 28px) 8px; margin-bottom: 0; }
.coins-page, .dash-page { padding-bottom: 48px; }
.coin-grid.dense { padding: 12px clamp(16px, 3vw, 28px) 28px; }

.cell-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
}

.av.lg { width: 44px; height: 44px; }

.token-page { padding: 18px clamp(16px, 3vw, 28px) 48px; }
.token-missing { padding: 64px 0; text-align: center; }
.token-missing h1 { font-size: 32px; letter-spacing: -0.04em; margin: 0 0 8px; }

.token-bar {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.back {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.back:hover { color: var(--ink); }
.token-id { display: flex; gap: 12px; align-items: center; }
.token-id h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 650;
}
.token-mint {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 12px;
}
.token-mint code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 12px;
  align-items: start;
}
.token-chart { grid-row: span 1; }
.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.chart-head .muted { display: block; color: var(--ink-3); font: 500 11px/1 var(--mono); margin-bottom: 6px; }
.chart-head .big { font-size: 28px; letter-spacing: -0.03em; margin-right: 8px; }
.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.chart-mode { display: flex; gap: 2px; }
.ohlc {
  font: 500 11px/1.2 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.chart-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f0d0b;
  height: 340px;
}
.tv-chart {
  width: 100%;
  height: 100%;
}
.token-chart .chart-tabs .tab {
  font-family: var(--mono);
  font-size: 12px;
  min-width: 36px;
  text-align: center;
}
.meter.tight { margin-top: 14px; margin-bottom: 0; }

.side-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: rgba(0,0,0,0.2);
}
.side-switch button {
  padding: 8px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2);
}
.side-switch button.on { background: rgba(255,255,255,0.07); color: var(--ink); }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field > span em { font-style: normal; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%;
  background: #0f0d0b;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: rgba(196, 90, 50, 0.45); }
.field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f0d0b;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding-right: 12px;
}
.field-row input {
  border: 0;
  background: transparent;
  flex: 1;
}
.field-row b { font-family: var(--mono); font-size: 12px; color: var(--ink-2); font-weight: 550; }

.quick { display: flex; gap: 6px; margin-bottom: 12px; }
.quick button {
  flex: 1;
  padding: 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  font-family: var(--mono);
}
.quick button:hover { border-color: var(--line-strong); color: var(--ink); }

.token-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.token-stats .stat {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.18);
}
.token-stats .stat.wide { grid-column: 1 / -1; }
.token-stats span { display: block; color: var(--ink-3); font: 500 11px/1 var(--mono); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.token-stats b { font-size: 15px; font-weight: 600; }
.token-stats p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }

.trade-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.trade-list li {
  display: grid;
  grid-template-columns: 52px 1fr 1fr auto;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  align-items: center;
}
.trade-list li:first-child { border-top: 0; }
.trade-list .buy b { color: var(--ok); }
.trade-list .sell b { color: var(--danger); }
.trade-list code { font-family: var(--mono); color: var(--ink-3); font-size: 11px; }
.trade-list em { font-style: normal; color: var(--ink-3); font-family: var(--mono); font-size: 11px; }

.more-coins { margin-top: 28px; }
.more-coins .section-head { padding: 0; margin-bottom: 12px; }
.lock-note.ok { color: var(--ok); }

.launch-page { padding: 24px clamp(16px, 3vw, 28px) 48px; }
.launch-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  align-items: start;
}
.launch-form h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.04em;
}
.fee-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.fee-picks button {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  font-family: var(--mono);
}
.fee-picks button.on {
  color: var(--ink);
  border-color: rgba(196, 90, 50, 0.45);
  background: var(--accent-dim);
}
.preview-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 12px 0 16px;
  background: rgba(0,0,0,0.18);
}
.preview-card h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.03em; }
.preview-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.preview-meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.preview-meta span { color: var(--ink-3); }
.preview-meta b { font-weight: 550; text-align: right; }
.copy-check em.bad { color: var(--danger); }

.dash-empty { margin: 12px clamp(16px, 3vw, 28px); }
.dash-empty p { margin: 0 0 14px; color: var(--ink-2); }

@media (max-width: 960px) {
  .token-grid, .launch-grid { grid-template-columns: 1fr; }
  .trade-list li { grid-template-columns: 48px 1fr auto; }
  .trade-list code { display: none; }
}
