/* CoinMountain — night-alpine design system */
:root {
  --ink: #0A0E1A;
  --ink-raised: #111726;
  --ink-border: #232C44;
  --snow: #F2F5FA;
  --snow-dim: #9AA6BF;
  --gold: #F0B429;
  --violet: #A78BFA;
  --blue: #5B8DEF;
  --green: #3ECF8E;
  --red: #F26D6D;
  --display: "Unbounded", sans-serif;
  --body: "Space Grotesk", sans-serif;
  --radius: 14px;
  /* per-range accent: gold for coins everywhere by default; the GOAT scope
     (and its modal) swaps these for violet so the two boards read apart. */
  --accent: var(--gold);
  --accent-ink: #201503;
  --accent-glow: rgba(240, 180, 41, 0.38);
  --accent-glow-weak: rgba(240, 180, 41, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--snow);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--body); cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(240, 180, 41, 0.3); color: var(--snow); }
.goat ::selection, .kol-modal ::selection { background: rgba(167, 139, 250, 0.35); }
input, textarea { caret-color: var(--accent, var(--gold)); }
.ac-panel, .modal { scrollbar-width: thin; scrollbar-color: #2A3452 transparent; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--snow); letter-spacing: 0.01em;
}
.wordmark:hover { text-decoration: none; }
.wordmark .mark { width: 30px; height: 23px; color: var(--snow); }
.wm-accent { color: var(--gold); }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--snow-dim); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--snow); text-decoration: none; }

/* ---------- hero ---------- */
.hero { max-width: 780px; margin: 0 auto; padding: 20px 24px 0; text-align: center; }
.stats-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink-raised); border: 1px solid var(--ink-border);
  border-radius: 999px; padding: 7px 18px; font-size: 0.85rem; color: var(--snow-dim);
}
.stats-pill .sep { opacity: 0.4; }
.stat.online { color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.gold-text { color: var(--accent); }

h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.7rem, 4.6vw, 2.9rem); line-height: 1.18;
  margin: 26px 0 16px; letter-spacing: -0.01em;
}
.who {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.04;
  letter-spacing: -0.02em; margin: 16px 0 10px;
}
.hero-tag {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.3rem); margin-bottom: 10px;
}
.hero-sub { color: var(--snow-dim); max-width: 660px; margin: 0 auto 20px; font-size: 0.97rem; }

