:root {
  --bg: #02050a;
  --text: #eef7ff;
  --muted: rgba(226, 239, 255, 0.68);
  --accent: #6fb7d8;
  --accent2: #b7d8ff;
  --panel: rgba(4, 12, 20, 0.72);
  --line: rgba(146, 207, 255, 0.34);
  --particle: rgba(114, 183, 220, 0.62);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  cursor: none;
}

button {
  border: 0;
}

.particle-canvas {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 8;
  pointer-events: none;
  mix-blend-mode: screen;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 52px;
  height: 52px;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  will-change: transform;
  border: 0;
  border-radius: 0;
  background: url("assets/ui/cursor.png") center / contain no-repeat;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 8px #eafaff) drop-shadow(0 0 18px var(--accent));
}

.custom-cursor::before,
.custom-cursor::after {
  content: none;
}

.custom-cursor::before {
  left: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.custom-cursor::after {
  left: 50%;
  top: -6px;
  width: 1px;
  height: 50px;
  transform: translateX(-50%);
  border-width: 0;
  background: linear-gradient(transparent, rgba(220, 248, 255, 0.42), transparent);
}

.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  isolation: isolate;
  overflow: hidden;
  background: #000;
}

.deck::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: #000;
  opacity: 0;
  transition: opacity 620ms ease;
}

.is-page-fade-out .deck::after {
  opacity: 1;
  transition-duration: 430ms;
}

.is-page-fade-in .deck::after {
  opacity: 0;
  transition-duration: 620ms;
}

.page {
  position: absolute;
  inset: 0;
  isolation: isolate;
  z-index: 0;
  display: grid;
  padding: clamp(32px, 5.6vw, 88px);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: #000;
  transform: translateY(18px) scale(1.01);
  transition: opacity 920ms ease, transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page:not(.is-active) * {
  pointer-events: none !important;
  animation-play-state: paused !important;
}

.page:not(.is-active) {
  visibility: hidden;
  content-visibility: hidden;
}

.page.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  content-visibility: visible;
  transform: translateY(0) scale(1);
}

.page-number {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 19;
  transform: translateX(-50%);
  color: rgba(226, 239, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(111, 183, 216, 0.42);
  pointer-events: none;
}

.page::before { content: none; }

.media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transform: none;
}

.poster-page .media img,
.poster-page .media video {
  opacity: 1;
}

.media.fit-contain img,
.media.fit-contain video {
  object-fit: contain;
  padding: min(12vw, 120px);
  opacity: 0.96;
}

.scenes-page > .media,
.anomalies-page > .media {
  display: none;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.64) 74%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 44%, rgba(0, 0, 0, 0.42));
}

.poster-page .media::after {
  content: none;
}

.is-poster-active .particle-canvas {
  display: none;
}

.content {
  position: relative;
  z-index: 2;
  width: min(980px, 86vw);
  align-self: center;
  justify-self: center;
}

.content.balanced {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: end;
}

.content.balanced .eyebrow,
.content.balanced h2,
.content.balanced .subtitle {
  grid-column: 1;
}

.content.balanced .copy,
.content.balanced .tag-row {
  grid-column: 2;
}

.content.wide {
  width: min(1180px, 90vw);
}

.eyebrow,
.subtitle,
.copy,
.tag-row,
.content,
.network-copy,
.card-grid,
.timeline-wrap,
.network-3d,
.scene-layout,
.anomaly-layout,
.gallery,
.pdf-ref-layout,
.pdf-synopsis-layout,
.pdf-commercial-layout,
.visual-copy {
  opacity: 0;
  transform: translateY(16px);
}

.is-active .eyebrow,
.is-active .subtitle,
.is-active .copy,
.is-active .tag-row,
.is-active .content,
.is-active .network-copy,
.is-active .card-grid,
.is-active .timeline-wrap,
.is-active .network-3d,
.is-active .scene-layout,
.is-active .anomaly-layout,
.is-active .gallery,
.is-active .pdf-ref-layout,
.is-active .pdf-synopsis-layout,
.is-active .pdf-commercial-layout,
.is-active .visual-copy {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 980ms ease 220ms, transform 1080ms cubic-bezier(0.16, 1, 0.3, 1) 220ms;
}

.is-active .subtitle { transition-delay: 120ms; }
.is-active .copy { transition-delay: 240ms; }
.is-active .tag-row,
.is-active .card-grid,
.is-active .timeline-wrap,
.is-active .network-3d,
.is-active .scene-layout,
.is-active .anomaly-layout,
.is-active .gallery { transition-delay: 360ms; }

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 12px 0 16px;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(118, 188, 230, 0.2);
}

h1,
h2,
h3,
p,
.subtitle,
.eyebrow,
.tag,
.scene-row,
.character-name,
.toc-list button,
.branch-nav button {
  transition: filter 220ms ease;
}

.local-glow {
  background-image:
    radial-gradient(circle 86px at var(--glow-x, -100px) var(--glow-y, -100px), #fff 0%, #dff7ff 22%, currentColor 58%),
    linear-gradient(currentColor, currentColor);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 7px rgba(142, 220, 255, 0.28));
}

h1 {
  font-size: clamp(48px, 8vw, 120px);
}

h2 {
  font-size: clamp(34px, 5.4vw, 76px);
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 34px);
}

.subtitle {
  color: var(--accent2);
  font-size: clamp(16px, 2vw, 23px);
}

.copy,
.info-card p,
.scene-doc p,
.anomaly-panel p,
.network-panel p,
.network-panel li {
  color: var(--muted);
  font-size: clamp(15px, 1.42vw, 19px);
  line-height: 1.82;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  color: var(--text);
  padding: 0;
  font-size: 13px;
}

.tag::before {
  content: "◇";
  color: var(--accent);
  margin-right: 6px;
}

.poster {
  place-items: center;
  background: #000;
}

.poster .blackout {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000;
  animation: blackout 2s ease forwards;
}

.poster-placeholder {
  position: absolute;
  bottom: 7vh;
  color: rgba(216, 238, 255, 0.34);
  font-size: 13px;
  letter-spacing: 0.16em;
}

@keyframes blackout {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 34px;
  margin-top: 34px;
}

.info-card {
  min-height: 120px;
  padding: 0;
  background: transparent;
  border: 0;
}

.info-card h3 {
  color: var(--text);
}

.timeline-page {
  place-items: center;
}

.timeline-shell {
  width: min(1240px, 92vw);
}

.timeline-head {
  align-self: auto;
  justify-self: auto;
  margin: 0 auto 34px;
  text-align: center;
}

