/* silk road · near black, raw source code, one gold thread for what has no coin yet. the spider is the color. */
@font-face {
  font-family: "Inter";
  src: url(/fonts/inter-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url(/fonts/inter-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url(/fonts/inter-latin-600-normal.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url(/fonts/inter-latin-700-normal.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "JB";
  src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JB";
  src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #06101e;
  --bg-1: #0a1628;
  --bg-2: #0e1c32;
  --bg-3: #13243d;
  --bg-4: #1a2d4a;
  --line: #13223a;
  --line-2: #1c2f4c;
  --line-3: #2a4063;
  --fg: #f2f5fa;
  --fg-2: #b3bfd3;
  --fg-3: #7886a0;
  --fg-4: #4d5b76;
  --gold: #e3b660;
  --gold-2: rgba(227, 182, 96, .12);
  --gold-3: rgba(227, 182, 96, .35);
  --good: #6ee7a8;
  --bad: #f06a5a;
  --k: #72809a;
  --str: #e4e9f2;
  --num: #b8c2d6;
  --pun: #3e4c66;
  --s1: #55dcf2;
  --s3: #e45cc0;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JB", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r: 16px;
  --pad: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

* {
  scrollbar-width: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.55 var(--sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.booting {
  overflow: hidden;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

:focus-visible {
  outline: 1.5px solid var(--fg);
  outline-offset: 2px;
  border-radius: 6px;
}

svg {
  display: block;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
}

.dim {
  color: var(--fg-3);
}

kbd {
  font: 500 10.5px/1 var(--mono);
  color: var(--fg-2);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 5px;
  background: var(--bg-2);
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.wrap.narrow {
  max-width: 860px;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  font: 650 clamp(44px, 6.4vw, 84px)/0.98 var(--sans);
  letter-spacing: -0.045em;
}

h1>span:not(.cw-w):not(.cw-chunk) {
  display: block;
  margin-top: 18px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--fg-3);
}

h2 {
  font: 650 clamp(30px, 3.6vw, 48px)/1.04 var(--sans);
  letter-spacing: -0.04em;
}

h2>span:not(.cw-w):not(.cw-chunk) {
  color: var(--fg-4);
}

h3 {
  font: 600 22px/1.2 var(--sans);
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

.bgcode {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}

/* ─── header ─── */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-inline: var(--pad);
  background: rgba(6, 16, 30, .7);
  backdrop-filter: saturate(170%) blur(20px);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}

.top.scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 16, 30, .86);
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(228, 92, 192, 0.35));
  transition: filter .25s var(--ease), transform .25s var(--ease);
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 14px rgba(228, 92, 192, 0.7));
  transform: scale(1.08);
}

.brand-name {
  font: 650 17px/1 var(--sans);
  letter-spacing: -0.035em;
}

.ca-copy {
  font: 600 10.5px/1 var(--mono);
  letter-spacing: -.025em;
  padding: 0;
  transition: background .18s, border-color .18s, color .18s, transform .15s var(--ease);
}

.ca-copy.copied {
  border-color: var(--good);
  color: var(--good);
  background: rgba(110, 231, 168, .14);
}

.social-x {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--fg-2);
  transition: background .18s, border-color .18s, color .18s;
}

.social-x:hover {
  background: var(--bg-2);
  border-color: var(--line-3);
  color: var(--fg);
}

.social-x svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.tabs {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 22, 40, .75);
}

.tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-3);
  transition: color .25s var(--ease);
  white-space: nowrap;
}

.tab:hover {
  color: var(--fg);
}

.tab.on {
  color: #000;
}

.tab-n {
  font: 600 10px/1 var(--mono);
  font-style: normal;
  padding: 3px 5px;
  border-radius: 6px;
  background: var(--gold-2);
  color: var(--gold);
}

.tab-n:empty {
  display: none;
}

.tab.on .tab-n {
  background: rgba(0, 0, 0, .14);
  color: #000;
}

.tab-ink {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--fg);
  transition: transform .45s var(--ease), width .45s var(--ease);
}

.top-r {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 9px 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--fg-3);
  transition: border-color .2s, color .2s, background .2s;
}

.kbtn svg,
.field svg,
.k-in svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.kbtn:hover {
  color: var(--fg);
  border-color: var(--line-3);
  background: var(--bg-2);
}

.wallet {
  position: relative;
}

.wbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--fg);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  transition: transform .15s var(--ease), box-shadow .25s;
}

.wbtn:hover {
  box-shadow: 0 0 0 4px rgba(242, 242, 243, .08);
}

.wbtn:active,
.btn:active,
.ghost:active,
.seg button:active,
.chip:active,
.star:active {
  transform: scale(.96);
}

.wdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .25;
}

.wbtn.in {
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line-2);
}

.wbtn.in .wdot {
  opacity: 1;
  background: linear-gradient(135deg, var(--s1), var(--s3));
}

.chev {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease);
}

.wallet.open .chev {
  transform: rotate(180deg);
}

.wmenu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 284px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(14, 28, 50, .97);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .85);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
  z-index: 60;
}

.wallet.open .wmenu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wmenu button,
.wmenu a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
  font-size: 13.5px;
  transition: background .15s;
}

.wmenu button:hover,
.wmenu a:hover {
  background: var(--bg-4);
}

