:root {
  --bg: #000;
  --text: #fff;
  --muted: #c8c8c8;
  --line: #2a2a2a;
  --btn: #c5d4f5;
  --card: #f3f6ff;
  --ink: #111;
  --serif: "Playfair Display", "Times New Roman", Times, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--sans); }
a { color: inherit; }
button, input, select { font-family: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 80px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 10px; }
.nav-brand img { width: 52px; height: 52px; display: block; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a.active { text-decoration: underline; }
.demo-note { color: var(--muted); font-size: 13px; text-align: center; max-width: 760px; margin: 10px auto 0; line-height: 1.45; }
.hero { text-align: center; padding: 28px 0 18px; }
.wordmark { width: min(340px, 80vw); height: auto; display: block; margin: 0 auto 14px; }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 48px); }
.hero p { color: var(--muted); max-width: 680px; margin: 10px auto 0; }
.hero em { display: block; margin-top: 12px; font-family: var(--serif); color: #ddd; }
.tabs { display: flex; gap: 8px; justify-content: center; margin: 8px 0 22px; }
.tab {
  background: transparent; color: #fff; border: 1px solid #444; border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
}
.tab.on { background: var(--card); color: var(--ink); border-color: var(--card); }
.pin-label { color: var(--muted); font-size: 13px; margin: 8px 0; letter-spacing: 0.04em; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 28px; }
.tile {
  background: var(--card); color: var(--ink); border-radius: 16px; overflow: hidden; cursor: pointer;
  text-align: left; border: 0; width: 100%; padding: 0;
}
.tile canvas, .tile img { width: 100%; aspect-ratio: 1; display: block; background: #000; image-rendering: pixelated; }
.tile .body { padding: 10px 12px 12px; }
.tile strong { font-family: var(--serif); font-size: 18px; display: block; }
.tile .sub { color: #555; font-size: 13px; margin-top: 2px; }
.tile .amt { margin-top: 6px; font-size: 13px; }
.card {
  background: var(--card); color: var(--ink); border-radius: 16px; padding: 16px;
  max-width: 640px; margin: 0 auto 20px;
}
.card-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.muted { color: #666; }
.palette { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin-bottom: 10px; }
.swatch { height: 20px; border: 2px solid transparent; border-radius: 3px; cursor: pointer; }
.swatch.on { border-color: #111; }
.paint-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.paint-tools button, .paint-tools select, .field input, .field select, .card input[type=file] {
  background: #fff; border: 1px solid #cfd6e6; border-radius: 8px; padding: 6px 10px; color: #111;
}
.paint-stage {
  width: min(512px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 12px;
  background: #111;
  border: 1px solid #c5c5c5;
}
#paint {
  width: 100%; height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: crosshair;
  background: #000;
  display: block;
}
.field { display: grid; gap: 4px; margin: 8px 0; font-size: 13px; }
.field input { width: 100%; }
.hint { font-size: 13px; color: #555; margin: 8px 0; }
.hint.dark { color: var(--muted); }
.primary {
  background: #111; color: #fff; border: 0; border-radius: 999px;
  padding: 10px 18px; cursor: pointer; font-weight: 600;
}
.mint-switch { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.file-prev {
  margin: 10px 0; min-height: 160px; background: #111; color: #888;
  display: flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden;
}
.file-prev img { max-width: 100%; max-height: 280px; }
.lead { color: var(--muted); max-width: 720px; margin: 0 auto 16px; text-align: center; }
.archive-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.archive-card {
  background: var(--card); color: var(--ink); border-radius: 16px; padding: 28px 20px;
  text-decoration: none; display: grid; gap: 6px;
}
.archive-card strong { font-family: var(--serif); font-size: 26px; }
.archive-card.clock { background: #111; color: #fff; border: 1px solid #444; }
.fees { color: var(--muted); text-align: center; margin-top: 20px; font-size: 14px; }
footer { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--card); color: var(--ink); border-radius: 18px;
  padding: 18px; max-width: 420px; width: 100%; position: relative;
}
.modal-card canvas, .modal-card img { width: 100%; aspect-ratio: 1; background: #000; image-rendering: pixelated; }
.modal-card h2 { font-family: var(--serif); margin-top: 10px; }
.modal-card .stmt { margin: 6px 0; font-style: italic; }
.modal-card .meta, .modal-card .price { color: #555; font-size: 13px; }
.x { position: absolute; right: 10px; top: 6px; background: none; border: 0; font-size: 22px; cursor: pointer; }
@media (max-width: 700px) {
  .archive-hero { grid-template-columns: 1fr; }
  .palette { grid-template-columns: repeat(8, 1fr); }
}

.tiny { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.col-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.col-chip {
  background: #f3f6ff; color: #111; border: 0; border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font-size: 14px;
}
.col-chip.on { outline: 2px solid #fff; }
.listings-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.listings-head select { background: #111; color: #fff; border: 1px solid #444; border-radius: 8px; padding: 6px 8px; }
.price-line { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; }
.price-line img { width: 16px; height: 16px; }
.who { font-size: 12px; color: #555; margin-top: 4px; }
.file-lab { margin-left: auto; }
.file-lab input { display: block; max-width: 180px; }
.create-col { margin-bottom: 18px; }
.modal-card .who { color: #444; }

.row-note { color: var(--muted); font-size: 13px; margin: -4px 0 10px; }
.coll-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.coll-chip {
  background: #161616; color: #fff; border: 1px solid #3a3a3a; border-radius: 999px;
  padding: 7px 12px; cursor: pointer; font-size: 13px;
}
.coll-chip.on { background: var(--card); color: var(--ink); border-color: var(--card); }
.price-line { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 650; }
.price-line img { width: 16px; height: 16px; border-radius: 50%; }
.who-line { color: #555; font-size: 12px; margin-top: 4px; line-height: 1.4; }
.file-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.file-mini input { max-width: 180px; }
.modal-card .who { color: #555; font-size: 13px; margin: 4px 0; }
.modal-card .price { display: flex; align-items: center; gap: 6px; font-weight: 650; color: #111; }
.modal-card .price img { width: 16px; height: 16px; border-radius: 50%; }

.badge-mj {
  display: inline-block; margin-top: 4px; font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; background: #111; color: #fff; border-radius: 999px;
  padding: 2px 8px;
}
.tile .badge-mj { margin-bottom: 4px; }

.nav { flex-wrap: wrap; }
.wallet-wrap { position: relative; }
.wallet-btn {
  background: var(--btn); color: #111; border: 0; border-radius: 10px;
  padding: 8px 14px; font-weight: 600; cursor: pointer;
}
.wallet-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: #111;
  border-radius: 10px; min-width: 160px; z-index: 6; overflow: hidden;
}
.wallet-menu button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 10px 12px; cursor: pointer; }
.badge {
  display: inline-block; margin-top: 4px; font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; background: #111; color: #fff; border-radius: 999px; padding: 2px 8px;
}
.price-line { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.price-line img { width: 16px; height: 16px; border-radius: 50%; }
.manual { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.manual input {
  background: #fff; color: #111; border: 1px solid #cfd6e6; border-radius: 8px; padding: 8px 10px; min-width: 160px;
}
.status-line { color: var(--muted); font-size: 13px; text-align: center; min-height: 18px; margin: 8px 0; }

.wallet-bar { display:flex; align-items:center; gap:12px; justify-content:center; margin: 8px 0 4px; flex-wrap:wrap; }
.wallet-bar .primary { background:#f3f6ff; color:#111; }
.howto { margin-top:28px; color:#c8c8c8; }
.howto h2 { font-family: var(--serif); color:#fff; margin-bottom:10px; }
.howto ol { padding-left:22px; display:grid; gap:8px; }
.badge-mj { display:inline-block; margin-top:4px; font-size:11px; letter-spacing:.04em; text-transform:uppercase; background:#111; color:#fff; border-radius:999px; padding:2px 8px; }
.price-line { display:flex; align-items:center; gap:6px; margin-top:6px; font-size:13px; }
.price-line img { width:16px; height:16px; }
.who { font-size:12px; color:#555; margin-top:4px; }
.tiny { color:#c8c8c8; font-size:13px; }
.col-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.col-chip { background:#f3f6ff; color:#111; border:0; border-radius:999px; padding:8px 14px; cursor:pointer; font-size:14px; }
.listings-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.listings-head select { background:#111; color:#fff; border:1px solid #444; border-radius:8px; padding:6px 8px; }
.hint.bad { color:#f3b4b4; }
