/* =========================================================
   Persona-inspired cosmic UI — 克制版
   深蓝黑为底，粉只做标点；保留斜切/硬边/档案感，
   去掉大面积紫色、霓虹阴影和满屏倾斜。
   ========================================================= */

:root {
  --ink: #080d1c;
  --ink-2: #0d1426;
  --ink-3: #141c33;
  --ink-4: #1c2542;
  --paper: #f2eee6;
  --paper-2: #e4ded2;
  --paper-3: #d6cec0;
  --red: #f0aec8;
  --red-2: #f7c9db;
  --blue: #4f7fd9;
  --cyan: #8fd7e0;
  --purple: #4a4f7a;
  --yellow: #e3c27a;
  --muted: #8b93ad;
  --muted-ink: #5d6070;
  --line: rgba(242, 238, 230, 0.14);
  --line-strong: rgba(242, 238, 230, 0.26);
  --line-ink: rgba(8, 13, 28, 0.18);
}

body {
  background:
    radial-gradient(70% 52% at 12% -10%, rgba(79, 127, 217, 0.18), transparent 65%),
    radial-gradient(42% 36% at 92% 0%, rgba(240, 174, 200, 0.09), transparent 68%),
    var(--ink);
}

body.menu-open {
  overflow: hidden;
}

body::after {
  opacity: 0.05;
  mix-blend-mode: soft-light;
}

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(180deg, rgba(8, 13, 28, 0.9), rgba(8, 13, 28, 0.35));
}

.site-header.is-scrolled {
  background: rgba(8, 13, 28, 0.88);
  border-bottom-color: var(--line);
  box-shadow: none;
}

.brand__mark::after {
  background: var(--red);
}

.brand__sub {
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: rgba(242, 238, 230, 0.66);
  transition: color 0.25s, transform 0.35s var(--ease);
}

.nav a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--red);
  transform: translateY(-50%) rotate(45deg) scale(0);
  transition: transform 0.3s var(--ease);
}

.nav a::after {
  display: block;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.nav a:hover,
.nav a.is-active,
.nav a:focus-visible {
  color: var(--paper);
  transform: translateY(-2px);
}

.nav a:hover::before,
.nav a.is-active::before,
.nav a:focus-visible::before {
  transform: translateY(-50%) rotate(45deg) scale(1);
}

.nav a:hover::after,
.nav a.is-active::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  box-shadow: 0 0 12px rgba(240, 174, 200, 0.55);
}

/* 全屏菜单中的 P5 式高亮选择条 */
.menu-open .nav.is-open a {
  position: relative;
  padding-left: 48px;
  padding-right: 48px;
  clip-path: polygon(
    0 0, calc(100% - 12px) 0, 100% 12px,
    100% 100%, 12px 100%, 0 calc(100% - 12px)
  );
}

.menu-open .nav.is-open a::before {
  content: "▪";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: auto;
  height: auto;
  background: none;
  font-size: 18px;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}

.menu-open .nav.is-open a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(0) skewX(-8deg);
  transform-origin: left;
  z-index: -1;
  box-shadow: none;
}

.menu-open .nav.is-open a:hover,
.menu-open .nav.is-open a.is-active,
.menu-open .nav.is-open a:focus-visible {
  color: var(--paper);
  transform: scale(1.02);
}

.menu-open .nav.is-open a:hover::before,
.menu-open .nav.is-open a.is-active::before,
.menu-open .nav.is-open a:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) rotate(72deg);
}

.menu-open .nav.is-open a:hover::after,
.menu-open .nav.is-open a.is-active::after,
.menu-open .nav.is-open a:focus-visible::after {
  transform: scaleX(1) skewX(-8deg);
  box-shadow: 0 0 24px rgba(240, 174, 200, 0.45);
}

.nav__ext {
  color: var(--muted) !important;
}

.nav__ext:hover { color: var(--paper) !important; }

/* 键盘或菜单按钮触发时，桌面也切为全屏菜单 */
.nav.is-open {
  position: fixed;
  inset: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 0 var(--gutter);
  padding-left: clamp(60px, 24vw, 360px);
  padding-bottom: 110px;
  z-index: 200;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  background: #080d1c;
  overscroll-behavior: contain;
}

/* 菜单项不完全对齐，带一点错位和旋转，避免死板 */
.nav.is-open > a {
  --menu-x: 0px;
  --menu-r: 0deg;
  transform: translateX(var(--menu-x)) rotate(var(--menu-r));
  transition: color 0.25s, transform 0.4s var(--ease);
}

.nav.is-open > a:nth-of-type(1) { --menu-x: 0px;   --menu-r: -1deg; }
.nav.is-open > a:nth-of-type(2) { --menu-x: 28px;  --menu-r: 0.8deg; }
.nav.is-open > a:nth-of-type(3) { --menu-x: 8px;   --menu-r: -0.5deg; }
.nav.is-open > a:nth-of-type(4) { --menu-x: 44px;  --menu-r: 0.6deg; }
.nav.is-open > a:nth-of-type(5) { --menu-x: 16px;  --menu-r: -0.8deg; }

.nav.is-open > a:hover,
.nav.is-open > a:focus-visible,
.nav.is-open > a.is-active {
  transform: translateX(calc(var(--menu-x) + 26px)) rotate(0deg) scale(1.02);
}

.nav.is-open .nav-sections {
  display: flex;
}

.nav.is-open .nav__command {
  display: block;
}

/* 右半面：视觉图为底的朦胧文艺感 */
.nav__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  overflow: hidden;
}

.nav.is-open .nav__visual { opacity: 1; }

.nav__visual::before {
  content: "";
  position: absolute;
  right: -4%;
  top: -12%;
  bottom: -12%;
  width: 62%;
  background: url("../assets/img/cosmic-visual.jpg") center center / cover no-repeat;
  filter: blur(18px) saturate(1.14) contrast(1);
  opacity: 0.38;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.32) 30%, #000 68%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.32) 30%, #000 68%, #000 100%);
}

.nav__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 54% at 80% 40%, rgba(240, 174, 200, 0.12), transparent 72%),
    radial-gradient(38% 46% at 94% 72%, rgba(79, 127, 217, 0.14), transparent 74%),
    linear-gradient(100deg, rgba(8, 13, 28, 0.99) 0%, rgba(8, 13, 28, 0.95) 32%, rgba(8, 13, 28, 0.62) 60%, rgba(8, 13, 28, 0.34) 100%);
}

.nav.is-open > a,
.nav.is-open .nav-sections {
  position: relative;
  z-index: 1;
}

.nav.is-open .nav__command {
  z-index: 0;
}

.nav.is-open::before,
.nav.is-open::after {
  content: "";
  position: absolute;
  width: clamp(120px, 22vw, 320px);
  height: clamp(120px, 22vw, 320px);
  border: 1px solid var(--line-strong);
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
}

.nav.is-open::before {
  left: var(--gutter);
  top: calc(var(--header-h) + 20px);
  border-right: 0;
  border-bottom: 0;
}

.nav.is-open::after {
  right: var(--gutter);
  bottom: calc(var(--header-h) + 20px);
  border-left: 0;
  border-top: 0;
}

.nav.is-open .nav-sections__label {
  color: var(--red-2);
}

/* 全屏菜单打开时的统一 stagger（桌面按 MENU/"/" 触发时也生效） */
.menu-open .nav a,
.menu-open .nav-sections {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), color 0.25s;
  text-align: center;
  justify-content: center;
}

.menu-open .nav.is-open a,
.menu-open .nav.is-open .nav-sections {
  opacity: 1;
  transform: translateX(0);
}

