/* ---------- bounties: tasks posted on poidh, on the home page and at /bounties/ ----------
   One card per bounty: the mascot in the film's night on top, the reward set large, two actions.
   The art is always night, so the chips on it keep fixed colours; everything else uses the page tokens. */

/* page header (the roadmap's night header, plus a live summary line) */
.bn-top .rm-intro { padding-bottom: clamp(36px, 5vw, 72px); }
.bn-top h1 { max-width: 12em; }
.bn-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin: 26px 0 0; font: 650 14px/1.3 var(--sans); color: rgba(255, 248, 234, 0.7); }
.bn-sum b { font: 800 19px/1 var(--sans); color: #f6c14f; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; margin-right: 2px; }
.bn-sum[hidden] { display: none; }
.rm-note a { color: #f6c14f; }
/* the one date every bounty shares, with the time left beside it */
.bn-close { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 22px 0 0; padding: 10px 14px 10px 12px; border-radius: 12px; background: rgba(255, 248, 234, 0.08); border: 1px solid rgba(255, 248, 234, 0.16); font: 600 14px/1.3 var(--sans); color: rgba(255, 248, 234, 0.86); }
.bn-close::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #f6c14f; box-shadow: 0 0 0 3px rgba(246, 193, 79, 0.22); flex: none; }
.bn-close b { font-weight: 800; color: #f6c14f; font-variant-numeric: tabular-nums; }
.bn-close b[hidden] { display: none; }
.bn-ends { color: var(--accent); }
.bn-ends b { font-weight: 750; }

/* the list page */
.bn-main { padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 9vw, 120px); }
.bn-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.bn-toolbar-note { margin: 0; font-size: 14px; color: var(--ink-subtle); }
.bn-toolbar-note a { color: var(--accent); }

/* tabs: open, voting, closed, each with its count */
.bn-tabs { display: inline-flex; gap: 4px; padding: 5px; max-width: 100%; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--rule); }
.bn-tab { appearance: none; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-muted); font: 700 14.5px/1 var(--sans); letter-spacing: 0.01em; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.bn-tab:hover { color: var(--ink); }
.bn-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.bn-tab .n { display: inline-block; min-width: 22px; padding: 4px 6px; border-radius: 999px; background: var(--track); color: var(--ink-subtle); font: 700 12px/1 var(--sans); font-variant-numeric: tabular-nums; text-align: center; }
.bn-tab[aria-selected="true"] .n { background: var(--accent-bg); color: var(--accent); }
.bn-tab:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 2px; }