.timeline-wrap {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.timeline-track {
  position: relative;
  width: min(1120px, 86vw);
  height: 150px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.time-node {
  position: absolute;
  top: 0;
  left: calc(var(--i) * 11.111%);
  width: 120px;
  margin-left: -60px;
  color: var(--text);
  background: transparent;
  text-align: center;
  transition: transform 480ms ease, opacity 420ms ease, filter 420ms ease;
}

.time-dot {
  display: block;
  width: 18px;
  height: 18px;
  margin: 45px auto 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 65%, transparent);
}

.time-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.timeline-wrap.is-focused .time-node {
  left: 50%;
  transform: translateX(calc(var(--offset) * 190px)) scale(0.78);
}

.timeline-wrap.is-focused .time-node.is-active {
  transform: translateX(0) scale(1.45);
  z-index: 3;
  filter: drop-shadow(0 0 28px var(--accent));
}

.timeline-wrap.is-focused .time-node.is-ghost {
  opacity: 0.32;
}

.timeline-wrap.is-focused .time-node.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.timeline-detail {
  width: min(680px, 86vw);
  margin: 28px auto 0;
  text-align: center;
}

.network-3d {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1320px, 96vw);
  height: min(820px, 92vh);
  transform-style: preserve-3d;
  transform: translate(calc(-50% + var(--pan-x, 0px)), calc(-50% + var(--pan-y, 0px))) scale(var(--zoom, 1)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  perspective: 1200px;
  cursor: none;
}

.network-3d.is-touch-dragging {
  transition: none;
}

.network-page.is-active .network-3d {
  opacity: 1;
  transform: translate(calc(-50% + var(--pan-x, 0px)), calc(-50% + var(--pan-y, 0px))) scale(var(--zoom, 1)) rotateX(var(--rx)) rotateY(var(--ry));
}

.network-3d::before {
  content: "";
  position: absolute;
  inset: -160px;
  transform: translateZ(-360px);
  background:
    radial-gradient(circle at 48% 48%, rgba(125, 198, 236, 0.28), transparent 13%),
    radial-gradient(circle at 56% 45%, rgba(225, 244, 255, 0.18), transparent 8%),
    radial-gradient(circle at 35% 62%, rgba(63, 132, 180, 0.18), transparent 18%),
    radial-gradient(circle, rgba(210, 238, 255, 0.44) 1px, transparent 1px);
  background-size: auto, auto, auto, 54px 54px;
  opacity: 0.62;
  filter: blur(0.2px);
  mask-image: radial-gradient(ellipse, #000 8%, rgba(0,0,0,.65) 42%, transparent 74%);
  animation: starBreath 9s ease-in-out infinite;
}

.network-3d::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 680px;
  height: 390px;
  transform: translate(-50%, -50%) translateZ(-180px) rotate(-10deg);
  background:
    radial-gradient(ellipse at center, rgba(128, 205, 244, 0.22), transparent 34%),
    conic-gradient(from 18deg, transparent 0deg, rgba(114, 198, 240, 0.18) 24deg, transparent 48deg, rgba(214, 241, 255, 0.12) 88deg, transparent 128deg, rgba(64, 121, 165, 0.18) 190deg, transparent 260deg);
  filter: blur(22px);
  opacity: 0.72;
  pointer-events: none;
  animation: nebulaSpin 22s linear infinite;
}

.space-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%) translateZ(-30px);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(235, 249, 255, 0.46), transparent 11%),
    radial-gradient(circle, rgba(104, 184, 230, 0.26), transparent 44%),
    radial-gradient(circle, rgba(25, 70, 102, 0.18), transparent 72%);
  filter: blur(5px);
  opacity: 0.76;
  pointer-events: none;
  animation: pulseCore 5.8s ease-in-out infinite;
}

.splash-field {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.splash-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  opacity: var(--a);
  background: rgba(199, 233, 255, 0.95);
  box-shadow: 0 0 12px rgba(114, 197, 238, 0.9), 0 0 28px rgba(79, 145, 190, 0.38);
  transform: translate3d(var(--x), var(--y), var(--z));
  animation: splashFloat 8s ease-in-out infinite;
  animation-delay: var(--d);
}

.space-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  color: var(--text);
  background: transparent;
  text-shadow: 0 0 12px rgba(218, 245, 255, 0.95), 0 0 28px rgba(111, 183, 216, 0.58), 0 0 56px rgba(61, 126, 178, 0.4);
  animation: nameDrift 6.2s ease-in-out infinite, namePulse 4.7s ease-in-out infinite;
  transform-origin: center;
  z-index: 8;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  padding: 0;
  width: 230px;
  height: 104px;
  margin-left: -115px;
  margin-top: -52px;
  display: grid;
  place-items: center;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

.space-node span {
  display: block;
  width: 100%;
  padding: 18px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: clamp(20px, 2.1vw, 34px);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-align: center;
  transform: translateZ(2px) rotateX(var(--brx, 0deg)) rotateY(var(--bry, 0deg));
  transform-style: preserve-3d;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  transition: font-size 520ms cubic-bezier(0.22, 1, 0.36, 1), text-shadow 520ms ease, opacity 420ms ease;
}

.space-node.is-active span {
  color: #fff;
  text-shadow: 0 0 12px #fff, 0 0 34px var(--accent), 0 0 72px rgba(111, 183, 216, 0.82);
}

.space-node.is-center {
  z-index: 14;
}

.space-node.is-center span {
  font-size: clamp(36px, 4vw, 66px);
  text-shadow: 0 0 18px #fff, 0 0 46px var(--accent), 0 0 96px rgba(111, 183, 216, 0.9);
}

.network-3d.is-focused-map .space-node {
  animation: none;
}

.network-3d.is-arranging .space-node span {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.92), 0 0 54px rgba(111, 183, 216, 0.78);
}

.network-3d.is-focused-map .space-edge span {
  color: rgba(226, 239, 255, 0.72);
}

.space-node.is-dim,
.space-edge.is-dim {
  opacity: 0.16;
}

.space-edge {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(130, 210, 255, 0.12), rgba(222, 246, 255, 0.42), rgba(130, 210, 255, 0.12), transparent);
  transform-style: preserve-3d;
  opacity: 0.58;
  filter: drop-shadow(0 0 8px rgba(105, 184, 230, 0.32));
  pointer-events: none;
  z-index: 2;
  transition: width 720ms cubic-bezier(0.22, 1, 0.36, 1), transform 720ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

.space-edge::before,
.space-edge::after,
.space-edge i {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(218, 244, 255, 0.9);
  box-shadow: 0 0 13px rgba(111, 183, 216, 0.86);
  transform: translateY(-50%);
  opacity: 0.34;
  animation: travelLight 3.9s linear infinite;
}

.space-edge::after {
  animation-delay: -1.3s;
}

.space-edge i {
  animation-delay: -2.6s;
}

.space-edge.is-active {
  height: 3px;
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(137, 219, 255, 0.42), rgba(244, 252, 255, 0.88), rgba(137, 219, 255, 0.42), transparent);
  box-shadow: 0 0 18px var(--accent), 0 0 46px rgba(111, 183, 216, 0.34);
}

