/* ============================================================
   Ophelia — editorial/terminal art direction (original, no clone)
   ink-navy ground · sprout accent · serif display · mono data
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #060a12;
  --bg-2: #0a1120;
  --raise: #0d1626;
  --line: rgba(148, 163, 184, 0.14);
  --line-2: rgba(148, 163, 184, 0.26);
  --text: #e8eef8;
  --muted: #97a4b8;
  --dim: #6b7891;
  --acc: #7ef29d;
  --acc-ink: #052312;
  --acc-2: #8fa9ff;
  --warn: #f2c94c;
  --bad: #ff7a7a;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1080px;
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(143, 169, 255, 0.07), transparent 60%),
    radial-gradient(900px 480px at 5% 12%, rgba(126, 242, 157, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(126, 242, 157, 0.28); }

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--acc); color: var(--acc-ink);
  padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.28rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }
.mono { font-family: var(--font-mono); font-size: 0.86em; }
.grad {
  background: linear-gradient(96deg, var(--acc) 15%, var(--acc-2) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--acc); margin: 0 0 14px;
}
.small { font-size: 0.88rem; color: var(--dim); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 18, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.brand .brand-mark { display: block; border-radius: 5px; animation: brand-pulse 3.6s ease-in-out infinite; }
@keyframes brand-pulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(126, 242, 157, .25)); }
  50% { filter: drop-shadow(0 0 7px rgba(126, 242, 157, .6)); }
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-size: 0.93rem; padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--raise); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--acc); }
.nav .btn { margin-left: 8px; padding: 8px 16px; }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-2);
  color: var(--text); border-radius: 8px; padding: 8px 12px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.85rem;
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 22px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; font-size: 1rem; }
  .nav .btn { margin: 8px 8px 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0; border-radius: 10px;
  font-weight: 650; font-size: 0.98rem; padding: 13px 22px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  text-decoration: none !important;
}
.btn-pri { background: var(--acc); color: var(--acc-ink); box-shadow: 0 6px 24px rgba(126, 242, 157, 0.18); }
.btn-pri:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(126, 242, 157, 0.3); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--raise); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art {
  position: absolute; top: 50%; right: max(-220px, -18vw); transform: translateY(-50%);
  height: 130%; max-width: none; opacity: .8; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 52%);
}
@media (max-width: 700px) {
  .hero-art { opacity: .22; right: -46vw; }
}
@media (max-width: 980px) {
  .hero-art { right: -30vw; opacity: .42; height: 110%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 70%); }
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; padding: clamp(84px, 14vh, 150px) 0 clamp(70px, 11vh, 120px); }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 42px;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--dim);
}
.hero-meta b { color: var(--acc); font-weight: 600; }

/* rotating H1 subline (fun layer) */
.hero-sub { transition: opacity 0.38s ease; }
.hero-sub.sub-hide { opacity: 0; }

/* ---------- fun-facts strip ---------- */
.facts { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 0; }
.facts-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 44px; padding: 15px 22px;
}
.fact {
  margin: 0; font-family: var(--font-mono); font-size: 0.8rem; color: var(--dim);
}
.fact .fk { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; }
.fact .fv { color: var(--acc); font-weight: 600; margin-left: 8px; letter-spacing: 0.02em; }
@media (max-width: 700px) {
  .facts-row { flex-direction: column; align-items: center; gap: 8px; }
}

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vh, 96px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--raise); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 a { color: var(--text); }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }
.card .num {
  font-family: var(--font-mono); color: var(--acc); font-size: 0.8rem;
  letter-spacing: 0.14em; display: block; margin-bottom: 12px;
}
.card-link { display: inline-block; margin-top: 14px; font-size: 0.92rem; }

.stat { padding: 20px 22px; }
.stat .v {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 650; color: var(--acc); line-height: 1.1;
}
.stat .k { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); }

