/* 星夜频道 · 旧录像带菜单 × 日系极简 */

:root {
  --bg: #0a0b0c;
  --bg-soft: #101112;
  --fg: #e8eae6;
  --muted: #8a8f8c;
  --line: #2a2d2c;
  --red: #c8322b;
  --red-dim: #7d221d;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body { user-select: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2d2c; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3e3c; }
* { scrollbar-width: thin; scrollbar-color: #2a2d2c transparent; }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, p, h1, h2, h3 { margin: 0; }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.mono {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.screen { display: none; position: fixed; inset: 0; }
.screen.is-active { display: block; }

/* ---------- 通用按钮 ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 14px 26px;
  border: 1px solid var(--fg);
  border-radius: 2px;
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  letter-spacing: 0.14em;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--fg);
  color: var(--bg);
  outline: none;
}
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary:disabled:hover { background: transparent; color: var(--fg); }

.btn-text {
  position: relative;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: color 140ms var(--ease);
}
.btn-text:hover,
.btn-text:focus-visible { color: var(--fg); outline: none; }
.btn-text::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--fg);
  transition: right 180ms var(--ease);
}
.btn-text:hover::after { right: 0; }

.btn-ghost {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: border-color 140ms, background 140ms;
}
.btn-ghost:hover,
.btn-ghost:focus-visible,
.btn-ghost.active { border-color: var(--fg); background: rgba(232, 234, 230, 0.04); outline: none; }
.btn-ghost.active { color: var(--fg); border-color: var(--fg); }
.btn-ghost:disabled { opacity: 0.3; cursor: not-allowed; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color 140ms, border-color 140ms;
}
.icon-btn:hover { color: var(--fg); border-color: var(--line); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }

kbd {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 5px;
  color: var(--muted);
}

.rec-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 50, 43, 0.12);
  animation: rec-pulse 2.4s steps(2, end) infinite;
}
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.alert-dot {
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 2px;
}

/* ---------- 启动 ---------- */

.screen-boot.is-active { display: flex; align-items: center; justify-content: center; }
.boot-inner { width: min(360px, 70vw); text-align: center; }
.boot-label { color: var(--muted); margin-bottom: 18px; }
.boot-track { height: 1px; background: var(--line); overflow: hidden; }
.boot-track span { display: block; height: 100%; width: 0%; background: var(--fg); transition: width 180ms linear; }
.boot-note { margin-top: 14px; font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }

/* ---------- 开场 ---------- */

.screen-intro { background: #000; overflow: hidden; }
.screen-intro.is-active { display: block; }
.intro-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.intro-stage.on { opacity: 1; }

.intro-cam-dot {
  position: absolute;
  right: 36px; bottom: 32px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2c2f2e;
  transition: background 400ms;
}
.intro-cam-dot.on { background: var(--red); box-shadow: 0 0 12px rgba(200, 50, 43, 0.5); }

.intro-connect {
  position: absolute;
  bottom: 24%;
  color: var(--muted);
  opacity: 0;
  transition: opacity 400ms;
}
.intro-connect.on { opacity: 1; }

.intro-crt {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  background: rgba(232, 234, 230, 0.85);
  transform: scaleX(0);
  opacity: 0;
}
.intro-crt.open {
  animation: crt-open 620ms steps(8, end) forwards;
}
@keyframes crt-open {
  0% { transform: scaleX(0.02); opacity: 1; }
  40% { transform: scaleX(1); opacity: 0.9; }
  70% { transform: scaleX(1) scaleY(8); opacity: 0.4; }
  100% { transform: scaleX(1) scaleY(40); opacity: 0; }
}

.intro-logo {
  width: 100%;
  text-align: center;
  font-size: clamp(30px, 4.4vw, 54px);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  opacity: 0;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}
.intro-logo.on { animation: type-in 700ms steps(12, end) forwards; }
@keyframes type-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

.intro-members {
  display: flex;
  gap: 22px;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 300ms;
}
.intro-members.on { opacity: 1; }
.intro-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms steps(3, end), transform 200ms steps(3, end);
}
.intro-member.on { opacity: 1; transform: none; }
.intro-member img {
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.8);
  box-shadow: 0 0 0 1px var(--line);
}
.intro-member span { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }

.intro-operator {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  opacity: 0;
}
.intro-operator.on { opacity: 1; }
.intro-operator .caret {
  display: inline-block;
  width: 7px; height: 13px;
  margin-left: 4px;
  background: var(--fg);
  vertical-align: -2px;
  animation: blink 1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.intro-credit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0;
  transition: opacity 400ms;
}
.intro-credit.on { opacity: 1; }

.intro-rec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0;
}
.intro-rec.on { opacity: 1; }

