/* BENCHD: blueprint denim #6B7DB6 on a light page. One accent, tinted neutrals, three faces, one radius and shadow
   set, chrome art. Tokens from the branding skill: palette.mjs scale "#6B7DB6" (brand/tokens.css). */
:root {
  --accent: #6b7db6;
  --accent-50: #f4f7fd;
  --accent-100: #e8edf9;
  --accent-200: #d0d9f2;
  --accent-300: #b0bee7;
  --accent-400: #90a1d5;
  --accent-600: #5c6da5;
  --accent-700: #475688;
  --accent-800: #35416a;
  --accent-900: #242d4d;
  --accent-950: #131a32;
  --accent2: var(--accent-700);
  --ink: #121522;
  --body: #4a4d55;
  --mut: #6f727b;
  --mist: #7e8087;
  --line: #e1e3e8;
  --line2: #d3d7e0;
  --bg: #eef0f4;
  --floor: #e7e9f0;
  --well: #f4f6f9;
  --card: #ffffff;
  --panel: #141a2c;
  --panel2: #1b2238;
  --soft: var(--accent-100);
  --up: #53c48e;
  --up-soft: #d9f7e5;
  --up-ink: #0b764d;
  --down: #e87876;
  --down-soft: #ffe8e7;
  --down-ink: #a03f40;
  --warn: #6b5a00;
  --warnbg: #f5efc9;
  --bad: var(--down-ink);
  --badbg: var(--down-soft);
  --ok: var(--up-ink);
  --okbg: var(--up-soft);
  --r: 18px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --lift: 0 1px 0 var(--line), 0 14px 34px -22px color-mix(in oklab, var(--accent-800) 45%, transparent);
  --float: 0 30px 60px -28px color-mix(in oklab, var(--accent-600) 55%, transparent), 0 2px 6px -2px rgb(18 21 34 / 0.08);
  --candy: inset 0 2px 0 rgb(255 255 255 / 0.22), inset 0 -3px 0 rgb(0 0 0 / 0.2), 0 8px 18px -10px color-mix(in oklab, var(--accent-600) 85%, transparent);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --display: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --c: var(--accent-600);
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--accent-200);
}
.mono {
  font-family: var(--mono);
}
.lab {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}
.small {
  font-size: 12px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 860px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--accent-600);
}

/* ---------- header: floating pill nav + drawer tabs */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 12px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 10px 0 12px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--lift);
  width: calc(100% - 48px);
  max-width: 1152px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.bmark {
  display: block;
  border-radius: 10px;
  transition: transform 0.45s var(--spring);
}
.brand:hover .bmark {
  transform: rotate(-12deg) scale(1.06);
}
.wordmark {
  font: 800 23px/1 var(--display);
  letter-spacing: -0.05em;
  color: var(--ink);
}
.brand.sm .wordmark {
  font-size: 18px;
}
.searchbox {
  flex: 1;
  max-width: 440px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  background: var(--well);
  border-radius: 999px;
  color: var(--mist);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.searchbox:focus-within {
  background: var(--card);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.searchbox input,
.searchbox input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
}
.searchbox input::-webkit-search-cancel-button {
  display: none;
}
kbd {
  font: 500 11px var(--mono);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--mist);
  background: var(--card);
}
.tabs {
  padding: 8px 0 10px;
}
.tabscroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabscroll::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  white-space: nowrap;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid var(--line);
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s,
    transform 0.2s var(--spring);
}
.tab i {
  font: 500 11px var(--mono);
  font-style: normal;
  color: var(--mist);
}
.tab:hover {
  color: var(--ink);
  border-color: var(--accent-300);
  transform: translateY(-1px);
}
.tab.on {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.tab.on i {
  color: var(--accent-300);
}
.tab.ext {
  margin-left: auto;
  background: transparent;
  border-style: dashed;
}
.tab.ext.on {
  background: var(--ink);
  border-style: solid;
}

/* coin: a pill in the nav (desktop) and a strip under the header (phones) */
.coinpill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.coinpill.nav {
  padding: 5px 6px 5px 5px;
  background: var(--well);
  border-radius: 999px;
}
.coinpill.strip {
  display: none;
}
.cointag {
  font: 600 12px/1 var(--mono);
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-600);
  color: #fff;
  box-shadow: var(--candy);
}
.coinca {
  font: 500 12.5px/1.3 var(--mono);
  color: var(--ink);
  overflow-wrap: anywhere;
  min-width: 0;
}
.coinpill a.mini {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ---------- buttons */
.btn {
  appearance: none;
  border: 0;
  background: var(--accent-600);
  color: #fff;
  padding: 0 22px;
  height: 46px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--candy);
  transition:
    background 0.15s,
    transform 0.18s var(--spring),
    box-shadow 0.2s;
}
.btn:hover {
  background: var(--accent-700);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
  transition-duration: 0.06s;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn.ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1.5px var(--line2),
    0 1px 0 rgb(18 21 34 / 0.04);
}
.btn.ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent-700);
  background: var(--card);
}
.btn.light {
  background: #fff;
  color: var(--ink);
  box-shadow:
    inset 0 -3px 0 rgb(19 26 50 / 0.12),
    0 10px 22px -12px rgb(19 26 50 / 0.6);
}
.btn.light:hover {
  background: var(--accent-50);
}
.btn.outline {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.6);
}
.btn.outline:hover {
  background: rgb(255 255 255 / 0.1);
}
.filebtn {
  cursor: pointer;
}
.mini {
  border: 1px solid var(--line2);
  background: var(--card);
  border-radius: 999px;
  padding: 4px 11px;
  font: 500 12px var(--sans);
  cursor: pointer;
  color: var(--body);
  flex: none;
  transition:
    transform 0.18s var(--spring),
    border-color 0.15s,
    color 0.15s;
}
.mini:hover {
  border-color: var(--accent);
  color: var(--accent-700);
}
.mini:active {
  transform: scale(0.94);
}
.mini.ok,
.mini:disabled {
  background: var(--soft);
  border-color: transparent;
  color: var(--accent-700);
}
.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-700);
  font: 600 14px var(--sans);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--spring);
}
.linkbtn:hover {
  transform: translate(3px);
}
.linkbtn:after {
  content: " →";
}
.recentcard .linkbtn:after {
  content: "";
}