/* ---- founder hotfix: horizontal-overflow guards (2026-08-25) ---- */
html, body { overflow-x: hidden; overflow-x: clip; }
.g-2 > *, .g-3 > *, .g-4 > * { min-width: 0; }
.tbl-wrap td, .tbl-wrap th { overflow-wrap: anywhere; }
code, .mono, .addr-muted { overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--font-mono); }
.hl td { color: var(--acc); }
tfoot td { color: var(--text); font-weight: 650; }

/* ---------- callouts / steps ---------- */
.note {
  border-left: 3px solid var(--acc); background: rgba(126, 242, 157, 0.06);
  border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; margin: 22px 0;
  color: var(--muted); font-size: 0.95rem;
}
.note.warn { border-color: var(--warn); background: rgba(242, 201, 76, 0.06); }
.note.bad { border-color: var(--bad); background: rgba(255, 122, 122, 0.05); }
.note b { color: var(--text); }

.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--raise); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); color: var(--acc); font-size: 0.9rem;
  border: 1px solid rgba(126, 242, 157, 0.35); border-radius: 8px;
  padding: 6px 9px; flex-shrink: 0; line-height: 1;
}
.step h3 { margin-bottom: 4px; font-size: 1.12rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; color: var(--muted); font-size: 0.96rem; }
.checklist li::before { content: "✓"; color: var(--acc); font-weight: 700; flex-shrink: 0; }
.checklist.cross li::before { content: "✕"; color: var(--bad); }
.checklist b { color: var(--text); font-weight: 600; }

/* ---------- diagrams ---------- */
.diagram {
  background: var(--raise); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 20px; margin: 26px 0;
}
.diagram figcaption { font-size: 0.84rem; color: var(--dim); margin-top: 14px; text-align: center; }
.diagram svg { width: 100%; height: auto; display: block; }
.flow-label { font-family: var(--font-mono); font-size: 12px; fill: var(--muted); }
.flow-box { fill: rgba(148, 163, 184, 0.07); stroke: var(--line-2); rx: 10; }
.flow-box.acc { stroke: rgba(126, 242, 157, 0.6); fill: rgba(126, 242, 157, 0.07); }
.flow-text { fill: var(--text); font-size: 13.5px; font-family: var(--font-body); }
.flow-arrow { stroke: var(--line-2); stroke-width: 1.5; fill: none; marker-end: url(#arrowhead); }

/* ---------- live widgets ---------- */
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .live-grid { grid-template-columns: 1fr; } }
.widget { background: var(--raise); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.widget-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.widget-title { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: pulse 2.2s ease-in-out infinite; flex-shrink: 0; }
.pulse.off { background: var(--dim); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(126, 242, 157, 0.45); } 50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(126, 242, 157, 0); } }
.widget .big { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 650; line-height: 1.15; }
.widget .sub { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.soon {
  font-family: var(--font-mono); font-size: 1rem; color: var(--warn);
  border: 1px dashed rgba(242, 201, 76, 0.4); border-radius: 10px; padding: 14px 16px;
}
.status-line { font-family: var(--font-mono); font-size: 0.78rem; color: var(--dim); margin-top: 12px; }
.addr {
  font-family: var(--font-mono); font-size: 0.8rem; word-break: break-all;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--muted);
}
.pending-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--warn); border: 1px solid rgba(242, 201, 76, 0.35); border-radius: 99px; padding: 2px 10px; }

/* ---------- garden / stream panels ---------- */
.stream-panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 300px at 78% 118%, rgba(126, 242, 157, 0.07), transparent 60%),
    radial-gradient(600px 260px at 12% -20%, rgba(143, 169, 255, 0.08), transparent 55%),
    var(--raise);
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(40px, 7vw, 72px) clamp(22px, 5vw, 56px);
  text-align: center;
}
.stream-flower {
  position: absolute; width: 44px; height: 44px; opacity: .8; pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(126, 242, 157, 0.35));
}
.stream-flower.f1 { left: 7%;  top: 16%;  width: 34px; height: 34px; transform: rotate(-14deg); }
.stream-flower.f2 { right: 10%; top: 12%; width: 40px; height: 40px; transform: rotate(22deg); filter: drop-shadow(0 0 14px rgba(143, 169, 255, 0.35)); }
.stream-flower.f3 { left: 16%; bottom: 14%; width: 28px; height: 28px; transform: rotate(40deg); filter: drop-shadow(0 0 12px rgba(242, 201, 76, 0.3)); }
.stream-flower.f4 { right: 18%; bottom: 18%; width: 30px; height: 30px; transform: rotate(-30deg); opacity: .6; }
@media (max-width: 700px) { .stream-flower { opacity: .35; } }

