/* ═══════════════════════════════════════════════════════════════════════════
   bounty.css — the Bounty Board page sheet, on the haven tokens.

   Structure is the live page's (live_capture/pjs/bounty_bounty.css: intro,
   a notice + three banner rows, the tab row, the Most Wanted rows, the
   two-column place flow, the mine/claims tables, a toast); the look is this
   tree's. Every colour is a token: ink stays on the --t-* ladder, GOLD and
   VIOLET arrive as borders, fills and glows — RED/GOLD/VIOLET ARE LIGHT,
   NEVER INK (haven.css §1). The live page's green "out now" / amber "not out"
   / crimson "Most Wanted" become: an ember border + ember-ink word for a live
   target, the hatch + the word for a paused one, and the filled ember pill
   for the #1 flare. The only accent tokens that touch a word here are the two
   the contrast gate blesses as ink, --ember-core (numbers) and --ember-ink /
   --violet-ink (small labels).

   ★ `[hidden]` IS RE-ASSERTED. dominion.css/haven.css set `display:flex` on
     .page-head .facts, .btn and friends, and an author display beats the UA's
     `[hidden]{display:none}`. bounty.js drives this whole page by toggling the
     hidden attribute exactly as the live script does — the leave BUTTON, the
     wallet chip, the sign-in CTA, every pane — so without this one rule a
     "hidden" control would stay on screen with a passing build and a clean
     console.

   ★ THE TAB ROW IS RE-DECLARED (market pattern). This page does not load
     market.css, and a page that leans on a class a sheet it never loads
     defines renders as a browser default with nothing anywhere reporting it.
   ═══════════════════════════════════════════════════════════════════════════ */
.bty [hidden] { display: none !important; }

/* ── 1. intro ────────────────────────────────────────────────────────────── */
.bty .page-head .lede { margin-bottom: 14px; }
.bounty-rules {
  margin: 0 auto 18px; max-width: 76ch;
  font-size: 12.5px; line-height: 1.6; letter-spacing: .01em;
  color: var(--t-sec);
}
.bty .wallet-chip { max-width: 320px; margin-top: 8px; }
.bty .wallet-chip .v { color: var(--ember-core); font-size: 18px; font-weight: 600; }
.head-cta { margin: 18px 0 0; }

/* ── 2. the feature-off notice + the three banner rows ─────────────────── */
.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin: 0 0 14px; padding: 14px 18px;
  border: 1px solid var(--line-up); border-radius: var(--r, 9px);
  background: rgba(12, 9, 10, .62);
  font-size: 13.5px; line-height: 1.5; color: var(--t-body);
}
.notice > span { flex: 1 1 320px; min-width: 0; }
.notice > .btn { flex: 0 0 auto; }
/* warn = the hatch and the word, never a red */
.notice.warn { border-color: var(--t-ter); background-image: var(--hatch); color: var(--t-hi); }
/* join = the lit edge: this is the one banner that invites */
.notice.join { border-color: rgba(255, 198, 77, .45); box-shadow: var(--glow-2, none); }
/* stop = the cold flank: somebody has put a price on the reader */
.notice.stop { border-color: rgba(194, 75, 224, .55); }
.notice.leave { border-color: var(--line-up); }

/* ── 3. tabs (market pattern, re-declared) ───────────────────────────────── */
.market-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.mtab {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
  cursor: pointer; background: rgba(12, 9, 10, .62);
  border: 1px solid var(--line-up); border-radius: var(--r-pill, 999px);
  font: 600 10.5px/1 var(--data); letter-spacing: .16em; text-transform: uppercase;
  color: var(--t-sec);
  transition: color var(--quick), border-color var(--quick), background var(--quick);
}
.mtab:hover { color: var(--t-hi); border-color: var(--line-hot); }
.mtab.active, .mtab[aria-selected="true"] {
  color: #fff; border-color: rgba(255, 198, 77, .55);
  background: linear-gradient(180deg, var(--ember), var(--ember-deep));
  box-shadow: var(--glow-2, none);
}

