/* TributePad: ROMA art direction.
   A premium ancient-Roman register: inscriptional capitals, temple
   architecture, struck coinage, carved stone. Museum-exhibition restraint,
   never kitsch. Nothing flat: every surface carries depth. */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --marble: #f3edda;
  --marble-2: #ece1c6;
  --travertine: #e2d3ac;
  --stone: #cbb37e;
  --stone-deep: #a98f56;
  --ink: #241a0e;
  --ink-soft: #40341e;
  --muted: #63532f;
  --line: #c9b384;
  --line-strong: #a98f56;
  --gold: #a87e2f;
  --gold-bright: #d9b45c;
  --gold-deep: #7a5a1c;
  --bronze: #8c6239;
  --copper: #a85f32;
  --iron: #57534e;
  --leg-1: #b8862e;
  --leg-2: #8c6239;
  --leg-3: #a85f32;
  --leg-4: #57534e;
  --good: #3f6b4f;
  --bad: #a33b2e;

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='24' viewBox='0 0 36 24'%3E%3Cpath d='M0 20.5 H36 M29 20.5 V5.5 H7 V20.5 M7 20.5 V13 H21' fill='none' stroke='%237a5a1c' stroke-width='3'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 120% 500px at 50% -120px, rgba(217,180,92,0.28), transparent 70%),
    var(--grain),
    linear-gradient(180deg, var(--marble) 0%, var(--marble-2) 60%, var(--travertine) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 36px; }

/* Parchment halo: lifts body copy off busy stone textures. text-shadow
   inherits, so one declaration covers every descendant that does not set
   its own carved shadow. */
.ledger, .ledger-card, .split-tier, .arch-panel, .stele,
.stat-quartet, .diagram, .verify-wallets {
  text-shadow: 0 1px 0 rgba(255,253,244,0.5);
}

/* Inscriptional type: carved, not printed. */
.inscribed {
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,252,238,0.6), 0 -1px 2px rgba(70,48,14,0.35);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.14;
  margin: 0;
}

/* Latin kickers. */
.kicker {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker.centered { justify-content: center; }
.kicker.centered::after {
  content: "";
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(243,237,218,0.97), rgba(236,225,198,0.97));
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 4px 18px rgba(70,48,14,0.18);
}
.nav-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 36px; max-width: 1320px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; display: block; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 21px; letter-spacing: 0.14em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,252,238,0.6), 0 -1px 2px rgba(70,48,14,0.3);
}
.wordmark .wm-pad { color: var(--gold-deep); }
.nav-links { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.nav-links a {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  padding: 6px 2px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold-deep); box-shadow: inset 0 -2px 0 var(--gold); }
.meander-band {
  height: 14px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-color: var(--travertine);
  border-top: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 4px rgba(70,48,14,0.25);
}