.intro-title {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 800ms var(--ease);
  pointer-events: none;
}
.intro-title.on { opacity: 1; }
.intro-title-main { font-size: clamp(34px, 5vw, 60px); letter-spacing: 0.4em; text-indent: 0.4em; }
.intro-title-sub { color: var(--muted); }

.intro-skip {
  position: absolute;
  right: 36px; bottom: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}
.intro-skip.on { opacity: 1; pointer-events: auto; }

/* ---------- 大厅 ---------- */

.screen-lobby {
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.94), rgba(5, 6, 6, 0.72) 45%, rgba(5, 6, 6, 0.94)),
    var(--bg);
  overflow: hidden;
}
.screen-lobby::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--lobby-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  filter: grayscale(1) contrast(1.1);
  pointer-events: none;
}
.screen-lobby::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  pointer-events: none;
  opacity: 0.5;
}

.lobby-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, 92vw);
  height: 100%;
  margin: 0 auto;
  padding: clamp(26px, 4vh, 48px) 0 22px;
  display: flex;
  flex-direction: column;
}

.lobby-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.screen-lobby.is-closed .lobby-logo,
.screen-lobby.is-closed .lobby-logo-sub { color: var(--muted); }
.screen-lobby.is-closed .rec-dot {
  background: var(--line);
  box-shadow: none;
  animation: none;
}
.lobby-logo { font-size: 22px; letter-spacing: 0.36em; }
.lobby-logo-sub { color: var(--muted); margin-top: 4px; }
.lobby-status { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.lobby-status b { color: var(--fg); font-weight: 400; }
.rec-chip { display: flex; align-items: center; gap: 7px; font: inherit; letter-spacing: inherit; color: var(--muted); }
.rec-chip:hover { color: var(--fg); }
.lobby-divider { width: 1px; height: 12px; background: var(--line); }

.lobby-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 280px;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 5vh, 56px) 0;
}

.panel-label { color: var(--muted); margin-bottom: 18px; }

.member-list { display: flex; flex-direction: column; }
.member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(42, 45, 44, 0.55);
  transition: opacity 160ms;
}
.member:last-child { border-bottom: 0; }
.member img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.82);
  box-shadow: 0 0 0 1px rgba(42, 45, 44, 0.9);
}
.member-body { min-width: 0; }
.member-name { font-size: 13px; letter-spacing: 0.08em; }
.member-state { color: var(--muted); margin-top: 1px; font-size: 10px; }
.member.is-dark img { filter: grayscale(1) brightness(0.35); }
.member.is-dark .member-name { color: var(--muted); }
.member.is-placeholder .avatar-fallback {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--line);
  background: #0d0e0f;
}
.member:hover .member-name { color: #fff; }

.lobby-operator {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.lobby-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.lobby-caption {
  max-width: 26em;
  margin-bottom: 34px;
  font-size: 15px;
  color: var(--muted);
  line-height: 2;
  letter-spacing: 0.06em;
  transition: opacity 300ms;
}
.lobby-actions { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.lobby-links { display: flex; align-items: center; gap: 26px; }
.lobby-footer {
  margin-top: clamp(40px, 8vh, 80px);
  color: var(--muted);
  opacity: 0.7;
  font-size: 10px;
  text-transform: none;
}

.lobby-notice {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3vw, 34px);
  align-self: start;
  margin-top: 6px;
}
.notice-text { font-size: 13px; line-height: 2; color: var(--muted); }
.notice-sign { margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--line); }

.lobby-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.lobby-bottom b { color: var(--fg); font-weight: 400; }

/* ---------- 弹窗 ---------- */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 5, 0.78);
  backdrop-filter: blur(2px);
  padding: 24px;
}
.modal-card {
  position: relative;
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 32px 36px;
  background: #0d0e0f;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal-card.wide { width: min(760px, 94vw); }
.modal-kicker { color: var(--red); margin-bottom: 12px; }
.modal-title { font-size: 22px; font-weight: 500; letter-spacing: 0.12em; }
.modal-sub { margin-top: 6px; color: var(--muted); font-size: 13px; }
.modal-note { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.modal-actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.modal-actions.right { justify-content: flex-end; }
.modal-actions .btn-primary { min-width: 0; padding: 11px 22px; font-size: 14px; }
.modal-close { position: absolute; top: 14px; right: 14px; }

.warning-list { margin-top: 18px; border-top: 1px solid var(--line); }
.warning-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.warning-list b { color: var(--fg); font-weight: 500; }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(42, 45, 44, 0.6);
  font-size: 13px;
}
.switch-row:last-child { border-bottom: 0; }
.switch-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.switch {
  position: relative;
  width: 38px; height: 20px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 160ms, background 160ms;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms var(--ease), background 160ms;
}
.switch[aria-checked="true"] { border-color: var(--fg); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--fg); }