/* flower cards retired with the W34 canvas — the stream is the gallery now */

/* ---------- garden: zoomable infinite stream (W34) ---------- */
.garden-stage {
  position: relative; overflow: hidden;
  height: clamp(460px, 72vh, 720px);
  border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(1100px 480px at 78% 118%, rgba(126, 242, 157, 0.06), transparent 62%),
    radial-gradient(820px 380px at 10% -24%, rgba(143, 169, 255, 0.08), transparent 58%),
    var(--bg-2);
  touch-action: none;
  cursor: grab;
}
.garden-stage:active { cursor: grabbing; }
.garden-stage:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
#garden-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.garden-hint {
  position: absolute; left: 14px; bottom: 12px; margin: 0;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--dim); pointer-events: none; user-select: none;
}
.garden-zoom {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.garden-zoom button {
  min-width: 40px; padding: 7px 11px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.9rem; line-height: 1;
  color: var(--text); background: rgba(13, 22, 38, 0.85);
  border: 1px solid var(--line-2); border-radius: 9px;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.garden-zoom button:hover { color: var(--acc); border-color: rgba(126, 242, 157, 0.45); transform: translateY(-1px); }
.garden-zoom button:active { transform: translateY(0) scale(0.96); }

.garden-empty {
  position: absolute; inset: auto 0 12%; text-align: center; pointer-events: none;
}
.garden-empty a { pointer-events: auto; }
.garden-offline {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  margin: 0; white-space: nowrap; color: var(--warn);
  font-family: var(--font-mono); font-size: 0.74rem;
}

.garden-card {
  position: absolute; right: 12px; bottom: 12px; max-width: min(320px, 86%);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  background: rgba(13, 22, 38, 0.94); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 14px 16px;
}
.garden-card[hidden] { display: none; }
.garden-card-art { grid-row: span 3; }
.garden-card-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }
.garden-card-sig { font-family: var(--font-mono); font-size: 0.82rem; justify-self: start; }
.preview-chip {
  justify-self: start;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  color: var(--warn); border: 1px dashed rgba(242, 201, 76, 0.5);
  border-radius: 99px; padding: 2px 10px;
}
.garden-card-x {
  position: absolute; top: 6px; right: 8px; cursor: pointer;
  background: none; border: 0; color: var(--dim); font-size: 1rem; line-height: 1;
  padding: 4px;
}
.garden-card-x:hover { color: var(--text); }

.garden-toy {
  background: var(--raise); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 4vw, 34px);
}
.toy-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.toy-input {
  flex: 1 1 260px; min-width: 0;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px;
  font-family: var(--font-mono); font-size: 0.86rem;
  padding: 12px 14px;
}
.toy-input::placeholder { color: var(--dim); }
.toy-input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.toy-msg { min-height: 1.2em; margin: 8px 0 0; color: var(--warn); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .garden-zoom button, .garden-stage { transition: none; }
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 0.9rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
footer h4 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); margin: 0 0 12px; font-weight: 500; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--acc); }
.foot-note { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.82rem; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-sub { transition: none; }
}