/* ---------- hero */
.hero {
  position: relative;
}
.herogrid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: stretch;
  padding-top: 34px;
}
.herotext {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0 0 18px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.hero .eyebrow {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--lift);
}
.pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 25%, transparent);
}
.hero h1 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.sub {
  margin: 20px 0 24px;
  max-width: 33em;
  color: var(--body);
  font-size: 18px;
  line-height: 1.5;
}

/* paste box */
.drop {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--lift);
  border: 1.5px solid transparent;
  transition:
    border-color 0.15s,
    box-shadow 0.25s,
    transform 0.3s var(--spring);
}
.drop:focus-within {
  border-color: var(--accent-300);
  box-shadow:
    var(--lift),
    0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
}
.drop.over {
  border-color: var(--accent);
  border-style: dashed;
  background: var(--accent-50);
  transform: scale(1.01);
}
.droptop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.droptile {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-600);
  color: #fff;
  box-shadow: var(--candy);
}
.droptext {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.droptext .lab {
  color: var(--ink);
}
.droptext .hint {
  font-size: 13.5px;
}
.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.kind {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--well);
  color: var(--mist);
  transition:
    transform 0.3s var(--spring),
    background 0.2s,
    color 0.2s;
}
.kind.on {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.drop textarea {
  width: 100%;
  resize: vertical;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--well);
  padding: 13px 15px;
  font: 400 14px/1.45 var(--mono);
  outline: 0;
}
.drop textarea:focus {
  background: var(--card);
  border-color: var(--accent);
  box-shadow: none;
}
.dropact {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.dropsay,
.dropmsg {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--accent-700);
  animation: pop 0.4s var(--spring);
}
.dropmsg {
  color: var(--body);
}

