/* Sealed Invite Studio — private RSVP / sealed invites */
@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); }

/* 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; }
