/* Token Ops — full-screen simulation HUD */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { scroll-behavior: auto; }
body {
  background: #02050b;
  color: var(--ink);
  font-family: var(--font-cn);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
#app { position: fixed; inset: 0; isolation: isolate; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
.grain, .vignette { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.vignette {
  background:
    radial-gradient(ellipse 78% 76% at 50% 48%, transparent 42%, rgba(1, 3, 8, 0.66) 100%),
    linear-gradient(180deg, rgba(2, 5, 11, 0.36), transparent 18%, transparent 78%, rgba(2, 5, 11, 0.45));
}
.grain {
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- labels ---------- */
.t-label {
  position: absolute; left: 0; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  border: 1px solid rgba(120, 200, 255, 0.34);
  background: rgba(3, 12, 24, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  white-space: nowrap; pointer-events: none;
  transition: opacity 0.16s linear;
}
.t-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.t-label b { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.t-label em { font-style: normal; font-size: 10px; color: var(--muted); }
.t-label.is-gold { border-color: rgba(242, 184, 114, 0.28); }
.t-label.is-gold i { background: var(--gold); box-shadow: 0 0 9px var(--gold); }
.t-label.is-green { border-color: rgba(124, 240, 168, 0.28); }
.t-label.is-green i { background: #7cf0a8; box-shadow: 0 0 9px #7cf0a8; }
.t-label.is-risk { border-color: rgba(255, 143, 107, 0.36); }
.t-label.is-risk i { background: var(--rose); box-shadow: 0 0 9px var(--rose); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  height: 64px; padding: 0 26px;
  background: linear-gradient(180deg, rgba(2, 6, 12, 0.94), rgba(2, 6, 12, 0.62) 72%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 190, 255, 0.08);
}
.topbar__brand { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.topbar__brand b { color: var(--ink); font-weight: 600; letter-spacing: 0.03em; }
.topbar__brand > span:last-child { color: var(--dim); padding-left: 9px; border-left: 1px solid var(--line-strong); }
.mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.mark i { display: block; width: 4px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 10px rgba(79, 224, 255, 0.65); }
.mark i:first-child { height: 10px; opacity: 0.6; }
.mark i:last-child { height: 16px; }
.acts { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.act {
  display: flex; align-items: baseline; gap: 7px;
  padding: 8px 12px; border-radius: 9px; color: var(--muted);
  border: 1px solid transparent; transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.act span { font-family: var(--font-en); font-size: 8px; letter-spacing: 0.14em; color: var(--dim); }
.act b { font-size: 12px; font-weight: 550; }
.act:hover { color: var(--ink); background: rgba(120, 200, 255, 0.06); }
.act.is-on { color: var(--cyan); background: rgba(1, 167, 241, 0.1); border-color: rgba(79, 224, 255, 0.22); }
.act.is-on span { color: var(--cyan); }
.topbar__actions { display: flex; gap: 6px; margin-left: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2);
  border: 1px solid var(--line); background: rgba(8, 22, 38, 0.6);
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
}
.btn:hover { border-color: var(--line-strong); background: rgba(12, 34, 56, 0.85); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  height: 48px; padding: 0 22px; color: #001622; font-size: 13px; font-weight: 650;
  border-color: transparent;
  background: linear-gradient(120deg, #8ff3ff, #4fe0ff 44%, #30c6f2);
  box-shadow: 0 10px 34px rgba(79, 224, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 44px rgba(79, 224, 255, 0.34); }
.btn--primary b { font-family: var(--font-en); font-size: 18px; font-weight: 500; }
.btn--ghost.is-on { color: var(--cyan); border-color: rgba(79, 224, 255, 0.3); background: rgba(1, 167, 241, 0.1); }

/* ---------- glass ---------- */
.rail, .readout, .act-card, .info, .cover, .endcard, .stage-strip {
  background: linear-gradient(160deg, rgba(9, 24, 42, 0.78), rgba(4, 12, 23, 0.88));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

/* ---------- rail ---------- */
.rail {
  position: fixed; left: 22px; top: 82px; width: 226px; z-index: 30;
  border-radius: 18px; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: calc(100svh - 150px); overflow: auto;
  scrollbar-width: thin; scrollbar-color: rgba(120, 200, 255, 0.22) transparent;
}
.rail__group { padding-bottom: 10px; border-bottom: 1px solid rgba(120, 190, 255, 0.08); }
.rail__group:last-of-type { border-bottom: 0; padding-bottom: 0; }
.rail__label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim);
}
.rail__label span { text-transform: none; letter-spacing: 0.04em; color: #516a82; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px; border-radius: 9px; color: var(--muted);
  border: 1px solid transparent; background: rgba(6, 18, 32, 0.5);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.seg i { font-style: normal; font-family: var(--font-en); font-size: 14px; color: var(--dim); }
.seg span { font-size: 10px; }
.seg button:hover { color: var(--ink); border-color: var(--line); }
.seg button.is-on { color: var(--cyan); border-color: rgba(79, 224, 255, 0.3); background: rgba(1, 167, 241, 0.12); }
.seg button.is-on i { color: var(--cyan); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips button {
  padding: 6px 9px; border-radius: 7px; font-size: 10px; color: var(--muted);
  border: 1px solid rgba(120, 200, 255, 0.12); background: rgba(6, 18, 32, 0.42);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.chips button:hover { color: var(--ink); border-color: var(--line-strong); }
.chips button.is-on { color: var(--cyan); border-color: rgba(79, 224, 255, 0.34); background: rgba(1, 167, 241, 0.12); }
.modes { display: grid; gap: 4px; }
.mode {
  display: flex; align-items: baseline; gap: 8px; text-align: left;
  padding: 7px 9px; border-radius: 8px; border: 1px solid transparent;
  background: rgba(6, 18, 32, 0.4); transition: border-color 0.16s, background 0.16s;
}
.mode b { font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.mode span { font-size: 9px; color: var(--dim); line-height: 1.3; }
.mode:hover { border-color: var(--line); background: rgba(10, 28, 48, 0.6); }
.mode.is-on { border-color: rgba(79, 224, 255, 0.3); background: rgba(1, 167, 241, 0.1); }
.mode.is-on b { color: var(--cyan); }
.faults { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.fault {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 7px 7px 6px; border-radius: 8px; text-align: left;
  border: 1px solid rgba(120, 200, 255, 0.1); background: rgba(6, 18, 32, 0.4);
  transition: border-color 0.16s, background 0.16s;
}
.fault i { font-style: normal; font-family: var(--font-en); font-size: 12px; color: var(--rose); }
.fault b { font-size: 10px; font-weight: 550; color: var(--ink-2); line-height: 1.2; }
.fault span { font-size: 8px; color: var(--dim); line-height: 1.35; }
.fault:hover { border-color: rgba(255, 143, 107, 0.28); }
.fault.is-on { border-color: rgba(255, 143, 107, 0.5); background: rgba(255, 143, 107, 0.09); }
.fault.is-on b { color: var(--rose); }
.rail__range label { display: flex; align-items: baseline; gap: 5px; margin: 8px 0 5px; font-size: 10px; color: var(--muted); }
.rail__range label b { font-family: var(--font-en); font-size: 14px; color: var(--cyan); font-weight: 600; }
.rail__range label span { font-size: 8px; color: var(--dim); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; border-radius: 999px; outline: none;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--brand) var(--p, 20%), rgba(120, 200, 255, 0.14) var(--p, 20%), rgba(120, 200, 255, 0.14) 100%);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #dff8ff; border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(79, 224, 255, 0.12), 0 0 14px rgba(79, 224, 255, 0.6);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #dff8ff;
  border: 2px solid var(--cyan); box-shadow: 0 0 0 4px rgba(79, 224, 255, 0.12);
}
.rail__hint { font-size: 8px; line-height: 1.6; color: #435a70; letter-spacing: 0.03em; }

/* ---------- readout ---------- */
.mobile-ctl { display: none; }
.readout {
  position: fixed; right: 22px; top: 82px; width: 356px; z-index: 30;
  border-radius: 18px; padding: 14px;
  max-height: calc(100svh - 150px); overflow: auto;
  scrollbar-width: thin; scrollbar-color: rgba(120, 200, 255, 0.22) transparent;
}
.readout__top > span { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.latency { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.latency b { font-family: var(--font-en); font-size: 54px; line-height: 0.95; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); }
.latency i { font-style: normal; font-size: 10px; color: var(--dim); }
.latency em { margin-left: auto; align-self: center; }
.sla {
  font-style: normal; font-size: 9px; padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(79, 224, 255, 0.26); color: var(--cyan); background: rgba(79, 224, 255, 0.08);
}
.sla.near { color: var(--gold); border-color: rgba(242, 184, 114, 0.3); background: rgba(242, 184, 114, 0.08); }
.sla.fail { color: var(--rose); border-color: rgba(255, 143, 107, 0.34); background: rgba(255, 143, 107, 0.08); }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; }
.minis > div { padding: 7px 8px 6px; border-radius: 8px; background: rgba(4, 12, 22, 0.4); border: 1px solid rgba(120, 200, 255, 0.08); }
.minis span { display: block; font-size: 8px; color: var(--dim); }
.minis b { font-family: var(--font-en); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.minis i { font-style: normal; font-size: 8px; color: var(--dim); margin-left: 2px; }
.minis .compliance { font-size: 10px; color: var(--cyan); }
.minis .compliance.review { color: var(--rose); }
.readout__label {
  display: flex; justify-content: space-between; margin: 12px 0 6px;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
}
.readout__label span { text-transform: none; letter-spacing: 0.03em; color: #4c657d; }
.waterfall { display: grid; gap: 3px; }
.wf { display: grid; grid-template-columns: 62px 1fr 42px; gap: 6px; align-items: center; }
.wf span { font-size: 9px; color: var(--muted); }
.wf__track { height: 4px; border-radius: 999px; background: rgba(120, 200, 255, 0.08); overflow: hidden; }
.wf__track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width 0.25s linear; }
.wf b { font-family: var(--font-en); font-size: 9px; font-weight: 500; color: var(--ink-2); text-align: right; }
.wf.is-hot .wf__track i { background: linear-gradient(90deg, #f2b872, var(--rose)); }
.wf.is-hot b { color: var(--rose); }
.verdict {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 10px;
  padding: 9px 10px; border-radius: 10px;
  border: 1px solid rgba(79, 224, 255, 0.2); background: rgba(1, 167, 241, 0.07);
}
.verdict > i { flex: none; width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.verdict b { display: block; font-size: 10px; font-weight: 600; color: var(--ink); }
.verdict span { display: block; margin-top: 2px; font-size: 9px; line-height: 1.55; color: var(--muted); }
.verdict[data-tone="warn"] { border-color: rgba(242, 184, 114, 0.28); background: rgba(242, 184, 114, 0.07); }
.verdict[data-tone="warn"] > i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.verdict[data-tone="risk"] { border-color: rgba(255, 143, 107, 0.3); background: rgba(255, 143, 107, 0.07); }
.verdict[data-tone="risk"] > i { background: var(--rose); box-shadow: 0 0 10px var(--rose); }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.log li { display: grid; grid-template-columns: 40px 1fr auto; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 6px; background: rgba(4, 12, 22, 0.34); font-size: 8px; color: var(--dim); }
.log b { font-family: var(--font-en); font-size: 10px; font-weight: 500; color: var(--ink-2); }
.log i { font-style: normal; color: var(--dim); }
.readout__foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 8px; color: var(--dim); }
.readout__foot b { font-family: var(--font-en); color: var(--ink-2); font-weight: 500; }

/* ---------- stage strip / caption ---------- */
.stage-strip {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 25; display: flex; gap: 2px; padding: 5px; border-radius: 12px;
  white-space: nowrap;
}
.stage-dot {
  display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 8px;
  color: var(--dim); font-size: 9px; transition: color 0.16s, background 0.16s;
}
.stage-dot i { font-style: normal; font-family: var(--font-en); font-size: 8px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(120, 200, 255, 0.18); }
.stage-dot:hover { color: var(--ink); background: rgba(120, 200, 255, 0.07); }
.stage-dot:hover i { color: var(--cyan); border-color: rgba(79, 224, 255, 0.4); }
.caption {
  position: fixed; left: 50%; bottom: 66px; transform: translate(-50%, 8px);
  z-index: 26; max-width: min(760px, 72vw); text-align: center;
  font-size: 12px; line-height: 1.7; color: var(--ink-2); letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.caption.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- act card ---------- */
.act-card {
  position: fixed; left: 270px; top: 96px; z-index: 22;
  width: min(560px, 38vw); padding: 18px 20px; border-radius: 16px;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.act-card.is-on { opacity: 1; transform: translateY(0); }
.act-card > div { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.act-card h1 { margin: 9px 0 0; font-size: clamp(22px, 1.9vw, 32px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
.act-card p { margin: 9px 0 0; font-size: 11px; line-height: 1.75; color: var(--muted); }

/* ---------- cover ---------- */
.cover {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(900px 700px at 74% 32%, rgba(1, 120, 200, 0.26), transparent 62%),
    radial-gradient(800px 600px at 8% 88%, rgba(1, 83, 218, 0.2), transparent 62%),
    linear-gradient(160deg, #03070e 0%, #050d19 48%, #02050b 100%);
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.cover.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.cover::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(110, 180, 240, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 180, 240, 0.06) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 78%);
}
.cover__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 4vw; align-items: center; max-width: 1480px; width: 100%; margin: 0 auto;
}
.cover__eye { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.cover__eye i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(79, 224, 255, 0.12), 0 0 18px var(--cyan); animation: blink 2.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.cover h1 { margin: 18px 0 0; font-size: clamp(54px, 7.6vw, 112px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 700; }
.cover h1 span { display: block; }
.cover h1 em { display: block; margin-top: 8px; font-style: normal; font-size: 0.42em; letter-spacing: 0; font-weight: 500; color: var(--cyan); }
.cover p { max-width: 560px; margin: 18px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.cover__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.cover__chips span { padding: 5px 9px; border-radius: 7px; border: 1px solid rgba(120, 200, 255, 0.14); background: rgba(8, 24, 40, 0.42); font-family: var(--font-en); font-size: 10px; color: var(--ink-2); }
.cover__row { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.cover__row > span { font-size: 10px; color: var(--dim); letter-spacing: 0.06em; }
.cover__orb { position: relative; width: min(36vw, 460px); aspect-ratio: 1; display: grid; place-items: center; justify-self: center; }
.orb__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(120, 220, 255, 0.16); }
.r1 { inset: 0; border-style: dashed; animation: spin 42s linear infinite; }
.r2 { inset: 15%; border-color: rgba(79, 224, 255, 0.24); animation: spin 28s linear infinite reverse; }
.r3 { inset: 29%; border-color: rgba(242, 184, 114, 0.2); animation: spin 19s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb__core {
  width: 43%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 35% 28%, rgba(143, 243, 255, 0.34), transparent 46%), radial-gradient(circle at 62% 70%, rgba(1, 83, 218, 0.42), transparent 60%), #071626;
  border: 1px solid rgba(120, 220, 255, 0.34);
  box-shadow: 0 0 0 18px rgba(79, 224, 255, 0.035), 0 0 80px rgba(1, 167, 241, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.orb__core b { font-family: var(--font-en); font-size: clamp(36px, 4vw, 62px); font-weight: 600; letter-spacing: -0.04em; }
.orb__core span { font-family: var(--font-en); font-size: 10px; letter-spacing: 0.14em; color: var(--cyan); }
.orb__pin { position: absolute; padding: 4px 9px; border-radius: 999px; font-size: 9px; color: var(--ink-2); border: 1px solid rgba(120, 220, 255, 0.22); background: rgba(5, 18, 32, 0.86); }
.orb__pin.p1 { left: 0; top: 24%; }
.orb__pin.p2 { right: 0; bottom: 22%; color: #ffd9a0; border-color: rgba(242, 184, 114, 0.3); }
.orb__line { position: absolute; inset: 11%; border-radius: 50%; border-top: 1px solid rgba(79, 224, 255, 0.6); border-right: 1px solid rgba(242, 184, 114, 0.45); filter: drop-shadow(0 0 8px rgba(79, 224, 255, 0.5)); transform: rotate(-24deg); }
.cover__foot {
  position: absolute; left: clamp(28px, 5vw, 72px); right: clamp(28px, 5vw, 72px); bottom: clamp(22px, 4vw, 48px);
  z-index: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 9px; color: var(--dim); letter-spacing: 0.06em;
}

/* ---------- info ---------- */
.info {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(860px, 92vw); transform: translateX(102%);
  transition: transform 0.45s var(--ease-out);
  display: flex; flex-direction: column; border-radius: 0;
  border-left: 1px solid var(--line);
}
.info.is-on { transform: translateX(0); }
.info__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.info__head div { display: flex; align-items: baseline; gap: 10px; }
.info__head span { font-family: var(--font-en); font-size: 8px; letter-spacing: 0.18em; color: var(--dim); }
.info__head b { font-size: 16px; font-weight: 600; }
.info__head button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 18px; }
.info__head button:hover { color: var(--ink); border-color: var(--line-strong); }
.info__tabs { display: flex; gap: 2px; padding: 10px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.info__tabs button { padding: 6px 12px; border-radius: 7px; color: var(--muted); font-size: 11px; }
.info__tabs button:hover { color: var(--ink); background: rgba(120, 200, 255, 0.06); }
.info__tabs button.is-on { color: var(--cyan); background: rgba(1, 167, 241, 0.1); }
.info__body { padding: 18px 22px 40px; overflow: auto; }
.info-grid { display: grid; gap: 8px; }
.info-grid.five { grid-template-columns: 1fr 1fr; }
.info-grid.roles { grid-template-columns: 1fr 1fr 1fr; }
.info-card { text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 14, 26, 0.45); }
button.info-card:hover { border-color: rgba(79, 224, 255, 0.3); }
.info-card > span { font-family: var(--font-en); font-size: 8px; color: var(--dim); letter-spacing: 0.14em; }
.info-card > b { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.info-card > strong { display: block; margin-top: 8px; font-family: var(--font-en); font-size: 24px; font-weight: 600; color: var(--cyan); }
.info-card > em { display: block; font-style: normal; font-size: 8px; color: var(--dim); }
.info-card ul { list-style: none; padding: 0; margin: 9px 0 0; display: grid; gap: 4px; }
.info-card li { font-size: 9px; color: var(--muted); padding-left: 10px; position: relative; }
.info-card li::before { content: "·"; position: absolute; left: 0; color: var(--cyan); }
.info-card.role p { margin: 8px 0 0; font-size: 10px; line-height: 1.7; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.tags i { font-style: normal; padding: 3px 6px; border-radius: 5px; border: 1px solid rgba(120, 200, 255, 0.12); font-size: 8px; color: var(--ink-2); }
.layer-list { display: grid; gap: 6px; }
.layer-row { display: grid; grid-template-columns: 28px 110px 1fr 130px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(4, 14, 26, 0.4); }
.layer-row > span { font-family: var(--font-en); font-size: 9px; color: var(--cyan); }
.layer-row > b { font-size: 11px; font-weight: 600; }
.layer-row > div { display: flex; flex-wrap: wrap; gap: 4px; }
.layer-row i { font-style: normal; font-size: 8px; color: var(--muted); padding: 2px 5px; border-radius: 4px; background: rgba(120, 200, 255, 0.06); }
.layer-row > strong { font-size: 9px; color: var(--gold); font-weight: 500; text-align: right; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.impact-card { padding: 14px 12px; border-radius: 10px; border: 1px solid rgba(79, 224, 255, 0.16); background: rgba(4, 14, 26, 0.45); }
.impact-card strong { display: block; font-family: var(--font-en); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.impact-card strong i { font-style: normal; font-size: 9px; color: var(--cyan); margin-left: 3px; }
.impact-card b { display: block; margin-top: 6px; font-size: 10px; font-weight: 550; color: var(--ink-2); }
.impact-card span { display: block; margin-top: 2px; font-size: 8px; color: var(--dim); }
.info-note { margin: 12px 0 0; font-size: 9px; line-height: 1.7; color: var(--dim); }
.source-list { display: grid; gap: 4px; }
.source-row { display: grid; grid-template-columns: 1.1fr 0.65fr 0.55fr 1.5fr; gap: 8px; align-items: start; padding: 7px 9px; border-radius: 7px; background: rgba(4, 14, 26, 0.36); font-size: 9px; color: var(--muted); }
.source-row b { color: var(--ink-2); font-weight: 500; }
.source-row strong { font-family: var(--font-en); color: var(--ink); font-weight: 500; }
.source-row span { font-size: 8px; color: var(--cyan); }
.source-row.is-assume span { color: var(--gold); }
.source-row p { margin: 0; font-size: 8px; color: var(--dim); }

/* ---------- end card ---------- */
.endcard {
  position: fixed; inset: 0; z-index: 75; display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: radial-gradient(800px 600px at 50% 40%, rgba(1, 90, 160, 0.28), transparent 70%), rgba(2, 5, 11, 0.72);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.endcard.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.endcard__inner { max-width: 720px; text-align: center; padding: 40px; }
.endcard__inner > span { font-size: 9px; letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; }
.endcard h2 { margin: 16px 0 0; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 650; }
.endcard p { max-width: 520px; margin: 14px auto 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.endcard__inner > div { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- fallback ---------- */
.fallback { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; justify-content: center; gap: 18px; padding: 110px 32px 120px; background: radial-gradient(900px 600px at 50% 40%, #07182a, #02050b 72%); }
.is-fallback .fallback { display: flex; }
.is-fallback #gl, .is-fallback #labels { display: none; }
.fallback__note { text-align: center; font-size: 10px; color: var(--gold); }
.fallback__map { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.fb-node { width: 104px; padding: 12px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(4, 14, 26, 0.7); text-align: center; }
.fb-node span { display: block; font-family: var(--font-en); font-size: 8px; color: var(--dim); }
.fb-node b { display: block; margin-top: 4px; font-size: 10px; color: var(--ink); }
.fb-node i { display: block; margin-top: 3px; font-style: normal; font-size: 8px; color: var(--cyan); }
.fb-node.is-gold i { color: var(--gold); }
.fb-node.is-hot i { color: var(--rose); }
.fb-arrow { color: var(--dim); font-family: var(--font-en); }
.fallback__bands { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.fallback__bands span { padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); font-size: 9px; color: var(--muted); }

/* ---------- toast / cursor / mobile ---------- */
.toast {
  position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 8px);
  z-index: 60; padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(4, 14, 26, 0.9);
  color: var(--ink-2); font-size: 10px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
#tour-cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 26px; height: 26px; pointer-events: none; opacity: 0; transition: opacity 0.3s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
#tour-cursor i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.08); }
#tour-cursor span { position: absolute; left: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
#tour-cursor.is-pulse i { animation: cursorPulse 0.55s var(--ease-out); }
@keyframes cursorPulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.mobile-kpi { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .rail { width: 204px; left: 16px; }
  .readout { width: 326px; right: 16px; }
  .act-card { left: 238px; width: min(500px, 38vw); }
  .topbar { padding: 0 18px; gap: 12px; }
  .act span { display: none; }
}
@media (max-width: 900px) {
  .topbar__brand > span:last-child { display: none; }
  .topbar__actions .btn:nth-child(3) { display: none; }
  .rail { width: 186px; top: 76px; left: 10px; }
  .readout { width: 286px; top: 76px; right: 10px; }
  .act-card { left: 208px; width: min(420px, 40vw); }
  .stage-strip { max-width: calc(100vw - 20px); overflow-x: auto; }
}
@media (max-width: 760px) {
  .topbar { height: 56px; padding: 0 12px; gap: 8px; }
  .topbar__brand { font-size: 10px; }
  .topbar__brand b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .acts { gap: 0; overflow-x: auto; max-width: 46vw; }
  .act { padding: 7px 9px; }
  .act b { font-size: 11px; }
  .topbar__actions { margin-left: auto; }
  .topbar__actions .btn { height: 30px; padding: 0 10px; font-size: 10px; }
  .topbar__actions .btn:nth-child(2) { display: none; }
  .readout { display: none; }
  .mobile-kpi {
    display: flex; align-items: baseline; gap: 4px;
    position: fixed; top: 64px; right: 12px; z-index: 35;
    padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(4, 14, 26, 0.86); backdrop-filter: blur(10px);
  }
  .mobile-kpi b { font-family: var(--font-en); font-size: 22px; font-weight: 600; }
  .mobile-kpi span { font-size: 9px; color: var(--dim); }
  .mobile-kpi i { font-style: normal; font-size: 8px; color: var(--cyan); margin-left: 4px; }
  .rail {
    left: 8px; right: 8px; bottom: 8px; top: auto; width: auto;
    max-height: 37svh; border-radius: 14px; padding: 9px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    transform: translateY(calc(100% + 20px)); transition: transform .3s ease;
  }
  html.rail-open .rail { transform: translateY(0); }
  .mobile-ctl { display: inline-flex; }
  .stage-strip { display: none; }
  .caption { display: block; bottom: 18px; max-width: calc(100vw - 32px); font-size: 11px; }
  .act-card { display: none; }
  .rail__group { padding-bottom: 6px; }
  .rail__hint { display: none; }
  .rail__group:nth-child(2) .chips { gap: 3px; }
  .rail__group:nth-child(2) .chips button { padding: 5px 7px; font-size: 9px; }
  .faults { grid-template-columns: 1fr 1fr; }
  .rail__range { grid-column: 1 / -1; }
  .stage-strip { display: none; }
  .caption { display: none; }
  .act-card { display: none; }
  .cover { padding: 24px; justify-content: flex-start; overflow-y: auto; }
  .cover__grid { grid-template-columns: 1fr; gap: 20px; margin: auto 0; }
  .cover__orb { display: none; }
  .cover h1 { font-size: clamp(46px, 14vw, 68px); }
  .cover p { font-size: 12px; }
  .cover__foot { position: static; margin-top: 30px; }
  .info { width: 100%; }
  .info-grid.five, .info-grid.roles { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .layer-row { grid-template-columns: 24px 84px 1fr; }
  .layer-row > strong { grid-column: 2 / -1; text-align: left; }
  .source-row { grid-template-columns: 1fr 0.6fr; }
  .source-row span { grid-column: 1; }
  .source-row p { grid-column: 1 / -1; }
  .fallback { padding: 80px 12px 40vh; }
  .fb-node { width: 86px; padding: 8px 6px; }
  .toast { bottom: 40svh; }
  .endcard__inner { padding: 24px; }
}
@media (max-width: 460px) {
  .topbar__actions #railToggle { font-size: 0; width: 32px; padding: 0; }
  .topbar__actions #railToggle::before { content: "☰"; font-size: 12px; }
  .acts { max-width: 42vw; }
  .rail { max-height: 40svh; }
  .rail__group:nth-child(3) .mode span { display: none; }
  .mobile-kpi { top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
