/* BountyBoard — newsprint bulletin board */
:root {
  --paper: #f3eee2;
  --paper-2: #ebe4d3;
  --card: #fbf8f0;
  --ink: #1e1c18;
  --ink-soft: #4a463e;
  --muted: #6d675b;
  --rule: #1e1c18;
  --hair: #cfc6b2;
  --red: #c23f28;
  --red-ink: #fff7f2;
  --teal: #1f5c57;
  --tape: #efd27a;
  --ok: #2c6e3f;
  --shadow: 0 1px 0 rgba(30, 28, 24, .08), 0 8px 22px -14px rgba(30, 28, 24, .45);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17150f;
    --paper-2: #1f1c15;
    --card: #221f18;
    --ink: #efe8d8;
    --ink-soft: #cfc6b2;
    --muted: #a59c89;
    --rule: #efe8d8;
    --hair: #3c372b;
    --red: #ff7a5c;
    --red-ink: #1b0d08;
    --teal: #7cc9bd;
    --tape: #8a7430;
    --ok: #7fcf94;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 26px -16px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  overflow-x: clip;
}
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-underline-offset: 3px; }
.mono { font-family: var(--mono); font-size: .92em; word-break: break-all; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 6px 10px; z-index: 9; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* dateline */
.dateline { border-bottom: 1px solid var(--hair); font: 12.5px/1.4 var(--mono); color: var(--muted); }
.dateline-row { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 8px; padding-bottom: 8px; }
.dl-vault a { color: var(--ink-soft); }
.dl-brand { margin-left: auto; }

/* masthead */
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 8px 32px;
  padding-top: 34px;
  padding-bottom: 26px;
  border-bottom: 3px double var(--rule);
}
.mast-title { display: flex; align-items: center; gap: 10px; grid-column: 1; }
.mast-pin { width: 34px; height: 34px; color: var(--red); flex: none; transform: rotate(-12deg); }
h1 {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "opsz" 144;
  font-weight: 760;
  font-size: clamp(44px, 9vw, 92px);
  letter-spacing: -.035em;
  line-height: .95;
}
.mast-sub { grid-column: 1; margin: 6px 0 0; max-width: 54ch; font-size: 18px; color: var(--ink-soft); }
.vault-card {
  grid-column: 2; grid-row: 1 / span 2; align-self: end;
  background: var(--card);
  border: 1.5px solid var(--rule);
  padding: 14px 16px;
  box-shadow: 5px 5px 0 var(--rule);
}
.vc-label { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vc-amount { font: 700 38px/1.1 var(--serif); margin-top: 6px; font-variant-numeric: tabular-nums; }
.vc-amount small { font: 600 14px var(--sans); color: var(--muted); }
.vc-extra { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* tabs */
.tabs { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--hair); }
.tabs-row { display: flex; align-items: center; gap: 4px; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs-row::-webkit-scrollbar { display: none; }
.tab { flex: none; text-decoration: none; padding: 6px 10px; font-weight: 600; font-size: 14.5px; border-radius: 3px; color: var(--ink-soft); }
.tab:hover { background: var(--paper-2); color: var(--ink); }
.tabs-gap { flex: 1 0 8px; }

/* buttons */
.btn {
  font: 600 14.5px/1 var(--sans);
  border: 1.5px solid var(--rule);
  padding: 10px 14px;
  border-radius: 3px;
  cursor: pointer;
  background: var(--card);
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
  flex: none;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--rule); }
.btn:active { transform: none; box-shadow: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-red { background: var(--red); color: var(--red-ink); border-color: var(--red); }
.btn-small { padding: 7px 10px; font-size: 13px; }

/* sections */
.section { padding-top: 44px; padding-bottom: 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 18px; border-bottom: 1.5px solid var(--rule); padding-bottom: 10px; margin-bottom: 20px; }
h2 { margin: 0; font: 700 clamp(26px, 4vw, 36px)/1.1 var(--serif); letter-spacing: -.02em; }
h3 { font: 700 20px/1.25 var(--serif); margin: 0 0 8px; }
.kicker { font: 500 13px var(--mono); color: var(--muted); }
.lede { margin-top: -6px; color: var(--ink-soft); }
.empty { border: 1.5px dashed var(--hair); padding: 22px; text-align: center; color: var(--muted); margin: 0; }
.fine { font-size: 13px; color: var(--muted); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
select, input, textarea {
  font: 15px/1.4 var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--hair);
  border-radius: 3px;
  padding: 9px 10px;
  width: 100%;
  min-width: 0;
}
select { width: auto; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 12.5px/1 var(--sans); border: 1.5px solid var(--hair); border-radius: 99px; padding: 7px 11px; background: transparent; color: var(--ink-soft); cursor: pointer; text-transform: capitalize; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* notices */
.notices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.notice {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hair);
  padding: 22px 18px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: pin-in .5s cubic-bezier(.2, .8, .3, 1.2) both;
  min-width: 0;
}
.notice:nth-child(3n+1) { transform: rotate(-.6deg); }
.notice:nth-child(3n+2) { transform: rotate(.5deg); }
.notice:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 16px 28px -16px rgba(0, 0, 0, .5); }
.notice::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 74px; height: 20px; margin-left: -37px;
  background: var(--tape); opacity: .85; transform: rotate(-3deg);
}
@keyframes pin-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.n-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cat { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); border: 1.5px solid currentColor; padding: 4px 6px; }
.n-title { font: 700 21px/1.2 var(--serif); margin: 0; overflow-wrap: anywhere; }
.n-brief { margin: 0; color: var(--ink-soft); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 12.5px var(--mono); color: var(--muted); margin-top: auto; }
.coin-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--sans); min-width: 0; }
.coin-chip img, .coin-chip .ph { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hair); background: var(--paper-2); flex: none; }
.stamp {
  position: absolute; right: 12px; top: 40px;
  font: 800 15px/1 var(--serif); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ok); border: 2.5px solid currentColor; padding: 6px 8px; border-radius: 4px;
  transform: rotate(-12deg); opacity: .85;
  animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) both .2s;
}
.stamp.veto { color: var(--red); }
@keyframes stamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: .85; } }