.menu-open .nav.is-open a:nth-child(1) { transition-delay: 0.08s; }
.menu-open .nav.is-open a:nth-child(2) { transition-delay: 0.14s; }
.menu-open .nav.is-open a:nth-child(3) { transition-delay: 0.20s; }
.menu-open .nav.is-open a:nth-child(4) { transition-delay: 0.26s; }
.menu-open .nav.is-open a:nth-child(5) { transition-delay: 0.32s; }
.menu-open .nav.is-open .nav-sections { transition-delay: 0.38s; }

.nav-toggle span {
  background: var(--paper);
  box-shadow: none;
}

/* ---------- hero background ---------- */
.hero {
  background:
    radial-gradient(60% 55% at 78% 20%, rgba(79, 127, 217, 0.14), transparent 70%),
    radial-gradient(40% 40% at 15% 72%, rgba(240, 174, 200, 0.06), transparent 72%),
    var(--ink);
}

.hero__grid-bg {
  background-image: radial-gradient(rgba(242, 238, 230, 0.2) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.32;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.hero__stars {
  opacity: 0.75;
  animation-duration: 9s;
}

.hero__ghost {
  -webkit-text-stroke-color: rgba(143, 215, 224, 0.1);
  text-shadow: none;
}

.hero__title .cn {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.hero__title .en {
  -webkit-text-stroke: 1.5px rgba(143, 215, 224, 0.8);
  text-shadow: none;
}

.eyebrow {
  background: none;
  color: var(--red-2);
  padding: 0;
  transform: none;
  font-weight: 500;
}

.eyebrow::before {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--red);
}

.hero__lead b { color: var(--paper); }

.tag {
  border-color: rgba(242, 238, 230, 0.2);
  background: transparent;
  box-shadow: none;
}

.tag i {
  background: var(--red);
  box-shadow: none;
}

/* ---------- hero visual: contain the cosmic art ---------- */
.hero__visual {
  width: min(100%, 440px);
  padding: 0;
}

.hero-poster {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #060a15;
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 10% center;
  filter: saturate(0.92) contrast(1.04);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 13, 28, 0.82), transparent 42%),
    linear-gradient(120deg, rgba(8, 13, 28, 0.35), transparent 55%);
  pointer-events: none;
}

 .hero-poster__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 62px;
  height: 62px;
  background: var(--red);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 3;
}

.hero-poster__corner::after {
  content: "▪";
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 14px;
  color: var(--paper);
  transform: rotate(15deg);
}

.hero-poster__scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(8, 13, 28, 0.18) 3px 4px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-poster figcaption {
  position: absolute;
  z-index: 4;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(242, 238, 230, 0.74);
}

.hero-data {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 0.9fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hero-data div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-data span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero-data b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(242, 238, 230, 0.86);
}

/* ---------- buttons ---------- */
.btn {
  background: var(--red);
  color: var(--ink);
  border: 1px solid var(--red);
  box-shadow: 2px 2px 0 rgba(240, 174, 200, 0.24);
  transform: none;
  font-weight: 600;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
}

.btn:hover {
  background: transparent;
  color: var(--paper);
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn--ghost:hover {
  background: transparent;
  color: var(--red-2);
  border-color: var(--red);
}

/* ---------- ticker: thin transmission strip ---------- */
.ticker {
  background: rgba(6, 10, 21, 0.86);
  color: rgba(242, 238, 230, 0.62);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: none;
}

.ticker__group b {
  font-weight: 500;
  letter-spacing: 0.14em;
}

.ticker__group span {
  color: var(--red);
  text-shadow: none;
}

/* ---------- hero: layered ATLUS-style title ---------- */
.hero__title {
  position: relative;
  z-index: 1;
  line-height: 0.82;
  margin-top: 14px;
}

.hero__title .cn {
  position: relative;
  z-index: 2;
  display: block;
  text-shadow: 4px 4px 0 rgba(240, 174, 200, 0.18);
}

.hero__title .en {
  position: absolute;
  left: -0.08em;
  top: 0.72em;
  z-index: 1;
  display: block;
  font-family: var(--font-disp);
  font-size: 0.58em;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240, 174, 200, 0.7);
  transform: rotate(-3.5deg) skewX(-6deg);
  opacity: 0.9;
  white-space: nowrap;
}

.hero__title::before {
  content: "✦";
  position: absolute;
  left: -0.35em;
  top: -0.18em;
  font-size: 0.18em;
  color: var(--red);
  z-index: 3;
  animation: spin-slow 8s linear infinite;
}

.hero__title::after {
  content: "";
  position: absolute;
  right: 0.1em;
  bottom: 0.05em;
  width: 0.22em;
  height: 0.22em;
  background: var(--red);
  transform: rotate(45deg);
  z-index: 3;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(240, 174, 200, 0.1);
  border: 1px solid rgba(240, 174, 200, 0.35);
  padding: 6px 12px;
  transform: rotate(-1.5deg);
  font-weight: 500;
}

.eyebrow::before { width: 18px; }

.hero__lead {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--red);
}

.tag {
  position: relative;
  background: rgba(242, 238, 230, 0.04);
  border: 1px solid var(--line-strong);
  transform: skewX(-8deg);
  padding: 5px 11px;
}

.tag i {
  transform: rotate(45deg);
  border-radius: 0;
}

.tag span {
  display: inline-block;
  transform: skewX(8deg);
}

/* poster frame: more panel-like */
.hero-poster {
  position: relative;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  border: 2px solid var(--paper);
  box-shadow:
    8px 8px 0 var(--red),
    0 34px 90px rgba(0, 0, 0, 0.58);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 22% 28%, rgba(242, 238, 230, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 30%, rgba(242, 238, 230, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 26% 32%, rgba(242, 238, 230, 0.12) 0 2px, transparent 3px);
  background-size: 10px 10px;
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-poster__corner {
  width: 72px;
  height: 72px;
}

.hero-data {
  position: relative;
  background: rgba(8, 13, 28, 0.7);
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  margin-top: 18px;
  transform: rotate(-1deg);
}

.hero-data::before {
  content: "DATA";
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--red);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  padding: 2px 7px;
}

/* ---------- section heads: big rotated English label ---------- */
.section-head {
  position: relative;
  align-items: flex-start;
}

.section-head > div {
  position: relative;
  z-index: 1;
}

.section-head h2 {
  position: relative;
  display: inline-block;
}

.section-head h2 em {
  position: absolute;
  left: 0.05em;
  top: 0.92em;
  display: block;
  font-size: 0.62em;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 230, 0.18);
  transform: rotate(-3deg) skewX(-8deg);
  white-space: nowrap;
  z-index: -1;
}

.section--paper .section-head h2 em {
  -webkit-text-stroke: 1px rgba(8, 13, 28, 0.14);
}

.section-head h2::after {
  content: "✦";
  display: inline-block;
  margin-left: 8px;
  font-size: 0.22em;
  color: var(--red);
  vertical-align: top;
  transform: rotate(16deg);
}

.section-head__index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(240, 174, 200, 0.08);
  border: 1px solid rgba(240, 174, 200, 0.28);
  padding: 4px 10px;
  transform: rotate(-1.5deg);
  font-weight: 500;
}

.section-head__index::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--red);
}

.section-head__aside {
  border-left: 2px solid var(--red);
  padding-left: 16px;
}

.section--paper .section-head__index { color: var(--red); }

.section--paper .section-head__aside {
  border-left-color: rgba(8, 13, 28, 0.24);
}

/* ---------- cards: panel with cut corners and layered shadow ---------- */
.cards {
  gap: 16px;
  background: transparent;
  border: 0;
}

.card {
  position: relative;
  background: #f7f3eb;
  border: 1px solid rgba(8, 13, 28, 0.24);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transform: none;
  transition: transform 0.28s var(--ease), border-color 0.28s, background 0.28s;
}

