/* GRYPHON: a pixel bestiary on parchment. Jersey 10 for the big type, Hanken Grotesk for reading, Spline Sans Mono
   for numbers. Hard ink borders and offset shadows, square corners, nothing blurred. */
@font-face { font-family: "Jersey 10"; src: url(../fonts/jersey-10-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url(../fonts/spline-sans-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url(../fonts/spline-sans-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url(../fonts/spline-sans-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f4eddc;
  --paper-2: #ebe1c9;
  --card: #fffaf0;
  --ink: #18162b;
  --ink-2: #4b4766;
  --ink-3: #807a96;
  --azure: #2a55c8;
  --azure-2: #5f86e6;
  --sky: #9cc0f2;
  --sky-2: #c9dcf7;
  --red: #d8432a;
  --gold: #f1b12f;
  --gold-2: #fbe2a2;
  --leaf: #2c8a57;
  --line: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-s: 3px 3px 0 var(--ink);
  --pixel: "Jersey 10", ui-monospace, monospace;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  /* the five eras' skies (sky, ground, edge, stars), same as the art */
  --era0: #3b2a12; --era0s: #ffd86a;
  --era1: #2a2346; --era1s: #e8d8ff;
  --era2: #1f3d36; --era2s: #c8fff0;
  --era3: #232f48; --era3s: #dde8ff;
  --era4: #2e2e33; --era4s: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--azure); text-underline-offset: 3px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; line-height: .9; margin: 0; letter-spacing: .5px; }
h2 { font-size: clamp(40px, 5vw, 60px); }
h3 { font-size: 30px; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--sans); color: var(--ink); background: var(--card); border: var(--line) solid var(--ink); box-shadow: var(--shadow-s); padding: 12px 18px; cursor: pointer; text-decoration: none; transition: transform .06s, box-shadow .06s; min-height: 44px; }
.btn:hover { background: var(--gold-2); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: #c0361f; }
.btn.blue { background: var(--azure); color: #fff; }
.btn.blue:hover { background: #2148ad; }
.btn.small { padding: 8px 12px; font-size: 14px; min-height: 38px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-s); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font: 600 12.5px/1.4 var(--mono); border: 2px solid var(--ink); background: var(--card); white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--paper); }
.tag { display: inline-block; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .8px; padding: 4px 6px; background: var(--ink); color: var(--paper); }
.tag.red { background: var(--red); color: #fff; }
.tag.gold { background: var(--gold); color: var(--ink); }
.tag.blue { background: var(--azure); color: #fff; }

/* ---------------------------------------------------------------- header */
.sky { position: sticky; top: 0; z-index: 20; background: var(--azure); border-bottom: var(--line) solid var(--ink); }
.bar { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 10px 24px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 400 34px/1 var(--pixel); text-shadow: 3px 3px 0 var(--ink); letter-spacing: 1px; }
.brand img { border: 2px solid var(--ink); image-rendering: pixelated; }
nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 8px 10px; white-space: nowrap; }
nav a:hover { background: rgba(0, 0, 0, .18); }
.net { font: 600 12px/1 var(--mono); color: var(--ink); background: var(--sky-2); border: 2px solid var(--ink); padding: 6px 8px; white-space: nowrap; }
.net.bad { background: var(--gold); }
.clouds { position: absolute; inset: 0; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M20 30h8v-4h12v-4h16v4h8v4h8v8H20zM150 18h6v-4h10v-4h12v4h6v4h6v6h-40z'/%3E%3C/svg%3E"); background-size: 240px 60px; }
.banner { background: var(--gold); border-bottom: var(--line) solid var(--ink); padding: 10px 24px; font-weight: 700; font-size: 14.5px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; }
.banner .seg { display: inline-flex; border: 2px solid var(--ink); }
.banner .seg button { font: 700 13px/1 var(--sans); background: var(--card); border: 0; padding: 7px 10px; cursor: pointer; color: var(--ink); }
.banner .seg button + button { border-left: 2px solid var(--ink); }
.banner .seg button.on { background: var(--ink); color: var(--gold); }

main { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 56px 0 64px; }
.kicker { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 1.4px; color: var(--azure); margin-bottom: 18px; }
h1 { font-size: clamp(64px, 8.6vw, 124px); line-height: .82; margin-bottom: 22px; }
h1 em { font-style: normal; color: var(--red); text-shadow: 4px 4px 0 var(--gold); }
.lede { font-size: 19px; line-height: 1.55; max-width: 560px; color: var(--ink-2); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 30px; }
.ticker { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, 1fr)); margin: 0; border: var(--line) solid var(--ink); background: var(--card); box-shadow: var(--shadow); }
.ticker div { padding: 10px 12px; border-right: 2px solid var(--ink); min-width: 0; }
.ticker div:last-child { border-right: 0; }
.ticker dt { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); margin-bottom: 6px; }
.ticker dd { margin: 0; font: 400 30px/1 var(--pixel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker dd small { font: 600 12px var(--mono); color: var(--ink-3); }

.nest { margin: 0; }
.nest .frame { position: relative; border: var(--line) solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--card); padding: 12px; }
.nest .frame img { width: 100%; aspect-ratio: 1; cursor: zoom-in; }
.nest .stamp { position: absolute; top: -16px; right: -14px; transform: rotate(4deg); background: var(--gold); border: var(--line) solid var(--ink); padding: 6px 10px; font: 400 22px/1 var(--pixel); box-shadow: var(--shadow-s); }
.nest figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.nest figcaption b { font: 400 34px/1 var(--pixel); }
.nest .hatch { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 14px; }
.nest .hatch button { padding: 0; border: 2px solid var(--ink); background: none; cursor: pointer; }
.nest .hatch button:hover { transform: translateY(-2px); }
.nest .hatch img { width: 100%; aspect-ratio: 1; }

/* ---------------------------------------------------------------- panels */
.panel { background: var(--card); border: var(--line) solid var(--ink); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.swap-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: start; padding: 8px 0 72px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: var(--line) solid var(--ink); margin-bottom: 18px; }
.tabs button { font: 400 30px/1 var(--pixel); padding: 10px; border: 0; background: var(--paper-2); color: var(--ink-2); cursor: pointer; }
.tabs button + button { border-left: var(--line) solid var(--ink); }
.tabs button.on { background: var(--ink); color: var(--gold); }
.field { border: var(--line) solid var(--ink); background: #fff; padding: 12px 14px; }
.field label { display: flex; justify-content: space-between; font: 600 12px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; }
.field .row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 40px/1 var(--pixel); color: var(--ink); background: transparent; padding: 0; }
.field .unit { font: 700 15px var(--sans); }
.field .bal button { font: 600 12px var(--mono); border: 0; background: none; color: var(--azure); cursor: pointer; padding: 0; text-decoration: underline; }
.quick { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.quick button { font: 600 12.5px var(--mono); border: 2px solid var(--ink); background: var(--paper); padding: 5px 8px; cursor: pointer; }
.quick button:hover { background: var(--gold-2); }
.arrow { text-align: center; font: 400 26px/1 var(--pixel); margin: 10px 0; color: var(--ink-3); }
.result { border: var(--line) dashed var(--ink); padding: 12px 14px; background: var(--paper); }
.result .big { font: 400 40px/1 var(--pixel); }
.result .sub { font: 600 12.5px var(--mono); color: var(--ink-2); margin-top: 4px; }
.fate { margin-top: 14px; padding: 12px; border: 2px solid var(--ink); }
.fate.born { background: #e6f3ea; }
.fate.gone { background: #fbe4dc; }
.fate p { margin: 0 0 8px; font-weight: 700; font-size: 14.5px; }
.fate .thumbs { display: flex; gap: 5px; flex-wrap: wrap; }
.fate .thumbs img { width: 40px; height: 40px; border: 2px solid var(--ink); }
.fate .thumbs span { align-self: center; font: 600 12px var(--mono); color: var(--ink-2); }
.swap .go { width: 100%; margin-top: 16px; font-size: 17px; padding: 15px; }
.swap .fine { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; }
.notice { margin-top: 12px; padding: 10px 12px; background: var(--gold-2); border: 2px solid var(--ink); font-size: 14px; font-weight: 600; }

.chart { position: relative; height: 290px; border: 2px solid var(--ink); background: linear-gradient(var(--paper) 0 0) padding-box; }
.chart canvas { width: 100%; height: 100%; display: block; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); font: 600 12px/1.35 var(--mono); padding: 6px 8px; white-space: nowrap; transform: translate(-50%, -110%); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 16px 0 0; border: 2px solid var(--ink); }
.facts div { padding: 10px 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); min-width: 0; }
.facts div:nth-child(3n) { border-right: 0; }
.facts div:nth-last-child(-n + 3) { border-bottom: 0; }
.facts dt { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); }
.facts dd { margin: 6px 0 0; font: 400 26px/1 var(--pixel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- blocks */
.block { padding: 64px 0 24px; border-top: var(--line) solid var(--ink); }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.block-head p { max-width: 560px; margin: 0; }

.mystats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.mystats .chip { font-size: 13.5px; padding: 6px 10px; }
.pendbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: var(--line) solid var(--ink); background: var(--sky-2); margin-bottom: 20px; box-shadow: var(--shadow-s); }
.pendbar p { margin: 0; font-weight: 700; }
.empty { border: var(--line) dashed var(--ink-3); padding: 34px 20px; text-align: center; color: var(--ink-2); }
.empty .btn { margin-top: 12px; }
.sub-h { font: 400 30px/1 var(--pixel); margin: 30px 0 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sub-h small { font: 600 13px var(--sans); color: var(--ink-2); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.card { background: var(--card); border: var(--line) solid var(--ink); box-shadow: var(--shadow-s); display: flex; flex-direction: column; min-width: 0; position: relative; }
.card > button.pic { padding: 0; border: 0; border-bottom: var(--line) solid var(--ink); background: none; cursor: zoom-in; display: block; }
.card > button.pic img { width: 100%; aspect-ratio: 1; }
.card .meta { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.card .meta .top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.card .meta b { font: 400 25px/1 var(--pixel); }
.card .meta .who { font: 500 12px var(--mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .acts { display: flex; gap: 6px; }
.card .acts .btn { flex: 1; padding: 6px 8px; min-height: 34px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }
.card .flag { position: absolute; top: 8px; left: 8px; }
.card.next { outline: 3px dashed var(--red); outline-offset: 3px; }
.era-dot { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--ink); vertical-align: -1px; margin-right: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 20px; padding: 14px; border: var(--line) solid var(--ink); background: var(--card); }
.filters .group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filters .group > span { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); margin-right: 2px; }
.filters button.chip { cursor: pointer; }
.filters select { font: 600 13px var(--sans); border: 2px solid var(--ink); background: #fff; padding: 6px 8px; color: var(--ink); max-width: 100%; }
.filters label.chk { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; }
.filters input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
.more { display: flex; justify-content: center; padding: 26px 0 8px; }

.eras { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: var(--line) solid var(--ink); box-shadow: var(--shadow); }
.era { color: #fff; padding: 16px; border-right: var(--line) solid var(--ink); display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; }
.era:last-child { border-right: 0; }
.era h3 { font-size: 34px; }
.era .range { font: 600 12.5px var(--mono); opacity: .85; }
.era .count { font: 400 44px/1 var(--pixel); }
.era .count small { display: block; font: 600 12px/1.3 var(--mono); opacity: .8; margin-top: 4px; }
.era .state { align-self: flex-start; font: 600 10.5px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; background: rgba(255, 255, 255, .16); padding: 4px 6px; }
.era.closed .state { background: #fff; color: var(--ink); }
.era.open .state { background: var(--gold); color: var(--ink); }
.era img { width: 100%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .35); }
.era .meter { height: 10px; border: 2px solid rgba(255, 255, 255, .8); margin-top: auto; }
.era .meter i { display: block; height: 100%; background: #fff; }

.feed { list-style: none; margin: 0; padding: 0; border: var(--line) solid var(--ink); background: var(--card); }
.feed li { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 2px solid var(--paper-2); }
.feed li:last-child { border-bottom: 0; }
.feed .what { font-size: 15px; min-width: 0; }
.feed .what .thumbs { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.feed .what .thumbs img { width: 30px; height: 30px; border: 2px solid var(--ink); }
.feed .what .thumbs button { padding: 0; border: 0; background: none; cursor: pointer; }
.feed .what .thumbs span { font: 600 12px var(--mono); color: var(--ink-2); align-self: center; }
.feed .when { font: 500 12.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.feed .k { justify-self: start; }

.rules { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.rule { grid-column: span 2; }
.rule:nth-child(4), .rule:nth-child(5) { grid-column: span 3; }
.rule { background: var(--card); border: var(--line) solid var(--ink); box-shadow: var(--shadow-s); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.rule .n { font: 400 54px/.8 var(--pixel); color: var(--red); }
.rule h3 { font-size: 30px; }
.rule p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.rule .demo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 6px; margin-top: auto; }
.rule .demo img { width: 44px; height: 44px; border: 2px solid var(--ink); }
.rule .demo .op { font: 400 28px/1 var(--pixel); }
.rule .demo .x { opacity: .25; filter: grayscale(1); position: relative; }
.rule.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; background: var(--ink); color: var(--paper); }
.rule.wide p { color: #d8d2c0; }
.rule.wide h3 { color: var(--gold); }
.split { display: flex; height: 34px; border: 2px solid var(--paper); margin-top: 6px; }
.split span { display: flex; align-items: center; padding: 0 10px; font: 600 12.5px var(--mono); white-space: nowrap; overflow: hidden; }
.split span:first-child { background: var(--red); flex: 80; }
.split span:last-child { background: var(--azure); flex: 20; }

.faq-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.faq details { border: var(--line) solid var(--ink); background: var(--card); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 800; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/.7 var(--pixel); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 16px 14px; color: var(--ink-2); }
.faq details.risk summary { background: #fbe4dc; }
.contracts h3 { margin-bottom: 12px; }
.contracts dl { margin: 0; display: grid; gap: 10px; }
.contracts dt { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); }
.contracts dd { margin: 2px 0 0; font: 500 13px var(--mono); overflow-wrap: anywhere; }

.foot { border-top: var(--line) solid var(--ink); background: var(--ink); color: #d8d2c0; padding: 30px 24px 40px; margin-top: 70px; }
.foot p { max-width: 1192px; margin: 0 auto 8px; font-size: 14px; }
.foot b { color: var(--gold); font-family: var(--pixel); font-weight: 400; font-size: 20px; }
.foot .muted { color: #a29c8a; }
.foot code { color: var(--gold-2); }

/* ---------------------------------------------------------------- the detail dialog */
dialog { border: var(--line) solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 0; background: var(--card); color: var(--ink); width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(24, 22, 43, .55); }
.dg { display: grid; grid-template-columns: 1fr 1fr; }
.dg .art { border-right: var(--line) solid var(--ink); }
.dg .art img { width: 100%; aspect-ratio: 1; }
.dg .info { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dg .info h3 { font-size: 46px; }
.dg .close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; font: 400 26px/1 var(--pixel); background: var(--card); border: var(--line) solid var(--ink); cursor: pointer; }
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); }
.traits div { padding: 6px 9px; border-bottom: 2px solid var(--paper-2); min-width: 0; }
.traits div:nth-child(odd) { border-right: 2px solid var(--paper-2); }
.traits dt { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); }
.traits dd { margin: 0; font-weight: 700; font-size: 14.5px; }
.dg .seed { font: 500 11.5px var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.dg .acts { display: flex; gap: 10px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--paper); border: var(--line) solid var(--gold); padding: 12px 18px; font-weight: 700; z-index: 60; max-width: calc(100vw - 32px); box-shadow: var(--shadow-s); }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .nest { max-width: 560px; }
  .swap-wrap { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rule, .rule:nth-child(4), .rule:nth-child(5) { grid-column: auto; }
  .rule:nth-child(5) { grid-column: 1 / -1; }
  .eras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .era:nth-child(3) { border-right: 0; }
  .era:nth-child(-n + 3) { border-bottom: var(--line) solid var(--ink); }
  .faq-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .bar { padding: 8px 16px; gap: 10px; flex-wrap: wrap; }
  .brand { font-size: 28px; }
  .brand img { width: 30px; height: 30px; }
  nav { order: 3; flex-basis: 100%; margin: 0 -6px; }
  nav a { padding: 6px; font-size: 13.5px; }
  .net { margin-left: auto; }
  html { scroll-padding-top: 110px; }
  main { padding: 0 16px; }
  .banner { padding: 10px 16px; font-size: 13.5px; }
  .hero { padding: 36px 0 44px; }
  .lede { font-size: 17px; }
  .ticker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ticker div:nth-child(3) { border-right: 0; }
  .ticker div:nth-child(-n + 3) { border-bottom: 2px solid var(--ink); }
  .ticker dd { font-size: 26px; }
  .nest .frame { box-shadow: 6px 6px 0 var(--ink); }
  .nest .stamp { right: -6px; }
  .nest .hatch { grid-template-columns: repeat(4, 1fr); }
  .panel { padding: 16px; box-shadow: var(--shadow-s); }
  .chart { height: 220px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3n) { border-right: 2px solid var(--ink); }
  .facts div:nth-child(2n) { border-right: 0; }
  .facts div:nth-last-child(-n + 3) { border-bottom: 2px solid var(--ink); }
  .facts div:nth-last-child(-n + 2) { border-bottom: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .block { padding: 48px 0 16px; }
  .rules { grid-template-columns: 1fr; }
  .rule:nth-child(5) { grid-column: auto; }
  .rule.wide { grid-template-columns: 1fr; }
  .eras { grid-template-columns: 1fr 1fr; }
  .era { border-bottom: var(--line) solid var(--ink); }
  .era:nth-child(3) { border-right: var(--line) solid var(--ink); }
  .era:nth-child(2n) { border-right: 0; }
  .era:last-child { grid-column: span 2; border-bottom: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .era:last-child img { width: 96px; }
  .era:last-child .meter { flex-basis: 100%; }
  .feed li { grid-template-columns: 1fr auto; }
  .feed .k { grid-column: 1 / -1; }
  .dg { grid-template-columns: 1fr; }
  .dg .art { border-right: 0; border-bottom: var(--line) solid var(--ink); }
  .dg .info h3 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .nest .hatch button { transition: none; } }
