@font-face {
  font-family: Geist;
  src: url("/fonts/geist-0.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-1.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #edf1f7;
  --paper-2: #d6dfed;
  --paper-3: #fafcff;
  --ink: #14243d;
  --green: #244c85;
  --green-2: #356ab0;
  --green-3: #14294b;
  --mint: #dce6f5;
  --red: #526fa5;
  --gold: #8499b8;
  --muted: #52627a;
  --dim: #73839b;
  --line: rgba(20, 36, 61, 0.14);
  --line-2: rgba(20, 36, 61, 0.26);
  --up: #356ab0;
  --down: #c2372b;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 40px -22px rgba(20, 41, 75, 0.45);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(53, 106, 176, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(132, 153, 184, 0.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.15 0 0 0 0 0.28 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--green); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: var(--paper);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.splash.done { opacity: 0; visibility: hidden; }
.splash-note {
  position: relative;
  width: 220px;
  height: 120px;
  border-radius: 10px;
  border: 1.5px solid var(--green);
  background: var(--paper-3) url("/rosette.svg") center / 150px no-repeat;
  box-shadow: 0 0 0 5px var(--paper-3), 0 0 0 6px var(--line-2);
  overflow: hidden;
  animation: print 1.4s var(--ease) infinite;
}
.splash-note::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.85) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 1.4s var(--ease) infinite;
}
.splash-note svg { position: absolute; left: 50%; top: 50%; width: 92px; transform: translate(-50%, -50%); color: var(--green); }
.splash-serial { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--red); }
.splash p { margin: 0; font-family: var(--serif); font-size: 26px; color: var(--green-3); }
@keyframes print {
  0% { transform: translateY(14px) scale(0.98); opacity: 0; }
  25%, 75% { transform: none; opacity: 1; }
  100% { transform: translateY(-14px) scale(0.98); opacity: 0; }
}
@keyframes sheen { 0%, 20% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: rgba(237, 241, 247, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; color: var(--green-3); height: 44px; flex: none; transition: transform 0.3s var(--ease); }
.logo:hover { transform: rotate(-3deg) scale(1.03); }
.logo svg { width: 120px; height: 40px; display: block; }
.logo ellipse { fill: none; stroke: currentColor; stroke-width: 3.4; }
.logo path { fill: var(--red); }
.logo text { fill: currentColor; font-family: Archivo, ui-sans-serif, sans-serif; font-weight: 800; font-style: italic; letter-spacing: -0.05em; text-anchor: middle; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  position: relative;
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(20, 36, 61, 0.05); }
.nav a.on { color: var(--green-3); background: var(--mint); }
.who { position: relative; margin-left: auto; flex: none; }
.wallet {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--green-3);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(20, 41, 75, 0.8);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.wallet:hover { background: var(--green); transform: translateY(-1px); }
.profile {
  position: absolute;
  z-index: 60;
  right: 0;
  top: calc(100% + 10px);
  width: min(340px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--paper-3);
  box-shadow: 0 24px 60px -20px rgba(20, 41, 75, 0.45);
  animation: pop 0.22s var(--ease);
}
.profile[hidden] { display: none; }
.profile strong { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--red); font-weight: 500; }
.profile .addr { color: var(--muted); font-size: 13px; font-family: var(--mono); overflow-wrap: anywhere; }
.profile .sol { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--green-3); }
.profile .rowline { display: flex; gap: 8px; flex-wrap: wrap; }
.profile .picks { display: grid; gap: 8px; }
.profile .pick { width: 100%; justify-content: flex-start; gap: 10px; height: 44px; font-size: 15px; }
.profile .pick img { width: 22px; height: 22px; border-radius: 6px; }
.profile button, .profile a {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.profile button:hover, .profile a:hover { background: var(--mint); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* ---------- main coin strip + tape ---------- */
.tape {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--paper-3);
  overflow: hidden;
  font-family: var(--mono);
}
.tape b {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--red);
  border-right: 1px solid var(--line);
}
.tape b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.tape .track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tape .run { display: flex; gap: 30px; width: max-content; padding: 11px 0; animation: slide 90s linear infinite; }
.tape:hover .run { animation-play-state: paused; }
.tape span { white-space: nowrap; color: var(--muted); font-size: 14px; }
.tape strong { color: var(--ink); font-weight: 600; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- layout ---------- */
.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
main { min-height: 60vh; }
.reveal { animation: rise 0.7s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.serial { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--red); text-transform: uppercase; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 72px);
}
.hero h1 {
  margin: 14px 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--green-3);
}
.hero h1 em { font-style: italic; color: var(--green-2); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.04em;
  height: 0.08em;
  background: var(--red);
  border-radius: 99px;
  transform-origin: left;
  animation: underline 0.9s 0.5s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.hero p.big { max-width: 30ch; margin: 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; color: var(--muted); }
.actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.primary, .ghost {
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.primary { background: var(--green-3); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(20, 41, 75, 0.9); }
.primary:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(20, 41, 75, 0.9); }
.ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.ghost:hover { background: rgba(20, 36, 61, 0.05); transform: translateY(-2px); }
.primary .arrow, .ghost .arrow { transition: transform 0.2s var(--ease); }
.primary:hover .arrow, .ghost:hover .arrow { transform: translateX(3px); }
button:disabled, button:disabled:hover { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
.figures { display: flex; gap: clamp(20px, 4vw, 44px); margin: 36px 0 0; padding: 0; }
.figures div { display: grid; gap: 2px; }
.figures dt { margin: 0; color: var(--dim); font-size: 14px; }
.figures dd { margin: 0; font-family: var(--mono); font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -0.02em; color: var(--green-3); }

/* ---------- the banknote ---------- */
.note-stage { perspective: 1200px; position: relative; }
.note {
  position: relative;
  aspect-ratio: 1.9 / 1;
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at 76% 50%, rgba(255, 255, 255, 0.0) 0 30%, transparent 31%),
    linear-gradient(135deg, #f4f7fc 0%, #e5ecf6 45%, #dce6f3 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 40px 80px -40px rgba(20, 41, 75, 0.55), 0 12px 24px -16px rgba(20, 41, 75, 0.35);
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)) rotateZ(-2deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  overflow: hidden;
  isolation: isolate;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -8px; } }