.card::before {
  content: "";
  position: absolute;
  left: 8px;
  right: -8px;
  top: 8px;
  bottom: -8px;
  border: 1px solid rgba(240, 174, 200, 0.28);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  z-index: -1;
  transition: transform 0.28s var(--ease);
}

.card:hover {
  background: #fbf8f2;
  color: var(--ink);
  border-color: var(--red);
  transform: translateY(-5px) rotate(-0.5deg);
}

.card:hover::before {
  transform: translate(-4px, -4px);
}

.card:hover p,
.card:hover .card__foot {
  color: var(--muted-ink);
}

.card__no {
  display: inline-flex;
  align-self: flex-start;
  background: var(--red);
  color: var(--ink);
  padding: 4px 9px;
  transform: rotate(-2deg);
  font-weight: 600;
  font-size: 9px;
}

.card h3 {
  position: relative;
  display: inline-block;
}

.card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 12px);
  opacity: 0.35;
}

.card__foot { border-top-color: rgba(8, 13, 28, 0.16); }

.card:hover .card__foot { border-top-color: rgba(240, 174, 200, 0.25); }

.card__arrow { transition: transform 0.3s var(--ease); }
.card:hover .card__arrow { transform: translateX(8px); color: var(--red); }

/* ---------- concept keywords ---------- */
.keyword {
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.keyword:hover {
  background: rgba(240, 174, 200, 0.035);
}

.keyword::after {
  content: "−";
  position: absolute;
  right: 18px;
  top: 28px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--red);
  transition: transform 0.3s var(--ease), color 0.25s;
}

.keyword.is-collapsed::after {
  content: "+";
}

.keyword h3 {
  text-shadow: none;
  padding-right: 40px;
}

.keyword p {
  overflow: hidden;
}

.keyword.is-collapsed {
  background: rgba(242, 238, 230, 0.02);
}

.keyword__no {
  color: var(--red);
  font-weight: 500;
}

.keyword h3 small { color: var(--muted); }

/* ---------- sound meters ---------- */
.meter__bar {
  border: 1px solid rgba(242, 238, 230, 0.16);
  background: rgba(242, 238, 230, 0.04);
}

.meter__bar i {
  background: linear-gradient(90deg, var(--red), var(--blue));
  box-shadow: none;
}

/* ---------- timeline ---------- */
.tl-item__date { color: var(--red-2); }

.tl-item--now .tl-item__date {
  display: inline-block;
  background: var(--red);
  color: var(--ink);
  padding: 2px 7px;
  transform: none;
  font-weight: 600;
}

.tl-item--now .tl-item__body h4 { color: var(--paper); }

