:root {
  --workshop: #c9cacd;
  --plate: #dcdde0;
  --paper: #ececef;
  --ink: #1d2126;
  --muted: #5c6168;
  --line: #b4b6ba;
  --chassis: #4a4f55;
  --chassis-dark: #2b3036;
  --phosphor: #5fd48c;
  --phosphor-deep: #2a7a4e;
  --screen: #1e4a33;
  --led-red: #e24b4b;
  --led-amber: #e8b03a;
  --led-cyan: #3ec3e8;
  --led-blue: #3a6fe8;
  --display: "Pixelify Sans", "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-left: 188px;
  color: var(--ink);
  background: var(--workshop);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #d7f3e2;
  color: var(--phosphor-deep);
  font: 500 13px/1.4 var(--mono);
}

.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.page-shell { width: min(980px, calc(100% - 48px)); margin-inline: auto; padding: 64px 0 120px; }

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: 188px;
  flex-direction: column;
  padding: 22px 14px;
  background: var(--chassis-dark);
  color: #d5d8dc;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0 6px;
  color: white;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.15;
  text-decoration: none;
}
.rail-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--chassis);
  image-rendering: pixelated;
}
.rail-nav { display: flex; flex-direction: column; gap: 4px; }
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  color: #9aa0a8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.rail-nav a:hover { color: white; background: rgba(255,255,255,.06); }
.rail-nav a.active {
  color: var(--chassis-dark);
  background: var(--phosphor);
}
.rail-icon { width: 18px; text-align: center; font: 500 13px/1 var(--mono); }
.rail-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #8b9198;
  font: 400 10px/1.5 var(--mono);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--chassis-dark);
  border-radius: 8px;
  background: var(--chassis-dark);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); background: var(--chassis); }
.button.ghost {
  background: transparent;
  color: var(--ink);
}
.button:focus-visible,
.rail-nav a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--phosphor);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 48px 0 72px;
}
.crt-stage {
  position: relative;
  display: grid;
  place-items: center;
}
.crt-art {
  width: min(100%, 460px);
  image-rendering: pixelated;
  animation: powerOn .9s ease-out;
}
.crt-glow {
  position: absolute;
  width: 42%;
  height: 32%;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(95,212,140,.35), transparent 70%);
  pointer-events: none;
  animation: scan 4.5s linear infinite;
}
.hero-copy h1 {
  margin: 10px 0 18px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.03em;
}
.hero-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status-plate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 2px solid var(--chassis);
  border-radius: 8px;
  background: var(--chassis);
}
.status-plate div {
  padding: 14px 16px;
  background: var(--paper);
}
.status-plate span {
  display: block;
  color: var(--muted);
  font: 500 11px/1.3 var(--mono);
}
.status-plate strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.leds {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.leds i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.leds .r { background: var(--led-red); }
.leds .a { background: var(--led-amber); }
.leds .c { background: var(--led-cyan); }
.leds .b { background: var(--led-blue); }

.ticker {
  overflow: hidden;
  border-block: 2px solid var(--chassis-dark);
  background: var(--screen);
  color: var(--phosphor);
}
.ticker-track {
  display: flex;
  width: max-content;
  padding: 12px 0;
  animation: ticker 22s linear infinite;
  font: 500 13px/1 var(--mono);
}
.ticker-track span { padding-right: 36px; }
.ticker-track span::after { content: "■"; padding-left: 36px; color: var(--phosphor-deep); }

section { padding: 88px 0; }
.section-kicker {
  margin: 0 0 12px;
  color: var(--phosphor-deep);
  font: 500 13px/1 var(--mono);
}
.section-head h2,
.page-title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.03em;
}
.section-head h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.section-head p,
.page-lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.page-title { font-size: clamp(42px, 7vw, 76px); line-height: .95; }

.loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.loop article {
  min-height: 260px;
  padding: 24px;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--paper);
}
.loop .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--screen);
  color: var(--phosphor);
  font: 500 16px/1 var(--mono);
}
.loop h3 {
  margin: 72px 0 10px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}
.loop p { margin: 0; color: var(--muted); line-height: 1.55; }

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin-top: 40px;
  align-items: stretch;
}
.account-card {
  padding: 32px;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--paper);
}
.account-card.featured {
  background: var(--chassis-dark);
  color: white;
  border-color: var(--chassis-dark);
}
.account-card h3 {
  margin: 28px 0 10px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
}
.account-card p { margin: 0; color: var(--muted); line-height: 1.55; min-height: 72px; }
.account-card.featured p { color: #b7bdc4; }
.payout { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-card.featured .payout { border-top-color: rgba(255,255,255,.16); }
.payout strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 48px;
}
.versus { display: grid; place-items: center; font: 500 12px/1 var(--mono); }
.versus span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--chassis);
  border-radius: 8px;
  background: var(--plate);
}