.note::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  background:
    url("/waves.svg") top left / 120px 24px repeat-x,
    url("/waves.svg") bottom left / 120px 24px repeat-x;
  pointer-events: none;
  z-index: -1;
}
.note::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 48%, rgba(220, 230, 245, 0.35) 52%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen-note 6s 1.2s var(--ease) infinite;
  pointer-events: none;
}
@keyframes sheen-note { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.note .rosette {
  position: absolute;
  right: 6%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("/rosette.svg") center / contain no-repeat;
  opacity: 0.85;
  animation: spin 120s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.note .seal {
  position: absolute;
  right: 6%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
}
.note .seal svg { width: 58%; color: var(--green-3); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8)); }
.note .seal svg path { fill: var(--red); }
.note .bank { position: absolute; left: 7%; top: 17%; font-family: var(--mono); font-size: clamp(9px, 0.9vw, 12px); letter-spacing: 0.3em; color: var(--green); }
.note .denom { position: absolute; left: 7%; top: 27%; font-family: var(--serif); font-size: clamp(44px, 6vw, 84px); line-height: 0.9; color: var(--green-3); letter-spacing: -0.02em; }
.note .denom small { display: block; font-size: 0.32em; letter-spacing: 0.02em; font-style: italic; color: var(--green-2); margin-top: 6px; }
.note .legal { position: absolute; left: 7%; bottom: 16%; max-width: 44%; font-size: clamp(8px, 0.75vw, 10px); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.note .sn { position: absolute; font-family: var(--mono); font-size: clamp(11px, 1.1vw, 15px); letter-spacing: 0.14em; color: var(--red); font-variant-numeric: tabular-nums; }
.note .sn.a { right: 7%; top: 12%; }
.note .sn.b { left: 7%; bottom: 7.5%; font-size: clamp(9px, 0.85vw, 12px); }
.note .corner { position: absolute; right: 7%; bottom: 9%; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 36px); color: var(--green-3); line-height: 1; }
.stamp {
  position: absolute;
  left: -2%;
  bottom: -9%;
  padding: 8px 14px;
  border: 2px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(250, 252, 255, 0.88);
  transform: rotate(-8deg);
  box-shadow: 0 8px 20px -12px rgba(194, 55, 43, 0.6);
  animation: stamp 0.5s 0.9s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.stamp span { color: var(--ink); }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.8); } }

