/* Private Ballot Studio — sealed polls & private votes for Midnight */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #05070f;
  --bg-elevated: rgba(14, 20, 36, 0.72);
  --bg-card: rgba(16, 24, 48, 0.68);
  --text: #eef2ff;
  --muted: #9aa8c7;
  --accent: #7c9cff;
  --accent-2: #a78bfa;
  --accent-3: #22d3ee;
  --ok: #6ee7b7;
  --warn: #fbbf24;
  --danger: #fb7185;
  --bad: #fb7185;
  --fail: #fb7185;
  --line: rgba(124, 156, 255, 0.22);
  --line-strong: rgba(124, 156, 255, 0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(124, 156, 255, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #a5b8ff; }
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; box-shadow: var(--focus); border-radius: 8px;
}
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code:not(pre code) {
  background: rgba(124, 156, 255, 0.12);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  border: 1px solid rgba(124, 156, 255, 0.12);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0.75rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--accent); color: #0a0e1a;
  font-weight: 600; border-radius: 10px;
}
.skip-link:focus { left: 0.75rem; }

.bg-scene {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 100% 60% at 50% -15%, rgba(167, 139, 250, 0.26), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(124, 156, 255, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 45% at 5% 70%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, #04060d 0%, #070b18 45%, #05070f 100%);
}
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.bg-nebula {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
  animation: nebulaDrift 22s ease-in-out infinite alternate;
}
.bg-nebula-a {
  width: 55vw; height: 40vh; top: -8%; left: 15%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4), transparent 70%);
}
.bg-nebula-b {
  width: 45vw; height: 35vh; right: -8%; top: 35%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
  animation-delay: -7s;
}
.bg-nebula-c {
  width: 40vw; height: 30vh; left: -5%; bottom: 5%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.28), transparent 70%);
  animation-delay: -14s;
}
.bg-grid {
  position: absolute; inset: 0; opacity: 0.07;
  background-image:
    linear-gradient(rgba(124,156,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,156,255,0.4) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 15%, transparent 72%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4;
  animation: nebulaDrift 20s ease-in-out infinite alternate;
}
.orb-a { width: 380px; height: 380px; top: -5%; right: 8%; background: rgba(124, 156, 255, 0.4); }
.orb-b { width: 280px; height: 280px; bottom: 12%; left: -4%; background: rgba(167, 139, 250, 0.35); animation-delay: -9s; }
.orb-c { width: 220px; height: 220px; top: 48%; left: 42%; background: rgba(34, 211, 238, 0.2); animation-delay: -4s; }
@keyframes nebulaDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(28px, -22px) scale(1.08); }
}

.topbar, .wrap, .donate-dock { position: relative; z-index: 1; }

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.65rem; padding: 0.85rem clamp(1rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 15, 0.72); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 20;
}
.logo {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.02em; color: var(--text);
}
.logo span {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; align-items: center; }
.topbar nav a {
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
  padding: 0.25rem 0.15rem; border-radius: 6px;
}
.topbar nav a:hover { color: var(--text); }
.nav-toggle {
  display: none; margin-left: auto;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 0.35rem 0.65rem; cursor: pointer;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .topbar nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    padding: 0.5rem 0 0.25rem; gap: 0.55rem;
  }
  .topbar nav.is-open { display: flex; }
}

.badge {
  display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.35); color: #d8b4fe;
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em;
  text-transform: uppercase; background: rgba(167, 139, 250, 0.12);
}
.badge-stub { border-color: rgba(251, 191, 36, 0.45); color: var(--warn); background: rgba(251, 191, 36, 0.08); }
.badge-sim { background: rgba(251, 191, 36, 0.12); color: var(--warn); border-color: rgba(251, 191, 36, 0.35); }
.badge-lab { background: rgba(34, 211, 238, 0.12); color: var(--accent-3); border-color: rgba(34, 211, 238, 0.35); }

.donate-dock {
  position: fixed; z-index: 30; right: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.85rem; border-radius: 999px;
  background: rgba(8, 12, 24, 0.88); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: 0.82rem; font-weight: 600;
}
.dock-x { color: var(--accent-3); }
.dock-sep { color: var(--muted); opacity: 0.6; }
.dock-copy {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e1a; border: none; border-radius: 999px;
  padding: 0.35rem 0.75rem; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.dock-copy:hover { transform: translateY(-1px); }
@media (max-width: 520px) {
  .donate-dock { left: 0.75rem; right: 0.75rem; justify-content: center; }
}

.wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 1.5rem) 5rem;
}