.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--paper);
}
.calc-copy, .calc-result { padding: clamp(28px, 5vw, 56px); }
.calc-copy h2 {
  margin: 8px 0 14px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
}
.calc-copy p { color: var(--muted); line-height: 1.55; }
.range-label { display: flex; justify-content: space-between; margin: 36px 0 12px; font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--phosphor-deep); cursor: pointer; }
.calc-result { background: var(--screen); color: var(--phosphor); }
.calc-total {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 92px);
  line-height: .9;
}
.calc-lines { border-top: 1px solid var(--phosphor-deep); }
.calc-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--phosphor-deep);
  font-size: 14px;
}

.faq { max-width: 820px; margin-inline: auto; }
.faq h2 { text-align: center; }
details { border-top: 2px solid var(--line); }
details:last-child { border-bottom: 2px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { max-width: 680px; margin: -4px 0 22px; color: var(--muted); line-height: 1.6; }

.closing {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  border: 2px solid var(--chassis-dark);
  border-radius: 10px;
}
.closing-copy, .closing-screen { padding: clamp(28px, 5vw, 64px); }
.closing-copy { background: var(--chassis-dark); color: white; }
.closing-copy h2 {
  margin: 10px 0 16px;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
}
.closing-copy p { max-width: 520px; color: #b7bdc4; line-height: 1.55; }
.closing-screen { background: var(--screen); color: var(--phosphor); font-family: var(--mono); }
.closing-screen p { margin: 0 0 10px; }
.receipt-amount {
  margin: 8px 0 18px;
  font-family: var(--display);
  font-size: 56px;
  color: var(--phosphor);
}

footer { padding: 48px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.legal { padding-top: 18px; border-top: 2px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.info-card {
  min-height: 240px;
  padding: 28px;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--paper);
}
.info-card.dark { background: var(--chassis-dark); color: white; border-color: var(--chassis-dark); }
.info-card.screen { background: var(--screen); color: var(--phosphor); border-color: var(--screen); }
.info-card h2 {
  margin: 64px 0 12px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
}
.info-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.info-card.dark p { color: #b7bdc4; }
.info-card.screen p { color: #9aecc0; }

.split-track {
  display: grid;
  grid-template-columns: minmax(240px, 2.6fr) 7.4fr;
  min-height: 54px;
  overflow: hidden;
  margin: 36px 0 8px;
  border-radius: 8px;
}
.split-track span { display: flex; align-items: center; padding: 0 16px; font-weight: 700; }
.split-track .cut { background: var(--screen); color: var(--phosphor); }
.split-track .rest { background: var(--chassis-dark); color: white; }

.doc-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  margin-top: 56px;
}
.doc-toc { position: sticky; top: 24px; align-self: start; }
.doc-toc a { display: block; padding: 8px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.doc-toc a:hover { color: var(--ink); }
.doc-content article { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 2px solid var(--line); }
.doc-content h2 { margin: 0 0 14px; font-family: var(--display); font-size: 34px; font-weight: 600; }
.doc-content p, .doc-content li { color: var(--muted); line-height: 1.7; }

.launch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 28px;
  align-items: start;
  margin-top: 36px;
}
.launch-form { display: grid; gap: 14px; }
.launch-form label {
  display: grid;
  gap: 8px;
  font: 500 12px/1 var(--mono);
}
.launch-form input,
.launch-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--chassis);
  border-radius: 8px;
  background: var(--paper);
}
.launch-form textarea { min-height: 110px; resize: vertical; }
.launch-form button[type="submit"] {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--chassis-dark);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.launch-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.wallet-status {
  display: none;
  padding: 14px;
  border: 2px solid var(--phosphor-deep);
  border-radius: 8px;
  background: #d7f3e2;
  font-size: 14px;
  line-height: 1.5;
}
.wallet-status.visible { display: block; }
.receipt {
  padding: 22px;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--screen);
  color: var(--phosphor);
}
.receipt-to { margin: 0 0 18px; color: #9aecc0; }
.receipt-card {
  padding: 14px;
  border: 1px solid var(--phosphor-deep);
  border-radius: 8px;
  background: rgba(0,0,0,.18);
}
.receipt-card-top {
  display: flex;
  justify-content: space-between;
  font: 500 11px/1 var(--mono);
}
.explorer-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.cycle-card {
  min-width: 220px;
  padding: 20px;
  border-radius: 10px;
  background: var(--screen);
  color: var(--phosphor);
}
.cycle-card strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 42px; }
.explorer-table {
  margin-top: 48px;
  overflow: hidden;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--paper);
}
.table-head {
  display: grid;
  grid-template-columns: 1.4fr .8fr .7fr .6fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font: 500 11px/1 var(--mono);
}
.empty-state { display: grid; min-height: 320px; place-items: center; padding: 40px; text-align: center; }
.empty-state h2 { margin: 0 0 8px; font-family: var(--display); font-size: 32px; }
.empty-state p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.55; }
.payment-list { display: grid; gap: 8px; padding: 12px; }
.payment-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
}
.payment-meta { color: var(--muted); font-size: 13px; }