.slider-row { padding: 14px 0; border-bottom: 1px solid rgba(42, 45, 44, 0.6); }
.slider-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.slider-head span:last-child { color: var(--muted); font-family: var(--mono); font-size: 11px; }
input[type="range"] {
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 10px; height: 10px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--fg);
}
input[type="range"]::-moz-range-track { height: 1px; background: var(--line); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--fg); }

.night-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.night-card {
  position: relative;
  min-height: 104px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b0c0d;
  transition: border-color 160ms, background 160ms;
  overflow: hidden;
}
.night-card:hover:not(.locked) { border-color: var(--fg); background: #111213; }
.night-card .nc-index { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.16em; }
.night-card .nc-title { margin-top: 8px; font-size: 14px; letter-spacing: 0.08em; }
.night-card .nc-state { margin-top: 8px; font-size: 11px; color: var(--muted); }
.night-card.locked { cursor: not-allowed; }
.night-card.locked::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(232, 234, 230, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(232, 234, 230, 0.03) 3px 4px);
  opacity: 0.7;
}
.night-card.locked .nc-title { color: var(--line); }
.night-card.active { border-color: var(--red); }
.night-card .nc-badge {
  position: absolute;
  right: 10px; top: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--red);
}

.archive-list { margin-top: 18px; max-height: 50vh; overflow: auto; padding-right: 8px; border-top: 1px solid var(--line); }
.archive-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}
.archive-row:hover { color: #fff; }
.archive-row small { color: var(--muted); font-size: 11px; }
.archive-row.locked { color: var(--line); cursor: default; }
.archive-row.locked small { color: var(--line); }
.archive-body { margin-top: 16px; font-size: 13px; line-height: 2; color: var(--muted); white-space: pre-wrap; }
.archive-body:empty { display: none; }

.debug-tabs { display: flex; gap: 22px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.debug-tab { padding: 8px 0; color: var(--muted); font-size: 13px; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.debug-tab.active { color: var(--fg); border-color: var(--fg); }
.debug-panel { margin-top: 16px; }
.debug-panel .switch-row { padding: 9px 0; }
.debug-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.debug-slider { display: grid; grid-template-columns: 74px 1fr 30px; align-items: center; gap: 12px; padding: 7px 0; font-size: 12px; }
.debug-slider output { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; }
.debug-slider input[type="range"] { width: 100%; }

/* ---------- 游戏 · 值班室 ---------- */

.screen-game { background: #000; }
.office { position: absolute; inset: 0; overflow: hidden; background: #000; }

.office-world {
  position: absolute;
  inset: -4% -5%;
  transition: transform 700ms var(--ease);
  will-change: transform;
}
.office-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.72) contrast(1.06);
}
.office-world::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 62%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.door-zone {
  position: absolute;
  top: 6%;
  bottom: 14%;
  width: 19%;
  overflow: hidden;
  pointer-events: none;
}
.door-zone.left { left: 0; }
.door-zone.right { right: 0; }
.door-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 55%);
  z-index: 2;
}
.door-zone.right::before { background: linear-gradient(270deg, rgba(0, 0, 0, 0.55), transparent 55%); }

.door-shutter {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    repeating-linear-gradient(180deg, #1b1e1f 0 12px, #0c0e0f 12px 14px),
    linear-gradient(90deg, #101213, #191c1d 50%, #101213);
  border: 1px solid #2b2f30;
  transform: translateY(-102%);
  transition: transform 320ms var(--ease);
  box-shadow: inset 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 0, 0, 0.7);
}
.door-shutter::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--red-dim);
  box-shadow: 0 0 8px rgba(200, 50, 43, 0.35);
}
.door-shutter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 9px;
  background: #232728;
  box-shadow: 0 -2px 0 #34393b;
}
.door-zone.closed .door-shutter { transform: translateY(0); }