/* stage: the checked nut with live cards */
.stage {
  position: relative;
  min-height: 540px;
  border-radius: 32px;
  background: radial-gradient(120% 90% at 50% 30%, #8193cb 0%, #6b7db6 45%, #4e5e96 100%);
  overflow: hidden;
  box-shadow: var(--float);
  isolation: isolate;
}
.stagegrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.09) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 70% at 50% 45%, #000 30%, transparent 85%);
  z-index: -1;
}
.stageart {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62%, 400px);
  height: auto;
  transform: translate(-50%, -50%);
  animation: hover 7s ease-in-out infinite;
}
@keyframes hover {
  0%,
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -53%) rotate(-3deg);
  }
}
.fcard {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 168px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--float);
  animation: bob 6s ease-in-out infinite;
}
.fcard b {
  font: 600 26px/1 var(--mono);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.fcard b small {
  font-size: 14px;
  color: var(--mist);
  font-weight: 500;
}
.fcard .small {
  color: var(--mist);
}
/* the nut sits in the middle; the four cards hold the corners and the right edge around it */
.f1 {
  left: 22px;
  top: 24px;
}
.f2 {
  right: 22px;
  bottom: 26px;
  min-width: 200px;
  animation-delay: -1.5s;
}
.f3 {
  left: 26px;
  bottom: 26px;
  animation-delay: -3s;
}
.f4 {
  right: 22px;
  top: 24px;
  animation-delay: -4.5s;
}
@keyframes bob {
  0%,
  to {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}
.tick {
  align-self: flex-start;
  font: 600 11.5px/1 var(--mono);
  padding: 5px 8px;
  border-radius: 999px;
}
.tick.up {
  background: var(--up-soft);
  color: var(--up-ink);
}
.tick.down {
  background: var(--down-soft);
  color: var(--down-ink);
}
.bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: var(--accent-100);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-400), var(--accent-600));
  transition: width 0.8s var(--ease);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 56px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.stats div {
  display: flex;
  flex-direction: column;
  animation: rise 0.5s backwards;
}
.stats div:nth-child(2) {
  animation-delay: 0.06s;
}
.stats div:nth-child(3) {
  animation-delay: 0.12s;
}
.stats div:nth-child(4) {
  animation-delay: 0.18s;
}
.stats b {
  font: 600 34px/1 var(--mono);
  letter-spacing: -0.04em;
}
.stats span {
  font-size: 13px;
  color: var(--mist);
  margin-top: 8px;
}

/* ticker: a dark strip of tools */
.ticker {
  margin-bottom: 8px;
}
.tickband {
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tickrow {
  display: flex;
  width: max-content;
  animation: slide 90s linear infinite;
}
.tickband:hover .tickrow {
  animation-play-state: paused;
}
.tickset {
  display: flex;
}
.tickset a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  color: #e8edf9;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  border-right: 1px solid rgb(255 255 255 / 0.07);
}
.tickset a span {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-300);
}
.tickset a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.05);
}
@keyframes slide {
  to {
    transform: translate(-50%);
  }
}

/* ---------- section heads */
.sechead {
  margin-bottom: 22px;
}
.sechead .eyebrow {
  margin-bottom: 12px;
}
.sechead h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
}
.hint {
  font-size: 14px;
  color: var(--mut);
  line-height: 1.5;
}
.hint.tight {
  margin: 10px 0 0;
}
.empty {
  color: var(--mut);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- start here (dark board) + recent */
.startgrid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  margin-top: 64px;
  align-items: start;
}
.board {
  background: var(--panel);
  color: #e8edf9;
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--float);
}
.board h2 {
  color: #fff;
}
.board h2 em {
  color: var(--accent-300);
}
.board .eyebrow {
  color: var(--accent-300);
}
.board .hint {
  color: #9aa3bd;
}
.recents,
.most,
.ext {
  list-style: none;
  margin: 0;
  padding: 0;
}
.most {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
}
.most li a {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: baseline;
  gap: 2px 10px;
  padding: 12px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.22s var(--spring);
}
.most li a:hover {
  background: rgb(255 255 255 / 0.06);
  transform: translate(3px);
}
.most .n {
  font-size: 11px;
  color: var(--accent-300);
}
.most .nm {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
}
.most .lab {
  grid-column: 2;
  color: #8b93ad;
  font-size: 10px;
}
.block {
  margin-top: 0;
}
.blockhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.blockhead h2 {
  font-size: 26px;
}
.recentcard {
  position: sticky;
  top: 132px;
  background: var(--card);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--lift);
}
.recentcard .eyebrow {
  margin-bottom: 10px;
}
.recentcard .blockhead h2 {
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.04em;
}
.recents li a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.22s var(--spring),
    color 0.15s;
}
.recents li a:hover {
  color: var(--accent-700);
  transform: translate(3px);
}
.rin {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--mist);
}

