/* The Census. One layout system for every page:
   container 1360 px, one left edge (the gutter), spacing 8/16/24/32/48/64/96,
   one section head (Cormorant italic title + one sans line), two surfaces: the paper plate and the night glass. */

@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-ext-500-italic.woff2) format("woff2"); font-weight: 500 600; font-style: italic; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "JB Mono"; src: url(/fonts/jetbrains-mono.woff2) format("woff2"); font-display: swap; }

:root {
  --deep: #0B1026;
  --indigo: #141B3C;
  --star: #F6E7C1;
  --gold: #C9A24B;
  --rose: #B8627D;
  --paper: #E8DFC9;
  --ink: #141B3C;
  --muted: #c9c3d6;
  --line: rgba(201, 162, 75, 0.42);
  --glass: rgba(20, 27, 60, 0.82);
  --display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --text: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JB Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4.2vw, 64px);
  --wrap: 1360px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--deep) radial-gradient(120% 80% at 70% 0%, #141B3C 0%, #0B1026 60%) fixed;
  color: var(--star);
  font: 400 18px/1.55 var(--text);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
/* the engraved ground with its gold arcs lives only behind the rose of the first screen, fading out before the copy */
.first { isolation: isolate; }
.first::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url(/img/ground-1920.webp) right top / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 46%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, transparent 46%, #000 70%); }
@media (max-width: 1100px) { .first::before { background-image: url(/img/ground-900.webp); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 62%); mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 62%); } }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 16px; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- nav: one short row ---------------------------------------------------------------------------------- */
.nav { display: flex; align-items: center; justify-content: flex-end; gap: var(--s4); min-height: 64px; position: relative; z-index: 5; }
.navlinks { display: flex; gap: var(--s4); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; background: url(/img/star-192.png) center / contain no-repeat; }
.nav a { text-decoration: none; font-weight: 500; font-size: 17px; color: var(--muted); padding: 8px 0; position: relative; }
.nav a:hover { color: var(--star); }
.nav a[aria-current="page"] { color: var(--star); }
.nav .home { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 24px; color: var(--star); margin-right: var(--s1); }
.badge-wrap { position: relative; }
.badge-wrap[hidden] { display: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 20px 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; color: var(--paper); background: rgba(11, 16, 38, 0.6); cursor: help; position: relative; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.badge[hidden] { display: none; }
.badge-wrap .tip { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 86vw); padding: 16px 20px; background: var(--paper); color: var(--ink); border-radius: 12px; font-size: 16px; line-height: 1.45; box-shadow: 0 18px 40px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .18s, transform .18s; }
.badge-wrap:hover .tip, .badge:focus-visible + .tip { opacity: 1; transform: none; }

