/* Nightfold · Pasture: a daylight farm almanac. Cream paper cards with ink outlines and hard shadows on a mown lawn,
   barn red for actions, hay gold for progress. Jersey 15 for headlines, Silkscreen for labels, Space Grotesk to read. */
:root {
  --paper: #fbf3df;
  --paper-2: #f3e6c4;
  --paper-3: #e9d7a8;
  --ink: #1b1a17;
  --ink-2: #4a4639;
  --muted: #6f6a58;
  --barn: #b11d18;
  --barn-2: #da3c36;
  --barn-d: #7d1411;
  --grass: #3fae49;
  --grass-2: #4fbd57;
  --grass-d: #1f6b35;
  --lawn-a: #3c9a45;
  --lawn-b: #43a54c;
  --sky: #8fd3ec;
  --sky-d: #4fa9d5;
  --hay: #f2c14e;
  --hay-2: #ffe08a;
  --hay-d: #b8892c;
  --wolf: #545454;
  --dusk: #6b4f8f;
  --head: "Jersey 15", "Silkscreen", monospace;
  --label: "Silkscreen", monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 15px/1.6 var(--sans);
  /* a mown lawn: wide stripes, two greens */
  background: repeating-linear-gradient(90deg, var(--lawn-a) 0 64px, var(--lawn-b) 64px 128px);
}
a { color: var(--barn); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
img, canvas { image-rendering: pixelated; }
::selection { background: var(--hay); color: var(--ink); }

/* every box: cream paper, an ink outline and a hard shadow */
.card, .nft, .metric, .stat-pill, .toast, .modal .card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--ink);
}

/* ------------------------------------------------------------ top bar */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 8px clamp(16px, 4vw, 48px);
  background: var(--barn);
  border-bottom: 3px solid var(--ink);
  box-shadow: inset 0 -4px 0 var(--barn-d);
  color: var(--paper);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font: 400 30px/1 var(--head); letter-spacing: 0.02em; }
.brand img { width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 4px; background: var(--sky); }
.brand small { font: 400 10px/1 var(--label); text-transform: uppercase; background: var(--hay); color: var(--ink); padding: 4px 6px; border: 2px solid var(--ink); border-radius: 3px; transform: translateY(-2px); }
.nav nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav nav a { white-space: nowrap; color: #ffe6dc; text-decoration: none; padding: 7px 10px; border-radius: 4px; font: 700 13px/1 var(--label); text-transform: uppercase; }
.nav nav a:hover { color: #fff; background: var(--barn-2); }
.nav nav a.on { color: var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 400 10px/1.2 var(--label); text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 8px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--paper-2); white-space: nowrap; }
.nav .chip { background: var(--barn-d); color: #ffe6dc; }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fe07a; box-shadow: 0 0 0 2px var(--ink); animation: pulse 1.2s steps(2) infinite; }
@keyframes pulse { 50% { opacity: 0.2; } }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 6px 12px; padding-bottom: 6px; }
  .brand { font-size: 26px; }
  .nav .chip { margin-left: auto; }
  .nav nav { order: 3; width: 100%; margin: 0 -10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
}
.preview-bar { padding: 9px clamp(16px, 4vw, 48px); background: var(--hay); border-bottom: 3px solid var(--ink); color: var(--ink); font-size: 13px; font-weight: 500; text-align: center; }
body.preview details.prompt { display: none; }

/* ------------------------------------------------------------ the farm: one big scene, two windows under it */
.farm { padding-top: 28px; }
.farm-title { text-align: center; margin: 0 auto 18px; max-width: 760px; }
.farm-title h1 { font: 400 clamp(46px, 6vw, 72px)/0.95 var(--head); margin: 0; color: var(--paper); text-shadow: 4px 4px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); }
.farm-title p { display: inline-block; margin: 10px 0 0; padding: 6px 14px; font-size: 15px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
.window { margin: 0; background: var(--paper); border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 7px 7px 0 var(--ink); }
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; background: var(--barn); color: var(--paper); border-bottom: 3px solid var(--ink); box-shadow: inset 0 -3px 0 var(--barn-d); font: 700 12px/1.2 var(--label); text-transform: uppercase; letter-spacing: 0.04em; }
.titlebar > span:first-child::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--hay); border: 2px solid var(--ink); border-radius: 50%; vertical-align: -1px; }
.titlebar .chip { background: var(--paper); }
.titlebar .chip:empty { display: none; }
.top-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; max-width: 1180px; margin: 0 auto; align-items: start; }
.scene-window { background: var(--sky); }
.scene-window .scene { display: block; width: 100%; height: clamp(240px, 34vw, 430px); }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--paper); border-top: 3px solid var(--ink); }
.hero-stats > span { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; white-space: nowrap; font: 400 10px/1.3 var(--label); text-transform: uppercase; color: var(--muted); }
.hero-stats > span + span { border-left: 2px solid var(--ink); }
.hero-stats b { font-size: clamp(14px, 1.7vw, 20px); color: var(--ink); white-space: nowrap; text-transform: none; }
.panes { max-width: 1180px; margin: 30px auto 0; }
.pane-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.pane-body > [data-show] { display: grid; gap: 14px; min-width: 0; }
@media (max-width: 880px) {
  .top-row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero-stats > span { flex-direction: column; gap: 2px; padding: 8px 10px; font-size: 8px; }
  .tally { grid-template-columns: 1fr 1fr; }
  .tally > div:last-child { grid-column: 1 / -1; }
  .farm-title p { border-radius: 10px; font-size: 14px; }
}

