:root {
  color-scheme: dark;
  --bg: #0f241b;
  --bg-deep: #0b1a13;
  --surface: #142e21;
  --surface-2: #113022;
  --line: #2c4a38;
  --line-soft: rgba(172, 188, 169, 0.2);
  --text: #f1ecdd;
  --muted: #acbca9;
  --muted-2: #7e947f;
  --gold: #24e000;
  --gold-deep: #18c900;
  --gold-rgb: 36, 224, 0;
  --success: #7cc29a;
  --paper: #f3f0e6;
  --ink: #1d2c22;
  --warning-bg: #332912;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 580px at 50% -20%, rgba(42, 92, 62, 0.58), transparent 70%),
    var(--bg);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
}

.skip-link:focus {
  top: 16px;
}

.anti-fake-ribbon,
.proof-alert {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  color: #122a1e;
  background: var(--gold-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.proof-alert {
  background: var(--warning-bg);
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.site-header {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 15px 56px;
  background: rgba(9, 26, 18, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
}

.brand-seal {
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.ticker,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid #3e5c49;
  border-radius: 3px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.proof-link,
.source-list a,
.section-head a,
.site-footer a,
.button.text {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.proof-link:hover,
.source-list a:hover,
.section-head a:hover,
.site-footer a:hover,
.button.text:hover {
  color: var(--gold);
}

.header-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.proof-link {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 56px;
  align-items: center;
  padding: 68px 56px 72px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 620px at 50% 0%, #163526 0%, var(--bg) 74%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  top: -120px;
  left: -120px;
}

.hero::after {
  width: 380px;
  height: 380px;
  right: -100px;
  bottom: -140px;
}

.hero-mark {
  position: absolute;
  right: 33%;
  top: 50%;
  width: 470px;
  height: 470px;
  transform: translateY(-50%);
  opacity: 0.055;
  pointer-events: none;
}

.hero-mark img {
  width: 100%;
  height: 100%;
}

.hero-mascot {
  position: absolute;
  right: clamp(350px, 32vw, 470px);
  bottom: -56px;
  z-index: 0;
  width: clamp(320px, 28vw, 410px);
  opacity: 0.48;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 76% 84% at 50% 52%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 84% at 50% 52%, #000 48%, transparent 100%);
}

.hero-mascot picture,
.hero-mascot img {
  display: block;
  width: 100%;
}

.hero-mascot img {
  height: auto;
  mix-blend-mode: lighten;
}

.hero-copy,
.sources-card {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.domain-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.domain-line span,
.section-kicker {
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 7px;
  text-transform: uppercase;
}

.title-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 430px;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 16px;
}

.title-rule::before,
.title-rule::after {
  content: "";
  flex: 1;
  height: 1px;
}

.title-rule::before {
  background: linear-gradient(90deg, transparent, var(--gold));
}

.title-rule::after {
  background: linear-gradient(270deg, transparent, var(--gold));
}

.core-line {
  max-width: 480px;
  margin-bottom: 22px;
  color: #d8dacb;
  font-family: var(--font-display);
  font-size: 23px;
  font-style: italic;
  line-height: 1.35;
}

.contract-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 10px 15px;
  border: 1px solid #3e5c49;
  border-radius: 3px;
  background: rgba(13, 26, 19, 0.55);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
}

.contract-pill span {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.contract-pill strong {
  color: var(--text);
}

.contract-pill em {
  color: var(--muted);
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.button,
.tiny-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3e5c49;
  border-radius: 3px;
  padding: 0 22px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #122a1e;
}

.button.ghost {
  background: rgba(10, 25, 18, 0.35);
}

.button.outline {
  border-color: rgba(var(--gold-rgb), 0.62);
  color: var(--gold);
}

.button.text {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--gold);
  font-weight: 600;
  text-decoration-line: underline;
}

.button:hover,
.tiny-action:hover,
.swatches button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.tiny-action:focus-visible,
.swatches button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sources-card,
.proof-table,
.contract-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
}

.panel-heading h2,
.site-footer h2 {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  border-top: 1px solid var(--line);
}

.source-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.source-list a::after {
  content: "open";
  flex: none;
  color: var(--gold);
  font-size: 10px;
}

.sources-note {
  margin: 0;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: rgba(var(--gold-rgb), 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
}

.proof-section,
.rules-section,
.contract-section,
.seal-section {
  padding: 56px;
  border-bottom: 1px solid var(--line);
}

.keeper-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: center;
  padding: 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(560px 430px at 18% 55%, rgba(var(--gold-rgb), 0.1), transparent 72%),
    var(--bg-deep);
}

.keeper-section::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 13%;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(var(--gold-rgb), 0.12);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.keeper-visual {
  position: relative;
  z-index: 1;
  align-self: end;
  min-height: 560px;
}

.keeper-visual > img {
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: min(560px, 125%);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.keeper-proof-state {
  position: absolute;
  right: 8px;
  bottom: 42px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid #3e5c49;
  border-radius: 3px;
  background: rgba(7, 21, 15, 0.9);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.keeper-proof-state span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--muted-2);
}

.keeper-proof-state[data-state="verified"] {
  border-color: var(--success);
  color: var(--success);
}

.keeper-proof-state[data-state="verified"] span,
.keeper-proof-state[data-state="published"] span {
  background: var(--success);
}

.keeper-proof-state[data-state="unavailable"] {
  border-color: #bc9b54;
  color: #d3bd83;
}

.keeper-proof-state[data-state="unavailable"] span {
  background: #bc9b54;
}

.keeper-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 72px 0;
}

.keeper-kicker {
  margin-bottom: 17px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.keeper-copy h2 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.3vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.keeper-lead {
  max-width: 580px;
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 23px;
  font-style: italic;
  line-height: 1.4;
}

.keeper-body {
  max-width: 580px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.keeper-protocol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.keeper-protocol li {
  min-width: 0;
  padding: 15px 14px;
  border-left: 1px solid var(--line);
}

.keeper-protocol li:first-child {
  padding-left: 0;
  border-left: 0;
}

.keeper-protocol span {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
}

.keeper-protocol strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.keeper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.contract-section {
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 12px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.section-head a {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.proof-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
}

.proof-row:first-child {
  border-top: 0;
}

.proof-row span,
.proof-row strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

.proof-row span {
  color: var(--muted);
}

.proof-row strong {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.proof-row em,
.status-badge {
  min-width: 94px;
  justify-content: center;
  padding: 5px 10px;
  border: 1px dashed #6e8577;
  border-radius: 2px;
  color: #a9bfac;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.proof-row-live em,
html[data-proof-status="live"] .proof-row em,
html[data-proof-status="live"] .status-badge {
  border-color: var(--success);
  color: var(--success);
}

.proof-footnote {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.tiny-action {
  min-height: 26px;
  padding: 0 8px;
  border-color: var(--gold);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contract-card {
  padding: 0;
}

.contract-address {
  padding: 10px 20px 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contract-warning {
  margin: 0 20px 18px;
  padding: 13px 16px;
  border: 1px solid rgba(var(--gold-rgb), 0.52);
  border-radius: 3px;
  background: rgba(var(--gold-rgb), 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}

.contract-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 0 20px 20px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-grid li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.rules-grid span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.rules-grid strong {
  color: var(--text);
  font-size: 16px;
}

.origin-section {
  padding: 0 56px 60px;
  border-bottom: 1px solid var(--line);
}

.origin-card {
  padding: 30px 32px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.origin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-kicker.dark {
  background: #8f6f33;
}

.origin-header h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.origin-header > span {
  color: #5b695c;
  font-family: var(--font-mono);
  font-size: 11px;
}

.origin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.origin-grid article {
  border-top: 1px solid #d8d2c0;
  padding-top: 12px;
}

.origin-grid span {
  color: #8f6f33;
  font-family: var(--font-mono);
  font-size: 11px;
}

.origin-grid h3 {
  margin: 7px 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
}

.origin-grid p {
  margin: 0;
  color: #41503f;
  font-size: 14px;
  line-height: 1.5;
}

.manifesto-section {
  position: relative;
  overflow: hidden;
  padding: 64px 56px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: radial-gradient(600px 360px at 50% 50%, #163526 0%, var(--bg) 78%);
}

.manifesto-section::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(var(--gold-rgb), 0.14);
  border-radius: 999px;
}

.manifesto-section p {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.manifesto-section blockquote {
  max-width: 840px;
  margin: 0 auto;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  line-height: 1.35;
}

.seal-layout {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
}

.seal-preview {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 30%, #1b3a2a, var(--bg));
}

.seal-preview img {
  width: 144px;
  height: 144px;
  filter: none;
}

.seal-preview[data-pfp-mode="mascot"] {
  overflow: hidden;
  background: #07150f;
}

.seal-preview[data-pfp-mode="mascot"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seal-preview[data-seal-theme="forest"] {
  background: radial-gradient(circle at 50% 30%, #1b3a2a, var(--bg));
}

.seal-preview[data-seal-theme="pulse"] {
  background: #0d1310;
}

.seal-preview[data-seal-theme="minimal"] {
  background: #0b0f0c;
}

.seal-preview[data-seal-theme="minimal"] img {
  filter: grayscale(1) brightness(1.35);
}

.seal-preview[data-seal-theme="paper"] {
  background: var(--paper);
}

.seal-preview[data-seal-theme="paper"] img {
  filter: sepia(0.55) saturate(0.8) brightness(0.78);
}

.seal-controls {
  max-width: 440px;
}

.seal-controls p {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.pfp-mode-control {
  width: fit-content;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-deep);
}

.pfp-mode-control button {
  min-width: 132px;
  min-height: 40px;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.pfp-mode-control button:first-child {
  border-left: 0;
}

.pfp-mode-control button[aria-pressed="true"] {
  background: var(--gold);
  color: #122a1e;
}

.pfp-mode-control button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.swatches {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.swatches button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}

.swatches button[data-theme="forest"] {
  background: #1b3a2a;
}

.swatches button[data-theme="pulse"] {
  background: var(--gold);
}

.swatches button[data-theme="minimal"] {
  background: #0b0f0c;
}

.swatches button[data-theme="paper"] {
  background: #f3f0e6;
}

.swatches button[aria-pressed="true"] {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.pfp-local-note {
  display: block;
  margin-top: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 44px;
  padding: 40px 56px 28px;
  background: var(--bg-deep);
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer a {
  width: fit-content;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.footer-brand {
  margin-bottom: 2px;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
}

.error-page::before {
  display: none;
}

.error-shell {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 28px;
  border: 1px solid #d8d2c0;
  border-radius: 8px;
  background: #fbf9f1;
  text-align: center;
}

.error-shell h1 {
  margin: 0;
  color: var(--ink);
  font-size: 78px;
  letter-spacing: 0;
}

.error-mascot {
  width: 180px;
  height: 180px;
  border: 1px solid #d8d2c0;
  border-radius: 999px;
  object-fit: cover;
}

.error-shell p {
  max-width: 560px;
  margin-bottom: 0;
  color: #41503f;
  line-height: 1.6;
}

.error-sources {
  width: min(460px, 100%);
  overflow: hidden;
  border: 1px solid #d8d2c0;
  border-radius: 6px;
  background: var(--paper);
  text-align: left;
}

.error-sources a {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid #d8d2c0;
  color: #2f5a42;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.error-sources a:first-child {
  border-top: 0;
}

.error-shell .button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: #8f6f33;
}

.error-disclaimer {
  font-size: 12px;
}

html[data-proof-status="live"] #header-status::before,
html[data-proof-status="live"] #contract-state-badge::before {
  content: "";
}

html[data-proof-status="live"] .anti-fake-ribbon {
  background: var(--gold-deep);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 15px 20px;
  }

  .nav-links,
  .header-status {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 54px 20px 60px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-mascot {
    position: relative;
    right: auto;
    bottom: auto;
    order: 2;
    width: min(300px, 74vw);
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
    overflow: hidden;
    border: 1px solid rgba(var(--gold-rgb), 0.34);
    border-radius: 999px;
    opacity: 0.92;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-mascot img {
    position: static;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
  }

  .sources-card {
    order: 3;
  }

  .hero-mark {
    right: -140px;
    top: 160px;
  }

  .proof-section,
  .rules-section,
  .contract-section,
  .seal-section,
  .origin-section,
  .manifesto-section,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .keeper-section {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    padding: 0 20px;
  }

  .keeper-visual {
    min-height: 500px;
  }

  .keeper-copy {
    padding: 58px 0;
  }

  .origin-grid,
  .rules-grid,
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .anti-fake-ribbon,
  .proof-alert {
    min-height: 48px;
    padding: 8px 22px;
    font-size: 10px;
  }

  .brand-name {
    font-size: 15px;
    letter-spacing: 4px;
  }

  .ticker {
    font-size: 10px;
  }

  .nav-links {
    display: none;
  }

  .header-status {
    justify-content: space-between;
  }

  h1 {
    font-size: 39px;
    letter-spacing: 3px;
  }

  .domain-line {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .core-line {
    font-size: 19px;
  }

  .contract-pill {
    width: 100%;
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button:first-child,
  .hero-actions .button:last-child {
    grid-column: 1 / -1;
  }

  .sources-card {
    display: none;
  }

  .hero-mascot {
    width: min(238px, 70vw);
    margin-bottom: -22px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h2 {
    font-size: 25px;
    letter-spacing: 4px;
  }

  .proof-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px 12px;
    min-height: 62px;
  }

  .proof-row strong {
    grid-column: 1 / 2;
    grid-row: 2;
    font-size: 12px;
  }

  .proof-row em {
    grid-column: 1 / 2;
    grid-row: 3;
    align-self: start;
    justify-self: start;
    min-width: 86px;
    font-size: 9px;
  }

  .proof-footnote {
    align-items: flex-start;
    flex-direction: column;
  }

  .contract-address {
    font-size: 16px;
  }

  .contract-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rules-grid,
  .origin-grid,
  .site-footer,
  .seal-layout {
    grid-template-columns: 1fr;
  }

  .keeper-section {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 20px 52px;
  }

  .keeper-section::after {
    top: 210px;
    left: 50%;
    width: 390px;
    height: 390px;
  }

  .keeper-visual {
    min-height: 390px;
  }

  .keeper-visual > img {
    bottom: -22px;
    width: min(470px, 112%);
  }

  .keeper-proof-state {
    right: 0;
    bottom: 22px;
  }

  .keeper-copy {
    padding: 18px 0 0;
  }

  .keeper-copy h2 {
    font-size: 42px;
  }

  .keeper-protocol {
    grid-template-columns: 1fr;
  }

  .keeper-protocol li,
  .keeper-protocol li:first-child {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .keeper-protocol li:first-child {
    border-top: 0;
  }

  .keeper-protocol span {
    margin-bottom: 0;
  }

  .keeper-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rules-grid li {
    min-height: 0;
    padding: 16px;
  }

  .origin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .manifesto-section blockquote {
    font-size: 24px;
  }

  .seal-preview {
    width: 176px;
    height: 176px;
  }

  .seal-preview img {
    width: 116px;
    height: 116px;
  }

  .pfp-mode-control {
    width: 100%;
  }

  .pfp-mode-control button {
    min-width: 0;
  }
}

@media (max-width: 340px) {
  .hero,
  .proof-section,
  .rules-section,
  .contract-section,
  .seal-section,
  .keeper-section,
  .origin-section,
  .manifesto-section,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
    letter-spacing: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