.door-zone.lit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(226, 230, 214, 0.05);
  backdrop-filter: brightness(1.75) saturate(0.75) contrast(1.05);
  -webkit-backdrop-filter: brightness(1.75) saturate(0.75) contrast(1.05);
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
}
.door-zone.right.lit::after {
  mask-image: linear-gradient(270deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 55%, transparent 100%);
}
.door-light {
  position: absolute;
  inset: -10% -30%;
  z-index: 3;
  opacity: 0;
  background:
    radial-gradient(ellipse at 30% 45%, rgba(236, 240, 224, 0.62), rgba(226, 230, 214, 0.14) 42%, transparent 72%);
  mix-blend-mode: screen;
  transition: opacity 160ms steps(3, end);
}
.door-zone.right .door-light {
  background: radial-gradient(ellipse at 70% 45%, rgba(236, 240, 224, 0.62), rgba(226, 230, 214, 0.14) 42%, transparent 72%);
}
.door-light.on { opacity: 1; animation: light-flicker 1.8s steps(6, end) infinite; }
@keyframes light-flicker {
  0%, 100% { opacity: 1; }
  12% { opacity: 0.82; }
  14% { opacity: 1; }
  62% { opacity: 0.92; }
  64% { opacity: 1; }
}

.door-peek {
  position: absolute;
  bottom: 20%;
  z-index: 4;
  width: 60%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 220ms var(--ease);
  overflow: hidden;
  filter: grayscale(1) brightness(0.5) contrast(1.15);
  box-shadow: 0 0 0 1px rgba(232, 234, 230, 0.08), 0 0 50px rgba(0, 0, 0, 0.75);
  mask-image: radial-gradient(circle at 50% 45%, #000 52%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 52%, transparent 76%);
}
.door-zone.left .door-peek { left: 12%; }
.door-zone.right .door-peek { right: 12%; }
.door-peek img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.1);
}
.door-peek.show { opacity: 0.38; }
.door-zone.lit .door-peek.show {
  opacity: 0.92;
  filter: grayscale(0.45) brightness(0.86) contrast(1.1);
}
.door-zone.lit .door-peek { box-shadow: 0 0 0 1px rgba(232, 234, 230, 0.18), 0 0 60px rgba(0, 0, 0, 0.6); }

.ctrl-stack {
  position: absolute;
  bottom: 22%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 180ms;
}
.ctrl-stack.left { left: 21%; }
.ctrl-stack.right { right: 21%; }
.ctrl-btn {
  position: relative;
  width: 62px; height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(232, 234, 230, 0.16);
  border-radius: 2px;
  background: rgba(10, 11, 12, 0.55);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: border-color 140ms, color 140ms, background 140ms;
}
.ctrl-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.ctrl-btn:hover { border-color: rgba(232, 234, 230, 0.5); color: var(--fg); }
.ctrl-btn.active { border-color: var(--fg); color: var(--bg); background: var(--fg); }
.ctrl-btn.denied { animation: deny 240ms steps(2, end); }
@keyframes deny { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.ctrl-btn::after {
  content: attr(data-hint);
  position: absolute;
  top: 4px; right: 5px;
  font-family: var(--mono);
  font-size: 8px;
  opacity: 0.5;
}

.tablet-tab {
  position: absolute;
  left: 50%;
  bottom: 3.5%;
  z-index: 11;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(232, 234, 230, 0.22);
  border-radius: 2px;
  background: rgba(10, 11, 12, 0.6);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: color 140ms, border-color 140ms, opacity 200ms;
}
.tablet-tab svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.tablet-tab:hover { color: var(--fg); border-color: var(--fg); }
.tablet-tab kbd { margin-left: 2px; }
body.tablet-open .tablet-tab { opacity: 0; pointer-events: none; }
body.tablet-open .item-bar,
body.tablet-open .crank-hint,
body.tablet-open .ctrl-stack { opacity: 0; pointer-events: none; }

.item-bar {
  position: absolute;
  right: 3.5%;
  bottom: 22%;
  z-index: 10;
  display: flex;
  gap: 6px;
  transition: opacity 180ms;
}
.item-btn {
  position: relative;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 234, 230, 0.14);
  border-radius: 2px;
  background: rgba(10, 11, 12, 0.55);
  color: var(--muted);
  transition: color 140ms, border-color 140ms, opacity 140ms;
}
.item-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.item-btn:hover { color: var(--fg); border-color: rgba(232, 234, 230, 0.5); }
.item-btn .item-key {
  position: absolute;
  right: 3px; bottom: 2px;
  font-size: 8px;
  letter-spacing: 0;
  color: var(--muted);
}
.item-btn .item-count {
  position: absolute;
  left: 4px; top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}
