/* ==========================================================================
   Uroboros motion layer. Loaded after site.css on every page.
   Everything here is transform / opacity (plus stroke offsets inside tiny SVGs).
   Hidden-until-revealed states only apply under html.mo, which motion.js sets
   when JS runs and the visitor has not asked for reduced motion.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --rv-d: 28px;
}

/* ---------- background layer ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; }
.bgfx > * { position: absolute; will-change: transform; }
.bgfx-grid { inset: -32px 0 -32px 0;
  background-image: radial-gradient(rgba(237, 237, 237, 0.075) 1px, transparent 1.3px);
  background-size: 28px 28px; background-position: 14px 14px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%); }
.bgfx-glow { width: 90vmax; height: 90vmax; left: 38%; top: -42vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(237, 237, 237, 0.055), rgba(237, 237, 237, 0.018) 55%, transparent 100%); }
.bgfx-glow.b { width: 70vmax; height: 70vmax; left: -34vmax; top: 55vh; opacity: .7; }
.bgfx-ring { width: 118vmax; height: 118vmax; right: -52vmax; top: -40vmax; opacity: .9; transform-origin: 50% 50%; }
.bgfx-ring circle, .bgfx-ring path { fill: none; stroke: rgba(237, 237, 237, 0.045); }
.bgfx-ring .k { stroke: rgba(237, 237, 237, 0.07); stroke-dasharray: 1 9; }
.bgfx-ring .h { fill: rgba(237, 237, 237, 0.05); stroke: none; }
.bgfx-grain { inset: 0; opacity: .045; will-change: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (max-width: 767px) {
  .bgfx-ring { width: 150vmax; height: 150vmax; right: -95vmax; top: -30vmax; }
  .bgfx-glow { left: 10%; }
}
/* this layer replaces the interim accent once shipped in a hand-edited site.css
   (body::before / body::after grid + glow, section + section::before hairlines): never stack the two */
body::before, body::after { content: none !important; display: none !important; }
section + section:not(.rule-top)::before { content: none !important; }
/* sections that used a flat page colour stay transparent so the layer shows through */
.footer { position: relative; }

/* ---------- reveal ---------- */
html.mo .rv { opacity: 0; transform: translate3d(0, var(--rv-d), 0);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms); }
html.mo .rv.in { opacity: 1; transform: none; }
html.mo .rv-soft { --rv-d: 12px; }

/* hero entrance */
html.mo .hero-in { opacity: 0; transform: translate3d(0, 22px, 0); animation: hero-in 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 80ms + 80ms); }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* hairline draw-in across each section break */
html.mo .rule-top::before { transform: translateX(-50%) scaleX(0); transform-origin: 0 50%; transition: transform 1400ms var(--ease-io); }
html.mo .rule-top.ruled::before { transform: translateX(-50%) scaleX(1); }
.rule-top::after { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--text); opacity: 0; pointer-events: none; }
html.mo .rule-top.ruled::after { animation: rule-dot 1400ms var(--ease-io) forwards; }
@keyframes rule-dot { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: .9; } 85% { opacity: .9; } 100% { opacity: 0; transform: translateX(calc(100vw - 5px)); } }

/* share bars grow from the left */
html.mo .share i { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
html.mo .in .share i, html.mo .share.in i { transform: none; }

/* ---------- hover: rows lift one step, nothing moves ---------- */
@media (hover: hover) {
  .t tbody tr { transition: background-color 150ms var(--ease-out); }
  .t tbody tr:hover { background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 85%); }
  .kv > div { transition: background-color 150ms var(--ease-out); }
  .kv > div:hover { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025) 50%, transparent); }
  .limits li, .disc li { transition: color 150ms var(--ease-out); }
  .limits li:hover::before { color: var(--text); }
}

/* live status dot breathes */
.st[data-state="live"]::before { animation: st-breathe 2.4s ease-in-out infinite; }
@keyframes st-breathe { 50% { opacity: .35; } }