.space-edge span {
  position: absolute;
  left: 50%;
  top: var(--label-y, -42px);
  transform: translateX(-50%) translateZ(2px) rotate(var(--label-rot, 0deg)) rotateX(var(--brx, 0deg)) rotateY(var(--bry, 0deg));
  transform-style: preserve-3d;
  color: rgba(226, 239, 255, 0);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(111, 183, 216, 0.64);
  transition: color 420ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.space-edge.is-active span {
  color: rgba(226, 239, 255, 0.86);
}

@keyframes starBreath {
  0%, 100% { opacity: 0.48; transform: translateZ(-360px) scale(0.98); }
  50% { opacity: 0.74; transform: translateZ(-360px) scale(1.04); }
}

@keyframes nebulaSpin {
  from { transform: translate(-50%, -50%) translateZ(-180px) rotate(-10deg); }
  to { transform: translate(-50%, -50%) translateZ(-180px) rotate(350deg); }
}

@keyframes pulseCore {
  0%, 100% { opacity: 0.54; transform: translate(-50%, -50%) translateZ(-30px) scale(0.92); }
  50% { opacity: 0.88; transform: translate(-50%, -50%) translateZ(-30px) scale(1.12); }
}

@keyframes splashFloat {
  0%, 100% { transform: translate3d(var(--x), var(--y), var(--z)) scale(0.72); filter: blur(0); }
  50% { transform: translate3d(calc(var(--x) * 1.05), calc(var(--y) * 0.96), calc(var(--z) + 38px)) scale(1.22); filter: blur(0.4px); }
}

@keyframes nameDrift {
  0%, 100% { margin-top: -3px; }
  50% { margin-top: 5px; }
}

@keyframes travelLight {
  from { left: 0; opacity: 0; }
  12% { opacity: 0.62; }
  80% { opacity: 0.28; }
  to { left: 100%; opacity: 0; }
}

.network-panel.floating {
  position: absolute;
  right: clamp(32px, 5vw, 76px);
  top: 50%;
  z-index: 5;
  width: min(390px, 30vw);
  max-height: min(78vh, 720px);
  overflow-y: auto;
  transform: translateY(-50%);
  padding: 0;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 0 24px rgba(80, 170, 220, 0.28));
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 215, 255, 0.22) transparent;
}

.network-panel.floating::-webkit-scrollbar {
  width: 4px;
}

.network-panel.floating::-webkit-scrollbar-thumb {
  background: rgba(143, 215, 255, 0.22);
}

.network-panel.floating h2 {
  font-size: clamp(26px, 2.9vw, 50px);
}

.network-panel.floating p,
.network-panel.floating li {
  font-size: clamp(12px, 0.9vw, 15px);
  line-height: 1.58;
}

.network-page {
  padding: 0;
  perspective: 1200px;
}

.network-copy {
  position: absolute;
  left: clamp(28px, 4vw, 70px);
  top: clamp(28px, 4vw, 62px);
  z-index: 4;
  width: min(420px, 34vw);
  pointer-events: none;
}

.network-copy h2 {
  font-size: clamp(28px, 3.2vw, 52px);
}

.is-rotating-network .network-3d {
  transition: none;
}

.character-name {
  min-width: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  text-shadow: 0 0 24px rgba(111, 183, 216, 0.42);
}

.character-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.character-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(150, 224, 255, 0.38);
  border-radius: 999px;
  color: #d8f5ff;
  background: rgba(7, 26, 34, 0.62);
  box-shadow: 0 0 18px rgba(117, 201, 236, 0.18);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.character-detail-link:hover {
  border-color: rgba(183, 236, 255, 0.78);
  background: rgba(17, 52, 65, 0.82);
  box-shadow: 0 0 22px rgba(117, 201, 236, 0.3);
  transform: translateY(-1px);
}

.character-detail-link:focus-visible {
  outline: 2px solid #b7ecff;
  outline-offset: 3px;
}

.scene-layout.doc-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(1220px, 88vw);
  min-height: 74vh;
  align-self: center;
  justify-self: center;
  place-items: center start;
  position: relative;
}

.sequence-vault {
  position: relative;
}

.sequence-screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}

.sequence-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, transparent 0 42%, rgba(0, 0, 0, 0.4) 80%);
}

.sequence-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.86) contrast(1.04) brightness(0.78);
}

.sequence-blackout {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #000;
  opacity: 0;
  transition: opacity 1500ms ease;
}

.sequence-vault.is-loop-fade .sequence-blackout {
  opacity: 1;
}

.sequence-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(230, 247, 255, 0.64);
  background: #000;
  letter-spacing: 0.22em;
}

.sequence-vault.is-sequence-playing .scene-main,
.sequence-vault.is-sequence-playing .anomaly-display,
.sequence-vault.is-sequence-playing .scene-doc {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

.sequence-vault.is-sequence-done .sequence-screen {
  opacity: 1;
}

.sequence-vault.is-sequence-done .scene-main,
.sequence-vault.is-sequence-done .anomaly-display {
  opacity: 1;
  transition: opacity 1300ms ease 360ms, transform 1300ms ease 360ms;
}

.sequence-vault.is-sequence-done .scene-doc {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0ms;
  pointer-events: auto;
}

.sequence-vault:not(.is-sequence-done) .scene-hotspot,
.sequence-vault:not(.is-sequence-done) .scene-doc {
  pointer-events: none;
}

.scene-main.ratio-16x9 {
  position: relative;
  width: min(720px, 50vw);
  aspect-ratio: 21 / 9;
  box-shadow: 0 0 40px rgba(3, 10, 18, 0.44);
}

.scene-vault .scene-main {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
}

.scene-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-doc {
  position: absolute;
  right: 0;
  top: 8%;
  bottom: 6%;
  z-index: 30;
  width: min(430px, 25vw);
  padding: 28px 24px 28px 34px;
  align-self: stretch;
  display: grid;
  align-content: start;
  grid-auto-flow: row;
  background: linear-gradient(90deg, rgba(5, 18, 30, 0), rgba(5, 18, 30, 0.2) 42%, rgba(5, 18, 30, 0.3));
  border-left: 1px solid rgba(153, 225, 255, 0.34);
  transform: translateX(calc(100% - 12px));
  opacity: 0;
  transition: transform 2000ms cubic-bezier(0.16, 1, 0.3, 1), filter 600ms ease, opacity 2000ms ease;
  backdrop-filter: blur(6px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 215, 255, 0.2) transparent;
}

.scene-doc > * {
  opacity: 0;
  transform: translateY(14px);
}

.sequence-vault.is-sequence-done .scene-doc > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 900ms ease, transform 960ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sequence-vault.is-sequence-done .scene-doc > *:nth-child(1) { transition-delay: 1250ms; }
.sequence-vault.is-sequence-done .scene-doc > *:nth-child(2) { transition-delay: 1380ms; }
.sequence-vault.is-sequence-done .scene-doc > *:nth-child(3) { transition-delay: 1510ms; }
.sequence-vault.is-sequence-done .scene-doc > *:nth-child(4) { transition-delay: 1640ms; }

.scene-doc::-webkit-scrollbar,
.anomaly-doc::-webkit-scrollbar {
  width: 4px;
}

.scene-doc::-webkit-scrollbar-thumb,
.anomaly-doc::-webkit-scrollbar-thumb {
  background: rgba(143, 215, 255, 0.2);
}

.scene-vault {
  width: 100%;
  height: 100%;
}

.scene-layout.doc-side.scene-vault,
.anomaly-vault {
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  justify-self: stretch;
  place-items: stretch;
}

.scene-doc::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(153, 225, 255, 0.28);
}

.scene-hotspot {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 31;
  width: 34px;
  background: transparent;
}