/* coins */
.coin-list, .mine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.coin-card { background: var(--card); border: 1px solid var(--hair); padding: 14px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; }
.coin-card img, .coin-card .ph { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--paper-2); border: 1px solid var(--hair); }
.coin-card h4 { margin: 0; font: 700 17px/1.2 var(--serif); overflow-wrap: anywhere; }
.coin-card .meta { font: 12px/1.5 var(--mono); color: var(--muted); }
.bar { height: 6px; background: var(--paper-2); border: 1px solid var(--hair); margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--teal); }
.mine-card { background: var(--card); border: 1.5px solid var(--rule); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* ledger tables */
.ledger-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ledger th { text-align: left; font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--rule); padding: 8px 10px 8px 0; }
.ledger td { border-bottom: 1px solid var(--hair); padding: 10px 10px 10px 0; vertical-align: top; }
.ledger td.mono { white-space: nowrap; }

/* launch */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
.paper-form { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1.5px solid var(--rule); padding: 20px; box-shadow: 6px 6px 0 var(--paper-2); min-width: 0; }
.paper-form label { display: flex; flex-direction: column; gap: 5px; font: 600 13.5px var(--sans); min-width: 0; }
.row2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.file input { padding: 7px; }
.disclose { border-left: 4px solid var(--red); background: var(--paper-2); padding: 12px 14px; font-size: 14px; }
.disclose a { overflow-wrap: anywhere; }
.form-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.status { font: 13px var(--mono); color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.status.bad { color: var(--red); }
.status.good { color: var(--ok); }
.how { border-top: 1.5px solid var(--rule); padding-top: 12px; min-width: 0; }
.how ol { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: 15px; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 1px 4px; }

/* rules */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.rule-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; columns: 1; }
.rule-list li::marker { font: 700 16px var(--serif); color: var(--red); }
.split-fig { margin: 0; background: var(--card); border: 1px solid var(--hair); padding: 12px; position: sticky; top: 70px; }
.split-fig svg { width: 100%; height: auto; display: block; }
.f-pot { fill: var(--ink); }
.f-txt { fill: var(--paper); font: 700 16px var(--serif); }
.f-line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; fill: none; }
.f-shares rect { fill: var(--tape); stroke: var(--ink); stroke-width: 1.5; }
.f-cap { stroke: var(--red); stroke-width: 2; }
.f-small { fill: var(--muted); font: 12px var(--mono); }

/* dialogs */
.detail {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  border: 1.5px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  padding: 0 22px 22px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .25);
}
.detail::backdrop { background: rgba(20, 18, 14, .55); }
.detail[open] { animation: lift .25s ease both; }
@keyframes lift { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.d-close-row { position: sticky; top: 0; display: flex; justify-content: flex-end; background: var(--card); padding-top: 10px; z-index: 1; }
.x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); padding: 2px 6px; }
.d-title { font: 750 28px/1.15 var(--serif); margin: 0 0 6px; overflow-wrap: anywhere; }
.d-brief { white-space: pre-wrap; color: var(--ink-soft); overflow-wrap: anywhere; }
.d-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 12.5px var(--mono); color: var(--muted); margin: 10px 0 16px; }
.subs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sub { border: 1px solid var(--hair); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sub.won { border: 2px solid var(--ok); }
.sub a { overflow-wrap: anywhere; font-weight: 600; }
.sub .who { font: 12px var(--mono); color: var(--muted); }
.proof { font: 12px/1.5 var(--mono); white-space: pre-wrap; background: var(--paper-2); padding: 10px; overflow-wrap: anywhere; }
.inline-form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; border-top: 1.5px solid var(--rule); padding-top: 14px; }
.p-list { display: flex; flex-direction: column; gap: 8px; }
.p-list button { display: flex; align-items: center; gap: 10px; text-align: left; }
.p-list img { width: 24px; height: 24px; }

.toast {
  position: fixed; left: 50%; bottom: 18px; translate: -50% 0; max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px; border-radius: 3px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.toast.show { opacity: 1; }

.foot { border-top: 3px double var(--rule); margin-top: 56px; padding-top: 18px; padding-bottom: 40px; font-size: 13.5px; color: var(--muted); }

@media (max-width: 820px) {
  .masthead { grid-template-columns: minmax(0, 1fr); }
  .vault-card { grid-column: 1; grid-row: auto; justify-self: start; width: 100%; max-width: 360px; margin-top: 14px; }
  .launch-grid, .rules-grid { grid-template-columns: minmax(0, 1fr); }
  .split-fig { position: static; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .row3, .row2 { grid-template-columns: minmax(0, 1fr); }
  .dl-brand { margin-left: 0; }
  .notice:nth-child(n) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* operator desk */
.masthead-op { grid-template-columns: minmax(0, 1fr); }
.h1-op { font-size: clamp(34px, 7vw, 56px); }
.gap-top { margin-top: 36px; }
.gap-top-s { margin-top: 18px; }
.week-input { width: 190px; }
.op-box { border: 1.5px solid var(--rule); background: var(--card); padding: 16px; margin-top: 16px; min-width: 0; }
.op-box pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 var(--mono); }
.hash { font: 12px var(--mono); overflow-wrap: anywhere; color: var(--muted); }
