/* =========================================================================
   warchest.lol
   Dark-first trading-terminal palette. Light theme is a full re-map of the
   same tokens, never a filter over the dark one.
   ========================================================================= */

:root {
  /* Dark is the default look, so the bare :root holds the dark values and the
     light block below overrides them. */
  --bg:            #0a0b0d;
  --bg-raised:     #101216;
  --bg-row:        #0e1014;
  --bg-row-hover:  #14171d;
  --bg-input:      #15181e;
  --line:          #1e222a;
  --line-strong:   #2a2f39;

  --text:          #e8eaed;
  --text-dim:      #9aa1ab;
  --text-faint:    #626a76;

  --gold:          #f5b014;
  --gold-soft:     #f5b0141a;
  --up:            #16c784;
  --down:          #ea3943;
  --hot:           #ff7a2f;

  --silver:        #b8c0cc;
  --bronze:        #cd8c52;

  --radius:        12px;
  --radius-sm:     8px;
  --radius-pill:   999px;

  --shadow:        0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lift:   0 2px 4px rgba(0,0,0,.5), 0 16px 48px rgba(0,0,0,.5);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --max: 1120px;
}

:root[data-theme='light'] {
  --bg:            #fbfbfa;
  --bg-raised:     #ffffff;
  --bg-row:        #ffffff;
  --bg-row-hover:  #f5f6f8;
  --bg-input:      #ffffff;
  --line:          #e6e8ec;
  --line-strong:   #d2d6dd;

  --text:          #12141a;
  --text-dim:      #5b6472;
  --text-faint:    #8b94a1;

  --gold:          #b47800;
  --gold-soft:     #b4780014;
  --up:            #0a9c66;
  --down:          #d32633;
  --hot:           #e2600f;

  --silver:        #8994a3;
  --bronze:        #a56a34;

  --shadow:        0 1px 2px rgba(16,20,28,.06), 0 8px 24px rgba(16,20,28,.06);
  --shadow-lift:   0 2px 4px rgba(16,20,28,.08), 0 16px 48px rgba(16,20,28,.12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* A faint vertical wash so the board does not sit on a flat slab. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, var(--gold-soft), transparent 60%);
  z-index: 0;
}

.wrap { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ ticker */

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  overflow: hidden;
  height: 34px;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 28px;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  width: max-content;
  animation: slide 60s linear infinite;
  padding-left: 20px;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tick { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.tick b { color: var(--text); font-weight: 600; }
.tick .amt { color: var(--up); font-weight: 650; }
.tick .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }

/* ------------------------------------------------------------------ header */

header.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 16px; height: 60px; }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand .word { font-weight: 750; letter-spacing: -.03em; font-size: 17px; }
.brand .word span { color: var(--text-faint); font-weight: 600; }

.range {
  display: flex; gap: 2px; padding: 3px;
  background: var(--bg-input); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.range button {
  border: 0; background: none; color: var(--text-dim);
  font-size: 12.5px; font-weight: 600; padding: 4px 12px;
  border-radius: var(--radius-pill); transition: .15s;
}
.range button[aria-pressed='true'] { background: var(--text); color: var(--bg); }

nav.links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav.links a, .icon-btn {
  border: 0; background: none; color: var(--text-dim);
  font-size: 13.5px; font-weight: 550; text-decoration: none;
  padding: 7px 11px; border-radius: var(--radius-sm); transition: .15s;
}
nav.links a:hover, .icon-btn:hover { color: var(--text); background: var(--bg-row-hover); }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; }
.icon-btn svg { width: 17px; height: 17px; }

/* -------------------------------------------------------------------- hero */

.hero { padding: 44px 0 8px; text-align: center; }

.live {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: center;
  font-size: 12.5px; color: var(--text-dim);
  border: 1px solid var(--line); background: var(--bg-raised);
  padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 26px;
}
.live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 var(--up); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.live .sep { color: var(--text-faint); }
.live b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }

/* Dim the pulse while the live stream is down so the dot never claims a
   freshness the page does not have. */
.live[data-connected='false'] .pulse { background: var(--text-faint); animation: none; }

.live-link {
  border: 0; background: none; padding: 0 0 0 2px;
  color: var(--gold); font-size: 12.5px; font-weight: 620;
  text-decoration: none;
}
.live-link:hover { text-decoration: underline; }