/* ── 4. panes + the shared loading / empty furniture ─────────────────────── */
.mpane { margin-bottom: var(--s8, 64px); }
.pane-loading { margin: 0; padding: 24px 0; font-size: 14px; color: var(--t-sec); }
.pane-empty h2 {
  margin: 0 0 8px; font: 700 15px/1.3 var(--display); letter-spacing: .04em;
  text-transform: uppercase; color: var(--t-sec);
}
.pane-empty p { margin: 0 auto; max-width: 52ch; font-size: 13px; }
.pane-empty b { color: var(--t-hi); }
.place-signin p { margin: 0 0 16px; font-size: 14px; color: var(--t-body); }

/* ── 5. MOST WANTED — one row per pot, biggest first ─────────────────────── */
.wanted-list { display: flex; flex-direction: column; gap: 12px; }
.wanted-list:empty { display: none; }
.wanted-row {
  position: relative; display: grid;
  /* ★ minmax(0, 1fr), NEVER a bare 1fr (live sheet's own law): a bare 1fr is
     minmax(auto, 1fr) and refuses to shrink under a species name with no
     space to break on, and the document scrolls sideways on a phone. */
  grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--line); border-radius: var(--r, 9px);
  background: linear-gradient(180deg, rgba(21, 15, 16, .94), rgba(8, 6, 7, .97));
  box-shadow: var(--lit-edge), var(--crush);
  transition: border-color var(--quick);
}
.wanted-row:hover { border-color: var(--line-up); }
/* ★ min-width:0 on every cell: a grid ITEM is min-width:auto by default and
   holds the track open from the inside even when the track may shrink. */
