/* 链上起卦 · 赛博霓虹 CRT */
:root {
	--void: #06050c;
	--void-2: #0c0a1a;
	--panel: #09071a;
	--mag: #ff2bd6;
	--mag-hot: #ffd1f5;
	--cyan: #19f0ff;
	--acid: #b8ff2c;
	--ink: #ebe7ff;
	--dim: #a29ecb;
	--mute: #6d6996;
	--hair: rgba(25, 240, 255, .2);
	--hair-2: rgba(255, 43, 214, .26);
	--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", monospace;
	--serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
	--wk-pill-bg: rgba(8, 6, 18, .9);
	--wk-pill-fg: #ebe7ff;
	--wk-pill-line: rgba(25, 240, 255, .38);
	--wk-pill-accent: #19f0ff;
	--wk-pill-accent-fg: #06050c;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100svh; overflow-x: hidden;
	background:
		radial-gradient(1200px 700px at 8% -10%, rgba(255, 43, 214, .13), transparent 60%),
		radial-gradient(1000px 800px at 105% 110%, rgba(25, 240, 255, .10), transparent 60%),
		var(--void);
	color: var(--ink); font: 400 15px/1.65 var(--mono); letter-spacing: .01em;
	-webkit-font-smoothing: antialiased;
}
::selection { background: var(--mag); color: #fff; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ———— 背景：字符雨 + CRT 罩层 ———— */
#rain { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; opacity: .5; pointer-events: none; }
.crt { position: fixed; inset: 0; z-index: 60; pointer-events: none;
	background:
		repeating-linear-gradient(180deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.crt::after { content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 18%;
	background: linear-gradient(180deg, transparent, rgba(25, 240, 255, .05), transparent);
	animation: roll 7.5s linear infinite; }
@keyframes roll { to { transform: translateY(700%); } }

/* ———— 顶栏：节点状态 ———— */
.bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 22px; height: 46px; padding: 0 clamp(16px, 3vw, 40px);
	background: #06050c; border-bottom: 1px solid var(--hair); font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.bar b { color: var(--ink); font-weight: 600; }
.bar.is-new { animation: newblk 1.4s ease-out 1; }
@keyframes newblk { 0% { background: #2b3a14; box-shadow: 0 0 30px rgba(184, 255, 44, .35); } 100% { background: #06050c; box-shadow: none; } }
.ln__bits.is-flick { color: var(--acid); }
.bar__node { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); box-shadow: 0 0 0 3px rgba(109, 105, 150, .18); }
.dot[data-state="ok"] { background: var(--acid); box-shadow: 0 0 10px var(--acid), 0 0 0 3px rgba(184, 255, 44, .16); animation: beat 2.4s ease-in-out infinite; }
.dot[data-state="busy"] { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: beat .5s steps(2) infinite; }
.dot[data-state="off"] { background: var(--mag); box-shadow: 0 0 10px var(--mag); }
@keyframes beat { 50% { opacity: .35; } }
.bar__hash { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--mute); letter-spacing: .04em; }
.bar__hash em { font-style: normal; color: rgba(184, 255, 44, .55); }
.bar__sp { flex: 1; }
.snd { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid var(--hair); color: var(--dim); }
.snd:hover { color: var(--ink); border-color: var(--cyan); }
.snd:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.snd i { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.snd i b { width: 2px; height: 12px; background: currentColor; transform: scaleY(.33); transform-origin: bottom; }
.snd[aria-pressed="true"] { color: var(--cyan); }
.snd[aria-pressed="true"] i b { animation: eq 1s ease-in-out infinite; }
.snd[aria-pressed="true"] i b:nth-child(2) { animation-delay: -.3s; }
.snd[aria-pressed="true"] i b:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* ———— 主体网格 ———— */
.deck { position: relative; z-index: 2; display: grid; grid-template-columns: 118px minmax(0, 1fr) minmax(370px, 470px); gap: 30px;
	max-width: 1520px; margin: 0 auto; padding: 30px clamp(16px, 3vw, 40px) 40px; align-items: start; }

/* 竖排霓虹招牌 */
.sign { position: sticky; top: 76px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 6px;
	font: 900 clamp(64px, 6vw, 92px)/1.02 var(--serif); letter-spacing: 0; user-select: none; }
.sign .t { display: block; color: transparent; -webkit-text-stroke: 2px var(--mag-hot);
	filter: drop-shadow(0 0 2px rgba(255, 43, 214, .95)) drop-shadow(0 0 10px rgba(255, 43, 214, .75)) drop-shadow(0 0 26px rgba(255, 43, 214, .45)); }
.sign .t:nth-child(2) { -webkit-text-stroke-color: #c9fbff;
	filter: drop-shadow(0 0 2px rgba(25, 240, 255, .95)) drop-shadow(0 0 10px rgba(25, 240, 255, .7)) drop-shadow(0 0 26px rgba(25, 240, 255, .4)); }
.sign .t--flick { animation: tube 7s infinite steps(1); }
@keyframes tube { 0%, 61%, 63.5%, 66%, 100% { opacity: 1; } 62%, 65% { opacity: .18; } 64% { opacity: .6; } }
.sign__sub { margin-top: 18px; writing-mode: vertical-rl; font: 600 11px/1 var(--mono); letter-spacing: .32em; color: var(--mute); text-transform: none; }

/* ———— 舞台 ———— */
.stage { position: relative; min-height: calc(100svh - 122px); display: flex; flex-direction: column;
	padding: clamp(22px, 3vw, 38px) clamp(20px, 3vw, 40px) 30px; background: linear-gradient(180deg, #0d0a1c, #07060e);
	border: 1px solid var(--hair); }
.stage::before, .stage::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; }
.stage::before { left: -1px; top: -1px; border-left: 2px solid var(--mag); border-top: 2px solid var(--mag); }
.stage::after { right: -1px; bottom: -1px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }

.stage { container: stage / inline-size; }
.altar { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 48px); align-items: center; min-height: 380px; }
@container stage (max-width: 640px) {
	.altar { grid-template-columns: minmax(190px, 230px) minmax(0, 1fr); gap: 26px; }
	.name { font-size: 112px; }
	.name[data-len="2"] { font-size: 84px; }
}

/* 六爻 */
.hex { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 14px; }
.ln { display: grid; grid-template-columns: 34px minmax(0, 1fr) 52px; align-items: center; gap: 12px; height: 34px; }
.ln__pos { font-size: 12px; color: var(--mute); text-align: right; letter-spacing: 0; }
.ln__bar { position: relative; height: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ln__bar i { display: block; height: 100%; border: 1px dashed rgba(162, 158, 203, .22); }
.ln__bar i:first-child { border-right: 0; }
.ln__bar i:last-child { border-left: 0; }
.ln__bits { font-size: 12px; color: var(--mute); letter-spacing: .12em; text-align: left; }
.ln[data-v] .ln__pos { color: var(--dim); }
.ln[data-v] .ln__bar { gap: 0; }
.ln[data-v] .ln__bar i { border: 0; background: var(--cyan); box-shadow: 0 0 6px rgba(25, 240, 255, .9), 0 0 18px rgba(25, 240, 255, .45); animation: draw .38s cubic-bezier(.2, .8, .2, 1) both; }
.ln[data-v="8"] .ln__bar, .ln[data-v="6"] .ln__bar { gap: 22%; }
.ln[data-v="6"] .ln__bar i, .ln[data-v="9"] .ln__bar i { background: var(--mag); box-shadow: 0 0 6px rgba(255, 43, 214, .95), 0 0 20px rgba(255, 43, 214, .5); }
.ln[data-v] .ln__bits { color: var(--ink); letter-spacing: .02em; }
.ln__mk { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; display: none; }
.ln[data-v="9"] .ln__mk, .ln[data-v="6"] .ln__mk { display: block; }
.ln[data-v="9"] .ln__mk { border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 10px var(--mag); background: var(--void); }
.ln[data-v="6"] .ln__mk::before, .ln[data-v="6"] .ln__mk::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2.5px; margin-left: -1.25px; background: #fff; box-shadow: 0 0 8px var(--mag); transform: rotate(45deg); }
.ln[data-v="6"] .ln__mk::after { transform: rotate(-45deg); }
.ln.is-scan .ln__bar { overflow: hidden; }
.ln.is-scan .ln__bar::after { content: ""; position: absolute; inset: -6px 0; background: linear-gradient(90deg, transparent, rgba(184, 255, 44, .6), transparent); animation: sweep .3s linear both; }
.ln.is-scan .ln__bits { color: var(--acid); }
@keyframes draw { from { clip-path: inset(0 100% 0 0); filter: brightness(2.2); } to { clip-path: inset(0 0 0 0); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* 卦名区 */
.stage.is-sticky { position: sticky; top: 64px; }
.oracle { position: relative; min-width: 0; min-height: 300px; display: flex; flex-direction: column; justify-content: center; container: oracle / inline-size; }
.lead { margin: 0; max-width: 18em; font: 700 clamp(26px, 2.6vw, 38px)/1.38 var(--serif); letter-spacing: .02em; color: var(--ink);
	text-shadow: -1px 0 rgba(255, 43, 214, .7), 1px 0 rgba(25, 240, 255, .7); }
.lead__sub { margin: 18px 0 0; max-width: 30em; font-size: 13.5px; line-height: 1.85; color: var(--dim); }
.lead__sub code { color: var(--cyan); font: inherit; }

.kick { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--mute); letter-spacing: .08em; }
.kick b { font-weight: 600; color: var(--acid); letter-spacing: .02em; }
.name { position: relative; margin: 6px 0 0; font: 900 clamp(110px, 12vw, 172px)/1.04 var(--serif); letter-spacing: .02em; color: #fff7ff;
	text-shadow: 0 0 6px rgba(255, 255, 255, .55), 0 0 22px rgba(255, 43, 214, .75), 0 0 60px rgba(255, 43, 214, .45); }
.name[data-len="2"] { font-size: clamp(84px, 8.6vw, 124px); }
.name::before, .name::after { content: attr(data-text); position: absolute; left: 0; top: 0; pointer-events: none; mix-blend-mode: screen; opacity: .75; text-shadow: none; }
.name::before { color: var(--cyan); transform: translate(-3px, 0); clip-path: inset(0 0 52% 0); }
.name::after { color: var(--mag); transform: translate(3px, 0); clip-path: inset(48% 0 0 0); }
.name.is-in { animation: nameIn .7s steps(7) both; }
.name.is-in::before { animation: splitA .7s steps(7) both; }
.name.is-in::after { animation: splitB .7s steps(7) both; }
@keyframes nameIn { 0% { opacity: 0; filter: blur(6px); } 30% { opacity: 1; transform: skewX(-12deg); } 50% { transform: translateX(6px); } 70% { transform: skewX(8deg); filter: none; } 100% { transform: none; } }
@keyframes splitA { 0% { transform: translate(-22px, 0); clip-path: inset(10% 0 70% 0); } 40% { transform: translate(12px, 0); clip-path: inset(40% 0 20% 0); } 100% { transform: translate(-3px, 0); clip-path: inset(0 0 52% 0); } }
@keyframes splitB { 0% { transform: translate(22px, 0); clip-path: inset(70% 0 5% 0); } 40% { transform: translate(-14px, 0); clip-path: inset(20% 0 60% 0); } 100% { transform: translate(3px, 0); clip-path: inset(48% 0 0 0); } }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--hair); font-size: 13px; color: var(--ink); }
.tag small { font-size: 11.5px; color: var(--mute); }
.tag--m { border-color: var(--hair-2); }
.tag--a { border-color: rgba(184, 255, 44, .35); color: var(--acid); }

.to { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(162, 158, 203, .22); }
.to__arrow { font-size: 12px; color: var(--mag); letter-spacing: .1em; }
.mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 4px; width: 46px; }
.mini li { height: 5px; display: grid; grid-template-columns: 1fr 1fr; }
.mini li i { background: var(--cyan); box-shadow: 0 0 6px rgba(25, 240, 255, .6); }
.mini li.y0 { gap: 26%; }
.mini li.ch i { background: var(--mag); box-shadow: 0 0 6px rgba(255, 43, 214, .8); }
.to__name { font: 900 34px/1 var(--serif); color: #fff; text-shadow: 0 0 14px rgba(25, 240, 255, .6); }
.to__meta { min-width: 9em; font-size: 12px; color: var(--dim); line-height: 1.6; }
.to__arrow { white-space: nowrap; }
.to--none .to__name { font: 500 15px/1.6 var(--mono); color: var(--dim); text-shadow: none; }

/* 八卦环（加载） */
.ring { position: absolute; inset: 0; display: grid; place-items: center; perspective: 900px; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.stage[data-state="load"] .ring { opacity: 1; visibility: visible; transition: opacity .3s; }
.ring__tilt { transform-style: preserve-3d; transform: rotateX(-16deg) rotateZ(-6deg); }
.ring__spin { position: relative; width: 0; height: 0; transform-style: preserve-3d; }
.stage[data-state="load"] .ring__spin { animation: spin 5.2s linear infinite; }
.ring__halo { position: absolute; left: -170px; top: -170px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(25, 240, 255, .45);
	box-shadow: 0 0 22px rgba(25, 240, 255, .35), inset 0 0 22px rgba(25, 240, 255, .25); transform: rotateX(90deg); }
.ring__halo--2 { left: -132px; top: -132px; width: 264px; height: 264px; border-color: rgba(255, 43, 214, .45); box-shadow: 0 0 18px rgba(255, 43, 214, .35); transform: rotateX(90deg) translateZ(-40px); }
.tri { position: absolute; left: -30px; top: -46px; width: 60px; height: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px;
	transform: rotateY(calc(var(--i) * 45deg)) translateZ(170px); backface-visibility: visible; }
.tri ol { list-style: none; margin: 0; padding: 0; width: 54px; display: flex; flex-direction: column-reverse; gap: 6px; }
.tri li { height: 8px; display: grid; grid-template-columns: 1fr 1fr; }
.tri li.y0 { gap: 14px; }
.tri li i { background: var(--cyan); box-shadow: 0 0 8px rgba(25, 240, 255, .9); }
.tri:nth-child(odd) li i { background: var(--mag); box-shadow: 0 0 8px rgba(255, 43, 214, .9); }
.tri b { font: 900 18px/1 var(--serif); color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, .6); }
@keyframes spin { from { transform: rotateY(0); } to { transform: rotateY(-360deg); } }

/* 下半区：表单 / 进度 / 经文 */
.lower { margin-top: 26px; }
.ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.ask__label { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--dim); }
.ask__label small { font-size: 12px; color: var(--mute); }
.ask__row { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border: 1px solid var(--hair); background: rgba(3, 2, 8, .7); transition: border-color .2s, box-shadow .2s; }
.ask__row:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(25, 240, 255, .35), 0 0 24px rgba(25, 240, 255, .18); }
.ask__p { color: var(--acid); font-weight: 600; }
.ask input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 16px/1 var(--mono); caret-color: var(--acid); }
.ask input::placeholder { color: var(--mute); }
.cast { position: relative; height: 56px; min-width: 150px; padding: 0 26px; border: 1.5px solid var(--mag); background: rgba(255, 43, 214, .08); color: var(--mag-hot); cursor: pointer;
	font: 900 22px/1 var(--serif); letter-spacing: .3em; text-indent: .3em;
	text-shadow: 0 0 10px rgba(255, 43, 214, .9); box-shadow: 0 0 22px rgba(255, 43, 214, .35), inset 0 0 18px rgba(255, 43, 214, .25); transition: background .2s, transform .1s; }
