/* WAX: authored pixel artwork, an interactive seal, and a quiet protocol terminal. */

:root {
  --void: #080909;
  --ink: #101212;
  --ink-2: #151717;
  --ink-3: #222622;
  --gold: #ff742b;
  --gold-hi: #ffc75f;
  --gold-lo: #d89b6f;
  --line: #373b39;
  --line-2: #272a29;
  --text: #eeeee5;
  --mute: #b2b6ad;
  --mute-2: #818a83;
  --sol: #b8a3dc;
  --sol-2: #c6b5e9;
  --ok: #b4ddba;
  --bad: #ed8784;
  --warn: #e9c37d;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --sans: 'IBM Plex Sans', Arial, sans-serif;
  --pixel: 'Pixelify Sans', var(--mono);
  --pad: clamp(20px, 4vw, 72px);
  --glow: none;
  --radius: 0;
}

/* alternate phosphors, switched from the console with `theme` */
:root[data-theme='phosphor'] {
  --gold: #3dff9e; --gold-hi: #9dffcd; --gold-lo: rgba(61,255,158,.55);
  --line: rgba(61,255,158,.16); --line-2: rgba(61,255,158,.08);
  --text: #d9f5e6; --glow: 0 0 12px rgba(61,255,158,.30);
}
:root[data-theme='ice'] {
  --gold: #79e2ff; --gold-hi: #c4f1ff; --gold-lo: rgba(121,226,255,.55);
  --line: rgba(121,226,255,.16); --line-2: rgba(121,226,255,.08);
  --text: #dceefb; --glow: 0 0 12px rgba(121,226,255,.30);
}
:root[data-theme='amber'] {
  --gold: #ffb000; --gold-hi: #ffd899; --gold-lo: rgba(255,176,0,.55);
  --line: rgba(255,176,0,.18); --line-2: rgba(255,176,0,.08);
  --text: #ffd7a8; --glow: 0 0 14px rgba(255,176,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; background: var(--void); color: var(--text);
  font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
button, input { font: inherit; }
button, a { touch-action: manipulation; }
html { scroll-padding-top: 88px; }
a { color: var(--gold); text-decoration: none; }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3, h4 { font-weight: 500; margin: 0; letter-spacing: 0; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

/* ══════════════════════════════════════════════ screen furniture */

/* ══════════════════════════════════════════════ boot */

.boot {
  position: fixed; inset: 0; z-index: 1000; background: var(--void);
  padding: clamp(20px, 8vh, 90px) var(--pad);
  display: block; overflow: hidden;
}
.boot[hidden] { display: none; }
.boot.out { animation: bootout .5s ease forwards; }
@keyframes bootout { to { opacity: 0; transform: scale(1.03); visibility: hidden; } }
.bootlog { margin: 0; font-size: clamp(10px, 1.45vw, 13px); line-height: 1.7; color: var(--gold-lo); white-space: pre-wrap; }
.bootlog b { color: var(--gold-hi); font-weight: 400; }
.bootart {
  display: block; line-height: .92; letter-spacing: 0;
  font-size: clamp(11px, 2.4vw, 17px); color: var(--gold) !important;
  text-shadow: 0 0 22px rgba(244,183,40,.35); margin-bottom: 10px;
}
.bootlog i { color: var(--ok); font-style: normal; }
.bootlog u { color: var(--mute-2); text-decoration: none; }
.boot-skip {
  position: absolute; bottom: 24px; right: var(--pad);
  color: var(--mute-2); font-size: 11px; letter-spacing: 0; text-transform: uppercase;
  animation: blink 1.6s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* ══════════════════════════════════════════════ hud */

.hud {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--pad); height: 46px;
  background: rgba(5,2,1,.88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 0 rgba(255, 75, 0, .10);
}
.hud-mark { display: flex; align-items: center; gap: 9px; color: var(--text); letter-spacing: 0; font-weight: 700; }
.hud-mark em { color: var(--mute-2); font-style: normal; font-weight: 400; }
.seal-glyph {
  width: 14px; height: 14px; border-radius: 0;
  background: var(--gold); box-shadow: var(--glow);
  position: relative; animation: pulse 3.4s ease-in-out infinite;
}
.seal-glyph::after { content: ''; position: absolute; inset: 4px; border-radius: 0; background: var(--void); }
@keyframes pulse { 50% { box-shadow: 0 0 22px rgba(244,183,40,.55); } }

.hud-nav { display: flex; gap: 18px; margin-right: auto; font-size: 12px; }
.hud-nav a { color: var(--mute); letter-spacing: 0; }
.hud-nav a:hover { color: var(--gold); text-shadow: var(--glow); }

.hud-stats { display: flex; align-items: center; gap: 14px; font-size: 11px; }
.stat em { color: var(--mute-2); font-style: normal; margin-right: 6px; letter-spacing: 0; }
.stat b { color: var(--gold-lo); font-weight: 400; }
.chip {
  padding: 2px 7px; border: 1px solid var(--line); border-radius: var(--radius);
  letter-spacing: 0; font-size: 10px; color: var(--warn); cursor: help;
}
.chip-sim { border-color: rgba(255,166,43,.35); background: rgba(255,166,43,.07); }

/* ══════════════════════════════════════════════ deck */

main { position: relative; z-index: 2; }

.deck { padding: clamp(16px, 3vh, 34px) var(--pad) 0; }

/* ── console grid ── */

.console {
  display: grid; gap: 14px; margin-top: 22px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr) minmax(0, 1fr);
  grid-auto-rows: minmax(0, min(58vh, 540px));
}

.panel {
  position: relative; background:
    linear-gradient(180deg, rgba(255, 138, 0, .035), transparent 36%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; min-height: 0;
  box-shadow: 6px 6px 0 rgba(72, 16, 0, .72), inset 0 0 0 1px rgba(255, 211, 74, .04);
}
.panel::before, .panel::after {
  content: ''; position: absolute; width: 10px; height: 10px; pointer-events: none;
  border-color: var(--gold-lo); opacity: .7;
}
.panel::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.panel::after { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }

.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(90deg, rgba(255, 138, 0, .11) 0 8px, transparent 8px 16px),
    rgba(255, 138, 0, .035);
}
.panel-head h2 {
  font-family: var(--pixel);
  font-size: 16px; letter-spacing: 0; text-transform: uppercase; color: var(--gold-hi);
  text-shadow: 2px 2px 0 #2b0a01;
}
.panel-head h2 em {
  font-style: normal; color: var(--mute-2); margin-left: 9px; letter-spacing: 0;
}
.panel-hint { margin-left: auto; font-size: 10px; color: var(--mute-2); letter-spacing: 0; }
.led {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px var(--gold); margin-left: auto; flex: none;
  animation: heartbeat 2.4s ease-in-out infinite;
}
.panel-hint + .led { margin-left: 10px; }
.led-sol { background: var(--sol-2); box-shadow: 0 0 8px var(--sol-2); }
@keyframes heartbeat { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.panel-cols {
  display: grid; gap: 10px; padding: 6px 12px;
  font-size: 10px; letter-spacing: 0; text-transform: uppercase; color: var(--mute-2);
  border-bottom: 1px solid var(--line-2);
}
.panel-cols-burn   { grid-template-columns: 62px 1fr 66px 56px; }
.panel-cols-ledger { grid-template-columns: 70px 46px 72px 1fr 86px; }

.rows { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rows::-webkit-scrollbar { width: 8px; }
.rows::-webkit-scrollbar-thumb { background: var(--line); }

.row {
  display: grid; gap: 10px; padding: 5px 12px; font-size: 11.5px;
  border-left: 2px solid transparent; cursor: default; align-items: center;
}
@keyframes rowin { from { opacity: 0; transform: translateX(-6px); } }
.row:hover { background: rgba(244,183,40,.05); border-left-color: var(--gold-lo); }
.row-burn   { grid-template-columns: 62px 1fr 66px 56px; }
.row-ledger { grid-template-columns: 70px 46px 72px 1fr 86px; cursor: pointer; }
.row.is-selected { background: rgba(244,183,40,.09); border-left-color: var(--gold); }
.row .num { color: var(--text); }
.row .dim { color: var(--mute-2); }
.row .sig { color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .amt { color: var(--gold); text-align: right; }
.row-burn .amt { text-align: right; }
.row .pill { justify-self: start; }

.pill {
  font-size: 9.5px; letter-spacing: 0; text-transform: uppercase;
  padding: 2px 6px; border: 1px solid currentColor; border-radius: var(--radius);
  display: inline-block; white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .34);
}
.pill-rooted   { color: var(--sol-2); opacity: .8; }
.pill-pending  { color: var(--warn); }
.pill-sealed   { color: var(--gold); }
.pill-moved    { color: var(--mute); }
.pill-gone     { color: var(--mute-2); }
.pill-refused  { color: var(--bad); background: rgba(255,77,94,.08); }
.pill-held     { color: var(--warn); }
.pill-info     { color: var(--mute); }

.row-refused { background: rgba(255,77,94,.045); }
.row-refused .amt { color: var(--bad); text-decoration: line-through; opacity: .75; }
.row-new { animation: flashin .9s ease both; }
@keyframes flashin {
  0% { background: rgba(244,183,40,.28); opacity: 0; }
  30% { opacity: 1; }
  100% { background: transparent; }
}
.row-reject-flash { animation: rejectflash .9s ease both; }
@keyframes rejectflash {
  0%, 20% { background: rgba(255,77,94,.35); transform: translateX(0); }
  30% { transform: translateX(-3px); } 45% { transform: translateX(3px); }
  60% { transform: translateX(-2px); } 100% { background: rgba(255,77,94,.045); transform: none; }
}

.panel-foot {
  padding: 7px 12px; border-top: 1px solid var(--line-2);
  font-size: 10.5px; color: var(--mute-2); letter-spacing: 0;
}

/* ── state panel ── */

.state-body { padding: 12px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.gauge-bar {
  display: flex; height: 10px; background: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: 3px 3px 0 rgba(255, 75, 0, .12);
}
.g { display: block; height: 100%; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.g-live { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 14px rgba(244,183,40,.5); }
.g-snuff { background: repeating-linear-gradient(45deg, var(--mute-2) 0 3px, transparent 3px 6px); }
.g-unclaimed { background: rgba(255,166,43,.28); }
.gauge-key { display: flex; gap: 14px; margin-top: 7px; font-size: 10px; color: var(--mute-2); }
.gauge-key span { display: flex; align-items: center; gap: 5px; }
.k { width: 8px; height: 8px; display: inline-block; }
.k-live { background: var(--gold); } .k-snuff { background: var(--mute-2); } .k-unclaimed { background: rgba(255,166,43,.5); }

.figures { margin: 0; display: grid; gap: 6px; }
.figures > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.figures dt { color: var(--mute-2); font-size: 11px; letter-spacing: 0; }
.figures dd { margin: 0; color: var(--text); font-size: 12.5px; }
.hero-figure dt { color: var(--gold-lo); }
.hero-figure dd { color: var(--gold); font-size: 17px; text-shadow: var(--glow); }

.invariant {
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 9px 10px;
  display: grid; grid-template-columns: 10px 1fr; gap: 4px 8px; align-items: center;
  font-size: 10.5px; color: var(--mute); background: rgba(61,220,151,.03);
}
.invariant code { grid-column: 2; color: var(--mute); }
.invariant b { grid-column: 2; color: var(--ok); letter-spacing: 0; font-weight: 500; font-size: 10px; }
.invariant.bad { background: rgba(255,77,94,.06); }
.invariant.bad b { color: var(--bad); }
.inv-led {
  grid-row: 1 / span 3; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 10px var(--ok); align-self: start; margin-top: 4px;
}
.invariant.bad .inv-led { background: var(--bad); box-shadow: 0 0 10px var(--bad); }

.rootbox { border-top: 1px solid var(--line-2); padding-top: 10px; }
.rootbox-label { font-size: 10px; letter-spacing: 0; text-transform: uppercase; color: var(--mute-2); }
.rootbox-label em { font-style: normal; color: var(--mute-2); opacity: .7; }
.root {
  display: block; margin: 6px 0 4px; font-size: 10.5px; line-height: 1.5; color: var(--gold-lo);
  word-break: break-all; cursor: pointer; transition: color .2s;
}
.root:hover { color: var(--gold-hi); }
.root.copied { color: var(--ok); }
.rootbox-note { font-size: 10px; color: var(--mute-2); }

.refused { display: flex; flex-wrap: wrap; gap: 5px; }
.refused-chip {
  font-size: 9.5px; letter-spacing: 0; padding: 2px 6px; border-radius: var(--radius);
  border: 1px solid rgba(255,77,94,.35); color: var(--bad); background: rgba(255,77,94,.06);
  cursor: pointer;
}
.refused-chip:hover { background: rgba(255,77,94,.16); }

/* ── ticker ── */

.ticker {
  margin-top: 14px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  overflow: hidden; height: 28px; display: flex; align-items: center; position: relative;
}
.ticker::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--void), transparent 8%, transparent 92%, var(--void));
}
.ticker-track { display: flex; gap: 38px; white-space: nowrap; animation: slide 46s linear infinite; font-size: 10.5px; color: var(--mute-2); letter-spacing: 0; }
.ticker-track b { color: var(--gold-lo); font-weight: 400; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════ bands */

.band { padding: clamp(56px, 9vh, 110px) var(--pad); position: relative; }
.band-alt { background: linear-gradient(180deg, transparent, rgba(255, 106, 0, .035), transparent); }
.band + .band { border-top: 1px solid var(--line-2); }

.band-head { max-width: 74ch; margin-bottom: clamp(28px, 4vh, 48px); }
.band-index {
  display: block; font-size: 10px; letter-spacing: 0; color: var(--gold-lo); margin-bottom: 10px;
}
.band-head h2 {
  font-family: var(--pixel);
  font-size: clamp(28px, 4vw, 52px); letter-spacing: 0; color: var(--gold-hi); margin-bottom: 12px;
  text-shadow: 4px 4px 0 #451000;
}
.band-head p { margin: 0; color: var(--mute); font-size: clamp(13px, 1.2vw, 15px); line-height: 1.7; }
.band-head code, .claims code, .stage code, .speccard code, .honesty code { color: var(--gold-lo); }

/* ── pipeline ── */

.pipeline { position: relative; margin-bottom: 34px; }
.pipe-line {
  position: absolute; left: 0; right: 0; top: 26px; height: 1px;
  background: linear-gradient(90deg, var(--sol), var(--line), var(--gold-lo));
}
.pipe-packet {
  position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 16px var(--gold);
  animation: travel 7s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes travel {
  0% { left: 0; opacity: 0; } 6% { opacity: 1; }
  94% { opacity: 1; } 100% { left: 100%; opacity: 0; }
}
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stage {
  border: 1px solid var(--line-2); border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(244,183,40,.035), transparent 60%);
  padding: 34px 14px 14px; border-radius: var(--radius); position: relative;
  transition: border-color .3s, background .3s;
  box-shadow: 5px 5px 0 rgba(72, 16, 0, .48);
}
.stage::before {
  content: ''; position: absolute; top: -4px; left: 14px; width: 8px; height: 8px;
  background: var(--ink); border: 1px solid var(--gold-lo); border-radius: 0;
}
.stage.lit { border-color: var(--line); background: linear-gradient(180deg, rgba(244,183,40,.10), transparent 60%); }
.stage.lit::before { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.stage-num { position: absolute; top: 12px; right: 14px; font-size: 10px; color: var(--mute-2); letter-spacing: 0; }
.stage h3 { font-size: 13px; letter-spacing: 0; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.stage p { margin: 0 0 10px; font-size: 12px; line-height: 1.65; color: var(--mute); }
.stage em { color: var(--text); font-style: normal; }
.stage-chain { font-size: 9px; letter-spacing: 0; text-transform: uppercase; padding: 2px 6px; border: 1px solid currentColor; border-radius: var(--radius); }
.chain-sol { color: var(--sol-2); } .chain-zec { color: var(--gold-lo); } .chain-both { color: var(--mute); }

.claims { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.claims article { border-left: 1px solid var(--line); padding: 2px 0 2px 14px; }
.claims h4 { font-size: 11px; letter-spacing: 0; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.claims p { margin: 0; font-size: 12px; color: var(--mute); line-height: 1.7; }

/* ── anatomy ── */

.anatomy { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); box-shadow: 7px 7px 0 rgba(72, 16, 0, .5); }
.anatomy-controls {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line-2);
}
.seg { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button {
  font: 500 11px/1 var(--mono); letter-spacing: 0; padding: 9px 13px;
  background: transparent; border: 0; border-right: 1px solid var(--line-2);
  color: var(--mute); cursor: pointer; transition: all .15s;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--gold); background: rgba(244,183,40,.06); }
.seg button[aria-selected='true'] { background: var(--gold); color: #000; }
.tweak { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--mute-2); letter-spacing: 0; text-transform: uppercase; }
.tweak input[type='range'] { width: clamp(120px, 22vw, 260px); accent-color: var(--gold); }
.tweak output { color: var(--gold); font-size: 12px; letter-spacing: 0; text-transform: none; min-width: 16ch; }

.anatomy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dump {
  padding: 18px 16px; border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 4px; align-content: flex-start; overflow-x: auto;
}
.dline { display: flex; align-items: center; gap: 14px; }
.doff { color: var(--mute-2); font-size: 11px; letter-spacing: 0; flex: none; }
.dbytes { display: flex; gap: 3px; flex: none; }
.dbytes .byte:nth-child(8) { margin-right: 9px; }
.dascii { display: flex; flex: none; color: var(--mute-2); font-size: 12px; }
.achar { width: 9px; text-align: center; border-radius: 1px; }
.achar.hot { background: currentColor; color: #000 !important; }
.byte {
  width: 23px; height: 23px; display: grid; place-items: center; font-size: 11px;
  border: 1px solid transparent; border-radius: 0; color: var(--text);
  background: rgba(255,255,255,.03); cursor: default; transition: transform .12s, box-shadow .12s;
  animation: bytein .25s ease both;
}
.byte-pad { background: transparent; border-color: transparent; }
@keyframes bytein { from { opacity: 0; transform: translateY(3px); } }
.byte.hot { transform: translateY(-2px); box-shadow: 0 0 0 1px currentColor, 0 6px 14px rgba(0,0,0,.5); z-index: 2; }

.fields { padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.fields-head, .frow {
  display: grid; grid-template-columns: 1.15fr 62px 52px 1.5fr; gap: 10px; align-items: baseline;
}
.fields-head { font-size: 10px; letter-spacing: 0; text-transform: uppercase; color: var(--mute-2); padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.frow { padding: 6px 0; font-size: 11.5px; border-bottom: 1px solid rgba(255,255,255,.03); cursor: default; }
.frow:hover, .frow.hot { background: rgba(244,183,40,.06); }
.frow .fname { color: var(--text); display: flex; align-items: center; gap: 7px; }
.frow .swatch { width: 9px; height: 9px; flex: none; border-radius: 1px; }
.frow .foff, .frow .flen { color: var(--mute-2); }
.frow .fval { color: var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-doc {
  margin: 14px 0 0; padding: 11px 12px; border-left: 2px solid var(--gold-lo);
  background: rgba(244,183,40,.04); font-size: 12px; line-height: 1.7; color: var(--mute); min-height: 4.5em;
}

.anatomy-foot { padding: 14px; border-top: 1px solid var(--line-2); }
.sizebar { display: flex; height: 22px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; font-size: 9.5px; }
.sizebar span { display: grid; place-items: center; letter-spacing: 0; white-space: nowrap; overflow: hidden; transition: width .5s ease; }
.sb-wax { background: var(--gold); color: #000; }
.sb-other { background: rgba(255,255,255,.05); color: var(--mute-2); }
.anatomy-note { margin: 10px 0 0; font-size: 11.5px; color: var(--mute-2); }

/* ── rules ── */

.rulegrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.rule {
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 13px;
  background: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s, background .2s;
  text-align: left; font: inherit; color: inherit;
  box-shadow: 4px 4px 0 rgba(72, 16, 0, .42);
}
.rule:hover { border-color: var(--gold-lo); transform: translateY(-2px); }
.rule-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.rule-code { color: var(--gold); font-size: 12px; letter-spacing: 0; }
.rule-name { font-size: 10px; letter-spacing: 0; text-transform: uppercase; color: var(--mute-2); }
.rule-hits { margin-left: auto; font-size: 9.5px; padding: 1px 6px; border-radius: 8px; background: rgba(255,77,94,.12); color: var(--bad); }
.rule-hits[data-n='0'] { background: rgba(255,255,255,.04); color: var(--mute-2); }
.rule-short { font-size: 12px; color: var(--text); margin: 0 0 6px; }
.rule-why { font-size: 11.5px; color: var(--mute); line-height: 1.65; margin: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .3s ease, margin .3s; }
.rule.open { border-color: var(--gold-lo); background: rgba(244,183,40,.04); }
.rule.open .rule-why { max-height: 260px; opacity: 1; margin-top: 8px; }

/* ── forgery ── */

.attack { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 16px; }
.attack-buttons { display: flex; flex-direction: column; gap: 8px; }
.atk {
  text-align: left; font: inherit; color: var(--text); cursor: pointer;
  border: 1px solid var(--line-2); background: var(--ink); padding: 12px 14px;
  border-radius: var(--radius); transition: all .18s; position: relative; overflow: hidden;
  box-shadow: 4px 4px 0 rgba(72, 16, 0, .42);
}
.atk:hover:not(:disabled) { border-color: var(--bad); background: rgba(255,77,94,.06); transform: translateX(3px); }
.atk:disabled { opacity: .45; cursor: wait; }
.atk b { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0; padding-right: 34px; }
.atk span { display: block; font-size: 11px; color: var(--mute-2); margin-top: 4px; overflow-wrap: anywhere; }
.atk i { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 10px; color: var(--mute-2); letter-spacing: 0; }
.atk.fired i { color: var(--bad); }

.attack-console { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); display: flex; flex-direction: column; min-height: 320px; box-shadow: 6px 6px 0 rgba(72, 16, 0, .5); }
.attack-log { flex: 1; padding: 14px; font-size: 12px; line-height: 1.85; overflow-y: auto; max-height: 330px; overflow-wrap: anywhere; }
.attack-log p { margin: 0; }
.al-idle { color: var(--mute-2); }
.al-line { color: var(--mute); animation: rowin .25s ease both; }
.al-line b { color: var(--text); font-weight: 400; }
.al-ok { color: var(--ok); } .al-bad { color: var(--bad); } .al-gold { color: var(--gold); }
.al-line .tag { color: var(--mute-2); margin-right: 8px; }
.attack-verdict { border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.av-row { padding: 11px 14px; border-right: 1px solid var(--line-2); }
.av-row:last-child { border-right: 0; }
.av-row span { display: block; font-size: 9.5px; letter-spacing: 0; text-transform: uppercase; color: var(--mute-2); margin-bottom: 5px; }
.av-row b { font-size: 13px; font-weight: 400; color: var(--mute); }
.av-row b.ok { color: var(--ok); } .av-row b.bad { color: var(--bad); } .av-row b.gold { color: var(--gold); }
.av-row b.shake { display: inline-block; animation: nudge .5s ease; }
@keyframes nudge { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.attack-note { margin: 16px 0 0; font-size: 12px; color: var(--mute-2); max-width: 78ch; }

/* ── diff table ── */

.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 6px 6px 0 rgba(72, 16, 0, .42); }
.diff { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 680px; }
.diff th, .diff td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.diff thead th { font-size: 10px; letter-spacing: 0; text-transform: uppercase; color: var(--mute-2); background: rgba(255,255,255,.015); }
.diff thead th:last-child { color: var(--gold); }
.diff tbody th { font-weight: 400; color: var(--mute-2); width: 130px; font-size: 11px; letter-spacing: 0; text-transform: uppercase; }
.diff td:nth-child(2) { color: var(--mute); }
.diff td:last-child { color: var(--text); background: rgba(244,183,40,.03); }
.diff tbody tr:hover td:last-child { background: rgba(244,183,40,.07); }

/* ── spec ── */

.speclayout { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.speccard { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px; background: var(--ink); box-shadow: 5px 5px 0 rgba(72, 16, 0, .36); }
.speccard h3 { font-size: 11px; letter-spacing: 0; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.speccard p { margin: 0 0 10px; font-size: 12px; line-height: 1.75; color: var(--mute); }
.speccard p:last-child { margin-bottom: 0; }
.speccard b { color: var(--text); font-weight: 500; }
.ops { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 12px; }
.ops td { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.03); color: var(--mute); }
.ops td:first-child { width: 58px; } .ops td:nth-child(2) { width: 62px; color: var(--gold); }
.inv-list { margin: 0 0 12px; padding: 0; list-style: none; }
.inv-list li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.03); font-size: 12px; }
.inv-list code { color: var(--gold-lo); }

.honesty { margin-top: 16px; border: 1px solid rgba(255,166,43,.3); background: rgba(255,166,43,.045); border-radius: var(--radius); padding: 18px; }
.honesty h3 { font-size: 11px; letter-spacing: 0; text-transform: uppercase; color: var(--warn); margin-bottom: 10px; }
.honesty p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--mute); max-width: 92ch; }

/* ── footer ── */

.foot { border-top: 1px solid var(--line); padding: clamp(36px, 6vh, 64px) var(--pad) 120px; }
.foot-cols { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.foot h4 { font-size: 10px; letter-spacing: 0; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.foot p { margin: 0; font-size: 12px; color: var(--mute); line-height: 1.75; }
.foot pre { margin: 0; font-size: 11.5px; color: var(--mute); line-height: 1.8; overflow-x: auto; }
.foot kbd { border: 1px solid var(--line); padding: 0 5px; border-radius: 2px; color: var(--gold); font-size: 11px; }
.foot-sig { margin-top: 34px; font-size: 10.5px; letter-spacing: 0; text-transform: uppercase; color: var(--mute-2); }

/* ══════════════════════════════════════════════ drawer terminal */

.drawer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; }
.drawer-tab {
  position: absolute; bottom: 100%; left: var(--pad); display: flex; align-items: center; gap: 9px;
  padding: 7px 14px; background: var(--ink-2); border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0; cursor: pointer;
  font: 500 10px/1 var(--mono); letter-spacing: 0; text-transform: uppercase; color: var(--mute);
}
.drawer-tab:hover { color: var(--gold); }
.dt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dt-key { border: 1px solid var(--line); padding: 1px 5px; border-radius: 2px; color: var(--gold-lo); letter-spacing: 0; }
.drawer-body {
  background: rgba(10,5,3,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  height: 0; overflow: hidden; transition: height .28s cubic-bezier(.3,.8,.3,1);
  display: flex; flex-direction: column;
}
.drawer[data-open='true'] .drawer-body { height: min(52vh, 460px); }
.term-out { flex: 1; overflow-y: auto; padding: 14px var(--pad) 6px; font-size: 12px; line-height: 1.65; }
.term-out .t-line { white-space: pre-wrap; word-break: break-word; }
.term-out .t-cmd { color: var(--gold); }
.term-out .t-cmd::before { content: 'wax> '; color: var(--mute-2); }
.term-out .t-err { color: var(--bad); }
.term-out .t-ok { color: var(--ok); }
.term-out .t-dim { color: var(--mute-2); }
.term-out .t-gold { color: var(--gold-lo); }
.term-out .t-head { color: var(--gold); letter-spacing: 0; text-transform: uppercase; font-size: 10.5px; margin-top: 10px; }
.term-line { display: flex; align-items: center; gap: 9px; padding: 9px var(--pad) 14px; border-top: 1px solid var(--line-2); position: relative; }
.term-prompt { color: var(--gold); font-size: 12px; letter-spacing: 0; }
.term-prompt i { font-style: normal; color: var(--mute-2); margin-left: 4px; }
.term-input {
  flex: 1; background: transparent; border: 0; color: var(--text);
  font: 400 13px/1 var(--mono); caret-color: var(--gold);
}
.term-input:focus { outline: none; }
.term-input::placeholder { color: var(--mute-2); }
.term-ghost { position: absolute; pointer-events: none; color: var(--mute-2); font-size: 13px; opacity: .5; }

/* ══════════════════════════════════════════════ responsive */

@media (max-width: 1180px) {
  .console { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .panel-state { grid-column: 1 / -1; }
  .state-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); align-items: start; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe-line { display: none; }
}
@media (max-width: 860px) {
  /* the comparison table stacks: on a phone the right-hand column is the point,
     and a horizontal scrollbar hides exactly that column */
  .table-wrap { overflow-x: visible; border: 0; }
  .diff { min-width: 0; }
  .diff thead { display: none; }
  .diff tbody tr { display: block; border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 8px; padding: 10px 0 4px; }
  .diff tbody th { display: block; width: auto; padding: 0 13px 7px; }
  .diff tbody td { display: block; border: 0; padding: 5px 13px; }
  .diff tbody td::before {
    content: attr(data-label); display: block; font-size: 9px; letter-spacing: 0;
    text-transform: uppercase; color: var(--mute-2); margin-bottom: 3px;
  }
  .diff tbody td:last-child::before { color: var(--gold-lo); }
  .console { grid-template-columns: 1fr; grid-auto-rows: minmax(0, 46vh); }
  .anatomy-grid { grid-template-columns: 1fr; }
  .dump { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .attack { grid-template-columns: minmax(0, 1fr); }
  .hud-nav { display: none; }
  .stages { grid-template-columns: 1fr; }
  .fields-head, .frow { grid-template-columns: 1fr 54px 44px; }
  .fields-head span:last-child { display: none; }
  .frow .fval { grid-column: 1 / -1; padding-left: 16px; color: var(--gold); }
  .dump { overflow-x: hidden; }
  .panel-cols-ledger, .row-ledger { grid-template-columns: 62px 44px 1fr 84px; }
  .panel-cols-ledger span:nth-child(4), .row-ledger > *:nth-child(4) { display: none; }
  .panel-hint { display: none; }
}
@media (max-width: 560px) {
  .panel-cols-burn, .row-burn { grid-template-columns: 66px 1fr 54px; }
  .panel-cols-burn span:nth-child(1), .row-burn > *:nth-child(1) { display: none; }
  .drawer-tab { left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .08s !important; }
  .crt-sweep, .crt-grain, #lattice { display: none; }
  html { scroll-behavior: auto; }
}


/* Artwork-led layout */
svg.lucide { width: 17px; height: 17px; flex: none; stroke-width: 1.6; }
button [data-icon] { display: inline-block; width: 17px; height: 17px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.hud { height: 72px; gap: 38px; background: #080909f5; box-shadow: none; border-color: var(--line-2); backdrop-filter: none; }
.hud-mark { gap: 12px; font: 700 22px/1 var(--pixel); }
.hud-mark em { font: 400 10px var(--mono); }
.seal-glyph { width: 23px; height: 23px; box-shadow: none; animation: none; clip-path: polygon(0 0,40% 0,40% 22%,60% 22%,60% 0,100% 0,100% 40%,78% 40%,78% 60%,100% 60%,100% 100%,60% 100%,60% 78%,40% 78%,40% 100%,0 100%,0 60%,22% 60%,22% 40%,0 40%); }
.seal-glyph::after { inset: 8px; }
.hud-nav { gap: 26px; height: 100%; font: 11px var(--mono); }
.hud-nav a { display: flex; align-items: center; position: relative; }
.hud-nav a:hover { text-shadow: none; color: var(--text); }
.hud-nav a.active { color: var(--text); }
.hud-nav a.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold); }
.hud-stats { gap: 19px; font: 10px var(--mono); margin-left: auto; }
.stat { white-space: nowrap; }
.stat b { color: var(--mute); }
.chip-sim { color: var(--ok); border-color: #465249; background: transparent; padding: 4px 7px; font-size: 9px; }
.deck { padding: 0 var(--pad); }
.hero { position: relative; isolation: isolate; height: min(650px, calc(100svh - 236px)); min-height: 520px; margin-inline: calc(-1 * var(--pad)); overflow: hidden; background: #070808; }
.hero-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; z-index: -3; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #080909de 0%, #080909a6 25%, #08090908 65%); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: .1; background: repeating-linear-gradient(0deg, transparent 0 3px, #000 3px 4px); }
.hero-topline { position: absolute; top: 27px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; color: #b5b9ac; font: 10px var(--mono); z-index: 3; }
.hero-topline > span:first-child { display: flex; align-items: center; gap: 10px; }
.signal-square { display: inline-block; width: 5px; height: 5px; background: var(--gold); flex: none; }
.hero-copy { position: absolute; z-index: 2; left: var(--pad); top: 91px; width: 48%; }
.wordmark { margin: 0; font: 600 152px/.76 var(--pixel); color: #f4f3e8; text-shadow: 5px 6px 0 #141616; }
.wordmark span { color: var(--gold); }
.tagline { font: 500 39px/1.08 var(--sans); margin: 25px 0 0; }
.lede { font: 14px/1.75 var(--sans); color: #c3c6bc; margin: 21px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 0 17px; color: var(--text); background: #08090966; border: 1px solid #74786c; font: 500 11px var(--mono); cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { background: #292c25; border-color: var(--text); }
.btn-primary { color: #15140e; background: #eeeee2; border-color: #eeeee2; }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); }
.btn-ghost { background: #08090999; }
.seal-stage { position: absolute; top: 40px; bottom: 74px; left: 51%; width: 46%; }
#seal-canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .4s; }
.seal-stage.ready #seal-canvas { opacity: 1; }
.seal-fallback { position: absolute; width: 66%; height: auto; max-height: 88%; object-fit: contain; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-9deg); border: 12px solid #eeeedd; box-shadow: 15px 20px 0 #0005; transition: opacity .3s; }
.seal-stage.ready .seal-fallback { opacity: 0; pointer-events: none; }
.seal-caption { position: absolute; bottom: -12px; left: 22%; right: 14%; display: flex; justify-content: space-between; gap: 12px; color: #edeedb; font: 9px var(--mono); }
.seal-caption > span:first-child { display: flex; align-items: center; gap: 8px; }
.hero-footer { position: absolute; bottom: 0; left: var(--pad); right: var(--pad); height: 55px; border-top: 1px solid #797b633d; display: flex; align-items: center; gap: 20px; font: 9px var(--mono); color: #c5c7b3; z-index: 5; }
.hero-coordinate { margin-left: auto; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; flex: none; background: transparent; color: var(--mute); border: 1px solid var(--line); cursor: pointer; }
.icon-button:hover { color: var(--text); border-color: var(--mute); background: var(--ink-2); }
.hero-footer .icon-button { width: 29px; height: 29px; background: #08090985; border-color: #616253; }
.protocol-strip { min-height: 67px; margin-inline: calc(-1 * var(--pad)); padding: 16px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; font: 10px var(--mono); background: #111411; color: var(--mute); }
.protocol-strip .route, .protocol-strip a { display: flex; align-items: center; gap: 12px; }
.protocol-strip b { color: var(--text); font-weight: 400; }
.protocol-strip .route { color: var(--text); }
.route-dot { width: 7px; height: 7px; background: var(--gold); }
.sol-dot { background: var(--sol-2); }
.protocol-strip svg { width: 15px; height: 15px; color: var(--mute-2); }
.protocol-strip a:hover { color: var(--gold); }
.console-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 34px 0 20px; scroll-margin-top: 10px; }
.section-kicker { font: 9px var(--mono); color: var(--mute-2); display: block; margin-bottom: 7px; }
.console-heading h2 { font: 500 26px var(--sans); display: flex; align-items: center; gap: 13px; }
.live-dot { width: 6px; height: 6px; background: var(--ok); }
.console-actions { display: flex; gap: 8px; align-items: center; }
.simulation-label { color: var(--mute-2); font: 9px var(--mono); margin-right: 13px; }
.console { margin-top: 0; gap: 0; border: 1px solid var(--line); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) minmax(0, 1fr); grid-auto-rows: 460px; font-family: var(--mono); }
.panel { background: var(--ink); border: 0; box-shadow: none; min-width: 0; }
.panel + .panel { border-left: 1px solid var(--line); }
.panel::before, .panel::after { display: none; }
.panel-head { min-height: 54px; padding: 14px 16px; border-color: var(--line); background: transparent; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; font: 500 13px var(--sans); color: var(--text); text-shadow: none; text-transform: none; white-space: nowrap; }
.panel-head h2 em { font: 9px var(--mono); margin-left: 3px; }
.panel-number { font: 9px var(--mono); color: var(--mute-2); }
.led { width: 5px; height: 5px; border-radius: 0; box-shadow: none; animation: none; }
#led-state { background: var(--ok); }
.panel-cols { padding-block: 10px; font-size: 9px; }
.panel-cols-burn, .row-burn { grid-template-columns: 66px minmax(0, 1fr) 56px 46px; }
.panel-cols-ledger, .row-ledger { grid-template-columns: 69px 34px 53px minmax(0, 1fr) 74px; }
.row { padding-block: 10px; min-height: 37px; font-size: 10px; border-bottom: 1px solid #ffffff05; }
.row .amt { color: var(--text); }
.pill { font-size: 8px; border: 0; padding: 0; box-shadow: none; background: transparent; }
.pill-moved { color: var(--ok); }
.pill-refused { color: var(--bad); }
.row-refused { background: #ed878408; }
.row-refused .amt { color: var(--bad); }
.panel-foot { padding-block: 11px; font-size: 9px; border-color: var(--line); }
.state-body { padding: 17px; gap: 19px; }
.gauge-bar { height: 7px; border: 0; box-shadow: none; }
.g-live { background: var(--gold); box-shadow: none; }
.g-snuff { background: var(--mute-2); }
.g-unclaimed { background: #504834; }
.gauge-key { font-size: 8px; }
.k { width: 5px; height: 5px; }
.figures { display: flex; flex-direction: column; gap: 7px; }
.figures dt { font: 10px var(--sans); color: var(--mute); }
.figures dd { font-size: 10px; }
.figures .hero-figure { order: -1; flex-direction: column; gap: 4px; padding-bottom: 12px; margin-bottom: 5px; border-bottom: 1px solid var(--line-2); }
.hero-figure dt { font: 9px var(--mono); text-transform: uppercase; color: var(--mute-2); }
.hero-figure dd { font: 30px/1.15 var(--pixel); color: var(--text); text-shadow: none; }
.invariant { border: 0; border-top: 1px solid var(--line-2); padding: 12px 0 0; font-size: 9px; background: transparent; grid-template-columns: 6px 1fr; }
.invariant code { color: var(--mute-2); }
.inv-led { width: 5px; height: 5px; box-shadow: none; border-radius: 0; margin-top: 3px; }
.rootbox-label, .rootbox-note, .root { font-size: 9px; }
.root { color: var(--mute); }
.refused-chip { border: 0; padding: 3px 6px; font-size: 9px; background: #ed878412; }
.ticker { height: 36px; margin-top: 0; border-top: 0; }
.ticker-track { font-size: 9px; }
.ticker-track b { color: var(--mute); }
.band { padding-block: 76px; }
.band-alt { background: #0d0f0e; }
.band-head { max-width: 760px; margin-bottom: 36px; }
.band-index { color: var(--gold); }
.band-head h2 { font: 500 40px/1.1 var(--pixel); color: var(--text); text-shadow: none; margin-bottom: 15px; }
.band-head p { font: 15px/1.7 var(--sans); max-width: 64ch; }
.band code { font-size: .88em; overflow-wrap: anywhere; }
.pipe-line { display: none; }
.stages { gap: 0; }
.stage { padding: 27px 24px 22px 0; border: 0; border-top: 1px solid var(--line); background: transparent; box-shadow: none; }
.stage + .stage { padding-left: 24px; border-left: 1px solid var(--line-2); }
.stage.lit { background: transparent; border-color: var(--line); }
.stage::before { left: auto; width: 5px; height: 5px; border: 0; top: -3px; background: var(--mute-2); }
.stage.lit::before { box-shadow: none; }
.stage-num { position: static; display: block; margin-bottom: 14px; }
.stage h3 { font: 500 23px var(--pixel); color: var(--text); text-transform: none; margin-bottom: 11px; }
.stage p { font: 13px/1.75 var(--sans); }
.stage-chain { border: 0; padding: 0; }
.claims { gap: 30px; border-top: 1px solid var(--line-2); padding-top: 28px; }
.claims article { padding: 0; border: 0; }
.claims h4 { font-family: var(--mono); color: var(--ok); text-transform: none; }
.claims p { font: 13px/1.75 var(--sans); }
.anatomy, .attack-console, .table-wrap, .speccard, .rule, .atk { box-shadow: none; }
.anatomy-controls { padding: 16px; gap: 20px; }
.seg button[aria-selected='true'] { background: var(--text); }
.seg button { font-size: 10px; }
.tweak { flex-wrap: wrap; font: 10px var(--mono); text-transform: none; }
.tweak input[type='range'] { width: 180px; }
.dump { padding: 24px 16px; }
.doff { font-size: 10px; }
.dascii { font-size: 10px; }
.achar { width: 7px; }
.fields-head { font-size: 9px; }
.frow { font: 10px var(--mono); padding-block: 8px; }
.field-doc { background: transparent; padding: 0; border: 0; font: 12px/1.7 var(--sans); }
.sizebar, .anatomy-note { font-family: var(--mono); }
.rulegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.rule { border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 20px 24px 20px 0; }
.rule:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-2); }
.rule-name { font: 500 15px var(--sans); }
.rule-short, .rule-why { font: 13px/1.7 var(--sans); }
.rule-code, .rule-hits { font-family: var(--mono); }
.attack { gap: 24px; }
.attack-buttons { gap: 0; }
.atk { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 16px 36px 16px 0; }
.atk:first-child { border-top: 1px solid var(--line); }
.atk:hover:not(:disabled) { transform: none; }
.atk b { font: 500 14px var(--sans); }
.atk span { font: 12px/1.65 var(--sans); color: var(--mute); }
.attack-log { font: 11px/1.9 var(--mono); max-height: 435px; padding: 20px; }
.av-row b { font: 11px var(--mono); overflow-wrap: anywhere; }
.av-row span { font: 9px var(--mono); }
.attack-note { font: 13px/1.7 var(--sans); }
.table-wrap { border: 0; }
.diff { font: 14px/1.6 var(--sans); }
.diff th, .diff td { padding: 17px 20px; }
.diff thead th, .diff tbody th { font-family: var(--mono); }
.diff td:last-child { background: #ffffff03; }
.speclayout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.speccard { border: 0; border-top: 1px solid var(--line); background: transparent; padding: 23px 0 0; }
.speccard h3 { font-family: var(--mono); }
.speccard p { font: 14px/1.75 var(--sans); }
.ops td { padding-block: 7px; }
.inv-list li { font-size: 13px; padding-block: 7px; }
.honesty { margin-top: 36px; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 180px 1fr; gap: 25px; }
/* the label sits in column one; every paragraph belongs in column two,
   otherwise a second one drops under the label and reads as a new item */
.honesty > :not(h3) { grid-column: 2; }
.honesty p + p { margin-top: 12px; }
.honesty h3 { color: var(--ok); font-family: var(--mono); }
.honesty p { font: 13px/1.8 var(--sans); }
.foot { padding: 45px var(--pad) 85px; }
.foot h4 { font-family: var(--mono); }
.foot p { font: 12px/1.8 var(--sans); }
.foot pre { font-size: 10px; }
.foot .foot-sig { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-2); font: 9px var(--mono); }
.drawer-tab { min-height: 34px; background: #171b17; border-color: #4a5046; color: var(--text); font-size: 9px; }
.dt-dot { width: 5px; height: 5px; border-radius: 0; box-shadow: none; }
.drawer-body { background: #0c100cf5; }
.term-out { font: 11px/1.8 var(--mono); }
.term-input { min-width: 0; }

@media (min-width: 1700px) {
  :root { --pad: max(72px, calc((100vw - 1600px) / 2)); }
  .hero-copy { top: 105px; }
  .wordmark { font-size: 178px; }
}
@media (max-width: 1200px) {
  .hud { gap: 26px; }
  .hud-nav { gap: 20px; }
  .stat-clock, .hud-mark em { display: none; }
  .panel-cols-burn, .row-burn { grid-template-columns: minmax(0, 1fr) 53px 45px; }
  .panel-cols-burn span:first-child, .row-burn > :first-child { display: none; }
  .panel-cols-ledger, .row-ledger { grid-template-columns: 67px 32px minmax(0, 1fr) 68px; gap: 7px; }
  .panel-cols-ledger span:nth-child(4), .row-ledger > :nth-child(4) { display: none; }
  .hero-figure dd { font-size: 25px; }
  .wordmark { font-size: 138px; }
  .tagline { font-size: 36px; }
  .hero-coordinate, .protocol-strip > span:nth-child(2) { display: none; }
  .hero-footer .icon-button { margin-left: auto; }
  .anatomy-grid { grid-template-columns: 1fr; }
  .dump { border-right: 0; border-bottom: 1px solid var(--line); }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-state { grid-column: auto; }
  .state-body { display: flex; }
}
@media (max-width: 900px) {
  .hud { height: 60px; gap: 22px; }
  .hud-nav { display: flex; gap: 18px; }
  .hud-stats .stat { display: none; }
  .hero-topline { top: 22px; font-size: 9px; }
  .hero-copy { top: 91px; width: 52%; }
  .wordmark { font-size: 118px; }
  .tagline { font-size: 32px; }
  .lede { font-size: 13px; max-width: 33ch; }
  .lede br { display: none; }
  .cta { flex-direction: column; align-items: start; gap: 9px; margin-top: 20px; }
  .btn { min-height: 42px; }
  .seal-stage { left: 51%; width: 48%; top: 58px; bottom: 72px; }
  .seal-caption { left: 10%; right: 10%; font-size: 8px; }
  .seal-caption > span:last-child { display: none; }
  .console { grid-template-columns: 1fr 1.2fr; grid-auto-rows: auto; }
  .panel { height: 400px; }
  .panel-state { grid-column: 1 / -1; height: auto; border-top: 1px solid var(--line); }
  .panel.panel-state { border-left: 0; }
  .state-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
  .gauge { grid-column: 2; grid-row: 1; }
  .figures { grid-column: 1; grid-row: 1 / span 3; }
  .invariant, .rootbox { grid-column: 2; }
  .refused { grid-column: 1 / -1; }
  .simulation-label { display: none; }
  .claims { grid-template-columns: repeat(2, 1fr); }
  .attack { grid-template-columns: 1fr; }
  .rulegrid { grid-template-columns: 1fr; }
  .rule:nth-child(even) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 76px; }
  .hud { gap: 23px; }
  .hud-mark { font-size: 22px; gap: 8px; }
  .seal-glyph { width: 19px; height: 19px; }
  .seal-glyph::after { inset: 7px; }
  .hud-nav { gap: 16px; font-size: 10px; }
  .hud-nav a:nth-child(2), .hud-nav a:nth-child(4) { display: none; }
  .hud-stats { gap: 0; }
  .hero { height: 644px; min-height: 0; }
  .hero-topline { top: 20px; font-size: 8px; }
  .hero-topline > span:last-child { font-size: 7px; }
  .hero-copy { top: 66px; width: calc(100% - 40px); }
  .wordmark { font-size: 110px; }
  .tagline { font-size: 27px; margin-top: 18px; }
  .tagline br { display: none; }
  .lede { margin-top: 13px; font-size: 12px; max-width: 32ch; }
  .cta { position: absolute; top: 453px; left: 0; right: 0; flex-direction: row; flex-wrap: nowrap; gap: 8px; margin: 0; }
  .btn { min-height: 43px; padding-inline: 10px; gap: 8px; font-size: 9px; flex: 1; white-space: nowrap; }
  .btn svg { width: 13px; height: 13px; }
  .hero::before { background: linear-gradient(180deg, #08090950, transparent 80%); }
  .hero-landscape { object-position: 70% 50%; }
  .seal-stage { left: 12%; width: 76%; top: 264px; bottom: 131px; }
  .seal-caption { bottom: -1px; left: 16%; right: 16%; font-size: 8px; }
  .seal-caption > span:last-child { display: inline; }
  .hero-footer { height: 45px; font-size: 7px; gap: 8px; }
  .hero-footer .icon-button { width: 27px; height: 27px; }
  .protocol-strip { min-height: 56px; font-size: 8px; padding-block: 16px; }
  .protocol-strip .route { gap: 10px; }
  .protocol-strip > a { font-size: 0; gap: 0; }
  .protocol-strip > a svg { width: 16px; height: 16px; }
  .console-heading { padding-top: 28px; }
  .console-heading h2 { font-size: 24px; }
  .console { grid-template-columns: 1fr; }
  .panel { height: 338px; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
  .panel-state { grid-column: auto; height: auto; }
  .panel-cols-burn, .row-burn { grid-template-columns: 68px minmax(0, 1fr) 60px 48px; }
  .panel-cols-burn span:first-child, .row-burn > :first-child { display: block; }
  .state-body { display: flex; }
  .figures dt, .figures dd { font-size: 12px; }
  .figures .hero-figure dd { font-size: 34px; }
  .band { padding-block: 50px; }
  .band-head h2 { font-size: 32px; }
  .band-head p { font-size: 14px; }
  .stages { grid-template-columns: 1fr; }
  .stage, .stage + .stage { border-left: 0; padding: 22px 0; }
  .stage-num { float: right; }
  .claims { gap: 25px; }
  .claims p { font-size: 12px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 10px 8px; font-size: 9px; }
  .tweak { gap: 10px; }
  .tweak input[type='range'] { width: 135px; }
  .anatomy-controls { padding: 12px; }
  .dump { padding: 20px 10px; }
  .dline { gap: 8px; }
  .doff { font-size: 9px; }
  .byte { width: 22px; height: 24px; font-size: 9px; }
  .dbytes { gap: 2px; }
  .dbytes .byte:nth-child(8) { margin: 0; }
  .dascii { font-size: 9px; }
  .achar { width: 6px; }
  .sizebar { font-size: 8px; }
  .rule { padding-right: 0; }
  .rule-name { font-size: 13px; }
  .rule-head { gap: 9px; }
  .rule-hits { font-size: 8px; }
  .attack-log { padding: 13px; }
  .av-row { padding: 12px 9px; }
  .av-row span { font-size: 8px; }
  .av-row b { font-size: 10px; }
  .diff tbody td { padding: 8px 12px; font-size: 13px; }
  .speclayout { grid-template-columns: 1fr; }
  .honesty { grid-template-columns: 1fr; gap: 12px; }
  .foot .foot-sig { font-size: 8px; line-height: 1.8; }
}
@media (max-width: 360px) {
  :root { --pad: 15px; }
  .hud { gap: 16px; }
  .hero-topline > span:last-child { display: none; }
  .wordmark { font-size: 96px; }
  .tagline { font-size: 24px; }
  .btn { gap: 5px; font-size: 8px; }
  .dascii { display: none; }
}
@media (max-width: 600px) and (max-height: 760px) {
  .hero { height: 544px; }
  .hero-copy { top: 55px; }
  .wordmark { font-size: 90px; }
  .tagline { font-size: 24px; margin-top: 15px; }
  .seal-stage { top: 223px; bottom: 118px; }
  .cta { top: 369px; }
  .seal-caption { bottom: -4px; }
}