/* ---------- crew ---------- */
.crew {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.crew__slot {
  background: var(--ink-2);
  border: 0;
  box-shadow: none;
}

.crew__slot--filled {
  background: #111a30;
  box-shadow: inset 0 0 0 1px rgba(240, 174, 200, 0.5);
}

.crew__slot--filled h4 { color: var(--red-2); }
.crew__slot--filled span { color: var(--muted); }

/* ---------- transmission / video ---------- */
.transmission {
  background:
    radial-gradient(55% 95% at 15% 30%, rgba(240, 174, 200, 0.08), transparent 65%),
    radial-gradient(55% 90% at 88% 75%, rgba(79, 127, 217, 0.1), transparent 68%),
    #070c19;
}

.transmission__video {
  border: 1px solid rgba(240, 174, 200, 0.75);
  transform: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.transmission__video::before {
  border-color: rgba(242, 238, 230, 0.12);
}

.transmission__badge {
  background: var(--red);
  color: var(--ink);
  font-weight: 600;
}

.transmission__play span {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 10px rgba(242, 238, 230, 0.1);
}

.transmission__play:hover span {
  background: var(--red);
  color: var(--ink);
  transform: scale(1.06);
}

.video-controls__play,
.video-controls__mute {
  background: rgba(242, 238, 230, 0.12);
  color: var(--paper);
}

.video-controls__play:hover,
.video-controls__mute:hover {
  background: var(--red);
  color: var(--paper);
}

.video-controls__track { background: rgba(242, 238, 230, 0.22); }
.video-controls__fill { background: var(--red); }
.video-controls__time { color: rgba(242, 238, 230, 0.8); }

.transmission__copy h3 {
  text-shadow: none;
}

.transmission__copy h3 small { color: var(--red-2); }

.transmission__meta { border-top-color: rgba(242, 238, 230, 0.16); }

/* ---------- player ---------- */
.player {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(79, 127, 217, 0.08), transparent 50%),
    var(--ink-2);
  box-shadow: none;
}

.player__art {
  border: 1px solid var(--line);
  transform: none;
}

.player__stamp {
  background: var(--red);
  color: var(--ink);
  font-weight: 600;
}

.player__title { text-shadow: none; }

.play-btn {
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.play-btn:hover {
  background: var(--red);
  color: var(--ink);
  transform: scale(1.04);
}

.wave i {
  animation: wave-signal 2.8s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.wave.is-playing i {
  animation-play-state: running;
}

.embed-slot { border-top: 1px solid var(--line); }

.embed-slot iframe {
  border: 1px solid rgba(8, 13, 28, 0.2);
  background: var(--paper);
}

.track.is-current {
  background: rgba(240, 174, 200, 0.08);
  color: var(--paper);
  box-shadow: inset 2px 0 0 var(--red);
}

.track.is-current .track__no { color: var(--red-2); }
.track.is-current .track__name { color: var(--paper); }

.track.is-current .track__play {
  background: var(--red);
  border-color: var(--red);
  color: var(--ink);
}

/* ---------- page hero ---------- */
.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.page-hero__ghost {
  -webkit-text-stroke-color: rgba(143, 215, 224, 0.1);
}

.page-hero__coords span:first-child {
  background: none;
  color: var(--red-2);
  padding: 0;
  font-weight: 500;
}

/* ---------- novel reader ---------- */
.reader {
  border: 1px solid rgba(8, 13, 28, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.reader__notice {
  border-left: 2px solid var(--red);
  background: rgba(240, 174, 200, 0.05);
}

.chapter-link.is-active {
  background: rgba(240, 174, 200, 0.06);
  color: var(--paper);
  border-left: 2px solid var(--red);
}

.chapter-link.is-active .chapter-link__no,
.chapter-link.is-active .chapter-link__title,
.chapter-link.is-active .chapter-link__state {
  color: var(--paper);
}

.chapter-link.is-active .chapter-link__no { color: var(--red-2); }

.tool.is-on {
  background: var(--red);
  color: var(--ink);
  border-color: var(--red);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #050915;
}

.footer__wordmark { text-shadow: none; }

.footer__wordmark em {
  -webkit-text-stroke: 1px rgba(143, 215, 224, 0.55);
}

/* =========================================================
   SIGNAL PLAYER — 居中版 Atlus 风格控制台
   ========================================================= */
body { padding-bottom: 122px; }

.signal-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(1060px, calc(100vw - 28px));
  z-index: 170;
  font-family: var(--font-sans);
}

.signal-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 100vw;
  height: 150px;
  transform: translateX(-50%);
  z-index: -1;
  background: linear-gradient(to top, #05070f 34%, rgba(5, 7, 15, 0.78) 58%, transparent 100%);
  pointer-events: none;
}

.signal-bar__shell {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  background: #05070f;
  border: 2px solid var(--paper);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  box-shadow:
    0 0 0 1px var(--red),
    0 26px 70px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.5s;
}

.signal-bar.is-playing .signal-bar__shell {
  box-shadow:
    0 0 0 1px var(--red),
    0 0 42px rgba(240, 174, 200, 0.28),
    0 26px 70px rgba(0, 0, 0, 0.7);
}

/* ---------- handle ---------- */
.signal-bar__handle {
  position: relative;
  width: 100%;
  height: 92px;
  display: grid;
  grid-template-columns: 50px 50px minmax(0, 1fr) 160px 30px 54px;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 14px 24px;
  background:
    repeating-linear-gradient(-55deg, transparent 0 22px, rgba(240, 174, 200, 0.055) 22px 24px),
    linear-gradient(100deg, #080c1a 0 68%, #111a33);
  color: var(--paper);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}

.signal-mini-play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 4px 4px 0 rgba(242, 238, 230, 0.9);
  margin-top: 6px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.signal-mini-play:hover {
  background: var(--paper);
  color: var(--ink);
  transform: scale(1.06) rotate(-5deg);
}

.signal-mini-play svg { width: 13px; height: 13px; }

.signal-bar.is-playing .signal-mini-play {
  background: var(--paper);
  color: var(--ink);
}

.signal-sticker {
  position: absolute;
  top: 9px;
  left: 22px;
  z-index: 3;
  background: var(--red);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 4px 8px;
  transform: rotate(-3deg);
}

.signal-cover {
  width: 52px;
  height: 52px;
  display: block;
  overflow: hidden;
  border: 2px solid var(--paper);
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 var(--red);
  margin-top: 6px;
}

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

.signal-handle__now {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 6px;
}

.signal-handle__now small {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  color: var(--red-2);
  margin-bottom: 3px;
}

.signal-handle__now b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-handle__now em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-mini {
  height: 5px;
  background: rgba(242, 238, 230, 0.14);
  transform: skewX(-18deg);
  overflow: hidden;
  position: relative;
}

.signal-mini i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--red);
  transition: width 0.15s linear;
}

.signal-eq {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 3px;
  height: 18px;
}

.signal-eq i {
  display: block;
  width: 3px;
  background: var(--red);
  animation: signal-eq 1.05s ease-in-out infinite alternate;
  animation-play-state: paused;
  transform-origin: bottom;
}

.signal-bar.is-playing .signal-eq i { animation-play-state: running; }

.signal-eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.signal-eq i:nth-child(2) { height: 15px; animation-delay: -0.25s; }
.signal-eq i:nth-child(3) { height: 9px; animation-delay: -0.5s; }
.signal-eq i:nth-child(4) { height: 18px; animation-delay: -0.75s; }

@keyframes signal-eq {
  from { transform: scaleY(0.35); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

.signal-handle__hint {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 7px 8px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.signal-bar__handle:hover .signal-handle__hint {
  background: var(--paper);
  color: var(--ink);
}

.signal-bar.is-pulse .signal-handle__now b {
  animation: signal-pulse 0.45s var(--ease);
}

@keyframes signal-pulse {
  0% { opacity: 0.25; transform: translateX(-8px) skewX(-6deg); }
  100% { opacity: 1; transform: translateX(0) skewX(0); }
}

/* ---------- expanded console ---------- */
.signal-bar__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
  max-height: 0;
  padding: 0 28px;
  overflow: hidden;
  background:
    radial-gradient(rgba(242, 238, 230, 0.055) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(180deg, #0b1022, #070b17);
  border-bottom: 2px solid var(--paper);
  transition: max-height 0.45s var(--ease), padding 0.35s var(--ease);
}

.signal-bar[data-open="true"] .signal-bar__panel {
  max-height: 440px;
  padding: 26px 28px 28px;
}

.signal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 4;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.signal-close:hover { background: var(--red); color: var(--ink); }

.signal-stage {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.signal-art {
  width: 190px;
  flex: 0 0 190px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--paper);
  transform: rotate(-2deg);
  box-shadow: 8px 8px 0 var(--red);
  background: #000;
}

.signal-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signal-info {
  min-width: 0;
  flex: 1;
}

.signal-kicker {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: var(--red-2);
}

.signal-info h3 {
  margin-top: 6px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-info p {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.signal-seek {
  position: relative;
  height: 8px;
  margin-top: 22px;
  background: rgba(242, 238, 230, 0.13);
  transform: skewX(-18deg);
  cursor: pointer;
  touch-action: none;
}

.signal-seek i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--red);
  transition: width 0.12s linear;
}

.signal-seek b {
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--red);
  border: 2px solid var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.12s linear, transform 0.2s var(--ease);
}

.signal-seek:hover b {
  transform: translate(-50%, -50%) scale(1.15);
}

.signal-time {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.signal-time b { color: var(--paper); font-weight: 500; }

.signal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.signal-controls button {
  height: 38px;
  min-width: 38px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.signal-controls button:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.signal-controls button svg { width: 11px; height: 11px; }

.signal-controls .signal-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--ink);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--paper);
  transition: transform 0.2s, background 0.2s;
}

.signal-controls .signal-play:hover {
  background: var(--paper);
  color: var(--ink);
  transform: scale(1.06) rotate(-5deg);
}

.signal-controls a {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.signal-controls a:hover { color: var(--paper); }

.signal-volume {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.signal-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 86px;
  height: 16px;
  background: transparent;
  cursor: pointer;
}

.signal-volume input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(242, 238, 230, 0.18);
}

.signal-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  background: var(--red);
  border: 1px solid var(--paper);
  border-radius: 50%;
  transform: rotate(0deg);
  transition: transform 0.2s var(--ease);
}

.signal-volume input[type="range"]:hover::-webkit-slider-thumb {
  transform: rotate(72deg) scale(1.15);
}

.signal-volume input[type="range"]::-moz-range-track {
  height: 4px;
  background: rgba(242, 238, 230, 0.18);
}

.signal-volume input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--red);
  border: 1px solid var(--paper);
  border-radius: 0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transform: rotate(0deg);
  transition: transform 0.2s var(--ease);
}

.signal-volume input[type="range"]:hover::-moz-range-thumb {
  transform: rotate(72deg) scale(1.15);
}

/* ---------- queue ---------- */
.signal-queue-wrap {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.signal-queue__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.signal-queue {
  max-height: 250px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.signal-q {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(242, 238, 230, 0.07);
  color: rgba(242, 238, 230, 0.7);
  text-align: left;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.signal-q:hover {
  background: rgba(242, 238, 230, 0.04);
  color: var(--paper);
  padding-left: 9px;
}

.signal-q.is-current {
  background: rgba(240, 174, 200, 0.12);
  color: var(--paper);
  box-shadow: inset 2px 0 0 var(--red);
}

.signal-q.is-current .signal-q__no { color: var(--red-2); }

.signal-q__no {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
}

.signal-q__name {
  min-width: 0;
  font-size: 10.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-q__name small {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
}

.signal-q__name em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-q__dur {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
}

/* ---------- entrance ---------- */
@keyframes persona-pop {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__copy > * {
  animation: persona-pop 0.65s var(--ease) both;
}

.hero__copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.18s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.24s; }

/* =========================================================
   Atlus-style cursor / trail / page shift
   ========================================================= */
@media (pointer: fine) {
  body.has-reticle,
  body.has-reticle a,
  body.has-reticle button,
  body.has-reticle [role="button"],
  body.has-reticle .card,
  body.has-reticle .track {
    cursor: none;
  }
}

.reticle {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}

.reticle.is-on { opacity: 1; }

.reticle__ring {
  position: absolute;
  left: -23px;
  top: -23px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(242, 238, 230, 0.75);
  border-radius: 50%;
  transition: transform 0.18s, border-color 0.18s;
}

.reticle__ring::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(240, 174, 200, 0.6);
  border-radius: 50%;
  animation: reticle-spin 8s linear infinite;
}

.reticle__ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 5px;
  height: 5px;
  background: var(--red);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes reticle-spin {
  to { transform: rotate(360deg); }
}

.reticle__dot {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--red);
  transition: background 0.18s;
}

.reticle__cross {
  position: absolute;
  background: rgba(242, 238, 230, 0.38);
}

.reticle__cross--x { left: -37px; top: 0; width: 74px; height: 1px; }
.reticle__cross--y { left: 0; top: -37px; width: 1px; height: 74px; }

.reticle__ship {
  position: absolute;
  left: -5px;
  top: -32px;
  width: 10px;
  height: 9px;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 50% 70%, 0 100%);
  transform: rotate(180deg);
  filter: drop-shadow(0 0 6px rgba(240, 174, 200, 0.8));
}

.reticle.is-active .reticle__ring {
  transform: scale(1.22);
  border-color: var(--red);
}

.reticle.is-active .reticle__dot { background: var(--cyan); }
.reticle.is-down .reticle__ring { transform: scale(0.82); }

.trail-layer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

.trail {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--red);
  transform: rotate(45deg);
  animation: trail-fade 0.72s ease-out forwards;
  opacity: 0.86;
}

.trail--cyan {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--cyan);
}

.trail--burst {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  animation-duration: 0.55s;
}

@keyframes trail-fade {
  from { opacity: 0.9; transform: translate(0, 0) rotate(45deg) scale(1); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(225deg) scale(0.2); }
}

/* ---------- home command deck ---------- */
.hero--command {
  justify-content: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 150px;
}

.hero--command .ticker {
  display: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/img/cosmic-visual.jpg") center 46% / 100% auto no-repeat;
  filter: saturate(1.12) contrast(1.02);
  opacity: 0.7;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 13, 28, 0.99) 0%, rgba(8, 13, 28, 0.96) 30%, rgba(8, 13, 28, 0.74) 56%, rgba(8, 13, 28, 0.34) 82%, rgba(8, 13, 28, 0.16) 100%),
    radial-gradient(48% 52% at 84% 26%, rgba(240, 174, 200, 0.16), transparent 72%),
    radial-gradient(40% 46% at 96% 78%, rgba(79, 127, 217, 0.16), transparent 74%),
    repeating-linear-gradient(-55deg, transparent 0 3px, rgba(8, 13, 28, 0.16) 3px 4px);
}