/* A brief tint when a live number lands, so movement is visible without
   redrawing the whole bar. */
@keyframes bump {
  0%   { color: var(--up); transform: translateY(-1px); }
  100% { color: var(--text); transform: none; }
}
.live b.bumped, .stat .v.bumped { animation: bump .7s ease-out; }
.live b.bumped-down { animation: bump .7s ease-out; }

h1.claim {
  margin: 0;
  font-size: clamp(30px, 6.2vw, 54px);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.04;
}
h1.claim .price {
  color: var(--gold);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
}
.claim-note {
  margin: 16px auto 0; max-width: 560px;
  font-size: 14px; color: var(--text-dim); line-height: 1.6;
}
.claim-note b { color: var(--text); font-weight: 620; }

/* ----------------------------------------------------------- pledge widget */

.composer {
  margin: 30px auto 0; max-width: 660px;
  display: flex; gap: 8px; align-items: stretch;
}
.combo { position: relative; flex: 1 1 auto; min-width: 0; }

.field {
  width: 100%; height: 48px;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--text-faint); }
.field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field.amount { width: 128px; flex: none; font-family: var(--mono); font-weight: 650; }

.btn {
  height: 48px; flex: none;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--gold); color: #14100a;
  font-weight: 700; font-size: 14.5px;
  transition: .15s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost {
  background: var(--bg-input); color: var(--text);
  border-color: var(--line-strong);
}
.btn.ghost:hover:not(:disabled) { background: var(--bg-row-hover); filter: none; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--radius-sm); }

.composer-hint { text-align: center; font-size: 12.5px; color: var(--text-faint); margin-top: 11px; }
.composer-hint b { color: var(--text-dim); font-weight: 600; }

/* Typeahead results for the token picker. */
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  max-height: 320px; overflow-y: auto;
  padding: 5px;
}
.suggest[hidden] { display: none; }
.sug {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 9px; border: 0; background: none; text-align: left;
  border-radius: var(--radius-sm);
}
.sug:hover, .sug[data-active='true'] { background: var(--bg-row-hover); }
.sug .sym { font-weight: 700; font-size: 13.5px; }
.sug .nm { color: var(--text-dim); font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug .chest { margin-left: auto; font-size: 12.5px; color: var(--text-faint); flex: none; }
.sug .rk { font-size: 11px; color: var(--text-faint); font-family: var(--mono); flex: none; width: 34px; }

/* ------------------------------------------------------------------ badges */

.badge {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  font-family: var(--mono); font-weight: 750; font-size: 12px;
  letter-spacing: -.04em;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.badge::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 55%);
}
.badge.lg { width: 54px; height: 54px; border-radius: 14px; font-size: 15px; }

/* --------------------------------------------------------------- controls */

.controls {
  display: flex; align-items: center; gap: 10px;
  margin: 34px 0 14px; flex-wrap: wrap;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }
.chip-btn {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text-dim);
  font-size: 12.5px; font-weight: 600;
  padding: 6px 13px; border-radius: var(--radius-pill);
  transition: .15s;
}
.chip-btn:hover { color: var(--text); border-color: var(--line-strong); }
.chip-btn[aria-pressed='true'] {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.search-wrap { position: relative; flex: none; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-faint); pointer-events: none; }
.search {
  height: 34px; width: 200px; padding: 0 12px 0 32px;
  background: var(--bg-input); border: 1px solid var(--line);
  border-radius: var(--radius-pill); color: var(--text); font: inherit; font-size: 13px;
}
.search:focus { outline: none; border-color: var(--gold); }

/* ------------------------------------------------------------------- board */

.board { display: flex; flex-direction: column; gap: 6px; }

.row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px;
  background: var(--bg-row);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
  position: relative;
  text-align: left;
  width: 100%;
}
.row:hover { background: var(--bg-row-hover); border-color: var(--line-strong); transform: translateX(2px); }

/* The top three get a wash of their own brand colour, set inline per row. */
.row.podium { border-color: color-mix(in srgb, var(--tint) 32%, var(--line)); }
.row.podium::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 11%, transparent), transparent 42%);
}
.row > * { position: relative; }