.sequence-vault.is-sequence-done .scene-hotspot:hover + .scene-doc,
.sequence-vault.is-sequence-done .scene-doc:hover,
.sequence-vault.is-sequence-done .scene-doc:focus-within {
  transform: translateX(0);
  opacity: 1;
  filter: drop-shadow(0 0 28px rgba(95, 180, 230, 0.24));
}

.anomaly-vault {
  position: relative;
}

.anomaly-display {
  position: absolute;
  left: 3.5vw;
  top: 50%;
  width: min(620px, 43vw);
  height: 68vh;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0;
}

.anomaly-display img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(111, 183, 216, 0.34));
}

.anomaly-doc {
  width: min(430px, 36vw);
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 215, 255, 0.2) transparent;
}

.anomaly-vault.sequence-vault .scene-doc {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.anomaly-vault.sequence-vault .scene-doc > * {
  opacity: 1;
  transform: translateY(0);
}

.anomaly-vault.sequence-vault:not(.is-sequence-done) .scene-doc,
.anomaly-vault.sequence-vault.is-sequence-playing .scene-doc {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.anomaly-vault.sequence-vault:not(.is-sequence-done) .scene-doc > *,
.anomaly-vault.sequence-vault.is-sequence-playing .scene-doc > * {
  opacity: 1;
  transform: translateY(0);
}

.anomaly-vault .scene-hotspot {
  pointer-events: none;
}

.scene-doc p,
.scene-doc span,
.anomaly-doc p,
.anomaly-doc span {
  font-size: clamp(12px, 0.86vw, 15px);
  line-height: 1.55;
}

.scene-vault .scene-doc {
  right: 0;
  left: auto;
  width: min(440px, 28vw);
  top: 0;
  bottom: 0;
  padding-top: min(10vh, 84px);
  padding-bottom: min(7vh, 64px);
  overscroll-behavior: contain;
}

.scene-vault.sequence-vault .scene-doc {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.scene-vault.sequence-vault .scene-doc > * {
  opacity: 1;
  transform: translateY(0);
}

.scene-vault.sequence-vault:not(.is-sequence-done) .scene-doc,
.scene-vault.sequence-vault.is-sequence-playing .scene-doc {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.scene-vault.sequence-vault:not(.is-sequence-done) .scene-doc > *,
.scene-vault.sequence-vault.is-sequence-playing .scene-doc > * {
  opacity: 1;
  transform: translateY(0);
}

.scene-vault .scene-hotspot {
  pointer-events: none;
}

.scene-table {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.scene-row {
  display: grid;
  gap: 4px;
  padding: 0 0 13px;
  color: var(--text);
  background: transparent;
  border-bottom: 1px solid rgba(150, 220, 255, 0.22);
  text-align: left;
}

.scene-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.scene-row.is-active strong {
  color: var(--accent2);
}

.anomaly-layout.split-clean {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  width: min(1240px, 91vw);
  align-self: center;
  justify-self: center;
}

.anomaly-image,
.character-art {
  display: grid;
  place-items: center;
  min-height: 620px;
  background: transparent;
}

.anomaly-image img,
.character-art img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(100, 185, 235, 0.32));
  mix-blend-mode: normal;
}

.anomaly-panel.text-only {
  padding: 0;
  background: transparent;
  border: 0;
}

.meta {
  color: var(--accent2);
  margin-bottom: 18px;
}

.gallery.clean-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.gallery.clean-gallery figure {
  margin: 0;
  min-height: 270px;
  display: grid;
  place-items: end center;
  background: transparent;
  overflow: visible;
}

.gallery.clean-gallery img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(100, 185, 235, 0.22));
}

.cutout-gallery figure {
  align-items: end;
}

.character-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(380px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1220px, 91vw);
  align-self: center;
  justify-self: center;
}

.character-art.zoom img {
  transform: scale(1.8) translateY(10%);
}

.placeholder {
  color: rgba(226, 239, 255, 0.46);
  padding: 40px;
  text-align: center;
  border: 1px dashed rgba(150, 220, 255, 0.28);
}

.micro-network {
  position: fixed;
  left: 26px;
  top: 24px;
  z-index: 18;
  width: 58px;
  height: 58px;
  color: var(--accent2);
  display: grid;
  place-items: center;
  text-decoration: none;
  background: transparent;
}

.micro-network svg {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 12px var(--accent));
}

.branch-nav {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 18;
  display: flex;
  gap: 12px;
}

.branch-nav button,
.menu-toggle,
.edit-toggle {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(150, 220, 255, 0.28);
  padding: 9px 12px;
  text-shadow: 0 0 14px rgba(111, 183, 216, 0.45);
}

.deck-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 20;
  display: grid;
  gap: 9px;
  transform: translateY(-50%);
}

.deck-nav button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(190, 229, 255, 0.54);
  background: transparent;
}