/* ---- buttons -------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 1.3em; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 18px; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .12s ease-out, background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: #d8b35d; }
.btn-ghost { border-color: var(--line); color: var(--star); background: rgba(11, 16, 38, 0.35); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(201, 162, 75, 0.08); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ink { background: var(--ink); color: var(--star); }
.btn-ink:hover { background: #1f2852; }
.btn-line-ink { border-color: rgba(20, 27, 60, .35); color: var(--ink); background: transparent; }
.btn-line-ink:hover { border-color: var(--ink); }

/* ---- first screen ----------------------------------------------------------------------------------------- */
.first { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); align-items: stretch; }
.first .intro { display: flex; flex-direction: column; justify-content: center; padding: 96px 0 var(--s4) var(--gutter); max-width: 700px; justify-self: end; width: 100%; position: relative; z-index: 3; }
.first .nav { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; }
.name { white-space: nowrap; font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(60px, 5.8vw, 112px); line-height: 0.92; letter-spacing: -0.01em; margin: 0; color: var(--star); }
.name-rule { height: 1px; width: 100%; max-width: 520px; background: linear-gradient(90deg, var(--gold), rgba(201,162,75,0)); margin: var(--s3) 0 var(--s3); }
.headline { font-weight: 600; font-size: clamp(24px, 2.25vw, 32px); line-height: 1.2; margin: 0 0 var(--s2); max-width: 30ch; }
.headline em { font-style: normal; color: var(--gold); }
.lede { font-size: 18px; color: #e9e2d2; margin: 0 0 var(--s3); max-width: 46ch; }
.lede b { color: var(--star); font-weight: 700; }
.actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.count { position: relative; display: flex; flex-direction: column; justify-content: center; padding-left: var(--s3); margin-left: var(--s1); min-height: 52px; }
.count::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.count b { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: .95; font-variant-numeric: lining-nums tabular-nums; }
.count span { font-size: 16px; color: var(--muted); }

/* the cartouche: the imprint of the atlas sheet: the CA, Copy, and pump.fun / X / the chart, on paper */
.cartouche { margin-top: var(--s4); max-width: 520px; padding: 16px 20px; border-radius: 12px; color: var(--ink);
  background: var(--paper) url(/img/paper-800.webp) center / 220% auto; box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(201,162,75,.9), 0 18px 40px rgba(0,0,0,.35); }
.ca-line { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 0 10px; min-width: 0; }
.ca-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(20,27,60,.18); }
.ca-line .lbl { font-weight: 700; font-size: 16px; color: #6b5420; flex: none; }
.ca-line .val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 20px; color: #3b3f5c; }
.ca-line .val.mono { font-family: var(--mono); font-style: normal; font-weight: 400; font-size: 16px; color: var(--ink); cursor: pointer; }
.ca-line .copy[disabled] { opacity: .45; cursor: not-allowed; }
.cartouche .links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 12px; }
.cartouche .lnk { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(20,27,60,.28); background: rgba(255,255,255,.4); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; transition: border-color .15s, background .15s; }
.cartouche .lnk img { width: 22px; height: 22px; object-fit: contain; }
.cartouche .lnk:hover { border-color: var(--ink); background: rgba(255,255,255,.7); }
.cartouche .lnk[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.cartouche .lnk[aria-disabled="true"]:hover { border-color: rgba(20,27,60,.28); background: rgba(255,255,255,.4); }
.hint { font-size: 16px; color: var(--muted); margin: var(--s1) 0 0; min-height: 1.5em; }

/* the sky: the rose window plate and its canvas */
.skycol { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); padding: 72px 0 var(--s3); min-width: 0; }
.sky { position: relative; width: min(48vw, 100svh - 236px, 830px); aspect-ratio: 1; }
.nb { white-space: nowrap; }
.engraved-slot { position: relative; width: min(100%, 680px); min-height: 52px; display: flex; justify-content: center; }
.engraved { position: absolute; left: 50%; top: 0; transform: translate(-50%, -8px); display: flex; align-items: center; gap: 12px; max-width: min(92%, 640px); margin: 0; padding: 10px 20px; border-radius: 12px; background: rgba(11,16,38,.94); border: 1px solid var(--line); font-size: 16px; color: var(--paper); opacity: 0; pointer-events: none; transition: opacity .3s ease-out, transform .3s ease-out; width: max-content; white-space: nowrap; }
.engraved.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.engraved::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 9px; background: var(--gold); }
.engraved img { width: 18px; height: 18px; flex: none; }
.engraved .pop-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.engraved b { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--star); }
.engraved a { color: var(--gold); flex: none; }
.smp { margin-left: 10px; font-size: 16px; color: var(--muted); font-weight: 400; }
.hovercard { position: fixed; z-index: 40; width: 300px; padding: 16px 20px; border-radius: 12px; pointer-events: none; color: var(--ink); background: var(--paper) url(/img/paper-800.webp) center / 220% auto; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(201,162,75,.9), 0 18px 40px rgba(0,0,0,.45); }
.hovercard p { margin: 0; }
.hovercard .hc-n { font-size: 16px; font-weight: 600; color: #6b5420; }
.hovercard .hc-name { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 30px; line-height: 1.1; margin: 2px 0 8px; overflow-wrap: anywhere; }
.hovercard .hc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; padding: 3px 0; }
.hovercard .hc-row span:first-child { color: #4b5170; }
@keyframes tick { from { color: var(--gold); transform: translateY(-3px); } to { transform: none; } }
.tick { animation: tick .6s ease-out; display: inline-block; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.skycol .find { position: relative; width: min(420px, 80%); z-index: 4; }
.skycol .find ul { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; }
.src { font-size: 16px; color: var(--muted); margin: 4px 0 0; max-width: 46ch; }

.find input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11, 16, 38, 0.86); color: var(--star); font-size: 16px; }
.find input::placeholder { color: #a9a3ba; }
.find ul { list-style: none; margin: 6px 0 0; padding: 6px; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.45); max-height: 320px; overflow: auto; }
.find ul[hidden] { display: none; }
.find li button { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 16px; color: var(--ink); }
.find li button:hover, .find li button:focus-visible { background: rgba(20,27,60,.08); }
.find li .who { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 20px; }
.find li .w { font-family: var(--mono); font-size: 16px; color: #4b5170; }
.find .none { padding: 10px 12px; font-size: 16px; }

/* ---- sections below ---------------------------------------------------------------------------------------- */
.sec { padding-top: var(--s6); }
.sec:last-of-type { padding-bottom: var(--s7); }
.head { margin: 0 0 var(--s5); max-width: 760px; }
.head h2 { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; margin: 0 0 var(--s2); }
.head p { margin: 0; color: #e2dccd; font-size: 18px; }

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.numbers > div { position: relative; padding: var(--s4) var(--s3); display: flex; flex-direction: column; gap: 6px; }
.numbers > div::before { content: ""; position: absolute; left: 0; top: var(--s3); bottom: var(--s3); width: 1px; background: var(--line); }
.numbers > div:first-child { padding-left: 0; }
.numbers > div:first-child::before { display: none; }
.numbers .k { font-size: 16px; font-weight: 600; color: var(--gold); }
.numbers .v { font-variant-numeric: lining-nums tabular-nums; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 3.6vw, 56px); line-height: 1; }
.numbers .s { font-size: 16px; color: var(--muted); }
.formula { margin: var(--s3) 0 0; font-size: 16px; color: var(--muted); max-width: 80ch; }
.formula code { font-family: var(--mono); font-size: 16px; color: var(--paper); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); counter-reset: s; }
.step { padding: var(--s4) var(--s4); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.step h3 { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 30px; line-height: 1.05; margin: 0 0 var(--s2); }
.step h3::before { counter-increment: s; content: counter(s) "."; color: var(--gold); margin-right: 10px; font-style: normal; }
.step p { margin: 0; font-size: 17px; color: #e2dccd; }

.banner { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; max-height: 260px; display: flex; align-items: center; margin-bottom: var(--s5); background: #0d1230; border: 1px solid rgba(201,162,75,.25); }
.banner picture { position: absolute; top: 0; right: 0; bottom: 0; left: 42%; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.banner picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0d1230 0%, rgba(13,18,48,0) 28%); }
.banner .head { position: relative; margin: 0; padding: var(--s3) var(--s4); width: 42%; max-width: none; }
.banner .head p { font-size: 17px; }

/* ledger: rows, hairlines, the text face */
.ledger { width: 100%; border-collapse: collapse; font-size: 17px; }
.ledger th { text-align: left; font-size: 16px; font-weight: 600; color: var(--gold); padding: 12px 24px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger td { padding: 14px 24px; border-bottom: 1px solid rgba(201, 162, 75, 0.16); vertical-align: middle; }
.ledger tr.row { cursor: pointer; }
.ledger tr.row:hover td { background: rgba(201, 162, 75, 0.06); }
.ledger .nm { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 22px; }
.ledger .nm.anon { color: var(--muted); font-weight: 500; }
.ledger .r { text-align: right; }
.mag { display: inline-flex; align-items: center; gap: 8px; }
.mag img { width: 18px; height: 18px; }
.mag-2 img { width: 14px; height: 14px; opacity: .85; }
.mag-3 img { width: 10px; height: 10px; opacity: .7; }
.tag { display: inline-block; padding: 8px 16px; line-height: 1.2; border-radius: 999px; border: 1px solid var(--line); font-size: 16px; color: var(--paper); }

/* ---- paper plate: the dialogs and the star card ------------------------------------------------------------ */
.plate { background: var(--paper) url(/img/paper-800.webp) center / cover; color: var(--ink); border-radius: 16px; padding: var(--s4) var(--s4); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.plate h2, .plate h3 { font-family: var(--display); font-style: italic; font-weight: 600; margin: 0; line-height: 1.02; }
.plate .k { font-size: 16px; font-weight: 600; color: #6b5420; }
.plate .mono { color: var(--ink); }
dialog.plate { border: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; padding: var(--s4); }
dialog::backdrop { background: rgba(5, 8, 20, 0.72); }
.x { position: absolute; right: 16px; top: 16px; width: 48px; height: 48px; border-radius: 10px; border: 1px solid rgba(20,27,60,.25); background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.x:hover { border-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 var(--s3); }
.field label { font-size: 16px; font-weight: 600; }
.field input { min-height: 52px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(20,27,60,.3); background: rgba(255,255,255,.55); color: var(--ink); font-size: 18px; }
.field input:focus-visible { outline: 2px solid var(--ink); }
.field .help { font-size: 16px; color: #4b5170; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(20,27,60,.3); background: transparent; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--star); border-color: var(--ink); }
.warn { margin: 0 0 var(--s3); padding: 16px 20px; border-radius: 12px; background: rgba(20, 27, 60, .92); color: var(--star); font-size: 17px; line-height: 1.45; }
.warn b { color: var(--gold); }
.parsed { margin: var(--s3) 0 0; border-top: 1px solid rgba(20,27,60,.2); padding-top: var(--s3); }
.parsed ol { margin: 8px 0 0; padding-left: 22px; font-size: 16px; }
.parsed li { margin: 0 0 6px; }
.status { margin: var(--s2) 0 0; font-size: 16px; min-height: 1.5em; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s3); margin: var(--s3) 0; }
.card-grid div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-grid .v { font-size: 18px; font-weight: 600; }
.line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.line .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini { min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(20,27,60,.3); background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; flex: none; }
.mini:hover { border-color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--paper); color: var(--ink); padding: 12px 20px; border-radius: 12px; font-size: 16px; font-weight: 600; transition: opacity .2s, transform .2s; z-index: 50; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.err-line { font-size: 16px; color: var(--muted); }

/* ---- phone ------------------------------------------------------------------------------------------------- */
.dock { display: none; }
@media (max-width: 1100px) {
  .first { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .first .intro { justify-self: stretch; max-width: none; padding: 80px var(--gutter) 0; order: 2; }
  .first .nav { left: var(--gutter); right: var(--gutter); }
  .skycol { order: 1; padding: 72px var(--gutter) 0; }
  .sky { width: min(100%, 720px); }
  .skycol .find { width: min(100%, 520px); }
  .skycol .find ul { position: static; }
  .first .intro { padding-top: var(--s3); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers > div:nth-child(3) { padding-left: 0; }
  .numbers > div:nth-child(3)::before { display: none; }
}
.sky .stage { position: absolute; inset: 0; }
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { gap: 4px var(--s2); flex-wrap: wrap; padding-top: 8px; }
  .badge-wrap { margin-left: 0; order: 9; }
  .skycol { padding-top: 64px; }
  .engraved { max-width: 100%; width: auto; left: 0; right: 0; transform: translateY(-6px); padding: 8px 16px; white-space: nowrap; }
  .engraved.on { transform: none; }
  .engraved-slot { min-height: 46px; }
  .engraved .pop-t { overflow: hidden; text-overflow: ellipsis; flex: 1; }
  .engraved .smp { display: none; }
  .engraved b { font-size: 18px; }
  .first:has(.badge-wrap:not([hidden])) .skycol { padding-top: 108px; }
  .nav a { font-size: 16px; }
  .nav .home { display: none; }
  .badge { padding: 6px 16px; }
  .name { font-size: clamp(48px, 14vw, 64px); }
  .actions .btn-ghost { display: none; }
  .count { border-left: 0; padding-left: 0; margin-left: 0; }
  .ca { grid-template-columns: minmax(0, 1fr); }
  .links { justify-content: flex-start; }
  .steps, .numbers { grid-template-columns: minmax(0, 1fr); }
  .numbers > div { padding: var(--s3) 0; }
  .numbers > div::before { display: none; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(11,16,38,.98) 70%, rgba(11,16,38,0)); z-index: 20; }
  .dock .btn { flex: 1; }
  body.has-dock { padding-bottom: 84px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  dialog.plate { padding: var(--s3); }
  .banner { flex-direction: column; align-items: stretch; min-height: 0; max-height: none; }
  .banner picture { position: relative; left: auto; height: 150px; display: block; }
  .banner picture::after { background: linear-gradient(0deg, #0d1230 0%, rgba(13,18,48,0) 40%); }
  .banner img { object-position: 65% center; }
  .banner .head { width: auto; padding: var(--s3) var(--s4) var(--s4); }
  .ledger .hide-s { display: none; }
  .ledger td, .ledger th { padding: 12px 18px; }
  .entries, .entries tbody { display: block; }
  .entries thead { display: none; }
  .entries tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; position: relative; }
  .entries tr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(201,162,75,.16); }
  .entries td { display: block; padding: 0 !important; border: 0; background: none !important; }
  .entries td:nth-child(1) { grid-column: 2; grid-row: 2; text-align: right; color: var(--muted); }
  .entries td:nth-child(1)::before { content: "no. "; }
  .entries td:nth-child(2) { grid-column: 1; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
  .entries td:nth-child(3) { grid-column: 1; grid-row: 2; color: var(--muted); }
  .entries td:nth-child(4) { grid-column: 2; grid-row: 1; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- inner pages ------------------------------------------------------------------------------------------- */
.page { padding-top: var(--s3); padding-bottom: var(--s7); }
.page-title { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(38px, 4.4vw, 72px); line-height: .95; margin: 0 0 var(--s2); }
.tools { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin: 0 0 var(--s3); }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,16,38,.6); }
.chip-d { min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 16px; cursor: pointer; }
.chip-d[aria-pressed="true"] { background: var(--gold); color: var(--deep); }
.chip-d:hover { color: var(--star); }
.chip-d[aria-pressed="true"]:hover { color: var(--deep); }
.filter { min-height: 48px; width: min(340px, 100%); padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11,16,38,.86); font-size: 16px; }
.tools .src { margin: 0 0 0 auto; }
.more { display: flex; justify-content: center; padding-top: var(--s4); }
.paid { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s4); }
.paid-v { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 6vw, 88px); line-height: 1; font-variant-numeric: lining-nums; }
.paid-s { font-size: 18px; color: #e2dccd; max-width: 60ch; }
.cons { list-style: none; margin: 0; padding: 0; }
.con { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: var(--s3); padding: var(--s2) 0; color: var(--muted); }
.con::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(201,162,75,.16); }
.con-n { font-size: 16px; }
.con-name { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 30px; color: #8e88a4; }
.con.open .con-name, .con.next .con-name { color: var(--star); }
.con-t { font-size: 17px; }
.con-bar { height: 6px; border-radius: 3px; background: rgba(201,162,75,.16); overflow: hidden; }
.con-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--gold)); }
.con-s { font-size: 17px; text-align: right; }
.con.open .con-s, .con.next .con-s { color: var(--star); }
.star-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); align-items: center; min-height: calc(100svh - 64px); padding-top: 0; }
.star-card { position: relative; }
.star-sky { width: 100%; max-width: 760px; justify-self: center; aspect-ratio: auto; margin: 0; }
.star-sky .stage { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.lost-art { position: relative; border-radius: var(--radius); overflow: hidden; }
.lost-art img { width: 100%; height: auto; }
.lost-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--s4); }
.lost-copy p { max-width: 36ch; font-size: 19px; margin: var(--s2) 0 var(--s4); background: rgba(11,16,38,.82); padding: 12px 20px; border-radius: 12px; }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.toc { position: sticky; top: var(--s3); display: flex; flex-direction: column; gap: 4px; }
.toc a { text-decoration: none; color: var(--muted); padding: 8px 0; font-size: 17px; }
.toc a:hover { color: var(--star); }
.docs article { max-width: 760px; }
.docs section { padding: 0 0 var(--s5); }
.docs section:last-child { padding-bottom: 0; }
.page.docs { padding-bottom: var(--s6); }
.docs h2 { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 44px; line-height: 1; margin: 0 0 var(--s2); }
.docs p, .docs li { font-size: 18px; color: #e9e2d2; }
.docs ul { padding-left: 22px; }
.docs li { margin: 0 0 10px; }
.code { margin: var(--s2) 0; padding: 16px 20px; border-radius: 12px; background: rgba(11,16,38,.9); border: 1px solid var(--line); overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 16px; color: var(--paper); white-space: pre; }
.ledger.compact td, .ledger.compact th { padding: 12px 24px; }
.ledger.compact .nm { font-size: 22px; }
@media (max-width: 1100px) {
  .star-page { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: var(--s3); }
  .star-sky { order: -1; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
  .con { grid-template-columns: minmax(0, 1fr) auto; gap: 8px var(--s2); }
  .con-n { display: none; }
  .con-bar { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tools .src { margin: 0; }
  .lost-art { min-height: 70svh; }
  .lost-art img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
  .con-name { font-size: 26px; }
  .code code { white-space: pre-wrap; word-break: break-all; }
}
@media (max-width: 460px) { .cartouche .lnk .lt { display: none; } .cartouche .lnk img { width: 26px; height: 26px; } }
@media (max-width: 1100px) { .cartouche { max-width: none; } }

@media (max-width: 900px) { .ledger .hide-s { display: none; } }
@media (max-width: 640px) { .ledger th { white-space: normal; } }

#reg { table-layout: fixed; }
#reg col.c-n { width: 80px; } #reg col.c-name { width: 30%; } #reg col.c-mag { width: 13%; } #reg col.c-burn { width: 13%; }
#reg col.c-con { width: 12%; } #reg col.c-w { width: 12%; } #reg col.c-sig { width: 12%; }
#reg td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 var(--s3); font-size: 16px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend img { width: 14px; height: 14px; }
.legend b { color: var(--star); font-weight: 600; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes quill { from { left: 0; opacity: 1; } 92% { opacity: 1; } to { left: calc(100% - 40px); opacity: 0; } }
tr.writing td { animation: write 1.6s cubic-bezier(.3,.7,.4,1) both; }
tr.writing { position: relative; }
.quill { position: absolute; width: 56px; height: 56px; pointer-events: none; z-index: 3; animation: quill 1.6s cubic-bezier(.3,.7,.4,1) both; }
@media (max-width: 900px) { #reg { table-layout: auto; } #reg col { width: auto !important; } }
.regwrap { position: relative; }

.numbers > div { position: relative; }
.delta { position: absolute; right: var(--s3); top: var(--s3); padding: 4px 12px; border-radius: 999px; background: rgba(201,162,75,.16); color: var(--gold); font-size: 16px; font-weight: 600; animation: delta 2.2s ease-out both; pointer-events: none; }
@keyframes delta { 0% { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
