/* ─────────────────────────────────────────────────────────────
   ui.css · the site, away from the world.

   Dark, quiet, expensive. One deep ground, surfaces a shade above
   it, a gold that is used for exactly one thing at a time, and a
   mint for anything that is alive right now. Bricolage Grotesque for
   the words that carry the page, Inter for the ones you read, a mono
   for numbers and addresses so they line up.

   The layout is plain: a hero with the map in a window, a strip of
   the buildings going past, the numbers, the mechanics as prose, and
   a footer with links in it. One soft light at the top of the page
   and nothing else glowing.

   The class names are the ones the page scripts already emit, so
   the shop, the holdings and the docs restyle without a line of
   JavaScript moving.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0c10;
  --bg-2: #0e1116;
  --surface: #12161c;
  --surface-2: #171c24;
  --surface-3: #1e242e;
  --line: #222932;
  --line-2: #2e3743;
  --text: #edf0f5;
  --ink: #ffffff;
  --dim: #a3abb8;
  --muted: #6c7482;
  --accent: #f2b544;
  --accent-ink: #ffd27a;
  --accent-soft: rgba(242, 181, 68, .12);
  --accent-line: rgba(242, 181, 68, .35);
  --mint: #3ad6a0;
  --mint-soft: rgba(58, 214, 160, .12);
  --red: #ef5a5a;
  --red-soft: rgba(239, 90, 90, .12);
  --green: var(--mint);
  --green-soft: var(--mint-soft);
  /* the names the older scripts still set inline */
  --brand-peach: var(--accent);
  --stone-hi: var(--ink);
  --danger: var(--red);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: 28px;
  --r: 8px;
  --r-lg: 12px;
  --r-pill: 999px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 24px 60px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "tnum";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #1a1205; }

.bk-page { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.bk-page > main { flex: 1; }
.bk-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* one soft light over the top of the page, and nothing else glowing */
.bk-page::before {
  content: ""; position: absolute; inset: -120px 0 auto 0; height: 480px; z-index: 0; pointer-events: none;
  background: radial-gradient(760px 280px at 30% 0%, rgba(242, 181, 68, .07), transparent 72%);
}
.bk-page > * { position: relative; z-index: 1; }

/* ── type ─────────────────────────────────────────────────────── */
.bk-eyebrow {
  margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.bk-display {
  margin: 0 0 22px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.03em;
  color: var(--ink);
}
.bk-display em { font-style: normal; color: var(--accent); }
.bk-h1 {
  margin: 0 0 14px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 3.8vw, 46px); line-height: 1.04; letter-spacing: -.03em; color: var(--ink);
}
.bk-h2 {
  margin: 0 0 10px;
  font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.015em; color: var(--ink);
}
.bk-h3 {
  margin: 28px 0 8px;
  font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; color: var(--ink);
}
.bk-lead {
  margin: 0 0 26px; max-width: 58ch;
  font-size: 17.5px; line-height: 1.6; color: var(--dim);
}
.bk-lead strong { color: var(--ink); font-weight: 600; }
.bk-p { margin: 0 0 14px; max-width: 66ch; color: var(--dim); }
.bk-p strong { color: var(--text); font-weight: 600; }
.bk-dim { color: var(--dim); }
.bk-muted { color: var(--muted); font-size: 13.5px; }
.bk-ul { margin: 0 0 16px; padding-left: 20px; color: var(--dim); }
.bk-ul li { margin: 0 0 8px; }
.bk-ul li strong { color: var(--text); }
.bk-code {
  display: block; margin: 8px 0 18px; padding: 12px 14px;
  font-family: var(--mono); font-size: 13px; word-break: break-all;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); color: var(--accent-ink);
}
.bk-note {
  margin: 14px 0; padding: 13px 16px;
  font-size: 14px; line-height: 1.55;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); color: var(--dim);
}
.bk-note strong { color: var(--text); }
.bk-note.bk-warn { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.city-docs-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--accent-ink); border-bottom: 1px solid var(--accent-line);
}
.city-docs-link:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* ── the contract address, above everything ───────────────────
   Thin, centred, monospace, one gold word. It scrolls away with the
   page: it is the first thing you see, not a thing that follows you
   down the screen. */