/* ---------- page furniture ---------- */
.page-head { padding: clamp(48px, 8vh, 80px) 0 10px; }
.crumbs { font-family: var(--font-mono); font-size: 0.78rem; color: var(--dim); margin-bottom: 18px; display: block; }
.crumbs a { color: var(--dim); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.toc a {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px;
}
.toc a:hover { color: var(--acc); border-color: rgba(126, 242, 157, 0.4); text-decoration: none; }
section[id] { scroll-margin-top: 76px; }

/* ---------- utilities (CSP-safe: no inline style attributes in HTML) ---------- */
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 30px; }
.mt-0 { margin: 0; }
.center { text-align: center; }
.center-auto { margin-left: auto; margin-right: auto; }
.full-w { width: 100%; }
.pb-tall { padding-bottom: 120px; }
.cta-center { justify-content: center; margin-top: 28px; }
.lead-center { margin: 0 auto 30px; }
.inline-brand { margin-bottom: 14px; display: inline-flex; }
.addr-muted { color: var(--muted); }
.cap { text-align: left; padding: 10px 16px 0; }
.h-sm { font-size: 1.5rem; margin-bottom: 22px; }
.dl-addr { display: grid; gap: 18px; margin: 26px 0 0; }
.addr-dt { margin-bottom: 6px; font-weight: 600; }
.addr-dd { margin: 6px 0 0; }
.empty-cell { text-align: center; color: var(--dim); padding: 28px; }
.break-all { word-break: break-all; }
.lit { color: var(--acc); }

/* ============================================================
   W33 — CURSOR + MICRO-DETAIL LAW (directive §3 v4)
   Glowing-orb cursor (inline data-URI SVG — img-src data: is
   CSP-allowed) with a bloom variant on interactive elements,
   themed selection/focus/scrollbar, hover/active micro-details,
   widget loading states. The MOTION half (trail/burst/glow dot)
   lives in js/cursor.js and is OFF for reduced-motion + touch;
   these static theming rules stay for everyone.
   ============================================================ */

html {
  cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2726%27%20height%3D%2726%27%20viewBox%3D%270%200%2026%2026%27%3E%3Cdefs%3E%3CradialGradient%20id%3D%27g%27%20cx%3D%2750%25%27%20cy%3D%2750%25%27%20r%3D%2750%25%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%23eafff2%27%2F%3E%3Cstop%20offset%3D%27.42%27%20stop-color%3D%27%237ef29d%27%20stop-opacity%3D%27.5%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%237ef29d%27%20stop-opacity%3D%270%27%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2713%27%20cy%3D%2713%27%20r%3D%2712%27%20fill%3D%27url%28%23g%29%27%2F%3E%3Ccircle%20cx%3D%2713%27%20cy%3D%2713%27%20r%3D%274.2%27%20fill%3D%27%23eafff2%27%2F%3E%3Ccircle%20cx%3D%2713%27%20cy%3D%2713%27%20r%3D%276.8%27%20fill%3D%27none%27%20stroke%3D%27%237ef29d%27%20stroke-opacity%3D%27.85%27%20stroke-width%3D%271.1%27%2F%3E%3C%2Fsvg%3E") 13 13, auto;
  scrollbar-color: rgba(126, 242, 157, 0.38) #0a1120;
  scrollbar-width: thin;
}
a, button, .btn {
  cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2734%27%20height%3D%2734%27%20viewBox%3D%270%200%2034%2034%27%3E%3Cdefs%3E%3CradialGradient%20id%3D%27g%27%20cx%3D%2750%25%27%20cy%3D%2750%25%27%20r%3D%2750%25%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%23eafff2%27%2F%3E%3Cstop%20offset%3D%27.45%27%20stop-color%3D%27%237ef29d%27%20stop-opacity%3D%27.5%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%237ef29d%27%20stop-opacity%3D%270%27%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2717%27%20r%3D%2716%27%20fill%3D%27url%28%23g%29%27%2F%3E%3Cg%20fill%3D%27%23a5f6bf%27%3E%3Cellipse%20cx%3D%2717%27%20cy%3D%2711%27%20rx%3D%273.2%27%20ry%3D%275.2%27%2F%3E%3Cellipse%20cx%3D%2717%27%20cy%3D%2723%27%20rx%3D%273.2%27%20ry%3D%275.2%27%2F%3E%3Cellipse%20cx%3D%2711%27%20cy%3D%2717%27%20rx%3D%275.2%27%20ry%3D%273.2%27%2F%3E%3Cellipse%20cx%3D%2723%27%20cy%3D%2717%27%20rx%3D%275.2%27%20ry%3D%273.2%27%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2717%27%20r%3D%273.4%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E") 17 17, pointer;
}