.cast:hover { background: rgba(255, 43, 214, .18); animation: jit .26s steps(2) 1; }
.cast:active { transform: scale(.98); }
.cast:disabled { opacity: .45; cursor: progress; animation: none; }
.cast:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@keyframes jit { 0% { transform: translate(0); } 33% { transform: translate(-2px, 1px); text-shadow: 3px 0 var(--cyan), -3px 0 var(--mag); } 66% { transform: translate(2px, -1px); } 100% { transform: none; } }
.ask__note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; line-height: 1.7; color: var(--mute); }

.log { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.9; color: var(--dim); min-height: 120px; }
.log li { white-space: pre-wrap; overflow-wrap: anywhere; }
.log li::before { content: "› "; color: var(--acid); }
.log .ok { color: var(--acid); }
.log .warn { color: var(--mag); }
.log .hx { color: var(--cyan); }
.off { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 14px; border: 1.5px solid var(--mag); color: #fff; font-weight: 600; font-size: 14px;
	background: rgba(255, 43, 214, .14); box-shadow: 0 0 24px rgba(255, 43, 214, .3); animation: blink2 1s steps(2) 3; }
@keyframes blink2 { 50% { opacity: .35; } }

.qecho { margin: 0 0 14px; font-size: 13px; color: var(--dim); overflow-wrap: anywhere; }
.qecho b { color: var(--ink); font-weight: 600; }
.texts { display: grid; gap: 16px; }
.tx { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-top: 14px; border-top: 1px solid rgba(162, 158, 203, .14); }
.tx h3 { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--mute); letter-spacing: .1em; }
.cl { margin: 0; font: 500 19px/1.85 var(--serif); letter-spacing: .04em; color: var(--ink); }
.cl + .cl { margin-top: 6px; }
.cl b { font-weight: 700; color: var(--mag-hot); margin-right: .2em; }
.cl.is-main { position: relative; color: #fff; text-shadow: 0 0 14px rgba(255, 43, 214, .35); }
.cl.is-main::before { content: ""; position: absolute; left: -13px; top: .5em; bottom: .5em; width: 3px; background: var(--acid); box-shadow: 0 0 10px rgba(184, 255, 44, .8); }
.cl small { font: 400 12px/1.5 var(--mono); color: var(--mute); margin-left: .6em; letter-spacing: 0; }
.rule { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--dim); }
.rule b { color: var(--acid); font-weight: 600; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--hair); color: var(--ink); font-size: 13.5px; }
.btn:hover { border-color: var(--cyan); color: #fff; box-shadow: 0 0 18px rgba(25, 240, 255, .2); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn--m { border-color: var(--mag); color: var(--mag-hot); }
.btn--m:hover { border-color: var(--mag); box-shadow: 0 0 18px rgba(255, 43, 214, .3); }
.hint { margin-top: auto; padding-top: 18px; font-size: 12px; color: var(--mute); }

[hidden] { display: none !important; }
.dg { width: 15.2em; font: 600 19px/1.55 var(--mono); font-size: min(26px, calc(100cqw / 15.6)); letter-spacing: .32em; color: var(--mute); word-break: break-all; }
.dg .nb { padding: 0; }
.dg .scram { color: var(--dim); }

/* 故障转场 */
.stage.is-glitch { animation: glitch .42s steps(1) both; }
@keyframes glitch {
	0% { clip-path: inset(0 0 0 0); transform: none; filter: none; }
	12% { clip-path: inset(12% 0 58% 0); transform: translate(-10px, 0); filter: drop-shadow(4px 0 var(--mag)) drop-shadow(-4px 0 var(--cyan)); }
	24% { clip-path: inset(62% 0 8% 0); transform: translate(8px, 0); }
	36% { clip-path: inset(30% 0 40% 0); transform: translate(-4px, 0) skewX(6deg); filter: hue-rotate(80deg); }
	48% { clip-path: inset(0 0 0 0); transform: translate(3px, 0); filter: drop-shadow(-3px 0 var(--mag)) drop-shadow(3px 0 var(--cyan)); }
	60% { clip-path: inset(80% 0 0 0); transform: none; }
	72% { clip-path: inset(0 0 0 0); filter: none; transform: translate(-2px, 0); }
	100% { clip-path: inset(0 0 0 0); transform: none; filter: none; }
}

/* ———— 验算面板（区块浏览器风格） ———— */
.ledger { position: relative; background: var(--panel); border: 1px solid var(--hair); font-size: 12.5px; }
.ledger__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--hair); }
.ledger__hd h2 { margin: 0; font: 900 22px/1 var(--serif); letter-spacing: .12em; color: #fff; text-shadow: -1px 0 rgba(255, 43, 214, .8), 1px 0 rgba(25, 240, 255, .8); }
.ledger__hd p { margin: 0; font-size: 12px; color: var(--mute); }
.step { padding: 16px 20px 18px; border-bottom: 1px solid rgba(25, 240, 255, .1); }
.step:last-child { border-bottom: 0; }
.step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.step h3 span { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--cyan); color: var(--cyan); font-size: 11.5px; }
.step.is-done h3 span { background: var(--acid); border-color: var(--acid); color: var(--void); box-shadow: 0 0 12px rgba(184, 255, 44, .6); }
.step h3 em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--mute); }
.kv { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 7px 12px; margin: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.kv dd small { color: var(--mute); }
.hash { font-size: 12px; line-height: 1.6; letter-spacing: .03em; word-break: break-all; overflow-wrap: anywhere; }
.hash .z { color: rgba(184, 255, 44, .5); }
.hash .qq { color: var(--mag-hot); background: rgba(255, 43, 214, .14); }
.hash.big { font-size: 13.5px; line-height: 1.7; color: var(--dim); }
.nb { padding: 0 1px; color: var(--void); background: var(--cyan); box-shadow: 0 0 8px rgba(25, 240, 255, .6); }
.nb[data-v="6"], .nb[data-v="9"] { background: var(--mag); box-shadow: 0 0 8px rgba(255, 43, 214, .7); }
.nb.is-hot { outline: 2px solid #fff; outline-offset: 1px; }
.ph { color: var(--mute); }
.scram { color: var(--acid); }

.tbl { display: grid; grid-template-columns: 44px 30px 54px 36px minmax(0, 1fr) 38px; gap: 0; margin-top: 4px; }
.tbl > div { display: contents; }
.tbl span { padding: 6px 0; border-bottom: 1px dashed rgba(25, 240, 255, .1); white-space: nowrap; }
.tbl .th span { color: var(--mute); font-size: 11.5px; border-bottom-style: solid; }
.tbl .r span:nth-child(3) { letter-spacing: .1em; }
.tbl .r.is-hot span { color: #fff; background: rgba(25, 240, 255, .07); }
.tbl .r[data-v="6"] span:nth-child(5), .tbl .r[data-v="9"] span:nth-child(5) { color: var(--mag-hot); }
.tbl .gl { display: inline-grid !important; grid-template-columns: 1fr 1fr; width: 26px; height: 6px; padding: 0 !important; margin-top: 10px; border: 0 !important; }
.tbl .gl i { background: var(--cyan); }
.tbl .gl.y0 { gap: 6px; }
.tbl .gl.ch i { background: var(--mag); }

.dist { margin-top: 16px; }
.dist__row { position: relative; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; padding-top: 18px; }
.dist__row span { display: grid; place-items: center; height: 26px; font-size: 11px; color: rgba(255, 255, 255, .8); background: rgba(25, 240, 255, .14); border-bottom: 2px solid rgba(25, 240, 255, .55); }
.dist__row span.b6, .dist__row span.b9 { background: rgba(255, 43, 214, .16); border-bottom-color: rgba(255, 43, 214, .7); }
.dist__row span.b8 { background: rgba(25, 240, 255, .07); }
.dist__row span.is-hit { color: var(--void); background: var(--cyan); }
.dist__row span.b6.is-hit, .dist__row span.b9.is-hit { background: var(--mag); color: #fff; }
.pin { position: absolute; top: 0; font-size: 10px; line-height: 14px; color: var(--acid); transform: translateX(-50%); white-space: nowrap; }
.dist__lg { display: grid; grid-template-columns: 1fr 5fr 7fr 3fr; gap: 3px; margin-top: 6px; font-size: 11px; color: var(--dim); text-align: center; line-height: 1.4; }
.dist__lg b { display: block; font-weight: 600; color: var(--ink); }
.dist__lg div:first-child b, .dist__lg div:last-child b { color: var(--mag-hot); }
.dist__note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.75; color: var(--mute); }

.cmd { position: relative; margin: 0 0 10px; padding: 10px 12px; padding-right: 64px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(25, 240, 255, .14); font: 400 11.5px/1.6 var(--mono); color: var(--acid); white-space: pre-wrap; word-break: break-all; }
.cmd .c { color: var(--mute); }
.copy { all: unset; cursor: pointer; position: absolute; right: 6px; top: 6px; padding: 2px 8px; font-size: 11px; color: var(--cyan); border: 1px solid var(--hair); background: var(--void); }
.copy:hover { color: #fff; border-color: var(--cyan); }
.copy:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.copy.is-ok { color: var(--acid); border-color: var(--acid); }
.lnk { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.muted { color: var(--mute); }

/* ———— 页脚 ———— */
.foot { position: relative; z-index: 2; max-width: 1520px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 40px) 96px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12px; color: var(--mute); border-top: 1px solid rgba(25, 240, 255, .1); }
.foot strong { color: var(--ink); font-weight: 600; }
.foot a { color: var(--dim); }

/* ———— 响应式 ———— */
@media (max-width: 1180px) {
	.deck { grid-template-columns: 96px minmax(0, 1fr); }
	.ledger { grid-column: 2; }
	.stage { position: relative; top: auto; min-height: 0; }
	.sign { font-size: 64px; }
}
@media (max-width: 760px) {
	body { font-size: 14px; }
	.bar { gap: 10px; height: 42px; font-size: 11.5px; padding: 0 12px; }
	.bar__hash, #node { display: none; }
	.bar > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
	.snd { padding: 0 9px; }
	.stage[data-state="idle"] .hex { display: none; }
	.deck { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
	.ledger { grid-column: auto; }
	.sign { position: relative; top: auto; flex-direction: row; justify-content: flex-start; gap: 4px; padding: 0; font-size: clamp(54px, 17vw, 74px); }
	.sign__sub { display: none; }
	.stage { padding: 20px 16px 22px; }
	.altar { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 22px; }
	.hex { gap: 9px; }
	.ln { height: 24px; grid-template-columns: 30px minmax(0, 1fr) 46px; gap: 10px; }
	.ln__bar { height: 12px; }
	.ln__mk { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
	.oracle { min-height: 0; }
	.stage[data-state="load"] .oracle { min-height: 280px; }
	.lead { font-size: 25px; }
	.name { font-size: 104px; }
	.name[data-len="2"] { font-size: 82px; }
	.ask { grid-template-columns: minmax(0, 1fr); }
	.cast { width: 100%; }
	.tx { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.cl { font-size: 17.5px; }
	.ring__spin { transform: scale(.78); }
	.step { padding: 14px 16px 16px; }
	.ledger__hd { padding: 16px; }
	.tbl { grid-template-columns: 40px 26px 50px 30px minmax(0, 1fr) 30px; font-size: 11.5px; }
	.foot { padding-bottom: 84px; }
}
@media (max-width: 760px) and (min-width: 520px) {
	.altar { grid-template-columns: 220px minmax(0, 1fr); }
}

/* 安静版本 */
@media (prefers-reduced-motion: reduce) {
	.crt::after, .sign .t--flick, .dot[data-state], .snd[aria-pressed="true"] i b { animation: none !important; }
	.ring__spin { animation-duration: 40s; }
	.stage.is-glitch, .name.is-in, .name.is-in::before, .name.is-in::after, .cast:hover, .off { animation: none !important; }
	.ln[data-v] .ln__bar i { animation: none; }
	.ln.is-scan .ln__bar { overflow: hidden; }
.ln.is-scan .ln__bar::after { display: none; }
}
html.rm .crt::after, html.rm .sign .t--flick { animation: none; }