.hero {
  border-radius: 22px; padding: clamp(1.35rem, 3.5vw, 2rem);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(18, 26, 52, 0.88), rgba(10, 14, 28, 0.55));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin-bottom: 1.25rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -35% -20% auto auto;
  width: 55%; height: 90%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--accent-3); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.65rem;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  letter-spacing: -0.03em; margin: 0 0 0.55rem; line-height: 1.12;
  background: linear-gradient(135deg, #fff 20%, #c7d2fe 55%, #22d3ee 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); margin: 0 0 1rem; font-size: 1.02rem; max-width: 62ch; }
.cta-row, .btn-row { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.honesty {
  margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07); color: #fde68a; font-size: 0.9rem;
}
.honesty strong { color: var(--warn); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1px solid transparent; border-radius: 12px; padding: 0.7rem 1.15rem;
  font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0a0e1a; }
.btn.ghost {
  background: rgba(124, 156, 255, 0.08); color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--accent); background: rgba(124, 156, 255, 0.14); }
.btn.danger { background: rgba(251, 113, 133, 0.15); color: #fecdd3; border-color: rgba(251, 113, 133, 0.4); }
.btn.danger:hover { background: rgba(251, 113, 133, 0.28); }
.btn.small { padding: 0.45rem 0.8rem; font-size: 0.82rem; border-radius: 10px; }

.panel {
  margin: 1.25rem 0;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.section-head { margin-bottom: 1.25rem; }
.section-head h2 {
  font-family: var(--display); margin: 0 0 0.35rem; font-size: 1.45rem;
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  color: var(--text);
}
.muted { color: var(--muted); }
.muted.small, .small { font-size: 0.85rem; }

.journey {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem;
}
@media (max-width: 720px) { .journey { grid-template-columns: 1fr 1fr; } }
.journey-step {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.85rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.45);
  transition: border-color 0.25s var(--ease), background 0.25s, transform 0.25s var(--ease);
}
.journey-step strong { display: block; font-size: 0.92rem; }
.js-detail { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }
.js-idx {
  flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 700;
  background: rgba(124, 156, 255, 0.12); border: 1px solid var(--line); color: var(--muted);
}
.journey-step.is-active {
  border-color: var(--accent-3); background: rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}
.journey-step.is-active .js-idx {
  background: var(--accent-3); color: #0a0e1a; border-color: transparent;
}
.journey-step.is-done { border-color: rgba(110, 231, 183, 0.4); }
.journey-step.is-done .js-idx {
  background: rgba(110, 231, 183, 0.2); color: var(--ok); border-color: rgba(110, 231, 183, 0.4);
}
.journey-live { margin: 1rem 0 0; }

.status { font-size: 0.9rem; margin: 0.65rem 0 0; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.fail { color: var(--danger); }
.status.warn { color: var(--warn); }

.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 720px) { .rule-grid { grid-template-columns: 1fr; } }
.rule-card {
  padding: 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.55);
}
.rule-card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; color: var(--text); }
.rule-card ul { margin: 0.65rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; }
.rule-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 0.45rem; padding: 0.2rem 0.55rem; border-radius: 999px;
}
.rule-card.ok .rule-tag { background: rgba(110, 231, 183, 0.12); color: var(--ok); }
.rule-card.vault .rule-tag { background: rgba(167, 139, 250, 0.15); color: #d8b4fe; }
.rule-card.ok { border-color: rgba(110, 231, 183, 0.28); }
.rule-card.vault { border-color: rgba(167, 139, 250, 0.3); }

.threat-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .threat-rail { grid-template-columns: 1fr; } }
.rail {
  padding: 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.45);
}
.rail h4 { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--text); }
.rail-meter {
  height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06);
  overflow: hidden; margin: 0.75rem 0 0.45rem;
}
.rail-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  transition: width 0.5s var(--ease);
}
.rail-meter.warn .rail-fill {
  background: linear-gradient(90deg, var(--warn), var(--danger));
}
.rail-label { font-size: 0.78rem; color: var(--muted); }

.compose-layout, .thresh-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 860px) {
  .compose-layout, .thresh-layout { grid-template-columns: 1fr; }
}
.compose-card, .thresh-card {
  padding: 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.5);
}
.compose-card.wide, .tip-target { grid-column: 1 / -1; }
.compose-card h3, .thresh-card h3 {
  margin: 0 0 0.4rem; font-size: 1rem; color: var(--text);
}
.field { margin: 0.75rem 0; }
.field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--muted); margin-bottom: 0.35rem;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 0.65rem 0.8rem; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.35);
  color: var(--text); font: inherit;
}
.field textarea { resize: vertical; min-height: 72px; }
.field-hint { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }
.char-count { text-align: right; margin: 0.25rem 0 0; }

