:root {
  --r: 18px;
  --gold: #7A6544;
}
/* Kunstobject (default): same gallery surface as stille-feed */
:root, [data-theme="kunstobject"] {
  --bg: #F6F6F2;
  --card: #FCFCFA;
  --sand: #F0F0EC;
  --sand-2: #E8E8E4;
  --sage: #B4C3AE;
  --sage-d: #5F7556;
  --ink: #3F4841;
  --muted: #696F6A;
  --line: #E5E7E1;
  --desc: #696F6A;
  --hint: #696F6A;
  --gg-sub: #696F6A;
  --btn-text: #2F3831;
  --btn-text-hover: #fff;
  --gg-new-bg: rgba(252, 252, 250, 0.85);
  --ref-1m: #5F7556;
  --ref-1m-bg: rgba(95, 117, 86, 0.10);
  --ref-2m: #4A6678;
  --ref-2m-bg: rgba(74, 102, 120, 0.10);
  --ref-4m: #6B5A7A;
  --ref-4m-bg: rgba(107, 90, 122, 0.10);
  --ref-7m: #7A6544;
  --ref-7m-bg: rgba(122, 101, 68, 0.12);
  color-scheme: light;
}
[data-theme="zwart"] {
  --bg: #131313;
  --card: #191919;
  --sand: #1f1f1f;
  --sand-2: #252525;
  --sage: #bfcbb1;
  --sage-d: #8d9c80;
  --ink: #fff;
  --muted: #8a8c82;
  --line: #2f2f2f;
  --desc: #e7e9ea;
  --hint: #8a8c82;
  --gg-sub: #e7e9ea;
  --btn-text: #131313;
  --btn-text-hover: #131313;
  --gg-new-bg: rgba(25, 25, 25, 0.85);
  --gold: #B3A07A;
  --ref-1m: #B4C3AE;
  --ref-1m-bg: rgba(180, 195, 174, 0.10);
  --ref-2m: #9BB0BE;
  --ref-2m-bg: rgba(155, 176, 190, 0.10);
  --ref-4m: #B5A6C4;
  --ref-4m-bg: rgba(181, 166, 196, 0.12);
  --ref-7m: #B3A07A;
  --ref-7m-bg: rgba(179, 160, 122, 0.12);
  color-scheme: dark;
}
[data-theme="wit"] {
  --bg: #ffffff;
  --card: #ffffff;
  --sand: #f5f5f5;
  --sand-2: #eeeeee;
  --sage: #bfcbb1;
  --sage-d: #5F7556;
  --ink: #000000;
  --muted: #666666;
  --line: #e0e0e0;
  --desc: #333333;
  --hint: #666666;
  --gg-sub: #333333;
  --btn-text: #2F3831;
  --btn-text-hover: #fff;
  --gg-new-bg: rgba(255, 255, 255, 0.85);
  --ref-1m: #5F7556;
  --ref-1m-bg: rgba(95, 117, 86, 0.08);
  --ref-2m: #3F5A6C;
  --ref-2m-bg: rgba(63, 90, 108, 0.08);
  --ref-4m: #5E4E6C;
  --ref-4m-bg: rgba(94, 78, 108, 0.08);
  --ref-7m: #7A6544;
  --ref-7m-bg: rgba(122, 101, 68, 0.10);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  padding: 64px 24px 72px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site, .controls, main {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

h1 {
  margin: 0;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.01em;
}

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.back:hover { color: var(--ink); text-decoration: underline; }

.summary {
  margin: 10px 0 0;
  color: var(--gold);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  min-height: 1.2em;
}

.blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.blocks button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0 6px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.blocks button:hover { color: var(--ink); }

.blocks button.on {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.blocks button .hint {
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  margin-top: 1px;
}

.blocks button.on .hint { color: var(--gold); }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 22px auto 28px;
}

.group {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
}

.group button {
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  margin: 0;
  padding: 7px 12px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 0;
}

.group button:last-child { border-right: 0; }

.group button:hover { color: var(--ink); }

.group button.on {
  color: var(--ink);
  background: var(--sand);
}

.sort {
  position: relative;
  margin-left: auto;
}

.sort::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transform: translateY(-40%);
  pointer-events: none;
}

.sort select {
  appearance: none;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 12px;
  padding: 7px 28px 7px 12px;
  cursor: pointer;
}

.sort select:focus,
.group button:focus-visible,
.blocks button:focus-visible,
.more:focus-visible,
.exit:focus-visible,
.seed:focus-visible,
.copy-seed:focus-visible,
.wallet-btn:focus-visible,
.mint-btn:focus-visible,
.sale-btn:focus-visible,
.gate-connect:focus-visible,
.gg-hint:focus-visible,
.gg-mint:focus-visible,
.fs-open:focus-visible,
.hero:focus-visible,
.thumbs button:focus-visible,
.browse button:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 18px;
}