/* ---------- three steps */
.steps {
  margin-top: 96px;
}
.steplist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steplist li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 26px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--lift);
}
.stepart {
  display: grid;
  place-items: center;
  height: 210px;
  margin-bottom: 10px;
  border-radius: 20px;
  background: radial-gradient(90% 90% at 50% 35%, var(--accent-100), var(--accent-200));
}
.stepart img {
  width: 168px;
  height: 168px;
  transition: transform 0.5s var(--spring);
}
.steplist li:hover .stepart img {
  transform: translateY(-6px) rotate(-4deg);
}
.steplist .lab,
.steplist b,
.steplist li > span:last-child {
  padding: 0 12px;
}
.steplist .lab {
  color: var(--accent-600);
}
.steplist b {
  font: 750 24px/1.1 var(--display);
  letter-spacing: -0.035em;
}
.steplist li > span:last-child {
  color: var(--body);
  font-size: 15px;
}

/* ---------- drawers (categories) */
.drawershead {
  margin-top: 104px;
}
.catblock {
  margin-top: 52px;
}
.cathead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.catblock .blockhead h2 {
  margin-top: 10px;
  font-size: 28px;
}
.chip {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-100);
  color: var(--accent-700);
  flex: none;
  transition:
    transform 0.35s var(--spring),
    background 0.2s;
}
.chip.big {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 22px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 20px;
  text-decoration: none;
  min-height: 140px;
  box-shadow: var(--lift);
  transition:
    border-color 0.18s,
    transform 0.28s var(--spring),
    box-shadow 0.25s;
}
.card:hover {
  border-color: var(--accent-300);
  transform: translateY(-3px);
  box-shadow: var(--float);
}
.card:hover .chip {
  transform: rotate(-9deg) scale(1.1);
  background: var(--accent-600);
  color: #fff;
}
.card:active {
  transform: translateY(-1px) scale(0.985);
  transition-duration: 0.08s;
}
.cardtop {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cardtop .dot {
  margin-left: auto;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.net {
  background: var(--accent-600);
}
.dot.loc {
  border: 1.5px solid var(--accent-600);
}
.cardname {
  font: 700 18px/1.2 var(--display);
  letter-spacing: -0.025em;
  margin-top: 6px;
}
.carddesc {
  font-size: 14px;
  color: var(--mut);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grid .card {
  animation: rise 0.45s backwards;
}
.grid .card:nth-child(2) {
  animation-delay: 0.04s;
}
.grid .card:nth-child(3) {
  animation-delay: 0.08s;
}
.grid .card:nth-child(4) {
  animation-delay: 0.12s;
}
.grid .card:nth-child(5) {
  animation-delay: 0.16s;
}
.grid .card:nth-child(6) {
  animation-delay: 0.2s;
}
.card:focus-visible,
.tab:focus-visible,
.btn:focus-visible,
.most li a:focus-visible,
.tickset a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- your keys (dark band) */
.principles {
  margin: 104px 0 0;
  padding: 44px;
  border-radius: 32px;
  background: var(--panel);
  color: #c4cbe0;
  box-shadow: var(--float);
}
.principles h2 {
  color: #fff;
}
.principles h2 em {
  color: var(--accent-300);
}
.principles .eyebrow {
  color: var(--accent-300);
}
.principles ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.principles li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--panel2);
  border: 1px solid rgb(255 255 255 / 0.06);
  font-size: 15px;
}
.principles li .lab {
  color: var(--accent-300);
}
.principles li b {
  font: 700 21px/1.15 var(--display);
  letter-spacing: -0.03em;
  color: #fff;
}

/* ---------- closing band */
.closing {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 72px 56px 64px;
  border-radius: 32px;
  background: radial-gradient(120% 120% at 20% 10%, #8193cb 0%, #6b7db6 40%, #4b5b92 100%);
  color: #fff;
  box-shadow: var(--float);
}
.closing h2 {
  position: relative;
  color: #fff;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.closing p {
  position: relative;
  margin: 18px 0 28px;
  font-size: 18px;
  color: rgb(255 255 255 / 0.85);
}
.closeact {
  position: relative;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.closingmark {
  position: absolute;
  right: -24px;
  bottom: -56px;
  font: 800 230px/1 var(--display);
  letter-spacing: -0.06em;
  color: rgb(255 255 255 / 0.08);
  pointer-events: none;
  user-select: none;
}

/* ---------- footer: one line */
.foot {
  margin-top: 56px;
  padding: 24px 0 40px;
}
.footgrid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line2);
}
.footgrid .brand .lab {
  margin-left: 6px;
}
.footgrid > a.lab {
  text-decoration: none;
  color: var(--accent-700);
}
.footgrid > a.lab:hover {
  color: var(--ink);
}
.footcoin {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footcoin code {
  font: 500 12.5px var(--mono);
  color: var(--ink);
}

/* ---------- category, elsewhere and tool pages */
.pagehead {
  padding: 36px 0 26px;
}
.pagehead h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 12px 0 12px;
}
.pagehead .cathead .lab {
  color: var(--accent-700);
}
.lede {
  color: var(--body);
  font-size: 17.5px;
  margin: 8px 0 0;
  max-width: 46em;
  line-height: 1.55;
}
.lede a {
  color: var(--accent-700);
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 6px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--lift);
  color: var(--body);
  text-decoration: none;
  font: 500 11.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.crumb .chip {
  width: 24px;
  height: 24px;
  border-radius: 999px;
}
.crumb:hover {
  color: var(--accent-700);
}
.tool {
  padding-bottom: 16px;
}
.toolhead {
  margin-top: 14px;
}
.toolhead h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.045em;
}
.toolhead p {
  color: var(--body);
}
.badges {
  margin: 16px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font: 500 12px var(--mono);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  color: var(--body);
  background: var(--card);
}
.badge.net {
  border-color: var(--accent-300);
  color: var(--accent-700);
}
.badge.local {
  background: var(--accent-100);
  border-color: transparent;
  color: var(--accent-700);
}
.badge.warn {
  background: var(--warnbg);
  border-color: transparent;
  color: var(--warn);
}
.form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.field.check .flabel {
  order: 2;
}
.flabel {
  font-size: 13.5px;
  color: var(--body);
  font-weight: 600;
}
input[type="text"],
input[type="search"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: var(--well);
  padding: 12px 14px;
  font-size: 15px;
  outline: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mist) 50%),
    linear-gradient(135deg, var(--mist) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
input[type="text"]:focus,
select:focus,
textarea:focus {
  background-color: var(--card);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
textarea {
  resize: vertical;
  line-height: 1.45;
}
input.mono,
textarea.mono {
  font: 400 13.5px/1.45 var(--mono);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-600);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.prog {
  font: 500 13px var(--mono);
  color: var(--mist);
}
.results {
  position: relative;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.results > * {
  animation: rise 0.4s backwards;
}
.results > *:nth-child(2) {
  animation-delay: 0.05s;
}
.results > *:nth-child(3) {
  animation-delay: 0.1s;
}
.results > *:nth-child(n + 4) {
  animation-delay: 0.14s;
}
.res {
  position: relative;
}
.res h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.kv {
  margin: 0;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--lift);
  overflow: hidden;
}
.kvr {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.kvr:last-child {
  border: 0;
}
.kvr dt {
  flex: none;
  width: 210px;
  color: var(--mut);
  font-size: 14px;
}
.kvr dd {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.kvr dd.mono {
  font-size: 13px;
}
.kvr a,
td a {
  color: var(--accent-700);
}
.textbox {
  position: relative;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--lift);
}
.textbox pre {
  margin: 0;
  padding: 16px 18px;
  max-height: 420px;
  overflow: auto;
  font: 400 13px/1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.textbox pre.plain {
  font: 400 15px/1.6 var(--sans);
}
.textact {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
  justify-content: flex-end;
}
.tablewrap {
  overflow: auto;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--lift);
  max-height: 560px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
}
th {
  position: sticky;
  top: 0;
  background: var(--well);
  text-align: left;
  font: 500 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  max-width: 420px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border: 0;
}
tbody tr:hover td {
  background: var(--accent-50);
}
td.mono {
  font: 400 12px var(--mono);
}
td.addr {
  word-break: break-all;
  min-width: 150px;
}
.tablefoot {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.tnote {
  font-size: 13px;
  color: var(--mut);
  margin-right: auto;
}
.note {
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
}
.note.info {
  background: var(--accent-100);
  color: var(--accent-800);
}
.note.ok {
  background: var(--okbg);
  color: var(--ok);
  animation: pop 0.4s var(--spring);
}
.note.warn {
  background: var(--warnbg);
  color: var(--warn);
}
.note.bad {
  background: var(--badbg);
  color: var(--bad);
}
.limits {
  margin-top: 34px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--lift);
  border-left: 4px solid var(--accent-400);
}
.limits p {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--body);
}
.imgbox {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.imgbox img {
  width: min(320px, 100%);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--lift);
  image-rendering: pixelated;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.gallery figure {
  margin: 0;
}
.gallery img,
.gallery .ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: var(--floor);
}
.gallery figcaption {
  font-size: 12.5px;
  color: var(--mut);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.related {
  margin-top: 64px;
}
.ext {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
  padding: 4px 22px;
}
.ext li a {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.ext li:last-child a {
  border: 0;
}
.ext li a:hover .nm {
  color: var(--accent-700);
}
.ext .nm {
  font-weight: 700;
  min-width: 170px;
}
.ext .what {
  color: var(--mut);
  font-size: 14.5px;
  flex: 1;
  min-width: 220px;
}

/* ---------- motion */
.burst {
  position: absolute;
  left: 28px;
  top: -6px;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 5;
}
.burst i {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  opacity: 0;
  animation: fly 0.85s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes fly {
  0% {
    opacity: 1;
    transform: translate(0) scale(0.4);
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1);
  }
}
@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive */
@media (max-width: 1020px) {
  .coinpill.nav {
    display: none;
  }
  .coinpill.strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    width: calc(100% - 48px);
    max-width: 1152px;
    margin: 0 auto 6px;
    padding: 8px 10px;
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--lift);
  }
  .coinpill.strip .coinca {
    flex: 1 1 260px;
    font-size: 12px;
  }
}
@media (max-width: 900px) {
  .herogrid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 22px;
  }
  .stage {
    min-height: 0;
    aspect-ratio: 1 / 0.9;
  }
  .stats {
    grid-template-columns: repeat(2, auto);
    gap: 20px 56px;
  }
  .startgrid {
    grid-template-columns: 1fr;
  }
  .steplist {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .principles ul {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .wrap {
    padding: 0 16px;
  }
  .top {
    padding-top: 8px;
  }
  .topbar {
    gap: 10px;
    height: 54px;
    padding: 0 8px 0 8px;
    width: calc(100% - 32px);
  }
  .wordmark {
    font-size: 20px;
  }
  .searchbox {
    height: 38px;
    padding: 0 12px;
  }
  .searchbox kbd {
    display: none;
  }
  .tab {
    height: 32px;
    padding: 0 11px;
    font-size: 13.5px;
  }
  .tab.ext {
    margin-left: 0;
  }
  .coinpill.strip {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: clamp(42px, 12.5vw, 56px);
  }
  .sub {
    font-size: 16.5px;
  }
  .drop {
    padding: 14px;
    border-radius: 20px;
  }
  .stage {
    aspect-ratio: auto;
    height: 420px;
    border-radius: 26px;
  }
  .stageart {
    width: 66%;
  }
  .fcard {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    gap: 4px;
  }
  .fcard b {
    font-size: 19px;
  }
  .fcard .small {
    font-size: 10.5px;
  }
  .f1 {
    left: 12px;
    top: 12px;
  }
  .f2 {
    right: 12px;
    bottom: 14px;
    min-width: 140px;
  }
  .f3 {
    left: 12px;
    bottom: 14px;
  }
  .f4 {
    right: 12px;
    top: 12px;
  }
  .stats b {
    font-size: 28px;
  }
  .board,
  .recentcard {
    padding: 22px;
    border-radius: 24px;
  }
  .most {
    grid-template-columns: 1fr;
  }
  .steps,
  .drawershead,
  .principles {
    margin-top: 72px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 0;
  }
  .kvr {
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .kvr dt {
    width: 100%;
  }
  .principles {
    padding: 24px 18px;
    border-radius: 26px;
  }
  .closing {
    padding: 48px 22px 44px;
    border-radius: 26px;
  }
  .closingmark {
    font-size: 120px;
    bottom: -26px;
  }
  .form {
    padding: 18px;
  }
  .pagehead {
    padding-top: 24px;
  }
  .blockhead h2 {
    font-size: 22px;
  }
  .catblock .blockhead h2 {
    font-size: 24px;
  }
  input[type="text"],
  select,
  textarea {
    font-size: 16px;
  }
  .footgrid {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (hover: none) {
  .card:hover,
  .most li a:hover,
  .recents li a:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