.kv-list { margin: 0.5rem 0 1rem; display: grid; gap: 0.55rem; }
.kv-list > div {
  display: grid; grid-template-columns: 110px 1fr; gap: 0.5rem;
  align-items: start; font-size: 0.85rem;
}
.kv-list dt { color: var(--muted); margin: 0; }
.kv-list dd { margin: 0; word-break: break-all; }
.mono.block {
  display: block; word-break: break-all; padding: 0.55rem 0.65rem; margin: 0.4rem 0;
  background: rgba(0,0,0,0.3); border-radius: 8px; border: 1px solid var(--line); font-size: 0.75rem;
}

.log {
  margin: 0; padding: 0.85rem 1rem; min-height: 140px; max-height: 220px; overflow: auto;
  background: rgba(0,0,0,0.4); border-radius: 10px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.55; color: #c7d2fe;
  white-space: pre-wrap;
}
.proof-badge {
  margin-top: 0.85rem; padding: 0.75rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(124, 156, 255, 0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.proof-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.proof-badge.is-ok { border-color: rgba(110, 231, 183, 0.4); }
.proof-badge.is-ok strong { color: var(--ok); }
.proof-badge.is-fail { border-color: rgba(251, 113, 133, 0.4); }
.proof-badge.is-fail strong { color: var(--danger); }

.board-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1rem;
}
.board-stats {
  display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem;
  font-size: 0.88rem; color: var(--muted);
}
.board-stats strong { color: var(--text); }
.pledge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.pledge-item {
  padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(124, 156, 255, 0.05);
  animation: fadeUp 0.4s var(--ease) both;
  display: grid; gap: 0.45rem;
}
.pledge-item.is-disclosed {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.05);
}
.pledge-item.is-range {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.05);
}
.pledge-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem;
  font-size: 0.75rem; color: var(--muted); align-items: center;
}
.pledge-tag {
  padding: 0.15rem 0.5rem; border-radius: 999px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.68rem;
  border: 1px solid var(--line);
}
.pledge-tag.sealed { color: var(--accent-3); border-color: rgba(34, 211, 238, 0.4); }
.pledge-tag.range { color: var(--accent); border-color: rgba(124, 156, 255, 0.45); }
.pledge-tag.full { color: var(--warn); border-color: rgba(251, 191, 36, 0.45); }
.pledge-commit { font-family: var(--mono); font-size: 0.72rem; word-break: break-all; color: #c7d2fe; }
.pledge-body { margin: 0; font-size: 0.92rem; }
.pledge-actions { margin-top: 0.35rem; }
.empty {
  color: var(--muted); font-size: 0.92rem; padding: 1.5rem; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.jar-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center;
}
@media (max-width: 720px) { .jar-layout { grid-template-columns: 1fr; justify-items: center; } }
.jar-visual { text-align: center; }
.jar-glass {
  width: 140px; height: 180px; margin: 0 auto;
  border: 2px solid rgba(124, 156, 255, 0.45);
  border-radius: 18px 18px 28px 28px;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.25));
  box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.08), var(--shadow);
}
.jar-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.75), rgba(124, 156, 255, 0.55), rgba(167, 139, 250, 0.65));
  transition: height 0.7s var(--ease);
  border-radius: 0 0 24px 24px;
}
.jar-shine {
  position: absolute; top: 10%; left: 12%; width: 18%; height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
  border-radius: 999px; pointer-events: none;
}
.jar-label {
  margin-top: 0.75rem; font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  color: var(--accent-3);
}
.jar-copy h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--text); }

.snip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 860px) { .snip-grid { grid-template-columns: 1fr; } }
.snip {
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line);
}
.snip.bad { border-color: rgba(251, 113, 133, 0.35); }
.snip.ok { border-color: rgba(110, 231, 183, 0.35); }
.snip-label {
  padding: 0.5rem 0.85rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}
.snip.bad .snip-label { background: rgba(251, 113, 133, 0.12); color: var(--danger); }
.snip.ok .snip-label { background: rgba(110, 231, 183, 0.12); color: var(--ok); }
.snip pre {
  margin: 0; padding: 0.9rem 1rem; overflow: auto;
  background: rgba(0,0,0,0.4); font-size: 0.78rem; line-height: 1.5;
}
.snip-note { margin: 1rem 0 0; font-size: 0.9rem; }

.site-footer {
  margin-top: 2rem; padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}
.footer-donate {
  margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center;
}
.footer-donate code {
  font-size: 0.72rem; word-break: break-all;
  background: rgba(0,0,0,0.3); padding: 0.4rem 0.55rem; border-radius: 8px;
}
.disclaimer { font-size: 0.8rem; opacity: 0.85; max-width: 70ch; }

.reveal {
  animation: fadeUp 0.55s var(--ease) both;
}