.item-btn.is-empty { opacity: 0.28; }
.item-btn.is-disabled { opacity: 0.3; }
.item-btn.is-active { border-color: var(--fg); color: var(--fg); }

.crank-hint {
  position: absolute;
  right: 3.5%;
  bottom: 31%;
  z-index: 10;
  color: var(--muted);
  font-size: 9px;
}

.signature {
  position: absolute;
  right: 9%;
  bottom: 38%;
  z-index: 12;
  font-family: var(--serif, "Songti SC", "Noto Serif SC", serif);
  font-size: 26px;
  font-style: italic;
  letter-spacing: 0.12em;
  color: rgba(232, 234, 230, 0.55);
  text-shadow: 0 0 18px rgba(232, 234, 230, 0.2);
  opacity: 0;
  transform: rotate(-4deg);
  transition: opacity 500ms steps(4, end);
  pointer-events: none;
}
.signature.show { opacity: 0.85; animation: sig-glitch 900ms steps(5, end) 1; }
@keyframes sig-glitch {
  0% { transform: translate(0, 0) rotate(-4deg); opacity: 0; }
  20% { transform: translate(-3px, 1px) rotate(-4deg); opacity: 0.9; }
  40% { transform: translate(2px, -1px) rotate(-4deg); opacity: 0.5; }
  60% { transform: translate(0, 0) rotate(-4deg); opacity: 0.85; }
  100% { transform: translate(0, 0) rotate(-4deg); opacity: 0.85; }
}

.reveal-tag {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  max-width: 72vw;
  padding: 5px 14px;
  border: 1px solid rgba(200, 50, 43, 0.5);
  color: var(--red);
  font-size: 8.5px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-align: center;
  background: rgba(10, 11, 12, 0.7);
}

#fx-canvas {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
}

/* ---------- 监控平板 ---------- */

.tablet {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(1120px, 94vw);
  height: min(780px, 84vh);
  transform: translate(-50%, 104%);
  transition: transform 380ms var(--ease);
  padding: 0 10px 10px;
}
.tablet.is-open { transform: translate(-50%, 1.5%); }
.tablet-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0b0c0d;
  border: 1px solid #242728;
  border-radius: 3px;
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.8), inset 0 0 0 3px #080909;
  overflow: hidden;
}
.tablet-bar {
  flex: none;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.tablet-title { flex: 1; font-size: 9px; }
.tablet-clock { font-size: 10px; color: var(--muted); }
.tablet-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 258px; }

.cam-feed {
  position: relative;
  background: #050606;
  overflow: hidden;
  cursor: crosshair;
}
.cam-feed img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) contrast(1.15) brightness(0.82); transition: opacity 120ms; }
.cam-feed.is-switching img { opacity: 0.15; }
.cam-tint {
  position: absolute;
  inset: 0;
  background: rgba(150, 170, 160, 0.06);
  mix-blend-mode: screen;
  pointer-events: none;
}
.cam-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.cam-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-radial-gradient(circle at 17% 32%, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 2px);
  animation: noise-shift 1.2s steps(3, end) infinite;
}
@keyframes noise-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-1%, 1%); }
  66% { transform: translate(1%, -1%); }
  100% { transform: translate(0, 0); }
}
.cam-feed.is-switching .cam-noise { opacity: 1; animation-duration: 160ms; }