/* ---------- buttons: bronze, struck ---------- */
button, .btn {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fbf3dc; text-decoration: none;
  background: linear-gradient(180deg, #8a6420 0%, #6f4e14 55%, #5c3f0f 100%);
  border: 1px solid #4a3208;
  border-radius: 3px;
  padding: 16px 30px; cursor: pointer; display: inline-block;
  box-shadow:
    inset 0 1px 0 rgba(255,235,180,0.55),
    inset 0 -2px 4px rgba(0,0,0,0.35),
    0 6px 16px rgba(70,48,14,0.4);
  text-shadow: 0 -1px 2px rgba(0,0,0,0.5);
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
button:hover, .btn:hover { filter: brightness(1.12); color: #fff8e2; text-decoration: none; }
button:active, .btn:active { transform: translateY(2px); box-shadow: inset 0 2px 6px rgba(0,0,0,0.4); }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: grayscale(0.4); }
button.ghost, .btn.ghost {
  background: linear-gradient(180deg, rgba(255,252,238,0.95), rgba(226,211,172,0.95));
  color: var(--ink); border: 1px solid var(--line-strong);
  text-shadow: 0 1px 0 rgba(255,252,238,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 10px rgba(70,48,14,0.2);
}
button.ghost:hover, .btn.ghost:hover { color: var(--gold-deep); border-color: var(--gold-deep); filter: none; }
button.small, .btn.small { padding: 10px 20px; font-size: 11px; }

/* ---------- hero: the temple ---------- */
.hero {
  position: relative;
  background: #100c06 url("../img/hero-temple-altar.jpg") center 30% / cover no-repeat;
  color: #f4ead2;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,6,3,0.88) 0%, rgba(8,6,3,0.55) 45%, rgba(8,6,3,0.12) 75%, rgba(8,6,3,0.35) 100%),
    linear-gradient(0deg, rgba(8,6,3,0.75) 0%, transparent 30%),
    linear-gradient(180deg, rgba(8,6,3,0.55) 0%, transparent 22%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 7fr 5fr; gap: 60px; align-items: center;
  padding: 110px 36px 120px; max-width: 1320px; margin: 0 auto;
}
.hero-copy .kicker { color: var(--gold-bright); }
.hero-copy h1 {
  font-size: clamp(44px, 5.6vw, 84px);
  font-weight: 600; letter-spacing: 0.03em;
  line-height: 1.08;
  margin: 0 0 28px;
  max-width: 14ch;
  color: #f8efdb;
  text-shadow: 0 -2px 4px rgba(0,0,0,0.8), 0 4px 18px rgba(0,0,0,0.6);
}
.hero-copy h1 em { font-style: normal; color: var(--gold-bright); }
.hero-lede {
  font-size: 21px; color: #e8dcc0; max-width: 44ch; margin: 0 0 38px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin-top: 26px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.34em; color: #c9a95e;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-coin { display: flex; justify-content: center; }
.hero-coin img {
  width: min(340px, 70%); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 14px solid transparent;
  background: repeating-conic-gradient(from 0deg, #6f5518 0deg 2.5deg, #e8c86e 2.5deg 5deg) border-box;
  box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 90px rgba(217,180,92,0.28);
}

/* ---------- temple section headers ---------- */
.section { padding: 96px 0; position: relative; }
.temple-head { margin-bottom: 56px; }
.entablature {
  height: 22px; margin-bottom: 34px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-color: transparent;
  opacity: 0.9;
}
.portico { display: grid; grid-template-columns: 64px 1fr 64px; gap: 34px; align-items: stretch; }
.pilaster {
  border-radius: 4px 4px 2px 2px;
  background:
    repeating-linear-gradient(90deg, rgba(70,48,14,0.16) 0 5px, rgba(255,252,238,0.28) 5px 8px, transparent 8px 15px),
    linear-gradient(180deg, #efe4c8, #d9c69a 60%, #c2a76f);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.6),
    inset 0 -4px 8px rgba(70,48,14,0.3),
    0 8px 18px rgba(70,48,14,0.25);
  border: 1px solid var(--line-strong);
  position: relative;
}
.pilaster::before, .pilaster::after {
  content: ""; position: absolute; left: -7px; right: -7px; height: 12px;
  background: linear-gradient(180deg, #f2e8cd, #cbb37e);
  border: 1px solid var(--line-strong);
  box-shadow: 0 3px 6px rgba(70,48,14,0.25);
}
.pilaster::before { top: -13px; border-radius: 2px; }
.pilaster::after { bottom: -13px; border-radius: 2px; }
.portico-title .chapter-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--gold-deep);
  background: radial-gradient(circle at 35% 30%, #f7efdb, #e0cd9e 60%, #c2a76f);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.7),
    inset 0 -3px 6px rgba(70,48,14,0.35),
    0 6px 14px rgba(70,48,14,0.3);
  text-shadow: 0 1px 0 rgba(255,252,238,0.7), 0 -1px 2px rgba(70,48,14,0.4);
  margin-bottom: 22px;
}
.portico-title h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  margin: 0 0 16px;
  max-width: 18ch;
}
.portico-title .standfirst {
  font-size: 20px; color: var(--ink-soft); max-width: 58ch; margin: 0;
}
.pediment { display: block; width: 220px; height: auto; margin: 0 auto 18px; }

/* ---------- the rite: arch-headed panels ---------- */
.rite { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rite.four { grid-template-columns: repeat(4, 1fr); }
.arch-panel {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 120px 120px 6px 6px;
  padding: 64px 30px 34px;
  background:
    var(--grain),
    linear-gradient(180deg, rgba(255,252,238,0.92), rgba(236,225,198,0.92)),
    url("../img/marble-travertine-texture.jpg");
  background-color: var(--marble);
  background-blend-mode: multiply;
  background-size: auto, auto, cover;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.75),
    inset 0 -6px 14px rgba(70,48,14,0.18),
    0 14px 30px rgba(70,48,14,0.28);
  text-align: center;
}
.arch-panel::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--line);
  border-radius: 110px 110px 4px 4px;
  pointer-events: none;
  box-shadow: inset 0 1px 3px rgba(70,48,14,0.2);
}
.arch-panel .arch-no {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.3em; color: var(--gold-deep);
  display: block; margin-bottom: 12px;
}
.arch-panel h3 { font-size: 22px; margin: 0 0 12px; }
.arch-panel p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.arch-panel .arch-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #f7efdb, #dcc896 65%, #b8945a);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(70,48,14,0.35), 0 5px 12px rgba(70,48,14,0.3);
}
.arch-panel .arch-icon svg { width: 34px; height: 34px; }

/* ---------- the great medallion: fee split struck in metal ---------- */
.medallion-stage {
  display: grid; grid-template-columns: minmax(320px, 460px) 1fr; gap: 64px;
  align-items: center; margin: 12px 0 8px;
}
.great-coin {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  padding: 26px;
  background: repeating-conic-gradient(from 0deg, #6f5518 0deg 2.2deg, #e8c86e 2.2deg 4.4deg);
  box-shadow:
    0 30px 60px rgba(70,48,14,0.45),
    inset 0 3px 6px rgba(255,240,200,0.6),
    inset 0 -4px 8px rgba(40,26,6,0.5);
  position: relative;
}
.great-coin .coin-inner {
  width: 100%; height: 100%; border-radius: 50%; position: relative; overflow: hidden;
  background: radial-gradient(circle at 38% 32%, #f2e3ba, #d9b45c 55%, #96702a 100%);
  box-shadow: inset 0 6px 18px rgba(60,40,10,0.5), inset 0 -4px 10px rgba(255,246,220,0.5);
}
.great-coin svg.coin-pie { position: absolute; inset: 0; width: 100%; height: 100%; }
.coin-pie .seg { stroke: rgba(40,26,6,0.55); stroke-width: 2; }
.coin-pie .seg-label {
  font-family: var(--font-display); font-weight: 700;
  fill: #fff6dd; text-anchor: middle;
  text-shadow: none;
  paint-order: stroke; stroke: rgba(40,26,6,0.65); stroke-width: 4px;
}
.coin-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 31%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f7efdb, #dcc896 60%, #a98f56);
  border: 2px solid rgba(70,48,14,0.5);
  box-shadow:
    inset 0 3px 8px rgba(255,255,255,0.7),
    inset 0 -4px 8px rgba(70,48,14,0.45),
    0 4px 12px rgba(40,26,6,0.4);
  display: flex; align-items: center; justify-content: center;
}
.coin-hub svg { width: 62%; height: 62%; }
.struck .mk-body { fill: #4a3208; }
.struck .mk-flame, .struck .mk-flame-flicker { fill: #8a6420; }
.struck {
  filter: drop-shadow(0 1px 0 rgba(255,246,220,0.8)) drop-shadow(0 -1px 1px rgba(40,26,6,0.5));
}
.medallion-legend { display: grid; gap: 22px; }
.legend-row { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.legend-chip {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff6dd;
  text-shadow: 0 -1px 2px rgba(0,0,0,0.45);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), inset 0 -3px 6px rgba(0,0,0,0.35), 0 5px 12px rgba(70,48,14,0.35);
  border: 1px solid rgba(40,26,6,0.5);
}
.legend-row h4 { font-size: 19px; margin: 2px 0 6px; letter-spacing: 0.04em; }
.legend-row p { margin: 0; font-size: 17px; color: var(--ink-soft); max-width: 46ch; }
.legend-row .leg-tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); display: block; margin-top: 8px;
}

/* The precise bar: the canonical split readout, recut in stone. */
.splitbar {
  display: flex; min-height: 52px;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 5px rgba(70,48,14,0.3), 0 6px 14px rgba(70,48,14,0.25);
  margin: 34px 0 16px; border-radius: 3px; overflow: hidden;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em;
}
.splitbar div {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 6px; color: #fff6dd; text-shadow: 0 -1px 2px rgba(0,0,0,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -3px 6px rgba(0,0,0,0.25);
}
.split-50 { width: 50%; background: linear-gradient(180deg, #c99a3a, #a87e2f 60%, #8a6420); }
.split-20a { width: 20%; background: linear-gradient(180deg, #a3764a, #8c6239 60%, #6f4c28); }
.split-20b { width: 20%; background: linear-gradient(180deg, #c07340, #a85f32 60%, #854722); }
.split-10 { width: 10%; background: linear-gradient(180deg, #6e6a63, #57534e 60%, #403d38); }

.marginalia {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 20px;
  margin: 24px 0 0;
  font-size: 17px; color: var(--ink-soft);
  max-width: 64ch;
}
.marginalia strong { color: var(--ink); }

/* Closing colophon under long ledgers. */
.ledger-close { margin: 72px auto 0; max-width: 620px; text-align: center; }
.ledger-close .entablature { margin-bottom: 30px; }
.ledger-close p { font-family: var(--font-body); font-style: italic; font-size: 19px; color: var(--ink-soft); margin: 0; }

/* ---------- leaderboard: the procession ---------- */
.podium {
  display: flex; justify-content: center; align-items: flex-end; gap: 44px;
  margin: 0 0 54px; flex-wrap: wrap;
}
.podium-entry { text-align: center; max-width: 220px; }
.podium-entry .coin-disc { margin: 0 auto 16px; }
.podium-entry .pod-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.06em; margin: 0 0 4px; white-space: nowrap; }
.podium-entry .pod-val { font-family: var(--font-mono); font-size: 13px; color: var(--gold-deep); font-weight: 600; }
.podium-entry .pod-sub { font-size: 15px; color: var(--muted); margin: 2px 0 0; }
.coin-disc {
  border-radius: 50%; padding: 9px;
  background: repeating-conic-gradient(from 0deg, #6f5518 0deg 3deg, #e8c86e 3deg 6deg);
  box-shadow: 0 12px 26px rgba(70,48,14,0.4), inset 0 2px 4px rgba(255,240,200,0.6);
}
.coin-disc.silver { background: repeating-conic-gradient(from 0deg, #6e6a63 0deg 3deg, #cfc9bd 3deg 6deg); }
.coin-disc.bronze { background: repeating-conic-gradient(from 0deg, #6f4c28 0deg 3deg, #c99a5e 3deg 6deg); }
.coin-disc .coin-face {
  border-radius: 50%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 36% 30%, #f7efdb, #e0cd9e 55%, #b8945a);
  box-shadow: inset 0 4px 10px rgba(70,48,14,0.4), inset 0 -3px 8px rgba(255,252,238,0.6);
  font-family: var(--font-display); font-weight: 700; color: var(--gold-deep);
  text-shadow: 0 1px 0 rgba(255,252,238,0.7), 0 -1px 2px rgba(70,48,14,0.45);
}
.coin-disc.g1 { width: 168px; } .coin-disc.g1 .coin-face { font-size: 44px; }
.coin-disc.g2 { width: 138px; } .coin-disc.g2 .coin-face { font-size: 36px; }
.coin-disc.g3 { width: 138px; } .coin-disc.g3 .coin-face { font-size: 36px; }

/* ---------- ledgers: stone tablets ---------- */
.ledger {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background:
    var(--grain),
    linear-gradient(180deg, rgba(255,252,238,0.94), rgba(240,230,200,0.94)),
    url("../img/marble-travertine-texture.jpg");
  background-color: var(--marble);
  background-blend-mode: multiply;
  background-size: auto, auto, cover;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.7),
    inset 0 -6px 14px rgba(70,48,14,0.15),
    0 16px 34px rgba(70,48,14,0.28);
  overflow: hidden;
}
.ledger table { width: 100%; border-collapse: collapse; font-size: 17px; }
.ledger th, .ledger td { text-align: left; padding: 15px 20px; vertical-align: middle; }
.ledger thead th {
  color: var(--gold-deep); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.24em;
  font-family: var(--font-display);
  border-bottom: 2px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(217,180,92,0.25), rgba(217,180,92,0.08));
}
.ledger tbody td { border-bottom: 1px solid var(--line); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tbody tr:hover td { background: rgba(217,180,92,0.16); }
.ledger, .ledger-card table { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 13px; word-break: break-all; }

/* Rank medals: small struck coins. */
.medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--gold-deep);
  background: radial-gradient(circle at 36% 30%, #f7efdb, #dcc896 60%, #a98f56);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -2px 4px rgba(70,48,14,0.35), 0 3px 8px rgba(70,48,14,0.3);
  text-shadow: 0 1px 0 rgba(255,252,238,0.7);
  margin-right: 10px;
}
.medal.rank-1 {
  background: radial-gradient(circle at 36% 30%, #ffe9ad, #d9b45c 55%, #96702a);
  color: #4a3208;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(70,48,14,0.4), 0 0 0 4px rgba(217,180,92,0.35), 0 4px 10px rgba(70,48,14,0.35);
}
.medal.rank-2 {
  background: radial-gradient(circle at 36% 30%, #f2efe8, #cfc9bd 55%, #8f8a7e);
  color: #3a3733;
}
.medal.rank-3 {
  background: radial-gradient(circle at 36% 30%, #f0c892, #c99a5e 55%, #8a5a2c);
  color: #4a2c10;
}

.badge {
  display: inline-block; font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  background: linear-gradient(180deg, #efe4c8, #d9c69a);
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  vertical-align: middle;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.badge.live { color: #2c5238; border-color: var(--good); background: linear-gradient(180deg, #eef2e4, #d9e2c8); }
.badge.stub { color: var(--gold-deep); border-color: var(--gold); background: linear-gradient(180deg, #f7ecd0, #eed9a8); }

.kind {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; padding: 4px 11px; border-radius: 3px;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  background: linear-gradient(180deg, #f2e8cd, #e2d3ac);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.kind-burn { color: #6f4e14; border-color: var(--gold); background: linear-gradient(180deg, #f7ecd0, #eed9a8); }
.kind-swap { color: #33456b; border-color: #9fb0cc; background: linear-gradient(180deg, #eef1f8, #d9e1f0); }
.kind-lp_add, .kind-lp_burn { color: #2c5238; border-color: var(--good); background: linear-gradient(180deg, #eef2e4, #d9e2c8); }
.kind-distribute { color: var(--ink-soft); }

.hint { font-size: 15px; color: var(--muted); font-weight: 400; }

/* ---------- launch: the stele ---------- */
.offering-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: start; }
.offering-rail .chapter-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--gold-deep);
  background: radial-gradient(circle at 35% 30%, #f7efdb, #e0cd9e 60%, #c2a76f);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(70,48,14,0.35), 0 6px 14px rgba(70,48,14,0.3);
  text-shadow: 0 1px 0 rgba(255,252,238,0.7), 0 -1px 2px rgba(70,48,14,0.4);
  margin-bottom: 22px;
}
.offering-rail h2 { font-size: clamp(36px, 4.2vw, 54px); margin: 0 0 18px; }
.offering-rail > p { color: var(--ink-soft); font-size: 19px; max-width: 42ch; }
.rite-mini { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; }
.rite-mini li { position: relative; padding: 0 0 28px 52px; font-size: 17px; color: var(--ink-soft); }
.rite-mini li::before {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px;
  width: 2px; background: linear-gradient(180deg, var(--line-strong), var(--line));
}
.rite-mini li:last-child::before { display: none; }
.rite-mini .rm-no {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f7efdb, #dcc896 60%, #a98f56);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--gold-deep);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -2px 4px rgba(70,48,14,0.35), 0 3px 8px rgba(70,48,14,0.3);
  text-shadow: 0 1px 0 rgba(255,252,238,0.7);
}
.rite-mini strong { color: var(--ink); display: block; font-size: 18px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.03em; }
.rite-mini p { margin: 4px 0 0; font-size: 16px; }

.stele {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background:
    var(--grain),
    linear-gradient(180deg, rgba(255,252,238,0.96), rgba(238,226,196,0.96)),
    url("../img/marble-travertine-texture.jpg");
  background-color: var(--marble);
  background-blend-mode: multiply;
  background-size: auto, auto, cover;
  padding: 0 0 34px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.75),
    inset 0 -8px 18px rgba(70,48,14,0.18),
    0 24px 50px rgba(70,48,14,0.32);
  position: relative;
  overflow: hidden;
}
.stele .stele-crown {
  background:
    var(--meander) repeat-x center / auto 100%,
    linear-gradient(180deg, #d9c69a, #b8945a);
  border-bottom: 1px solid var(--line-strong);
  height: 30px;
  box-shadow: inset 0 -3px 6px rgba(70,48,14,0.3);
}
.stele .stele-body { padding: 34px 38px 0; position: relative; }

form.launch { display: grid; gap: 20px; }
form.launch label {
  display: grid; gap: 8px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
}
input, textarea, select {
  background: linear-gradient(180deg, #fffdf2, #f7efdb);
  border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 3px; padding: 14px 16px; font-size: 17px; width: 100%;
  font-family: var(--font-body); font-weight: 500;
  box-shadow: inset 0 2px 5px rgba(70,48,14,0.18);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field-error { font-size: 14px; color: var(--bad); font-weight: 600; min-height: 18px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }

.mode-box {
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(247,236,208,0.98), rgba(238,217,168,0.98));
  padding: 20px 22px; position: relative; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 0 0 4px rgba(255,252,238,0.5), 0 6px 14px rgba(70,48,14,0.2);
}
.mode-box .mode-name {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--gold-deep);
  letter-spacing: 0.04em;
}
.mode-box p { margin: 8px 0 0; font-size: 16px; color: var(--ink-soft); }
.mode-toggle { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 15px; color: var(--ink-soft); font-family: var(--font-body); }
.mode-toggle label { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 15px; }
.mode-toggle select { width: auto; }

/* Signing steps: inscriptions on the stele. */
.steps { display: grid; gap: 0; margin: 28px 0; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(70,48,14,0.15); }
.step {
  padding: 20px 22px; display: flex; gap: 18px; align-items: flex-start;
  border-top: 1px solid var(--line); position: relative;
  background: linear-gradient(180deg, rgba(255,253,242,0.6), rgba(240,230,200,0.6));
}
.step:first-child { border-top: 0; }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 36% 30%, #f7efdb, #dcc896 60%, #a98f56);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--muted); position: relative; z-index: 1;
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -2px 4px rgba(70,48,14,0.35);
}
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 41px; top: 62px; bottom: -2px;
  width: 2px; background: var(--line);
}
.step.active { background: linear-gradient(180deg, #f7ecd0, #eed9a8); }
.step.active .n {
  background: radial-gradient(circle at 36% 30%, #ffe9ad, #d9b45c 55%, #96702a);
  color: #4a3208; border-color: var(--gold-deep);
  box-shadow: 0 0 0 5px rgba(217,180,92,0.3), inset 0 2px 4px rgba(255,255,255,0.7);
}
.step.done .n { background: radial-gradient(circle at 36% 30%, #e8f0e2, #b9d0ae 60%, #6f9a62); color: #24401f; border-color: var(--good); }
.step.error .n { background: radial-gradient(circle at 36% 30%, #f5d9d4, #d89a8d 60%, #a33b2e); color: #fff; border-color: var(--bad); }
.step .body { font-size: 16px; }
.step .body strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.03em; }
.step .body .detail { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.step .body .sig { font-family: var(--font-mono); font-size: 12px; color: var(--good); word-break: break-all; }

.notice {
  border: 1px solid var(--line-strong); border-radius: 3px;
  background: linear-gradient(180deg, #f7ecd0, #eed9a8);
  padding: 16px 20px; font-size: 16px; margin: 18px 0;
  color: var(--ink-soft); position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 0 0 4px rgba(255,252,238,0.45), 0 6px 14px rgba(70,48,14,0.18);
}
.notice strong { color: var(--ink); }
.notice.warn { border-color: #c9a24a; background: linear-gradient(180deg, #faf0d2, #f2dfae); }

/* ---------- coin page: dedication plaque ---------- */
.plaque {
  border: 1px solid var(--gold);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,252,238,0.55), rgba(70,48,14,0.12)),
    url("../img/marble-travertine-texture.jpg") center / cover;
  padding: 44px 48px; margin: 34px 0 8px;
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.8),
    inset 0 0 0 8px rgba(255,252,238,0.35),
    inset 0 0 60px rgba(70,48,14,0.2),
    0 20px 44px rgba(70,48,14,0.3);
}
.plaque::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold); opacity: 0.6; pointer-events: none; border-radius: 2px; }
.plaque .honors {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-deep);
  margin: 0 0 14px; position: relative;
}
.plaque .supported-name {
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1; margin: 0 0 12px;
  position: relative;
  text-shadow: 0 1px 0 rgba(255,252,238,0.7), 0 -1px 3px rgba(70,48,14,0.4);
}
.plaque .honors.mono { letter-spacing: 0.04em; text-transform: none; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.coin-title { font-size: clamp(44px, 5.6vw, 76px); line-height: 1; margin: 0 0 10px;
  text-shadow: 0 1px 0 rgba(255,252,238,0.6), 0 -1px 2px rgba(70,48,14,0.35); }
.coin-mint-line { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin: 0 0 6px; word-break: break-all; }

/* Fee routing frieze on the coin page. No blend modes and no animated SVG
   children here: an infinite repaint inside a multiply blend group was
   killing the compositor in headless Chromium (black void + scroll jank). */
.diagram {
  border: 1px solid var(--line-strong); border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,252,238,0.55), rgba(236,225,198,0.55)),
    url("../img/marble-travertine-texture.jpg");
  background-color: var(--marble);
  background-size: auto, cover;
  padding: 14px; margin: 30px 0;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.7), inset 0 -6px 14px rgba(70,48,14,0.15), 0 16px 34px rgba(70,48,14,0.28);
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .dg-vault { fill: #efe0b8; stroke: var(--gold-deep); stroke-width: 1.5; }
.diagram .dg-channel { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 7 6; }
.diagram .dg-tablet { fill: rgba(255,253,242,0.85); stroke: var(--line-strong); stroke-width: 1.25; }
.diagram .dg-num { font-family: var(--font-display); font-weight: 700; }
.diagram .dg-label { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; fill: var(--ink-soft); }
.diagram .dg-sub { font-family: var(--font-body); font-size: 13px; fill: var(--muted); }
.diagram .dg-vault-label { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; fill: var(--gold-deep); }

.ledger-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.ledger-card {
  border: 1px solid var(--line-strong); border-radius: 4px;
  background:
    var(--grain),
    linear-gradient(180deg, rgba(255,252,238,0.94), rgba(240,230,200,0.94)),
    url("../img/marble-travertine-texture.jpg");
  background-color: var(--marble);
  background-blend-mode: multiply; background-size: auto, auto, cover;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.7), inset 0 -6px 14px rgba(70,48,14,0.15), 0 16px 34px rgba(70,48,14,0.28);
  padding: 6px 0;
}
.ledger-card > h3 { padding: 18px 24px 6px; margin: 0; font-size: 21px; }
.ledger-card table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.ledger-card th, .ledger-card td { text-align: left; padding: 12px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger-card thead th {
  font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--gold-deep);
  background: linear-gradient(180deg, rgba(217,180,92,0.25), rgba(217,180,92,0.08));
}
.ledger-card tbody tr:last-child td { border-bottom: 0; }
.ledger-card tbody tr:hover td { background: rgba(217,180,92,0.16); }
.ledger-card .hint { padding: 12px 24px 18px; margin: 0; }
.ledger-card .mono.pad { padding: 0 24px 20px; display: block; }

/* ---------- burns: the ledger of fire ---------- */
.fire-banner {
  position: relative;
  background: #0d0a05 url("../img/eternal-flame-brazier.jpg") center 60% / cover no-repeat;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}
.fire-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,6,3,0.72) 0%, rgba(8,6,3,0.25) 55%, rgba(8,6,3,0.8) 100%),
    radial-gradient(ellipse 60% 90% at 50% 55%, transparent 40%, rgba(8,6,3,0.6) 100%);
}
.fire-banner .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.fire-banner h1 {
  font-size: clamp(48px, 6.4vw, 88px); color: #f8efdb; margin: 0 0 20px;
  text-shadow: 0 -2px 4px rgba(0,0,0,0.85), 0 4px 20px rgba(0,0,0,0.6);
  letter-spacing: 0.03em;
}
.fire-banner .kicker { color: var(--gold-bright); }
.fire-banner .standfirst { font-size: 20px; color: #e8dcc0; max-width: 62ch; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,0.75); }
.stat-quartet {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden;
  background:
    var(--grain),
    linear-gradient(180deg, rgba(255,252,238,0.94), rgba(240,230,200,0.94)),
    url("../img/marble-travertine-texture.jpg");
  background-color: var(--marble);
  background-blend-mode: multiply; background-size: auto, auto, cover;
  margin: 44px 0;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.7), 0 16px 34px rgba(70,48,14,0.28);
}
.stat-cell { padding: 30px 26px; border-left: 1px solid var(--line); position: relative; }
.stat-cell:first-child { border-left: 0; }
.stat-cell::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 5px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 4px rgba(70,48,14,0.3);
}
.stat-cell .stat-num {
  font-size: clamp(40px, 4.2vw, 58px); line-height: 1; margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255,252,238,0.6), 0 -1px 2px rgba(70,48,14,0.35);
}
.stat-cell .stat-num.ember { color: var(--gold-deep); }
.stat-cell p { margin: 0; font-family: var(--font-display); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }

/* ---------- seasons: proclamation ---------- */
.proclamation {
  border: 1px solid var(--gold); border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,252,238,0.6), rgba(70,48,14,0.1)),
    url("../img/marble-travertine-texture.jpg") center / cover;
  padding: 48px 52px; margin: 10px 0 8px;
  display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center;
  position: relative;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.8),
    inset 0 0 0 8px rgba(255,252,238,0.35),
    inset 0 0 60px rgba(70,48,14,0.18),
    0 20px 44px rgba(70,48,14,0.3);
}
.proclamation::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--line-strong); pointer-events: none; border-radius: 2px; }
.proclamation h3 { font-size: clamp(30px, 3.8vw, 46px); margin: 0 0 10px; line-height: 1.05; position: relative;
  text-shadow: 0 1px 0 rgba(255,252,238,0.7), 0 -1px 2px rgba(70,48,14,0.35); }
.proclamation p { margin: 0; color: var(--ink-soft); position: relative; max-width: 52ch; font-size: 18px; }
.seal { width: 150px; height: 150px; flex-shrink: 0; position: relative; }
.seal img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 10px solid transparent;
  background: repeating-conic-gradient(from 0deg, #6f5518 0deg 3deg, #e8c86e 3deg 6deg) border-box;
  box-shadow: 0 14px 30px rgba(70,48,14,0.45), inset 0 2px 4px rgba(255,240,200,0.5);
}

/* ---------- verify: the proof ---------- */
.proof-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 60px; align-items: start; }
.verify-wallets {
  border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden;
  background:
    var(--grain),
    linear-gradient(180deg, rgba(255,252,238,0.94), rgba(240,230,200,0.94)),
    url("../img/marble-travertine-texture.jpg");
  background-color: var(--marble);
  background-blend-mode: multiply; background-size: auto, auto, cover;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.7), 0 16px 34px rgba(70,48,14,0.28);
}
.verify-wallets .wallet-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 24px; border-top: 1px solid var(--line);
}
.verify-wallets .wallet-row:first-child { border-top: 0; }
.verify-wallets .wallet-row:hover { background: rgba(217,180,92,0.18); }
.wallet-idx {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--gold-deep);
  text-shadow: 0 1px 0 rgba(255,252,238,0.7);
}
.verify-wallets .wallet-label { font-weight: 600; font-size: 17px; font-family: var(--font-display); letter-spacing: 0.02em; }
.verify-wallets .wallet-label small { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 3px; font-family: var(--font-body); }
.verify-wallets .wallet-addr { font-family: var(--font-mono); font-size: 12px; word-break: break-all; color: var(--ink-soft); margin-top: 6px; }
.verify-wallets .wallet-link { font-size: 11px; font-weight: 700; white-space: nowrap; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; }
.verify-steps { counter-reset: vstep; list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 18px; }
.verify-steps li { position: relative; padding-left: 62px; font-size: 17px; color: var(--ink-soft); }
.verify-steps li strong { color: var(--ink); }
.verify-steps li::before {
  counter-increment: vstep; content: counter(vstep, upper-roman);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--gold-deep);
  background: radial-gradient(circle at 36% 30%, #f7efdb, #dcc896 60%, #a98f56);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -2px 4px rgba(70,48,14,0.35), 0 4px 10px rgba(70,48,14,0.3);
  text-shadow: 0 1px 0 rgba(255,252,238,0.7);
}
.split-list { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 18px 0; }
.split-tier {
  border: 1px solid var(--line-strong); border-radius: 4px;
  background:
    var(--grain),
    linear-gradient(180deg, rgba(255,252,238,0.94), rgba(240,230,200,0.94)),
    url("../img/marble-travertine-texture.jpg");
  background-color: var(--marble);
  background-blend-mode: multiply; background-size: auto, auto, cover;
  padding: 24px 26px; position: relative;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.7), 0 10px 22px rgba(70,48,14,0.24);
}
.split-tier::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; border-radius: 2px; }
.split-tier h4 { font-family: var(--font-display); font-size: 19px; margin: 0 0 14px; font-weight: 600; position: relative; letter-spacing: 0.04em; }
.split-tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; color: var(--ink-soft); position: relative; }
.split-tier li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line-strong); padding-bottom: 10px; }
.split-tier li:last-child { border-bottom: 0; padding-bottom: 0; }
.split-tier li strong { color: var(--ink); font-family: var(--font-display); font-size: 16px; }
.split-tier .hint { position: relative; }
.metal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 10px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), inset 0 -1px 2px rgba(0,0,0,0.35); }

/* ---------- footer ---------- */
footer { margin-top: 96px; border-top: 1px solid var(--line-strong); }
footer .meander-band { border-top: 0; border-bottom: 1px solid var(--line-strong); height: 18px; }
.foot-main {
  background: linear-gradient(180deg, #e9dcc0, #d9c69a);
  padding: 54px 0 60px;
  box-shadow: inset 0 4px 10px rgba(70,48,14,0.2);
}
.foot-grid { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 40px; align-items: start; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand svg { width: 46px; height: 46px; flex-shrink: 0; }
.foot-brand .wordmark { font-size: 24px; }
.foot-tag { font-size: 18px; font-style: italic; color: var(--ink-soft); margin: 12px 0 0; max-width: 34ch; }
.foot-col h5 { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.26em; color: var(--gold-deep); margin: 0 0 16px; }
.foot-col a { display: block; text-decoration: none; color: var(--ink-soft); font-size: 17px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-col .fine-print { margin: 0; color: var(--ink-soft); font-size: 17px; }
.foot-base {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-strong);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--gold-deep);
}

/* ---------- mark ---------- */
.mk-body { fill: var(--ink); }
.mk-flame { fill: var(--gold); }
.mk-flame-flicker {
  fill: var(--gold);
  transform-origin: 60px 62px;
  animation: flick 3.4s ease-in-out infinite;
}
@keyframes flick {
  0%, 100% { transform: scaleY(1) skewX(0deg); }
  30% { transform: scaleY(1.045) skewX(1.2deg); }
  55% { transform: scaleY(0.975) skewX(-1deg); }
  80% { transform: scaleY(1.02) skewX(0.6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-flame-flicker { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 80px 36px 90px; }
  .hero-coin { order: -1; }
  .hero-coin img { width: min(240px, 60%); }
  .portico { grid-template-columns: 1fr; }
  .pilaster { display: none; }
  .medallion-stage { grid-template-columns: 1fr; gap: 44px; }
  .great-coin { max-width: 440px; margin: 0 auto; }
  .proof-grid { grid-template-columns: 1fr; gap: 44px; }
  .offering-grid { grid-template-columns: 1fr; gap: 44px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.14em; }
  .nav-cta { display: none; }
  .section { padding: 64px 0; }
  .rite { grid-template-columns: 1fr; }
  .rite.four { grid-template-columns: 1fr; }
  .arch-panel { border-radius: 90px 90px 6px 6px; padding-top: 52px; }
  .stat-quartet { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(3) { border-left: 0; }
  .stat-cell { border-top: 1px solid var(--line); }
  .stat-cell:nth-child(-n+2) { border-top: 0; }
  .ledger-pair { grid-template-columns: 1fr; }
  .proclamation { grid-template-columns: 1fr; padding: 36px 28px; text-align: center; }
  .seal { margin: 0 auto; }
  .verify-wallets .wallet-row { grid-template-columns: 1fr; gap: 8px; }
  .wallet-idx { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .stele .stele-body { padding: 26px 22px 0; }
  .plaque { padding: 34px 26px; }
  .podium { gap: 28px; }
}