.learn-list {
  margin: 0.5rem 0 1rem; padding-left: 1.15rem; color: var(--muted); font-size: 0.9rem;
}
.learn-list li { margin: 0.45rem 0; }
.learn-list strong { color: var(--text); }

.invite-seal {
  width: 140px; height: 140px; margin: 0 auto; position: relative;
  display: grid; place-items: center;
}
.seal-glow {
  position: absolute; inset: 8%; border-radius: 28px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.45), rgba(34, 211, 238, 0.15), transparent 70%);
  filter: blur(12px); animation: nebulaDrift 10s ease-in-out infinite alternate;
}
.seal-face {
  position: relative; z-index: 1;
  width: 110px; height: 110px; border-radius: 24px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: #0a0e1a;
  background: linear-gradient(145deg, var(--accent-3), var(--accent), var(--accent-2));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.2);
}

.stall-bids {
  margin: 0.55rem 0 0; padding: 0; list-style: none;
  display: grid; gap: 0.4rem;
}
.stall-bid {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.75rem; align-items: center;
  padding: 0.5rem 0.65rem; border-radius: 10px;
  background: rgba(0,0,0,0.28); border: 1px solid rgba(124,156,255,0.15);
  font-size: 0.8rem;
}
.stall-bid.is-winner {
  border-color: rgba(110, 231, 183, 0.45);
  background: rgba(110, 231, 183, 0.08);
}
.stall-bid .bid-commit { font-family: var(--mono); font-size: 0.7rem; color: #c7d2fe; word-break: break-all; }

/* Sealed Invite extras */
.kbd-bar {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem;
}
.kbd {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.55rem; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.35);
  font-size: 0.75rem; color: var(--muted);
}
.kbd kbd {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  color: var(--accent-3); background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 5px;
  padding: 0.1rem 0.4rem; min-width: 1.2rem; text-align: center;
}
.capacity-ring {
  width: 140px; height: 140px; margin: 0 auto; position: relative;
  display: grid; place-items: center;
}
.capacity-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.capacity-ring .ring-bg { stroke: rgba(255,255,255,0.08); fill: none; stroke-width: 8; }
.capacity-ring .ring-fg {
  stroke: url(#capGrad); fill: none; stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--ease);
}
.capacity-ring .ring-label {
  position: relative; z-index: 1; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--text);
}
.capacity-ring .ring-sub { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted); }
.guest-row {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.75rem; align-items: center;
  padding: 0.5rem 0.65rem; border-radius: 10px;
  background: rgba(0,0,0,0.28); border: 1px solid rgba(124,156,255,0.15);
  font-size: 0.8rem;
}
.guest-row.is-admitted {
  border-color: rgba(110, 231, 183, 0.45);
  background: rgba(110, 231, 183, 0.08);
}
.help-overlay {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center;
  background: rgba(3, 5, 12, 0.72); backdrop-filter: blur(8px);
  padding: 1rem;
}
.help-overlay.is-open { display: flex; }
.help-card {
  max-width: 420px; width: 100%;
  padding: 1.35rem 1.5rem; border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 18, 36, 0.95); box-shadow: var(--shadow);
}
.help-card h3 { margin: 0 0 0.75rem; font-family: var(--display); }
.help-card ul { margin: 0; padding-left: 0; list-style: none; }
.help-card li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.4rem 0; border-bottom: 1px solid rgba(124,156,255,0.12);
  font-size: 0.88rem; color: var(--muted);
}
.help-card li span:last-child { color: var(--text); font-family: var(--mono); font-size: 0.8rem; }
.toast {
  position: fixed; z-index: 40; left: 50%; bottom: 4.5rem;
  transform: translateX(-50%) translateY(12px); opacity: 0;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: rgba(8, 12, 24, 0.92); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 0.85rem; font-weight: 600;
  pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }



/* —— Proof Playground extras —— */
.circuit-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.circuit-chip {
  display: flex; flex-direction: column; gap: 0.35rem; text-align: left;
  padding: 0.9rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  color: var(--text); cursor: pointer; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
  font: inherit;
}
.circuit-chip:hover { border-color: var(--line-strong); background: rgba(124,156,255,0.08); transform: translateY(-1px); }
.circuit-chip.is-active {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(167,139,250,0.12));
  box-shadow: 0 0 0 1px rgba(34,211,238,0.2), 0 12px 32px rgba(0,0,0,0.25);
}
.circuit-chip .cc-id { font-family: var(--mono); font-size: 0.72rem; color: var(--accent-3); letter-spacing: 0.04em; text-transform: uppercase; }
.circuit-chip strong { font-family: var(--display); font-size: 1rem; }
.circuit-chip .cc-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

