/* css/chain.css: the on-chain pages (LORE, Bounties, Fleets, Drops, Claim). Loaded after app.css; builds on the
   orbio.bot sheet in css/site.css (cards, amount, seg, items, kv, note, empty) in porcelain glass. */

/* prelim note under the page head */
.chain-prelim:empty { display: none; }
.chain-prelim { margin-bottom: 18px; }
.prelim-note { align-items: center; border: 1px solid rgba(138, 97, 52, .22); background: color-mix(in oklab, var(--bronze-100) 86%, transparent); font-size: 13.5px; }
.prelim-note .bd-icon { margin-top: 0; color: var(--bronze-700); }

/* the "how it works" band at the foot of a page */
.chain-more { margin-top: 18px; }
@media (min-width: 900px) { :where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* forms: a fieldset that disables everything inside in prelim */
.form-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-set:disabled .amount, .form-set:disabled .input, .form-set:disabled .textarea, .form-set:disabled .seg { opacity: .62; }
.form-set:disabled .amount input, .form-set:disabled .input, .form-set:disabled .textarea { cursor: not-allowed; }
.form-set:disabled .btn, .form-set:disabled .seg button, .form-set:disabled .max { cursor: not-allowed; }
.form-set:disabled .btn-primary { box-shadow: none; }
.form-set .btn:disabled { opacity: .5; }
.bal-line { min-height: 1.45em; }
.bal-line b { font: 500 12.5px/1 var(--mono); color: var(--ink-2); letter-spacing: -0.02em; }
.toggle.check { min-height: 40px; padding: 0 2px; font: 500 13.5px/1.3 var(--display); color: var(--ink-2); cursor: pointer; }
.toggle.check input, .form-set input[type='checkbox'] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.textarea.prose { font: 400 16px/1.5 var(--sans); min-height: 96px; }
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .field > span small.over { color: var(--ask); }
.input-row { display: flex; gap: 8px; min-width: 0; }
.input-row .input { flex: 1; }
.input-row .btn { flex: none; min-height: 48px; }
input[type='datetime-local'].input { min-height: 48px; padding-right: 10px; }
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .okmsg:empty { display: none; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* figures */
.chain-stats { margin-bottom: 14px; }
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .stat b small { font-family: var(--mono); }
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .kv dd .muted { font-family: var(--sans); font-size: 12px; letter-spacing: 0; }
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .kv dd a, .addr.ext { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .kv dd a:hover, .addr.ext:hover { text-decoration-color: var(--bronze-600); }
.ext-link { justify-self: start; margin-top: 10px; padding-left: 0; }
.hash { font: 400 12.5px/1.3 var(--mono); }
a.ul { text-decoration: underline; text-decoration-color: var(--bronze-300); text-underline-offset: 3px; }
a.ul:hover { text-decoration-color: var(--bronze-700); }

/* lists */
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .section-title.flush { margin-top: 0; }
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .section-title { flex-wrap: wrap; row-gap: 4px; }
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .section-title .meta { font: 400 12px/1.3 var(--mono); }
.item-link { color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.item-link:hover { border-color: var(--bronze-500); }
.item-link:active { transform: scale(.995); }
.item-link.selected { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--accent), var(--shadow-soft); }
.item-link .item-top > .bd-icon { width: 16px; height: 16px; flex: none; color: var(--ink-3); margin-top: 2px; }
.item-figs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.items.grid-fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mine-box { margin-top: 8px; }
.item.winner { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--accent), var(--shadow-soft); }
.checks { gap: 6px; }

/* bounties */
.detail-bar { margin: -6px 0 12px; }
.back-link { padding-left: 6px; }
.bounty-topic { margin: 0 0 18px; font: 400 clamp(20px, 3.4vw, 25px)/1.32 var(--serif); letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; text-wrap: pretty; }
.mini-steps { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.mini-steps li::marker { font: 500 12px var(--mono); color: var(--bronze-700); }
.entry-check { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white); min-width: 0; }
.entry-check .item-title b { font: 600 15px/1.25 var(--display); }

/* claim */
.claim-amount { margin-bottom: 14px; }
.claim-amount b { font-size: clamp(2.2rem, 7vw, 3rem); }
.drop-note { font-size: 19px; line-height: 1.4; margin: 0 0 14px; color: var(--ink-2); overflow-wrap: anywhere; }

/* phones */
@media (max-width: 520px) {
  :where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .amount { min-height: 68px; padding: 0 12px; gap: 8px; }
  :where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .amount input { font-size: 25px; }
  :where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .seg button { font-size: 12.5px; padding: 0 4px; }
  :where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .item-actions .btn { flex: 1 1 100%; }
  :where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .card-head { flex-wrap: wrap; row-gap: 8px; }
}
@media (max-width: 360px) {
  .input-row { flex-wrap: wrap; }
  .input-row .btn { flex: 1 1 100%; }
  .stats.chain-stats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* a plain list of short rules with bronze dots */
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; }
.rules li::before { content: ''; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--bronze-500); }
.rules b { display: block; font: 600 14px/1.35 var(--display); letter-spacing: -0.01em; }
.rules p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* the fleet head: ghost actions keep their width */
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .item-actions .btn-ghost { flex: 0 1 auto; }
:where(.page-lore, .page-bounties, .page-fleets, .page-drops, .page-claim) .card > .item-actions { margin-top: 14px; }