.wmenu .wm-id {
  padding: 10px 12px 8px;
  display: grid;
  gap: 6px;
}

.wmenu .note {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.45;
}

.wmenu .sep {
  height: 1px;
  background: var(--line-2);
  margin: 4px 6px;
}

/* ─── shared ─── */
main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.view {
  padding-block: 34px 90px;
}

.view.enter {
  animation: view-in .55s var(--ease) both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.lede {
  max-width: 58ch;
  margin-top: 24px;
  color: var(--fg-2);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--fg);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform .15s var(--ease), box-shadow .25s, background .2s;
}

.btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform .25s var(--ease);
}

.btn:hover {
  box-shadow: 0 0 0 5px rgba(242, 242, 243, .08);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
}

.btn.ghost:hover {
  background: var(--bg-2);
  box-shadow: none;
  border-color: var(--line-3);
}

.btn.sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  border: 1px solid var(--line-2);
  transition: transform .15s var(--ease), border-color .2s, background .2s, color .2s;
}

.ghost:hover {
  border-color: var(--line-3);
  background: var(--bg-2);
}

.ghost.sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 8px;
}

.ghost[aria-pressed="true"] {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(10, 22, 40, .88);
  overflow: hidden;
  transition: border-color .3s;
}

.panel:hover {
  border-color: var(--line-2);
}

.ph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
}

.ph-l,
.ph-r {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.ph-r {
  align-items: center;
}

.ph-t {
  font: 600 15px/1 var(--sans);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ph-s {
  font: 12px var(--mono);
  color: var(--fg-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--fg-3);
  transition: color .2s;
}

.ph-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: transform .25s var(--ease);
}

.ph-link:hover {
  color: var(--fg);
}

.ph-link:hover svg {
  transform: translateX(3px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  font: 500 11px var(--mono);
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}

button.tag:hover {
  border-color: var(--fg-3);
  color: var(--fg);
}

.tag.gold {
  color: var(--gold);
  border-color: var(--gold-3);
  background: var(--gold-2);
}

.tag.bad {
  color: var(--bad);
  border-color: rgba(240, 106, 90, .35);
}

.src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px var(--mono);
  color: var(--fg-3);
  white-space: nowrap;
}

.src i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--fg-4);
  display: inline-block;
}

.src.trends i {
  background: #e8e8ec;
}

.src.wiki i {
  background: #a9a9b2;
  border-radius: 50%;
}

.src.hn i {
  background: #d3b07a;
}

.src.rss i {
  background: #8a8a94;
}

.src.chan i {
  background: #93b892;
}

.src.x i {
  background: #f2f2f3;
  border-radius: 50%;
}

.src.pump i {
  background: var(--s1);
}

.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--fg-3);
  font-size: 14px;
}

.empty-s {
  padding: 40px 20px;
  text-align: center;
  color: var(--fg-4);
}

.vh {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.vh-note {
  max-width: 44ch;
  font-size: 13.5px;
  color: var(--fg-3);
}

.seg {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
}

.seg button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  transition: color .25s, transform .15s var(--ease);
  white-space: nowrap;
}

.seg button i {
  font: 500 10.5px var(--mono);
  font-style: normal;
  color: var(--fg-4);
}

.seg button:hover,
.seg button.on {
  color: var(--fg);
}

.seg-ink {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 8px;
  background: var(--bg-4);
  border: 1px solid var(--line-3);
  transition: transform .4s var(--ease), width .4s var(--ease);
}

.seg.mini {
  padding: 2px;
  border-radius: 9px;
}

.seg.mini button {
  padding: 4px 10px;
  font-size: 12px;
}

.seg.mini .seg-ink {
  top: 2px;
  bottom: 2px;
  border-radius: 7px;
}

.star {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--fg-4);
  transition: color .2s, background .2s, transform .15s;
}

.star svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.star:hover {
  color: var(--fg);
  background: var(--bg-3);
}

.star.on {
  color: var(--gold);
}

.star.on svg {
  fill: var(--gold);
}

.copy {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--fg-4);
  transition: color .2s, background .2s;
}

.copy svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.copy:hover {
  color: var(--fg);
  background: var(--bg-3);
}