.circuit-stage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}
@media (max-width: 980px) {
  .circuit-stage { grid-template-columns: 1fr; }
}

.circuit-canvas-wrap {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(124,156,255,0.12), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(167,139,250,0.1), transparent 50%),
    rgba(8, 12, 28, 0.85);
  overflow: hidden;
  min-height: 420px;
}
.circuit-canvas-wrap::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(124,156,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,156,255,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 80%);
}
#circuit-svg { display: block; width: 100%; height: 420px; position: relative; z-index: 1; }
.circuit-legend {
  position: absolute; left: 0.85rem; bottom: 0.75rem; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  font-size: 0.72rem; color: var(--muted);
}
.circuit-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.lg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg-witness { background: #a78bfa; box-shadow: 0 0 8px rgba(167,139,250,0.7); }
.lg-gate { background: #7c9cff; box-shadow: 0 0 8px rgba(124,156,255,0.7); }
.lg-public { background: #22d3ee; box-shadow: 0 0 8px rgba(34,211,238,0.7); }
.lg-proof { background: #6ee7b7; box-shadow: 0 0 8px rgba(110,231,183,0.7); }

.node-label { font-family: var(--display); font-size: 11px; fill: #eef2ff; }
.node-sub { font-family: var(--mono); font-size: 9px; fill: #9aa8c7; }
.edge-path { fill: none; stroke: rgba(124,156,255,0.35); stroke-width: 1.6; }
.edge-path.is-active {
  stroke: url(#edgeGrad);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 4px rgba(34,211,238,0.6));
}
.edge-pulse {
  fill: none; stroke: #22d3ee; stroke-width: 2.2;
  stroke-dasharray: 8 120; stroke-linecap: round;
  opacity: 0; pointer-events: none;
}
.edge-pulse.is-run {
  opacity: 1;
  animation: pulseRun 1.4s linear infinite;
}
@keyframes pulseRun {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -128; }
}
.node-g .node-body {
  stroke-width: 1.8;
  transition: filter 0.3s var(--ease), stroke 0.3s var(--ease);
}
.node-g.is-lit .node-body {
  filter: drop-shadow(0 0 10px rgba(34,211,238,0.65));
}
.node-g[data-kind="witness"] .node-body { fill: rgba(167,139,250,0.18); stroke: #a78bfa; }
.node-g[data-kind="gate"] .node-body { fill: rgba(124,156,255,0.16); stroke: #7c9cff; }
.node-g[data-kind="public"] .node-body { fill: rgba(34,211,238,0.14); stroke: #22d3ee; }
.node-g[data-kind="proof"] .node-body { fill: rgba(110,231,183,0.14); stroke: #6ee7b7; }

.witness-panel, .prove-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 1.1rem 1.15rem;
}
.witness-panel h3, .prove-panel h3 {
  margin: 0 0 0.65rem; font-family: var(--display); font-size: 1.05rem;
}
.witness-fields { display: flex; flex-direction: column; gap: 0.7rem; }
.field label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.25rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.55rem 0.7rem; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(5,7,15,0.55);
  color: var(--text); font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: var(--focus); border-color: var(--accent);
}
.field .hint { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }

.prove-stages {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.prove-stages li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.65rem; align-items: center;
  padding: 0.55rem 0.7rem; border-radius: 10px;
  border: 1px solid transparent; background: rgba(255,255,255,0.02);
  font-size: 0.88rem;
}
.prove-stages li.is-active {
  border-color: rgba(34,211,238,0.4);
  background: rgba(34,211,238,0.08);
}
.prove-stages li.is-done {
  border-color: rgba(110,231,183,0.3);
  background: rgba(110,231,183,0.06);
}
.prove-stages li.is-fail {
  border-color: rgba(251,113,133,0.4);
  background: rgba(251,113,133,0.08);
}
.ps-idx {
  width: 1.55rem; height: 1.55rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  background: rgba(124,156,255,0.15); color: var(--accent);
}
.prove-stages li.is-done .ps-idx { background: rgba(110,231,183,0.2); color: var(--ok); }
.prove-stages li.is-active .ps-idx { background: rgba(34,211,238,0.25); color: var(--accent-3); }
.prove-stages li.is-fail .ps-idx { background: rgba(251,113,133,0.25); color: var(--danger); }
.ps-meta { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); }

.proof-meter {
  height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06);
  overflow: hidden; border: 1px solid var(--line); margin: 0.75rem 0 0.35rem;
}
.proof-meter-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2), var(--ok));
  border-radius: inherit; transition: width 0.45s var(--ease);
}
.proof-result-card {
  margin-top: 0.85rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  border: 1px dashed var(--line); background: rgba(5,7,15,0.4);
}
.proof-result-card.is-ok { border-color: rgba(110,231,183,0.45); background: rgba(110,231,183,0.08); }
.proof-result-card.is-fail { border-color: rgba(251,113,133,0.45); background: rgba(251,113,133,0.08); }
.proof-result-card .pr-title { font-family: var(--display); font-weight: 600; margin: 0 0 0.25rem; }
.proof-result-card .pr-hash { font-family: var(--mono); font-size: 0.78rem; word-break: break-all; color: var(--muted); }

.dual-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem;
}
@media (max-width: 720px) { .dual-split { grid-template-columns: 1fr; } }
.rail-card {
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  padding: 0.9rem 1rem; background: rgba(255,255,255,0.03);
}
.rail-card h4 { margin: 0 0 0.35rem; font-family: var(--display); font-size: 0.95rem; }
.rail-card.public { border-color: rgba(34,211,238,0.35); }
.rail-card.private { border-color: rgba(167,139,250,0.35); }
.rail-card ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.86rem; }

.history-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.history-list li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: start;
  padding: 0.75rem 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.history-list .h-icon {
  width: 2rem; height: 2rem; border-radius: 10px;
  display: grid; place-items: center; font-size: 0.95rem;
  background: rgba(124,156,255,0.12); color: var(--accent);
}
.history-list.is-empty { color: var(--muted); font-size: 0.9rem; padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); }

