:root {
  --bg0: #030712;
  --bg1: #07101f;
  --card: rgba(12, 22, 40, 0.72);
  --card-solid: #0b1528;
  --border: rgba(109, 231, 255, 0.18);
  --border-strong: rgba(109, 231, 255, 0.35);
  --fg: #eaf7ff;
  --muted: #8aa4c0;
  --cyan: #5cefff;
  --cyan-dim: #1a6f7e;
  --green: #5dffb0;
  --violet: #b59cff;
  --gold: #f0c56a;
  --danger: #ff6b8a;
  --glow: 0 0 40px rgba(92, 239, 255, 0.12);
  --font: "SF Pro Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(92, 239, 255, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(181, 156, 255, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  color: var(--fg);
  font-family: var(--font);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(92, 239, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 239, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(3, 7, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg);
}
.brand .mark {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(92,239,255,0.12), 0 0 18px var(--cyan);
}
.brand strong { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.18em; margin-top: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--green); border: 1px solid var(--border-strong);
  padding: 6px 10px; border-radius: 999px;
  background: rgba(93, 255, 176, 0.06);
}
.pill.warn { color: var(--gold); background: rgba(240,197,106,0.06); }
.wrap { position: relative; max-width: 880px; margin: 0 auto; padding: 28px 18px 96px; }
.hero {
  display: grid; gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(12,22,40,0.9), rgba(8,14,28,0.75));
  box-shadow: var(--glow);
}
.hero .kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--cyan); text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(28px, 7vw, 42px); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05;
}
.hero .lede { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 54ch; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px;
}
.stat {
  padding: 12px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.stat b { display:block; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.12em; }
.stat span { display:block; margin-top: 6px; font-size: 13px; color: var(--fg); }
.grid-docs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
  margin-bottom: 16px;
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(10px);
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.card .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--violet);
}
.card h2 { font-size: 16px; color: var(--fg); margin: 0; }
.card p { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; flex: 1; }
.card .row { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.card .row a {
  font-family: var(--mono); font-size: 11px; color: var(--cyan); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.card .row a:hover { border-bottom-color: var(--cyan); }
.panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 18px; margin-bottom: 16px; backdrop-filter: blur(10px);
}
.panel h2 {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 10px; font-family: var(--mono); font-weight: 600;
}
.doc h1 { font-size: 24px; margin: 8px 0 14px; letter-spacing: -0.02em; }
.doc h2 { font-size: 14px; margin: 22px 0 8px; color: var(--cyan); letter-spacing: 0.08em; text-transform: none; font-family: var(--font); }
.doc h3 { font-size: 14px; margin: 16px 0 8px; color: var(--gold); }
.doc p, .doc li { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 8px 0; }
.doc ul { padding-left: 1.15em; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
textarea {
  width: 100%; margin-top: 12px; min-height: 120px;
  background: rgba(3,7,18,0.85); color: var(--fg);
  border: 1px solid var(--border); border-radius: 16px; padding: 14px;
  font: 14px/1.45 var(--mono); resize: vertical;
}
textarea:focus { outline: none; border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(92,239,255,0.12); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
button, .btn {
  appearance: none; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), #7affd2);
  color: #031018; border-radius: 999px; padding: 11px 16px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
}
button.secondary, .btn.secondary {
  background: transparent; color: var(--fg); border: 1px solid var(--border-strong);
}
.out {
  margin-top: 14px; padding: 14px; border-radius: 16px;
  border: 1px solid rgba(93,255,176,0.25);
  background: rgba(93,255,176,0.05);
  white-space: pre-wrap; color: var(--green);
  font-family: var(--mono); font-size: 12px; line-height: 1.55; min-height: 3.5em;
}
.dl { margin-top: 28px; }
.dl a { color: var(--cyan); font-family: var(--mono); font-size: 12px; }
.gate {
  position: relative; max-width: 440px; margin: 12vh auto; padding: 26px;
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--glow); backdrop-filter: blur(14px);
}
.gate h1 { font-size: 22px; margin-bottom: 8px; }
.gate input {
  width: 100%; margin: 14px 0; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(3,7,18,0.9); color: var(--fg);
  font-family: var(--mono); font-size: 13px;
}
.foot {
  margin-top: 28px; color: var(--muted); font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em; text-align: center; line-height: 1.7;
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .brand small { display: none; }
}

/* epic symbol field */
.symbol-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.55;
}
.symbol-field svg {
  position: absolute;
  filter: drop-shadow(0 0 12px rgba(92, 239, 255, 0.15));
}
.wrap, .bar, .gate { position: relative; z-index: 1; }
.orbit {
  position: absolute;
  border: 1px solid rgba(92, 239, 255, 0.12);
  border-radius: 50%;
  animation: spin 80s linear infinite;
}
.orbit.o2 { animation-duration: 120s; animation-direction: reverse; border-color: rgba(181,156,255,0.12); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.35; }
  50% { transform: translateY(-12px) rotate(4deg); opacity: 0.7; }
}
.floater { animation: drift 9s ease-in-out infinite; }
.floater.d2 { animation-duration: 12s; animation-delay: -3s; }
.floater.d3 { animation-duration: 15s; animation-delay: -6s; }

.vincent-statue {
  display: flex; gap: 14px; align-items: center;
  margin-top: 8px; padding: 14px;
  border-radius: 16px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.vincent-statue svg { flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(92,239,255,0.25)); }
.vincent-statue .meta b {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; color: var(--cyan); margin-bottom: 4px;
}
.vincent-statue .meta span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.tip-rail {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  margin-top: 12px; padding: 14px; border-radius: 16px;
  border: 1px solid rgba(181,156,255,0.25);
  background: rgba(181,156,255,0.06);
  min-height: 74px;
}
.tip-swatch {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid transparent; margin-top: 2px;
  box-shadow: 0 0 12px rgba(92,239,255,0.15);
}
.tip-rail .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--violet); margin-bottom: 6px;
}
.tip-rail .tip { color: var(--fg); font-size: 13px; line-height: 1.5; }
.decode-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.chip i {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.chip.white i { background: #f2f5f8; box-shadow: inset 0 0 0 1px #9aa8b8; }
.chip.black i { background: #12151c; box-shadow: 0 0 0 1px #5cefff; }
.chip.brown i { background: #8b5a2b; }