/* ─── crawl: hero ─── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 34px 46px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--fg-3);
  font: 500 10px/1.2 var(--mono);
  letter-spacing: .11em;
}

.hero-kicker span {
  color: var(--fg-4);
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.term {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #040c18;
  overflow: hidden;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .015) inset;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.term-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-3);
}

.term-bar b {
  margin-left: 8px;
  font-weight: 400;
  color: var(--fg-4);
  font-size: 11.5px;
}

.term-bar em {
  margin-left: auto;
  font-style: normal;
  color: var(--fg-4);
  font-size: 11px;
}

.term-body {
  height: 340px;
  padding: 12px 16px;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.72;
  color: var(--fg-3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.term-body.tall {
  height: 400px;
  font-size: 12.5px;
}

.term-body .ln {
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: ln-in .3s var(--ease) both;
}

.live-term .term-body .ln {
  display: grid;
  align-items: start;
  min-width: 0;
  white-space: normal;
}

.live-term .term-body .ln+.ln {
  border-top: 1px solid rgba(255, 255, 255, .035);
}

.live-term .term-body .ln>.t {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 1px;
  white-space: nowrap;
}

.live-term .term-body .msg {
  display: block;
  grid-column: 2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-term .term-body .feed {
  display: grid;
  white-space: normal;
}

.live-term .term-body .feed-head {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.live-term .term-body .feed-head .m {
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-term .term-body .feed-title {
  display: block;
  overflow: hidden;
  color: var(--fg-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-term .term-body {
  height: 360px;
  padding: 14px 16px;
  line-height: 1.5;
}

.live-term .term-body .ln {
  grid-template-columns: 8ch minmax(0, 1fr);
  gap: 0 12px;
  flex: 0 0 auto;
  padding: 7px 0;
}

.live-term .term-body .ln>.t {
  width: 8ch;
  font-variant-numeric: tabular-nums;
}

.live-term .term-body .msg {
  width: 100%;
  min-width: 0;
}

.live-term .term-body .feed {
  width: 100%;
  min-width: 0;
  gap: 4px;
}

.live-term .term-body .feed-head {
  width: 100%;
  min-width: 0;
  gap: 9px;
}

.live-term .term-body .feed-head .c {
  flex: 0 0 auto;
}

.live-term .term-body .feed-head .m {
  flex: 1 1 auto;
  min-width: 0;
}

.live-term .term-body .feed-title {
  width: 100%;
  line-height: 1.4;
}

.term-body .ln.cmd {
  color: var(--fg);
}

.term-body .ln.cmd::before {
  content: "$ ";
  color: var(--fg-4);
}

.term-body .t {
  color: var(--fg-4);
}

.term-body .m {
  color: var(--fg-2);
}

.term-body .u {
  color: var(--fg);
}

.term-body .ok {
  color: var(--good);
}

.term-body .w {
  color: var(--bad);
}

.term-body .g {
  color: var(--gold);
}

.term-body .c {
  color: var(--s1);
}

.term-body .caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--fg);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes ln-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.term-prog {
  height: 2px;
  background: var(--line);
}

.term-prog i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width .4s var(--ease);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(10, 22, 40, .88);
  overflow: hidden;
  margin-bottom: 16px;
}

.kpi {
  padding: 16px 18px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 2px;
  transition: background .25s;
}

.kpi:first-child {
  border-left: 0;
}

.kpi:hover {
  background: var(--bg-2);
}

.kpi span {
  font-size: 12px;
  color: var(--fg-3);
}

.kpi b {
  font: 650 26px/1.15 var(--sans);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.kpi b.gold {
  color: var(--gold);
}

.kpi em {
  font: 11px var(--mono);
  font-style: normal;
  color: var(--fg-4);
}

/* the silk road canvas */
.road-box {
  position: relative;
  height: 460px;
}

#road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.road-cols {
  position: relative;
  height: 36px;
  padding: 0;
  border-top: 1px solid var(--line);
  color: var(--fg-4);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.road-cols span {
  position: absolute;
  top: 12px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.road-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(14, 28, 50, .96);
  border: 1px solid var(--line-3);
  font-size: 12.5px;
  color: var(--fg-2);
  max-width: 260px;
  opacity: 0;
  transform: translate(14px, -50%);
  transition: opacity .15s;
  display: grid;
  gap: 3px;
}

.road-tip.on {
  opacity: 1;
}

.road-tip b {
  color: var(--fg);
  font-weight: 600;
}

.road-tip .mono {
  color: var(--fg-3);
  font-size: 11px;
}

.road-tip.flip {
  transform: translate(calc(-100% - 14px), -50%);
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.side {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.wire-panel {
  display: flex;
  flex-direction: column;
}

.wire {
  position: relative;
  flex: 1 1 0;
  min-height: 640px;
  overflow: hidden;
}

.wire-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.wire::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(transparent, var(--bg-1));
  pointer-events: none;
}

.wi {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .55s var(--ease);
}

.wi.new {
  grid-template-rows: 0fr;
}

.wi>.wi-in {
  overflow: hidden;
  min-height: 0;
}

/* a wire item, printed like the raw object the crawler holds */
.raw {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .2s;
}

.raw:hover {
  background: rgba(242, 242, 243, .022);
}

.wi.flash .raw::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--fg);
  animation: fade-out 1.4s var(--ease) forwards;
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.rthumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-3) center / cover no-repeat;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font: 600 15px var(--sans);
  color: var(--fg-4);
  filter: grayscale(.7);
  transition: filter .4s;
}

.raw:hover .rthumb {
  filter: none;
}

.rhead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 4px;
}

.rhead .src {
  overflow: hidden;
  text-overflow: ellipsis;
}

.rhead .e {
  font: 11px var(--mono);
  color: var(--fg-4);
  white-space: nowrap;
}

.rhead .t {
  margin-left: auto;
  font: 11px var(--mono);
  color: var(--fg-4);
  white-space: nowrap;
}

.rcode {
  font: 12.5px/1.6 var(--mono);
  color: var(--fg-2);
  overflow-wrap: anywhere;
}

.rcode .p {
  color: var(--pun);
}

.rcode .k {
  color: var(--k);
}

.rcode .s {
  color: var(--str);
}

.rcode .n {
  color: var(--num);
}