.wanted-row > * { min-width: 0; }
.wanted-rank {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-up); background: rgba(6, 5, 6, .6);
  font: 500 17px/1 var(--data); color: var(--t-sec); font-variant-numeric: tabular-nums;
}
.wanted-name {
  font: 700 19px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase;
  color: var(--t-hi);
  /* `anywhere`, not `break-word`: only `anywhere` takes part in min-content
     measurement, which is the number the grid track sizes itself from */
  overflow-wrap: anywhere;
}
.wanted-dino {
  margin-top: 4px; font: 500 12px/1.6 var(--data); letter-spacing: .03em;
  color: var(--t-body); overflow-wrap: anywhere;
}
.wanted-sub { margin-top: 4px; font-size: 12px; color: var(--t-ter); overflow-wrap: anywhere; }
.wanted-pot { text-align: right; }
.wanted-pot .pot-value {
  display: block; font: 600 22px/1 var(--data); color: var(--ember-core);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.wanted-pot .pot-label {
  display: block; margin-top: 5px;
  font: 500 9.5px/1 var(--data); letter-spacing: .2em; text-transform: uppercase;
  color: var(--t-dim);
}
/* #1: the MOST WANTED flare — the light of the scene, as a border and a pill */
.wanted-row.top {
  border-color: rgba(255, 198, 77, .55);
  box-shadow: var(--lit-edge), var(--glow-3, none), var(--crush);
}
.wanted-row.top .wanted-rank { border-color: rgba(255, 198, 77, .55); color: var(--ember-ink); }
.wanted-flare {
  position: absolute; top: -11px; left: 16px;
  padding: 5px 10px; border-radius: var(--r-pill, 999px);
  background: linear-gradient(180deg, var(--ember), var(--ember-deep)); color: #fff;
  font: 700 9.5px/1 var(--data); letter-spacing: .22em; text-transform: uppercase;
  box-shadow: var(--glow-2, none);
}

/* the chips: a live target is an ember border + an ember-ink word; a paused
   one is the hatch + the word; the status family follows the same rule */
.dino-out, .dino-away, .status-chip {
  display: inline-block; padding: 2px 8px;
  border: 1px solid var(--line-up); border-radius: var(--r-pill, 999px);
  font: 500 9.5px/1.5 var(--data); letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; color: var(--t-sec);
}
.dino-out { border-color: rgba(255, 198, 77, .6); color: var(--ember-ink); }
.dino-away { border-color: var(--t-ter); background-image: var(--hatch); color: var(--t-hi); }
.hunt-left {
  margin-left: 6px; font: 500 10px/1.5 var(--data); letter-spacing: .06em;
  text-transform: uppercase; color: var(--t-dim); white-space: nowrap;
}
.status-chip.open { border-color: var(--blown); color: var(--t-hi); }
.status-chip.claimed { border-color: rgba(255, 198, 77, .6); color: var(--ember-ink); }
.status-chip.survived { border-color: rgba(194, 75, 224, .6); color: var(--violet-ink); }
.status-chip.refunded { border-color: var(--t-ter); background-image: var(--hatch); color: var(--t-hi); }

/* ── 6. PLACE A BOUNTY — two columns ─────────────────────────────────────── */
.place-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.place-col .panel-b { display: flex; flex-direction: column; gap: 12px; }
.place-hint { margin: 0; font-size: 13px; color: var(--t-sec); }
.online-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.online-count { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--t-dim); }
.online-list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.online-pick {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; padding: 10px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--line-up); border-radius: var(--r, 9px);
  background: rgba(6, 5, 6, .5); color: var(--t-hi);
  transition: border-color var(--quick), background var(--quick);
}
.online-pick:hover { border-color: var(--line-hot); }
.online-pick.selected {
  border-color: rgba(255, 198, 77, .6); background: rgba(232, 144, 26, .10);
  box-shadow: var(--glow-2, none);
}
.online-pick:focus-visible { outline: 2px solid var(--ember-core); outline-offset: 2px; }
.pick-name { font: 700 13px/1.3 var(--display); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.pick-species { font: 500 11px/1.4 var(--data); color: var(--t-sec); text-align: right; }
.online-note { margin: 0; font-size: 13px; color: var(--t-sec); }
.place-label {
  display: block; font: 500 10px/1 var(--data); letter-spacing: .18em;
  text-transform: uppercase; color: var(--t-dim);
}
.place-rails { margin: 0; font-size: 12px; color: var(--t-sec); }
.place-summary {
  padding: 12px 14px; border: 1px solid var(--line-up); border-radius: var(--r, 9px);
  background: rgba(6, 5, 6, .5); font-size: 13px; line-height: 1.55; color: var(--t-body);
}
.place-summary b { color: var(--ember-core); font-weight: 600; }
.place-note { margin: 0; min-height: 18px; font-size: 13px; color: var(--t-sec); }
.place-note.err { color: var(--t-hi); }
.place-note.ok { color: var(--ember-core); }

/* ── 7. tables (mine / claims) — the readout, scrolling inside its panel ─── */
.bounty-table { min-width: 560px; }
.bounty-table td { font-size: 13px; color: var(--t-body); }
.bounty-table td.numeric, .bounty-table th.numeric { text-align: right; }
.bounty-table .empty-row { padding: 26px var(--s4, 16px); text-align: center; color: var(--t-ter); }
.bounty-table .pot-cell { font: 600 13px/1 var(--data); color: var(--ember-core); font-variant-numeric: tabular-nums; }
.mine-dino {
  display: block; margin-top: 3px;
  font: 500 11px/1.4 var(--data); letter-spacing: .03em; color: var(--t-ter);
}
.mine-wrap .pane-loading { padding-top: 0; }
.table-wrap { margin: 0; }

/* ── 8. toast — the live page's own .show contract, above the live bar ───── */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--livebar-h, 34px) + 14px); z-index: 145;
  max-width: 90vw; padding: 11px 18px;
  transform: translateX(-50%) translateY(16px);
  border: 1px solid rgba(255, 198, 77, .55); border-radius: var(--r, 9px);
  background: rgba(8, 6, 7, .96); color: var(--t-hi); font-size: 13px;
  box-shadow: var(--glow-2, none);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 9. responsive ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .place-grid { grid-template-columns: minmax(0, 1fr); }
  .wanted-row { grid-template-columns: 44px minmax(0, 1fr); }
  .wanted-pot { grid-column: 1 / -1; text-align: left; }
  .bty .wallet-chip { max-width: none; }
  .notice > .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #toast { transition: none; }
}