/* the grid of cards */
.bn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bn-grid[hidden] { display: none; } /* `display: grid` would otherwise beat the attribute when the home collapses */
.bn-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.6s var(--ease); }
.bn-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(60, 40, 10, 0.06), 0 26px 56px -22px rgba(60, 40, 10, 0.42); }
.bn-art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--night); }
.bn-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.bn-card:hover .bn-art img { transform: scale(1.04); }
/* status chip, on the night art: fixed colours, like the place tags on the home */
.bn-chip { position: absolute; top: 14px; left: 14px; margin: 0; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 7px 10px; border-radius: 999px; font: 800 11.5px/1 var(--sans); font-stretch: 92%; letter-spacing: 0.14em; text-transform: uppercase; color: #1d1a0e; background: #fff8ea; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.bn-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.bn-chip.is-open { background: #a6d16a; }
.bn-chip.is-voting { background: #f2c14e; }
.bn-chip.is-voting::before { animation: wip 1.8s ease-in-out infinite; }
.bn-chip.is-judging { background: #ec9467; }
.bn-chip.is-judging::before { animation: wip 1.8s ease-in-out infinite; }
.bn-chip.is-paid { background: #fff8ea; }
.bn-chip.is-closed, .bn-chip.is-canceled { background: rgba(255, 248, 234, 0.82); color: #474c3d; }
.bn-chip.is-canceled::before { background: transparent; border: 1.6px solid currentColor; }

.bn-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; }
.bn-title { margin: 0; font: 750 19px/1.25 var(--sans); letter-spacing: -0.01em; text-wrap: balance; }
.bn-reward { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bn-eth { display: inline-flex; align-items: baseline; gap: 6px; font: 800 clamp(28px, 2.4vw, 34px)/1 var(--sans); font-stretch: 105%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bn-eth small { font: 700 13px/1 var(--sans); letter-spacing: 0.08em; color: var(--ink-subtle); }
.bn-usd { font: 600 14px/1 var(--sans); color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.bn-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 600 13px/1.3 var(--sans); color: var(--ink-subtle); }
.bn-meta li { display: inline-flex; align-items: center; gap: 6px; }
.bn-meta svg { width: 14px; height: 14px; flex: none; }
.bn-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.bn-actions .btn { flex: 1 1 auto; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14.5px; }
.bn-actions .btn svg { width: 16px; height: 16px; }
.bn-actions .btn-line { border-width: 1.5px; }
/* "Share": copies the bounty's own link (boarapp.com/b/<id>), or casts it inside Farcaster */
.bn-share { cursor: pointer; }
.bn-share.is-done { color: var(--ok); border-color: currentColor; background: var(--leaf-bg); }
.bn-share.is-done:hover { color: var(--ok); background: var(--leaf-bg); border-color: currentColor; }

/* compact: the three cards on the home page */
.bn-compact .bn-body { gap: 10px; padding: 16px 18px 18px; }
.bn-compact .bn-eth { font-size: 26px; }
.bn-compact .bn-when { display: none; }
.section-bounties .bn-grid { margin-bottom: 0; }
.section-bounties .roadmap-more { margin-top: clamp(32px, 4vw, 48px); }

/* while poidh answers: three quiet cards in the shape of the real ones */
.bn-skel { pointer-events: none; }
.bn-skel .bn-art { background: var(--surface-2); }
.bn-skel i { display: block; height: 14px; border-radius: 7px; background: var(--track); }
.bn-skel .s-title { height: 20px; width: 78%; }
.bn-skel .s-eth { height: 30px; width: 46%; border-radius: 9px; }
.bn-skel .s-meta { width: 62%; }
.bn-skel .s-btn { height: 44px; border-radius: 12px; flex: 1 1 auto; }
.bn-skel .bn-art, .bn-skel i { background-image: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--ink) 5%, transparent) 50%, transparent 70%); background-size: 240% 100%; animation: bn-shimmer 1.6s linear infinite; }
@keyframes bn-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* nothing here / poidh didn't answer */
.bn-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; padding: clamp(40px, 6vw, 72px) 20px; text-align: center; border: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent); border-radius: var(--radius); }
.bn-state img { width: 96px; height: 96px; margin-bottom: 4px; }
.bn-state h3 { margin: 0; font: italic 560 clamp(24px, 3vw, 32px)/1.05 var(--serif); letter-spacing: -0.01em; }
.bn-state p { margin: 0; max-width: 34em; color: var(--ink-muted); }
.bn-state .ctas { justify-content: center; margin-top: 8px; }
.bn-state .btn { min-height: 46px; }
.bn-state .btn-line { background: transparent; }
.bn-state-error { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.bn-state-error h3 { color: var(--accent); }

/* one bounty, in full */
.bn-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 clamp(20px, 3vw, 32px); font: 650 14.5px/1 var(--sans); color: var(--accent); text-decoration: none; }
.bn-back::before { content: "←"; transition: transform 0.2s var(--ease); }
.bn-back:hover::before { transform: translateX(-3px); }
.bn-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.bn-detail-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 36px); }
.bn-eyebrow { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 750 12.5px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-subtle); }
.bn-eyebrow .bn-chip { position: static; box-shadow: none; }
.bn-detail-head h2 { font: 800 clamp(32px, 4.2vw, 56px)/1 var(--sans); letter-spacing: -0.03em; max-width: 18em; }
.bn-detail-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 4vw, 64px); align-items: start; }
.bn-detail-art { border-radius: var(--radius); box-shadow: var(--shadow); }
.bn-detail-art img { transition: none; }
.bn-prose { margin-top: 28px; color: var(--ink-muted); font-size: 16.5px; line-height: 1.6; }
.bn-prose > :first-child { margin-top: 0; }
.bn-prose p, .bn-prose ul, .bn-prose ol, .bn-prose blockquote { margin: 0 0 1em; }
.bn-prose h3, .bn-prose h4 { margin: 1.6em 0 0.5em; color: var(--ink); }
.bn-prose h3 { font-size: 20px; } .bn-prose h4 { font-size: 17px; }
.bn-prose strong { color: var(--ink); }
.bn-prose a { color: var(--accent); overflow-wrap: anywhere; }
.bn-prose ul, .bn-prose ol { padding-left: 1.3em; }
.bn-prose li { margin: 0.35em 0; }
.bn-prose li::marker { color: var(--accent); }
.bn-prose blockquote { padding: 2px 0 2px 16px; border-left: 3px solid var(--accent-fill); }
.bn-prose hr { border: 0; border-top: 1px solid var(--rule); margin: 1.6em 0; }
.bn-prose code { font-size: 0.9em; }