.card {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 0;
  width: 100%;
}

.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.card:hover .thumb, .card:focus-visible .thumb { border-color: var(--sage); }

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--sand);
}

.thumb.empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 11px,
    var(--sand-2) 11px,
    var(--sand-2) 12px
  );
}

.cap {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.cap-top,
.meta-sale {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-height: 18px;
  margin-bottom: 3px;
}

.refined-slot {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
}

.refined {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 5px 0 4px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.refined-swatch {
  display: block;
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 0;
  flex: 0 0 auto;
}

.refined-1m { color: var(--ref-1m); background: var(--ref-1m-bg); }
.refined-2m { color: var(--ref-2m); background: var(--ref-2m-bg); }
.refined-4m { color: var(--ref-4m); background: var(--ref-4m-bg); }
.refined-7m { color: var(--ref-7m); background: var(--ref-7m-bg); }

.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.badge.free { color: var(--muted); }

.badge.mark {
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1px 6px;
}

a.sale-btn {
  text-decoration: none;
  cursor: pointer;
}

a.badge.mark.sale-btn:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--sand);
}

.meta-sale { margin: 12px 0 0; }

.sale-btn-meta {
  display: inline-block;
  margin: 0;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 3px 9px;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}

.sale-btn-meta:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--sand);
}

.badge.other { color: var(--sage); }

.metrics { color: var(--muted); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 5px;
}

.links a {
  color: var(--sage-d);
  text-decoration: none;
  font-size: 11px;
}

.links a:hover { text-decoration: underline; }

.copy-seed {
  position: relative;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding: 2px 8px;
  cursor: pointer;
}

.copy-seed:hover { border-color: var(--gold); color: var(--gold); }

.copy-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: var(--gold);
  pointer-events: none;
}

.copy-seed.done .copy-idle { visibility: hidden; }
.copy-seed.done .copy-done { opacity: 1; }
.copy-seed.done { border-color: var(--gold); color: var(--gold); }

.empty {
  margin: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.more {
  appearance: none;
  display: block;
  background: none;
  color: var(--sage-d);
  border: 1px solid var(--sage);
  border-radius: 0;
  padding: 9px 22px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.more:hover { color: var(--btn-text); background: var(--sage); border-color: var(--sage); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(11, 11, 11, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px 16px;
}

.overlay[hidden] { display: none; }

.sheet {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 28px 24px 20px;
}

.exit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  border-radius: 0;
}

.exit:hover { color: var(--ink); }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 22px 28px;
  align-items: start;
}

.viewer { min-width: 0; }

.hero {
  display: block;
  width: min(100%, 62vh, 580px);
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: zoom-in;
  border-radius: 0;
}

.hero img, .hero .ph {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--card);
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  width: min(100%, 62vh, 580px);
}

.iter-switch { margin-top: 0; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumbs button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  border-radius: 0;
}

.thumbs button:hover { border-color: var(--sage); color: var(--ink); }

.thumbs button.on { border-color: var(--gold); color: var(--gold); }

.thumbs img, .thumbs .ph {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--card);
}

