/* Auth Forge Studio — flagship polish (MPS-0029) */
@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, .score-item:focus-within {
  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; }

/* —— Background —— */
.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 —— */
.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), 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: 900px) {
  .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); }

/* —— Donate dock (always visible) —— */
.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 —— */
.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(167, 139, 250, 0.2), 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, 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 65%, #a78bfa);
  -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);
  background: none; -webkit-background-clip: unset; background-clip: unset;
}
.muted { color: var(--muted); }
.muted.small, .small { font-size: 0.85rem; }

/* —— Journey —— */
.journey {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem;
}
@media (max-width: 860px) { .journey { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .journey { grid-template-columns: 1fr; } }
.journey-step {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.85rem 0.95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.55);
  transition: border-color 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.journey-step.is-active {
  border-color: var(--accent);
  background: rgba(124, 156, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(124, 156, 255, 0.25);
}
.journey-step.is-done {
  border-color: rgba(110, 231, 183, 0.4);
  background: rgba(110, 231, 183, 0.08);
}
.journey-step.is-bad {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(251, 113, 133, 0.1);
}
.js-idx {
  flex-shrink: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
  background: rgba(124, 156, 255, 0.2); color: var(--accent);
}
.journey-step.is-done .js-idx { background: rgba(110, 231, 183, 0.25); color: var(--ok); }
.journey-step.is-bad .js-idx { background: rgba(251, 113, 133, 0.25); color: var(--danger); }
.journey-step strong { display: block; font-size: 0.92rem; }
.js-detail { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.journey-live { margin: 0.85rem 0 0; }

/* —— Rules + threat rail —— */
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .rule-grid { grid-template-columns: 1fr; } }
.rule-card {
  padding: 1.15rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.55);
}
.rule-card h3 { margin: 0.35rem 0 0.5rem; font-size: 1.05rem; color: var(--text); background: none; }
.rule-card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.rule-card.bad { border-color: rgba(251, 113, 133, 0.35); }
.rule-card.ok { border-color: rgba(110, 231, 183, 0.35); }
.rule-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 6px;
}
.rule-card.bad .rule-tag { background: rgba(251, 113, 133, 0.18); color: var(--danger); }
.rule-card.ok .rule-tag { background: rgba(110, 231, 183, 0.15); color: var(--ok); }

.threat-rail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.15rem;
}
@media (max-width: 760px) { .threat-rail { grid-template-columns: 1fr; } }
.rail {
  padding: 1rem 1.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; }
.rail-meter {
  height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06);
  overflow: hidden; margin: 0.65rem 0 0.4rem; border: 1px solid var(--line);
}
.rail-fill {
  height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--danger), #fb923c);
  transition: width 0.55s var(--ease);
}
.rail-meter.ok .rail-fill {
  background: linear-gradient(90deg, var(--accent-3), var(--ok));
}
.rail-label { font-size: 0.78rem; color: var(--muted); font-family: var(--mono); }

/* —— Forge —— */
.forge-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.forge-card {
  padding: 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.5);
}
.forge-card.wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .forge-layout { grid-template-columns: 1fr; } .forge-card.wide { grid-column: auto; } }
.forge-card h3 { margin: 0 0 0.4rem; font-size: 1.02rem; color: var(--text); background: none; }
.field { margin: 0.75rem 0; }
.field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem; }
.field-hint { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.3rem; opacity: 0.8; }
.field input, textarea {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(5, 7, 15, 0.8); color: var(--text);
  font-family: var(--mono); font-size: 0.82rem;
}
textarea { font-family: var(--font); resize: vertical; }
.status { margin: 0.75rem 0 0; font-size: 0.88rem; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.fail { color: var(--danger); }
.status.warn { color: var(--warn); }
.log {
  margin: 1rem 0 0; padding: 0.85rem 1rem; max-height: 200px; overflow: auto;
  background: rgba(0,0,0,0.35); border-radius: 10px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.78rem; color: #c7d2fe; white-space: pre-wrap;
}

/* —— Scorecard —— */
.score-layout {
  display: grid; grid-template-columns: 1fr 220px; gap: 1.25rem; align-items: start;
}
@media (max-width: 760px) { .score-layout { grid-template-columns: 1fr; } }
.score-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.score-item {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.7rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.45);
  cursor: pointer; font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.score-item:hover { border-color: var(--accent); }
.score-item.danger { border-color: rgba(251, 113, 133, 0.25); }
.score-item input { margin-top: 0.2rem; accent-color: var(--accent); flex-shrink: 0; }
.score-item.danger input { accent-color: var(--danger); }
.score-panel {
  text-align: center; padding: 1.15rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.55);
}
.score-ring {
  width: 120px; height: 120px; margin: 0 auto 0.75rem;
  border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle at center, rgba(8,12,24,0.95) 58%, transparent 59%),
    conic-gradient(var(--accent) 0deg, rgba(124,156,255,0.15) 0deg);
  border: 1px solid var(--line);
}
.score-num { font-family: var(--display); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.score-cap { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* —— Board —— */
.board-layout { display: grid; grid-template-columns: 300px 1fr; gap: 1rem; }
@media (max-width: 860px) { .board-layout { grid-template-columns: 1fr; } }
.ident-card, .post-form, .board-main {
  padding: 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.5);
}
.ident-card h3, .post-form h3, .board-head h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--text); background: none; }
.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;
}
.board-side { display: flex; flex-direction: column; gap: 1rem; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.char-count { text-align: right; margin: 0.35rem 0 0.55rem; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.post-item {
  padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(124, 156, 255, 0.05);
  animation: fadeUp 0.4s var(--ease) both;
}
.post-item .meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.35rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.post-item .body { margin: 0; white-space: pre-wrap; word-break: break-word; }
.post-item .actions { margin-top: 0.55rem; }
.empty {
  color: var(--muted); font-size: 0.92rem; padding: 1.5rem; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px;
}

/* —— Wallets —— */
.wallet-toolbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.88rem; color: var(--muted); cursor: pointer;
}
.toggle input { accent-color: var(--accent-3); }
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.wallet-card {
  padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.55);
}
.wallet-card h4 { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--text); background: none; }
.wallet-card .kv { font-size: 0.78rem; color: var(--muted); font-family: var(--mono); word-break: break-all; }

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

/* —— Footer —— */
.site-footer {
  margin-top: 1.5rem; padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem;
}
.footer-donate {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin: 0.85rem 0; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.3);
}
.footer-donate code { font-size: 0.78rem; word-break: break-all; flex: 1; color: var(--text); }
.disclaimer { font-size: 0.8rem; opacity: 0.85; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* —— Pass 14 deepen: empty, motion, error honesty —— */
.empty-rich {
  display: grid; gap: 0.4rem; justify-items: center;
  list-style: none; padding: 1.75rem 1.1rem !important;
  text-align: center; border-style: dashed !important;
  background: rgba(8, 12, 24, 0.45);
  animation: fadeUp 0.4s var(--ease);
}
.empty-rich .empty-glyph {
  font-size: 1.55rem; color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(124, 156, 255, 0.4));
}
.empty-rich strong { color: var(--text); }
.empty-rich .muted { max-width: 40ch; }
.error-honesty {
  margin: 0 0 0.75rem; padding: 0.65rem 0.85rem; border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.1); color: var(--danger);
  font-size: 0.88rem;
}
.error-honesty[hidden] { display: none !important; }
.seal-flash {
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.45) !important;
}
.post-item {
  animation: fadeUp 0.35s var(--ease) both;
}
@media (prefers-reduced-motion: reduce) {
  .empty-rich, .post-item { animation: none; }
}

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