.rcode .tm {
  color: var(--fg);
  border-bottom: 1px dotted var(--fg-3);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.rcode .tm:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.rcode .tm.hot {
  color: var(--gold);
  border-color: var(--gold-3);
}

.rcode .tl {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 6px;
}

.rcode .cw-chunk[data-kind="ticker"] {
  color: var(--gold);
}

.legs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  min-height: 42px;
  white-space: nowrap;
  overflow: hidden;
}

.legs #legs {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.leg {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 5px;
  font: 500 11px var(--mono);
  animation: leg-in .5s var(--ease) both;
}

@keyframes leg-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(.9);
  }
}

.side .mini,
#mini-before {
  padding: 6px;
  display: grid;
}

.mb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s;
}

.mb:hover {
  background: var(--bg-3);
}

.mb b {
  font: 600 15px/1.25 var(--sans);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb .k {
  font: 11px var(--mono);
  color: var(--fg-3);
}

.mb .m {
  grid-row: span 2;
  align-self: center;
  font: 650 22px var(--sans);
  letter-spacing: -0.04em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.mb.locked b {
  filter: blur(6px);
  user-select: none;
}

.verdicts {
  padding: 8px 16px 12px;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.vd {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
}

.vd .v {
  font-weight: 500;
}

.vd .v.kept {
  color: var(--good);
}

.vd .v.killed {
  color: var(--bad);
}

.vd .v.waiting {
  color: var(--fg-4);
}

.vd .w {
  color: var(--fg-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vd.killed .w {
  color: var(--fg-4);
  text-decoration: line-through;
}

.vd .h {
  color: var(--fg-4);
  font-size: 11px;
}

.read-panel p {
  padding: 16px 18px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  letter-spacing: -0.012em;
}

.read-panel p.wait {
  color: var(--fg-3);
}

/* story */
.story {
  margin-top: 110px;
  padding-block: 20px 40px;
}

.story-h {
  margin-bottom: 56px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.story-term {
  position: sticky;
  top: 104px;
}

.chapters {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter {
  min-height: 62vh;
  padding-block: 11vh;
  display: grid;
  align-content: center;
  gap: 12px;
  opacity: .2;
  transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.chapter:first-child {
  padding-top: 0;
  min-height: 48vh;
}

.chapter.on {
  opacity: 1;
  transform: none;
}

.chapter>b {
  color: var(--gold);
  font-weight: 500;
}

.chapter h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.chapter p {
  color: var(--fg-2);
  font-size: 16px;
  max-width: 46ch;
}

/* ─── no coin yet ─── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--fg-3);
  transition: all .2s;
}

.chip:hover {
  color: var(--fg);
  border-color: var(--line-3);
}

.chip.on {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.bc {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1) 60%);
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
  cursor: pointer;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
  overflow: hidden;
}

.bc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
  opacity: .7;
}

.bc:hover {
  border-color: var(--gold-3);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px rgba(227, 182, 96, .25);
}

.bc-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.bc h3 {
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.bc .kind {
  font: 500 11px var(--mono);
  color: var(--fg-3);
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.bc-r {
  display: flex;
  align-items: start;
  gap: 4px;
}

.meme {
  position: relative;
  width: 54px;
  height: 54px;
  flex: none;
}

.meme svg {
  width: 54px;
  height: 54px;
  transform: rotate(-90deg);
}

.meme circle {
  fill: none;
  stroke-width: 3;
}

.meme .bg {
  stroke: var(--line-2);
}

.meme .fg {
  stroke: var(--gold);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease);
}

.meme b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 650 17px var(--sans);
  letter-spacing: -0.03em;
}

.bc .why {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.bc .spark {
  height: 40px;
  width: 100%;
}

.bc .spark path.l {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
}

.bc .spark path.a {
  fill: rgba(227, 182, 96, .08);
}

.bc-code {
  font: 11.5px/1.65 var(--mono);
  color: var(--fg-3);
  padding: 10px 12px;
  border-radius: 10px;
  background: #040c18;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.bc-code .k {
  color: var(--k);
}

.bc-code .s {
  color: var(--str);
}

.bc-code .p {
  color: var(--pun);
}

.bc-code .g {
  color: var(--gold);
}

.bc-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bc-foot .t {
  margin-left: auto;
  font: 11px var(--mono);
  color: var(--fg-4);
}

.bc.locked .blur {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}

.lockline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--gold-3);
  color: var(--gold);
  font: 12px var(--mono);
}

.lockline svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  flex: none;
}

/* tables */
.table-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow-x: auto;
  background: rgba(10, 22, 40, .9);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.tbl th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--fg-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl tbody tr {
  cursor: pointer;
  transition: background .18s;
}

.tbl tbody tr:hover {
  background: var(--bg-3);
}

.tbl .r {
  text-align: right;
}

.enter .tbl tbody tr,
.enter .bc,
.enter .rn,
.enter .sc {
  animation: row-in .45s var(--ease) both;
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.go-cell {
  width: 28px;
  padding-left: 0 !important;
}

.go-cell svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--fg-3);
  stroke-width: 1.6;
  opacity: 0;
  transform: translateX(-4px);
  transition: .25s var(--ease);
}

.tbl tbody tr:hover .go-cell svg {
  opacity: 1;
  transform: none;
}

.coin {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.coin-i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-4) center / cover no-repeat;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font: 600 11px var(--mono);
  color: var(--fg-3);
  flex: none;
  overflow: hidden;
}

.coin-t {
  display: grid;
  min-width: 0;
}

.coin-t>b {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.coin-t>span {
  font: 11px var(--mono);
  color: var(--fg-4);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.sname {
  font: 600 15px var(--sans);
  letter-spacing: -0.02em;
}

.hspark {
  width: 90px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
}

.hspark path {
  fill: none;
  stroke: var(--fg-2);
  stroke-width: 1.3;
}

.up {
  color: var(--good);
}

.down {
  color: var(--bad);
}

.bar5 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.bar5 i {
  width: 54px;
  height: 4px;
  border-radius: 3px;
  background: var(--line-2);
  overflow: hidden;
}

.bar5 i::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--fg);
}

.story-l {
  color: var(--gold);
  font-weight: 500;
}

/* runners */
.runners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.rn {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 18px;
  display: grid;
  gap: 14px;
  cursor: pointer;
  transition: border-color .3s, transform .35s var(--ease);
}

.rn:hover {
  border-color: var(--line-3);
  transform: translateY(-3px);
}

.rn .big {
  font: 650 38px/1 var(--sans);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.rn .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.rn .row div {
  display: grid;
  gap: 2px;
}

.rn .row span {
  font-size: 11px;
  color: var(--fg-4);
}

.rn .row b {
  font: 500 13px var(--mono);
}

.rn .spark {
  width: 100%;
  height: 34px;
}

.rn .spark path {
  fill: none;
  stroke: var(--fg-3);
  stroke-width: 1.2;
}

/* sources */
.sources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.sc {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px;
  background: var(--bg-1);
  display: grid;
  gap: 6px;
  transition: border-color .2s;
}

.sc:hover {
  border-color: var(--line-3);
}

.sc .n {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sc .n b {
  font: 600 14.5px var(--sans);
  letter-spacing: -0.02em;
}

.sc .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-4);
}

.sc .dot.ok {
  background: var(--good);
  box-shadow: 0 0 8px rgba(110, 231, 168, .6);
}

.sc .dot.bad {
  background: var(--bad);
}

.sc .m {
  font: 11px var(--mono);
  color: var(--fg-3);
}

.sc .bar {
  height: 3px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}

.sc .bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--fg-2);
}

.sc .e {
  font: 11px var(--mono);
  color: var(--bad);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--bg-1);
  min-width: min(320px, 100%);
  transition: border-color .2s;
  color: var(--fg-3);
}

.field:focus-within {
  border-color: var(--fg-3);
}

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14px;
  color: var(--fg);
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-4);
}

.wire-list {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(10, 22, 40, .9);
  overflow: hidden;
}

.wire-list .raw:last-child {
  border-bottom: 0;
}

/* you */
.card {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-1);
  padding: 22px;
  display: grid;
  gap: 16px;
}