.cam-markers { position: absolute; inset: 0; pointer-events: none; }
.cam-marker {
  position: absolute;
  width: 84px; height: 84px;
  transform: translate(-50%, -60%);
  border-radius: 50%;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(232, 234, 230, 0.25);
  animation: marker-in 220ms steps(3, end);
}
@keyframes marker-in { from { opacity: 0; transform: translate(-50%, -60%) scale(0.92); } }
.cam-marker img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.2) brightness(0.62);
}
.cam-marker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6);
}
.cam-marker.xingjin img { filter: grayscale(0.3) contrast(1.35) brightness(1.15); }
.cam-marker.xingjin { box-shadow: 0 0 0 1px rgba(232, 234, 230, 0.65), 0 0 26px rgba(232, 234, 230, 0.25); }
.cam-marker.xingyang img { filter: grayscale(1) brightness(0.45) contrast(1.3); }
.cam-marker.xingyang::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 55%, rgba(232, 234, 230, 0.08) 0 2px, transparent 2px 7px);
  mix-blend-mode: screen;
  animation: ripple 2.6s linear infinite;
  z-index: 1;
}
@keyframes ripple { from { transform: scale(0.6); opacity: 0.7; } to { transform: scale(1.3); opacity: 0; } }
.cam-marker.dim img { filter: grayscale(1) brightness(0.35); }
.cam-marker span {
  position: absolute;
  left: 50%; bottom: -17px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(232, 234, 230, 0.55);
  white-space: nowrap;
  z-index: 2;
}

.cam-hud {
  position: absolute;
  left: 14px; right: 14px; top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(232, 234, 230, 0.65);
  letter-spacing: 0.14em;
  pointer-events: none;
}
.cam-rec { display: flex; align-items: center; gap: 6px; }
.cam-rec .rec-dot { width: 5px; height: 5px; }

.signal-source {
  position: absolute;
  left: 16px; bottom: 16px;
  width: 240px;
  padding: 12px 14px;
  background: rgba(8, 9, 10, 0.85);
  border: 1px solid rgba(200, 50, 43, 0.45);
  box-shadow: 0 0 30px rgba(200, 50, 43, 0.08);
}
.signal-label { color: var(--red); font-size: 8px; }
.signal-note { margin-top: 6px; font-size: 11px; color: var(--muted); }
.signal-track { height: 2px; background: var(--line); margin: 8px 0; overflow: hidden; }
.signal-track span { display: block; height: 100%; width: 0; background: var(--red); }
.signal-source .btn-ghost { width: 100%; padding: 6px; font-size: 11px; }
.signal-source .btn-ghost.holding { background: var(--fg); color: var(--bg); }

.cam-side {
  border-left: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cam-map {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-template-areas:
    ". c6 ."
    "c2 c0 c3"
    "c4 c1 c5"
    ". c7 .";
  gap: 6px;
}
.cam-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0c0d0e;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: border-color 140ms, color 140ms, background 140ms;
}
.cam-btn .cam-name { font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; }
.cam-btn:hover { border-color: var(--muted); color: var(--fg); }
.cam-btn.active { border-color: var(--fg); color: var(--fg); background: #131415; }
.cam-btn.alert { border-color: var(--red); color: var(--red); }
.cam-btn.offline { opacity: 0.35; }
.cam-btn.room-office { border-style: dashed; cursor: default; }

.cam-legend { display: flex; gap: 16px; color: var(--line); margin-top: 14px; font-size: 8px; }
.cam-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.legend-dot.ghost { background: var(--red); }
.cam-tip { margin-top: 10px; font-size: 10px; line-height: 1.7; color: var(--line); }

/* ---------- HUD ---------- */

.hud {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent);
  pointer-events: none;
}
.clock { display: flex; align-items: baseline; gap: 6px; }
.clock-hour { font-size: clamp(38px, 4.2vw, 62px); font-weight: 200; letter-spacing: 0.04em; line-height: 1; }
.clock-suffix { color: var(--muted); font-size: 10px; }
.night-label { color: var(--muted); font-size: 9px; margin-top: 8px; }