.thumbs span {
  display: block;
  padding: 3px 0 4px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.fs-open {
  appearance: none;
  display: inline-block;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.fs-open:hover { color: var(--ink); }

.side { min-width: 0; padding-top: 2px; }

.browse {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.browse button {
  appearance: none;
  width: 32px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  border-radius: 0;
}

.browse button:hover { border-color: var(--sage); color: var(--ink); }

.browse button:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--line);
  color: var(--muted);
}

.meta {
  margin: 0;
  padding: 0;
  border: 0;
}

.seed {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font: 13px/1.4 ui-monospace, "Menlo", "Consolas", monospace;
  cursor: copy;
}

.seed:hover { color: var(--sage-d); }

.seed.done { color: var(--gold); }

.facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.facts strong {
  color: var(--ink);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.facts .gold { color: var(--gold); }

.fact-iters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.fact-iters .refined { position: relative; top: 0; }

.meta .links { margin-top: 16px; }
.meta .links a { font-size: 13px; }

.fs {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #0b0b0b;
  display: grid;
  place-items: center;
  padding: 48px 16px 72px;
}

.fs[hidden] { display: none; }

.fs-frame {
  width: min(92vw, 88vh);
  aspect-ratio: 1 / 1;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.fs-frame img, .fs-frame .ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  background: transparent;
}

.fs .exit { color: rgba(255, 255, 255, 0.72); }
.fs .exit:hover { color: #fff; }

.fs-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b0b0b;
  border-color: #2a2a2a;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .hero, .viewer-bar { width: min(100%, 64vh); }
}

@media (max-width: 640px) {
  body { padding: 36px 18px 80px; }
  h1 { font-size: 24px; }
  .sort { margin-left: 0; width: 100%; }
  .sort select { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .sheet { padding: 40px 16px 20px; }
  .hero { width: 100%; }
}

/* ---------- Wallet (header) ---------- */
.wallet {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.wallet-btn:hover,
.wallet-btn.on {
  border-color: var(--gold);
  color: var(--gold);
}

.wallet-gs {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--sage);
  white-space: nowrap;
}

.wallet-gs::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: var(--sage);
  vertical-align: 0;
}

.wallet-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 4px;
}

.wallet-menu button {
  display: block;
  width: 100%;
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.wallet-menu button:hover { color: var(--ink); background: var(--sand); }

.wallet-pick {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 21;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.gg .wallet-pick,
.gate-card .wallet-pick {
  position: static;
  margin-top: 10px;
}

.wallet-pick-t { font-size: 12px; color: var(--muted); margin-right: 2px; }

.wallet-pick-w {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.wallet-pick-w img { width: 16px; height: 16px; }
.wallet-pick-w:hover,
.wallet-pick-w.on { border-color: var(--gold); color: var(--gold); }

.wallet-pick-x {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Mint button ---------- */
.mint-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding: 2px 8px;
  cursor: pointer;
}

.mint-btn:hover { border-color: var(--gold); color: var(--gold); }
.mint-btn:disabled { cursor: default; opacity: 0.85; }
.mint-btn.is-wait { color: var(--muted); border-color: var(--line); }
.mint-btn.is-ok { border-color: var(--gold); color: var(--gold); }
.mint-btn.is-err { color: var(--muted); }

.mint-ok {
  color: var(--gold);
  text-decoration: none;
  font-size: 11px;
}
.mint-ok:hover { color: var(--gold); }
.meta .links .mint-btn,
.meta .links .mint-ok { font-size: 13px; }

/* ---------- Blok 2 gate ---------- */
body.gated .controls,
body.gated .grid,
body.gated .empty,
body.gated .more-wrap { display: none; }

.gate {
  display: grid;
  place-items: start center;
  padding: 36px 0 24px;
}

.gate[hidden] { display: none; }

.gate-card {
  width: min(640px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 36px 28px 28px;
  text-align: center;
}

.gate-card > h2 {
  margin: 0 auto;
  max-width: 22em;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--ink);
}

.gate-connect { margin-top: 18px; }

.gate-none {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Generative Square drawer — same structure as stille-feed, dark schatkamer palette */
.gg-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 0;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.gg-hint:hover,
.gg-hint:focus-visible { color: var(--ink); border-color: var(--sage); }
.gg-hint[hidden] { display: none; }

.gg-mark {
  width: 12px;
  height: 12px;
  background: var(--sage);
  border-radius: 2px;
  flex: none;
}

.gg {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 24px 0 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
}

.gg[hidden] { display: none; }

.gg-close {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.5;
}

.gg-close:hover,
.gg-close:focus-visible { opacity: 1; }

.gg-art {
  position: relative;
  flex: none;
  width: 168px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

.gg-art iframe { width: 100%; height: 100%; border: 0; display: block; }

.gg-new {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--gg-new-bg);
  color: var(--muted);
  font-size: 14px;
  line-height: 26px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.gg-art:hover .gg-new,
.gg-new:focus { opacity: 1; }

.gg-info { flex: 1; min-width: 0; }

.gg-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gg-info h2 {
  font-weight: 400;
  font-size: 18px;
  margin: 2px 0 4px;
}

.gg-sub { margin: 0; color: var(--gg-sub); font-size: 14px; line-height: 1.5; }

.gg-row {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gg-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.gg-qty {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}

.gg-qty[hidden] { display: none; }

.gg-qty button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.gg-qty button:hover:not(:disabled) { color: var(--sage-d); }
.gg-qty button.on {
  background: var(--bg);
  color: var(--sage);
  box-shadow: inset 0 0 0 1px var(--line);
}
.gg-qty button:disabled { opacity: 0.35; cursor: default; }

.gg-stop { display: block; margin-top: 2px; }

.gg-mint {
  border: 0;
  background: var(--sage);
  color: var(--btn-text);
  border-radius: 999px;
  padding: 9px 22px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.gg-mint:hover { background: var(--sage-d); color: var(--btn-text-hover); }
.gg-mint:disabled { background: var(--line); color: var(--muted); cursor: default; }
.gg-mint.gg-connect {
  background: transparent;
  color: var(--sage);
  box-shadow: inset 0 0 0 1px var(--line);
}
.gg-mint.gg-connect:hover { background: var(--bg); color: var(--sage); }

.gg-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); min-height: 1em; }
.gg-note:empty { display: none; }
.gg-note a { color: var(--sage); }
.gg-switch {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .bar-end { width: 100%; }
  .wallet { margin-left: auto; }
  .gg { flex-direction: column; align-items: stretch; text-align: center; padding: 16px; gap: 14px; }
  .gg-close { margin-left: auto; margin-right: auto; }
  .gg-art { width: 100%; max-width: 280px; margin: 0 auto; }
  .gg-row, .gg-act { justify-content: center; }
  .gate-card { padding: 28px 18px 22px; }
}

.badge.minted { color: var(--muted); }

/* Mail compose popover — fixed, so cards cannot clip it */
.mail-pop {
  position: fixed;
  z-index: 80;
  min-width: 156px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.mail-pop a,
.mail-pop button {
  display: block;
  width: 100%;
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  padding: 8px 12px;
  cursor: pointer;
}

.mail-pop a:hover,
.mail-pop button:hover { background: var(--sand); }

.mail-pop button.done { color: var(--gold); }

a.sale-btn,
button.sale-btn {
  appearance: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

/* Theme switcher: identical to stille-feed */
.theme-switch{position:fixed;bottom:24px;right:24px;z-index:100;display:flex;flex-direction:column-reverse;align-items:flex-end;gap:8px}
.theme-toggle{width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--card);box-shadow:0 2px 12px rgba(0,0,0,.08);cursor:pointer;display:grid;place-items:center}
.theme-toggle:hover,.theme-toggle:focus-visible{border-color:var(--sage)}
.theme-swatch{width:16px;height:16px;background:var(--sage);border-radius:2px;display:block}
.theme-menu{display:flex;flex-direction:column;gap:2px;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:4px;box-shadow:0 2px 12px rgba(0,0,0,.08)}
.theme-menu[hidden]{display:none}
.theme-menu button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;padding:8px 14px;border-radius:6px;cursor:pointer;text-align:right;min-height:44px}
.theme-menu button:hover{color:var(--ink);background:var(--sand)}
.theme-menu button.active{background:var(--sage);color:var(--btn-text)}
@media (max-width:560px){
  .theme-switch{bottom:16px;right:16px}
}