.card+.card {
  margin-top: 14px;
}

.card .sub {
  color: var(--fg-3);
  font-size: 13.5px;
  margin-top: -8px;
}

.fl {
  display: grid;
  gap: 7px;
}

.fl>span {
  font-size: 13px;
  font-weight: 500;
}

.fl>em {
  font-style: normal;
  font-size: 12px;
  color: var(--fg-4);
}

.fl input {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: 0;
  transition: border-color .2s;
  color: var(--fg);
}

.fl input:focus {
  border-color: var(--fg-3);
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  cursor: pointer;
}

.toggle input {
  width: 38px;
  height: 22px;
  appearance: none;
  border-radius: 999px;
  background: var(--line-3);
  position: relative;
  cursor: pointer;
  transition: background .2s;
  flex: none;
}

.toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform .25s var(--ease);
}

.toggle input:checked {
  background: var(--good);
}

.toggle input:checked::after {
  transform: translateX(16px);
  background: #000;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ok-msg {
  font-size: 12.5px;
  color: var(--fg-3);
}

.idrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.idrow b {
  font: 13px var(--mono);
  overflow-wrap: anywhere;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--fg-2);
}

.pill.holder {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 600;
}

.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.perk {
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  display: grid;
  gap: 4px;
}

.perk b {
  font: 600 15px var(--sans);
  letter-spacing: -0.02em;
}

.perk span {
  color: var(--fg-3);
  font-size: 13px;
}

.al {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: padding .25s var(--ease);
}

.al:first-child {
  border-top: 0;
}

.al:hover {
  padding-left: 6px;
}

.al b {
  font: 600 14.5px var(--sans);
}

.al>span {
  font: 11px var(--mono);
  color: var(--fg-4);
}

.al p {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--fg-3);
}

/* drawer */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s;
}

.scrim.on {
  opacity: 1;
}

.drawer {
  position: fixed;
  z-index: 80;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: min(560px, calc(100vw - 16px));
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: rgba(10, 22, 40, .985);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .9);
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + 24px));
  transition: transform .5s var(--ease);
}

.drawer.on {
  transform: none;
}

.dr-head {
  display: flex;
  align-items: start;
  gap: 8px;
  padding: 22px 22px 14px;
}

.dr-title {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.dr-title h3 {
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dr-title .addr {
  font: 11.5px var(--mono);
  color: var(--fg-3);
  overflow-wrap: anywhere;
  cursor: pointer;
  text-align: left;
  transition: color .2s;
}

.dr-title .addr:hover {
  color: var(--fg);
}

.dr-act {
  display: flex;
  gap: 4px;
}

.icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  flex: none;
  transition: background .2s, transform .3s var(--ease);
}

.icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.icon:hover {
  background: var(--bg-3);
}

#dr-close:hover {
  transform: rotate(90deg);
}