.bn-side { position: sticky; top: 24px; display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 28px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.bn-side-label { margin: 0; font: 750 12.5px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.bn-side .bn-eth { font-size: clamp(36px, 3.6vw, 48px); }
.bn-side .bn-usd { font-size: 15px; }
.bn-side .bn-meta { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-muted); }
.bn-side .bn-meta svg { width: 16px; height: 16px; color: var(--ink-subtle); }
.bn-side-actions { display: grid; gap: 10px; padding-top: 6px; }
.bn-side-actions .btn { width: 100%; min-height: 50px; }
.bn-side-actions .btn svg { width: 17px; height: 17px; }
.bn-side-actions .bn-share { background: transparent; }
.bn-side-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-subtle); }
.bn-side-note a { color: var(--accent); }

/* claims: what people have sent in */
.bn-claims { margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 2px solid var(--ink); }
.bn-claims h3 { margin: 0 0 16px; display: flex; align-items: baseline; gap: 10px; }
.bn-claims h3 span { font: 650 14px/1 var(--sans); color: var(--ink-subtle); }
.bn-claim-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bn-claim { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); }
.bn-claim.is-accepted { border-color: color-mix(in srgb, var(--leaf) 55%, transparent); background: color-mix(in srgb, var(--leaf-bg) 60%, var(--surface)); }
.bn-claim-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.bn-claim-title { margin: 0; font: 750 16px/1.3 var(--sans); }
.bn-claim-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 5px; border-radius: 999px; background: var(--leaf-bg); color: var(--ok); font: 750 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.bn-claim-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bn-claim p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); overflow-wrap: anywhere; }
.bn-claim-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 600 13px/1.3 var(--sans); color: var(--ink-subtle); }
.bn-claim-foot a { color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.bn-claim-foot svg { width: 13px; height: 13px; }
.bn-claims-empty { margin: 0; padding: 20px; border: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 16px; color: var(--ink-muted); font-size: 15px; }

/* the page's closing band shares the roadmap's */
.page-bounties .cta-inner h2 { margin-bottom: 18px; }

/* ---- responsive ---- */
@media (max-width: 1040px) {
  .bn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .bn-detail-grid { grid-template-columns: minmax(0, 1fr); }
  /* one column: the reward and the two buttons come right after the title, the long read after them */
  .bn-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .bn-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bn-tabs { width: 100%; }
  .bn-tab { flex: 1 1 0; justify-content: center; padding: 10px 8px; font-size: 14px; gap: 6px; }
  .bn-toolbar-note { flex-basis: 100%; }
  .bn-body { padding: 16px 16px 18px; }
  .bn-actions .btn { padding: 0 10px; font-size: 14px; }
  .bn-card:hover, .bn-card:hover .bn-art img { transform: none; }
  .bn-sum { gap: 4px 16px; font-size: 13px; }
  .bn-sum b { font-size: 17px; }
  .bn-detail-head h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .bn-card, .bn-art img, .bn-tab, .bn-back::before { transition: none !important; }
  .bn-card:hover, .bn-card:hover .bn-art img, .bn-back:hover::before { transform: none; }
  .bn-skel .bn-art, .bn-skel i, .bn-chip.is-voting::before, .bn-chip.is-judging::before { animation: none; }
}