.pp-seal {
  width: 110px; height: 110px; border-radius: 50%;
  display: grid; place-items: center; position: relative; margin: 0 auto;
  background: radial-gradient(circle at 35% 30%, rgba(34,211,238,0.35), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(167,139,250,0.4), transparent 50%),
              rgba(12, 16, 36, 0.9);
  border: 2px solid rgba(124,156,255,0.45);
  box-shadow: 0 0 40px rgba(34,211,238,0.25), inset 0 0 24px rgba(167,139,250,0.2);
}
.pp-seal .seal-face {
  font-family: var(--display); font-weight: 700; font-size: 1.6rem;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pp-seal .seal-glow {
  position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(34,211,238,0.4), transparent 40%, rgba(167,139,250,0.35), transparent 70%);
  animation: spinGlow 8s linear infinite; opacity: 0.7; z-index: -1;
}
@keyframes spinGlow { to { transform: rotate(360deg); } }

.gate-table {
  width: 100%; border-collapse: collapse; font-size: 0.86rem;
}
.gate-table th, .gate-table td {
  text-align: left; padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
}
.gate-table th { color: var(--muted); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.gate-table code { font-size: 0.8em; }

.compose-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; }
@media (max-width: 900px) { .compose-layout { grid-template-columns: 1fr; } }
.compose-card, .thresh-card {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-card); backdrop-filter: blur(12px);
  padding: 1.15rem;
}
.preview-box {
  margin-top: 0.75rem; padding: 0.85rem; border-radius: var(--radius-sm);
  background: rgba(5,7,15,0.5); border: 1px dashed var(--line);
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
}
.preview-box strong { color: var(--text); display: block; margin-bottom: 0.35rem; font-family: var(--display); font-size: 0.9rem; }
.log {
  margin: 0; max-height: 220px; overflow: auto;
  padding: 0.75rem; border-radius: 10px;
  background: rgba(5,7,15,0.55); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.5; color: var(--muted);
  white-space: pre-wrap;
}

/* —— Private Ballot additions —— */
.journey { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .journey { grid-template-columns: 1fr; } }

.dual-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 720px) { .dual-split { grid-template-columns: 1fr; } }
.rail-card {
  padding: 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.55);
}
.rail-card h4 { margin: 0 0 0.4rem; font-size: 1rem; }
.rail-card ul { margin: 0.55rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; }
.rail-card.private { border-color: rgba(167, 139, 250, 0.35); }
.rail-card.public { border-color: rgba(34, 211, 238, 0.3); }