.hero--command .container {
  position: relative;
  z-index: 2;
}

.hero__inner--command {
  display: block;
}

.command {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vh, 30px);
  width: min(100%, 680px);
  max-width: 680px;
}

.command__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero--command .hero__title {
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 0.92;
}

.hero--command .hero__title .en {
  position: static;
  display: block;
  margin-top: 12px;
  font-size: 0.3em;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 174, 200, 0.8);
  transform: none;
  opacity: 1;
  white-space: nowrap;
}

.command__lead {
  max-width: 32em;
  padding-left: 14px;
  border-left: 2px solid var(--red);
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.command__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.command__item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px;
  padding: 11px 16px 11px 12px;
  border-bottom: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 0.32s var(--ease), border-color 0.25s;
}

.command__item:nth-child(2) { margin-left: 5px; }
.command__item:nth-child(3) { margin-left: 1px; }
.command__item:nth-child(4) { margin-left: 8px; }
.command__item:nth-child(5) { margin-left: 3px; }

.command__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red);
  transform: scaleX(0) skewX(-7deg);
  transform-origin: left center;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.command__item:hover,
.command__item:focus-visible {
  transform: translateX(9px);
  border-color: transparent;
}

.command__item:hover::before,
.command__item:focus-visible::before,
.command__item.is-active::before {
  transform: scaleX(1) skewX(-7deg);
}

.command__no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--red);
  transition: color 0.25s;
}

.command__main {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.command__main b {
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--paper);
  transition: color 0.25s;
}

.command__main small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  transition: color 0.25s;
}

.command__note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: right;
  color: var(--muted);
  transition: color 0.25s;
}

.command__arrow {
  font-size: 16px;
  color: var(--red);
  transition: color 0.25s, transform 0.25s;
}

.command__item:hover .command__no,
.command__item:hover .command__main b,
.command__item:hover .command__main small,
.command__item:hover .command__note,
.command__item:hover .command__arrow,
.command__item.is-active .command__no,
.command__item.is-active .command__main b,
.command__item.is-active .command__main small,
.command__item.is-active .command__note,
.command__item.is-active .command__arrow {
  color: var(--ink);
}

.command__item:hover .command__arrow,
.command__item:focus-visible .command__arrow {
  transform: translateX(4px);
}

.command__foot {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.command__scroll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red-2);
}

.command__scroll i {
  font-style: normal;
  animation: command-bob 1.8s ease-in-out infinite;
}

@keyframes command-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.command__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--cyan);
}

.command__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(240, 174, 200, 0.8);
}

/* ---------- menu jump emphasis ---------- */
.menu-focus .command__item {
  animation: command-focus 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-focus .command__item:nth-child(1) { animation-delay: 0.02s; }
.menu-focus .command__item:nth-child(2) { animation-delay: 0.08s; }
.menu-focus .command__item:nth-child(3) { animation-delay: 0.14s; }
.menu-focus .command__item:nth-child(4) { animation-delay: 0.2s; }
.menu-focus .command__item:nth-child(5) { animation-delay: 0.26s; }

@keyframes command-focus {
  0% { opacity: 0; transform: translateX(54px); }
  100% { opacity: 1; transform: none; }
}

/* ---------- home video window ---------- */
.hero-video {
  position: absolute;
  right: clamp(20px, 4vw, 72px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(240px, 27vw, 400px);
  aspect-ratio: 9 / 16;
  max-height: 60vh;
  z-index: 1;
  overflow: hidden;
  background: #0d1426;
  border: 1px solid rgba(242, 238, 230, 0.18);
  box-shadow: 10px 10px 0 rgba(240, 174, 200, 0.16);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
}

.hero-video__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 13, 28, 0.08), rgba(8, 13, 28, 0.5)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(8, 13, 28, 0.12) 3px 4px);
}

.hero-video figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--paper);
}

.hero-video {
  cursor: pointer;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(240, 174, 200, 0.55);
  pointer-events: none;
  animation: hero-video-pulse 2.4s ease-in-out infinite;
}

@keyframes hero-video-pulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(240, 174, 200, 0); }
  50% { box-shadow: inset 0 0 0 4px rgba(240, 174, 200, 0.22); }
}

.hero-video__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--red);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-video__info {
  position: absolute;
  left: 14px;
  bottom: 40px;
  z-index: 2;
  display: grid;
  gap: 2px;
}

.hero-video__info b {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: var(--paper);
  text-shadow: 3px 3px 0 rgba(8, 13, 28, 0.8);
}

.hero-video__info small {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--red-2);
}

.hero-video__cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--paper);
}

.hero-video__cta i {
  font-style: normal;
  color: var(--red);
  transition: transform 0.2s;
}

.hero-video:hover .hero-video__cta i {
  transform: translateX(4px);
}

/* ---------- mini game window ---------- */
.game-window {
  width: min(100%, 760px);
  margin: 0 auto;
  background: #0b1022;
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.game-window__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--red);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.game-window__screen {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(40px, 8vh, 96px) 24px;
  text-align: center;
  background:
    repeating-linear-gradient(-55deg, transparent 0 30px, rgba(240, 174, 200, 0.04) 30px 31px),
    radial-gradient(50% 60% at 50% 30%, rgba(240, 174, 200, 0.12), transparent 70%);
}