/* ---------- sections ---------- */
.section { padding: clamp(36px, 5vw, 64px) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.02em; color: var(--green-3); }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }
.section-head .more { font-weight: 600; color: var(--green); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.section-head .more:hover { color: var(--red); }
.kicker { margin: 0; }

/* how-it-works steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  background: var(--paper-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.steps li:hover { transform: translateY(-4px); }
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 14px;
}
.steps li::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; background: url("/rosette.svg") center / contain no-repeat; opacity: 0.18; }
.steps h3 { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }

/* cards */
.pair-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 8px; }
.pair {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 188px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-3);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.pair::before {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 220px;
  height: 220px;
  background: url("/rosette.svg") center / contain no-repeat;
  opacity: 0.12;
  z-index: -1;
  transition: transform 0.8s var(--ease), opacity 0.3s;
}
.pair::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.7) 50%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}
.pair:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 1px 0 #fff inset, 0 26px 50px -24px rgba(20, 41, 75, 0.5); }
.pair:hover::before { transform: rotate(45deg) scale(1.08); opacity: 0.22; }
.pair:hover::after { transform: translateX(120%); transition: transform 0.9s var(--ease); }
.pair .toprow, .pair .stats { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pair .toprow { color: var(--muted); font-size: 15px; font-weight: 500; }
.pair .toprow .flagcode { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.pair .toprow .flagcode i { font-style: normal; font-size: 20px; }
.pair .sym { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--green); background: var(--mint); padding: 3px 8px; border-radius: 999px; }
.pair .px { font-family: var(--mono); font-size: clamp(28px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: var(--green-3); margin-top: 6px; }
.pair .cap { color: var(--dim); font-size: 13px; margin-top: -4px; }
.pair .meta { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.pair .stats { color: var(--muted); font-size: 14px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); font-family: var(--mono); }
.pair-grid.small .pair { min-height: 0; padding: 16px; }
.pair-grid.small .px { font-size: 24px; }
.coin .toprow img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); }
.coin .who-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin .who-line div { min-width: 0; }
.coin .nm { color: var(--ink); font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .tk { font-family: var(--mono); font-size: 13px; color: var(--red); letter-spacing: 0.06em; }
.coin .new { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--paper); background: var(--red); padding: 3px 8px; border-radius: 999px; }
.empty-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line-2);
  color: var(--muted);
}
.showall { margin-top: 14px; }
.chip { display: inline-flex; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--green); font-size: 12px; font-weight: 600; vertical-align: middle; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--dim); }
.right { text-align: right; }