.dr-seg {
  margin: 0 22px;
  align-self: flex-start;
}

.dr-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 28px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.dr-body>* {
  animation: row-in .45s var(--ease) both;
}

.kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.kv>div {
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.kv>div:nth-child(3n+1) {
  border-left: 0;
}

.kv>div:nth-child(n+4) {
  border-top: 1px solid var(--line);
}

.kv>div>span {
  font-size: 11.5px;
  color: var(--fg-3);
}

.kv b {
  font: 650 19px/1.15 var(--sans);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.box h4 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-3);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.box .why {
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  letter-spacing: -0.015em;
}

.hist {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 60px;
}

.hist i {
  flex: 1;
  background: var(--line-3);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  height: var(--h);
  transition: background .2s;
}

.hist i:hover {
  background: var(--fg);
}

.hist i.last {
  background: var(--gold);
}

.hist-x {
  display: flex;
  justify-content: space-between;
  font: 10.5px var(--mono);
  color: var(--fg-4);
}

.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.links a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  transition: border-color .2s, background .2s;
}

.links a:hover {
  border-color: var(--line-3);
  background: var(--bg-3);
}

.links a.main {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
  font-weight: 600;
}

.srcs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* palette, toasts, footer */
.kpal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 14vh 16px 16px;
  animation: fade .2s;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.k-box {
  width: min(620px, 100%);
  border: 1px solid var(--line-3);
  border-radius: 16px;
  background: rgba(14, 28, 50, .98);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
  overflow: hidden;
  animation: pop .3s var(--ease);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.98);
  }
}

.k-in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-3);
}

.k-in svg {
  width: 17px;
  height: 17px;
}

.k-in input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-size: 16px;
  color: var(--fg);
}

.k-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
}

.k-it {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  font-size: 14px;
  color: var(--fg-2);
}

.k-it.on {
  background: var(--bg-4);
  color: var(--fg);
}

.k-it .ki {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font: 600 10px var(--mono);
  color: var(--fg-3);
  flex: none;
}

.k-it .kt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.k-it .kh {
  font: 11px var(--mono);
  color: var(--fg-4);
}

.k-sec {
  padding: 10px 12px 4px;
  font: 11px var(--mono);
  color: var(--fg-4);
}

.k-foot {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--fg-4);
  font-size: 11px;
  flex-wrap: wrap;
}

.toasts {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
  width: min(460px, calc(100vw - 32px));
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 13px;
  background: var(--fg);
  color: #000;
  font-size: 13.5px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8);
  animation: toast-in .4s var(--ease) both;
  cursor: pointer;
  max-width: 100%;
}

.toast.gold {
  background: var(--gold);
}

.toast.out {
  animation: toast-out .3s var(--ease) both;
}

.toast span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.96);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(.97);
  }
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
}

.foot-l,
.foot-r {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.foot-logo {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.foot-name {
  font: 650 15px var(--sans);
  letter-spacing: -0.03em;
  color: var(--fg);
}

.foot a:hover {
  color: var(--fg);
}

#foot-ca {
  cursor: pointer;
}

.docket {
  margin-top: 28px;
}

.docket-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.docket-status {
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  color: var(--fg-3);
}

.docket-status.kept {
  color: var(--s1);
}

.docket-status.killed {
  color: var(--fg-4);
}

.docket-term {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.docket-meta {
  font: 11px/1.5 var(--mono);
  color: var(--fg-3);
}

/* intro */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #040b17;
  display: grid;
  place-items: center;
  transition: clip-path 1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}

.intro.out {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.intro.gone {
  display: none;
}

#intro-c {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-ui {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 260px;
  width: min(380px, calc(100vw - 48px));
}

.intro-word {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 650 40px/1 var(--sans);
  letter-spacing: -0.05em;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(10px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}

.intro-word svg {
  width: 40px;
  height: 40px;
}

.intro-word.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.intro-log {
  width: 100%;
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 2px;
  font-size: 11px;
  color: var(--fg-4);
}

.intro-log div {
  display: flex;
  justify-content: space-between;
  animation: ln-in .25s var(--ease) both;
}

.intro-log b {
  font-weight: 500;
  color: var(--fg-2);
}

.intro-log b.ok {
  color: var(--good);
}

.intro-bar {
  width: 100%;
  height: 1px;
  background: var(--line-2);
  overflow: hidden;
}

.intro-bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--fg);
  transition: transform .35s var(--ease);
}

.intro-skip {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: var(--fg-4);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 7px;
}