.claim-bar {
  display: flex; gap: 10px; max-width: 640px; margin: 0 auto;
  background: var(--ink-raised); border: 1px solid var(--ink-border);
  border-radius: var(--radius); padding: 8px;
}
.claim-bar input {
  flex: 1; min-width: 0; background: transparent; border: none; color: var(--snow);
  font-family: var(--body); font-size: 0.95rem; padding: 10px 12px;
}
.claim-bar input::placeholder { color: #8390AB; }
.claim-bar input:focus { outline: none; }
.claim-bar:focus-within { border-color: var(--accent); }
.ac-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.ac-panel {
  position: absolute; top: calc(100% + 12px); left: -8px; right: -8px; z-index: 30;
  background: var(--ink-raised); border: 1px solid var(--ink-border); border-radius: 12px;
  max-height: 336px; overflow-y: auto; box-shadow: 0 12px 26px rgba(4, 6, 12, 0.55);
  text-align: left;
}
.ac-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 14px; background: transparent; border: none;
  color: var(--snow); font-family: var(--body); font-size: 0.95rem;
}
.ac-row.active, .ac-row:hover { background: var(--ink); }
.ac-logo { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: var(--ink); }
.ac-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-sym { color: var(--snow-dim); font-size: 0.85rem; }
.ac-rank { margin-left: auto; color: #8390AB; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.ac-empty { padding: 14px; color: var(--snow-dim); font-size: 0.9rem; }
.btn-gold {
  background: var(--accent); color: var(--accent-ink); border: none;
  font-weight: 700; font-size: 0.95rem; padding: 12px 22px;
  border-radius: 10px; white-space: nowrap; transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-gold:hover { filter: brightness(1.09); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0) scale(0.98); }
.btn-gold:disabled { opacity: 0.55; cursor: wait; transform: none; }
.btn-gold.wide { width: 100%; margin-top: 12px; }
.claim-hint { color: #8390AB; font-size: 0.83rem; margin-top: 10px; }

/* ---------- mountain ---------- */
.mountain { position: relative; max-width: 1000px; margin: 108px auto 0; padding: 0 24px; }
.range { display: block; width: 100%; height: auto; }
.stars circle { fill: var(--snow); opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .stars circle { animation: twinkle 4s ease-in-out infinite; }
  .stars circle:nth-child(2n) { animation-delay: 1.3s; }
  .stars circle:nth-child(3n) { animation-delay: 2.6s; }
  @keyframes twinkle { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.12; } }
}
.podium { position: absolute; inset: 0 24px; }
.summit-slot { position: absolute; transform: translate(-50%, -100%); text-align: center; width: 170px; }
.slot-1 { left: 50%; top: 28%; }
.slot-2 { left: 25%; top: 60%; }
.slot-3 { left: 75%; top: 72%; }
.summit-slot a { display: block; color: inherit; }
.summit-slot a:hover { text-decoration: none; }
.summit-avatar {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto;
  border: 2.5px solid var(--ink-border); background: var(--ink-raised);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: var(--snow-dim);
  overflow: hidden; transition: transform 0.15s ease;
}
.summit-avatar img { width: 100%; height: 100%; object-fit: cover; }
.summit-slot a:hover .summit-avatar { transform: scale(1.07); }
.slot-1 .summit-avatar { width: 72px; height: 72px; border-color: var(--accent); box-shadow: 0 6px 30px var(--accent-glow); }
.summit-crown { font-size: 1.5rem; line-height: 1; margin-bottom: 4px; filter: drop-shadow(0 2px 6px var(--accent-glow)); }
.summit-name {
  margin-top: 8px; font-weight: 700; font-size: 0.88rem; color: var(--snow);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.summit-bid {
  display: inline-block; margin-top: 4px; font-size: 1.05rem; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--ink);
  background: var(--snow-dim); border-radius: 8px; padding: 2px 10px;
}
.slot-1 .summit-bid {
  background: var(--accent); color: var(--accent-ink);
  font-size: 1.45rem; font-weight: 800; padding: 3px 14px; border-radius: 10px;
  box-shadow: 0 3px 16px var(--accent-glow);
}
.summit-empty {
  border: 1.5px dashed #3A4666; border-radius: 12px; padding: 12px 10px;
  color: var(--snow-dim); font-size: 0.83rem; background: rgba(10, 14, 26, 0.55);
}

/* ---------- board ---------- */
.board { max-width: 1080px; margin: 26px auto 0; padding: 0 24px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--ink-raised); color: var(--snow-dim); border: 1px solid var(--ink-border);
  border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; font-weight: 500;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.chip:hover { color: var(--snow); border-color: #3A4666; }
.chip.active { background: var(--snow); color: var(--ink); border-color: var(--snow); }

/* terminal grammar: one contiguous ledger, rows split by hairlines */
.coin-list {
  list-style: none; margin-top: 18px; display: flex; flex-direction: column;
  background: var(--ink-raised); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius); overflow: hidden;
}
.coin-row {
  display: flex; align-items: center; gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 11px 16px;
  transition: background 0.15s ease;
}
.coin-row:first-child { border-top: none; }
.coin-row:hover { background: #151C2E; }
/* a fresh bid washes the row green for a beat */
.coin-row.flash { animation: bid-flash 1.4s ease-out; }
@keyframes bid-flash {
  0% { background-color: rgba(62, 207, 142, 0.2); border-color: var(--green); }
}
.coin-row.king { background: linear-gradient(100deg, var(--accent-glow-weak), transparent 60%); }
.coin-row.king:hover { background: linear-gradient(100deg, var(--accent-glow-weak), #151C2E 60%); }
.rank-badge {
  min-width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums;
  background: var(--ink); color: var(--snow-dim); border: 1px solid var(--ink-border);
}
.king .rank-badge { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.row-avatar {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--ink); border: 1px solid var(--ink-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: var(--snow-dim); overflow: hidden;
}
.row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.row-main { flex: 1; min-width: 0; }
.row-name { font-weight: 700; font-size: 1.02rem; display: flex; align-items: baseline; gap: 8px; }
.row-name a { color: var(--snow); }
.row-symbol { color: var(--snow-dim); font-size: 0.85rem; font-weight: 500; }
.row-meta { color: #8390AB; font-size: 0.83rem; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: center; }
.row-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mini-tag { font-size: 0.72rem; color: var(--snow-dim); background: var(--ink); border-radius: 5px; padding: 2px 8px; }
.row-bid { text-align: right; flex-shrink: 0; }
.bid-amount { font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.king .bid-amount { color: var(--accent); }
.btn-outbid {
  margin-top: 4px; background: transparent; border: 1px solid var(--ink-border);
  color: var(--snow-dim); border-radius: 8px; padding: 5px 14px; font-size: 0.82rem; font-weight: 600;
  transition: all 0.12s ease;
}
.btn-outbid:hover { border-color: var(--accent); color: var(--accent); }
.empty-board { text-align: center; padding: 50px 20px; color: var(--snow-dim); }
.empty-title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--snow); margin-bottom: 8px; }

/* ---------- ranges: the two boards ---------- */
.ranges { max-width: 1080px; margin: 0 auto; }
.range-col > .claim-bar { max-width: min(640px, calc(100% - 48px)); margin: 0 auto; }
.range-col > .claim-hint { text-align: center; padding: 0 24px; }
.col-head { display: none; }

/* shared header band for both ranges. The explicit line-height matters: one
   band is a <div>, the other a <button>, and they'd otherwise inherit
   different defaults and sit at different heights. */
.range-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px; width: 100%; text-align: left;
  background: linear-gradient(180deg, #141B2D, #0D1220);
  border: 1px solid var(--ink-border); border-radius: var(--radius);
  padding: 18px 22px; color: var(--snow);
  font-family: var(--body); line-height: 1.55; font-size: 1rem;
  transition: border-color 0.15s ease;
}
/* faint range silhouette along the band's foot */
.range-band::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 44'%3E%3Cpath d='M0 44 L28 16 L50 32 L76 6 L102 36 L132 12 L158 38 L188 18 L216 34 L240 44 Z' fill='%231B2338'/%3E%3C/svg%3E") repeat-x bottom / 240px 44px;
  opacity: 0.6; pointer-events: none;
}

/* ---------- GOAT section ---------- */
.goat, .kol-modal {
  --accent: var(--violet);
  --accent-ink: #1B1433;
  --accent-glow: rgba(167, 139, 250, 0.38);
  --accent-glow-weak: rgba(167, 139, 250, 0.12);
}
.goat { max-width: 1080px; margin: 44px auto 0; padding: 0 24px; }
/* the GOAT band's silhouette carries the violet cast too */
.goat .range-band::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 44'%3E%3Cpath d='M0 44 L28 16 L50 32 L76 6 L102 36 L132 12 L158 38 L188 18 L216 34 L240 44 Z' fill='%23262045'/%3E%3C/svg%3E");
}
.goat-toggle { cursor: pointer; }
.goat-toggle:hover { border-color: #3A4666; }
.goat.open .goat-toggle { border-color: var(--accent); }
.goat-emoji { font-size: 2.1rem; line-height: 1; z-index: 1; filter: drop-shadow(0 2px 8px var(--accent-glow)); }
.goat-head { flex: 1; min-width: 0; z-index: 1; }
.goat-title {
  display: block; font-family: var(--display); font-weight: 900;
  font-size: 1.35rem; letter-spacing: -0.01em;
}
.goat-sub { display: block; color: var(--snow-dim); font-size: 0.9rem; margin-top: 3px; }
.goat-peek { display: flex; align-items: center; gap: 10px; color: var(--snow-dim); font-size: 0.9rem; z-index: 1; flex-shrink: 0; }
.goat-peek b { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 1.05rem; }
/* the peek reuses .row-avatar's anatomy at pin size with an accent ring */
.goat-peek .row-avatar { width: 36px; height: 36px; border-radius: 50%; border-color: var(--accent); font-size: 0.6rem; }
.goat-chevron { width: 16px; flex-shrink: 0; color: var(--snow-dim); transition: transform 0.25s ease; z-index: 1; }
.goat.open .goat-chevron { transform: rotate(180deg); }

.goat-body-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.goat.open .goat-body-wrap { grid-template-rows: 1fr; }
.goat-body { overflow: hidden; min-height: 0; }
@media (prefers-reduced-motion: reduce) {
  .goat-body-wrap, .goat-chevron { transition: none; }
}
.goat-bar { margin-top: 28px; }
.goat-hint { text-align: center; }
.bar-status { text-align: center; margin-top: 6px; min-height: 1.3em; }
.bar-status.ok { color: var(--green); }
.status-avatar { width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; margin-right: 6px; }
.goat .mountain { padding: 0; }
.goat .board-head { margin-top: 26px; }
.goat .coin-list { margin-bottom: 8px; }

/* side-by-side above 1100px: both ranges always open, twin columns */
@media (min-width: 1100px) {
  .ranges {
    max-width: 1340px; padding: 0 24px; margin-top: 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
  }
  .col-head { display: flex; }
  .ranges .mountain, .ranges .board { max-width: none; padding: 0; }
  .ranges .board { margin-top: 26px; }
  .ranges .goat { max-width: none; padding: 0; margin: 0; }
  .range-col > .claim-bar, .goat-bar { max-width: none; margin: 24px 0 0; }
  .goat-toggle { pointer-events: none; }
  .goat-chevron, .goat-peek { display: none; }
  .goat-body-wrap { grid-template-rows: 1fr; }
  /* compact summit fittings for half-width mountains */
  .ranges .mountain { margin-top: 96px; }
  .ranges .summit-slot { width: 130px; }
  .ranges .summit-avatar { width: 44px; height: 44px; }
  .ranges .slot-1 .summit-avatar { width: 56px; height: 56px; }
  .ranges .summit-crown { font-size: 1.05rem; }
  .ranges .summit-name { font-size: 0.78rem; margin-top: 6px; }
  .ranges .summit-bid { font-size: 0.85rem; padding: 1px 8px; }
  .ranges .slot-1 .summit-bid { font-size: 1.15rem; padding: 2px 11px; }
  .ranges .coin-row { padding: 12px 14px; gap: 12px; }
  .ranges .rank-badge { min-width: 36px; height: 36px; font-size: 0.8rem; }
  .ranges .row-avatar { width: 40px; height: 40px; }
  .ranges .bid-amount { font-size: 1.1rem; }
}

/* two skies: above 1100px each range becomes its own tinted night panel with
   a sharp seam between them, and each sky lights up in its own color as the
   panels scroll into view. */
@media (min-width: 1100px) {
  .range-col, .ranges .goat {
    position: relative; isolation: isolate; overflow: clip;
    border: 1px solid #26304C; border-radius: 20px;
    padding: 0 20px 26px;
    background: linear-gradient(180deg, #10151F, #0A0E1A);
  }
  .ranges .goat { border-color: #4A3D92; background: linear-gradient(180deg, #261E50, #171240); }
  .range-col::before, .ranges .goat::before {
    content: ""; position: absolute; left: -20%; right: -20%; top: -120px; height: 640px;
    pointer-events: none; z-index: -1;
    background: radial-gradient(56% 52% at 50% 50%, var(--sky-glow), transparent 70%);
  }
  .range-col { --sky-glow: rgba(240, 180, 41, 0.15); }
  .ranges .goat { --sky-glow: rgba(167, 139, 250, 0.30); }

  /* the hint zones under the two claim bars reserve equal height so both
     mountains start at the same y regardless of copy length */
  .ranges .claim-hint { min-height: 3.1em; }

  /* the band stops being a card and becomes the panel's header */
  .ranges .range-band {
    background: transparent; border: none; border-radius: 0;
    border-bottom: 1px solid rgba(58, 70, 102, 0.45);
    padding: 20px 6px 18px;
  }
  .ranges .goat .range-band { border-bottom-color: rgba(88, 72, 160, 0.45); }

  /* hover: the kingdom under the cursor leans in, the other recedes */
  .range-col, .ranges .goat {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, border-color 0.2s ease;
    transform-origin: center top;
  }
  .ranges > :hover { transform: scale(1.02); z-index: 1; }
  .range-col:hover { border-color: rgba(240, 180, 41, 0.6); }
  .ranges .goat:hover { border-color: #8B7BD8; }
  .ranges:has(> :hover) > :not(:hover) { transform: scale(0.985); opacity: 0.85; }
  @media (prefers-reduced-motion: reduce) {
    .ranges > :hover, .ranges:has(> :hover) > :not(:hover) { transform: none; opacity: 1; }
  }

  /* the aurora drifts down the panel as you scroll through it */
  @supports (animation-timeline: view()) {
    .range-col::before, .ranges .goat::before {
      animation: sky-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .range-col::before, .ranges .goat::before { animation: none; }
  }
}
@keyframes sky-drift {
  from { transform: translateY(0); opacity: 0.5; }
  50% { opacity: 1; }
  to { transform: translateY(520px); opacity: 0.55; }
}

/* ---------- live bid ticker ---------- */
.activity {
  display: flex; align-items: center; margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(17, 23, 38, 0.5);
}
.live-chip {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 9px 16px 9px 24px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--green);
}
.ticker-wrap { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker {
  display: flex; gap: 34px; width: max-content; white-space: nowrap;
  padding: 9px 0; animation: ticker-scroll 36s linear infinite;
}
.ticker:hover { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .ticker-wrap { overflow-x: auto; mask-image: none; }
}
.tick { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--snow-dim); }
.tick b { color: var(--snow); }
.tick .plus { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.tick-t { color: #8390AB; font-size: 0.78rem; }

/* ---------- footer ---------- */
.site-footer {
  max-width: 1080px; margin: 56px auto 0; padding: 26px 24px 40px;
  border-top: 1px solid var(--ink-border); color: #8390AB; font-size: 0.83rem;
}

/* ---------- modal ---------- */
.modal {
  margin: auto;
  background: var(--ink-raised); color: var(--snow);
  border: 1px solid var(--ink-border); border-radius: 18px;
  padding: 28px; width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.modal::backdrop { background: rgba(4, 6, 12, 0.78); backdrop-filter: blur(3px); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; color: var(--snow-dim); font-size: 1rem; padding: 6px;
}
.modal-close:hover { color: var(--snow); }

.coin-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.coin-preview .row-avatar { width: 54px; height: 54px; }
.preview-name { font-weight: 700; font-size: 1.1rem; }
.preview-meta { color: var(--snow-dim); font-size: 0.85rem; }
.bid-context {
  background: var(--ink); border: 1px solid var(--ink-border); border-radius: 10px;
  padding: 12px 14px; font-size: 0.9rem; color: var(--snow-dim); margin-bottom: 16px;
}
.bid-context b { color: var(--accent); font-variant-numeric: tabular-nums; }

.field-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.muted { color: var(--snow-dim); font-weight: 400; font-size: 0.82rem; }
.tag-pick { margin-bottom: 18px; }
.tag-options { display: flex; gap: 7px; flex-wrap: wrap; }
.tag-options .chip { font-size: 0.8rem; padding: 5px 12px; }
.tag-options .chip.active { background: var(--blue); color: var(--snow); border-color: var(--blue); }

.pay-box, .sig-box, .amount-box { margin-bottom: 18px; }
.amount-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); border: 1px solid var(--ink-border); border-radius: 10px; padding: 8px 8px 8px 14px;
}
.amount-row:focus-within { border-color: var(--accent); }
.amount-prefix { color: var(--snow-dim); font-weight: 700; }
.amount-row input {
  flex: 1; min-width: 0; background: transparent; border: none; color: var(--snow);
  font-family: var(--body); font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.amount-row input:focus { outline: none; }
.amount-row .btn-gold { padding: 9px 18px; }
.address-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); border: 1px solid var(--ink-border); border-radius: 10px; padding: 10px 12px;
}
.address-row code {
  flex: 1; font-size: 0.78rem; word-break: break-all; color: var(--green);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.btn-ghost {
  background: transparent; border: 1px solid var(--ink-border); color: var(--snow-dim);
  border-radius: 8px; padding: 6px 12px; font-size: 0.8rem; font-weight: 600; flex-shrink: 0;
}
.btn-ghost:hover { color: var(--snow); border-color: var(--snow-dim); }
.pay-note { color: #8390AB; font-size: 0.8rem; margin-top: 8px; }
.sig-box input {
  width: 100%; background: var(--ink); border: 1px solid var(--ink-border);
  border-radius: 10px; padding: 11px 12px; color: var(--snow);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8rem;
}
.sig-box input:focus { outline: none; border-color: var(--accent); }
.verify-status { margin-top: 10px; font-size: 0.87rem; min-height: 1.3em; }
.verify-status.err { color: var(--red); }

#stepDone { text-align: center; padding: 12px 0; }
.done-crown { font-size: 3rem; margin-bottom: 10px; }
#stepDone h2 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin-bottom: 10px; }
#stepDone p { color: var(--snow-dim); }

/* ---------- rules page ---------- */
.prose { max-width: 680px; margin: 0 auto; padding: 30px 24px 60px; }
.prose h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); text-align: left; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--snow-dim); margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose b, .prose strong { color: var(--snow); }
.prose code { color: var(--green); font-size: 0.85em; word-break: break-all; }

/* ---------- responsive ---------- */
/* shorter screens: tuck the composition so the summit AND the top of the board stay above the fold */
@media (min-width: 721px) and (max-height: 1020px) {
  .hero { padding-top: 14px; }
  .who { font-size: clamp(2.1rem, 4.2vw, 3.1rem); margin: 12px 0 8px; }
  .hero-tag { margin-bottom: 8px; }
  .hero-sub { font-size: 0.94rem; margin-bottom: 16px; }
  .claim-hint { margin-top: 8px; }
  .mountain { max-width: 860px; margin-top: 98px; }
  .summit-avatar { width: 52px; height: 52px; }
  .slot-1 .summit-avatar { width: 62px; height: 62px; }
  .summit-crown { font-size: 1.25rem; }
  .summit-bid { font-size: 0.95rem; }
  .slot-1 .summit-bid { font-size: 1.3rem; }
  .board { margin-top: 20px; }
}
@media (min-width: 721px) and (max-height: 880px) {
  .hero { padding-top: 10px; }
  .stats-pill { padding: 5px 14px; }
  .who { font-size: clamp(2rem, 3.8vw, 2.7rem); margin: 10px 0 6px; }
  .hero-sub { margin-bottom: 14px; }
  .mountain { max-width: 780px; }
  .board { margin-top: 18px; }
}

@media (max-width: 720px) {
  .claim-bar { flex-direction: column; }
  .btn-gold { padding: 13px 22px; }
  .summit-slot { width: 120px; }
  .slot-2, .slot-3 { display: none; }        /* mountain shows only the king on small screens */
  .slot-1 { top: 37%; }
  .mountain { margin-top: 140px; }           /* king slot overhangs the short svg on phones */
  .coin-row { flex-wrap: wrap; gap: 10px 12px; padding: 13px 14px; }
  .row-main { flex-basis: calc(100% - 120px); }
  .row-bid { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .bid-amount { font-size: 1.1rem; }
  .site-header { padding: 12px 16px; gap: 10px; }
  .wordmark { font-size: 0.95rem; gap: 7px; }
  .wordmark .mark { width: 24px; height: 18px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 0.85rem; white-space: nowrap; }
}
/* small phones: the section anchors are one thumb-scroll away — keep only Rules */
@media (max-width: 480px) {
  .site-nav a[href="#mountain"], .site-nav a[href="#goat"] { display: none; }
  .goat-peek { display: none; }
  .goat-title { font-size: 1.05rem; }
  .goat-sub { font-size: 0.8rem; }
  .goat-emoji { font-size: 1.6rem; }
}