.game-window__title {
  font-family: var(--font-disp);
  font-size: clamp(38px, 7vw, 80px);
  letter-spacing: -0.03em;
  color: rgba(242, 238, 230, 0.16);
  text-shadow: 3px 3px 0 rgba(240, 174, 200, 0.2);
}

.game-window__screen p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.game-window__screen--play {
  display: flex;
  justify-content: center;
  padding: 14px 0;
  background: #05070f;
}

.game-window__screen--play iframe {
  display: block;
  width: auto;
  height: min(70vh, 680px);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border: 1px solid var(--line);
  background: #05070f;
}

.game-window__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.game-window__foot a {
  color: var(--red-2);
}

/* 首页小游戏入口卡片 */
.game-entry {
  display: grid;
  gap: 8px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 30px 26px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(120deg, rgba(240, 174, 200, 0.14), rgba(13, 20, 38, 0.7));
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: transform 0.3s var(--ease), background 0.3s;
}

.game-entry:hover {
  transform: translateY(-3px);
  background:
    linear-gradient(120deg, rgba(240, 174, 200, 0.22), rgba(13, 20, 38, 0.8));
}

.game-entry__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--red-2);
}

.game-entry b {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  color: var(--paper);
}

.game-entry small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- novel coming soon ---------- */
.novel-soon {
  display: grid;
  gap: 18px;
  justify-items: start;
  max-width: 720px;
  padding: clamp(48px, 9vh, 110px) 0;
}

.novel-soon h2 {
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 5px 5px 0 var(--red);
}

.novel-soon__lead {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
}

.novel-soon__meta {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--red-2);
}

/* ---------- video volume ---------- */
.video-controls__vol {
  width: 74px;
  display: flex;
  align-items: center;
}

.video-controls__vol input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

/* ---------- page transit: per-section modes ---------- */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.page-wipe.is-on,
.page-wipe.is-out {
  visibility: visible;
  pointer-events: auto;
}

.page-wipe > i {
  position: absolute;
  display: block;
  will-change: transform;
}

/* --- HOME: 斜向切面，自右扫入 --- */
.page-wipe[data-mode="slant"] > i {
  top: -16%;
  bottom: -16%;
  width: 30%;
  left: calc(-10% + var(--i) * 22%);
  background: #0d1426;
  transform: translateX(115vw) skewX(-13deg);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 8ms);
}

.page-wipe[data-mode="slant"] > i:nth-child(2),
.page-wipe[data-mode="slant"] > i:nth-child(4) {
  background: #f0aec8;
}

.page-wipe[data-mode="slant"] > i:nth-child(3) {
  background: #0a1020;
}

.page-wipe[data-mode="slant"].is-on > i {
  transform: translateX(0) skewX(-13deg);
}

.page-wipe[data-mode="slant"].is-out > i {
  transition-duration: 0.24s;
  transform: translateX(-115vw) skewX(-13deg);
}

/* --- CONCEPT: 轨道圆环自中心扩散 --- */
.page-wipe[data-mode="iris"] > i {
  left: 50%;
  top: 50%;
  width: 175vmax;
  height: 175vmax;
  margin: -87.5vmax 0 0 -87.5vmax;
  border-radius: 50%;
  background: #0d1426;
  transform: scale(0);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 30ms);
}

.page-wipe[data-mode="iris"] > i:nth-child(1) {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--red);
}

.page-wipe[data-mode="iris"] > i:nth-child(2) {
  background:
    radial-gradient(60% 60% at 50% 46%, rgba(8, 13, 28, 0.0), rgba(8, 13, 28, 0.18) 70%),
    var(--red);
}

.page-wipe[data-mode="iris"] > i:nth-child(3) {
  background:
    repeating-conic-gradient(from 0deg at 50% 45%, rgba(240, 174, 200, 0.07) 0deg 0.6deg, transparent 0.6deg 15deg),
    radial-gradient(52% 52% at 50% 40%, rgba(240, 174, 200, 0.24), transparent 72%),
    radial-gradient(40% 40% at 78% 72%, rgba(79, 127, 217, 0.22), transparent 74%),
    #111a30;
}

.page-wipe[data-mode="iris"] > i:nth-child(n + 4) {
  display: none;
}

.page-wipe[data-mode="iris"].is-on > i {
  transform: scale(1);
}

.page-wipe[data-mode="iris"].is-out > i {
  transition-duration: 0.3s;
  transform: scale(0);
}

/* --- NOVEL: 上下百叶窗合拢 --- */
.page-wipe[data-mode="blinds"] > i {
  top: -10%;
  bottom: -10%;
  width: 24%;
  left: calc(-5% + var(--i) * 20.5%);
  background: #0d1426;
  transform: translateY(-125%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 20ms);
}

.page-wipe[data-mode="blinds"] > i:nth-child(even) {
  background: #f0aec8;
  transform: translateY(125%);
}

.page-wipe[data-mode="blinds"].is-on > i {
  transform: translateY(0);
}

.page-wipe[data-mode="blinds"].is-out > i {
  transition-duration: 0.28s;
  transform: translateY(-125%);
}

.page-wipe[data-mode="blinds"].is-out > i:nth-child(even) {
  transform: translateY(125%);
}

/* --- MUSIC: 横向声波条展开 --- */
.page-wipe[data-mode="wave"] > i {
  left: -6%;
  right: -6%;
  height: 27%;
  top: calc(-3% + var(--i) * 19%);
  background: #0d1426;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 18ms);
}

.page-wipe[data-mode="wave"] > i:nth-child(odd) {
  background: #f0aec8;
  transform-origin: right center;
}

.page-wipe[data-mode="wave"].is-on > i {
  transform: scaleX(1);
}

.page-wipe[data-mode="wave"].is-out > i {
  transition-duration: 0.24s;
  transform: scaleX(0);
}

/* --- SHOWS: 快门闪光 + 斜切 --- */
.page-wipe[data-mode="flash"] > i {
  top: -16%;
  bottom: -16%;
  width: 30%;
  left: calc(-10% + var(--i) * 22%);
  background: #0d1426;
  transform: translateX(115vw) skewX(-13deg);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 8ms);
}

.page-wipe[data-mode="flash"] > i:nth-child(even) {
  background: #f0aec8;
}

.page-wipe[data-mode="flash"].is-on > i {
  transform: translateX(0) skewX(-13deg);
}

.page-wipe[data-mode="flash"].is-out > i {
  transition-duration: 0.22s;
  transform: translateX(-115vw) skewX(-13deg);
}

.page-wipe[data-mode="flash"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
}

.page-wipe[data-mode="flash"].is-flashing::before {
  animation: wipe-flash 0.44s ease-out both;
}

@keyframes wipe-flash {
  0% { opacity: 0; }
  10% { opacity: 0.9; }
  100% { opacity: 0; }
}

/* 硬跳转进入时，先遮住页面，等条带覆盖后再揭示 */
html.wipe-pending body {
  background: #0d1426;
}

html.wipe-pending body::after {
  content: "SIGNAL SHIFT";
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-content: center;
  font-family: var(--font-disp);
  font-size: clamp(38px, 7vw, 88px);
  letter-spacing: -0.02em;
  color: var(--paper);
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(240, 174, 200, 0.16), transparent 70%),
    #0d1426;
}

html.wipe-pending main,
html.wipe-pending .site-header,
html.wipe-pending .signal-bar,
html.wipe-pending .scroll-line,
html.wipe-pending .reticle {
  visibility: hidden;
}

/* 条带纹理 */
.page-wipe > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-55deg, transparent 0 4px, rgba(8, 13, 28, 0.12) 4px 5px),
    radial-gradient(80% 60% at 30% 20%, rgba(242, 238, 230, 0.05), transparent 70%);
  pointer-events: none;
}