.deck-nav button.is-active {
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.menu-toggle {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 42;
  width: 38px;
  height: 30px;
  padding: 0;
  border: 0;
  display: grid;
  place-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(230, 248, 255, 0.88);
  box-shadow: 0 0 12px rgba(111, 183, 216, 0.72);
}

.toc-panel {
  position: fixed;
  right: 24px;
  top: 72px;
  z-index: 42;
  width: min(360px, calc(100vw - 48px));
  max-height: min(720px, calc(100vh - 110px));
  overflow: auto;
  padding: 18px;
  color: var(--text);
  background: rgba(3, 12, 22, 0.42);
  border: 1px solid rgba(150, 220, 255, 0.16);
  backdrop-filter: blur(9px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.toc-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.toc-panel header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.toc-panel header span {
  color: var(--muted);
  font-size: 12px;
}

.toc-list {
  display: grid;
  gap: 8px;
}

.toc-list button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid rgba(150, 220, 255, 0.14);
}

.toc-list span {
  color: var(--accent);
}

.toc-subgroup {
  display: grid;
  gap: 4px;
  margin: -2px 0 8px 38px;
  padding-left: 14px;
  border-left: 1px solid rgba(150, 220, 255, 0.18);
}

.toc-subtitle {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  margin: 8px 0 2px;
}

.toc-subgroup button {
  grid-template-columns: 44px 1fr;
  padding: 6px 0;
  font-size: 13px;
}

.toc-character {
  display: grid;
  gap: 3px;
}

.toc-subpages {
  display: grid;
  gap: 2px;
  margin: -2px 0 8px 50px;
  padding-left: 12px;
  border-left: 1px solid rgba(150, 220, 255, 0.13);
}

.toc-subpages button {
  grid-template-columns: 30px 1fr;
  padding: 4px 0;
  color: rgba(226, 239, 255, 0.72);
  font-size: 12px;
}

.visual-carousel-page {
  width: min(1320px, 92vw);
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-rows: auto minmax(330px, 44vh) auto;
  gap: clamp(18px, 3vh, 34px);
}

.triangle-toggle {
  position: absolute;
  left: 38px;
  bottom: 38px;
  z-index: 38;
  width: 0;
  height: 0;
  padding: 0;
  background: transparent;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 28px solid rgba(169, 229, 255, 0.92);
  filter: drop-shadow(0 0 12px rgba(111, 213, 255, 0.72));
}

.triangle-toggle:hover {
  border-left-color: #ffffff;
}

.network-3d.is-flat-map .space-node,
.network-3d.is-flat-map .space-edge span {
  opacity: 1;
}

.archive-overview {
  position: absolute;
  inset: 6% 6%;
  z-index: 32;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 26px;
  background: rgba(1, 8, 14, 0.64);
  border: 1px solid rgba(138, 214, 255, 0.24);
  backdrop-filter: blur(10px);
  overflow: auto;
}

.archive-overview h3 {
  margin: 0 0 16px;
  color: var(--accent2);
  letter-spacing: 0.16em;
  font-size: 16px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.archive-grid figure {
  margin: 0;
}

.archive-grid img,
.archive-grid video {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

.archive-grid figcaption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.character-intro-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.character-intro-text {
  position: absolute;
  left: 4.5%;
  top: 6%;
  width: min(760px, 38vw);
  max-height: 84%;
  display: grid;
  gap: 16px;
  color: rgba(160, 224, 255, 0.82);
  text-shadow: 0 0 16px rgba(89, 184, 241, 0.32);
}

.character-intro-text h2 {
  margin: 0;
  font-family: "KaiTi", "STKaiti", serif;
  font-size: clamp(42px, 5.2vw, 104px);
  line-height: 0.95;
  color: rgba(227, 247, 255, 0.94);
  text-shadow: 0 0 10px rgba(122, 205, 255, 0.88), 0 0 28px rgba(45, 134, 210, 0.6);
}

.profile-hud-mark {
  width: 190px;
  height: 18px;
  border-top: 1px solid rgba(110, 205, 255, 0.7);
  position: relative;
}

.profile-hud-mark::before,
.profile-hud-mark::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(110, 205, 255, 0.8);
  transform: rotate(45deg);
}

.profile-hud-mark::before { left: -14px; }
.profile-hud-mark::after { right: -28px; background: rgba(110, 205, 255, 0.58); }

.profile-roman {
  margin-top: -8px;
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(93, 179, 230, 0.68);
  font-size: clamp(15px, 1.35vw, 28px);
  letter-spacing: 0.52em;
}

.profile-lines {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
}

.profile-lines div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: baseline;
}

.profile-lines dt {
  color: rgba(97, 188, 241, 0.84);
  font-size: clamp(14px, 1.06vw, 21px);
}

.profile-lines dd {
  margin: 0;
  color: rgba(125, 204, 250, 0.86);
  font-size: clamp(14px, 1.06vw, 21px);
  line-height: 1.45;
}

.profile-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
}

.profile-keywords span {
  min-width: 110px;
  padding: 8px 16px;
  text-align: center;
  color: rgba(153, 223, 255, 0.88);
  border: 1px solid rgba(109, 202, 255, 0.34);
  background: rgba(17, 58, 86, 0.13);
  box-shadow: inset 0 0 14px rgba(94, 184, 242, 0.18), 0 0 12px rgba(94, 184, 242, 0.16);
}

.profile-intro {
  margin: 10px 0 0;
  max-width: 640px;
  color: rgba(117, 204, 250, 0.84);
  font-size: clamp(14px, 1.08vw, 22px);
  line-height: 1.85;
}

.character-name-mark {
  position: absolute;
  right: 6%;
  bottom: 7%;
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
  text-shadow: 0 0 24px rgba(151, 221, 255, 0.52);
}

.character-name-mark strong {
  font-size: clamp(34px, 4.4vw, 86px);
  line-height: 0.98;
}

.character-name-mark span {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 18px);
}

.character-design-page {
  width: min(1560px, 88vw);
}

.outfit-grid.clean-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  align-items: end;
}

.outfit-grid figure {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: end;
  min-height: 400px;
}

.outfit-grid .outfit-figure {
  outline: none;
  transition: transform 220ms ease, filter 220ms ease;
}

.outfit-grid .outfit-figure:hover,
.outfit-grid .outfit-figure:focus-visible,
.outfit-grid .outfit-figure.is-zoom-active {
  transform: translateY(-8px);
  filter: drop-shadow(0 0 26px rgba(123, 213, 255, 0.32));
}

.outfit-grid figcaption {
  writing-mode: vertical-rl;
  letter-spacing: 0.12em;
  color: var(--accent2);
  font-size: 13px;
  justify-self: center;
  text-shadow: 0 0 12px rgba(111, 183, 216, 0.42);
}

.outfit-grid img {
  max-width: 100%;
  max-height: min(58vh, 540px);
  object-fit: contain;
  align-self: end;
}

.outfit-zoom {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  grid-template-columns: minmax(56px, 8vw) minmax(0, 1fr) minmax(56px, 8vw);
  place-items: center;
  padding: min(5vh, 48px) min(4vw, 56px);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.outfit-zoom figure {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.outfit-zoom img {
  max-width: min(72vw, 1120px);
  max-height: 86vh;
  object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(119, 205, 255, 0.26));
}

.outfit-zoom figcaption {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  gap: 18px;
  align-items: baseline;
  transform: translateX(-50%);
  color: var(--text);
  text-shadow: 0 0 18px rgba(111, 183, 216, 0.48);
}

.outfit-zoom figcaption strong {
  font-size: clamp(22px, 2.2vw, 42px);
}

.outfit-zoom figcaption span {
  color: var(--accent2);
  letter-spacing: 0.16em;
  font-size: clamp(13px, 1vw, 18px);
}

.outfit-zoom-close,
.outfit-zoom-step {
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--accent2);
  background: rgba(5, 18, 30, 0.36);
  border: 1px solid rgba(143, 215, 255, 0.32);
  box-shadow: 0 0 20px rgba(111, 183, 216, 0.18);
}

.outfit-zoom-close {
  position: absolute;
  right: 30px;
  top: 24px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.outfit-zoom-step {
  width: clamp(44px, 5vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: clamp(30px, 4vw, 68px);
  line-height: 1;
}

.mood-grid.clean-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mood-grid figure {
  margin: 0;
}

.mood-grid img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.toc-fold-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent2);
  background: transparent;
  padding: 8px 0;
  border-bottom: 1px solid rgba(132, 207, 255, 0.16);
}

.toc-fold-head i {
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.toc-subgroup:not(.is-open) .toc-fold-body {
  display: none;
}

.toc-subgroup:not(.is-open) .toc-fold-head i {
  transform: rotate(-45deg);
}

.is-readonly .edit-toggle,
.is-readonly .editor-panel {
  display: none !important;
}

.visual-copy {
  width: 100%;
  display: grid;
  gap: 10px;
}

.visual-copy-top {
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  align-items: end;
}

.visual-copy-top .eyebrow {
  grid-column: 1 / -1;
}

.visual-copy-top h2 {
  margin: 0;
  max-width: 720px;
}

.visual-copy-top .subtitle {
  align-self: end;
}

.visual-copy-bottom {
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.8fr);
  align-items: start;
}

.visual-copy-bottom .copy {
  max-width: 760px;
}

.mood-carousel.clean-gallery {
  display: flex;
  gap: 28px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: calc(50% - 330px);
  padding: 16px calc(50% - 330px) 22px;
  scrollbar-width: none;
  cursor: none;
}

.mood-carousel.clean-gallery.is-dragging {
  scroll-snap-type: none;
}

