:root {
  --bg: #0d0d0d;
  --ink: #f2f2f2;
  --dim: rgba(242, 242, 242, 0.58);
  --faint: rgba(242, 242, 242, 0.38);
  --line: rgba(255, 255, 255, 0.08);
  --panel: #171717;
  --well: #141414;
  --card: #1f1f1f;
  --bad: #ff8d9a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(700px 420px at 80% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }

.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(13, 13, 13, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.brand-mark { width: 28px; height: 28px; }
nav {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #171717;
  border: 1px solid var(--line);
}
nav a {
  color: var(--dim);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
}
nav a.on { color: var(--ink); background: #2a2a2a; }
.wallet-btn {
  margin-left: auto;
  border: 0;
  background: var(--ink);
  color: #111;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 560;
}
.wallet-btn:hover { background: #fff; }

main { max-width: 1080px; margin: 0 auto; padding: 28px 22px 72px; }
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 22px 32px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

h1, h2, h3 { font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: -0.03em; }
h1 { font-size: clamp(56px, 7vw, 84px); line-height: 0.92; margin: 0 0 16px; }
h2 { font-size: clamp(34px, 4vw, 46px); line-height: 1; margin: 0 0 10px; }
h3 { font-size: 28px; margin: 0; }
p { margin: 0 0 14px; }
.dim { color: var(--dim); }
.eyebrow, .kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}
.lede { max-width: 38rem; font-size: 16px; color: var(--dim); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 28px 28px 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    #161616;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.stage { display: flex; flex-direction: column; align-items: center; }
.glass-coin {
  width: min(340px, 78vw);
  border-radius: 28px;
  mix-blend-mode: screen;
}
.disc-name {
  position: relative;
  height: 1.15em;
  width: 100%;
  margin-top: -18px;
  text-align: center;
  font-family: "Instrument Serif", serif;
  font-size: 42px;
}
.disc-name span {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  animation: rewrite 7.5s infinite;
}
.disc-name span:nth-child(2) { animation-delay: 2.5s; }
.disc-name span:nth-child(3) { animation-delay: 5s; }
.disc-note {
  margin: 6px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
@keyframes rewrite {
  0% { opacity: 0; transform: translateY(8px); }
  8% { opacity: 1; transform: none; }
  28% { opacity: 1; }
  36% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}

.facts, .band, .pairs { display: grid; gap: 10px; }
.facts { grid-template-columns: repeat(4, 1fr); margin: 12px 0 16px; }
.facts div, .band article, .pair, .explain, .form-card, .rename-sheet, .card, .ticket, .empty {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.facts div { padding: 16px; }
.facts b {
  display: block;
  color: var(--ink);
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.facts .dim { display: block; margin-top: 6px; font-size: 13px; }

.explain {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 14px;
  padding: 22px;
}
.rewrite {
  background: #111;
  color: var(--ink);
  border-radius: 18px;
  padding: 8px 16px 14px;
  border: 1px solid var(--line);
}
.rewrite .was, .rewrite .now { display: grid; gap: 2px; padding: 10px 0; }
.rewrite .was { opacity: 0.4; }
.rewrite .was b { text-decoration: line-through; text-decoration-thickness: 1px; }
.rewrite span, .rewrite em {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.rewrite b { font-family: "Instrument Serif", serif; font-size: 32px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.rewrite p { margin: 8px 0 0; color: var(--faint); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

.band { grid-template-columns: repeat(3, 1fr); margin: 0 0 28px; }
.band article { padding: 18px 18px 8px; }
.band .num { color: var(--faint); font-size: 12px; letter-spacing: 0.12em; }
.band h3 { margin: 8px 0; }
.band p { color: var(--dim); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 8px 2px 12px; }
.section-head .dim { font-size: 13px; }
.pairs { grid-template-columns: repeat(4, 1fr); margin: 0 0 22px; }
.pair {
  padding: 16px;
  text-align: left;
  min-height: 108px;
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}
.pair:hover, .pair.on { background: #232323; transform: translateY(-1px); }
.pair b { display: block; font-family: "Instrument Serif", serif; font-size: 32px; font-weight: 400; }
.form-card .pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-card .pair { min-height: 88px; padding: 12px; }
.form-card .pair b { font-size: 22px; }
.pair small { color: var(--dim); }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.solid, .ghost, .text-link {
  border-radius: 999px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.solid { background: var(--ink); color: #111; border: 0; font-weight: 600; }
.solid:hover { background: #fff; }
.ghost, .text-link { border: 1px solid var(--line); background: #1a1a1a; color: var(--ink); }
.ghost:hover, .text-link:hover { background: #242424; }
.solid:disabled, .ghost:disabled { opacity: 0.45; cursor: default; }

label { display: block; margin: 0 0 14px; }
label span, .k { display: block; color: var(--dim); margin-bottom: 6px; font-size: 13px; }
input, textarea {
  width: 100%;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--well);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { border-color: #3a3a3a; outline: none; }
.err { color: var(--bad); min-height: 1.4em; }
.split { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }
.split.links { grid-template-columns: 1fr 1fr; }
.drop {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 14px;
  cursor: pointer;
  background: #141414;
}
.drop img, .ph, .card .ph {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  background: #0d0d0d;
}
.card .ph { width: 72px; height: 72px; }

.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 14px;
  align-items: start;
}
.form-card, .rename-sheet { padding: 22px; }
.ticket {
  color: var(--ink);
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.shot {
  aspect-ratio: 1.15;
  background: #0e0e0e;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .mark, .coin .mark {
  font-family: "Instrument Serif", serif;
  font-size: 64px;
  color: var(--ink);
}
.ticket .pad { padding: 18px 18px 8px; }
.ticket h3 { font-size: 36px; }
.ticket .keep { color: var(--dim); }
.terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.terms div { padding: 12px 16px 14px; }
.terms div:nth-child(odd) { border-right: 1px solid var(--line); }
.terms b { display: block; font-family: "Instrument Serif", serif; font-size: 22px; font-weight: 400; }
.terms .dim { font-size: 12px; }

.look {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 8px;
  padding: 14px;
  border-radius: 22px;
  background: #161616;
  border: 1px solid var(--line);
}
.look label { margin: 0; }
.board { margin-top: 12px; display: grid; gap: 10px; }
.card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
}
.card:hover { background: #232323; }
.card b { font-family: "Instrument Serif", serif; font-size: 24px; font-weight: 400; }
.empty { padding: 22px; color: var(--dim); }

.coin {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 14px;
  align-items: start;
}
.coin .shot { aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--line); }
.mono { word-break: break-all; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--dim); }
.stamp {
  display: inline-block;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #1a1a1a;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-size: 12px;
}
.stamp.frozen { color: var(--faint); }
.meter { height: 3px; border-radius: 99px; background: #2a2a2a; margin: 8px 0 14px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); }
.rename-sheet { margin-top: 14px; }
.hide { display: none !important; }

@media (max-width: 860px) {
  .bar { gap: 10px; padding: 0 14px; }
  main, .foot { padding-left: 14px; padding-right: 14px; }
  .hero, .sheet, .coin, .facts, .band, .pairs, .split, .look, .explain { grid-template-columns: 1fr; }
  .facts, .pairs { grid-template-columns: 1fr 1fr; }
  .ticket { position: static; }
  h1 { font-size: 48px; }
  .hero { padding: 20px 16px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .disc-name span { animation: none; opacity: 0; }
  .disc-name span:first-child { opacity: 1; }
  .pair { transition: none; }
}
