/* -----------------------------------------------------------------------------
   ALLHOOD — one stylesheet, every page.

   Black ground, pixel display type, hairline rules that divide the page into
   cells rather than stacking it into sections. The one colour is the green on
   live figures and on anything a holder can take; everything else earns its
   place in white, grey, or nothing.
----------------------------------------------------------------------------- */

:root {
  --bg: #060606;
  --panel: #0b0b0b;
  --panel-2: #101010;
  --line: #1b1b1b;
  --line-2: #272727;
  --ink: #f4f4f4;
  --mut: #8d8d8d;
  --dim: #5a5a5a;
  --acc: #19e05a;
  --acc-dim: #0d7a31;
  --warn: #e0a419;

  --display: 'Geist Pixel', 'Geist Mono', ui-monospace, monospace;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;

  --nav-h: 56px;
  --pad: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--ink); color: #000; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
img, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------------------------- type */

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
  text-transform: none;
}
h1.display { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
h2.display { font-size: clamp(1.7rem, 3.4vw, 2.9rem); }
h3.display { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

.eyebrow {
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.lede { color: var(--mut); font-size: 15.5px; max-width: 56ch; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.acc { color: var(--acc); }
.mut { color: var(--mut); }
.dim { color: var(--dim); }

/* -------------------------------------------------------------------- nav */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: stretch;
  background: rgba(6, 6, 6, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 var(--pad) 0 clamp(16px, 3vw, 28px);
  margin-right: auto;
  font-family: var(--display); font-size: 17px; letter-spacing: 0.02em;
}
.nav-brand .mark { width: 20px; height: 20px; flex: none; }
.nav-cell {
  display: flex; align-items: center; padding: 0 clamp(14px, 2.2vw, 26px);
  border-left: 1px solid var(--line);
  font: 400 13.5px/1 var(--sans); color: var(--mut);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-cell:hover { color: var(--ink); background: var(--panel-2); }
.nav-cell.here { color: var(--ink); }
.nav-cell.icon { padding: 0 16px; }
.nav-cell.icon svg { width: 14px; height: 14px; fill: currentColor; }
.nav-cell.cta { background: var(--ink); color: #000; font-weight: 500; }
.nav-cell.cta:hover { background: var(--acc); color: #000; }
@media (max-width: 900px) { .nav-cell.hide-sm { display: none; } }

/* ------------------------------------------------------------------ shell */

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--pad); }
.rule { border-top: 1px solid var(--line); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lede { margin-left: auto; text-align: right; }
@media (max-width: 760px) { .section-head .lede { margin-left: 0; text-align: left; } }

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

.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
#ascii {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-mask {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(94% 62% at 50% 46%, rgba(6,6,6,.88) 0%, rgba(6,6,6,.6) 42%, rgba(6,6,6,.1) 78%, rgba(6,6,6,0) 100%),
    linear-gradient(180deg, rgba(6,6,6,.92), rgba(6,6,6,0) 18%, rgba(6,6,6,0) 74%, rgba(6,6,6,.96));
}
.hero-inner { position: relative; z-index: 2; text-align: center; text-shadow: 0 2px 26px rgba(0,0,0,.75), 0 1px 5px rgba(0,0,0,.6); }
.hero h1 { margin: 0 auto; }
.hero .lede { margin: 22px auto 0; text-align: center; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
@media (max-width: 760px) {
      }

/* ----------------------------------------------------------------- button */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border: 1px solid var(--line-2);
  font: 500 13.5px/1 var(--sans); color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.btn:hover { background: var(--panel-2); border-color: var(--dim); }
.btn.solid { background: var(--ink); color: #000; border-color: var(--ink); }
.btn.solid:hover { background: var(--acc); border-color: var(--acc); color: #000; }
.btn.go { background: var(--acc); color: #000; border-color: var(--acc); }
.btn.go:hover { background: #24f56a; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn.sm { padding: 8px 14px; font-size: 12.5px; }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.step { position: relative; padding: 28px 24px 32px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step .icon { width: 44px; height: 44px; margin-bottom: 22px; }
.step .icon rect { fill: var(--ink); }
.step .n { font: 400 10.5px/1 var(--mono); letter-spacing: .2em; color: var(--dim); }
.step h3 { margin: 10px 0 8px; font-family: var(--display); font-size: 1.05rem; }
.step p { color: var(--mut); font-size: 13.5px; line-height: 1.55; }
.step::after {
  content: ""; position: absolute; top: 50px; right: -1px; width: 1px; height: 0;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:nth-child(3) { border-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } .step { border-left: 0; border-top: 1px solid var(--line); } .step:first-child { border-top: 0; } }

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

.board { border: 1px solid var(--line); }
.board-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.board-bar .spacer { margin-left: auto; }
.tabs { display: flex; }
.tab {
  padding: 7px 14px; font: 400 12.5px/1 var(--mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--dim); border: 1px solid transparent;
}
.tab.on { color: var(--ink); border-color: var(--line-2); background: var(--panel-2); }

.grid-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }
.coin {
  display: flex; gap: 13px; padding: 16px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .18s;
  min-width: 0;
}
.coin:hover { background: var(--panel-2); }
.coin .pic {
  width: 42px; height: 42px; flex: none; background: var(--panel-2);
  border: 1px solid var(--line-2); object-fit: cover; image-rendering: pixelated;
}
.coin .body { min-width: 0; flex: 1; }
.coin .top { display: flex; align-items: baseline; gap: 8px; }
.coin .sym { font-family: var(--display); font-size: 14px; letter-spacing: .01em; }
.coin .nm { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .meta { margin-top: 7px; display: flex; gap: 12px; font: 400 11.5px/1 var(--mono); color: var(--mut); }
.coin .meta b { font-weight: 400; color: var(--ink); }
.coin .bar { margin-top: 9px; height: 2px; background: var(--line-2); }
.coin .bar i { display: block; height: 100%; background: var(--acc); }
.badge {
  font: 400 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 5px; border: 1px solid var(--acc-dim); color: var(--acc);
}
.badge.grey { border-color: var(--line-2); color: var(--dim); }

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

table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th {
  text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line);
  font: 400 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
  background: var(--panel);
}
table.t td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: var(--panel-2); }
table.t td.r, table.t th.r { text-align: right; }
.scroll-x { overflow-x: auto; }

/* ------------------------------------------------------------------ split */

.splitgram { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .splitgram { grid-template-columns: 1fr; } }
.rings { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; margin-inline: auto; }
.rings svg { width: 100%; height: 100%; }
.chip {
  position: absolute; background: var(--ink); color: #000;
  font: 500 12px/1 var(--sans); padding: 8px 12px; white-space: nowrap;
}
.chip .p { font-family: var(--mono); color: #444; margin-left: 8px; }
.ledger-row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .k { font-size: 13.5px; }
.ledger-row .k small { display: block; color: var(--dim); font-size: 12px; margin-top: 3px; max-width: 46ch; }

/* ------------------------------------------------------------------ panel */

.panel { border: 1px solid var(--line); background: var(--panel); }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.panel-body { padding: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font: 400 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.field .hint { margin-top: 7px; font-size: 12px; color: var(--dim); line-height: 1.5; }
.input, textarea.input, select.input {
  width: 100%; padding: 11px 13px; background: #000;
  border: 1px solid var(--line-2); color: var(--ink); font-size: 14px;
  transition: border-color .2s;
}
.input:focus { outline: none; border-color: var(--dim); }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.55; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }
.note { padding: 12px 14px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 12.5px; color: var(--mut); line-height: 1.55; }
.note.bad { border-color: #5a2020; color: #e79a9a; background: #170a0a; }
.note.ok { border-color: var(--acc-dim); color: var(--acc); background: #061509; }
.drop-pic { width: 92px; height: 92px; border: 1px solid var(--line-2); background: #000; object-fit: cover; image-rendering: pixelated; }

/* ------------------------------------------------------------------- misc */

.dotlive { width: 6px; height: 6px; background: var(--acc); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.mono-addr { font-family: var(--mono); font-size: 12px; color: var(--mut); word-break: break-all; }
.skel { background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 400% 100%; animation: sk 1.4s infinite; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

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

.sheet { background: #f3f3f3; color: #0a0a0a; border-top: 1px solid var(--line); }
.sheet .eyebrow { color: #7a7a7a; }
.sheet .lede { color: #4a4a4a; }
.sheet .btn { border-color: #c9c9c9; color: #0a0a0a; }
.sheet .btn:hover { background: #e4e4e4; }
.sheet .btn.solid { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.sheet .btn.solid:hover { background: #262626; }

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

.foot { background: #f3f3f3; color: #0a0a0a; overflow: clip; }
.foot a { color: #0a0a0a; }
.foot-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-block: clamp(40px, 6vw, 72px); }
@media (max-width: 820px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-family: var(--display); font-size: 15px; letter-spacing: .04em; margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 9px; font-size: 13.5px; }
.foot ul a { color: #4a4a4a; }
.foot ul a:hover { color: #0a0a0a; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 26px; font-size: 12px; color: #7a7a7a; }
.foot-word {
  font-family: var(--display); color: #cfcfcf; line-height: .74;
  font-size: clamp(5rem, 20vw, 17rem); letter-spacing: -0.02em;
  margin-bottom: -0.2em; user-select: none; white-space: nowrap;
}

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

.empty {
  grid-column: 1 / -1;
  padding: clamp(40px, 6vw, 76px) var(--pad);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.empty-art {
  width: 100%; max-width: 520px; height: 84px; margin-bottom: 26px;
  background-image:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 21px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0), #000 40%, rgba(0,0,0,.25));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0), #000 40%, rgba(0,0,0,.25));
}
.empty h3 { margin: 12px 0 0; }
.empty .lede { margin: 14px auto 0; text-align: center; max-width: 52ch; font-size: 14.5px; }
.add-coin { display: flex; gap: 8px; margin-top: 26px; width: min(100%, 440px); }
.add-coin .input { font-family: var(--mono); font-size: 12px; padding: 9px 11px; }
.add-coin .btn { white-space: nowrap; }

/* The accent again, on the light sheets. #19e05a on off-white does not carry
   enough contrast to read, so the same role is played by the darker green. */
.sheet .acc, .foot .acc { color: var(--acc-dim); }