.mood-carousel.clean-gallery.is-dragging figure {
  transition: transform 120ms linear, opacity 120ms linear, filter 120ms linear;
}

.mood-carousel.clean-gallery::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.mood-carousel.clean-gallery figure {
  flex: 0 0 min(760px, 64vw);
  aspect-ratio: 21 / 9;
  min-height: 0;
  margin: 0;
  scroll-snap-align: center;
  transform: scale(var(--focus-scale, 0.76));
  opacity: var(--focus-opacity, 0.42);
  filter: drop-shadow(0 0 calc(32px * var(--focus-glow, 0)) rgba(111, 183, 216, 0.32));
  will-change: transform, opacity, filter;
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1), opacity 620ms ease, filter 620ms ease;
}

.mood-carousel.clean-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.business-layout {
  width: min(1320px, 92vw);
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(560px, 1.2fr);
  grid-template-rows: auto auto 1fr;
  gap: 18px clamp(32px, 5vw, 72px);
  align-items: start;
}

.pdf-ref-layout,
.pdf-synopsis-layout,
.pdf-commercial-layout {
  position: relative;
  z-index: 2;
  width: min(1500px, 88vw);
  align-self: center;
  justify-self: center;
  display: grid;
  gap: clamp(28px, 4vh, 52px);
  color: var(--text);
}

.pdf-ref-head {
  display: grid;
  gap: 8px;
}

.pdf-ref-head .eyebrow {
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: clamp(13px, 0.95vw, 17px);
}

.pdf-ref-head h2 {
  margin: 0;
  font-size: clamp(42px, 4.8vw, 86px);
  line-height: 0.98;
  text-shadow: 0 0 22px rgba(114, 197, 241, 0.42);
}

.pdf-ref-spaced {
  color: rgba(188, 225, 255, 0.55);
  letter-spacing: 0.36em;
  font-size: clamp(13px, 1vw, 18px);
}

.pdf-basic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 42px;
  max-width: 1180px;
}

.pdf-basic-grid div,
.pdf-three-grid article,
.pdf-rules-grid section,
.pdf-commercial-grid article {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(143, 215, 255, 0.25);
  padding-top: 16px;
}

.pdf-basic-grid span,
.pdf-three-grid span {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: clamp(12px, 0.85vw, 14px);
}

.pdf-basic-grid strong {
  font-size: clamp(18px, 1.45vw, 28px);
  line-height: 1.35;
}

.pdf-ref-foot,
.pdf-ref-slogan {
  max-width: 1160px;
  color: rgba(226, 239, 255, 0.82);
  font-size: clamp(18px, 1.4vw, 28px);
  line-height: 1.65;
}

.pdf-positioning-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
}

.pdf-positioning-grid strong {
  color: var(--accent2);
  font-size: clamp(20px, 1.6vw, 34px);
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(114, 197, 241, 0.35);
}

.pdf-positioning-copy,
.pdf-section-center p {
  max-width: 1060px;
  color: rgba(226, 239, 255, 0.78);
  font-size: clamp(20px, 1.55vw, 30px);
  line-height: 1.85;
}

.pdf-five-grid,
.pdf-three-grid,
.pdf-commercial-grid {
  display: grid;
  gap: 24px;
}

.pdf-five-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pdf-five-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 260px;
}

.pdf-five-grid span {
  color: var(--accent);
  font-size: clamp(24px, 2.2vw, 44px);
  font-weight: 800;
}

.pdf-five-grid h3,
.pdf-three-grid h3,
.pdf-rules-grid h3,
.pdf-commercial-grid h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 1.55vw, 32px);
  line-height: 1.25;
}

.pdf-five-grid p,
.pdf-three-grid p,
.pdf-rules-grid p,
.pdf-commercial-grid p,
.pdf-synopsis-main p {
  margin: 0;
  color: rgba(226, 239, 255, 0.72);
  font-size: clamp(14px, 1.02vw, 19px);
  line-height: 1.72;
}

.pdf-section-center {
  min-height: 42vh;
  display: grid;
  place-items: center start;
}

.pdf-three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdf-rules-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 58px;
}

.monster-ranks {
  display: flex;
  gap: 16px;
  margin: 8px 0 18px;
}

.monster-ranks span {
  display: inline-grid;
  place-items: center;
  width: clamp(58px, 5.4vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, rgba(225, 248, 255, 0.18), rgba(89, 172, 224, 0.08) 56%, rgba(4, 16, 28, 0.2));
  border: 1px solid rgba(154, 225, 255, 0.24);
  color: var(--text);
  font-size: clamp(30px, 3vw, 64px);
  font-weight: 800;
  text-shadow: 0 0 18px rgba(114, 197, 241, 0.62);
  box-shadow: inset 0 0 22px rgba(122, 213, 255, 0.12), 0 0 24px rgba(114, 197, 241, 0.18);
}

.pdf-synopsis-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}

.pdf-synopsis-copy {
  font-size: clamp(16px, 1.08vw, 22px) !important;
  line-height: 1.9 !important;
}

.pdf-synopsis-main aside {
  display: grid;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(143, 215, 255, 0.25);
}

.pdf-synopsis-main aside h3 {
  margin: 0 0 6px;
  color: var(--accent2);
  font-size: clamp(18px, 1.4vw, 28px);
}

.pdf-synopsis-main aside span {
  color: rgba(226, 239, 255, 0.76);
  font-size: clamp(14px, 1vw, 18px);
}

.pdf-commercial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdf-commercial-grid article:nth-child(n + 4) {
  grid-column: span 1;
}

.pdf-ref-mark {
  position: absolute;
  right: 0;
  bottom: -36px;
  color: rgba(142, 207, 245, 0.42);
  letter-spacing: 0.18em;
  font-size: clamp(14px, 1vw, 18px);
}

.content.balanced.business-layout .eyebrow,
.content.balanced.business-layout h2,
.content.balanced.business-layout > .subtitle,
.content.balanced.business-layout > .copy {
  grid-column: 1;
}

.business-grid.card-grid {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 26px 34px;
}

.edit-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 43;
}

.editor-panel {
  position: fixed;
  right: 24px;
  bottom: 72px;
  z-index: 43;
  width: min(390px, calc(100vw - 48px));
  max-height: 80vh;
  overflow: auto;
  padding: 16px;
  color: var(--text);
  background: rgba(3, 12, 22, 0.84);
  border: 1px solid rgba(150, 220, 255, 0.24);
  backdrop-filter: blur(18px);
}

.editor-panel.is-collapsed {
  width: min(240px, calc(100vw - 48px));
  max-height: none;
  overflow: hidden;
  padding-bottom: 12px;
}

.editor-panel.is-collapsed .editor-body {
  display: none;
}

.editor-panel label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