/* --- mark --- */
.page-wipe__mark {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  opacity: 0;
  transform: scale(0.94) skewX(-6deg);
  transition: opacity 0.18s, transform 0.28s var(--ease);
}

.page-wipe.is-on .page-wipe__mark {
  opacity: 1;
  transform: scale(1) skewX(-6deg);
  transition-delay: 0.1s;
}

.page-wipe.is-out .page-wipe__mark {
  opacity: 0;
  transform: scale(1.06) skewX(-6deg);
  transition-delay: 0s;
}

.page-wipe__star {
  width: clamp(56px, 9vw, 112px);
  height: clamp(56px, 9vw, 112px);
  color: var(--red);
  stroke: var(--paper);
  stroke-width: 1.4;
  filter: drop-shadow(4px 4px 0 rgba(8, 13, 28, 0.6));
}

.page-wipe.is-on .page-wipe__star {
  animation: wipe-star-spin 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wipe-star-spin {
  0% { transform: scale(0) rotate(-100deg); }
  62% { transform: scale(1.14) rotate(16deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.page-wipe__title {
  font-family: var(--font-sans);
  font-size: clamp(38px, 6.4vw, 92px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 4px 4px 0 rgba(10, 8, 14, 0.88), 0 0 18px rgba(10, 8, 14, 0.55);
  -webkit-text-stroke: 1px rgba(10, 8, 14, 0.5);
  white-space: nowrap;
}

.page-wipe__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--red-2);
}

.page-wipe__sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.page-wipe__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.55;
  animation: wipe-scan 0.85s linear infinite;
  pointer-events: none;
}

@keyframes wipe-scan {
  from { transform: translateY(-46vh); }
  to { transform: translateY(46vh); }
}

/* 转场期间只做极轻的旧页呼吸，不做位移，避免揭开时露出空白 */
main.is-leaving {
  pointer-events: none;
}

/* =========================================================
   多层交互：卡片 / 导航 / 入场
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  clip-path: inset(0 0 14% 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), clip-path 0.8s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

.card { position: relative; }

.nav a.is-active,
.nav a:hover { position: relative; }

.nav a.is-active::before,
.nav a:hover::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--red);
  transform: translateY(-50%) rotate(45deg);
}

.hero-poster {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out;
}

/* ---------- card / release / show hover layers ---------- */
.track {
  position: relative;
  overflow: hidden;
  transition: padding-left 0.35s var(--ease), color 0.25s;
}

.track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(240, 174, 200, 0.22) 0 52%, transparent 52%);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.track:hover::before,
.track.is-current::before {
  transform: translateX(0);
}

.track > * {
  position: relative;
  z-index: 1;
}

.track:hover {
  background: transparent;
  padding-left: 16px;
  color: var(--paper);
}

.track.is-current {
  background: transparent;
  padding-left: 16px;
  color: var(--paper);
}

.track.is-current .track__no { color: var(--red-2); }
.track.is-current .track__name { color: var(--paper); }

.track.is-current .track__play {
  background: var(--red);
  border-color: var(--red);
  color: var(--ink);
}

.track__play {
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}

.track__play:hover {
  transform: scale(1.12) rotate(-5deg);
}

.show {
  position: relative;
  overflow: hidden;
  transition: padding-left 0.4s var(--ease), color 0.25s;
}

.show::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(240, 174, 200, 0.16) 0 48%, transparent 48%);
  transform: translateX(-101%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.show:hover::before {
  transform: translateX(0);
}

.show > * {
  position: relative;
  z-index: 1;
}

.show:hover {
  background: transparent;
  padding-left: 16px;
}

.show:hover .show__name { color: var(--paper); }

.show__state {
  transition: transform 0.25s, background 0.25s;
}

.show:hover .show__state {
  transform: rotate(-3deg);
}

.release {
  position: relative;
  transition: transform 0.3s var(--ease);
}

.release:hover { transform: translateY(-4px); }

.release__art {
  position: relative;
  overflow: hidden;
}

.release__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(240, 174, 200, 0.28), transparent 55%),
    linear-gradient(to top, rgba(8, 13, 28, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.release:hover .release__art::after { opacity: 1; }

.release__art img {
  transition: transform 0.5s var(--ease), filter 0.3s;
}

.release:hover .release__art img {
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.03);
}

.release:hover .release__title { color: var(--red); }

.chapter-link {
  position: relative;
  overflow: hidden;
  transition: padding-left 0.25s var(--ease), color 0.2s;
}

.chapter-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(240, 174, 200, 0.12) 0 45%, transparent 45%);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.chapter-link:hover::before,
.chapter-link.is-active::before {
  transform: translateX(0);
}

.chapter-link > * {
  position: relative;
  z-index: 1;
}

.chapter-link:hover,
.chapter-link.is-active {
  background: transparent;
  padding-left: 10px;
}

.track.is-current {
  box-shadow: none;
}

/* paper section overrides */
.section--paper .show-list { border-top-color: var(--line-ink); }
.section--paper .show { border-bottom-color: var(--line-ink); }
.section--paper .show::before {
  background: linear-gradient(105deg, rgba(240, 174, 200, 0.1) 0 45%, transparent 45%);
}
.section--paper .show:hover { background: transparent; }
.section--paper .show__date { color: var(--ink); }
.section--paper .show__date span,
.section--paper .show__name small,
.section--paper .show__venue em { color: var(--muted-ink); }
.section--paper .show__venue { color: rgba(11, 11, 12, 0.72); }
.section--paper .show__state { border-color: var(--line-ink); color: var(--muted-ink); }
.section--paper .show:hover .show__name { color: var(--ink); }