.hud-right { display: flex; align-items: flex-start; gap: 22px; }
.power { text-align: right; }
.power-head { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; }
.power-value { font-family: var(--mono); font-size: 20px; letter-spacing: 0.06em; }
.power-label { color: var(--muted); font-size: 8px; }
.power-bars { display: flex; justify-content: flex-end; gap: 3px; margin-top: 7px; }
.power-bars span { width: 9px; height: 14px; background: var(--line); }
.power-bars span.on { background: var(--fg); }
.power-bars span.low { background: var(--red); }
.usage-bars { display: flex; justify-content: flex-end; gap: 3px; margin-top: 6px; height: 6px; }
.usage-bars span { width: 9px; height: 3px; background: var(--line); }
.usage-bars span.on { background: var(--muted); }
.hud-rec { display: flex; align-items: center; gap: 7px; color: var(--muted); padding-top: 4px; }

/* ---------- 提示 / 覆盖层 ---------- */

.toast-layer {
  position: absolute;
  left: 50%;
  bottom: 12%;
  z-index: 25;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  width: min(560px, 86vw);
}
.global-toast { position: fixed; bottom: 6%; z-index: 95; }
.toast {
  padding: 8px 16px;
  background: rgba(8, 9, 10, 0.92);
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.toast.on { opacity: 1; transform: none; }
.toast.red { border-color: rgba(200, 50, 43, 0.5); color: #e6b3b0; }

.glitch-overlay {
  position: absolute;
  inset: 0;
  z-index: 22;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(0deg, rgba(232, 234, 230, 0.07) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, rgba(232, 234, 230, 0.04) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  transition: opacity 120ms;
}
.glitch-overlay.on { opacity: 1; animation: glitch-jump 240ms steps(3, end) infinite; }
@keyframes glitch-jump {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-6px, 2px); }
  66% { transform: translate(5px, -2px); }
  100% { transform: translate(0, 0); }
}

.blackout {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.blackout-title { font-size: 18px; letter-spacing: 0.3em; color: var(--muted); }
.blackout-timer { font-size: 54px; font-weight: 200; color: var(--fg); line-height: 1.1; }
.blackout-note { color: #5a5f5c; font-size: 12px; letter-spacing: 0.1em; }

.busy {
  position: absolute;
  left: 50%; bottom: 27%;
  z-index: 24;
  transform: translateX(-50%);
  width: 280px;
  padding: 14px 16px;
  background: rgba(8, 9, 10, 0.92);
  border: 1px solid var(--line);
  text-align: center;
}
.busy p { font-size: 9px; color: var(--muted); }
.busy-note { margin-top: 8px; font-size: 10px; letter-spacing: 0.04em; }
.busy-track { height: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.busy-track span { display: block; height: 100%; width: 0; background: var(--fg); }

.tape-player {
  position: absolute;
  left: 3.5%; bottom: 16%;
  z-index: 24;
  width: 330px;
  padding: 14px 16px;
  background: rgba(8, 9, 10, 0.9);
  border: 1px solid var(--line);
}
.tape-label { color: var(--red); font-size: 9px; }
.tape-text { margin-top: 8px; font-size: 12px; line-height: 1.8; color: var(--muted); }

.decoy-choice {
  position: absolute;
  left: 50%; bottom: 30%;
  z-index: 26;
  transform: translateX(-50%);
  padding: 16px 20px;
  background: rgba(8, 9, 10, 0.94);
  border: 1px solid var(--line);
  text-align: center;
}
.decoy-choice p { font-size: 12px; margin-bottom: 12px; color: var(--muted); }
.decoy-choice > div { display: flex; gap: 8px; justify-content: center; }

.night-log {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgba(4, 5, 5, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.night-log-card {
  width: min(600px, 92vw);
  padding: 40px 44px;
  border: 1px solid var(--line);
  background: #0c0d0e;
}
.night-log-source { color: var(--red); font-size: 9px; margin-bottom: 20px; }
.night-log-text { font-size: 15px; line-height: 2.2; letter-spacing: 0.04em; min-height: 9em; color: var(--muted); }
.night-log-text .tl { color: var(--fg); }
.night-log-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; }

.pause,
.end-screen {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(4, 5, 5, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.end-card {
  width: min(620px, 92vw);
  padding: 40px 44px;
  border: 1px solid var(--line);
  background: #0c0d0e;
  max-height: 88vh;
  overflow: auto;
}
.end-kicker { color: var(--red); font-size: 9px; }
.end-title { margin-top: 14px; font-size: 26px; font-weight: 400; letter-spacing: 0.16em; }
.end-sub { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.end-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 24px;
}
.end-stats > div { background: #0c0d0e; padding: 14px; }
.end-stats dt { font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; color: var(--muted); }
.end-stats dd { margin: 6px 0 0; font-size: 20px; font-weight: 300; }
.end-roster { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.end-roster img { width: 32px; height: 32px; border-radius: 50%; filter: grayscale(1) brightness(0.4); }
.end-roster p { font-size: 12px; color: var(--muted); }
.end-roster b { color: var(--muted); font-weight: 400; }
.end-mark {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--red);
  letter-spacing: 0.14em;
}
.end-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.end-actions .btn-primary { min-width: 0; padding: 11px 22px; font-size: 14px; }

/* ---------- 跳杀 ---------- */

.scare {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: #000;
  display: none;
  overflow: hidden;
  pointer-events: none;
}
.scare.active { display: block; }
.scare img {
  position: absolute;
  left: 50%; top: 50%;
  width: 120vmax; height: 120vmax;
  object-fit: cover;
  object-position: 50% 35%;
  transform: translate(-50%, -50%) scale(0.32) rotate(-1deg);
  filter: grayscale(0.4) contrast(1.5) brightness(0.9) saturate(1.2);
  animation: scare-zoom 1.15s steps(9, end) forwards;
}
@keyframes scare-zoom {
  0% { transform: translate(-50%, -50%) scale(0.28) rotate(-2deg); opacity: 0.2; }
  8% { opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(0.85) rotate(1deg); }
  100% { transform: translate(-50%, -50%) scale(1.25) rotate(0deg); }
}
.scare-flash {
  position: absolute;
  inset: 0;
  background: var(--red);
  opacity: 0;
  mix-blend-mode: screen;
  animation: scare-flash 1.2s steps(6, end) forwards;
}
@keyframes scare-flash {
  0% { opacity: 0.55; }
  10% { opacity: 0; }
  20% { opacity: 0.35; }
  30% { opacity: 0; }
  42% { opacity: 0.25; }
  52% { opacity: 0; }
  100% { opacity: 0; }
}
.reduce-flicker .scare-flash { animation: none; opacity: 0.1; }
.reduce-flicker .scare img { animation: scare-zoom-soft 1.15s var(--ease) forwards; }
@keyframes scare-zoom-soft {
  from { transform: translate(-50%, -50%) scale(0.5); opacity: 0.5; }
  to { transform: translate(-50%, -50%) scale(1.02); opacity: 1; }
}
.scare-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.7));
}

.signal-loss {
  position: absolute;
  inset: 0;
  z-index: 71;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.signal-loss-title { font-size: 26px; letter-spacing: 0.4em; text-indent: 0.4em; color: var(--fg); }
.signal-loss-note { color: var(--line); font-size: 12px; letter-spacing: 0.1em; }

/* ---------- 彩蛋贴纸 ---------- */

.xst-sticker {
  position: absolute;
  left: 7%;
  bottom: 9%;
  z-index: 3;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: #0c0d0e;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.3em;
  transform: rotate(-6deg) scale(0.8);
  opacity: 0;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
  pointer-events: none;
}
.xst-sticker.on { opacity: 0.8; transform: rotate(-6deg) scale(1); }

.member.is-placeholder { cursor: default; }
.member.is-placeholder .avatar-fallback { color: #3a3e3c; }

.archive-row.active { color: var(--fg); }
.archive-row.active::after { content: "——"; color: var(--line); }

/* ---------- 杂项 ---------- */

.noscript { padding: 40px; color: var(--muted); }

@media (max-width: 1100px) {
  .lobby-main { grid-template-columns: 210px minmax(0, 1fr); }
  .lobby-notice { display: none; }
  .ctrl-stack.left { left: 19%; }
  .ctrl-stack.right { right: 19%; }
  .tablet-body { grid-template-columns: minmax(0, 1fr) 220px; }
}

@media (max-height: 720px) {
  .lobby-main { padding: 20px 0; }
  .lobby-footer { margin-top: 26px; }
  .member { padding: 6px 0; }
  .intro-members { gap: 16px; }
  .intro-member img { width: 48px; height: 48px; }
  .tablet { height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