.preview-box {
  padding: 1rem; border-radius: 12px; min-height: 110px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.3);
  font-size: 0.88rem; color: var(--muted); line-height: 1.55;
}
.preview-box strong { display: block; color: var(--text); margin-bottom: 0.35rem; }
.preview-box .mono { color: #c7d2fe; font-size: 0.72rem; word-break: break-all; }

.ballot-ring-wrap {
  position: relative; width: 120px; height: 120px; margin: 1.25rem auto 0;
}
.ballot-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8; }
.ring-fg {
  fill: none; stroke: url(#edgeGrad); stroke-width: 8; stroke-linecap: round;
  stroke: #22d3ee;
  transition: stroke-dashoffset 0.6s var(--ease);
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.45));
}
.ring-label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  transform: none;
}
.ring-label strong { display: block; font-family: var(--display); font-size: 1.55rem; line-height: 1; color: var(--text); }
.ring-label span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.prove-stages { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.45rem; }
.prove-stages li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.65rem; align-items: center;
  padding: 0.65rem 0.75rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.4);
  transition: border-color 0.25s, background 0.25s;
}
.prove-stages li strong { display: block; font-size: 0.88rem; }
.prove-stages .ps-meta { font-size: 0.72rem; color: var(--muted); }
.ps-idx {
  width: 1.55rem; height: 1.55rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
  background: rgba(124, 156, 255, 0.12); border: 1px solid var(--line); color: var(--muted);
}
.prove-stages li.is-active { border-color: var(--accent-3); background: rgba(34, 211, 238, 0.08); }
.prove-stages li.is-active .ps-idx { background: var(--accent-3); color: #0a0e1a; border-color: transparent; }
.prove-stages li.is-done { border-color: rgba(110, 231, 183, 0.4); }
.prove-stages li.is-done .ps-idx { background: rgba(110, 231, 183, 0.2); color: var(--ok); border-color: rgba(110, 231, 183, 0.4); }
.prove-stages li.is-fail { border-color: rgba(251, 113, 133, 0.45); }
.prove-stages li.is-fail .ps-idx { background: rgba(251, 113, 133, 0.2); color: var(--danger); }

.proof-meter {
  height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden;
}
.proof-meter-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2), var(--ok));
  transition: width 0.4s var(--ease);
}
.proof-result-card {
  margin-top: 0.85rem; padding: 0.9rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(124, 156, 255, 0.06);
}
.proof-result-card.is-ok { border-color: rgba(110, 231, 183, 0.45); }
.proof-result-card.is-fail { border-color: rgba(251, 113, 133, 0.45); }
.pr-title { margin: 0 0 0.25rem; font-weight: 700; }
.pr-hash { margin: 0; font-family: var(--mono); font-size: 0.72rem; word-break: break-all; color: #c7d2fe; }

.tally-bars { display: grid; gap: 0.75rem; }
.tally-row { display: grid; gap: 0.35rem; }
.tally-row-head {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 600;
}
.tally-row-head span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.tally-bar {
  height: 14px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden;
}
.tally-bar-fill {
  height: 100%; border-radius: 999px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transition: width 0.7s var(--ease);
  box-shadow: 0 0 12px rgba(124, 156, 255, 0.35);
}
.tally-bar-fill.is-winner {
  background: linear-gradient(90deg, var(--ok), var(--accent-3));
  box-shadow: 0 0 14px rgba(110, 231, 183, 0.45);
}

.board-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
@media (max-width: 800px) { .board-split { grid-template-columns: 1fr; } }
.board-sub {
  margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--text);
  font-family: var(--display);
}

.ballot-seal .seal-face { font-size: 1.6rem; }

.kbd-bar {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem;
}
.kbd {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.55rem; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.25);
  font-size: 0.75rem; color: var(--muted);
}
.kbd kbd {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  color: var(--accent-3); padding: 0.1rem 0.35rem; border-radius: 4px;
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25);
}