/* manga halftone overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  opacity: 0.028;
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 238, 230, 0.9) 0 1.5px, transparent 2px);
  background-size: 7px 7px;
  mix-blend-mode: overlay;
}

#playerPlay {
  background: var(--red);
  color: var(--ink);
  border-color: transparent;
}

#playerPlay:hover {
  background: var(--paper);
  color: var(--ink);
}

.signal-bar:not(.is-playing) .signal-mini-play {
  animation: mini-ping 2.6s ease-out infinite;
}

@keyframes mini-ping {
  0%, 100% { box-shadow: 4px 4px 0 rgba(242, 238, 230, 0.9), 0 0 0 0 rgba(240, 174, 200, 0.35); }
  50% { box-shadow: 4px 4px 0 rgba(242, 238, 230, 0.9), 0 0 0 12px rgba(240, 174, 200, 0); }
}

.scroll-line {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 180;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  box-shadow: 0 0 10px rgba(240, 174, 200, 0.5);
  pointer-events: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .signal-bar__panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .signal-bar[data-open="true"] .signal-bar__panel { max-height: 500px; }

  .signal-queue-wrap {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }

  .signal-queue { max-height: 148px; }
}

@media (max-width: 900px) {
  .hero--command {
    padding-top: calc(var(--header-h) + 34px);
    padding-bottom: 112px;
    min-height: 0;
  }

  .hero__bg {
    background-size: cover;
    background-position: center 26%;
    opacity: 0.56;
  }

  .hero__inner--command {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero--command .hero__title {
    font-size: clamp(40px, 11vw, 56px);
  }

  .command {
    gap: 18px;
  }

  .command__lead {
    font-size: 12px;
    line-height: 1.75;
  }

  .command__item {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    gap: 10px;
    padding: 8px 10px;
  }

  .command__main {
    gap: 8px;
    flex-wrap: wrap;
  }

  .command__main b {
    font-size: clamp(24px, 7.4vw, 32px);
  }

  .command__main small {
    font-size: 7.5px;
    letter-spacing: 0.12em;
  }

  .command__note {
    display: none;
  }

  .command__foot {
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 8px;
  }

  .command__status {
    margin-left: 0;
  }

  .nav {
    background: rgba(8, 13, 28, 0.98);
    border-right: 1px solid var(--red);
    counter-reset: nav;
    overflow: hidden;
  }

  .nav::before {
    content: "MENU";
    position: absolute;
    right: -2vw;
    bottom: -0.18em;
    font-family: var(--font-disp);
    font-size: 34vw;
    line-height: 0.8;
    color: rgba(242, 238, 230, 0.035);
    pointer-events: none;
  }

  .nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 28vw;
    height: 100%;
    background: linear-gradient(180deg, rgba(240, 174, 200, 0.16), transparent 65%);
    pointer-events: none;
  }

  /* 窄屏：视觉图只留右上/右下柔光，避免斜向光带压住菜单文字 */
  .nav__visual::before {
    right: -30%;
    top: -18%;
    bottom: auto;
    width: 120%;
    height: 72%;
    background-position: 60% 20%;
    opacity: 0.2;
    filter: blur(24px) saturate(1.05);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 62%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 62%, transparent 100%);
  }

  .nav__visual::after {
    background:
      radial-gradient(70% 36% at 88% 6%, rgba(240, 174, 200, 0.14), transparent 74%),
      radial-gradient(60% 34% at 100% 88%, rgba(79, 127, 217, 0.14), transparent 76%),
      linear-gradient(180deg, rgba(8, 13, 28, 0.72) 0%, rgba(8, 13, 28, 0.9) 42%, rgba(8, 13, 28, 0.98) 100%);
  }

  .nav.is-open {
    top: var(--header-h);
    justify-content: flex-start;
    overflow-y: auto;
    padding: 26px 22px 170px;
    gap: 0;
    mask-image: linear-gradient(180deg, transparent 0, #000 26px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px);
  }

  .menu-open .site-header {
    background: #080d1c;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open::before {
    top: 20px;
  }

  .nav.is-open::after {
    bottom: 20px;
  }

  .nav.is-open > a {
    --menu-x: 0px !important;
    --menu-r: 0deg !important;
  }

  .nav.is-open > a:hover,
  .nav.is-open > a:focus-visible,
  .nav.is-open > a.is-active {
    transform: translateX(10px) scale(1.01);
  }

  .menu-open .nav.is-open a {
    padding-left: 40px;
    padding-right: 18px;
    font-size: clamp(26px, 7vw, 34px);
    justify-content: flex-start;
    text-align: left;
  }

  .nav.is-open .nav-sections {
    max-width: none;
    margin-top: 22px;
    padding-top: 18px;
    padding-left: 40px;
    align-items: flex-start;
    text-align: left;
  }

  .nav.is-open .nav-sections__label {
    text-align: left;
  }

  .nav.is-open .nav-sections__link {
    font-size: 13px !important;
    justify-content: flex-start;
    text-align: left;
  }

  .menu-open .nav.is-open .nav-sections__link::before {
    display: none !important;
  }

  .menu-open .nav.is-open a::before {
    opacity: 0.55;
    font-size: 14px;
  }

  .nav.is-open .nav__command {
    top: 30%;
    font-size: 26vw;
    transform: translate(calc(-50% - 2vw), -50%);
  }

  .nav a {
    counter-increment: nav;
    display: flex;
    align-items: baseline;
    gap: 16px;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), color 0.25s;
  }

  .nav.is-open a {
    opacity: 1;
    transform: translateX(0);
  }

  .nav.is-open a:nth-child(1) { transition-delay: 0.08s; }
  .nav.is-open a:nth-child(2) { transition-delay: 0.14s; }
  .nav.is-open a:nth-child(3) { transition-delay: 0.20s; }
  .nav.is-open a:nth-child(4) { transition-delay: 0.26s; }
  .nav.is-open a:nth-child(5) { transition-delay: 0.32s; }

  .nav a::before {
    content: "0" counter(nav);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--red);
    transform: none;
    position: static;
  }

  .nav a::after { display: none; }

  .nav a:hover::before,
  .nav a.is-active::before {
    content: "0" counter(nav);
    position: static;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    color: var(--red-2);
  }

  .nav a {
    padding: 14px 0;
  }

  .hero__visual {
    width: min(100%, 400px);
  }

  .hero-poster {
    aspect-ratio: 4 / 4.6;
  }

  .transmission__video {
    transform: none;
  }

  .signal-bar__handle {
    grid-template-columns: 44px 42px minmax(0, 1fr) 32px;
    height: 78px;
    gap: 10px;
    padding: 18px 14px 10px;
  }

  .signal-mini-play { width: 42px; height: 42px; }
  .signal-mini-play svg { width: 11px; height: 11px; }

  .signal-mini,
  .signal-eq { display: none; }

  .signal-cover { width: 40px; height: 40px; }

  .signal-sticker { left: 14px; top: 5px; }

  .signal-bar__panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .signal-bar[data-open="true"] .signal-bar__panel {
    max-height: 72vh;
    overflow: auto;
    padding: 26px 20px 24px;
  }

  .signal-stage { gap: 18px; }
  .signal-art { width: 140px; flex-basis: 140px; }

  .signal-queue { max-height: 30vh; }
}

@media (max-width: 620px) {
  .hero-poster {
    aspect-ratio: 4 / 4.7;
  }

  .hero-poster img {
    object-position: 20% center;
  }

  .hero-data {
    grid-template-columns: 1fr 1fr;
  }

  .player { box-shadow: none; }

  .transmission__video {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  }

  body { padding-bottom: 96px; }

  .signal-bar {
    width: calc(100vw - 14px);
    bottom: 7px;
  }

  .signal-bar__handle {
    height: 70px;
    grid-template-columns: 40px 38px minmax(0, 1fr) 30px;
    padding: 16px 12px 8px;
    gap: 9px;
  }

  .signal-handle__now b { font-size: 13px; }
  .signal-handle__now em { font-size: 7px; }
  .signal-handle__hint { font-size: 7.5px; padding: 6px 5px; }
  .signal-cover { width: 36px; height: 36px; }
  .signal-mini-play { width: 38px; height: 38px; box-shadow: 3px 3px 0 rgba(242,238,230,.9); }

  .signal-bar[data-open="true"] .signal-bar__panel {
    max-height: 76vh;
    padding: 24px 16px 20px;
  }

  .signal-stage {
    flex-direction: column;
    align-items: flex-start;
  }

  .signal-art { width: 116px; flex-basis: 116px; }

  .signal-info { width: 100%; }
  .signal-info h3 { font-size: 30px; }

  .signal-controls { gap: 8px; }
  .signal-controls .signal-play { width: 48px; height: 48px; }

  .signal-controls a { margin-left: 0; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *,
  .hero__stars {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero-video {
    display: none;
  }
}

/* 锚点滚动时给固定 header 留出空间 */
section[id],
main [id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}


/* bars 转场条带（现场） */
.page-wipe[data-mode="bars"] > i {
  top: 0;
  bottom: auto;
  left: -4%;
  width: 108%;
  height: 20%;
  background: #0d1426;
}
.page-wipe[data-mode="bars"] > i:nth-child(1) { top: 0; }
.page-wipe[data-mode="bars"] > i:nth-child(2) { top: 20%; }
.page-wipe[data-mode="bars"] > i:nth-child(3) { top: 40%; }
.page-wipe[data-mode="bars"] > i:nth-child(4) { top: 60%; }
.page-wipe[data-mode="bars"] > i:nth-child(5) { top: 80%; }
.page-wipe[data-mode="bars"] > i:nth-child(even) { background: #f0aec8; }
