:root {
  --bg: #03050a;
  --bg2: #070b14;
  --panel: rgba(10, 15, 26, 0.72);
  --panel-solid: #0b111d;
  --line: rgba(140, 170, 220, 0.14);
  --line2: rgba(140, 170, 220, 0.26);
  --text: #e8eefb;
  --dim: #8c9ab3;
  --faint: #56627a;
  --acc: #3d8bff;
  --acc2: #6fe3ff;
  --acc-rgb: 61, 139, 255;
  --ok: #4dffb5;
  --bad: #ff3d5e;
  --display: "Chakra Petch", "Rajdhani", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html[data-mode="molten"] { --acc: #ff6a1f; --acc2: #ffc46b; --acc-rgb: 255, 106, 31; }
html[data-mode="blueprint"] { --acc: #7cc0ff; --acc2: #e8f4ff; --acc-rgb: 124, 192, 255; --bg: #06142b; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .6s;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }
code { font-family: var(--mono); font-size: .88em; color: var(--acc2); }
.acc { color: var(--acc); text-shadow: 0 0 28px rgba(var(--acc-rgb), .45); transition: color .6s; }
::selection { background: rgba(var(--acc-rgb), .4); }

#stage { position: relative; height: calc(100vh + 8 * 88vh); }
.sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 14%, transparent 78%, rgba(0,0,0,.6) 100%);
}
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.lbl {
  position: absolute; left: 0; top: 0; will-change: transform;
  display: flex; align-items: center; gap: 7px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
  opacity: 0; transition: opacity .35s;
}
.lbl.on { opacity: 1; }
.lbl > i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 10px var(--acc2), 0 0 0 3px rgba(var(--acc-rgb), .2); flex: none; margin-left: -3.5px; }
.lbl > span { padding: 5px 8px; border-radius: 6px; background: rgba(6, 10, 18, .78); border: 1px solid var(--line2); backdrop-filter: blur(6px); }
.lbl.tag { pointer-events: auto; cursor: pointer; }
.lbl.tag > span { font-size: 11px; padding: 6px 10px; }
.lbl.tag b { color: var(--acc2); margin-right: 6px; font-weight: 500; }
.lbl.tag.active > span { border-color: var(--acc); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .35), 0 0 24px rgba(var(--acc-rgb), .35); }
.lbl.tag:hover > span, .lbl.tag.hover > span { border-color: var(--acc2); color: #fff; }
.lbl.chip > span { color: var(--acc2); border-color: rgba(var(--acc-rgb), .45); }
.lbl.bad > i { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.lbl.bad > span { color: #ffd0d8; border-color: rgba(255, 61, 94, .6); }
.lbl.good > i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.lbl.good > span { color: #d4ffee; border-color: rgba(77, 255, 181, .55); }
.lbl.big > span { font-size: 13px; padding: 8px 12px; letter-spacing: .12em; }

.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 8px; box-shadow: 0 0 18px rgba(var(--acc-rgb), .35); }
.wordmark { font: 700 19px/1 var(--display); letter-spacing: .08em; color: var(--acc); transition: color .6s; }
.wordmark b { color: #eef3ff; font-weight: 700; }
.brand em { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .1em; padding: 4px 6px; border-radius: 5px; border: 1px solid var(--line2); color: var(--dim); }
.seg, .tools { display: flex; gap: 6px; align-items: center; }
.seg { padding: 4px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.seg button {
  border: 0; background: transparent; padding: 7px 12px; border-radius: 7px;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
  transition: background .25s, color .25s;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--acc); color: #04070d; }
.tool {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 9px 12px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line);
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
  backdrop-filter: blur(10px); transition: border-color .25s, color .25s, background .25s;
}
.tool:hover { color: var(--text); border-color: var(--line2); }
.tool .sw { width: 22px; height: 12px; border-radius: 12px; background: rgba(255,255,255,.12); position: relative; transition: background .25s; }
.tool .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); transition: transform .25s var(--ease), background .25s; }
.tool[aria-pressed="true"] { color: var(--text); border-color: rgba(var(--acc-rgb), .6); }
.tool[aria-pressed="true"] .sw { background: rgba(var(--acc-rgb), .5); }
.tool[aria-pressed="true"] .sw::after { transform: translateX(10px); background: #fff; }
.tool.warn[aria-pressed="true"] { border-color: rgba(255, 61, 94, .7); color: #ffd0d8; }
.tool.warn[aria-pressed="true"] .sw { background: rgba(255, 61, 94, .6); }
.tool .play { color: var(--acc2); font-size: 10px; }
.tool.ghost { background: transparent; }
.tool.menu { display: none; }

.hero {
  position: absolute; left: clamp(20px, 6vw, 96px); bottom: clamp(120px, 20vh, 220px); z-index: 4;
  max-width: 620px; transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; left: -40vw; top: -30vh; width: calc(100% + 60vw); height: calc(100% + 50vh);
  background: radial-gradient(closest-side, rgba(3, 5, 10, .78), rgba(3, 5, 10, .4) 55%, transparent);
  pointer-events: none;
}
.hero.hide { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--acc2); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 12px var(--acc2); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 { margin: 14px 0 10px; font: 700 clamp(56px, 10vw, 132px)/.86 var(--display); letter-spacing: .02em; }
.h-gpu { color: #f1f5ff; }
.h-forge { color: var(--acc); text-shadow: 0 0 40px rgba(var(--acc-rgb), .55); transition: color .6s; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: #c2cde2; max-width: 520px; margin: 0 0 26px; }
.lede em { font-style: normal; color: var(--acc2); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 13px 20px; border-radius: 11px; border: 1px solid var(--line2);
  background: rgba(10, 16, 28, .6); backdrop-filter: blur(8px);
  font: 600 14px/1 var(--body); color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--acc); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #03060c; box-shadow: 0 8px 30px rgba(var(--acc-rgb), .35); }
.btn.primary:hover { box-shadow: 0 10px 40px rgba(var(--acc-rgb), .55); }
.btn.sm { padding: 9px 13px; font-size: 13px; border-radius: 9px; }
.btn.ghost { background: transparent; }
.btn code { color: inherit; }
.hero-meta { display: flex; gap: 18px; margin-top: 28px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); flex-wrap: wrap; }
.hero-meta b { color: var(--acc); font-weight: 500; margin-right: 4px; }

.caption {
  position: absolute; z-index: 4; left: 20px; top: 84px; width: min(390px, calc(100vw - 40px));
  padding: 22px 22px 18px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  opacity: 0; transform: translateX(-20px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.caption.show { opacity: 1; transform: none; pointer-events: auto; }
.caption.swap > *:not(.cap-kicker) { opacity: 0; transform: translateY(6px); }
.caption > * { transition: opacity .25s, transform .25s; }
.caption::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--acc), transparent); border-radius: 2px; }
.cap-kicker { display: flex; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc2); }
.cap-kicker .sep { color: var(--faint); }
.caption h2 { margin: 10px 0 8px; font: 700 30px/1.02 var(--display); letter-spacing: .01em; }
.caption p { margin: 0 0 14px; color: #b7c3d9; font-size: 14.5px; line-height: 1.6; }
.caption p code { font-size: .85em; }
.cap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cap-stats:empty { display: none; }
.stat { padding: 9px 10px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.stat span { display: block; font: 500 9.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.stat b { display: block; margin-top: 5px; font: 600 14px/1.1 var(--display); color: var(--text); letter-spacing: .02em; }
.stat.bad b { color: var(--bad); }
.cap-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cap-checks:empty { display: none; }
.cap-checks li { display: flex; align-items: center; gap: 10px; font: 500 12px/1.3 var(--mono); color: var(--faint); padding: 5px 8px; border-radius: 7px; transition: color .25s, background .25s; }
.cap-checks li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line2); flex: none; transition: all .25s; }
.cap-checks li.ok { color: var(--text); background: rgba(var(--acc-rgb), .08); }
.cap-checks li.ok::before { background: var(--acc2); border-color: var(--acc2); box-shadow: 0 0 10px var(--acc2); }
.cap-checks li.bad { color: #ffc2cd; background: rgba(255, 61, 94, .1); }
.cap-checks li.bad::before { background: var(--bad); border-color: var(--bad); box-shadow: 0 0 10px var(--bad); }
.cap-log { margin-top: 12px; padding: 9px 10px; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font-size: 11px; color: var(--acc2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-log:empty { display: none; }
.cap-log.bad { color: var(--bad); }

.scroll-hint { position: absolute; z-index: 4; left: 50%; bottom: 128px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: opacity .5s; white-space: nowrap; }
.scroll-hint.hide { opacity: 0; }
.mouse { width: 18px; height: 28px; border-radius: 10px; border: 1.5px solid var(--dim); position: relative; }
.mouse i { position: absolute; left: 50%; top: 5px; width: 2px; height: 6px; margin-left: -1px; border-radius: 2px; background: var(--acc2); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }

.timeline {
  position: absolute; z-index: 5; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(1040px, calc(100vw - 32px)); padding: 10px 10px 8px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px);
}
.tl-bar { position: relative; height: 2px; margin: 0 6px 8px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.tl-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc2)); box-shadow: 0 0 12px var(--acc); }
.tl-steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.tl-step {
  border: 1px solid transparent; background: transparent; border-radius: 9px; padding: 8px 8px 7px; text-align: left;
  display: flex; flex-direction: column; gap: 3px; transition: background .25s, border-color .25s;
  position: relative; min-width: 0;
}
.tl-step:hover { background: rgba(255,255,255,.04); }
.tl-step .n { font: 500 10px/1 var(--mono); color: var(--faint); letter-spacing: .1em; }
.tl-step .t { font: 600 13px/1.1 var(--display); color: var(--dim); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-step.done .n { color: var(--acc); }
.tl-step.on { background: rgba(var(--acc-rgb), .12); border-color: rgba(var(--acc-rgb), .45); }
.tl-step.on .t { color: var(--text); }
.tl-step.on .n { color: var(--acc2); }
.tl-step.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--acc2); box-shadow: 0 0 10px var(--acc2); border-radius: 2px; }

.docnav {
  position: fixed; z-index: 20; top: 12px; left: 50%; transform: translate(-50%, -140%);
  display: flex; align-items: center; gap: 22px; padding: 8px 10px 8px 14px; border-radius: 14px;
  background: rgba(8, 12, 22, .78); border: 1px solid var(--line); backdrop-filter: blur(14px);
  transition: transform .5s var(--ease); width: max-content; max-width: calc(100vw - 24px);
}
.docnav.show { transform: translate(-50%, 0); }
.brand.sm .wordmark { font-size: 15px; }
.docnav .links { display: flex; gap: 2px; }
.docnav .links a, .docnav .back { text-decoration: none; font: 500 12.5px/1 var(--body); color: var(--dim); padding: 8px 10px; border-radius: 8px; transition: color .2s, background .2s; white-space: nowrap; }
.docnav .links a:hover, .docnav .links a.on { color: var(--text); background: rgba(255,255,255,.05); }
.docnav .back { color: var(--acc2); border: 1px solid var(--line2); }

main { position: relative; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 30%, var(--bg) 100%); transition: background .6s; }
main::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 50% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 50% at 50% 30%, #000 0%, transparent 80%);
}
.wrap { position: relative; width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.sec { padding: clamp(80px, 12vw, 150px) 0; position: relative; scroll-margin-top: 40px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.eyebrow { display: inline-block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc2); margin-bottom: 16px; }
.sec h2 { margin: 0 0 16px; font: 700 clamp(34px, 5vw, 60px)/1.02 var(--display); letter-spacing: .005em; }
.sub { margin: 0; font-size: clamp(16px, 1.5vw, 18px); color: #aebad0; max-width: 700px; }
.note { font-size: 12.5px; color: var(--faint); margin: 12px 0 0; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role {
  position: relative; padding: 28px 26px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease);
}
.role:nth-child(2) { transition-delay: .08s; }
.role:nth-child(3) { transition-delay: .16s; }
.role::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(var(--acc-rgb), .16), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.role:hover { border-color: rgba(var(--acc-rgb), .45); transform: translateY(-4px); }
.role:hover::after { opacity: 1; }
.role-ico { width: 56px; height: 56px; margin-bottom: 20px; }
.role-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.role-ico .hl { stroke: var(--acc2); filter: drop-shadow(0 0 6px var(--acc)); }
.role-n { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.role h3 { margin: 6px 0 10px; font: 700 23px/1.15 var(--display); }
.role p { margin: 0 0 18px; color: #a7b3c9; font-size: 15px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 11px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line2); color: var(--dim); }
.numbers { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.numbers > div { padding: 26px 24px; border-right: 1px solid var(--line); }
.numbers > div:last-child { border-right: 0; }
.numbers b { display: block; font: 700 48px/1 var(--display); color: var(--text); }
.numbers b small { font-size: 18px; color: var(--acc); margin-left: 4px; }
.numbers span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--dim); }

.console { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.console-left, .console-right { min-width: 0; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 20px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; font-size: 11px; }
.presets span { color: var(--faint); letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; }
.presets button, .tier-sel button { border: 1px solid var(--line2); background: transparent; padding: 7px 10px; border-radius: 8px; font: 500 11.5px/1 var(--mono); color: var(--dim); transition: all .2s; }
.presets button:hover, .tier-sel button:hover { color: var(--text); }
.presets button.on, .tier-sel button.on { background: rgba(var(--acc-rgb), .16); border-color: var(--acc); color: var(--text); }
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.layer {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  padding: 12px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(0,0,0,.2);
  transition: border-color .25s, background .25s, opacity .25s;
}
.layer:hover { border-color: var(--line2); }
.layer .sw { width: 30px; height: 17px; border-radius: 10px; background: rgba(255,255,255,.12); position: relative; flex: none; margin-top: 2px; transition: background .25s; }
.layer .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--dim); transition: transform .25s var(--ease), background .25s; }
.layer.on { border-color: rgba(var(--acc-rgb), .35); background: rgba(var(--acc-rgb), .06); }
.layer.on .sw { background: var(--acc); }
.layer.on .sw::after { transform: translateX(13px); background: #fff; }
.layer b { display: block; font: 600 14px/1.25 var(--body); color: var(--text); }
.layer small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--dim); }
.layer .req { font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-left: 6px; }
.layer.miss { border-color: rgba(255, 61, 94, .45); background: rgba(255, 61, 94, .05); }
.console-right { display: flex; flex-direction: column; align-items: stretch; }
.verdict { position: relative; width: 190px; height: 190px; margin: 6px auto 14px; }
.gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 7; }
.g-bg { stroke: rgba(255,255,255,.07); }
.g-fg { stroke: var(--acc2); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease), stroke .3s; filter: drop-shadow(0 0 6px var(--acc)); }
.verdict.fail .g-fg { stroke: var(--bad); filter: drop-shadow(0 0 6px var(--bad)); }
.v-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.v-label { font-size: 12px; letter-spacing: .18em; color: var(--ok); }
.verdict.fail .v-label { color: var(--bad); }
.v-tier { font: 700 34px/1 var(--display); }
.verdict.pulse { animation: vpulse .5s var(--ease); }
@keyframes vpulse { 40% { transform: scale(1.05); } }
.tier-sel { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 11px; color: var(--faint); margin-bottom: 14px; }
.tier-sel span { margin-right: 6px; }
.receipt { margin: 0; padding: 14px; border-radius: 11px; background: rgba(0,0,0,.4); border: 1px solid var(--line); font-size: 12px; line-height: 1.65; color: #b9c6dd; overflow: auto; white-space: pre; flex: 1; }
.receipt .k { color: var(--dim); }
.receipt .s { color: var(--acc2); }
.receipt .t { color: var(--ok); }
.receipt .f { color: var(--bad); }
.tiers { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { display: flex; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); }
.tier-badge { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font: 700 20px/1 var(--display); color: #03060c; background: var(--acc2); box-shadow: 0 0 22px rgba(var(--acc-rgb), .5); }
.tier.off .tier-badge { background: transparent; border: 1px dashed var(--faint); color: var(--faint); box-shadow: none; }
.tier h4 { margin: 0 0 4px; font: 700 17px/1.2 var(--display); }
.tier p { margin: 0; font-size: 13.5px; color: var(--dim); }
.tier em { color: var(--acc2); font-style: normal; }

.lab { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
.lab-form, .lab-out { border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 20px; }
.lab-form label { display: block; margin-bottom: 12px; }
.lab-form label > span { display: block; font-size: 11px; color: var(--dim); margin-bottom: 6px; letter-spacing: .04em; }
.lab-form input, .lab-form select {
  width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(0,0,0,.35);
  font: 400 13px/1.2 var(--mono); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
.lab-form input:focus, .lab-form select:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .18); }
.lab-form input.err { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 61, 94, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.blk { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12px; font-size: 11px; color: var(--dim); }
.blk b { font-size: 18px; color: var(--acc2); font-weight: 500; margin-top: 6px; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.miner-verdict { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(77, 255, 181, .4); background: rgba(77, 255, 181, .06); margin-bottom: 14px; transition: all .3s; }
.miner-verdict b { font: 700 16px/1 var(--display); letter-spacing: .1em; color: var(--ok); }
.miner-verdict span:last-child { font-size: 13px; color: var(--dim); }
.mv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); flex: none; }
.miner-verdict.bad { border-color: rgba(255, 61, 94, .5); background: rgba(255, 61, 94, .08); }
.miner-verdict.bad b { color: var(--bad); }
.miner-verdict.bad .mv-dot { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.miner-verdict.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.bytes { padding: 14px; border-radius: 11px; background: rgba(0,0,0,.45); border: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: #8d9ab2; word-break: break-all; max-height: 250px; overflow: auto; }
.bytes .k { color: #c6d2e8; }
.bytes .v { color: var(--acc2); }
.bytes .chg { background: rgba(255, 61, 94, .22); color: #ffd1d9; border-radius: 3px; }
.digests { margin-top: 12px; display: grid; gap: 6px; font-size: 11.5px; }
.digests div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: baseline; }
.digests span { color: var(--faint); }
.digests code { word-break: break-all; color: #c6d2e8; font-size: 11.5px; }
.digests code .x { color: var(--bad); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.shields { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 6px; }
.shields li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); cursor: default; transition: border-color .25s, background .25s; }
.shields li b { font: 600 14px/1.3 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--acc2); }
.shields li span { font-size: 13.5px; color: var(--dim); }
.shields li.on { border-color: rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .07); }
.refused { margin-top: 22px; }
.refused > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips s { font: 500 12px/1 var(--mono); padding: 7px 9px; border-radius: 7px; border: 1px solid rgba(255, 61, 94, .35); color: #ff9aac; text-decoration-color: rgba(255, 61, 94, .8); background: rgba(255, 61, 94, .05); }
.shield-wrap { aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
#shieldCanvas { width: 100%; height: 100%; display: block; }

.msgs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.msgs::before { content: ""; position: absolute; left: 4%; right: 4%; top: 30px; height: 1px; background: repeating-linear-gradient(90deg, var(--acc) 0 6px, transparent 6px 14px); opacity: .5; animation: dash 1.2s linear infinite; background-size: 28px 1px; }
@keyframes dash { to { background-position: 28px 0; } }
.msg { position: relative; padding: 50px 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(8, 12, 22, .9); transition: border-color .3s, transform .4s var(--ease); }
.msg::before { content: ""; position: absolute; left: 16px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--acc); box-shadow: 0 0 12px var(--acc); }
.msg:hover { border-color: rgba(var(--acc-rgb), .5); transform: translateY(-4px); }
.msg .who { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.msg h4 { margin: 6px 0 6px; font: 700 18px/1.15 var(--display); word-break: break-word; }
.msg p { margin: 0 0 12px; font-size: 13.5px; color: var(--dim); }
.msg code { display: block; font-size: 11px; line-height: 1.6; color: var(--acc2); opacity: .85; }

.status { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.status .col { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.status h4 { margin: 0 0 16px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc2); font-weight: 500; }
.status ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.status li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: #c6d0e2; }
.done li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; color: #03060c; background: var(--acc2); }
.todo li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1px dashed var(--faint); }
.warnbox { margin-top: 22px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 180, 60, .35); background: rgba(255, 180, 60, .06); font-size: 14px; color: #e9d7b5; }
.warnbox b { color: #ffd28a; }

.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; background: var(--bg); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 10px; }
.foot-brand small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--faint); }
.foot-links { display: flex; gap: 22px; font-size: 12.5px; }
.foot-links a { text-decoration: none; color: var(--dim); }
.foot-links a:hover { color: var(--acc2); }
.foot-note { flex-basis: 100%; margin: 8px 0 0; font-size: 12px; color: var(--faint); }

.nogl { display: none; }
body.no-webgl .nogl { display: flex; position: absolute; inset: 0; height: 100vh; z-index: 1; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; color: var(--dim); padding: 20px; }
body.no-webgl .nogl img { width: min(320px, 60vw); border-radius: 50%; }
body.no-webgl #stage { height: 100vh; }
body.no-webgl .timeline, body.no-webgl .caption, body.no-webgl .scroll-hint, body.no-webgl .seg, body.no-webgl .tools, body.no-webgl .hero { display: none; }

@media (max-width: 1100px) {
  .tools .tool.ghost { display: none; }
  .msgs { grid-template-columns: repeat(3, 1fr); }
  .msgs::before { display: none; }
}
@media (max-width: 900px) {
  .roles, .tiers { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers > div:nth-child(2) { border-right: 0; }
  .numbers > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .console, .lab, .split, .status { grid-template-columns: 1fr; }
  .docnav .links { display: none; }
  .seg { display: none; }
  .tool.menu { display: inline-flex; }
  .tools { position: absolute; top: 62px; right: 16px; flex-direction: column; align-items: stretch; padding: 8px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(-6px); transition: all .25s; }
  .tools.open { opacity: 1; pointer-events: auto; transform: none; }
  .tools .tool.ghost { display: inline-flex; }
}
@media (max-width: 720px) {
  #stage { height: calc(100svh + 8 * 80svh); }
  .topbar { padding: 12px 14px; }
  .brand em { display: none; }
  .hero { left: 16px; right: 16px; bottom: 120px; }
  .hero-meta { display: none; }
  .caption { top: auto; bottom: 88px; left: 12px; right: 12px; width: auto; padding: 16px 16px 14px; max-height: 44svh; overflow: auto; }
  .caption h2 { font-size: 23px; margin: 6px 0 6px; }
  .caption p { font-size: 13.5px; margin-bottom: 10px; }
  .cap-log { display: none; }
  .cap-checks { grid-template-columns: 1fr 1fr; }
  .cap-checks li { font-size: 10.5px; padding: 3px 5px; gap: 6px; }
  .stat b { font-size: 12.5px; }
  .timeline { bottom: 10px; padding: 8px 6px 6px; }
  .tl-step { padding: 6px 2px; align-items: center; }
  .tl-step .t { display: none; }
  .tl-step .n { font-size: 11px; }
  .scroll-hint { bottom: 70px; font-size: 9.5px; }
  .lbl.chip { display: none; }
  .lbl { font-size: 9.5px; }
  .layers { grid-template-columns: 1fr; }
  .msgs { grid-template-columns: 1fr; }
  .shields li { grid-template-columns: 1fr; gap: 2px; }
  .digests div { grid-template-columns: 1fr; gap: 2px; }
  .row2 { grid-template-columns: 1fr; }
  .blk { padding-bottom: 0; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