.intro-skip:hover {
  color: var(--fg);
  background: var(--bg-3);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* responsive */
@media (max-width: 1200px) {
  .top {
    grid-template-columns: auto 1fr auto;
  }

  .tabs {
    justify-self: center;
  }

  .tab {
    padding: 6px 10px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .kpis {
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi:nth-child(4) {
    border-left: 0;
  }

  .kpi:nth-child(n+4) {
    border-top: 1px solid var(--line);
  }

  .duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .read-panel {
    grid-column: 1 / -1;
  }

  .wire {
    min-height: 560px;
  }
}

@media (max-width: 860px) {
  .top {
    grid-template-columns: auto 1fr;
    height: auto;
    padding-block: 10px;
    row-gap: 10px;
  }

  .tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    overflow-x: auto;
  }

  .story-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .story-term {
    top: 120px;
    z-index: 2;
  }

  .term-body.tall {
    height: 170px;
  }

  .chapter {
    min-height: 56vh;
    padding-block: 8vh;
  }

  .chapter:first-child {
    min-height: 34vh;
  }

  .side {
    grid-template-columns: minmax(0, 1fr);
  }

  .row2,
  .perks {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .road-box {
    height: 380px;
  }

  .road-cols {
    font-size: 9px;
    letter-spacing: .02em;
  }

  .term-body {
    height: 240px;
  }

  .live-term .term-body {
    height: 300px;
    padding: 12px 14px;
  }

  .live-term .term-body .ln {
    gap: 0 10px;
    padding: 6px 0;
  }
}

@media (max-width: 560px) {
  .brand-cluster {
    gap: 5px;
  }

  .brand {
    gap: 7px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 15px;
  }

  .social-x {
    width: 30px;
    height: 30px;
  }

  .wbtn {
    gap: 4px;
    padding-inline: 8px;
  }

  .wbtn .wdot,
  .wbtn .chev {
    display: none;
  }

  .top-r {
    gap: 6px;
  }

  .top-r .kbtn kbd {
    display: none;
  }

  .top {
    column-gap: 8px;
  }

  .top-r .kbtn {
    padding-inline: 9px;
  }

  .docket-row {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 12px 14px;
  }

  .docket-meta {
    grid-column: 2;
    font-size: 10px;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi {
    border-left: 1px solid var(--line) !important;
    border-top: 1px solid var(--line);
  }

  .kpi:nth-child(odd) {
    border-left: 0 !important;
  }

  .kpi:nth-child(-n+2) {
    border-top: 0;
  }

  .kv {
    grid-template-columns: repeat(2, 1fr);
  }

  .kv>div {
    border-left: 1px solid var(--line) !important;
    border-top: 1px solid var(--line) !important;
  }

  .kv>div:nth-child(odd) {
    border-left: 0 !important;
  }

  .kv>div:nth-child(-n+2) {
    border-top: 0 !important;
  }

  .raw {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .rthumb {
    width: 36px;
    height: 36px;
  }

  .tbl .hide-s {
    display: none;
  }

  .ph-s {
    display: none;
  }

  #wallet-label {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-term .term-body {
    height: 300px;
    padding: 11px 11px;
    font-size: 10.5px;
  }

  .live-term .term-body .ln {
    gap: 0 8px;
  }
}

@media (max-width: 380px) {
  .brand-cluster {
    gap: 4px;
  }

  .brand {
    gap: 5px;
  }

  .brand-name {
    font-size: 14px;
  }

  .social-x {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.rcode button.tb {
  background: none;
  border: 0;
  border-bottom: 1px dotted var(--fg-3);
  padding: 0;
  font: inherit;
  color: var(--str);
  cursor: pointer;
}

.rcode button.tb.hot {
  color: var(--gold);
  border-color: var(--gold-3);
}

.rcode button.tb:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.bc {
  display: flex;
  flex-direction: column;
}

.bc-foot {
  margin-top: auto;
}

.term-body.tall {
  justify-content: flex-start;
}

/* Homepage request console — deliberately separate from the story terminal. */
.live-term {
  border-color: #233859;
  border-radius: 12px;
  background: linear-gradient(180deg, #0a1628, #08121f 34%);
  box-shadow: 0 28px 72px -46px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .018) inset;
}

.live-term .term-bar {
  min-height: 36px;
  padding: 8px 12px;
  background: #0b182c;
  border-bottom-color: #1a2b46;
}

.live-term .term-bar span {
  width: 7px;
  height: 7px;
}

.live-term .term-bar b {
  margin-left: 5px;
  color: #a0acc2;
  font: 11px/1 var(--mono);
}

.live-term .term-bar em {
  color: #73819b;
  font: 10px/1 var(--mono);
}

.scan-sources {
  display: flex;
  align-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 5px;
  min-height: 34px;
  max-height: 53px;
  padding: 6px 11px;
  overflow: hidden;
  border-bottom: 1px solid #182840;
  background: linear-gradient(90deg, rgba(255, 255, 255, .018), transparent 72%), #08121f;
}

.scan-source {
  --source-ink: #a4a4ad;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  height: 17px;
  padding: 0 6px 0 5px;
  overflow: hidden;
  border: 1px solid #242429;
  border-radius: 4px;
  color: #9999a1;
  font: 9px/1 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.scan-source[data-source="trends"] {
  --source-ink: #d3b278;
}

.scan-source[data-source="wiki"] {
  --source-ink: #a4b0bd;
}

.scan-source[data-source="hn"] {
  --source-ink: #d58d61;
}

.scan-source[data-source="rss"] {
  --source-ink: #c1a178;
}

.scan-source[data-source="chan"] {
  --source-ink: #92b5a0;
}

.scan-source[data-source="pump"] {
  --source-ink: #78c8c5;
}

.scan-source[data-source="dex"] {
  --source-ink: #9ab58f;
}

.scan-source[data-source="gecko"] {
  --source-ink: #8bad9d;
}

.scan-source[data-source="x"] {
  --source-ink: #c2c2c8;
}

.scan-source::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--source-ink);
  opacity: .74;
}

.scan-source.ok {
  color: var(--source-ink);
  border-color: color-mix(in srgb, var(--source-ink) 30%, #242429);
  background: color-mix(in srgb, var(--source-ink) 5%, transparent);
}

.scan-source.ok::before {
  opacity: 1;
}

.scan-source.bad {
  --source-ink: #d07970;
  color: #d58a81;
  border-color: rgba(208, 121, 112, .36);
  background: rgba(208, 121, 112, .055);
}

.scan-source.bad::before {
  background: #c7776e;
  opacity: 1;
}

.scan-source.pending {
  color: #777780;
  border-color: #242429;
}

.scan-source.pending::before {
  background: var(--source-ink);
  opacity: .48;
}

.live-term #crawl-log {
  display: block;
  height: 258px;
  min-height: 258px;
  padding: 5px 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #a7a7ae;
  font: 10px/18px var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: left;
  scroll-behavior: auto;
}

.live-term #crawl-log .scan-row {
  --source-ink: #9797a0;
  position: relative;
  display: grid;
  grid-template-columns: 8ch 3ch minmax(0, 1fr) 12ch;
  align-items: center;
  gap: 0 9px;
  min-width: 0;
  height: 18px;
  padding: 0 11px;
  border-top: 1px solid rgba(255, 255, 255, .035);
  overflow: hidden;
  white-space: nowrap;
  transition: background-color .18s ease;
}

.live-term #crawl-log .scan-row:first-child {
  border-top: 0;
}

.live-term #crawl-log .scan-row:hover {
  background: rgba(255, 255, 255, .025);
}

.live-term #crawl-log .scan-row[data-source="trends"] {
  --source-ink: #d3b278;
}

.live-term #crawl-log .scan-row[data-source="wiki"] {
  --source-ink: #a4b0bd;
}