@keyframes powerOn {
  0% { filter: brightness(.45) contrast(1.2); }
  20% { filter: brightness(1.25); }
  100% { filter: none; }
}
@keyframes scan {
  from { transform: translateY(-8px); opacity: .45; }
  to { transform: translateY(8px); opacity: .2; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  body { padding-left: 0; padding-bottom: 72px; }
  .side-rail {
    inset: auto 0 0;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
  }
  .rail-brand, .rail-bottom { display: none; }
  .rail-nav { flex: 1; flex-direction: row; }
  .rail-nav a {
    flex: 1;
    min-height: 50px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 0;
    font-size: 10px;
  }
  .hero, .loop, .comparison, .calculator, .closing, .page-grid, .doc-layout, .launch-layout { grid-template-columns: 1fr; }
  .versus { height: 48px; }
  .explorer-head, .footer-top { flex-direction: column; align-items: stretch; }
  .doc-toc { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ------------------------------------------------------------------ live machine parts */
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--phosphor); vertical-align: 1px; }
.dot.amber { background: var(--led-amber); }
.dot.red { background: var(--led-red); }
.rail-bottom .dot { animation: blink 1.6s steps(2) infinite; }
.button.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.button.screen { border-color: var(--screen); background: var(--screen); color: var(--phosphor); }
.button.screen:hover { background: #24583d; }
button.button { cursor: pointer; }
button.button:disabled { opacity: .5; cursor: wait; }

.ca-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 2px solid var(--chassis);
  border-radius: 8px;
  background: var(--paper);
  font: 500 12px/1.3 var(--mono);
  cursor: pointer;
}
.ca-row span:first-child { color: var(--muted); }
.ca-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ca-row em { margin-left: auto; color: var(--phosphor-deep); font-style: normal; }

.ticker a { color: inherit; text-decoration: none; }
.ticker-track.live { animation-duration: 60s; }
.ticker-track img { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 3px; vertical-align: -2px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 20px; border: 2px solid var(--chassis); border-radius: 10px; background: var(--paper); }
.kpi span { display: block; color: var(--muted); font: 500 11px/1.4 var(--mono); }
.kpi strong { display: block; margin-bottom: 8px; font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1; }
.kpi.dark { background: var(--chassis-dark); border-color: var(--chassis-dark); color: white; }
.kpi.dark span { color: #b7bdc4; }
.kpi.screen { background: var(--screen); border-color: var(--screen); color: var(--phosphor); }
.kpi.screen span { color: #9aecc0; }
section.tight { padding: 40px 0 0; }

.stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 36px;
  padding: 24px 28px;
  border: 2px solid var(--chassis-dark);
  border-radius: 10px;
  background: var(--screen);
  color: var(--phosphor);
}
.stage .lbl { color: #9aecc0; font: 500 12px/1 var(--mono); }
.stage .clock { margin-top: 8px; font-family: var(--display); font-size: clamp(48px, 7vw, 76px); line-height: .9; }
.stage .clock.hot { color: var(--led-amber); }
.stage .sub { color: #9aecc0; font-size: 14px; line-height: 1.5; }
.stage .track { height: 10px; margin-top: 12px; overflow: hidden; border: 1px solid var(--phosphor-deep); border-radius: 3px; background: rgba(0,0,0,.2); }
.stage .track i { display: block; height: 100%; background: var(--phosphor); transition: width 1s linear; }
.stage .row { display: grid; gap: 14px; min-width: 190px; }
.stage .row b { display: block; font-family: var(--display); font-size: 24px; font-weight: 600; }
.stage .row small { color: #9aecc0; font: 400 11px/1.4 var(--mono); }

.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: end; }
.board-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { min-height: 40px; width: 230px; padding: 0 12px; border: 2px solid var(--chassis); border-radius: 8px; background: var(--paper); font-size: 14px; }
.seg { display: flex; overflow: hidden; border: 2px solid var(--chassis); border-radius: 8px; }
.seg button { min-height: 36px; padding: 0 12px; border: 0; background: var(--paper); font: 500 12px/1 var(--mono); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--chassis-dark); color: white; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.coin { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px; border: 2px solid var(--chassis); border-radius: 10px; background: var(--paper); text-decoration: none; transition: transform .15s ease; }
.coin:hover { transform: translateY(-2px); }
.coin img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--plate); }
.coin .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .nm span { margin-left: 6px; color: var(--muted); font: 500 12px/1 var(--mono); }
.coin .st { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 8px; color: var(--muted); font: 400 11px/1.4 var(--mono); }
.coin .st b { color: var(--ink); font-weight: 500; }
.empty-note { margin: 0; padding: 40px 20px; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; grid-column: 1 / -1; }

/* deploy */
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.step { padding: 8px 12px; border: 2px solid var(--line); border-radius: 6px; color: var(--muted); font: 500 12px/1 var(--mono); }
.step.on { border-color: var(--chassis-dark); background: var(--chassis-dark); color: white; }
.step.done { border-color: var(--phosphor-deep); background: #d7f3e2; color: var(--phosphor-deep); }
.launch-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.launch-form label { line-height: 1.4; }
.logo-drop { display: flex; align-items: center; gap: 14px; }
.logo-drop img { width: 72px; height: 72px; border: 2px solid var(--chassis); border-radius: 8px; object-fit: cover; }
.logo-drop label { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 36px; padding: 0 12px; border: 2px solid var(--chassis); border-radius: 6px; background: var(--paper); font: 500 12px/1 var(--mono); cursor: pointer; }
.chips button.on { background: var(--chassis-dark); color: white; }
.wallet-status.err { border-color: var(--led-red); background: #f7dcdc; }
.receipt .line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--phosphor-deep); font: 400 12px/1.4 var(--mono); }
.receipt .line b { font-weight: 500; white-space: nowrap; }
.receipt .receipt-amount { margin: 6px 0 4px; }
.receipt-card p { margin: 10px 0 0; color: #9aecc0; font-size: 13px; line-height: 1.5; }
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 20px; background: rgba(29,33,38,.6); }
.modal.on { display: grid; }
.modal .box { width: min(380px, 100%); padding: 24px; border: 2px solid var(--chassis-dark); border-radius: 10px; background: var(--paper); }
.modal h3 { margin: 0 0 14px; font-family: var(--display); font-size: 26px; font-weight: 600; }
.modal .w { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-bottom: 8px; padding: 0 14px; border: 2px solid var(--chassis); border-radius: 8px; background: white; font-weight: 600; cursor: pointer; }
.modal .w img { width: 24px; height: 24px; }

/* ledger rows */
.table-head.ledger, .ledger-row { grid-template-columns: 1.1fr 1.5fr 1.5fr .9fr; }
.ledger-row { display: grid; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .src { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; text-decoration: none; }
.ledger-row .src img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; background: var(--plate); }
.ledger-row small { display: block; color: var(--muted); font: 400 11px/1.5 var(--mono); }
.ledger-row .txs a { margin-right: 8px; color: var(--phosphor-deep); font: 500 11px/1.6 var(--mono); }
.ledger-row .fire { font-family: var(--display); font-size: 20px; }
.tag { display: inline-block; padding: 3px 7px; border-radius: 4px; background: #d7f3e2; color: var(--phosphor-deep); font: 500 10px/1.2 var(--mono); }
.tag.dry { background: var(--plate); color: var(--muted); }
.tag.bad { background: #f7dcdc; color: #9b2c2c; }

/* coin dashboard */
.coin-hero { display: grid; grid-template-columns: 148px 1fr; gap: 28px; align-items: center; }
.coin-hero > img { width: 148px; height: 148px; border: 2px solid var(--chassis-dark); border-radius: 10px; object-fit: cover; background: var(--plate); image-rendering: auto; }
.coin-hero .page-title { font-size: clamp(36px, 5.4vw, 64px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.panel { margin-top: 12px; padding: 24px; border: 2px solid var(--chassis); border-radius: 10px; background: var(--paper); }
.panel h2 { margin: 0 0 8px; font-family: var(--display); font-size: 32px; font-weight: 600; }
.panel .page-lead { font-size: 15px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: end; }
.chart-head .big { font-family: var(--display); font-size: clamp(34px, 5vw, 52px); font-weight: 600; line-height: 1; }
.chart-head .big .cur { margin-left: 8px; color: var(--muted); font: 500 13px/1 var(--mono); }
.under { margin-top: 8px; color: var(--muted); font: 400 12px/1.6 var(--mono); }
.under b { color: var(--ink); font-weight: 500; }
.fees { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.fees .tag { padding: 6px 9px; font-size: 11px; }
.fees .tag.plain { background: var(--plate); color: var(--ink); }
.fees .tag.amber { background: #f6e6bf; color: #7a5a10; }
.note-bar { margin-top: 12px; padding: 12px 14px; border: 2px solid var(--led-amber); border-radius: 8px; background: #f6e6bf; font-size: 13px; line-height: 1.5; }
.paying { margin-top: 12px; padding: 14px; border: 2px solid var(--phosphor-deep); border-radius: 8px; background: #d7f3e2; font-size: 14px; line-height: 1.5; }
.paying .steps { margin-top: 10px; }
.paying a { color: var(--phosphor-deep); }
.chart { position: relative; height: 380px; margin-top: 16px; border-radius: 8px; background: var(--screen); cursor: grab; touch-action: pan-y; overflow: hidden; }
.chart.drag { cursor: grabbing; }
.chart canvas { display: block; width: 100%; height: 100%; }
.chart .tip { position: absolute; display: none; transform: translate(-50%, -140%); padding: 6px 9px; border-radius: 4px; background: var(--ink); color: white; font-size: 11px; white-space: nowrap; pointer-events: none; }
.chart .empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9aecc0; font: 400 13px/1.5 var(--mono); text-align: center; padding: 20px; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font: 400 11px/1.4 var(--mono); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--phosphor); }
.chart-legend i.b { background: var(--led-amber); }
.chart-legend span + span { margin-left: 14px; }
.burnbar { height: 12px; margin-top: 18px; overflow: hidden; border: 2px solid var(--chassis); border-radius: 4px; background: var(--plate); }
.burnbar i { display: block; height: 100%; min-width: 2px; background: var(--led-red); }
.rules-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin-top: 20px; }
.rules-grid ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules-grid li { position: relative; padding: 0 0 18px 44px; counter-increment: r; }
.rules-grid li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--screen); color: var(--phosphor); font: 500 12px/1 var(--mono); }
.rules-grid li b { display: block; margin-bottom: 4px; }
.rules-grid li span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.rules-grid .receipt a { color: inherit; }
.rules-grid .receipt p { margin: 14px 0 0; color: #9aecc0; font-size: 13px; line-height: 1.55; }

@keyframes blink { 50% { opacity: .35; } }

@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .stage, .rules-grid, .board { grid-template-columns: 1fr; }
  .coin-hero { grid-template-columns: 1fr; }
  .coin-hero > img { width: 112px; height: 112px; }
  .table-head.ledger { display: none; }
  .ledger-row { grid-template-columns: 1fr 1fr; }
  .launch-form .row2 { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .split-track { grid-template-columns: 1fr; }
  .split-track span { min-height: 48px; }
  .chart { height: 300px; }
  .shell, .page-shell { width: calc(100% - 32px); }
}

/* live numbers inside template slots keep the slot's own type */
.status-plate strong span, .kpi span span, .kpi strong span, .split-track span span, .cycle-card span span, .stage small span { display: inline; padding: 0; color: inherit; font: inherit; }

/* grid children may shrink below their content (long CAs, nowrap rows) */
.hero > *, .launch-layout > *, .closing > *, .calculator > *, .coin-hero > *, .stage > *, .rules-grid > *, .coin > * { min-width: 0; }
.crt-stage { margin: 0; }
@media (max-width: 900px) {
  .hero { padding-top: 28px; gap: 12px; }
  .crt-art { width: min(72%, 300px); }
  .status-plate { grid-template-columns: 1fr; }
  .status-plate div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .status-plate strong { margin-top: 0; text-align: right; }
  section { padding: 56px 0; }
  .loop h3 { margin-top: 36px; }
  .loop article { min-height: 0; }
}