/* ---------- scan-line sweep (once, on first view) ---------- */
.scan-fx { position: relative; overflow: hidden; }
.scan-fx::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transform: translateY(-100%);
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0) 60%, rgba(255,255,255,.045) 93%, rgba(255,255,255,.18) 99.5%, transparent 100%); }
.scan-fx.scanned::after { animation: scan 1300ms var(--ease-io) 1 both; }
@keyframes scan { 0% { opacity: 1; transform: translateY(-100%); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(100%); } }

/* ---------- heading scramble: real text stays in the DOM ---------- */
.scr-wrap { position: relative; display: inline-block; max-width: 100%; }
.scr-fx { position: absolute; inset: 0; pointer-events: none; opacity: 0; white-space: inherit; }
.is-scr .scr-real { opacity: 0; }
.is-scr .scr-fx { opacity: 1; }

/* ---------- pillars: glyph + sequence ---------- */
.pg { display: block; width: 44px; height: 44px; margin-bottom: 4px; overflow: visible; color: var(--text); }
.pg * { vector-effect: non-scaling-stroke; }
.pg .o { fill: none; stroke: var(--line-hover); stroke-width: 1; }
.pg .s { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; }
.pg .f { fill: var(--text); }
.pg .arc { stroke-dasharray: 100; stroke-dashoffset: 100; }
.pg .hand { transform-origin: 22px 22px; transform: rotate(-90deg); }
.pg .ping { transform-origin: 22px 22px; opacity: 0; }
.pg .gd { opacity: .3; }
.pg .hx { stroke: var(--text); }
.pg .lk { opacity: 0; }
.pillar.on .pg .arc { animation: pg-arc 2400ms var(--ease-io) forwards; }
.pillar.on .pg .hand { animation: pg-hand 2400ms var(--ease-io) forwards; }
.pillar.on .pg .ping { animation: pg-ping 2600ms var(--ease-out) infinite; }
.pillar.on .pg .ping.b { animation-delay: 1300ms; }
.pillar.on .pg .gd { animation: pg-gd 2600ms steps(1) infinite; }
.pillar.on .pg .gd:nth-of-type(2) { animation-delay: 860ms; }
.pillar.on .pg .gd:nth-of-type(3) { animation-delay: 1720ms; }
.pillar.on .pg .hx { animation: pg-fz 1600ms var(--ease-out) 300ms forwards; }
.pillar.on .pg .shock { animation: pg-shock 1100ms var(--ease-out) 300ms 1 both; }
.pillar.on .pg .lk { animation: pg-lk 400ms var(--ease-out) 900ms forwards; }
.pg .shock { fill: none; stroke: var(--negative); stroke-width: 1; transform-origin: 22px 22px; opacity: 0; }
@keyframes pg-arc { to { stroke-dashoffset: 75; } }
@keyframes pg-hand { to { transform: rotate(0deg); } }
@keyframes pg-ping { 0% { opacity: .7; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes pg-gd { 0% { opacity: 1; } 33% { opacity: .3; } }
@keyframes pg-fz { 0% { stroke: var(--text); } 30%, 100% { stroke: var(--negative); } }
@keyframes pg-shock { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes pg-lk { to { opacity: 1; } }
html.mo .pillar { transition: opacity 500ms var(--ease-out); }
html.mo .pillars.seq .pillar:not(.on) { opacity: .42; }
@media (prefers-reduced-motion: reduce) {
  .pg .arc { stroke-dashoffset: 75; } .pg .hand { transform: none; } .pg .gd { opacity: 1; } .pg .hx { stroke: var(--negative); } .pg .lk { opacity: 1; }
}

/* ---------- sticky CTA ---------- */
.scta { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--text); color: var(--accent-ink); font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12);
  opacity: 0; transform: translate3d(0, 16px, 0); visibility: hidden; pointer-events: none;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms; }
.scta.on { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.scta svg { width: 18px; height: 18px; }
.scta:hover { background: var(--accent); }
@media (max-width: 767px) { .scta { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); } }

/* logo ring turns with scroll */
.logo svg { transform: rotate(var(--logo-r, 0deg)); transition: none; }

/* whitepaper TOC scroll-spy */
.toc a[aria-current] { color: var(--text); }
.toc a { transition: color 150ms var(--ease-out); }

/* ==========================================================================
   Snake hero (snake.js)
   ========================================================================== */
.snk { position: relative; user-select: none; -webkit-user-select: none; }
.snk-stage { position: relative; }
.snk canvas { display: block; width: 100%; touch-action: pan-y; }
.snk.is-ready .ring { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.snk-st { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 4px;
  background: rgba(5, 5, 5, .78); font-family: var(--font-mono); font-size: 12px; line-height: 1; color: var(--text-muted); cursor: pointer; white-space: nowrap;
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out), background-color 150ms var(--ease-out); will-change: transform; }
.snk-st i { font-style: normal; color: var(--text-faint); font-size: 11px; }
.snk-st:hover, .snk-st.on { color: var(--text); border-color: var(--line-hover); }
.snk-st[aria-pressed="true"] { background: var(--text); color: var(--accent-ink); border-color: var(--text); }
.snk-st[aria-pressed="true"] i { color: rgba(5,5,5,.6); }
.snk-key { position: absolute; z-index: 3; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 0; padding: 0; background: none; cursor: grab; touch-action: none; will-change: transform; }
.snk-key:active { cursor: grabbing; }
.snk-key svg { width: 46px; height: 46px; display: block; overflow: visible; }
.snk-key .kd { fill: var(--bg); stroke: var(--text); stroke-width: 1.3; stroke-dasharray: 3 2.5; }
.snk-key .kx { stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; }
.snk-key .kr { fill: none; stroke: var(--text); stroke-width: 1; opacity: 0; transform-origin: 23px 23px; }
.snk-key.idle .kr { animation: key-ping 2.2s var(--ease-out) infinite; }
@keyframes key-ping { 0% { opacity: .55; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.3); } }
.snk-key:focus-visible { outline: 2px solid var(--text); outline-offset: 0; border-radius: 50%; }
.snk-key[hidden] { display: none; }
.snk-hint { position: absolute; z-index: 2; left: 0; top: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); white-space: nowrap; pointer-events: none; will-change: transform, opacity; transition: opacity 300ms var(--ease-out); }
.snk-panel { margin-top: 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: start; padding: 14px 0 0; border-top: 1px solid var(--line); min-height: 92px; }
.snk-read { min-width: 0; display: grid; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.snk-read b { font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.snk-read .fz { color: var(--negative); }
.snk-read ol { list-style: none; display: grid; gap: 3px; font-family: var(--font-mono); font-size: 12px; }
.snk-read ol li { opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.snk-read ol li.in { opacity: 1; transform: none; }
.snk-read ol li span { color: var(--text-faint); margin-right: 8px; }
.snk-read ol li.fz span, .snk-read ol li.fz { color: var(--negative); }
.snk-side { display: grid; gap: 8px; justify-items: end; }
.snk-fire { height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: none; color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.snk-fire:hover { border-color: var(--line-hover); background: rgba(255,255,255,.05); }
.snk-fire[disabled] { opacity: .4; cursor: default; }
.snk-tally { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-align: right; white-space: nowrap; }
.snk-live { grid-column: 1 / -1; display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.snk-live b { font-weight: 400; color: var(--text); }
.snk-live[hidden] { display: none; }
@media (max-width: 767px) {
  .snk-st { height: 24px; padding: 0 7px; font-size: 11px; }
  .snk-st i { display: none; }
  .snk-panel { grid-template-columns: minmax(0, 1fr); min-height: 112px; }
  .snk-side { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: start; gap: 12px; }
  .snk.is-ready ~ .ring-cap, .snk.is-ready .ring-cap { display: none; }
}

/* ==========================================================================
   Caps simulator (capsim.js)
   ========================================================================== */
.csim { margin-top: 56px; border: 1px solid var(--line-strong); border-radius: 8px; background: color-mix(in srgb, var(--surface) 86%, transparent); }
.csim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.csim-head h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.csim-head p { font-size: 13px; color: var(--text-faint); }
.csim-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.csim-ctl { padding: 20px; display: grid; gap: 22px; align-content: start; border-right: 1px solid var(--line); }
.csim-out { padding: 20px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.csim-f { display: grid; gap: 10px; }
.csim-f .l { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-faint); }
.csim-f .l b { font-family: var(--font-mono); font-weight: 400; color: var(--text); font-size: 13px; }
.csim input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; touch-action: pan-y; }
.csim input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--text) var(--fill, 0%), var(--line-strong) var(--fill, 0%)); border-radius: 1px; }
.csim input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); border-radius: 1px; }
.csim input[type="range"]::-moz-range-progress { height: 2px; background: var(--text); }
.csim input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text); transition: transform 150ms var(--ease-out); }
.csim input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text); }
.csim input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.csim input[type="range"]:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.csim-tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }
.csim-tg .btn { flex: none; }
.csim-tg .b-panic[aria-pressed="true"] { background: var(--negative); color: #050505; border-color: var(--negative); }
.csim-tg .b-thief[aria-pressed="true"] { background: rgba(255,255,255,.06); border-color: var(--line-hover); }
.csim-verdict { display: grid; gap: 6px; }
.csim-verdict .k { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.csim-verdict b { font-size: 28px; line-height: 1.1; font-weight: 500; letter-spacing: -0.035em; }
.csim-verdict p { font-size: 14px; color: var(--text-muted); max-width: 46ch; min-height: 3em; }
.csim[data-v="frozen"] .csim-verdict b { color: var(--negative); }
.csim-cells { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 3px; }
.csim-cells i { display: block; aspect-ratio: 1; border-radius: 1.5px; border: 1px solid var(--line-strong); background: transparent; transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), opacity 200ms var(--ease-out); }
.csim-cells i.gone { border-color: transparent; background: rgba(237,237,237,.08); }
.csim-cells i.now { background: var(--text); border-color: var(--text); }
.csim-cells i.qd { border-style: dashed; border-color: var(--text-muted); background: rgba(237,237,237,.06); }
.csim[data-v="frozen"] .csim-cells i { border-color: var(--negative-line); }
.csim[data-v="frozen"] .csim-cells i.qd { background: var(--negative-soft); border-color: var(--negative); }
.csim-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-faint); }
.csim-legend span { display: inline-flex; align-items: center; gap: 6px; }
.csim-legend i { width: 10px; height: 10px; border-radius: 1.5px; border: 1px solid var(--line-strong); display: inline-block; }
.csim-legend i.gone { border-color: transparent; background: rgba(237,237,237,.08); }
.csim-legend i.now { background: var(--text); border-color: var(--text); }
.csim-legend i.qd { border-style: dashed; border-color: var(--text-muted); }
.csim-tl { display: grid; gap: 6px; }
.csim-tl .bars { position: relative; display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); align-items: end; gap: 2px; height: 56px; border-bottom: 1px solid var(--line-strong); }
.csim-tl .bars i { display: block; background: var(--text-ghost); border-radius: 1px 1px 0 0; height: var(--h, 0%); min-height: 0; transform-origin: 50% 100%; transition: background-color 200ms var(--ease-out); }
.csim-tl .bars i.past { background: var(--text-muted); }
.csim-tl .bars i.cur { background: var(--text); }
.csim-tl .bars i.fz { background: var(--negative-line); }
.csim-tl .mk { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--text); left: 0; will-change: transform; transition: transform 200ms var(--ease-out); }
.csim-tl .qspan { position: absolute; bottom: 0; height: 100%; border: 1px dashed var(--text-muted); border-bottom: 0; border-radius: 3px 3px 0 0; left: 0; width: 0; opacity: 0; pointer-events: none; }
.csim-tl .fzspan { position: absolute; bottom: 0; height: 100%; background: var(--negative-soft); border-top: 1px solid var(--negative-line); left: 0; width: 0; opacity: 0; pointer-events: none; }
.csim-tl .ax { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.csim-sum { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.csim-sum b { font-weight: 400; color: var(--text); }
@media (max-width: 860px) {
  .csim-body { grid-template-columns: minmax(0, 1fr); }
  .csim-ctl { border-right: 0; border-bottom: 1px solid var(--line); }
  .csim-cells { grid-template-columns: repeat(20, minmax(0, 1fr)); }
}

/* ==========================================================================
   Raid leak meter (leak.js)
   ========================================================================== */
html.mo .bar-fill { transition: width 1600ms var(--ease-out); }
.bar-track .drip { position: absolute; top: -1px; bottom: -1px; width: 2px; background: var(--text); left: 0; opacity: 0; will-change: transform, opacity; }
.lsim { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lsim > * { min-width: 0; }
@media (max-width: 1023px) { .lsim { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.lsim-card { border: 1px solid var(--line-strong); border-radius: 8px; background: color-mix(in srgb, var(--surface) 86%, transparent); padding: 20px; display: grid; gap: 18px; }
.lsim-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-faint); flex-wrap: wrap; }
.lsim-big b { display: block; font-size: 48px; line-height: 1; font-weight: 500; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.lsim-big b small { font-size: 18px; color: var(--text-muted); margin-left: 6px; letter-spacing: -0.02em; }
.lsim-big > span { font-size: 13px; color: var(--text-muted); }
@media (max-width: 767px) { .lsim-big b { font-size: 36px; } }
.vessel { position: relative; height: 120px; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.vessel .lvl { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(237,237,237,.16), rgba(237,237,237,.06)); transform-origin: 50% 100%; transition: transform 900ms var(--ease-out); }
.vessel .lvl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--text); }
.vessel .cap { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--text-faint); transition: transform 900ms var(--ease-out); }
.vessel .cap span { position: absolute; right: 6px; top: 3px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.vessel .dropc { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; }
.vessel .drop { position: absolute; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--text); opacity: 0; }
.lsim-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lsim-log { list-style: none; display: grid; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; }
.lsim-log li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text-muted); animation: log-in 300ms var(--ease-out); }
.lsim-log li span { color: var(--text-faint); }
.lsim-log li.no { color: var(--text-faint); }
@keyframes log-in { from { opacity: 0; transform: translate3d(0, -4px, 0); } to { opacity: 1; transform: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bgfx > * { animation: none !important; }
  .snk-read ol li { opacity: 1; transform: none; }
}

/* ---------- hero notes (index) + chain switcher (sanctum) ---------- */
.hero-limits--2 { margin-top: 10px !important; padding-top: 0 !important; border-top: 0 !important; }
.chainsw { margin-top: 28px; display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(5,5,5,.6); }
.chainsw button { height: 34px; padding: 0 14px; border: 0; border-radius: 5px; background: none; color: var(--text-muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.chainsw button:hover { color: var(--text); }
.chainsw button[aria-pressed="true"] { background: var(--text); color: var(--accent-ink); }
@media (max-width: 767px) { .snk-hint { display: none; } }

/* ==========================================================================
   Ported Uriel panels (panels.js): withdrawal queue, watcher log, block feed
   ========================================================================== */
.panels { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .panels { grid-template-columns: minmax(0, 1fr); } }
.inst { border: 1px solid var(--line-strong); border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 90%, transparent); padding: 20px; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 13px; min-width: 0; }
.inst-head { display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.inst-head span:last-child { color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inst-lbl { display: flex; justify-content: space-between; gap: 12px; color: var(--text-faint); padding: 3px 0; }
.inst-lbl b { font-weight: 400; color: var(--text); white-space: nowrap; }
.q-list { display: grid; margin-top: 4px; }
.q-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0;
  opacity: 0; transform: translate3d(-8px, 0, 0); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.q-row.in { opacity: 1; transform: none; }
.q-row .amt { color: var(--text); white-space: nowrap; }
.q-row .to { color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-st { font-size: 12px; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 4px; white-space: nowrap; color: var(--text-muted); font-variant-numeric: tabular-nums; transition: color 200ms, border-color 200ms, background-color 200ms; }
.q-st.live { color: var(--text); border-color: var(--text); }
.q-st.neg { color: var(--negative); border-color: var(--negative-line); background: var(--negative-soft); }
.q-st.flip { animation: q-flip 420ms var(--ease-out); }
@keyframes q-flip { 0% { opacity: 0; transform: translate3d(0, -4px, 0); } 100% { opacity: 1; transform: none; } }
.q-bar { grid-column: 1 / -1; height: 2px; background: var(--line); position: relative; display: none; overflow: hidden; }
.q-row.has-bar .q-bar { display: block; }
.q-bar i { position: absolute; inset: 0; background: var(--text); transform-origin: 0 50%; transform: scaleX(0); }
.flow { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); gap: 6px; align-items: center; }
.flow .fn { border: 1px solid var(--line-strong); border-radius: 4px; padding: 10px 6px; text-align: center; min-width: 0; transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.flow .fn b { display: block; font-weight: 400; color: var(--text); font-size: 12.5px; white-space: nowrap; }
.flow .fn span { display: block; color: var(--text-faint); font-size: 11px; }
.flow .fn.on { border-color: var(--text); box-shadow: inset 0 2px 0 var(--text); }
.flow svg { width: 28px; height: 10px; color: var(--text-faint); }
.term { position: relative; display: flex; flex-direction: column; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-strong); border-radius: 8px; font-family: var(--font-mono); font-size: 13.5px; overflow: hidden; box-shadow: inset 0 2px 0 var(--text); min-width: 0; }
.term-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-faint); }
.term-head .tb { font-variant-numeric: tabular-nums; white-space: nowrap; }
.term-body { padding: 22px 20px 26px; display: grid; gap: 14px; align-content: start; min-height: 196px; }
.t-line { color: var(--text); line-height: 1.5; overflow-wrap: anywhere; min-height: 1.5em; }
.t-line.atk { color: var(--negative); }
.t-caret { display: inline-block; width: .6em; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--text); animation: t-blink 1.1s steps(1) infinite; }
@keyframes t-blink { 50% { opacity: 0; } }
@media (max-width: 767px) { .q-row { grid-template-columns: 66px minmax(0, 1fr) auto; gap: 8px; } .inst, .term { font-size: 12px; } .flow .fn b { font-size: 11.5px; } }

.bfeed { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; height: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.hero:has(.bfeed) { padding-bottom: 120px; }
.bf-label { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px; border-right: 1px solid var(--line); color: var(--text-muted); }
.bf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); animation: st-breathe 2s ease-in-out infinite; }
.bf-marquee { flex: 1 1 auto; min-width: 0; height: 100%; display: flex; overflow: hidden; align-items: center; }
.bf-track { display: flex; gap: 32px; padding-right: 32px; flex: none; animation: bf-mq 90s linear infinite; }
@keyframes bf-mq { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.bf-marquee:hover .bf-track, .motion-paused .bf-track { animation-play-state: paused; }
.bf-item { display: inline-flex; gap: 8px; white-space: nowrap; }
.bf-item b { font-weight: 400; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bf-item em { font-style: normal; }
.bf-pause { flex: none; height: 100%; padding: 0 16px; border: 0; border-left: 1px solid var(--line); background: transparent; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); cursor: pointer; }
.bf-pause:hover { color: var(--text); background: var(--surface); }
.motion-paused .pillar .pg *, .motion-paused .t-caret { animation-play-state: paused !important; }
@media (max-width: 767px) { .bf-label { padding: 0 12px; } .bf-pause { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .q-row { opacity: 1; transform: none; } .bf-track { animation: none; } }
