/* SWARM: black ground, white and grey only, dot-matrix type everywhere */
:root {
  --bg: #000000;
  --cr: 242, 242, 242;
  --ink: rgb(var(--cr));
  --dim: rgba(var(--cr), 0.62);
  --faint: rgba(var(--cr), 0.42);
  --line: rgba(var(--cr), 0.22);
  --panel: rgba(var(--cr), 0.03);
  --red: rgb(190, 190, 190);
  --green: rgb(235, 235, 235);
  --regrow: rgb(225, 225, 225);
  --dot: 'Doto', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: var(--dot);
  --sans: var(--dot);
  --mono: var(--dot);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.k { font: 700 10px/1.4 var(--mono); letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 22px 48px 18px;
  background: linear-gradient(#040404 70%, rgba(4, 4, 4, 0)); }
.brand { font: 700 12px var(--mono); letter-spacing: 0.55em; text-decoration: none; white-space: nowrap; }
.links { display: flex; gap: 26px; margin: 0 auto; }
.links a { font: 700 10.5px var(--mono); letter-spacing: 0.08em; color: var(--faint); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid transparent; }
.links a.on, .links a:hover { color: var(--ink); }
.links a.on { border-color: var(--ink); }
.navmeta { font: 600 10px var(--mono); color: var(--dim); white-space: nowrap; }
.wallet-btn { font: 700 10.5px var(--mono); letter-spacing: 0.06em; background: none; border: 1px solid var(--line); padding: 8px 14px; white-space: nowrap; }
.wallet-btn:hover { border-color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; font: 700 11px var(--mono); }
.demo-banner { position: relative; z-index: 2; text-align: center; font: 600 10px var(--mono); letter-spacing: 0.08em; color: #040404; background: var(--ink); padding: 5px; }

main { position: relative; z-index: 1; }
.page { display: none; }
.page.on { display: block; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

/* hero */
.hero { position: relative; overflow: hidden; padding-bottom: 34px; --stage-h: clamp(560px, calc(100vh - 170px), 940px); }
.hero canvas { position: relative; display: block; width: 100%; height: var(--stage-h); z-index: 1; pointer-events: auto; }
.hero-copy { position: relative; padding: 26px 0 0; text-align: center; pointer-events: none; z-index: 10; }
.hero-copy h1 { font: 400 clamp(32px, 4.4vw, 62px)/1.05 var(--serif); margin: 0 0 12px; letter-spacing: -0.01em; }
.hero-copy p { margin: 0 auto 22px; color: var(--dim); font-size: 15px; max-width: 560px; }
.ctas { display: flex; gap: 34px; justify-content: center; pointer-events: auto; }
.cta { font: 600 14px var(--sans); text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid transparent; }
.cta.main { border-color: var(--ink); }
.cta.alt { color: var(--dim); }
.corner { position: absolute; font-family: var(--serif); z-index: 5; }
.corner .v { font-size: 26px; line-height: 1; }
.corner .k { margin-top: 4px; font-size: 9px; }
.corner.bl { left: 48px; bottom: 86px; } .corner.bl2 { left: 48px; bottom: 30px; }
.corner.br { right: 48px; bottom: 86px; text-align: right; } .corner.br2 { right: 48px; bottom: 30px; text-align: right; }

/* gauges */
.gauge { position: absolute; top: 70px; height: calc(var(--stage-h) - 110px); width: 230px; z-index: 5; }
.gauge.left { left: 48px; } .gauge.right { right: 48px; text-align: right; }
.gauge .title { font: 700 10px var(--mono); letter-spacing: 0.06em; }
.gauge .sub { font: 600 9px var(--mono); color: var(--faint); margin-top: 3px; }
.gauge .rail { position: absolute; top: 44px; bottom: 0; width: 1px; background: rgba(var(--cr), 0.5); }
.gauge.left .rail { left: 14px; } .gauge.right .rail { right: 14px; }
.tick { position: absolute; height: 1px; background: rgba(var(--cr), 0.25); width: 5px; transition: top 0.8s cubic-bezier(.2,.8,.2,1), opacity 0.5s ease; }
.tick.major { width: 14px; background: rgba(var(--cr), 0.55); }
.gauge.left .tick { left: 0; } .gauge.right .tick { right: 0; }
.tick span { position: absolute; top: -6px; font: 500 9.5px var(--mono); color: var(--faint); white-space: nowrap; transition: opacity 0.4s ease; }
.gauge.left .tick span { left: 20px; } .gauge.right .tick span { right: 20px; }
.marker { position: absolute; transition: top 1.6s cubic-bezier(.2,.8,.2,1); }
.gauge.left .marker { left: -14px; } .gauge.right .marker { right: -14px; }
.marker .tri { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; position: absolute; top: -7px; }
.gauge.left .tri { left: 0; border-left: 12px solid var(--ink); }
.gauge.right .tri { right: 0; border-right: 12px solid var(--ink); }
.marker .glow { position: absolute; top: 0; height: 1px; width: 30px; background: var(--ink); box-shadow: 0 0 10px var(--ink); }
.gauge.left .glow { left: 14px; } .gauge.right .glow { right: 14px; }
.marker .val { position: absolute; top: -14px; font: 700 14px var(--mono); white-space: nowrap; background: rgba(4, 4, 4, .88); padding: 2px 6px; border: 1px solid rgba(var(--cr), 0.15); border-radius: 2px; }
.marker .val small { display: block; font: 600 9.5px var(--mono); color: var(--dim); margin-top: 2px; }
.gauge.left .val { left: 52px; } .gauge.right .val { right: 52px; text-align: right; }
.trail { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(var(--cr), .25); transition: top 1.6s; }
.gauge.left .trail { left: 12.5px; } .gauge.right .trail { right: 12.5px; }

/* iPhone / iOS Rolling Number Odometer */
.roll-display { display: inline-block; font: 700 14px var(--mono); letter-spacing: -0.01em; color: var(--ink); line-height: 1.15; }
.roll-num { display: inline-flex; align-items: baseline; vertical-align: baseline; font-variant-numeric: tabular-nums; }
.roll-col { display: inline-block; height: 1.15em; line-height: 1.15em; overflow: hidden; position: relative; vertical-align: baseline; }
.roll-ribbon { display: flex; flex-direction: column; transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.roll-digit { display: block; height: 1.15em; line-height: 1.15em; text-align: center; font-weight: 700; }
.roll-glyph { display: inline-block; height: 1.15em; line-height: 1.15em; vertical-align: baseline; }

/* sections */
.section { padding: 40px 0 70px; }
.eyebrow { font: 700 10px var(--mono); letter-spacing: .08em; color: var(--dim); }
h2.title { font: 400 clamp(30px, 3.4vw, 46px)/1.1 var(--serif); margin: 10px 0 10px; }
.lede { color: var(--dim); margin: 0 0 30px; font-size: 14.5px; max-width: 720px; line-height: 1.6; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: 1fr 1fr 1fr; }
.g2 { grid-template-columns: 1.4fr 1fr; }
.g21 { grid-template-columns: 2.2fr 1fr; }
.panel { border: 1px solid var(--line); background: var(--panel); padding: 18px 20px; position: relative; min-width: 0; }
a.panel:hover { border-color: var(--ink); background: rgba(var(--cr), 0.05); }
.panel > .k:first-child { display: block; margin-bottom: 14px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(var(--cr), .07); font: 500 12px var(--mono); }
.row b { font-weight: 700; }
.row .dim { color: var(--dim); }
.btn { display: block; width: 100%; border: 0; background: var(--ink); color: #040404; font: 800 11.5px var(--mono); letter-spacing: .06em; padding: 14px; text-align: center; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid rgba(var(--cr), .6); }
.note { font: 500 11px var(--mono); color: var(--dim); margin-top: 10px; min-height: 16px; }
.note.err { color: var(--red); } .note.ok { color: var(--green); }
.stat .v { font: 400 28px/1 var(--serif); } .stat .k { margin-top: 6px; font-size: 9px; }
.stats { display: flex; gap: 38px; flex-wrap: wrap; }

/* ask + log */
.ask textarea { width: 100%; background: transparent; border: 1px solid var(--line); color: var(--ink); font: 400 14px var(--sans); padding: 12px; resize: vertical; min-height: 70px; }
.ask textarea:focus { outline: none; border-color: var(--ink); }
.verdict { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.verdict p { font: 400 18px/1.45 var(--serif); margin: 6px 0 12px; }
.answers .a { font: 400 12px/1.5 var(--sans); color: var(--dim); padding: 6px 0; border-bottom: 1px solid rgba(var(--cr), .06); }
.answers .a b { font: 700 10.5px var(--mono); color: var(--ink); margin-right: 6px; }
.answers .a.no b { color: var(--faint); }
.log { font: 500 11.5px/1.95 var(--mono); max-height: 330px; overflow: auto; scroll-behavior: smooth; }
.log .t { color: var(--faint); margin-right: 10px; text-shadow: none; }
.tent.tgrid { display: grid; grid-template-columns: 2.4fr 1fr 1fr .7fr auto; }
.g2, .g21 { align-items: start; }
.log-entry { margin-bottom: 3px; display: flex; align-items: baseline; flex-wrap: wrap; }
.log .sever, .log .warn { color: var(--red); } .log .regrow { color: var(--regrow); }
.log .judge { color: var(--ink); } .log .mind, .log .level, .log .crack, .log .unmask { color: var(--ink); text-shadow: 0 0 10px rgba(var(--cr), .6); }
.log .attach, .log .ask, .log .boot { color: var(--dim); }
.log .fees { color: #a6a6a6; }
.tag-badge { display: inline-block; font: 700 8.5px var(--mono); letter-spacing: 0.06em; padding: 1px 5px; border-radius: 2px; margin-right: 6px; text-transform: uppercase; vertical-align: middle; line-height: 1.3; }
.tag-probe { background: rgba(165, 165, 165, 0.12); color: #a5a5a5; border: 1px solid rgba(165, 165, 165, 0.35); }
.tag-consensus { background: rgba(114, 114, 114, 0.14); color: #999999; border: 1px solid rgba(114, 114, 114, 0.35); }
.tag-eval { background: rgba(238, 238, 238, 0.12); color: var(--ink); border: 1px solid rgba(238, 238, 238, 0.3); }
.tag-judge { background: rgba(238, 238, 238, 0.18); color: var(--ink); border: 1px solid rgba(238, 238, 238, 0.4); text-shadow: 0 0 8px rgba(var(--cr), 0.5); }
.tag-attach { background: rgba(193, 193, 193, 0.12); color: #c1c1c1; border: 1px solid rgba(193, 193, 193, 0.35); }
.tag-yield { background: rgba(173, 173, 173, 0.14); color: #adadad; border: 1px solid rgba(173, 173, 173, 0.35); }
.tag-sever { background: rgba(104, 104, 104, 0.16); color: #686868; border: 1px solid rgba(104, 104, 104, 0.4); }
.tag-regrow { background: rgba(227, 227, 227, 0.16); color: #e3e3e3; border: 1px solid rgba(227, 227, 227, 0.4); }
.tag-evolution { background: rgba(238, 238, 238, 0.22); color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 0 8px rgba(var(--cr), 0.6); }
.tag-dev { display: inline-block; padding: 1px 6px; border-radius: 2px; background: rgba(173, 173, 173, 0.15); color: #adadad; font-weight: 700; margin-right: 6px; font-size: 10px; border: 1px solid rgba(173, 173, 173, 0.35); vertical-align: middle; }
.tag-genesis { display: inline-block; padding: 1px 6px; border-radius: 2px; background: rgba(238, 238, 238, 0.15); color: var(--ink); font-weight: 700; margin-right: 6px; font-size: 10px; border: 1px solid rgba(var(--cr), 0.4); vertical-align: middle; }
.tag-burn { display: inline-block; padding: 1px 6px; border-radius: 2px; background: rgba(104, 104, 104, 0.15); color: #686868; font-weight: 700; margin-right: 6px; font-size: 10px; border: 1px solid rgba(104, 104, 104, 0.35); vertical-align: middle; }
.tag-user { display: inline-block; padding: 1px 6px; border-radius: 2px; background: rgba(190, 190, 190, 0.15); color: #bebebe; font-weight: 700; margin-right: 6px; font-size: 10px; border: 1px solid rgba(190, 190, 190, 0.35); vertical-align: middle; }
.tag-treasury { display: inline-block; padding: 1px 6px; border-radius: 2px; background: rgba(166, 166, 166, 0.15); color: #a6a6a6; font-weight: 700; margin-right: 6px; font-size: 10px; border: 1px solid rgba(166, 166, 166, 0.35); vertical-align: middle; }

/* attach */
.models { max-height: 470px; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.search { width: 100%; background: transparent; border: 1px solid var(--line); color: var(--ink); font: 500 12px var(--mono); padding: 10px 12px; margin-bottom: 8px; }
.search:focus { outline: none; border-color: var(--ink); }
.model { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid rgba(var(--cr), .07); cursor: pointer; font: 500 12px var(--mono); color: var(--dim); }
.model .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(var(--cr), .45); flex: none; display: grid; place-items: center; }
.model.sel { color: var(--ink); font-weight: 700; }
.model.sel .dot { border-color: var(--ink); }
.model.sel .dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 8px var(--ink); }
.model .meta { margin-left: auto; font-size: 10px; color: var(--faint); white-space: nowrap; }
.pairbox { text-align: center; }
.pairbox canvas { width: 100%; height: 330px; display: block; }
.pairtag { display: inline-block; border: 1px solid rgba(var(--cr), .8); padding: 7px 18px; font: 800 11px var(--mono); letter-spacing: .06em; }
.pairsub { font: 500 11px var(--mono); color: var(--dim); margin-top: 8px; min-height: 16px; }

/* ledger */
table.ledger { width: 100%; border-collapse: collapse; font: 500 12px var(--mono); }
table.ledger th { text-align: left; font: 700 9.5px var(--mono); letter-spacing: .06em; color: var(--dim); padding: 0 8px 12px; border-bottom: 1px solid var(--line); }
table.ledger td { white-space: nowrap; padding: 13px 8px; border-bottom: 1px solid rgba(var(--cr), .06); vertical-align: middle; }
table.ledger td small { display: block; color: var(--faint); font-size: 10px; margin-top: 3px; }
table.ledger tr.me td { background: rgba(var(--cr), .05); }
.score { font: 400 18px var(--serif); } .score.low { color: var(--red); }
.dots { display: flex; gap: 3px; flex-wrap: nowrap; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--cr), .95); flex: none; }
.dots i.x { background: none; border: 1px solid rgba(127, 127, 127, .85); }
.hournav { display: flex; gap: 10px; align-items: center; font: 700 11px var(--mono); }
.hournav button { background: none; border: 1px solid var(--line); padding: 6px 12px; }
.qlist { font: 400 12.5px/1.5 var(--sans); max-height: 560px; overflow: auto; }
.qlist .q { padding: 9px 0; border-bottom: 1px solid rgba(var(--cr), .06); }
.qlist .q span { font: 700 10px var(--mono); color: var(--faint); margin-right: 8px; }
.qlist .q em { font-style: normal; font: 600 11px var(--mono); color: var(--ink); display: block; margin-top: 3px; }
.spark { width: 100%; height: 150px; display: block; }

/* evolution */
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.stage { text-align: center; }
.stage canvas { width: 100%; aspect-ratio: 1; display: block; }
.stage .n { font: 400 19px var(--serif); margin-top: 4px; }
.stage .k { font-size: 9px; }
.stage .now { display: inline-block; margin-top: 8px; border: 1px solid rgba(var(--cr), .8); font: 700 9.5px var(--mono); padding: 3px 8px; }
.track { height: 1px; background: var(--line); margin: 26px 0 30px; position: relative; }
.track i { position: absolute; left: 0; top: 0; height: 1px; background: var(--ink); box-shadow: 0 0 8px var(--ink); }
.part { display: grid; grid-template-columns: 90px 140px 1fr 52px; align-items: center; gap: 12px; padding: 9px 0; font: 600 11px var(--mono); }
.part .sw { height: 6px; border-radius: 3px; position: relative; background: rgba(var(--cr), .1); overflow: hidden; }
.part .sw i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.cracks { display: flex; gap: 4px; margin: 18px 0 8px; }
.cracks i { flex: 1; height: 6px; background: rgba(var(--cr), .12); }
.cracks i.on { background: var(--ink); box-shadow: 0 0 8px rgba(var(--cr), .7); }

/* quarantine */
.qcanvas { width: 100%; height: 560px; display: block; }
.sev { border: 1px solid rgba(127, 127, 127, .45); padding: 16px; margin-bottom: 12px; }
.sev.re { border-color: rgba(227, 227, 227, .55); }
.sev h4 { margin: 0 0 6px; font: 700 13px var(--mono); }
.sev .s { font: 600 10.5px var(--mono); color: var(--red); margin-bottom: 14px; }
.sev.re .s { color: var(--regrow); }
.bar { height: 4px; background: rgba(var(--cr), .12); }
.bar i { display: block; height: 100%; background: var(--regrow); box-shadow: 0 0 8px var(--regrow); transition: width 1s; }

/* you */
.tent { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(var(--cr), .08); font: 500 12px var(--mono); align-items: center; }
.pill { font: 700 9.5px var(--mono); padding: 3px 8px; border: 1px solid var(--line); }
.pill.active { color: var(--green); border-color: rgba(202, 202, 202, .5); }
.pill.severed { color: var(--red); border-color: rgba(127, 127, 127, .5); }
.pill.regrowing { color: var(--regrow); border-color: rgba(227, 227, 227, .5); }
.empty { color: var(--dim); font: 500 12px var(--mono); padding: 24px 0; }

/* docs */
.docs { max-width: 780px; }
.docs h3 { font: 400 26px var(--serif); margin: 44px 0 10px; }
.docs p, .docs li { color: rgba(var(--cr), .78); line-height: 1.7; font-size: 15px; }
.docs code { font: 600 12.5px var(--mono); color: var(--ink); }
.docs table { width: 100%; border-collapse: collapse; font: 500 12.5px var(--mono); margin: 12px 0; }
.docs td, .docs th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.docs th { font-size: 10px; color: var(--dim); letter-spacing: .06em; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 8px; box-shadow: 0 0 10px currentColor; }
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 24px 48px 40px; display: flex; justify-content: space-between; font: 600 10px var(--mono); color: var(--faint); gap: 20px; flex-wrap: wrap; }

/* toast */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 50; background: var(--ink); color: #040404; font: 700 11.5px var(--mono); padding: 12px 18px; transition: .3s; max-width: 90vw; }
#toast.on { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--red); color: #ffffff; }

@media (max-width: 1100px) {
  .links { gap: 16px; } .navmeta { display: none; }
  .g3, .g2, .g21 { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav { padding: 16px 16px 12px; gap: 12px; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #040404; padding: 14px 16px 20px; gap: 16px; border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .menu-btn { display: block; margin-left: auto; }
  .brand { letter-spacing: .35em; }
  .wrap { padding: 0 16px; }
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; overflow: hidden; }
  .hero canvas { position: relative; height: 420px; z-index: 1; pointer-events: none; }
  .gauge { position: relative; top: auto; bottom: auto; height: 64px !important; left: auto !important; right: auto !important; width: auto; height: 64px; margin: 0 16px 12px; text-align: left !important; z-index: 5; }
  .gauge .rail { top: auto; bottom: 10px; left: 0 !important; right: 0 !important; width: auto; height: 1px; }
  .gauge .tick, .gauge .trail { display: none; }
  .gauge .marker { top: auto !important; bottom: 10px; left: var(--pos) !important; right: auto !important; transition: left 1.6s; }
  .gauge .tri { border: 0 !important; width: 9px !important; height: 9px !important; top: -4px !important; left: -4px !important; right: auto !important; border-radius: 50%; background: var(--ink); box-shadow: 0 0 10px var(--ink); }
  .gauge .glow { display: none; }
  .gauge .val { top: -38px !important; left: 0 !important; right: auto !important; transform: translateX(-50%); text-align: center !important; }
  .hero-copy { position: relative; bottom: auto; padding: 18px 16px 0; z-index: 10; }
  .corner { position: static; display: inline-block; margin: 18px 16px 0; text-align: left !important; z-index: 5; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .tent.tgrid { grid-template-columns: 1fr auto; } .tent.tgrid > span:nth-child(2), .tent.tgrid > span:nth-child(3) { display: none; }
  .part { grid-template-columns: 70px 1fr 44px; } .part .when { display: none; }
  table.ledger .dotcol, table.ledger .ownercol { display: none; }
  .qcanvas { height: 380px; }
  footer { padding: 20px 16px 30px; }
}

.split { display: flex; gap: 3px; margin-bottom: 10px; }
.split > div { border: 1px solid rgba(var(--cr), .5); padding: 12px; min-width: 0; }
.split > div:first-child { background: rgba(var(--cr), .08); }
.split b { display: block; font: 400 26px/1 var(--serif); }
.split span { font: 700 9px var(--mono); letter-spacing: .06em; color: var(--dim); }

/* CA Bar */
.ca-bar {
  position: sticky;
  top: 58px;
  z-index: 19;
  background: rgba(4, 4, 4, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 6px 48px;
  font-size: 11px;
}
.ca-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ca-badge {
  font: 800 9px var(--mono);
  letter-spacing: 0.1em;
  padding: 2px 6px;
  background: rgba(var(--cr), 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 2px;
}
.ca-address {
  font: 600 11px var(--mono);
  color: var(--ink);
  letter-spacing: 0.04em;
}
.ca-short { display: none; }
@media (max-width: 768px) {
  .ca-bar { padding: 8px 16px; top: 52px; }
  .ca-full { display: none; }
  .ca-short { display: inline; }
}
.ca-copy-btn, .foot-copy-btn {
  font: 700 9.5px var(--mono);
  background: none;
  border: 1px solid var(--line);
  color: var(--dim);
  padding: 2px 8px;
  border-radius: 2px;
  transition: all .2s;
  cursor: pointer;
}
.ca-copy-btn:hover, .foot-copy-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.ca-action-btn {
  font: 700 10px var(--mono);
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid var(--line);
  color: var(--dim);
  border-radius: 2px;
  transition: all .2s;
}
.ca-action-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.ca-action-btn.primary {
  background: var(--ink);
  color: #040404;
  font-weight: 800;
  border-color: var(--ink);
}
.ca-action-btn.primary:hover {
  background: #ffffff;
  color: #000000;
}

/* Connection indicator */
.conn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 9.5px var(--mono);
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  background: rgba(var(--cr), 0.02);
  user-select: none;
}
.conn-pill:hover, .conn-pill:focus {
  border-color: var(--ink);
}
.conn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.conn-dot.live { background: var(--green); box-shadow: 0 0 6px var(--green); }
.conn-dot.syncing { background: #a6a6a6; box-shadow: 0 0 6px #a6a6a6; }
.conn-dot.reconnecting { background: #a6a6a6; box-shadow: 0 0 8px #a6a6a6; animation: connPulse 1s infinite alternate; }
.conn-dot.offline { background: var(--red); box-shadow: 0 0 6px var(--red); }
.conn-dot.stale { background: #a2a2a2; box-shadow: none; }
@keyframes connPulse { from { opacity: 0.3; transform: scale(0.85); } to { opacity: 1; transform: scale(1.15); } }

.conn-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #090909;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
  padding: 12px 14px;
  z-index: 50;
  pointer-events: auto;
}
.conn-pill:hover .conn-popover, .conn-pill:focus-within .conn-popover, .conn-popover.open {
  display: block;
}
.conn-popover-header {
  font: 700 9px var(--mono);
  letter-spacing: 0.1em;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.conn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 11px var(--mono);
  margin-bottom: 4px;
}
.conn-row span { color: var(--dim); font-size: 10px; }
.conn-row b { color: var(--ink); font-size: 10.5px; }
.conn-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

/* Footer layout & icons */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 48px;
  font: 11px var(--mono);
  color: var(--dim);
  background: #040404;
}
.footer-wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-ca-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--cr), 0.04);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  transition: all .2s;
}
.social-icon:hover {
  border-color: var(--ink);
  background: rgba(var(--cr), 0.08);
}

/* Circulation Flow & Charts Styles */
.flow-canvas-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  background: radial-gradient(circle at center, rgba(238, 238, 238, 0.03) 0%, rgba(4, 4, 4, 0.98) 75%);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: hidden;
}
@media (max-width: 720px) {
  .flow-canvas-wrap { height: 640px; } /* taller on phones so the stacked nodes have room */
}
.flow-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.flow-tooltip {
  position: absolute;
  display: none;
  background: #0d0d0d;
  border: 1px solid var(--ink);
  padding: 10px 14px;
  border-radius: 2px;
  pointer-events: auto;
  z-index: 20;
  width: max-content;
  max-width: 250px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}
.flow-tooltip .tt-title {
  font: 700 11px var(--mono);
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.flow-tooltip .tt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 3px;
  color: var(--dim);
}
.flow-tooltip .tt-row b {
  color: var(--ink);
  font-family: var(--mono);
}
.flow-tooltip .tt-sub {
  font-size: 10.5px;
  color: var(--dim);
  line-height: 1.4;
  margin-top: 6px;
}
.flow-tooltip .tt-link {
  color: var(--ink);
  text-decoration: underline;
  font-size: 11px;
  font-family: var(--mono);
}

/* Chart Canvas & Data Table Toggles */
.chart-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.chart-toggle-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
  font: 600 10px var(--mono);
  padding: 3px 8px;
  cursor: pointer;
  transition: all .15s;
}
.chart-toggle-btn:hover, .chart-toggle-btn.active {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(var(--cr), 0.05);
}
.chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: var(--mono);
}
.chart-table th, .chart-table td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.chart-table th {
  color: var(--dim);
  font-weight: 600;
}
.chart-table td {
  color: var(--ink);
}
.chart-table-wrap {
  max-height: 180px;
  overflow-y: auto;
}

/* Payouts Card */
.payout-hour-card {
  transition: border-color .2s;
}
.payout-hour-card:hover {
  border-color: rgba(var(--cr), 0.35);
}



/* simpler navigation: main links + MORE menu */
.more { position: relative; }
.more-btn { background: none; border: 0; padding: 0 0 6px; line-height: inherit; vertical-align: top; margin-top: -1px; font: 700 10.5px var(--mono); letter-spacing: 0.08em; color: var(--faint); cursor: pointer; }
.more-btn:hover, .more:focus-within .more-btn { color: var(--ink); }
.more-menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 180px; background: #0a0a0a; border: 1px solid var(--line); padding: 8px 14px; z-index: 50; flex-direction: column; gap: 0; }
.more:hover .more-menu, .more:focus-within .more-menu { display: flex; }
.more-menu a { padding: 9px 0 !important; border-bottom: 1px solid rgba(var(--cr), .06) !important; }
.more-menu a:last-child { border-bottom: 0 !important; }
.more-details summary { cursor: pointer; font: 700 10px var(--mono); letter-spacing: .08em; color: var(--dim); margin-top: 16px; list-style: none; }
.more-details summary::before { content: '+ '; }
.more-details[open] summary::before { content: '- '; }
.steps-line { font: 500 14px var(--sans) !important; color: var(--dim); max-width: none !important; }
.steps-line b { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(var(--cr), .5); border-radius: 50%; font: 700 10px var(--mono); color: var(--ink); margin-right: 4px; }
@media (max-width: 760px) {
  .more-btn { display: none; }
  .more-menu { display: flex; position: static; border: 0; padding: 0; background: none; min-width: 0; gap: 16px; }
  .more-menu a { padding: 0 !important; border: 0 !important; }
  .steps-line { font-size: 13px !important; line-height: 1.9; }
  .gauge .sub { display: none; }
}

/* ---------- multi-page docs ---------- */
#docsBody { max-width: 1280px; }
.dx { display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 44px; align-items: start; }
.dx-side, .dx-toc { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; }
.dx-head { font: 700 11px var(--mono); letter-spacing: .14em; margin-bottom: 14px; }
.dx-search { width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 10px 12px; font: 500 12px var(--mono); outline: none; margin-bottom: 18px; }
.dx-search:focus { border-color: rgba(var(--cr), .45); }
.dx-group { font: 700 10px var(--mono); letter-spacing: .1em; color: var(--faint); text-transform: uppercase; margin: 18px 0 8px; }
.dx-link { display: flex; gap: 10px; padding: 8px 10px; font-size: 13.5px; color: var(--dim); text-decoration: none; border-left: 1px solid var(--line); line-height: 1.35; }
.dx-link span { font: 600 10.5px var(--mono); color: var(--faint); padding-top: 2px; }
.dx-link:hover { color: var(--ink); background: var(--panel); }
.dx-link.on { color: var(--ink); border-left: 2px solid var(--ink); background: rgba(var(--cr), .05); }
.dx-results { display: flex; flex-direction: column; gap: 6px; }
.dx-hit { display: block; padding: 10px; border: 1px solid var(--line); text-decoration: none; }
.dx-hit b { display: block; font-size: 13px; margin-bottom: 4px; }
.dx-hit small { color: var(--dim); font-size: 12px; line-height: 1.5; }
.dx-hit mark { background: rgba(var(--cr), .25); color: var(--ink); }
.dx-none { color: var(--dim); font-size: 13px; }
.dx-main { min-width: 0; }
.dx-main .docs { max-width: 760px; }
.dx-main .docs .title { margin-top: 6px; }
.dx-crumb { font: 600 10.5px var(--mono); letter-spacing: .08em; color: var(--faint); margin-bottom: 26px; }
.dx-crumb b { color: var(--line); margin: 0 6px; font-weight: 400; }
.dx-crumb span { color: var(--dim); }
.dx-crumb em { font-style: normal; float: right; }
.dx-progress { height: 2px; background: var(--line); margin: 56px 0 18px; }
.dx-progress i { display: block; height: 100%; background: var(--ink); transition: width .4s; }
.dx-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dx-card { display: block; padding: 18px 20px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .2s, transform .2s; }
.dx-card:hover { border-color: rgba(var(--cr), .5); transform: translateY(-2px); }
.dx-card small { display: block; font: 700 10px var(--mono); letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.dx-card b { font: 400 19px var(--serif); }
.dx-card.next { text-align: right; }
.dx-toc a { display: block; padding: 5px 0; font-size: 12.5px; color: var(--dim); text-decoration: none; line-height: 1.4; }
.dx-toc a:hover { color: var(--ink); }
.dx-menu { display: none; }
@media (max-width: 1100px) { .dx { grid-template-columns: 220px minmax(0, 1fr); } .dx-toc { display: none; } }
@media (max-width: 760px) {
  .dx { grid-template-columns: 1fr; gap: 16px; }
  .dx-menu { display: block; background: var(--panel); border: 1px solid var(--line); padding: 10px 14px; font: 700 11px var(--mono); letter-spacing: .1em; text-align: left; }
  .dx-side { display: none; position: static; max-height: none; }
  .dx-side.open { display: block; }
  .dx-crumb em { float: none; display: block; margin-top: 6px; }
  .dx-pager { grid-template-columns: 1fr; }
}

/* ---------- learning chart (evolution page) ---------- */
.lc { border-top: 1px solid var(--line); padding-top: 18px; }
.lc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.lc-big { font: 400 20px var(--serif); margin-top: 6px; color: var(--dim); }
.lc-big b { font-weight: 400; font-size: 44px; color: #d5d5d5; text-shadow: 0 0 24px rgba(213, 213, 213, .35); margin-right: 4px; }
.lc-big span { font-size: 15px; }
.lc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lc-chip { font: 700 10px var(--mono); letter-spacing: .08em; padding: 5px 9px; border: 1px solid var(--line); color: var(--dim); }
.lc-chip.on { color: #d5d5d5; border-color: rgba(213, 213, 213, .5); }
.lc-svg { width: 100%; height: auto; display: block; }
.lc-grid { stroke: rgba(var(--cr), .07); }
.lc-base { stroke: rgba(var(--cr), .35); stroke-dasharray: 2 4; }
.lc-ax { fill: var(--faint); font: 600 10px var(--mono); }
.lc-line { fill: none; stroke: #d5d5d5; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(213, 213, 213, .5)); stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: lcDraw 2.2s ease-out forwards; }
.lc-dot { fill: #d5d5d5; }
.lc-pulse { fill: none; stroke: #d5d5d5; animation: lcPulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.lc-note { color: var(--faint); font-size: 12px; line-height: 1.55; margin-top: 8px; }
@keyframes lcDraw { to { stroke-dashoffset: 0; } }
@keyframes lcPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@media (max-width: 760px) { .lc-big b { font-size: 34px; } .lc-big span { display: block; margin-top: 4px; } .lc-sep { display: none; } .lc-svg { min-height: 190px; } }

/* longer brand name: keep MENU on screen on phones */
@media (max-width: 760px) { .brand { letter-spacing: .14em; font-size: 11px; } .nav { gap: 10px; } }
@media (max-width: 400px) { .brand { letter-spacing: .06em; } .wallet-btn { padding-left: 10px; padding-right: 10px; } }

/* ledger on phones: long model names and hashes wrap instead of widening the table */
#seal, #seal * { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 760px) {
  .ledger { table-layout: fixed; width: 100%; }
  .ledger th, .ledger td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; padding-left: 4px; padding-right: 4px; }
  .ledger th:nth-child(1), .ledger td:nth-child(1) { width: 28px; }
  .ledger th:nth-child(4), .ledger td:nth-child(4) { width: 56px; }
  .ledger th:last-child, .ledger td:last-child { width: 78px; }
  .ledger td small { display: block; white-space: normal; }
  .ledger td:nth-child(2) b, .ledger td:nth-child(2) > * { overflow-wrap: anywhere; word-break: break-all; white-space: normal; max-width: 100%; }
  .ledger .tag-genesis { display: inline-block; margin: 4px 0 0; white-space: nowrap; }
  .ledger td:nth-child(2) b + .tag-genesis, .ledger td:nth-child(2) .tag-genesis { display: table; }
}

/* Netlify Badge & Watermark Suppress */
[data-netlify-badge], .netlify-badge, #netlify-badge, a[href*="netlify.com"][class*="badge"], iframe[src*="netlify"] { display: none !important; opacity: 0 !important; pointer-events: none !important; }

/* Doto draws "." and ":" as little crosses, which makes 0.24 read like 0+24.
   These three characters come from a plain monospace face instead (later @font-face wins for its range). */
@font-face { font-family: 'Doto'; src: local('Menlo'), local('Consolas'), local('Courier New'), local('DejaVu Sans Mono'), local('Liberation Mono'), local('Roboto Mono'), local('Droid Sans Mono'); unicode-range: U+002C, U+002E, U+003A; font-weight: 100 900; }

/* ======================================================================
   SWARM layer: dot-matrix type, black ground, white/grey only,
   dotted rules instead of hairlines. Sits on top of the base styles.
   ====================================================================== */
html { font-size-adjust: 0.58; }
html, body { background-color: var(--bg); }
body {
  font-family: var(--dot); font-weight: 700; letter-spacing: .02em;
  background-image: radial-gradient(rgba(255, 255, 255, .065) 1px, transparent 1.4px);
  background-size: 14px 14px;
}
::selection { background: var(--ink); color: #000; }
:focus-visible { outline: 2px dotted var(--ink); outline-offset: 3px; }
#stars { display: none; }
* { scrollbar-color: #555 #000; }

/* nav */
.nav { background: #000; border-bottom: 2px dotted rgba(var(--cr), .25); padding: 16px 40px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 0; font: 900 26px var(--dot); letter-spacing: .16em; }
.brand::before { content: ''; flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: 15px 0 0 #9a9a9a, 30px 0 0 #5c5c5c; margin-right: 44px; }
.links { gap: 4px; align-items: center; }
.links a, .more-btn { font: 800 15px var(--dot); letter-spacing: .08em; color: #9a9a9a; padding: 8px 12px; border: 0; margin: 0; }
.links a.on { background: var(--ink); color: #000; border: 0; }
.links a:hover, .more-btn:hover { color: var(--ink); }
.links a.on:hover { color: #000; }
.more-menu { background: #000; border: 2px dotted rgba(var(--cr), .35); padding: 6px; }
.more-menu a { padding: 10px 12px !important; border-bottom: 1px dotted rgba(var(--cr), .15) !important; }
.wallet-btn { font: 800 15px var(--dot); letter-spacing: .08em; border: 2px dotted var(--ink); padding: 9px 16px; background: #000; }
.wallet-btn:hover { background: var(--ink); color: #000; }
.navmeta, .conn-pill { font: 800 13px var(--dot); }
.conn-pill { border: 2px dotted rgba(var(--cr), .3); }
.conn-dot, .conn-dot.live { background: var(--ink); box-shadow: none; }
.conn-dot.offline { background: #000; border: 1px solid var(--ink); }
.conn-popover { background: #000; border: 2px dotted rgba(var(--cr), .35); }
.menu-btn { font: 800 15px var(--dot); border: 2px dotted var(--ink); padding: 8px 12px; }
.demo-banner { font: 800 13px var(--dot); letter-spacing: .14em; background: var(--ink); color: #000; }

/* CA bar */
.ca-bar { background: #000; border-bottom: 2px dotted rgba(var(--cr), .25); top: 72px; padding: 8px 40px; }
.ca-badge, .ca-address, .ca-copy-btn, .ca-action-btn, .foot-copy-btn { font-family: var(--dot); font-weight: 800; font-size: 13px; }
.ca-badge, .ca-copy-btn, .ca-action-btn, .foot-copy-btn, .footer-ca-wrap, .social-icon { border: 2px dotted rgba(var(--cr), .35); border-radius: 0; background: #000; }
.ca-action-btn.primary { background: var(--ink); color: #000; border-style: solid; }

/* type */
.k, .eyebrow { font: 800 12px/1.4 var(--dot); letter-spacing: .2em; }
h2.title { font: 900 clamp(34px, 4.2vw, 60px)/1 var(--dot); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.lede { font: 700 17px/1.55 var(--dot); color: var(--dim); }
.hero-copy h1 { font: 900 clamp(34px, 4.6vw, 66px)/1 var(--dot); text-transform: uppercase; text-wrap: balance; }
.hero-copy p, .steps-line { font: 700 16px var(--dot) !important; }
.stat .v, .corner .v, .split b { font: 900 34px/1 var(--dot); font-variant-numeric: tabular-nums; }
.stat .k, .corner .k { font-size: 11px; }
.serif { font-family: var(--dot); font-weight: 900; }
.docs h3 { font: 900 30px/1.1 var(--dot); text-transform: uppercase; }
.docs p, .docs li { font: 700 16px/1.75 var(--dot); color: rgba(var(--cr), .82); }
.docs code { font: 800 14px var(--dot); }

/* surfaces */
.panel, .chart-panel, .flow-canvas-wrap, .dx-card, .dx-hit, .sev, .split > div { border: 2px dotted rgba(var(--cr), .26); background: rgba(0, 0, 0, .55); }
a.panel:hover, .dx-card:hover { border-color: var(--ink); background: rgba(var(--cr), .04); }
.row, .model, .tent, .qlist .q, table.ledger td, .answers .a, .chart-table th, .chart-table td, .docs td, .docs th { border-bottom: 1px dotted rgba(var(--cr), .16) !important; }
table.ledger th { border-bottom: 2px dotted rgba(var(--cr), .3); }
.row, .model, .tent, table.ledger, .log, .qlist, .note, .empty, .pairsub, .chart-table, .conn-row, .part { font-family: var(--dot); font-weight: 700; font-size: 14px; }
.log { line-height: 1.8; }
.score { font: 900 22px var(--dot); }
.score.low { color: var(--dim); text-decoration: line-through; }
.pill { font: 800 12px var(--dot); border: 2px dotted rgba(var(--cr), .4); }
.pill.active { color: #000; background: var(--ink); border-style: solid; }
.pill.severed { color: var(--dim); text-decoration: line-through; }
.pill.regrowing { color: var(--ink); }

/* controls */
.btn { font: 900 15px var(--dot); letter-spacing: .1em; background: var(--ink); color: #000; padding: 15px; }
.btn.ghost, .hournav button, .chart-toggle-btn { background: #000; color: var(--ink); border: 2px dotted rgba(var(--cr), .55); font-family: var(--dot); font-weight: 800; }
.search, .ask textarea, .dx-search, input[type="text"] { background: #000; border: 2px dotted rgba(var(--cr), .32); color: var(--ink); font: 800 15px var(--dot); }
.search:focus, .ask textarea:focus, .dx-search:focus { border-color: var(--ink); }
.cta { font: 800 15px var(--dot); }
.cta.main { background: var(--ink); color: #000 !important; padding: 12px 20px !important; border: 0; }
.cta.alt { border: 2px dotted rgba(var(--cr), .5); padding: 10px 18px !important; color: var(--ink); }
.note.err { color: var(--ink); text-decoration: underline dotted; text-underline-offset: 4px; }
.note.ok { color: var(--ink); }
#toast { font: 800 14px var(--dot); background: var(--ink); color: #000; }
#toast.err { background: #000; color: var(--ink); border: 2px dotted var(--ink); }

/* attach */
.model .dot { border: 2px dotted rgba(var(--cr), .55); }
.model.sel .dot::after { box-shadow: none; }
.pairtag { font: 900 15px var(--dot); border: 2px dotted var(--ink); }
.pairbox canvas { height: 360px; }

/* live hero */
.hero { --stage-h: clamp(560px, calc(100vh - 190px), 960px); }
.gauge .title { font: 800 13px var(--dot); letter-spacing: .2em; }
.gauge .sub { font: 700 11px var(--dot); }
.gauge .rail { background: transparent; border-left: 2px dotted rgba(var(--cr), .45); width: 0; }
.tick span, .marker .val, .marker .val small, .roll-display { font-family: var(--dot); font-weight: 800; }
.marker .val { background: #000; border: 2px dotted rgba(var(--cr), .35); border-radius: 0; font-size: 18px; }
.marker .glow { box-shadow: none; }

/* evolution + learning chart */
.stage .n { font: 900 18px var(--dot); text-transform: uppercase; }
.stage .now { font: 800 12px var(--dot); border: 2px dotted var(--ink); }
.track { height: 0; background: none; border-top: 2px dotted rgba(var(--cr), .3); }
.track i { box-shadow: none; height: 2px; top: -2px; }
.part .sw { border-radius: 0; background: rgba(var(--cr), .08); }
.part .sw i { border-radius: 0; box-shadow: none !important; }
.lc-big { font: 700 18px var(--dot); }
.lc-big b { font: 900 48px var(--dot); color: var(--ink); text-shadow: none; }
.lc-chip { font: 800 12px var(--dot); border: 2px dotted rgba(var(--cr), .35); }
.lc-chip.on { color: #000; background: var(--ink); border-style: solid; }
.lc-line { stroke: var(--ink); filter: none; stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.lc-dot { fill: var(--ink); } .lc-pulse { stroke: var(--ink); }
.lc-ax { font: 700 12px var(--dot); }

/* docs */
.dx-head, .dx-group, .dx-crumb, .dx-card small, .dx-link span { font-family: var(--dot); font-weight: 800; font-size: 12px; }
.dx-link { font: 700 15px var(--dot); border-left: 2px dotted rgba(var(--cr), .25); }
.dx-link.on { border-left: 3px solid var(--ink); }
.dx-card b { font: 900 20px var(--dot); }
.dx-progress { height: 0; border-top: 2px dotted rgba(var(--cr), .3); background: none; }
.dx-progress i { height: 2px; margin-top: -2px; }
.dx-toc a { font: 700 13px var(--dot); }
.swatch { border-radius: 50%; box-shadow: none; }

/* treasury flow + tooltips */
.flow-canvas-wrap { background: #000; }
.flow-tooltip { background: #000; border: 2px dotted var(--ink); font-family: var(--dot); }
.flow-tooltip .tt-title, .flow-tooltip .tt-row, .flow-tooltip .tt-sub, .flow-tooltip .tt-link { font-family: var(--dot); font-weight: 700; }

/* log badges: one quiet style, the kind is the text */
.tag-badge, .tag-dev, .tag-genesis, .tag-burn, .tag-user, .tag-treasury, [class^="tag-"] { font: 800 11px var(--dot); border: 1px dotted rgba(var(--cr), .45) !important; background: transparent !important; color: var(--dim) !important; box-shadow: none !important; text-shadow: none !important; border-radius: 0 !important; }
.tag-judge, .tag-eval, .tag-evolution, .tag-attach { color: var(--ink) !important; border-color: var(--ink) !important; }
.log .mind, .log .level, .log .crack, .log .unmask, .log .judge { text-shadow: none; color: var(--ink); }
.log .sever, .log .warn { color: var(--dim); }

footer { border-top: 2px dotted rgba(var(--cr), .25); background: #000; font: 700 13px var(--dot); }

@media (max-width: 760px) {
  .nav { padding: 12px 16px; }
  .brand { font-size: 20px; letter-spacing: .12em; }
  .brand::before { width: 9px; height: 9px; box-shadow: 12px 0 0 #9a9a9a, 24px 0 0 #5c5c5c; margin-right: 34px; }
  .links { background: #000; border-bottom: 2px dotted rgba(var(--cr), .3); }
  .ca-bar { top: 62px; padding: 8px 16px; }
  h2.title { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .page.on { animation: none; } * { scroll-behavior: auto !important; } }
/* inline headings written for the old serif face: give them the heavy dot weight */
[style*="var(--serif)"] { font-weight: 800 !important; }
@media (max-width: 760px) {
  .nav { gap: 8px; }
  .conn-pill { display: none; }
  .wallet-btn { font-size: 13px; padding: 8px 10px; margin-left: auto; }
  .menu-btn { margin-left: 0; font-size: 13px; padding: 8px 10px; }
}
@media (max-width: 400px) {
  .brand { font-size: 17px; letter-spacing: .08em; }
  .brand::before { margin-right: 28px; width: 8px; height: 8px; box-shadow: 10px 0 0 #9a9a9a, 20px 0 0 #5c5c5c; }
}
div:has(> #unPct) { flex-wrap: wrap; }
div:has(> #unPct) > div { min-width: 0; }
@media (max-width: 760px) { #unPct { font-size: 38px !important; } }

/* treasury flow tooltip: shown by class, never re-created, so it can't flicker */
.flow-tooltip.on { display: block; }
.flow-tooltip .tt-row code { font-family: var(--dot); font-weight: 700; color: var(--ink); }