.rank {
  flex: none; width: 42px;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  color: var(--text-faint);
  display: flex; align-items: center; gap: 3px;
}
.row[data-rank='1'] .rank { color: var(--gold); }
.row[data-rank='2'] .rank { color: var(--silver); }
.row[data-rank='3'] .rank { color: var(--bronze); }

.move { font-size: 9px; line-height: 1; }
.move.up { color: var(--up); }
.move.down { color: var(--down); }

.row-main { flex: 1 1 auto; min-width: 0; }
.row-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.row-title .name { font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; }
.row-title .sym {
  font-family: var(--mono); font-size: 11px; font-weight: 650;
  color: var(--text-faint);
  border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px;
}
.row-blurb {
  color: var(--text-dim); font-size: 13px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-meta {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 5px; font-size: 11.5px; color: var(--text-faint);
}
.row-meta .backers { color: var(--text-dim); }
.row-meta .hot { color: var(--hot); font-weight: 620; }
.row-meta .bullet { opacity: .45; }

.row-right { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.chest-amt { font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: -.03em; }
.row[data-rank='1'] .chest-amt { color: var(--gold); }
.chest-sub { font-size: 11px; color: var(--text-faint); }
.chest-sub .today { color: var(--up); font-weight: 620; }

/* Hover call to action — what it costs this token to take the crown. */
.takeover {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--gold); color: #14100a;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 11px; border-radius: var(--radius-pill);
  opacity: 0; pointer-events: none; transition: .16s;
  white-space: nowrap; z-index: 3;
  box-shadow: var(--shadow);
}
.row:hover .takeover { opacity: 1; transform: translateX(-50%) translateY(0); }

.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0; color: var(--text-faint);
  font-size: 11px; font-weight: 700; letter-spacing: .11em;
}
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }

.empty { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty h3 { margin: 0 0 6px; color: var(--text); font-size: 16px; }

.more-wrap { display: flex; justify-content: center; margin: 22px 0 8px; }

/* ------------------------------------------------------------------ modals */

.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(4,5,7,.66);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fade .16s ease-out;
}
.scrim[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.sheet {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  width: 100%; max-width: 560px;
  max-height: min(86vh, 780px);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: rise .2s cubic-bezier(.2,.8,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.sheet.wide { max-width: 620px; }

.sheet-head {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.sheet-head .sub { color: var(--text-dim); font-size: 13px; margin-top: 3px; }
.sheet-close { margin-left: auto; flex: none; }

.sheet-body { padding: 20px; overflow-y: auto; flex: 1 1 auto; }
.sheet-foot { padding: 15px 20px; border-top: 1px solid var(--line); flex: none; background: var(--bg-raised); }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.stat {
  background: var(--bg-input); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 12px;
}
.stat .k { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
.stat .v { font-family: var(--mono); font-weight: 700; font-size: 17px; margin-top: 3px; letter-spacing: -.03em; }

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  color: var(--text-faint); text-transform: uppercase;
  margin: 22px 0 9px;
}
.section-label:first-child { margin-top: 0; }

.backer-list { display: flex; flex-direction: column; gap: 1px; }
.backer {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: 13px;
}
.backer:nth-child(odd) { background: var(--bg-input); }
.backer .pos { font-family: var(--mono); font-size: 11px; color: var(--text-faint); width: 20px; flex: none; }
.backer .who { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backer .times { color: var(--text-faint); font-size: 11.5px; }
.backer .amt { margin-left: auto; font-family: var(--mono); font-weight: 700; flex: none; }
.backer.whale .amt { color: var(--gold); }

.note-list { display: flex; flex-direction: column; gap: 8px; }
.note {
  border-left: 2px solid var(--line-strong);
  padding: 2px 0 2px 11px;
  font-size: 13px;
}
.note .head { display: flex; gap: 7px; align-items: baseline; flex-wrap: wrap; }
.note .who { font-weight: 620; }
.note .amt { font-family: var(--mono); color: var(--up); font-weight: 650; font-size: 12px; }
.note .when { color: var(--text-faint); font-size: 11.5px; margin-left: auto; }
.note .msg { color: var(--text-dim); margin-top: 2px; }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.form-row label { font-size: 12px; font-weight: 620; color: var(--text-dim); }
.form-row .hint { font-size: 11.5px; color: var(--text-faint); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.preset {
  border: 1px solid var(--line); background: var(--bg-input);
  color: var(--text-dim); font-family: var(--mono); font-weight: 650; font-size: 12.5px;
  padding: 5px 11px; border-radius: var(--radius-sm); transition: .15s;
}
.preset:hover { border-color: var(--gold); color: var(--gold); }

.rank-preview {
  display: flex; align-items: center; gap: 9px;
  background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 13px; margin-bottom: 14px;
}
.rank-preview .big { font-family: var(--mono); font-weight: 750; color: var(--gold); font-size: 15px; }

.banner {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--bg-input); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 12.5px; color: var(--text-dim); line-height: 1.5;
}
.banner.warn { border-color: color-mix(in srgb, var(--hot) 40%, transparent); }
.banner b { color: var(--text); }
.banner svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--hot); }

.err { color: var(--down); font-size: 12.5px; margin-top: 9px; min-height: 17px; }

/* Fake card sheet, only ever shown in demo mode. */
.card-mock {
  background: linear-gradient(135deg, #1c2029, #12151b);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 16px;
  font-family: var(--mono); color: #cfd5df;
  margin-bottom: 14px;
}
.card-mock .strip { height: 26px; background: #0a0c10; border-radius: 4px; margin: 10px 0 14px; }
.card-mock .digits { letter-spacing: .16em; font-size: 15px; }
.card-mock .foot { display: flex; justify-content: space-between; font-size: 11px; color: #7d8695; margin-top: 10px; }

.paying { display: grid; place-items: center; gap: 14px; padding: 34px 0; text-align: center; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid var(--line-strong); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.done { display: grid; place-items: center; gap: 6px; padding: 24px 0 10px; text-align: center; }
.done .tick-mark {
  width: 46px; height: 46px; border-radius: 50%;
  background: color-mix(in srgb, var(--up) 16%, transparent);
  color: var(--up); display: grid; place-items: center; margin-bottom: 6px;
}
.done h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.done p { margin: 0; color: var(--text-dim); font-size: 13.5px; }
.done .newrank { font-family: var(--mono); font-weight: 750; font-size: 30px; color: var(--gold); margin: 6px 0 2px; letter-spacing: -.04em; }

/* -------------------------------------------------------------- explainer */

.explain { margin: 68px 0 0; padding: 34px 0 0; border-top: 1px solid var(--line); }
.explain h2 { font-size: 21px; font-weight: 720; letter-spacing: -.025em; margin: 0 0 6px; }
.explain .lede { color: var(--text-dim); font-size: 14px; margin: 0 0 24px; max-width: 620px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.step {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.step .n {
  font-family: var(--mono); font-weight: 750; font-size: 12px;
  color: var(--gold); margin-bottom: 7px;
}
.step h3 { margin: 0 0 5px; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.55; }

/* ------------------------------------------------------------------ footer */

footer.bottom {
  margin-top: 56px; padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-faint); font-size: 12.5px;
}
.foot-in { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot-in .spacer { flex: 1 1 auto; }
footer.bottom a { color: var(--text-dim); text-decoration: none; }
footer.bottom a:hover { color: var(--text); }

/* ------------------------------------------------------------------ mobile */

@media (max-width: 720px) {
  .composer { flex-wrap: wrap; }
  .combo { flex: 1 1 100%; }
  .field.amount { flex: 1 1 auto; width: auto; }
  .btn { flex: 1 1 auto; }
  .row { gap: 10px; padding: 11px 12px; }
  .row .badge { width: 34px; height: 34px; font-size: 10.5px; }
  .rank { width: 32px; font-size: 12px; }
  .row-blurb { display: none; }
  .chest-amt { font-size: 14.5px; }
  .search { width: 100%; }
  .search-wrap { flex: 1 1 100%; }
  .controls { gap: 8px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  nav.links a { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none; }
}

/* -------------------------------------------------------------- stats sheet */

.stats-rows { display: flex; flex-direction: column; gap: 1px; }
.stats-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 11px; border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.stats-row:nth-child(odd) { background: var(--bg-input); }
.stats-row .k { color: var(--text-dim); }
.stats-row .v {
  margin-left: auto; font-family: var(--mono); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.stats-row .v.gold { color: var(--gold); }

.live-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-dim);
}
.live-flag .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.live-flag[data-connected='false'] .pulse { background: var(--text-faint); }
