/* Verge Runes interface preview. Leans on the site's own tokens in style.css so this reads as part
   of Verginals rather than as a pitch deck that wandered in. */

.vr-wrap { max-width: 940px; margin: 0 auto; padding: 40px 22px 90px; }

.vr-head { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.vr-kicker {
  margin: 0 0 10px; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 3px; color: var(--muted);
}
.vr-head h1 { margin: 0 0 12px; font-size: 42px; line-height: 1.05; letter-spacing: -0.5px; }
.vr-lede { margin: 0 0 20px; max-width: 62ch; font-size: 16px; line-height: 1.65; color: var(--muted); }
.vr-lede code { font-size: 13px; color: var(--txt); }

/* The honest-state banner. Amber, never green: nothing here is live. */
.vr-status {
  display: inline-block; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid #6b5320; background: #241d0d;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #ffc93c;
}
.vr-status.bad { border-color: #6b2626; background: #241010; color: var(--danger); }
/* `hidden` is a UA rule with almost no specificity, so the `display: inline-block` above beats it.
   Every page that hid this banner after loading kept showing it, over content that had finished
   loading, which reads as a page that is stuck. */
.vr-status[hidden] { display: none; }

.vr-sec { padding: 44px 0; border-bottom: 1px solid var(--line); }
.vr-num {
  margin: 0 0 6px; font: 600 11px/1 ui-monospace, monospace; letter-spacing: 2px; color: var(--accent);
}
.vr-sec h2 { margin: 0 0 14px; font-size: 26px; letter-spacing: -0.3px; }
.vr-say { margin: 0 0 14px; max-width: 66ch; font-size: 15px; line-height: 1.7; color: var(--muted); }

.vr-note {
  margin: 18px 0 0; padding: 12px 16px; max-width: 70ch;
  border-left: 3px solid var(--accent); background: var(--bg2);
  font-size: 13.5px; line-height: 1.65; color: var(--muted);
}
.vr-note b { color: var(--txt); }

/* --- cards ------------------------------------------------------------------------------------ */

.vr-card {
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.vr-card + .vr-card { margin-top: 12px; }
.vr-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vr-grow { flex: 1; min-width: 0; }

.vr-tag {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  font: 600 10px/1.5 ui-monospace, monospace; letter-spacing: 1px;
  border: 1px solid var(--line); color: var(--muted);
}
.vr-tag.sample { border-color: #4a3a12; background: #221b0a; color: #d8b04a; }
.vr-tag.ok { border-color: #1e5e46; background: #0e2a20; color: var(--ok); }
.vr-tag.warn { border-color: #6b5320; background: #241d0d; color: #ffc93c; }
.vr-tag.bad { border-color: #6b2626; background: #241010; color: var(--danger); }

.vr-ticker-badge {
  width: 46px; height: 46px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font: 700 15px/1 ui-monospace, monospace;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #052436;
}
.vr-name { font-size: 16px; font-weight: 600; }
.vr-sub { font: 12px/1.5 ui-monospace, monospace; color: var(--muted); }
.vr-amount { font: 600 20px/1 ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.vr-bar { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; margin-top: 10px; }
.vr-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); }

/* --- verification -------------------------------------------------------------------------- */

.vr-steps { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.vr-step {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  background: var(--bg2); font: 12px/1.5 ui-monospace, monospace; color: var(--muted);
  opacity: 0.35; transition: opacity .25s;
}
.vr-step.on { opacity: 1; }
.vr-step b { color: var(--txt); font-weight: 600; }
.vr-hash { color: var(--accent); word-break: break-all; }

/* --- inputs ---------------------------------------------------------------------------------- */

.vr-in {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--txt);
  font: 15px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px;
}
.vr-in:focus { outline: none; border-color: var(--accent2); }
.vr-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }

.vr-btn {
  padding: 11px 18px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #052436;
  font: 600 13px/1 -apple-system, system-ui, sans-serif;
}
.vr-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--txt); }
.vr-btn:disabled { opacity: 0.45; cursor: default; }

.vr-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }

/* Permanent fields are marked in the form, not in a dialog nobody reads. */
.vr-perm {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  font: 600 9px/1.6 ui-monospace, monospace; letter-spacing: 1px;
  background: #2a1f0c; color: #d8b04a;
}

.vr-kv { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 13.5px; }
.vr-kv + .vr-kv { border-top: 1px solid var(--line); }
.vr-kv span:first-child { color: var(--muted); }
.vr-kv span:last-child { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.vr-outs li { margin-bottom: 12px; font-size: 14.5px; line-height: 1.7; color: var(--muted); max-width: 68ch; }
.vr-outs b { color: var(--txt); }

.vr-foot { padding-top: 30px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

/* Wide things scroll inside themselves, the page never does. */
.vr-scroll { overflow-x: auto; }

@media (max-width: 620px) {
  .vr-head h1 { font-size: 32px; }
  .vr-wrap { padding: 28px 16px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .vr-step { transition: none; }
}

/* --- market and token pages ------------------------------------------------------------------- */

.vr-wrap.wide { max-width: 1180px; }
.vr-head.slim { padding-bottom: 22px; }

.vr-nav { display: flex; gap: 18px; margin-bottom: 22px; font-size: 13px; }
.vr-nav a { color: var(--accent); text-decoration: none; }
.vr-nav a:hover { text-decoration: underline; }
.vr-nav span { color: var(--muted); }

.vr-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0 14px; }
.vr-in.sm { width: auto; min-width: 230px; padding: 9px 12px; font-size: 13px; letter-spacing: 0; }

.vr-seg { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.vr-segb {
  padding: 7px 12px; border: none; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--muted);
  font: 600 12px/1 -apple-system, system-ui, sans-serif;
}
.vr-segb.on { background: var(--bg2); color: var(--txt); }

/* --- table ------------------------------------------------------------------------------------ */

.vr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vr-table th {
  padding: 10px 12px; text-align: left; font: 600 11px/1.4 ui-monospace, monospace;
  letter-spacing: 1px; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.vr-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vr-table tbody tr:hover { background: var(--bg2); }
.vr-n { text-align: right; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
th.vr-n { text-align: right; }
.vr-rank { width: 34px; color: var(--muted); font-family: ui-monospace, monospace; }
.vr-empty { padding: 30px 12px; color: var(--muted); text-align: center; }

.vr-id { display: flex; align-items: center; gap: 11px; }
.vr-badge {
  width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center;
  font: 700 12px/1 ui-monospace, monospace;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #052436;
}
.vr-badge.lg { width: 52px; height: 52px; border-radius: 13px; font-size: 17px; }
.vr-tk { font-weight: 600; letter-spacing: 0.3px; }
.vr-nm { font-size: 12px; color: var(--muted); }
.vr-spark { width: 100px; }
.vr-spark canvas { display: block; }

/* Up and down never rely on colour: the arrow and the sign say it too. */
.vr-delta { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.vr-delta.up { color: var(--ok); }
.vr-delta.down { color: var(--danger); }
.vr-arrow { font-size: 9px; }
.vr-delta.big { font-size: 15px; margin-left: 12px; }

.vr-btn.sm { padding: 7px 12px; font-size: 12px; white-space: nowrap; }

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

.vr-hero { padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.vr-hero-top { display: flex; align-items: center; gap: 14px; }
.vr-hero-name { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: 0.4px; }
.vr-hero-price { display: flex; align-items: baseline; margin-top: 20px; }
.vr-hero-num { font: 700 48px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.vr-hero-unit { margin-left: 8px; font-size: 15px; color: var(--muted); }

.vr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 24px; }
.vr-kpi { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.vr-kpi-l { font: 600 10px/1.4 ui-monospace, monospace; letter-spacing: 1px; color: var(--muted); }
.vr-kpi-v { margin-top: 6px; font: 600 19px/1.2 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.vr-kpi-s { margin-top: 3px; font-size: 11px; color: var(--muted); }

/* --- panels and charts ------------------------------------------------------------------------ */

.vr-panel { margin-top: 30px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.vr-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.vr-panel-head h2 { margin: 0; font-size: 17px; }
.vr-floor { font-size: 13px; color: var(--muted); }
.vr-floor b { margin-left: 6px; color: var(--txt); font-family: ui-monospace, monospace; }

.vr-chart { position: relative; width: 100%; }
.vr-chart:focus { outline: 1px solid var(--accent2); outline-offset: 2px; }

.vr-cross { position: absolute; width: 1px; background: var(--edge, #3c4d5e); pointer-events: none; }
.vr-tip {
  position: absolute; pointer-events: none; padding: 7px 10px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); min-width: 140px;
}
.vr-tip-v { font: 600 14px/1.3 ui-monospace, monospace; color: var(--txt); font-variant-numeric: tabular-nums; }
.vr-tip-l { font-size: 11px; color: var(--muted); }

.vr-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.vr-tab {
  padding: 10px 14px; border: none; background: transparent; cursor: pointer;
  color: var(--muted); font: 600 13px/1 -apple-system, system-ui, sans-serif;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.vr-tab.on { color: var(--txt); border-bottom-color: var(--accent); }

/* --- listings --------------------------------------------------------------------------------- */

.vr-listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vr-listing { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.vr-listing.carries { border-color: #6b5320; }
.vr-listing-amt { font: 600 18px/1.2 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.vr-listing-unit { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.vr-listing-total { margin-top: 4px; font-size: 13px; color: var(--muted); font-family: ui-monospace, monospace; }
.vr-carry { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #241d0d; }
.vr-carry-h { font: 600 10px/1.5 ui-monospace, monospace; letter-spacing: 1px; color: #ffc93c; }
.vr-carry-i { font-size: 12px; color: var(--txt); font-family: ui-monospace, monospace; }
.vr-row.foot { margin-top: 12px; justify-content: space-between; }

.vr-meters { display: flex; flex-direction: column; gap: 16px; }
.vr-meter-l { font-size: 13px; }
.vr-meter-v { font: 600 13px/1 ui-monospace, monospace; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .vr-hero-num { font-size: 34px; }
  .vr-table { font-size: 13px; }
  .vr-table td, .vr-table th { padding: 9px 8px; }
}

/* --- basket ------------------------------------------------------------------------------------ */

.vr-listing { cursor: pointer; transition: border-color .15s, background .15s; }
.vr-listing:hover { border-color: var(--edge, #3c4d5e); }
.vr-listing:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.vr-listing.picked { border-color: var(--accent); background: #12232e; }
.vr-pick { font: 600 11px/1 ui-monospace, monospace; letter-spacing: 1px; color: var(--muted); }
.vr-listing.picked .vr-pick { color: var(--accent); }

.vr-basket {
  position: sticky; bottom: 14px; margin-top: 16px; z-index: 5;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--accent2); background: var(--bg2);
  box-shadow: 0 10px 30px #00000066;
}
.vr-basket-q { font: 600 17px/1.2 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.vr-basket-right { text-align: right; }
.vr-basket-t { font: 600 17px/1.2 ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--accent); }
.vr-basket-warn { padding: 6px 10px; border-radius: 8px; background: #241d0d; }

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

.vr-spacer-strip {
  display: flex; align-items: center; flex-wrap: wrap; margin-top: 8px;
  padding: 10px 12px; border-radius: 10px; background: var(--bg);
}
.vr-ch { font: 600 18px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; }
.vr-gap {
  width: 16px; height: 26px; padding: 0; margin: 0 1px; cursor: pointer;
  border: 1px dashed var(--line); border-radius: 5px; background: transparent;
  color: var(--accent); font: 16px/1 ui-monospace, monospace;
}
.vr-gap:hover { border-color: var(--accent2); background: #12232e; }
.vr-gap.on { border-style: solid; border-color: var(--accent); background: #12232e; }
.vr-gap:focus-visible { outline: 2px solid var(--accent2); outline-offset: 1px; }

.vr-in.big { font-size: 20px; letter-spacing: 2px; padding: 14px 16px; }
.vr-hint { margin-top: 8px; font-size: 12px; color: var(--muted); }

.vr-count { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--txt); }
.vr-count.full { color: #ffc93c; }