.editor-panel input,
.editor-panel textarea,
.editor-panel select {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(150, 220, 255, 0.22);
  padding: 8px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.editor-actions button {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(150, 220, 255, 0.22);
  padding: 8px 10px;
}

.editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.editor-collapse {
  margin-left: auto;
  padding: 4px 8px;
  color: var(--accent2);
  background: rgba(115, 203, 255, 0.08);
  border: 1px solid rgba(150, 220, 255, 0.22);
}

.editable,
.custom-element,
.shape-element {
  position: fixed;
  z-index: 16;
}

.editable:not(.custom-element) {
  position: relative;
  z-index: auto;
}

.is-editing .editable,
.is-editing .shape-element {
  outline: 1px dashed rgba(151, 221, 255, 0.62);
  outline-offset: 5px;
}

.is-editing [data-edit-kind] {
  user-select: none;
}

.is-editing .editable-layout {
  z-index: 22;
}

.is-editing .is-selected {
  outline: 2px solid var(--accent2);
  box-shadow: 0 0 0 1px rgba(135, 221, 255, 0.16), 0 0 18px rgba(135, 221, 255, 0.26);
}

.is-editing [data-edit-kind].is-selected::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(230, 248, 255, 0.9);
  background: rgba(91, 191, 255, 0.26);
  box-shadow: 0 0 12px rgba(115, 210, 255, 0.56);
}

.custom-image {
  object-fit: contain;
  display: block;
  pointer-events: auto;
}

.align-guide {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(140, 226, 255, 0.6));
}

.align-guide.is-visible {
  opacity: 1;
}

.align-guide-x {
  left: 0;
  width: 100vw;
  height: 0;
  border-top: 1px dashed rgba(140, 226, 255, 0.72);
}

.align-guide-y {
  top: 0;
  height: 100vh;
  width: 0;
  border-left: 1px dashed rgba(140, 226, 255, 0.72);
}

.shape-element {
  border: 1px solid;
}