/* text selection: solid sprout over dark ink — readable at a glance */
::selection { background: rgba(126, 242, 157, 0.85); color: var(--acc-ink); }

/* focus ring keeps the outline and gains a soft halo (same glow language) */
:focus-visible { box-shadow: 0 0 0 5px rgba(126, 242, 157, 0.16); }

/* themed scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #070c16; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(126, 242, 157, 0.45), rgba(143, 169, 255, 0.4));
  border-radius: 8px;
  border: 3px solid #070c16;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(126, 242, 157, 0.75), rgba(143, 169, 255, 0.7));
}
::-webkit-scrollbar-corner { background: transparent; }

/* micro-interactions: every card, button, link answers */
.menu-btn { transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease; }
.menu-btn:hover { color: var(--acc); border-color: rgba(126, 242, 157, 0.45); background: var(--raise); }
.btn:active { transform: translateY(0) scale(0.97); }
.toc a { transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease; }
.toc a:active { transform: scale(0.96); }
.step { transition: border-color 0.2s ease, transform 0.2s ease; }
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.widget { transition: border-color 0.2s ease, transform 0.2s ease; }
.widget:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card:active { transform: translateY(0); }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: rgba(148, 163, 184, 0.05); }
footer a { transition: color 0.14s ease; }

/* widget loading states (classes toggled by live.js / main.js only when a
   configured feed is actually in flight — empty-config pages keep their
   honest standing states untouched) */
.widget .big { transition: opacity 0.25s ease; }
[data-live-supply] { transition: opacity 0.25s ease; }
[data-live-supply].live-loading,
.widget.is-loading .big { opacity: 0.55; }
.widget.is-loading .pulse { animation-duration: 0.85s; }

/* ---- cursor fx layer (created by js/cursor.js) ---- */
#fx-canvas {
  position: fixed; inset: 0; z-index: 95;
  pointer-events: none; display: block;
}
.fx-glow {
  position: fixed; left: 0; top: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; z-index: 96; pointer-events: none; opacity: 0;
  background: radial-gradient(circle,
    rgba(234, 255, 242, 0.9) 0%, rgba(126, 242, 157, 0.45) 30%, rgba(126, 242, 157, 0) 70%);
  mix-blend-mode: screen;
  will-change: transform;
  transition: opacity 0.25s ease, width 0.18s ease, height 0.18s ease, margin 0.18s ease;
}
.fx-glow.on { opacity: 0.8; }
.fx-glow.hot { width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .fx-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-glow, #fx-canvas { display: none; } /* belt and suspenders — cursor.js also bails early */
}

/* ============================================================
   W36 — BURN-CARD GENERATOR (website/burn-card.html)
   Two-column maker: form left, 1080² card preview right.
   Reuses .toy-input/.btn/.preview-chip/.status-line; adds the
   grid, field labels, preview frame and the verified-chip variant.
   ============================================================ */

.bc-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(300px, 6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.bc-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; flex: 1; }
.bc-label {
  font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--dim);
}
.bc-wide { width: 100%; }
.bc-row { display: flex; gap: 14px; }
.bc-btn { margin-top: 4px; }
.bc-stage {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(143, 169, 255, 0.08), transparent 55%),
    var(--raise, #0a1120);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(14px, 2vw, 26px);
}
.bc-preview {
  display: block; width: 100%; height: auto;
  border-radius: 10px;
  border: 1px solid var(--line-2);
}
.bc-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; min-height: 34px; }
.bc-chip-ok { border-color: rgba(126, 242, 157, 0.6); color: var(--acc); }
@media (max-width: 860px) {
  .bc-grid { grid-template-columns: 1fr; }
  .bc-row { flex-wrap: wrap; }
}