.bk-ca {
  position: relative; z-index: 21;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.bk-ca-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.bk-ca-label {
  font-family: var(--display); font-weight: 600; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
/* the placeholder in the middle of the header, until there is an address */
.bk-ca-soon {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .18em;
  color: var(--accent); border: 1px solid var(--accent-line); border-radius: 999px;
  background: rgba(242, 181, 68, .08); white-space: nowrap;
}
.bk-ca-soon i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: city-ca-soon 1.6s ease-in-out infinite; }
@keyframes city-ca-soon { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.bk-ca-soon b { font-weight: 700; letter-spacing: .18em; }
.bk-ca-copy {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--ink);
  background: transparent; border: 0; padding: 0; cursor: pointer;
}
.bk-ca-copy:hover { color: var(--accent); }
.bk-ca-short { display: none; }
.bk-ca-go { color: var(--muted); text-decoration: none; font-size: 13px; }
.bk-ca-go:hover { color: var(--accent); }
.bk-ca-live.copied { border-color: rgba(58, 214, 160, .5); }
.bk-ca-live.copied .bk-ca-copy { color: var(--mint); }
.bk-ca-live.copied .bk-ca-full::after, .bk-ca-live.copied .bk-ca-short::after { content: "  copied"; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
@media (max-width: 1100px) { .bk-ca-full { display: none; } .bk-ca-short { display: inline; } }
/* the world's header is already full of chips: the short form there, always */
.bk-world-body .bk-ca-full { display: none; }
.bk-world-body .bk-ca-short { display: inline; }
@media (max-width: 700px) { .bk-ca-soon { padding: 4px 9px; font-size: 11px; letter-spacing: .12em; gap: 6px; } .bk-ca-copy { font-size: 11px; } }
.bk-ca-addr {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px;
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.bk-ca-addr::after { content: "copy"; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bk-ca-addr:hover { border-color: var(--accent-line); color: var(--ink); }
.bk-ca-addr:hover::after { color: var(--accent); }
.bk-ca.copied .bk-ca-addr { color: var(--mint); border-color: rgba(58, 214, 160, .4); }
.bk-ca.copied .bk-ca-addr::after { content: "✓"; color: var(--mint); }
.bk-ca.failed .bk-ca-addr { color: var(--red); border-color: rgba(239, 90, 90, .4); }
.bk-ca.failed .bk-ca-addr::after { content: ""; }
.bk-ca-link { font-size: 12px; color: var(--muted); }
.bk-ca-link:hover { color: var(--accent-ink); }
@media (max-width: 720px) {
  .bk-ca-inner { gap: 8px; padding: 6px var(--gutter); }
  .bk-ca-addr { font-size: 11px; padding: 3px 8px; }
  .bk-ca-addr span { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bk-ca-link { display: none; }
}

/* ── header ───────────────────────────────────────────────────── */
.bk-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 12, 16, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bk-top-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 66px; display: flex; align-items: center; gap: 28px;
}
.bk-brand { display: flex; align-items: center; gap: 11px; }
.bk-brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; image-rendering: auto; }
.bk-brand span {
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .06em; color: var(--ink);
}
.bk-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.bk-nav a {
  padding: 8px 13px; border-radius: var(--r-pill);
  font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--dim);
  transition: color .15s ease, background .15s ease;
}
.bk-nav a:hover { color: var(--ink); background: var(--surface-2); }
.bk-nav a.on { color: var(--ink); background: var(--surface-3); }
.bk-spacer { flex: 1; }
.bk-wallet { display: flex; align-items: center; gap: 10px; }
.bk-wallets { display: flex; gap: 8px; flex-wrap: wrap; }

.bk-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 500; color: var(--dim);
  background: var(--surface); border: 1px solid var(--line);
}
.bk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: 0 0 auto; box-shadow: 0 0 0 3px var(--mint-soft); }
.bk-dot.warn { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bk-dot.off { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.bk-account {
  padding: 7px 12px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
}
.bk-account:hover { border-color: var(--line-2); }
.bk-account b { color: var(--accent-ink); font-weight: 500; font-family: var(--sans); }
.bk-account i { font-style: normal; color: var(--muted); }

/* ── buttons ──────────────────────────────────────────────────── */
.city-enter, .bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 8px;
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: -.005em;
  color: #15100a; background: var(--accent); border: 1px solid var(--accent);
  cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
}
.city-enter:hover, .bk-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.city-enter:active, .bk-btn:active { transform: none; }
.city-enter:disabled, .bk-btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; filter: none; }
.bk-btn-ghost { color: var(--text); background: transparent; border-color: var(--line-2); }
.bk-btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.bk-btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.bk-wallet-pick { width: 100%; justify-content: flex-start; color: var(--text); background: var(--surface-2); border-color: var(--line); }
.bk-wallet-pick:hover { background: var(--surface-3); box-shadow: none; }
.bk-wallet-pick img { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; object-fit: contain; }
.bk-modal .bk-wallets { flex-direction: column; gap: 8px; }
.bk-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.bk-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* ── the hero ─────────────────────────────────────────────────── */
.bk-hero { padding: 72px 0 40px; }
.bk-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center;
}
.bk-live {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 6px 12px 6px 10px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; color: var(--mint);
  background: var(--mint-soft); border: 1px solid rgba(58, 214, 160, .3);
}
.bk-hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.bk-hero-note a { color: var(--accent-ink); font-weight: 600; }