@media (max-width: 900px) {
  html,
  body,
  .deck {
    height: 100dvh;
    min-height: 100svh;
    overscroll-behavior-x: none;
  }

  body,
  button,
  a,
  input,
  textarea,
  select {
    cursor: auto;
  }

  .custom-cursor,
  .particle-canvas {
    display: none;
  }

  .page {
    height: 100dvh;
    min-height: 100svh;
    padding: calc(26px + env(safe-area-inset-top)) 22px calc(80px + env(safe-area-inset-bottom));
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    -webkit-touch-callout: none;
  }

  .page.is-active > .media {
    position: fixed;
    inset: 0;
  }

  .poster-page,
  .network-page,
  .scenes-page,
  .anomalies-page {
    padding: 0;
    align-content: center;
    overflow: hidden;
  }

  .page-number {
    bottom: calc(14px + env(safe-area-inset-bottom));
    font-size: 11px;
  }

  .menu-toggle {
    top: calc(14px + env(safe-area-inset-top));
    right: calc(14px + env(safe-area-inset-right));
    width: 48px;
    height: 44px;
    padding: 8px;
  }

  .toc-panel {
    left: 12px;
    right: 12px;
    top: calc(68px + env(safe-area-inset-top));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-height: none;
    padding: 18px;
    background: rgba(3, 12, 22, 0.9);
  }

  .deck-nav {
    right: calc(10px + env(safe-area-inset-right));
    gap: 5px;
  }

  .deck-nav button {
    width: 8px;
    height: 8px;
  }

  .content,
  .content.wide,
  .business-layout,
  .pdf-ref-layout,
  .pdf-synopsis-layout,
  .pdf-commercial-layout,
  .visual-carousel-page {
    width: 100%;
  }

  .content {
    align-self: start;
    justify-self: stretch;
    padding-top: 48px;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.04;
  }

  h2,
  .pdf-ref-head h2 {
    max-width: 100%;
    font-size: 2rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .copy,
  .pdf-positioning-copy,
  .pdf-section-center p,
  .pdf-synopsis-copy {
    font-size: 0.98rem !important;
    line-height: 1.72 !important;
  }

  .content.balanced,
  .scene-layout.doc-side,
  .anomaly-layout.split-clean,
  .character-layout,
  .business-layout,
  .pdf-rules-grid,
  .pdf-synopsis-main,
  .pdf-commercial-grid,
  .visual-copy-top,
  .visual-copy-bottom {
    grid-template-columns: 1fr;
  }

  .content.balanced {
    gap: 16px;
  }

  .content.balanced .eyebrow,
  .content.balanced h2,
  .content.balanced .subtitle,
  .content.balanced .copy,
  .content.balanced .tag-row,
  .business-grid.card-grid {
    grid-column: 1;
    grid-row: auto;
  }

  .card-grid,
  .business-grid.card-grid,
  .pdf-five-grid,
  .pdf-three-grid,
  .pdf-commercial-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .info-card,
  .pdf-five-grid article {
    min-height: 0;
  }

  .pdf-ref-layout,
  .pdf-synopsis-layout,
  .pdf-commercial-layout {
    align-self: start;
    gap: 22px;
    padding: 48px 10px 40px 0;
  }

  .pdf-ref-head {
    gap: 6px;
  }

  .pdf-ref-head .eyebrow,
  .pdf-ref-spaced {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .pdf-basic-grid,
  .pdf-positioning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .pdf-positioning-grid strong,
  .pdf-basic-grid strong,
  .pdf-five-grid h3,
  .pdf-three-grid h3,
  .pdf-rules-grid h3,
  .pdf-commercial-grid h3 {
    font-size: 1.05rem;
  }

  .pdf-five-grid span {
    font-size: 1.5rem;
  }

  .pdf-section-center {
    min-height: 0;
  }

  .monster-ranks {
    flex-wrap: wrap;
    gap: 10px;
  }

  .monster-ranks span {
    width: 48px;
    font-size: 1.4rem;
  }

  .pdf-ref-mark {
    position: static;
    justify-self: end;
    margin-top: 10px;
    font-size: 0.78rem;
  }

  .timeline-page {
    padding-inline: 0;
  }

  .timeline-shell {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding-top: 56px;
  }

  .timeline-head {
    width: calc(100vw - 44px);
    max-width: calc(100vw - 44px);
    margin: 0 22px 20px;
    text-align: left;
  }

  .timeline-wrap {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    min-height: 330px;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .timeline-track {
    width: 920px;
    margin: 70px 60px 0;
  }

  .timeline-detail {
    width: calc(100vw - 44px);
  }

  .network-copy {
    left: 18px;
    top: calc(18px + env(safe-area-inset-top));
    width: calc(100% - 92px);
  }

  .network-copy h2 {
    font-size: 1.55rem;
  }

  .network-panel.floating {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: calc(34px + env(safe-area-inset-bottom));
    width: auto;
    max-height: 44dvh;
    padding: 18px;
    transform: none;
    background: rgba(3, 12, 22, 0.88);
    backdrop-filter: blur(12px);
  }

  .network-3d,
  .network-page.is-active .network-3d {
    width: 620px;
    height: 760px;
    transform: translate(calc(-50% + var(--pan-x, 0px)), calc(-50% + var(--pan-y, 0px))) scale(calc(var(--zoom, 1) * 0.45)) rotateX(var(--rx)) rotateY(var(--ry));
    touch-action: manipulation;
  }

  .scene-vault .scene-doc,
  .anomaly-vault .scene-doc {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 48dvh;
    padding: 18px 22px calc(28px + env(safe-area-inset-bottom));
    border-left: 0;
    border-top: 1px solid rgba(153, 225, 255, 0.34);
    transform: none;
    opacity: 1;
    background: rgba(3, 12, 22, 0.82);
    backdrop-filter: blur(12px);
  }

  .scene-layout.doc-side.scene-vault,
  .anomaly-vault {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .scene-doc h2,
  .anomaly-doc h2 {
    font-size: 1.7rem;
  }

  .scene-doc p,
  .scene-doc span,
  .anomaly-doc p,
  .anomaly-doc span {
    font-size: 0.86rem;
  }

  .scene-row {
    min-height: 44px;
    padding: 8px 0 12px;
  }

  .visual-carousel-page {
    grid-template-rows: auto minmax(220px, 36dvh) auto;
    gap: 14px;
    padding-top: 48px;
  }

  .mood-carousel.clean-gallery {
    gap: 12px;
    scroll-padding-inline: 8vw;
    padding: 10px 8vw 16px;
    touch-action: pan-x;
  }

  .mood-carousel.clean-gallery figure {
    flex-basis: 84vw;
  }

  .archive-overview {
    inset: 12px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .character-intro-layout {
    min-height: 100%;
    height: auto;
  }

  .character-intro-text {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-height: none;
    padding: calc(76px + env(safe-area-inset-top)) 22px 120px;
    gap: 12px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18));
  }

  .character-intro-text h2 {
    font-size: 2.6rem;
  }

  .profile-roman {
    font-size: 0.9rem;
    letter-spacing: 0.28em;
  }

  .profile-lines div {
    grid-template-columns: 54px 1fr;
    gap: 10px;
  }

  .profile-lines dt,
  .profile-lines dd,
  .profile-intro {
    font-size: 0.92rem;
  }

  .profile-keywords span {
    min-width: 0;
    padding: 7px 11px;
  }

  .character-name-mark {
    display: none;
  }

  .micro-network {
    left: 12px;
    top: calc(12px + env(safe-area-inset-top));
  }

  .media.fit-contain img,
  .media.fit-contain video {
    padding: 8vw;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .page.is-active > .media {
    background: #000;
  }

  .page.is-active > .media img,
  .page.is-active > .media video,
  .sequence-screen video {
    object-fit: contain;
  }

  .media.fit-contain img,
  .media.fit-contain video {
    padding: 0;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .page.is-active > .media img,
  .page.is-active > .media video,
  .sequence-screen video {
    object-fit: cover;
  }
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor {
    display: none;
  }

  html,
  body,
  button,
  a,
  input,
  textarea,
  select {
    cursor: auto;
  }
}

html.is-mobile-shell,
html.is-mobile-shell body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: auto;
  touch-action: none;
  -webkit-text-size-adjust: 100%;
}

html.is-mobile-shell .particle-canvas,
html.is-mobile-shell .custom-cursor,
html.is-mobile-shell > body > .deck,
html.is-mobile-shell > body > .deck-nav,
html.is-mobile-shell > body > .menu-toggle,
html.is-mobile-shell > body > .toc-panel,
html.is-mobile-shell > body > .editor-panel,
html.is-mobile-shell > body > .edit-toggle {
  display: none !important;
}

.mobile-shell[hidden] {
  display: none !important;
}

.mobile-shell {
  position: fixed;
  inset: 0;
  height: var(--visual-height, 100dvh);
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-stage-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 1440px;
  height: 900px;
  border: 0;
  background: #000;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center;
}

.mobile-menu-toggle {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  top: calc(18px + env(safe-area-inset-top));
  z-index: 10;
  width: 48px;
  height: 42px;
  padding: 8px;
  display: grid;
  gap: 6px;
  background: transparent;
  color: #dff6ff;
  cursor: auto;
  filter: drop-shadow(0 0 10px rgba(111, 183, 216, 0.75));
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 0;
}

.mobile-deck-nav {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  top: 50%;
  z-index: 9;
  display: grid;
  gap: 9px;
  transform: translateY(-50%);
}

.mobile-shell.is-toc-open .mobile-deck-nav {
  opacity: 0;
  pointer-events: none;
}

.mobile-deck-nav button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid rgba(203, 234, 255, 0.62);
  border-radius: 50%;
  background: rgba(1, 8, 14, 0.42);
  cursor: auto;
}

.mobile-deck-nav button.is-active {
  border-color: rgba(141, 222, 255, 0.92);
  background: rgba(111, 183, 216, 0.95);
  box-shadow: 0 0 12px rgba(111, 183, 216, 0.85);
}

.mobile-toc-panel {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  top: calc(68px + env(safe-area-inset-top));
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 11;
  overflow: auto;
  padding: 18px 18px 22px;
  border: 1px solid rgba(153, 225, 255, 0.32);
  background: rgba(2, 8, 14, 0.94);
  box-shadow: 0 0 0 1px rgba(111, 183, 216, 0.08), 0 18px 60px rgba(0, 0, 0, 0.6);
  color: #eef7ff;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.mobile-toc-panel[hidden] {
  display: none !important;
}

.mobile-toc-panel header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.mobile-toc-panel strong {
  font-size: 18px;
  line-height: 1.2;
}

.mobile-toc-panel header span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-toc-list,
.mobile-toc-fold-body {
  display: grid;
  gap: 8px;
}

.mobile-toc-list button {
  min-height: 44px;
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(111, 183, 216, 0.18);
  background: rgba(255, 255, 255, 0.015);
  color: #eef7ff;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  cursor: auto;
}

.mobile-toc-list button span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mobile-toc-list button.is-active {
  color: #ffffff;
  background: rgba(111, 183, 216, 0.12);
  text-shadow: 0 0 12px rgba(183, 216, 255, 0.55);
}

.mobile-toc-subgroup {
  margin: 4px 0 10px;
  padding: 8px 0 0 16px;
  border-left: 1px solid rgba(111, 183, 216, 0.24);
}

.mobile-toc-fold-head {
  grid-template-columns: 1fr 18px !important;
  margin-bottom: 4px;
  color: var(--accent2) !important;
}

.mobile-toc-fold-head i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.mobile-toc-subgroup:not(.is-open) .mobile-toc-fold-body {
  display: none;
}

html.is-embedded-stage,
html.is-embedded-stage body {
  width: 1440px;
  height: 900px;
  overflow: hidden;
  cursor: auto;
  touch-action: none;
  -webkit-text-size-adjust: 100%;
}

html.is-embedded-stage button,
html.is-embedded-stage a,
html.is-embedded-stage input,
html.is-embedded-stage textarea,
html.is-embedded-stage select {
  cursor: auto;
}

html.is-embedded-stage .deck {
  width: 1440px;
  height: 900px;
}

html.is-embedded-stage .page {
  transform: none;
  transition: none;
}

html.is-embedded-stage .page.is-active {
  transform: none;
}

html.is-embedded-stage .particle-canvas,
html.is-embedded-stage .custom-cursor,
html.is-embedded-stage .deck-nav,
html.is-embedded-stage .menu-toggle,
html.is-embedded-stage .toc-panel,
html.is-embedded-stage .editor-panel,
html.is-embedded-stage .edit-toggle {
  display: none !important;
}

html.is-embedded-stage .network-3d {
  touch-action: none;
}

html.is-embedded-stage .splash-particle:nth-child(n+18) {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .page * {
    transition: none !important;
    animation: none !important;
  }
}