/* the mint pane: tier on sale, odds, the tier's bar, then quantity and the button */
.mintbar { display: block; }
.mb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 13px/1.4 var(--label); text-transform: uppercase; }
.mb-label { display: inline-flex; align-items: center; gap: 8px; color: var(--barn); }
.mb-label i { width: 9px; height: 9px; border-radius: 50%; background: var(--barn-2); box-shadow: 0 0 0 2px var(--ink); animation: pulse 1.2s steps(2) infinite; }
.mb-left { color: var(--ink); font: 400 20px/1 var(--head); text-transform: none; white-space: nowrap; }
.mb-note { margin-top: 10px; font-size: 15px; font-weight: 600; }
.odds { margin: 10px 0 12px; padding: 8px 0; border-block: 2px dashed var(--paper-3); font-size: 13px; text-align: center; }
.mb-count { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; }
.mb-what { font: 400 10px/1 var(--label); text-transform: uppercase; color: var(--muted); margin-right: auto; }
.mb-count b { font: 400 clamp(56px, 6vw, 80px)/0.9 var(--head); }
.mb-count .mb-of { font: 400 clamp(26px, 2.6vw, 34px)/1 var(--head); color: var(--muted); }
.mb-count .mb-pct { font: 400 clamp(32px, 3.4vw, 44px)/1 var(--head); color: var(--grass-d); margin-left: auto; }
.mb-track { position: relative; height: 40px; background: var(--paper-2); border: 3px solid var(--ink); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.mb-track > i { position: absolute; left: 0; top: 0; bottom: 0; max-width: 100%; background: repeating-linear-gradient(-45deg, var(--hay) 0 8px, #e5ad35 8px 16px); box-shadow: 3px 0 0 var(--ink); transition: width 0.6s steps(12); }
/* only the tiers sold and the one on sale are shown, and they share the full width */
.mb-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.mb-steps span { padding: 4px 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 9px/1.4 var(--label); text-transform: uppercase; color: var(--muted); background: var(--paper-2); border: 2px solid var(--ink); border-radius: 3px; }
.mb-steps span.now { color: var(--ink); background: var(--hay); }
.mb-steps span.done { color: var(--paper); background: var(--grass-d); text-decoration: line-through; }
.mint-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.quote { text-align: right; }
.quote b { display: block; font: 400 40px/1 var(--head); }
.quote > span { font-size: 12px; color: var(--muted); }
.btn.wide { width: 100%; padding: 14px 18px; font-size: 14px; }
.center { text-align: center; margin: 0; }
details.more { border-top: 2px dashed var(--paper-3); padding-top: 10px; }
details.more > summary { cursor: pointer; font: 700 11px/1.5 var(--label); text-transform: uppercase; color: var(--grass-d); }
details.more[open] > summary { margin-bottom: 12px; }
details.more > * + * { margin-top: 12px; }

/* the flock pane: a tally, then the roster */
.tally { display: grid; grid-template-columns: 0.8fr 1.3fr 1.3fr; gap: 8px; }
.tally > div { padding: 8px 10px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 5px; display: grid; gap: 2px; }
.tally span { font: 400 9px/1.3 var(--label); text-transform: uppercase; color: var(--muted); }
.tally b { font-size: 16px; line-height: 1.25; }
.pane .seg { justify-self: start; }
.nfts.roster { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding: 4px 10px 12px 4px; border-bottom: 2px dashed var(--paper-3); }
.flock-pane .btn.wide { justify-self: center; max-width: 420px; }
.roster .nft { box-shadow: 3px 3px 0 var(--ink); transform: none; }
.roster .nft .meta .title { font-size: 18px; }
.pane .empty { padding: 28px 16px; font-size: 22px; }

/* ------------------------------------------------------------ sections on the lawn */
main { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 72px; }
section { padding-top: 64px; scroll-margin-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { display: flex; align-items: center; gap: 14px; font: 400 clamp(38px, 5vw, 58px)/1 var(--head); margin: 0; color: var(--paper); text-shadow: 3px 3px 0 var(--ink); }
.lot { display: inline-grid; place-items: center; min-width: 48px; height: 40px; padding: 0 8px; font: 700 15px/1 var(--label); color: var(--ink); background: var(--hay); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); text-shadow: none; transform: rotate(-4deg); }
.section-head p { color: var(--ink); background: rgba(251, 243, 223, 0.92); border: 2px solid var(--ink); border-radius: 6px; padding: 10px 14px; margin: 0; max-width: 600px; font-size: 14px; }
.card { padding: 22px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 880px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
h3 { font: 400 28px/1.05 var(--head); margin: 0 0 12px; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 400px) { .spread > .chip { white-space: normal; } }
.spread:has(> h3) { margin-bottom: 12px; }
.spread > h3 { margin-bottom: 0; }

/* ladder: the tiers sold and the one on sale */
.ladder { display: grid; gap: 10px; }
.rung { position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr) 70px; align-items: center; gap: 12px; padding: 10px 12px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 5px; }
.rung.now { background: #fff9e8; box-shadow: 4px 4px 0 var(--hay-d); border-width: 3px; }
.rung.done { background: #e6efd9; }
.rung .bar { height: 14px; background: #fffaf0; border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; }
.rung .bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--hay) 0 6px, #e5ad35 6px 12px); transition: width 0.6s steps(12); }
.rung.done .bar i { background: repeating-linear-gradient(-45deg, var(--grass) 0 6px, var(--grass-d) 6px 12px); }
.rung .price { text-align: right; font: 400 28px/1 var(--head); }
.rung .range { font: 400 10px/1.5 var(--label); color: var(--muted); }
.rung .num { white-space: nowrap; font-size: 15px; }
.rung-note { grid-column: 1 / -1; font: 400 10px/1.5 var(--label); text-transform: uppercase; color: var(--grass-d); margin-top: -2px; }

/* inputs and buttons */
.stepper { display: inline-flex; align-items: stretch; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fffaf0; }
.stepper button { background: var(--paper-2); border: 0; width: 44px; height: 44px; cursor: pointer; font: 400 28px/1 var(--head); }
.stepper button:hover { background: var(--hay); }
.stepper input { width: 58px; text-align: center; background: none; border: 0; border-inline: 2px solid var(--ink); font: 600 22px/1 var(--mono); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field { width: 100%; background: #fffaf0; border: 3px solid var(--ink); border-radius: 6px; padding: 10px 12px; font-family: var(--mono); font-size: 13px; }
.field:focus, .stepper:focus-within { outline: 3px solid var(--sky-d); outline-offset: 1px; }
select.field { appearance: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; cursor: pointer; text-decoration: none;
  font: 700 13px/1 var(--label); text-transform: uppercase; color: #fff; background: var(--barn);
  border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: inset 0 -4px 0 var(--barn-d), 4px 4px 0 var(--ink);
}
.btn:hover { background: var(--barn-2); }
.btn:active { transform: translate(2px, 2px); box-shadow: inset 0 -4px 0 var(--barn-d), 2px 2px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--sky-d); outline-offset: 2px; }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 -4px 0 var(--paper-3), 4px 4px 0 var(--ink); }
.btn.ghost:hover { background: var(--hay-2); }
.btn.small { padding: 8px 12px; font-size: 11px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.price-big { font: 400 54px/1 var(--head); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font: 600 15px/1.4 var(--mono); }
.note { border: 2px solid var(--ink); border-left: 8px solid var(--grass); border-radius: 5px; padding: 10px 12px; background: #eef6e2; font-size: 13px; }
details.prompt summary { cursor: pointer; color: var(--muted); font: 400 10px/1.5 var(--label); text-transform: uppercase; margin-top: 14px; }
pre.prompt-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; background: var(--ink); color: #e9e2c8; border-radius: 6px; padding: 12px; font: 12px/1.5 var(--mono); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 14px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--hay); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 12px/1 var(--label); }

/* NFT cards: a polaroid of the field */
.nfts { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px; }
.nft { display: flex; flex-direction: column; padding: 8px 8px 6px; transition: transform 0.12s; }
.nft:nth-child(3n + 1) { transform: rotate(-0.6deg); }
.nft:nth-child(3n + 2) { transform: rotate(0.5deg); }
.nft:hover { transform: translateY(-3px) rotate(0); }
.nft .art { aspect-ratio: 1; background: var(--sky); display: block; width: 100%; border: 3px solid var(--ink); border-radius: 4px; overflow: hidden; }
.nft .art img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.nft.is-wolf { background: #ece9e2; }
.nft.is-wolf .art { border-color: var(--wolf); box-shadow: 0 0 0 2px var(--ink); }
.nft .meta { padding: 10px 4px 4px; display: grid; gap: 8px; font-size: 13px; }
.nft .meta .title { font: 400 22px/1 var(--head); }
.nft .meta .id { color: var(--muted); }
.nft .listing { display: grid; gap: 2px; }
.nft .listing .tag { justify-self: start; margin-top: 4px; }
.nft .listing b { font: 400 30px/1 var(--head); white-space: nowrap; }
.tag { display: inline-flex; align-items: center; font: 400 9px/1.2 var(--label); text-transform: uppercase; padding: 3px 6px; border: 2px solid var(--ink); border-radius: 3px; background: #fffaf0; color: var(--ink); }
.tag.wolf { background: var(--wolf); color: #fff; }
.tag.taken { background: var(--barn); color: #fff; }
.pips { display: inline-flex; gap: 2px; margin-left: 5px; }
.pips i { width: 5px; height: 5px; background: #8a8a8a; }
.pips i.on { background: var(--hay); }
.empty { padding: 40px; text-align: center; color: var(--ink); background: rgba(251, 243, 223, 0.85); border: 3px dashed var(--ink); border-radius: 8px; font: 400 26px/1.2 var(--head); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar > .muted { color: var(--paper); font-weight: 600; text-shadow: 1px 1px 0 var(--ink); }
.seg { display: inline-flex; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.seg button { background: var(--paper); border: 0; padding: 8px 12px; cursor: pointer; font: 700 11px/1 var(--label); text-transform: uppercase; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button:hover { background: var(--hay-2); }
.seg button.on { background: var(--grass-d); color: var(--paper); }

/* ledger */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 880px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metric { padding: 14px 16px; }
.metric span { color: var(--muted); font: 400 10px/1.5 var(--label); text-transform: uppercase; }
.metric b { display: block; font: 400 38px/1 var(--head); margin-top: 6px; overflow-wrap: anywhere; }
.metric small { color: var(--muted); font-size: 12px; }
.meter { height: 18px; background: var(--paper-2); border: 3px solid var(--ink); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; min-width: 4px; background: repeating-linear-gradient(-45deg, var(--grass) 0 6px, var(--grass-d) 6px 12px); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; max-height: 420px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 2px dashed var(--paper-3); font-size: 14px; }
.feed li.hit { background: #fbe4df; }
.feed li b.wf { color: var(--barn); }
.feed li .when { color: var(--muted); font: 600 12px/1 var(--mono); }
.feed .ico { width: 22px; height: 22px; }

/* rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 880px) { .rules { grid-template-columns: minmax(0, 1fr); } }
.rule h3 { display: flex; align-items: center; gap: 12px; }
.rule-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--sky); border: 2px solid var(--ink); border-radius: 6px; }
.rule-ico .ico { width: 28px; height: 28px; }
.rule p { font-size: 14px; margin: 0 0 8px; }
.alpha-table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 14px; }
.alpha-table th { font: 400 9px/1.2 var(--label); text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 8px 6px 0; }
.alpha-table td { padding: 6px 8px 6px 0; border-top: 2px solid var(--paper-3); white-space: nowrap; }
.alpha-table .num { font-size: 14px; }
.banner { margin-top: 24px; padding: 14px 18px; background: var(--hay); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 5px 5px 0 var(--ink); font-size: 13px; }

footer { position: relative; background: var(--ink); color: #cfc8ae; padding: 34px clamp(16px, 4vw, 48px) 48px; font-size: 13px; }
footer a { color: var(--hay); }
footer .fence { position: absolute; left: 0; right: 0; top: -22px; height: 22px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 4px / 100% 4px repeat-x,
    linear-gradient(var(--ink), var(--ink)) 0 12px / 100% 4px repeat-x,
    linear-gradient(90deg, var(--ink) 0 6px, transparent 6px) 8px 0 / 40px 100% repeat-x; }
footer .addr { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 24px; margin-top: 12px; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(560px, calc(100vw - 32px)); padding: 12px 16px; font-size: 14px; }
.toast[data-kind="ok"] { background: #e6f4dc; }
.toast[data-kind="error"] { background: #fbe4df; }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(27, 26, 23, 0.6); display: grid; place-items: center; padding: 16px; }
.modal .card { width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.modal label { font: 400 10px/1.5 var(--label); text-transform: uppercase; }

/* one bar for the tier on sale: the count runs from #1 to the tier's last serial */
.rung .bar { height: 22px; }
.rung .range { font-size: 12px; color: var(--ink); }
.rules .wide-rule { grid-column: 1 / -1; }

/* mints left: ten pips, one per mint this wallet still has */
.slots { border: 3px solid var(--ink); border-radius: 6px; background: #fff9e8; padding: 10px 14px; box-shadow: 4px 4px 0 var(--hay-d); }
.slots.compact { box-shadow: none; border-width: 2px; background: var(--paper-2); display: grid; gap: 4px; }
.slots-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.slots-label { font: 700 11px/1.2 var(--label); text-transform: uppercase; color: var(--barn); }
.slots-big { font: 400 46px/1 var(--head); }
.slots-big small { font-size: 0.5em; color: var(--muted); }
.slots.compact .slots-big { font-size: 28px; }
.slots .pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 8px 0; }
.slots .pips i { width: auto; height: 16px; border: 2px solid var(--ink); border-radius: 3px; background: var(--paper-2); }
.slots .pips i.on { background: var(--grass); box-shadow: inset 0 -3px 0 var(--grass-d); }
.slots.empty { border-color: var(--barn); }
.slots.empty .slots-big { color: var(--barn); }

/* ledger: budget and the project lock side by side, the field feed across the bottom */
#ledger .feed-card { grid-column: 1 / -1; }
/* a full meter keeps its own box: undo the generic .empty placeholder look */
.pane .slots.empty { padding: 10px 14px; text-align: left; font: inherit; background: #fff9e8; border: 3px solid var(--barn); }

/* sale yard pages */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; }
.pager[hidden] { display: none; }
.pager button { min-width: 40px; background: var(--paper); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); padding: 8px 10px; cursor: pointer; font: 700 12px/1 var(--label); text-transform: uppercase; color: var(--ink); }
.pager button:hover:not(:disabled) { background: var(--hay-2); }
.pager button.on { background: var(--grass-d); color: var(--paper); }
.pager button:disabled { opacity: .45; cursor: default; box-shadow: none; transform: translate(3px, 3px); }
.pager .pg-gap { padding: 0 2px; font-weight: 700; }
.pager .pg-info { flex-basis: 100%; text-align: center; color: var(--paper); font-weight: 600; text-shadow: 1px 1px 0 var(--ink); }