/* the world, in a window */
.bk-window {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.bk-window-bar {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.bk-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.bk-window-bar i:first-child { background: #ef5a5a; }
.bk-window-bar i:nth-child(2) { background: var(--accent); }
.bk-window-bar i:nth-child(3) { background: var(--mint); }
.bk-window-bar span { margin-left: 8px; }
.bk-window img { width: 100%; height: auto; image-rendering: pixelated; display: block; }
.bk-window-hud {
  position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap;
}
.bk-window-hud .bk-chip { background: rgba(10, 12, 16, .78); backdrop-filter: blur(6px); color: var(--text); border-color: rgba(255, 255, 255, .12); }
.bk-window-go {
  position: absolute; right: 14px; bottom: 14px;
}
.bk-hero-art {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; padding: 8%;
  background: radial-gradient(60% 60% at 50% 45%, var(--surface-3) 0%, var(--surface) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.bk-hero-art img { width: 100%; height: auto; image-rendering: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); }

/* ── the strip of buildings ───────────────────────────────────── */
.bk-strip { padding: 10px 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bk-strip-track { display: flex; gap: 14px; width: max-content; animation: bk-strip 60s linear infinite; }
.bk-strip:hover .bk-strip-track { animation-play-state: paused; }
.bk-strip-item {
  width: 150px; flex: 0 0 150px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.bk-strip-item img { width: 100%; aspect-ratio: 1 / 1; image-rendering: pixelated; display: block; }
.bk-strip-item span { display: block; padding: 8px 10px; font-family: var(--display); font-size: 12.5px; font-weight: 600; color: var(--text); }
.bk-strip-item small { display: block; padding: 0 10px 9px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
@keyframes bk-strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── sections and panels ──────────────────────────────────────── */
.bk-section { padding: 64px 0; }
.bk-section + .bk-section { border-top: 1px solid var(--line); }
.bk-section-head { max-width: 62ch; margin-bottom: 34px; }
.bk-section-head .bk-p { font-size: 16.5px; }
.bk-body { padding: 52px 0 80px; }
.bk-panel {
  padding: 30px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.bk-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }



/* the numbers */
.bk-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.bk-stat { padding: 24px 26px; background: var(--surface); }
.bk-stat dt {
  margin: 0 0 10px;
  font-family: var(--display); font-weight: 600; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.bk-stat dd {
  margin: 0;
  font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -.03em; line-height: 1; color: var(--ink);
}
.bk-stat dd small { display: block; margin-top: 8px; font-family: var(--sans); font-weight: 400; font-size: 12.5px; letter-spacing: 0; color: var(--dim); }

/* the casino, and any picture with words beside it */
.bk-showcase {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.bk-showcase-art {
  display: flex; align-items: flex-end; justify-content: center; min-height: 320px; padding: 20px;
  background: radial-gradient(70% 60% at 50% 70%, rgba(242, 181, 68, .18), transparent 70%), var(--bg-2);
  border: 1px solid var(--line); border-radius: 16px;
}
.bk-showcase-art img { width: min(100%, 420px); image-rendering: pixelated; }

/* what works and what does not, as a list you can read down */
.bk-state { list-style: none; margin: 0 0 16px; padding: 0; }
.bk-state li {
  position: relative; padding: 9px 0 9px 30px;
  font-size: 14.5px; color: var(--text); border-bottom: 1px solid var(--line);
}
.bk-state li:last-child { border-bottom: 0; }
.bk-state li::before {
  position: absolute; left: 2px; top: 9px; font-family: var(--mono); font-size: 13px;
}
.bk-state .yes::before { content: "+"; color: var(--mint); }
.bk-state .no { color: var(--muted); }
.bk-state .no::before { content: "–"; color: var(--muted); }

/* the FAQ */
.bk-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bk-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.bk-faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.bk-faq summary::-webkit-details-marker { display: none; }
.bk-faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; transition: transform .15s ease; }
.bk-faq details[open] summary::after { transform: rotate(45deg); }
.bk-faq details p { margin: 0 0 18px; font-size: 14px; color: var(--dim); }


/* ── cards ────────────────────────────────────────────────────── */
.bk-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.bk-card.sold { opacity: .5; }
.bk-card.sold:hover { transform: none; box-shadow: var(--shadow); }
.bk-art {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-3);
  image-rendering: pixelated; border-bottom: 1px solid var(--line);
}
.bk-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; }
.bk-card-name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.bk-card-blurb { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
.bk-card-rows { display: flex; flex-direction: column; gap: 6px; }
.bk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--muted); }
.bk-row b { font-weight: 500; color: var(--text); font-family: var(--mono); font-size: 12.5px; }
.bk-bar { height: 4px; background: var(--surface-3); border-radius: var(--r-pill); overflow: hidden; }
.bk-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.bk-buy { margin-top: auto; padding-top: 6px; }
.bk-buy .city-enter { width: 100%; }
.bk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-tag {
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; color: var(--dim);
  background: var(--surface-2); border: 1px solid var(--line);
}
.bk-tag.tier { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.bk-empty {
  padding: 46px 20px; text-align: center; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg);
}
.bk-empty a { color: var(--accent-ink); font-weight: 600; }

/* the shop: a toolbar over the grid, and the mechanics beside it */
.bk-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.bk-filter {
  height: 36px; padding: 0 14px; border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: 13.5px; color: var(--dim);
  background: transparent; border: 1px solid var(--line);
}
.bk-filter:hover { color: var(--ink); border-color: var(--line-2); }
.bk-filter.on { color: #15100a; background: var(--accent); border-color: var(--accent); }
.bk-shop { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.bk-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.bk-aside .bk-panel { padding: 22px 24px; }
.bk-aside .bk-h2 { font-size: 17px; }
.bk-aside .bk-p { font-size: 13.5px; margin-bottom: 10px; }
.bk-aside .bk-code { font-size: 11.5px; margin: 6px 0 12px; }

/* ── modals ───────────────────────────────────────────────────── */
.bk-modal-back {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(6, 8, 11, .7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.bk-modal {
  width: min(440px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  padding: 22px 24px 24px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: bk-in .18s ease-out;
}
.bk-modal-sm { width: min(360px, 100%); }
.bk-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bk-modal .bk-art { border: 1px solid var(--line); border-radius: var(--r); }
@keyframes bk-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

.bk-qty { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; }
.bk-qty input {
  width: 64px; height: 42px; text-align: center;
  font: inherit; font-family: var(--mono); font-weight: 500; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.bk-qty input:focus { outline: none; border-color: var(--accent); }
.bk-qty .bk-btn { width: 42px; padding: 0; }
.bk-balance { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.bk-steps { display: flex; flex-direction: column; gap: 9px; margin: 16px 0 4px; font-size: 13.5px; }
.bk-step { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.bk-step b { font-weight: 500; }
.bk-step i { font-style: normal; width: 15px; flex: 0 0 15px; text-align: center; }
.bk-step.on { color: var(--text); }
.bk-step.on i { color: var(--accent); }
.bk-step.done { color: var(--mint); }
.bk-step.fail { color: var(--red); }

/* the account menu the header opens */
.bk-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  animation: bk-in .14s ease-out;
}
.bk-menu > * {
  display: block; width: 100%; padding: 9px 12px; text-align: left;
  font: inherit; font-size: 13.5px; color: var(--text);
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.bk-menu > *:hover { background: var(--surface-2); color: var(--ink); }
.bk-menu .danger { color: var(--red); }
.bk-menu .danger:hover { background: var(--red-soft); }

/* ── docs ─────────────────────────────────────────────────────── */
.bk-docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 52px 0 80px; }
.bk-docs-nav {
  position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100vh - 110px); overflow-y: auto; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.bk-docs-nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--dim);
}
.bk-docs-nav a:hover { color: var(--ink); background: var(--surface-2); }
.bk-docs-nav a.active { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.bk-docs-body { max-width: 72ch; }
.bk-docs-section { padding: 0 0 44px; margin: 0 0 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.bk-docs-section:last-child { border-bottom: 0; }

/* ── footer ───────────────────────────────────────────────────── */
.bk-foot { border-top: 1px solid var(--line); padding: 44px 0 40px; font-size: 13.5px; color: var(--muted); background: var(--bg-2); }
.bk-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.bk-foot-grid b { display: block; margin-bottom: 12px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.bk-foot-grid a { display: block; padding: 4px 0; color: var(--dim); }
.bk-foot-grid a:hover { color: var(--ink); }
.bk-foot-grid p { margin: 0; max-width: 34ch; color: var(--muted); }
.bk-foot-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.bk-foot a { color: var(--dim); font-weight: 500; }
.bk-foot a:hover { color: var(--ink); }
.bk-foot code { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); }

/* ── small screens ────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .bk-shop { grid-template-columns: 1fr; }
  .bk-aside { position: static; }
}
@media (max-width: 960px) {
  .bk-hero { padding: 44px 0 28px; }
  .bk-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .bk-two, .bk-showcase { grid-template-columns: 1fr; gap: 28px; }
  .bk-stats { grid-template-columns: repeat(2, 1fr); }
  .bk-faq { grid-template-columns: 1fr; }
  .bk-foot-grid { grid-template-columns: 1fr 1fr; }
  .bk-docs { grid-template-columns: 1fr; gap: 24px; }
  .bk-docs-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .bk-top-inner { height: 60px; gap: 14px; }
  .bk-nav { display: none; }
  .bk-panel, .bk-showcase { padding: 22px 20px; }
  .bk-stats { grid-template-columns: 1fr 1fr; }
  .bk-stat { padding: 18px; }
  .bk-stat dd { font-size: 26px; }
  .bk-foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