.toast {
  position: fixed; z-index: 40; left: 50%; bottom: 4.5rem;
  transform: translateX(-50%) translateY(12px);
  padding: 0.65rem 1.1rem; border-radius: 999px;
  background: rgba(8, 12, 24, 0.92); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 0.88rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  box-shadow: var(--shadow); max-width: min(90vw, 420px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.help-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(2, 4, 12, 0.72); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 1rem;
}
.help-overlay[hidden] { display: none !important; }
.help-card {
  width: min(420px, 100%); padding: 1.35rem 1.5rem; border-radius: 18px;
  background: rgba(12, 18, 36, 0.95); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.help-card h3 { margin: 0 0 0.85rem; font-family: var(--display); }
.help-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.help-card li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.9rem; color: var(--muted); padding: 0.4rem 0;
  border-bottom: 1px solid rgba(124, 156, 255, 0.1);
}
.help-card li span:last-child {
  font-family: var(--mono); font-weight: 700; color: var(--accent-3);
  font-size: 0.82rem;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.snip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .snip-grid { grid-template-columns: 1fr; } }
.snip {
  border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
  background: rgba(8, 12, 24, 0.55);
}
.snip.bad { border-color: rgba(251, 113, 133, 0.35); }
.snip.ok { border-color: rgba(110, 231, 183, 0.35); }
.snip-label {
  padding: 0.55rem 0.85rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.02em; border-bottom: 1px solid var(--line);
}
.snip.bad .snip-label { color: #fecdd3; background: rgba(251, 113, 133, 0.08); }
.snip.ok .snip-label { color: #a7f3d0; background: rgba(110, 231, 183, 0.08); }
.snip pre {
  margin: 0; padding: 0.85rem 1rem; overflow-x: auto;
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.5; color: #c7d2fe;
}
.snip-note { margin: 0.85rem 0 0; font-size: 0.85rem; }

.jar-layout {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center;
}
@media (max-width: 640px) { .jar-layout { grid-template-columns: 1fr; text-align: center; } }
.pp-seal {
  position: relative; width: 100px; height: 100px; margin: 0 auto;
  display: grid; place-items: center;
}
.seal-glow {
  position: absolute; inset: -10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.45), transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}
.seal-face {
  position: relative; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(24, 32, 64, 0.95), rgba(10, 14, 28, 0.9));
  border: 2px solid rgba(167, 139, 250, 0.5);
  font-family: var(--display); font-weight: 700; font-size: 1.4rem;
  color: var(--accent-3); box-shadow: 0 0 24px rgba(167, 139, 250, 0.25);
}
.jar-label { text-align: center; margin: 0.55rem 0 0; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.jar-copy h3 { margin: 0 0 0.35rem; font-family: var(--display); font-size: 1.15rem; }
.footer-donate {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin-top: 0.75rem;
}
.footer-donate code {
  font-size: 0.72rem; word-break: break-all; max-width: 100%;
  padding: 0.55rem 0.7rem; display: inline-block;
}

.site-footer {
  margin-top: 2rem; padding: 1.5rem 0 0; border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted);
}
.site-footer a { color: var(--accent); }
.disclaimer { font-size: 0.78rem; opacity: 0.85; margin-top: 0.65rem; }

.pledge-tag.nullifier { color: var(--accent-2); border-color: rgba(167, 139, 250, 0.45); }
.pledge-tag.certified { color: var(--ok); border-color: rgba(110, 231, 183, 0.45); }
.pledge-tag.rejected { color: var(--danger); border-color: rgba(251, 113, 133, 0.45); }
.pledge-item.is-rejected {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.05);
  opacity: 0.85;
}

/* Export / import toolbar */
#btn-export, #btn-import { white-space: nowrap; }

/* Midnight visual refresh — 2026-10-04. Shared craft overlay. */
:root {
  --bg: #070612;
  --bg-elevated: rgba(18, 16, 40, 0.78);
  --bg-card: rgba(16, 14, 36, 0.72);
  --text: #f5f3ff;
  --muted: #b7b3d4;
  --accent: #67e8f9;
  --accent-2: #c084fc;
  --accent-3: #5eead4;
  --ok: #6ee7b7;
  --warn: #fbbf24;
  --danger: #fb7185;
  --bad: #fb7185;
  --fail: #fb7185;
  --line: rgba(192, 132, 252, 0.28);
  --line-strong: rgba(103, 232, 249, 0.55);
  --shadow: 0 24px 60px rgba(4, 2, 16, 0.45);
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}
body {
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(192, 132, 252, 0.22), transparent 60%),
    radial-gradient(800px 520px at 90% 0%, rgba(103, 232, 249, 0.16), transparent 55%),
    var(--bg);
}
.site-header, header.site-header {
  background: rgba(7, 6, 18, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.hero-shell, .hero, main section:first-of-type {
  position: relative;
}
.hero-mark {
  width: min(280px, 70vw);
  margin: 0.4rem auto 1.2rem;
  filter: drop-shadow(0 18px 40px rgba(103, 232, 249, 0.25));
}
.hero-mark img, .hero-mark svg { width: 100%; height: auto; display: block; }
.btn.primary, a.btn.primary, button.btn.primary {
  background: linear-gradient(135deg, #67e8f9, #c084fc);
  color: #140b22;
  border: 0;
  font-weight: 700;
}
.app-card, .panel, .card, article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.app-card {
  background:
    linear-gradient(180deg, rgba(103, 232, 249, 0.08), transparent 42%),
    var(--bg-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.app-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.icon, .app-card .icon {
  background: radial-gradient(circle at 30% 30%, rgba(103, 232, 249, 0.35), rgba(192, 132, 252, 0.12));
  border: 1px solid var(--line);
}
.badge, .badge-live, .badge-flagship {
  letter-spacing: 0.04em;
}

/* Studio product banner */
body { background-image: linear-gradient(180deg, rgba(7,6,18,0.2), #070612 220px), url("../assets/horizon.jpg"); background-size: auto, cover; background-position: center top; background-repeat: no-repeat; }
.topbar, header.site-header { background: rgba(7,6,18,0.78) !important; }
h1 { letter-spacing: -0.04em; }