/* rates board */
.board, .panel {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.board { overflow: hidden; }
.tools { display: flex; gap: 10px; align-items: center; padding: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.search {
  flex: 1 1 240px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2352627a' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 16px center no-repeat;
  padding: 0 16px 0 44px;
  font-size: 17px;
}
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.tools button {
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.tools button.on { background: var(--paper-3); color: var(--green-3); box-shadow: 0 1px 3px rgba(20, 41, 75, 0.18); }
.head, .row {
  display: grid;
  grid-template-columns: 52px minmax(180px, 1.5fr) 1fr 1fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 0 20px;
}
.head { height: 44px; color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }
.row { min-height: 68px; border-top: 1px solid var(--line); font-size: 17px; transition: background 0.15s; }
.row:hover { background: rgba(220, 230, 245, 0.45); }
.row .right { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.code { font-weight: 700; letter-spacing: 0.02em; }
.name { color: var(--muted); font-size: 15px; }
.flag { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 20px; font-weight: 700; color: var(--green); }
.count { padding: 12px 20px; color: var(--dim); font-size: 14px; font-family: var(--mono); }
.empty { padding: 32px 20px; color: var(--muted); }
.board .more-rows { display: block; width: 100%; height: 56px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--green); font-weight: 600; cursor: pointer; }
.board .more-rows:hover { background: var(--mint); }

.foot { color: var(--dim); font-size: 14px; padding: 8px 0 0; line-height: 1.6; max-width: 80ch; }
.site-foot {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background: url("/waves.svg") top left / 120px 24px repeat-x;
  padding: 44px 0 52px;
  color: var(--muted);
  font-size: 15px;
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-foot .tag { font-family: var(--serif); font-size: 28px; color: var(--green-3); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot nav a:hover { color: var(--red); }

/* ---------- inner pages ---------- */
.page { padding: clamp(36px, 6vw, 72px) 0 32px; }
.page h1 {
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--green-3);
}
.lede { color: var(--muted); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; max-width: 40em; margin: 0 0 14px; }
.lede strong { color: var(--ink); font-weight: 600; }
.needs { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; padding: 0; list-style: none; }
.needs li { padding: 8px 14px; border-radius: 999px; background: var(--paper-3); border: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.needs li b { color: var(--green-3); font-weight: 600; }

.cur-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px;
  margin: 18px 0 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f4f7fc, #e2eaf5);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.cur-hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; background: url("/rosette.svg") center / contain no-repeat; opacity: 0.35; z-index: -1; animation: spin 140s linear infinite; }
.cur-hero .big { font-family: var(--mono); font-size: clamp(40px, 6vw, 72px); font-weight: 500; letter-spacing: -0.04em; color: var(--green-3); line-height: 1; }
.cur-hero .sub { color: var(--muted); margin-top: 8px; }
.cur-hero .move { font-family: var(--mono); font-size: 20px; text-align: right; }
.cur-hero .move small { display: block; color: var(--dim); font-size: 13px; font-family: var(--sans); }

.detail { margin-top: 0; padding: 22px; display: grid; gap: 8px; }
.detail .code { font-size: 15px; color: var(--red); font-family: var(--mono); letter-spacing: 0.08em; }
.detail .px { font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -0.03em; color: var(--green-3); line-height: 1.05; }
.detail .meta { color: var(--dim); font-size: 13px; font-family: var(--mono); overflow-wrap: anywhere; }
.detail .primary { justify-self: start; margin-top: 8px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--green-3); margin: 44px 0 10px; line-height: 1.05; }
.prose p { color: var(--muted); font-size: 19px; margin: 0 0 14px; }
.prose ul { color: var(--muted); font-size: 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- launch form ---------- */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 28px; align-items: start; margin-top: 26px; }
form.launch { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); margin: 0; }
.step-title { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.step-title:first-child { margin-top: 0; }
.step-title span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-3); color: var(--paper); font-family: var(--mono); font-size: 14px; font-weight: 500; flex: none; }
.step-title small { color: var(--dim); font-weight: 400; font-size: 15px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.5; }
input, select, textarea {
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 0 16px;
  font-size: 17px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #9baac0; }
input:focus, textarea:focus, select:focus, .picker-btn:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(53, 106, 176, 0.15); }
input:disabled { background: var(--paper-2); }
textarea { height: 104px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
input[type="file"] { height: auto; padding: 12px 14px; font-size: 15px; background: var(--paper); }
input[type="file"]::file-selector-button { margin-right: 12px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--green-3); color: var(--paper); font: inherit; font-weight: 600; cursor: pointer; }
.quotes { display: flex; flex-wrap: wrap; gap: 8px; }
.quotes button {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 14px;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.quotes button:hover { transform: translateY(-1px); }
.quotes button.on { background: var(--green-3); color: var(--paper); border-color: transparent; }
.picker { position: relative; }
.picker-btn {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2314243d' stroke-width='2'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E") right 16px center no-repeat;
  color: var(--ink);
  text-align: left;
  padding: 0 40px 0 16px;
  font-size: 17px;
  cursor: pointer;
}
.picker-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--paper-3);
  box-shadow: 0 24px 50px -20px rgba(20, 41, 75, 0.45);
  animation: pop 0.18s var(--ease);
}
.picker-menu[hidden] { display: none; }
.picker-menu input { width: 100%; margin-bottom: 6px; height: 44px; }
.picker-opt { width: 100%; min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; padding: 0 12px; font-size: 16px; cursor: pointer; }
.picker-opt:hover, .picker-opt.on { background: var(--mint); }
.picker-empty { padding: 10px; color: var(--dim); font-size: 15px; }
details.more {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 16px;
}
details.more summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 8px; font-size: 16px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-family: var(--mono); font-size: 14px; line-height: 1; transition: transform 0.2s var(--ease); }
details.more[open] summary::before { content: "−"; }
details.more > div { display: grid; gap: 12px; padding: 0 0 16px; }
details.more .hint { font-size: 14px; }
.status { min-height: 1.4em; color: var(--muted); font-size: 16px; }
.status:empty { display: none; }
.status.bad { color: var(--down); padding: 12px 14px; border-radius: 12px; background: rgba(194, 55, 43, 0.08); }
.status.ok { color: var(--up); padding: 12px 14px; border-radius: 12px; background: var(--mint); }
form.launch button.primary { height: 60px; font-size: 19px; width: 100%; }
.mintline { overflow-wrap: anywhere; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.ready { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 8px; background: var(--paper); font-size: 15px; }
.ready .actions { margin-top: 4px; }
.ready .primary, .ready .ghost { height: 42px; font-size: 15px; padding: 0 16px; }
#finish-mint:empty { display: none; }

.preview { position: sticky; top: 96px; display: grid; gap: 14px; }
.preview .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--red); }
.mini-note {
  position: relative;
  aspect-ratio: 1.75 / 1;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #f4f7fc, #dce6f3);
  box-shadow: 0 30px 60px -34px rgba(20, 41, 75, 0.6), 0 1px 0 #fff inset;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease);
}
.mini-note:hover { transform: rotate(-1.5deg) scale(1.01); }
.mini-note::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--green); border-radius: 9px; background: url("/waves.svg") top left / 120px 24px repeat-x, url("/waves.svg") bottom left / 120px 24px repeat-x; z-index: -1; }
.mini-note .rosette { position: absolute; right: 5%; top: 50%; width: 46%; aspect-ratio: 1; transform: translateY(-50%); background: url("/rosette.svg") center / contain no-repeat; opacity: 0.6; z-index: -1; }
.mini-note .pic { position: absolute; right: 13%; top: 50%; width: 30%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; object-fit: cover; border: 3px solid var(--paper-3); box-shadow: 0 0 0 1.5px var(--green); background: var(--paper-2); display: grid; place-items: center; font-family: var(--serif); font-size: clamp(34px, 4vw, 56px); color: var(--green-3); overflow: hidden; }
.mini-note .pic img { width: 100%; height: 100%; object-fit: cover; }
.mini-note .t1 { position: absolute; left: 8%; top: 18%; font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: var(--green); }
.mini-note .t2 { position: absolute; left: 8%; top: 30%; max-width: 50%; font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 0.95; color: var(--green-3); overflow-wrap: anywhere; }
.mini-note .t3 { position: absolute; left: 8%; bottom: 20%; font-family: var(--mono); font-size: 15px; color: var(--red); letter-spacing: 0.06em; }
.mini-note .t4 { position: absolute; left: 8%; bottom: 9%; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mini-note .sn { position: absolute; right: 7%; top: 12%; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--red); }
.facts { display: grid; gap: 0; padding: 6px 18px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; color: var(--muted); }
.facts div:last-child { border-bottom: 0; }
.facts b { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 14px; text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .note-stage { max-width: 620px; width: 100%; margin: 6px auto 20px; }
  .pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-grid { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .preview .label { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  body { font-size: 17px; }
  .top { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; row-gap: 6px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -6px; padding-bottom: 8px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { height: 38px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
  .steps li::before { font-size: 44px; margin: 0; grid-row: span 2; }
  .head { display: none; }
  .row { grid-template-columns: 40px minmax(0, 1fr) auto auto; padding: 0 14px; gap: 10px; font-size: 16px; }
  .flag { width: 34px; height: 34px; font-size: 18px; }
  .usd { display: none; }
  .tools { padding: 12px; }
  .seg { flex: 1 1 auto; }
  .links, .two { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .cur-hero { grid-template-columns: 1fr; padding: 22px; }
  .cur-hero .move { text-align: left; }
  .preview { grid-template-columns: 1fr; }
  .facts { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(56px, 17vw, 80px); }
  .pair-grid { grid-template-columns: 1fr; gap: 12px; }
  .pair { min-height: 0; }
  .figures { gap: 22px; }
  .figures dd { font-size: 26px; }
  .actions .primary, .actions .ghost { flex: 1 1 auto; }
  .note .legal { display: none; }
  .stamp { font-size: 11px; padding: 6px 10px; bottom: -12%; }
  .wallet { height: 40px; padding: 0 14px; font-size: 14px; }
  .logo svg { width: 104px; }
  .section-head h2 { font-size: 38px; }
  .tools button { padding: 0 11px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .note { transform: rotateZ(-2deg); }
}

/* ---------- refinements ---------- */
.note .seal ellipse { fill: none; stroke: currentColor; stroke-width: 3.4; }
.note .seal text { fill: currentColor; font-family: Archivo, ui-sans-serif, sans-serif; font-weight: 800; font-style: italic; letter-spacing: -0.05em; text-anchor: middle; }
.note .rosette, .note .seal { width: 40%; right: 5%; }
.note .denom { font-size: clamp(40px, 4.8vw, 70px); max-width: 52%; }
.hero h1 { margin-bottom: 30px; }
@media (max-width: 560px) {
  .steps li::before { width: 56px; }
}
@media (max-width: 800px) {
  .steps li::before { width: 60px; }
}


/* ---------- currency look (v24) ---------- */
body {
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(53, 106, 176, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(53, 106, 176, 0.08), transparent 60%),
    repeating-linear-gradient(115deg, rgba(36, 76, 133, 0.028) 0 1px, transparent 1px 7px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.15 0 0 0 0 0.28 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { position: relative; isolation: isolate; overflow-x: clip; }
main::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40px;
  width: min(1100px, 140vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: url("/rosette.svg") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

/* hero as a big bill: double frame, corner rosettes, microprint, serial */
.hero.bill {
  position: relative;
  margin-top: clamp(18px, 3vw, 36px);
  padding: clamp(46px, 6vw, 80px) clamp(22px, 4.5vw, 64px) clamp(46px, 5.5vw, 76px);
  border: 2px solid rgba(36, 76, 133, 0.55);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(250, 252, 255, 0.78), rgba(220, 230, 245, 0.62)),
    url("/rosette.svg") 88% 50% / 560px no-repeat;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px rgba(36, 76, 133, 0.3), 0 40px 80px -50px rgba(20, 41, 75, 0.55);
}
.hero.bill::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(36, 76, 133, 0.35);
  border-radius: 18px;
  background:
    url("/guil.svg") top left / 120px 20px repeat-x,
    url("/guil.svg") bottom left / 120px 20px repeat-x;
  pointer-events: none;
  z-index: 0;
}
.hero.bill > .hero-copy, .hero.bill > .note-stage { position: relative; z-index: 1; }
.hero .serial { color: var(--red); }
.hero h1 { font-size: clamp(52px, 6.3vw, 96px); line-height: 0.92; letter-spacing: -0.03em; margin: 16px 0 26px; }
.hero h1 em { padding-right: 0.04em; }
.micro {
  position: absolute;
  left: 34px;
  right: 34px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: 0.22em;
  color: rgba(36, 76, 133, 0.55);
  pointer-events: none;
  z-index: 1;
}
.micro-top { top: 38px; }
.micro-bot { bottom: 38px; }
.bill-corner {
  position: absolute;
  width: 64px;
  height: 64px;
  background: url("/corner.svg") center / contain no-repeat;
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
}
.bill-corner.tl { left: 14px; top: 14px; }
.bill-corner.tr { right: 14px; top: 14px; transform: scaleX(-1); }
.bill-corner.bl { left: 14px; bottom: 14px; transform: scaleY(-1); }
.bill-corner.br { right: 14px; bottom: 14px; transform: scale(-1, -1); }
.bill-sn {
  position: absolute;
  right: clamp(30px, 4.5vw, 64px);
  top: 50px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--red);
  z-index: 1;
}

/* stats as little notes with a denomination in the corner */
.figures { gap: 12px; flex-wrap: wrap; }
.figures div {
  position: relative;
  min-width: 132px;
  padding: 12px 34px 12px 16px;
  border: 1px solid rgba(36, 76, 133, 0.4);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(250, 252, 255, 0.95), rgba(220, 230, 245, 0.9)),
    var(--paper-3);
  box-shadow: 0 0 0 3px var(--paper-3), 0 0 0 4px rgba(36, 76, 133, 0.22);
  overflow: hidden;
}
.figures div::before {
  content: attr(data-n);
  position: absolute;
  right: 9px;
  top: 6px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: rgba(36, 76, 133, 0.55);
}
.figures div::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  background: url("/rosette.svg") center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}
.figures dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }

/* section heads: engraved rule */
.section-head .serial { display: flex; align-items: center; gap: 12px; }
.section-head .serial::after {
  content: "";
  width: 120px;
  height: 7px;
  border-top: 1px solid rgba(36, 76, 133, 0.45);
  border-bottom: 1px solid rgba(36, 76, 133, 0.45);
}

/* cards: engraved band + denomination corner */
.steps li, .pair, .board, .panel, .empty-note { position: relative; }
.steps li {
  border: 1px solid rgba(36, 76, 133, 0.32);
  box-shadow: 0 0 0 4px var(--paper-3) inset, 0 0 0 5px rgba(36, 76, 133, 0.16) inset, var(--shadow);
  background:
    url("/guil.svg") left bottom 10px / 120px 16px repeat-x,
    linear-gradient(160deg, var(--paper-3), #e9eff8);
  padding-bottom: 40px;
}
.steps li::after { opacity: 0.26; }
.steps h3 { color: var(--green-3); }
.pair {
  border-color: rgba(36, 76, 133, 0.26);
  box-shadow: 0 0 0 4px var(--paper-3) inset, 0 0 0 5px rgba(36, 76, 133, 0.12) inset, var(--shadow);
  background:
    url("/guil.svg") left top 8px / 120px 12px repeat-x,
    linear-gradient(160deg, var(--paper-3), #edf2fa);
  padding-top: 26px;
}
.board .tools { background: url("/guil.svg") bottom left / 120px 10px repeat-x; }
.empty-note {
  border: 1.5px dashed rgba(36, 76, 133, 0.45);
  background:
    linear-gradient(135deg, rgba(250, 252, 255, 0.9), rgba(220, 230, 245, 0.7)),
    url("/rosette.svg") 96% 50% / 160px no-repeat;
  font-size: 18px;
  color: var(--green-3);
}
.empty-note > span::before { content: "PF 000000 A"; display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--red); margin-bottom: 4px; }

/* footer: microprint + slogan */
.site-foot { background: url("/guil.svg") top left / 120px 20px repeat-x; border-top: 1px solid rgba(36, 76, 133, 0.35); }
.site-foot .tag { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; max-width: 22ch; }
.site-foot .tag em { color: var(--green-2); }

@media (max-width: 1040px) {
  .hero.bill { background: linear-gradient(135deg, rgba(250, 252, 255, 0.78), rgba(220, 230, 245, 0.62)), url("/rosette.svg") 50% 85% / 520px no-repeat; }
}
@media (max-width: 560px) {
  .hero.bill { margin-top: 12px; padding: 50px 18px 50px; border-radius: 20px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(36, 76, 133, 0.3), 0 30px 60px -40px rgba(20, 41, 75, 0.5); }
  .hero.bill::before { inset: 8px; border-radius: 14px; background-size: 100px 16px, 100px 16px; }
  .micro { left: 22px; right: 22px; font-size: 6.5px; }
  .micro-top { top: 28px; }
  .micro-bot { bottom: 28px; }
  .bill-corner { width: 44px; height: 44px; }
  .bill-corner.tl { left: 9px; top: 9px; } .bill-corner.tr { right: 9px; top: 9px; }
  .bill-corner.bl { left: 9px; bottom: 9px; } .bill-corner.br { right: 9px; bottom: 9px; }
  .bill-sn { top: 38px; right: 22px; font-size: 10px; }
  .hero h1 { font-size: clamp(40px, 11.6vw, 58px); }
  .figures { gap: 10px; }
  .figures div { min-width: 0; flex: 1 1 0; padding: 10px 24px 10px 12px; }
  .figures dt { font-size: 9.5px; letter-spacing: 0.1em; }
  .figures dd { font-size: 24px; }
  .figures div::before { font-size: 17px; right: 7px; }
  .section-head .serial::after { width: 56px; }
}

.hero.bill .note .denom { font-size: clamp(34px, 3.8vw, 58px); }
.hero.bill .note .legal { max-width: 40%; bottom: 17%; }
.hero.bill .ghost { background: rgba(250, 252, 255, 0.9); }
.bill-sn { top: 56px; }
@media (max-width: 1040px) { .hero.bill .note .denom { font-size: clamp(36px, 8vw, 64px); } }
@media (max-width: 560px) { .bill-sn { top: 40px; } }
.figures div { align-content: space-between; }

/* ---------- main coin strip (banknote ribbon, v25) ---------- */
.maincoin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px clamp(16px, 3vw, 32px);
  background:
    url("/guil.svg") left top 3px / 120px 8px repeat-x,
    url("/guil.svg") left bottom 3px / 120px 8px repeat-x,
    linear-gradient(135deg, #e8eff9, #dce7f7 60%, #dce6f5);
  border-bottom: 1px solid rgba(36, 76, 133, 0.3);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.mc-label { font-weight: 700; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.mc-coin { display: inline-flex; align-items: center; gap: 8px; }
.mc-coin img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--green); background: var(--paper); box-shadow: 0 0 0 2px var(--paper-3); }
.mc-coin strong { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--green-3); letter-spacing: 0; }
.mc-ca { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--green-3); letter-spacing: 0.04em; padding: 4px 10px; border: 1px dashed rgba(36, 76, 133, 0.5); border-radius: 6px; background: rgba(250, 252, 255, 0.85); white-space: nowrap; }
.mc-short { display: none; }
.mc-copy { font: inherit; font-weight: 600; font-size: 12px; cursor: pointer; color: var(--paper); background: var(--green-3); border: 0; border-radius: 999px; padding: 7px 14px; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.mc-copy:hover { background: var(--green); transform: translateY(-1px); }
.mc-copy.done { background: var(--up); }
.mc-link { font-weight: 600; color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(36, 76, 133, 0.35); }
.mc-link:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 760px) {
  .mc-full { display: none; }
  .mc-short { display: inline; }
}
@media (max-width: 560px) {
  .maincoin { gap: 8px 10px; font-size: 12px; padding: 12px 12px; }
  .mc-label { flex-basis: 100%; text-align: center; font-size: 10px; }
  .mc-coin strong { font-size: 20px; }
}

/* pinned main coin card */
.pair.pinned { border-color: rgba(36, 76, 133, 0.55); background: url("/guil.svg") left top 8px / 120px 12px repeat-x, linear-gradient(160deg, #f1f5fc, #dfe9f7); }
.coin .new.main { background: var(--green-3); }

/* PROOF identity — preserves the reference geometry. */
.logo text { font-family: Georgia, 'Times New Roman', serif; font-size: 28px; font-weight: 700; font-style: italic; letter-spacing: -1px; }
.logo path { fill: #b7c4d6; }
.proof-pending { color: var(--muted); cursor: default; }
.proof-contract { font-size: 12px; letter-spacing: .05em; }

.logo svg { width: 142px; height: 40px; }
.seal svg { width: 100%; height: auto; }
.splash-note svg { width: 150px; }
@media(max-width:560px) { .logo svg { width: 100px; height: 32px; } }

/* PROOF social link */
.social-x { display:inline-flex; align-items:center; justify-content:center; flex:none; width:36px; height:36px; border:1px solid var(--line-2); border-radius:50%; font-family:var(--sans); font-size:16px; font-weight:700; color:var(--ink); transition:background .2s,color .2s; }
.social-x:hover { background:var(--ink); color:var(--paper-3); }
@media(max-width:760px) { .top > .social-x { order:1; margin-left:auto; } .top > .social-x + .who { margin-left:0; } }