.live-term #crawl-log .scan-row[data-source="hn"] {
  --source-ink: #d58d61;
}

.live-term #crawl-log .scan-row[data-source="rss"] {
  --source-ink: #c1a178;
}

.live-term #crawl-log .scan-row[data-source="chan"] {
  --source-ink: #92b5a0;
}

.live-term #crawl-log .scan-row[data-source="pump"] {
  --source-ink: #78c8c5;
}

.live-term #crawl-log .scan-row[data-source="dex"] {
  --source-ink: #9ab58f;
}

.live-term #crawl-log .scan-row[data-source="gecko"] {
  --source-ink: #8bad9d;
}

.live-term #crawl-log .scan-row[data-source="x"] {
  --source-ink: #c2c2c8;
}

.scan-time,
.scan-op,
.scan-target,
.scan-result {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-time {
  color: #66666f;
}

.scan-op {
  color: #92929a;
}

.scan-op.w,
.scan-result.w {
  color: #d17e74;
}

.scan-target {
  color: #d1d1d5;
}

.scan-result {
  color: #85858e;
  text-align: right;
}

.scan-result.ok {
  color: #9daa9e;
}

.scan-result.pending {
  color: #c3a46f;
}

.scan-row[data-phase="pending"] .scan-time {
  color: #8e7958;
}

.scan-row[data-phase="pending"] .scan-target {
  color: #ded2bc;
}

.scan-row[data-phase="pending"] .scan-result {
  color: #c3a46f;
}

.scan-row[data-phase="error"] .scan-target {
  color: #c9b4b2;
}

.scan-row[data-phase="error"] .scan-result {
  color: #d17e74;
}

.scan-row.is-new {
  animation: scan-arrive .6s cubic-bezier(.2, .75, .2, 1) both;
}

@keyframes scan-arrive {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-term #crawl-log:empty::before {
  content: "waiting for request telemetry";
  display: block;
  padding: 5px 11px;
  color: #55555d;
  line-height: 18px;
}

.scan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding: 0 11px;
  border-top: 1px solid #1a2b46;
  background: #08121f;
  color: #73819b;
  font: 9px/1 var(--mono);
  text-transform: lowercase;
}

#scan-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#scan-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #777780;
}

#scan-status[data-state="live"]::before {
  background: #8fae9a;
}

#scan-status[data-state="error"]::before {
  background: #c7776e;
}

#scan-total {
  flex: 0 0 auto;
  color: #9a9aa1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .live-term .term-bar {
    min-height: 34px;
    padding-inline: 10px;
  }

  .scan-sources {
    gap: 3px 4px;
    min-height: 31px;
    max-height: 47px;
    padding: 5px 8px;
  }

  .scan-source {
    height: 16px;
    padding-inline: 4px;
    font-size: 8px;
  }

  .live-term #crawl-log {
    height: 234px;
    min-height: 234px;
    font-size: 10px;
    line-height: 18px;
  }

  .live-term #crawl-log .scan-row {
    grid-template-columns: 8ch 3ch minmax(0, 1fr) 12ch;
    gap: 0 5px;
    height: 18px;
    padding-inline: 8px;
  }

  .scan-footer {
    min-height: 27px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-row.is-new {
    animation: none;
  }

  .scan-source,
  .scan-row {
    transition: none;
  }
}

.scan-source,
.scan-row {
  transition: none;
}
}