:root {
  --bg-dark: #09060b;
  --crimson: #c83e5b;
  --crimson-soft: rgba(214, 68, 102, 0.45);
  --gold: #e8be82;
  --gold-soft: rgba(232, 190, 130, 0.35);
  --text-main: #f7f1ee;
  --text-dim: #bfb3b8;
  --glass-bg: rgba(15, 10, 18, 0.78);
  --glass-border: rgba(232, 190, 130, 0.28);
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "STZhongsong", "STSong", Georgia, serif;
  --font-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
}

.hidden {
  display: none !important;
}

.game-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-dark);
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==================== 标题封面 ==================== */
.title-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-bg {
  position: absolute;
  inset: -3%;
  background:
    radial-gradient(circle at 60% 38%, rgba(212, 120, 62, 0.35), transparent 55%),
    linear-gradient(135deg, #1b0e16 0%, #0d0810 55%, #1c0c14 100%);
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.62) saturate(1.18);
  transform: scale(1.06);
  animation: titleDrift 18s ease-in-out infinite alternate;
}

@keyframes titleDrift {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.13) translate(-1.5%, -1%); }
}

.title-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(16, 8, 16, 0.18) 0%, rgba(8, 4, 10, 0.86) 100%),
    linear-gradient(180deg, rgba(10, 5, 12, 0.55) 0%, transparent 35%, rgba(8, 4, 10, 0.85) 100%);
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.title-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 48px;
}

.title-kicker {
  font-size: 12px;
  letter-spacing: 0.36em;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.title-main {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff8f2;
  text-shadow:
    0 6px 32px rgba(0, 0, 0, 0.85),
    0 0 26px rgba(200, 62, 91, 0.35);
}

.title-accent {
  background: linear-gradient(180deg, #ffe2b8 0%, #e59c6b 55%, #d64f70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 12px;
  width: 320px;
}

.title-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 190, 130, 0.65), transparent);
}

.title-divider i {
  font-style: normal;
  font-size: 11px;
  color: var(--crimson);
}

.title-subtitle {
  font-size: 15px;
  letter-spacing: 0.24em;
  color: #e6d5cf;
  opacity: 0.88;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ==================== 主界面跨模式联动徽章状态灯 ==================== */
.title-linkage-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.linkage-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(212, 198, 194, 0.52);
  background: rgba(16, 10, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: all 0.35s ease;
}

.linkage-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(180, 170, 175, 0.32);
  box-shadow: none;
  transition: all 0.35s ease;
}

.linkage-badge.lit {
  color: #ffefc7;
  border-color: rgba(242, 196, 112, 0.85);
  background: linear-gradient(
    115deg,
    rgba(66, 44, 16, 0.88) 0%,
    rgba(116, 78, 28, 0.92) 48%,
    rgba(52, 32, 16, 0.88) 100%
  );
  box-shadow:
    0 0 18px rgba(232, 178, 86, 0.38),
    inset 0 0 12px rgba(255, 224, 150, 0.22);
}

.linkage-badge.lit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 236, 184, 0.42) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  animation: badgeGoldShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

.linkage-badge.lit .badge-dot {
  background: #ffd978;
  box-shadow: 0 0 10px #ffd978, 0 0 18px rgba(255, 198, 88, 0.85);
}

@keyframes badgeGoldShimmer {
  0% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(130%); }
}

.title-menu {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 288px;
}

.dlc-entry-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.dlc-entry-row .dlc-btn {
  flex: 1;
  padding-left: 14px;
  padding-right: 14px;
}

.menu-btn.dlc-btn.dlc-locked {
  background: linear-gradient(135deg, rgba(28, 22, 26, 0.84) 0%, rgba(16, 12, 18, 0.9) 100%);
  border-color: rgba(212, 172, 112, 0.42);
  color: rgba(236, 218, 188, 0.72);
  box-shadow: none;
}

.dlc-code-btn {
  appearance: none;
  flex: 0 0 auto;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(232, 190, 130, 0.55);
  background: linear-gradient(135deg, rgba(58, 38, 16, 0.86), rgba(28, 18, 18, 0.92));
  color: #ffe3ae;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dlc-code-btn:hover {
  transform: translateY(-2px);
  border-color: #ffe2a4;
  box-shadow: 0 6px 20px rgba(232, 178, 86, 0.36);
}

.menu-btn {
  appearance: none;
  border: 1px solid rgba(232, 190, 130, 0.36);
  background: rgba(18, 11, 22, 0.72);
  color: #f9f1ec;
  padding: 13px 26px;
  font-size: 16px;
  letter-spacing: 0.2em;
  font-family: var(--font-sans);
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.menu-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(54, 22, 38, 0.85);
  box-shadow: 0 6px 24px rgba(200, 62, 91, 0.32);
}

.menu-btn.primary {
  background: linear-gradient(135deg, rgba(176, 44, 78, 0.92), rgba(122, 26, 56, 0.92));
  border-color: rgba(248, 200, 148, 0.65);
  box-shadow: 0 6px 28px rgba(190, 48, 82, 0.42);
}

.menu-btn.primary:hover {
  background: linear-gradient(135deg, rgba(206, 56, 94, 0.96), rgba(145, 32, 66, 0.96));
  box-shadow: 0 8px 34px rgba(215, 64, 102, 0.56);
}

/* 番外 DLC 暗金色醒目入口按钮 */
.menu-btn.dlc-btn {
  background: linear-gradient(135deg, rgba(46, 30, 14, 0.90) 0%, rgba(24, 15, 18, 0.94) 100%);
  border: 1.5px solid rgba(226, 178, 98, 0.85);
  color: #ffe8bc;
  font-weight: 600;
  letter-spacing: 0.14em;
  box-shadow:
    0 6px 26px rgba(196, 138, 52, 0.28),
    inset 0 0 14px rgba(232, 184, 102, 0.14);
}

.menu-btn.dlc-btn:hover {
  border-color: #ffe0a3;
  background: linear-gradient(135deg, rgba(84, 54, 22, 0.94) 0%, rgba(44, 24, 26, 0.95) 100%);
  color: #fff6e2;
  box-shadow:
    0 8px 34px rgba(232, 178, 86, 0.48),
    inset 0 0 18px rgba(255, 214, 134, 0.24);
}

.menu-btn.gallery-btn {
  background: linear-gradient(135deg, rgba(28, 20, 38, 0.86), rgba(18, 12, 26, 0.90));
  border: 1px solid rgba(212, 180, 232, 0.42);
  color: #f4ebfa;
  letter-spacing: 0.14em;
}

.menu-btn.gallery-btn:hover {
  border-color: #e4c4ff;
  background: linear-gradient(135deg, rgba(64, 34, 78, 0.92), rgba(34, 18, 46, 0.94));
  box-shadow: 0 8px 28px rgba(176, 114, 224, 0.34);
}

.hud-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-day-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(164, 38, 72, 0.32);
  border: 1px solid rgba(232, 190, 130, 0.45);
  color: #ffe8c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.hud-affection.dlc-mode {
  border-color: rgba(232, 182, 98, 0.65);
  background: rgba(28, 19, 14, 0.82);
  box-shadow: 0 0 18px rgba(216, 162, 74, 0.22);
}

.hud-affection.dlc-mode .aff-fill {
  background: linear-gradient(90deg, #b67a2c 0%, #e6b45c 55%, #ffe09e 100%);
  box-shadow: 0 0 12px rgba(234, 184, 96, 0.65);
}

.menu-btn.ghost {
  background: rgba(14, 10, 18, 0.48);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-dim);
}

.menu-btn.ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(48, 28, 38, 0.72);
}

.title-hint {
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(220, 206, 202, 0.52);
}

/* ==================== 游戏主舞台与电影光影兜底背景 ==================== */
.stage-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #08060a;
}

.stage-wrapper.screen-shake {
  animation: stageShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes stageShake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-7px, 4px); }
  30% { transform: translate(6px, -4px); }
  45% { transform: translate(-5px, -3px); }
  65% { transform: translate(4px, 3px); }
  85% { transform: translate(-2px, 1px); }
}

.bg-layer {
  position: absolute;
  inset: 0;
  transition: background 0.9s ease, filter 0.8s ease;
  background-size: cover;
  background-position: center;
}

/* 加载高清实景图时自动隐藏纯色光影占位层，仅保留柔和环境融合光 */
.bg-layer.has-real-bg .bg-blinds {
  opacity: 0 !important;
}

.bg-layer.has-real-bg .bg-lamp-glow {
  opacity: 0.22 !important;
}

.bg-layer.has-real-bg {
  filter: brightness(0.92) contrast(1.04);
}

.bg-blinds, .bg-lamp-glow, .bg-ambient-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

/* 黄昏办公室光影渐变兜底 */
.bg-layer.bg-sunset {
  background:
    radial-gradient(ellipse at 78% 26%, rgba(255, 162, 82, 0.52) 0%, rgba(196, 86, 54, 0.26) 36%, transparent 70%),
    radial-gradient(ellipse at 22% 85%, rgba(62, 26, 46, 0.7) 0%, transparent 62%),
    linear-gradient(125deg, #251520 0%, #4d262c 38%, #8f4734 72%, #c97343 100%);
}

.bg-layer.bg-sunset .bg-blinds {
  opacity: 0.42;
  background: repeating-linear-gradient(
    -18deg,
    rgba(255, 205, 138, 0.18) 0px,
    rgba(255, 205, 138, 0.18) 18px,
    rgba(18, 9, 14, 0.34) 18px,
    rgba(18, 9, 14, 0.34) 40px
  );
  mask-image: linear-gradient(115deg, transparent 15%, rgba(0, 0, 0, 0.9) 75%);
  -webkit-mask-image: linear-gradient(115deg, transparent 15%, rgba(0, 0, 0, 0.9) 75%);
}

.bg-layer.bg-sunset .bg-lamp-glow {
  opacity: 0.55;
  background: radial-gradient(circle at 82% 28%, rgba(255, 212, 145, 0.42), transparent 48%);
}

/* 深夜台灯办公室光影渐变兜底 */
.bg-layer.bg-night {
  background:
    radial-gradient(circle at 22% 58%, rgba(242, 152, 66, 0.42) 0%, rgba(150, 72, 34, 0.18) 32%, transparent 62%),
    radial-gradient(ellipse at 75% 22%, rgba(44, 58, 98, 0.32) 0%, transparent 58%),
    linear-gradient(160deg, #0b0d17 0%, #14111d 48%, #1d1218 100%);
}

.bg-layer.bg-night .bg-blinds {
  opacity: 0.34;
  background: repeating-linear-gradient(
    0deg,
    rgba(110, 145, 210, 0.08) 0px,
    rgba(110, 145, 210, 0.08) 10px,
    rgba(5, 6, 12, 0.55) 10px,
    rgba(5, 6, 12, 0.55) 24px
  );
  mask-image: linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, 0.95) 85%);
  -webkit-mask-image: linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, 0.95) 85%);
}

.bg-layer.bg-night .bg-lamp-glow {
  opacity: 0.75;
  background: radial-gradient(circle at 20% 60%, rgba(255, 178, 92, 0.32), transparent 42%);
}

/* 夜色路灯林荫道兜底 */
.bg-layer.bg-street {
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 198, 118, 0.46) 0%, rgba(215, 134, 62, 0.15) 26%, transparent 52%),
    radial-gradient(circle at 76% 32%, rgba(255, 190, 110, 0.28) 0%, transparent 36%),
    linear-gradient(180deg, #0a1020 0%, #141c31 48%, #1d1a26 100%);
}

.bg-layer.bg-street .bg-blinds {
  opacity: 0;
}

.bg-layer.bg-street .bg-lamp-glow {
  opacity: 0.7;
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 226, 168, 0.48), transparent 22%),
    radial-gradient(circle at 76% 32%, rgba(255, 212, 148, 0.30), transparent 18%);
}

/* v5 新增：雨夜车内电影光影兜底（雨滴玻璃 + 霓虹暗角微光） */
.bg-layer.bg-car {
  background:
    radial-gradient(circle at 26% 34%, rgba(255, 164, 72, 0.34) 0%, transparent 32%),
    radial-gradient(circle at 78% 28%, rgba(62, 182, 232, 0.30) 0%, transparent 36%),
    radial-gradient(circle at 62% 48%, rgba(226, 62, 108, 0.22) 0%, transparent 34%),
    linear-gradient(175deg, #070b14 0%, #0d111e 48%, #07060a 100%);
}

.bg-layer.bg-car .bg-blinds {
  opacity: 0.26;
  background: repeating-linear-gradient(
    -72deg,
    rgba(195, 224, 255, 0.14) 0px,
    rgba(195, 224, 255, 0.14) 2px,
    transparent 2px,
    transparent 26px
  );
}

.bg-layer.bg-car .bg-lamp-glow {
  opacity: 0.65;
  background:
    radial-gradient(circle at 26% 34%, rgba(255, 198, 122, 0.28), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(92, 198, 255, 0.24), transparent 26%);
}

/* v5 新增：高空酒店套房电影光影兜底（落地窗城市夜景光斑 + 暖橘床头氛围灯） */
.bg-layer.bg-hotel {
  background:
    radial-gradient(circle at 76% 52%, rgba(255, 166, 76, 0.44) 0%, rgba(196, 98, 42, 0.18) 28%, transparent 56%),
    radial-gradient(circle at 24% 64%, rgba(255, 206, 128, 0.24) 0%, transparent 24%),
    radial-gradient(circle at 38% 58%, rgba(96, 166, 238, 0.22) 0%, transparent 30%),
    linear-gradient(160deg, #081224 0%, #101728 45%, #1d1216 100%);
}

.bg-layer.bg-hotel .bg-blinds {
  opacity: 0.28;
  background:
    radial-gradient(circle at 22% 66%, rgba(255, 224, 156, 0.42) 0 4px, transparent 10px),
    radial-gradient(circle at 29% 58%, rgba(255, 152, 124, 0.36) 0 5px, transparent 12px),
    radial-gradient(circle at 36% 68%, rgba(136, 198, 255, 0.34) 0 4px, transparent 11px),
    radial-gradient(circle at 44% 60%, rgba(255, 212, 146, 0.32) 0 6px, transparent 14px);
}

.bg-layer.bg-hotel .bg-lamp-glow {
  opacity: 0.85;
  background: radial-gradient(circle at 76% 52%, rgba(255, 192, 108, 0.38), transparent 40%);
}

.bg-layer.bg-black {
  background: #040306;
}
.bg-layer.bg-black .bg-blinds,
.bg-layer.bg-black .bg-lamp-glow {
  opacity: 0;
}

/* Day 3 清晨阳光套房调色（雨后初晴暖晨光） */
.bg-layer.bg-hotel-morning.has-real-bg {
  filter: brightness(1.32) saturate(1.08) contrast(0.95) sepia(0.14);
}

/* Day 2 上午全员大会日间明亮会议室调色 */
.bg-layer.bg-office-day.has-real-bg {
  filter: brightness(1.18) contrast(0.96) saturate(0.76) hue-rotate(-14deg);
}

/* DLC 晴/阴天日间车厢调色 & 午后隐蔽茶餐厅暖调 */
.bg-layer.bg-car-day.has-real-bg {
  filter: brightness(1.24) contrast(0.95) saturate(0.90) hue-rotate(-6deg);
}

.bg-layer.bg-cafe.has-real-bg {
  filter: sepia(0.18) brightness(1.02) saturate(1.18) contrast(1.02);
}

/* DLC 暗场电影院最后一排背景 */
.bg-layer.bg-cinema {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(86, 148, 224, 0.22) 0%, rgba(16, 26, 48, 0.55) 36%, #030408 78%),
    linear-gradient(180deg, #050914 0%, #030408 100%);
}

/* DLC 商场 VIP 试衣间暗暖调背景（帘幕阴影 + 试衣镜顶灯微光） */
.bg-layer.bg-fitting {
  background:
    radial-gradient(ellipse at 50% 22%, rgba(255, 198, 132, 0.28) 0%, rgba(124, 62, 48, 0.18) 38%, rgba(14, 9, 15, 0.92) 78%),
    linear-gradient(90deg, #09050a 0%, #24151a 22%, #352024 50%, #24151a 78%, #09050a 100%);
}

.bg-layer.bg-fitting .bg-blinds {
  opacity: 0.28;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 206, 150, 0.06) 0px,
    rgba(255, 206, 150, 0.06) 14px,
    rgba(8, 4, 10, 0.45) 14px,
    rgba(8, 4, 10, 0.45) 36px
  );
}

.bg-layer.bg-fitting .bg-lamp-glow {
  opacity: 0.72;
  background: radial-gradient(circle at 50% 18%, rgba(255, 214, 158, 0.34), transparent 46%);
}

/* DLC 专属：filter-cinema 暗场电影院银幕冷蓝微光闪烁 + 四周深黑暗角 */
.vignette-overlay.filter-cinema {
  background:
    radial-gradient(ellipse at 50% 24%, rgba(118, 186, 255, 0.13) 0%, rgba(14, 24, 46, 0.45) 34%, rgba(2, 3, 8, 0.92) 76%, rgba(1, 2, 5, 0.98) 100%);
  box-shadow: inset 0 0 165px rgba(0, 0, 0, 0.96);
  animation: cinemaScreenFlicker 4.4s ease-in-out infinite;
}

.sprite-camera.filter-cinema .sprite-img {
  filter:
    brightness(0.84) contrast(1.12) saturate(0.88) hue-rotate(8deg)
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85))
    drop-shadow(0 -8px 26px rgba(108, 178, 255, 0.36));
  animation: cinemaFaceGlint 4.4s ease-in-out infinite;
}

@keyframes cinemaScreenFlicker {
  0%, 100% { opacity: 0.92; }
  18%      { opacity: 0.98; }
  22%      { opacity: 0.84; }
  45%      { opacity: 0.96; }
  68%      { opacity: 0.88; }
  74%      { opacity: 1.0; }
}

@keyframes cinemaFaceGlint {
  0%, 100% {
    filter:
      brightness(0.82) contrast(1.12) saturate(0.86) hue-rotate(8deg)
      drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85))
      drop-shadow(0 -6px 22px rgba(102, 174, 255, 0.28));
  }
  24% {
    filter:
      brightness(0.92) contrast(1.14) saturate(0.92) hue-rotate(10deg)
      drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85))
      drop-shadow(0 -10px 34px rgba(132, 202, 255, 0.48));
  }
  65% {
    filter:
      brightness(0.79) contrast(1.12) saturate(0.84) hue-rotate(6deg)
      drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85))
      drop-shadow(0 -5px 18px rgba(96, 162, 245, 0.24));
  }
}

/* v3 新增：暴雨停电暗夜背景（深蓝暗夜色调 + 中心暖黄充电台灯光晕） */
.bg-layer.bg-blackout {
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 186, 92, 0.36) 0%, rgba(168, 96, 38, 0.16) 24%, rgba(10, 18, 38, 0.88) 58%, #040711 100%),
    linear-gradient(180deg, #060b18 0%, #0a1326 52%, #050812 100%);
}

.bg-layer.bg-blackout .bg-blinds {
  opacity: 0.42;
  background: repeating-linear-gradient(
    0deg,
    rgba(92, 138, 212, 0.09) 0px,
    rgba(92, 138, 212, 0.09) 8px,
    rgba(2, 5, 14, 0.72) 8px,
    rgba(2, 5, 14, 0.72) 22px
  );
  mask-image: linear-gradient(90deg, transparent 52%, rgba(0, 0, 0, 0.95) 86%);
  -webkit-mask-image: linear-gradient(90deg, transparent 52%, rgba(0, 0, 0, 0.95) 86%);
}

.bg-layer.bg-blackout .bg-lamp-glow {
  opacity: 0.92;
  background: radial-gradient(circle at 50% 52%, rgba(255, 206, 126, 0.34) 0%, rgba(226, 136, 62, 0.12) 28%, transparent 52%);
  animation: lampFlicker 5.5s ease-in-out infinite;
}

@keyframes lampFlicker {
  0%, 100% { opacity: 0.86; }
  48%      { opacity: 0.95; }
  50%      { opacity: 0.76; }
  52%      { opacity: 0.94; }
}

/* v3 新增：effect-lightning 屏幕瞬间闪白闪电层 */
.lightning-flash {
  position: absolute;
  inset: 0;
  z-index: 14;
  background: radial-gradient(circle at 75% 22%, #ffffff 0%, #e4f0ff 55%, #b8d2ff 100%);
  opacity: 0;
  pointer-events: none;
}

.lightning-flash.effect-lightning {
  animation: lightningStrike 0.95s ease-out forwards;
}

@keyframes lightningStrike {
  0%   { opacity: 0; }
  8%   { opacity: 0.96; }
  18%  { opacity: 0.22; }
  28%  { opacity: 0.88; }
  46%  { opacity: 0.12; }
  100% { opacity: 0; }
}

/* v3 新增：filter-shadow-corner 书柜与百叶窗阴影死角压迫感 + 呼吸微震 */
.stage-wrapper.filter-shadow-corner {
  animation: shadowCornerBreath 3.1s ease-in-out infinite;
}

@keyframes shadowCornerBreath {
  0%, 100% { transform: scale(1.0) translate(0px, 0px); }
  25%      { transform: scale(1.008) translate(-1.5px, 1px); }
  50%      { transform: scale(1.014) translate(1px, -1.5px); }
  75%      { transform: scale(1.006) translate(-1px, 0.5px); }
}

.vignette-overlay.filter-shadow-corner {
  background:
    linear-gradient(90deg, rgba(2, 2, 6, 0.94) 0%, rgba(4, 3, 9, 0.58) 18%, transparent 38%, transparent 62%, rgba(4, 3, 9, 0.62) 82%, rgba(2, 2, 6, 0.95) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(180, 38, 74, 0.06) 18%, rgba(6, 4, 12, 0.68) 64%, rgba(2, 1, 5, 0.96) 100%);
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.92), inset 0 0 65px rgba(178, 32, 68, 0.28);
  animation: pulseShadowCorner 2.6s ease-in-out infinite;
}

@keyframes pulseShadowCorner {
  0%, 100% { opacity: 0.93; }
  50%      { opacity: 1; }
}

/* ==================== 单立绘多机位镜头系统 ==================== */
.sprite-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

/* 底部 5% 柔和暗部过渡层，消除立绘贴纸感 */
.sprite-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10vh;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 4, 11, 0.55) 68%, rgba(5, 3, 9, 0.88) 100%);
  pointer-events: none;
  z-index: 7;
}

/* ==================== 双人同屏修罗场舞台模式 ==================== */
.sprite-camera-right {
  position: absolute;
  bottom: 0;
  height: 92vh;
  transform-origin: 50% 24%;
}

.sprite-stage.dual-mode #sprite-camera {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 92vh;
  transform-origin: 50% 24%;
  transform: translateX(-86%) scale(1.0);
  z-index: 4;
}

.sprite-stage.dual-mode #sprite-camera-right {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 92vh;
  transform-origin: 50% 24%;
  transform: translateX(-14%) scale(1.0);
  z-index: 4;
}

/* 说话一方自动高亮放大并微幅前倾 */
.sprite-stage.dual-mode #sprite-camera.dual-active {
  transform: translateX(-82%) scale(1.08) rotate(1.1deg);
  z-index: 6;
}

.sprite-stage.dual-mode #sprite-camera.dual-active .sprite-img {
  filter:
    brightness(1.06) contrast(1.05) saturate(1.08)
    drop-shadow(0 14px 32px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 24px rgba(224, 86, 122, 0.26));
}

.sprite-stage.dual-mode #sprite-camera-right.dual-active {
  transform: translateX(-18%) scale(1.08) rotate(-1.1deg);
  z-index: 6;
}

.sprite-stage.dual-mode #sprite-camera-right.dual-active .sprite-img {
  filter:
    brightness(1.06) contrast(1.05) saturate(1.08)
    drop-shadow(0 14px 32px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 24px rgba(126, 176, 255, 0.28));
}

/* 非说话一方微暗俯视、略退半步 */
.sprite-stage.dual-mode #sprite-camera.dual-dim {
  transform: translateX(-90%) translateY(2%) scale(0.95);
  z-index: 3;
}

.sprite-stage.dual-mode #sprite-camera-right.dual-dim {
  transform: translateX(-10%) translateY(2%) scale(0.95);
  z-index: 3;
}

.sprite-stage.dual-mode .dual-dim .sprite-img {
  filter:
    brightness(0.58) contrast(1.04) saturate(0.78)
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.8));
}

/* 修罗场隐藏竞争者名牌配色 */
.speaker-badge.rival-speaker {
  background: linear-gradient(135deg, rgba(46, 56, 92, 0.95), rgba(24, 30, 52, 0.95));
  border-color: rgba(152, 196, 255, 0.62);
  color: #edf5ff;
}

/* 第五重隐藏修罗场结局卡片专属样式 */
.ending-card.end-hidden {
  background: linear-gradient(155deg, rgba(36, 12, 34, 0.97) 0%, rgba(16, 12, 32, 0.98) 52%, rgba(28, 10, 24, 0.97) 100%);
  border-color: rgba(244, 186, 134, 0.82);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.88),
    0 0 60px rgba(206, 62, 124, 0.42),
    inset 0 0 40px rgba(142, 174, 255, 0.14);
}

.ending-card.end-hidden .ending-badge {
  background: linear-gradient(135deg, #c93b78 0%, #583892 52%, #c9863c 100%);
  border-color: #ffe6b8;
  color: #fffaf0;
  box-shadow: 0 0 22px rgba(226, 142, 198, 0.5);
}

/* Gallery 隐藏人物档案分组标题 */
.gallery-section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--gold);
  padding: 6px 2px 2px;
  border-bottom: 1px solid rgba(232, 190, 130, 0.22);
}

.gallery-section-title.rival-sec {
  margin-top: 8px;
  color: #b8d6ff;
  border-bottom-color: rgba(142, 184, 245, 0.26);
}

/* 缩放锚点严格锁定在面部与锁骨区域 (50% 18%) */
.sprite-camera {
  position: relative;
  height: 94vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: 50% 18%;
  transition:
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease,
    opacity 0.55s ease;
  will-change: transform, filter;
}

/* 四种机位平滑推拉 */
.sprite-camera.cam-full {
  transform: translate(0%, 2%) scale(1.0);
}

.sprite-camera.cam-full.pos-right {
  transform: translate(11%, 2%) scale(0.97);
}

.sprite-camera.cam-half {
  transform: translate(0%, 4%) scale(1.30);
}

.sprite-camera.cam-bust {
  transform: translate(0%, 2%) scale(1.66);
}

.sprite-camera.cam-closeup {
  transform: translate(0%, 1%) scale(2.14);
}

/* 前倾压迫动作 */
.sprite-camera.lean-in {
  transform: translate(0%, 1.5%) scale(2.30) rotate(-1.6deg);
}

/* 水平镜像层独立嵌套，不与相机缩放冲突 */
.sprite-flip {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sprite-flip.flip {
  transform: scaleX(-1);
}

/* 呼吸微浮层 + 惊震动作 */
.sprite-anim {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: spriteBreathe 4.2s ease-in-out infinite;
}

.sprite-anim.fast-breathe {
  animation: spriteBreatheFast 2.4s ease-in-out infinite;
}

.sprite-anim.shake {
  animation: spriteShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes spriteBreathe {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%      { transform: translateY(-4px) scale(1.007); }
}

@keyframes spriteBreatheFast {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%      { transform: translateY(-6px) scale(1.012); }
}

@keyframes spriteShake {
  0%, 100% { transform: translate(0, 0); }
  14% { transform: translate(-11px, 3px); }
  28% { transform: translate(10px, -4px); }
  45% { transform: translate(-8px, -2px); }
  64% { transform: translate(6px, 2px); }
  82% { transform: translate(-3px, 0); }
}

.sprite-img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 94.5%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 94.5%, transparent 100%);
  transition: opacity 0.45s ease, filter 0.65s ease;
}

/* 立绘环境光融合滤镜（保留 drop-shadow(0 12px 28px rgba(0,0,0,0.65)) 消除贴纸感） */
.sprite-camera.filter-sunset .sprite-img {
  filter:
    sepia(0.14) saturate(1.12) brightness(0.96) contrast(1.04)
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65))
    drop-shadow(-12px 4px 24px rgba(255, 148, 76, 0.28));
}

.sprite-camera.filter-blush .sprite-img {
  filter:
    saturate(1.18) contrast(1.05) brightness(0.95) hue-rotate(-4deg)
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 26px rgba(226, 72, 108, 0.28));
}

.sprite-camera.filter-cold .sprite-img {
  filter:
    saturate(0.78) brightness(0.90) contrast(1.06) hue-rotate(8deg)
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65));
}

/* ==================== v4 立绘部位触摸互动热区（Interactive Touch） ==================== */
.touch-hotspots {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: auto;
}

.touch-zone {
  position: absolute;
  appearance: none;
  background: transparent;
  border: 1.5px solid rgba(235, 86, 122, 0.0);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, transform 0.25s ease;
  pointer-events: auto;
}

/* 四个身体部位热区精确对齐 686x1024 立绘解剖比例 */
.touch-zone.zone-eyes {
  top: 12.5%;
  left: 36%;
  width: 28%;
  height: 11.5%;
  border-radius: 42%;
}

.touch-zone.zone-collarbone {
  top: 28.5%;
  left: 39%;
  width: 22%;
  height: 11.5%;
  border-radius: 46%;
}

.touch-zone.zone-tie {
  top: 41.5%;
  left: 34%;
  width: 19%;
  height: 15%;
  border-radius: 42%;
}

.touch-zone.zone-chest {
  top: 43%;
  left: 52.5%;
  width: 21%;
  height: 16%;
  border-radius: 44%;
}

/* 微弱引导绯红脉动光圈 */
.zone-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 92, 128, 0.42);
  background: radial-gradient(circle, rgba(236, 72, 112, 0.16) 0%, transparent 72%);
  box-shadow: 0 0 14px rgba(236, 72, 112, 0.28);
  animation: zonePulse 2.4s ease-in-out infinite;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

@keyframes zonePulse {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50%      { transform: scale(1.16); opacity: 0.85; }
}

.zone-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(24, 10, 20, 0.90);
  border: 1px solid rgba(244, 134, 158, 0.65);
  color: #ffe8ee;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.touch-zone:hover {
  border-color: rgba(244, 110, 142, 0.68);
  background: radial-gradient(circle, rgba(226, 62, 104, 0.22) 0%, rgba(226, 62, 104, 0.04) 72%, transparent 100%);
  box-shadow: 0 0 28px rgba(232, 68, 108, 0.42);
}

.touch-zone:hover .zone-ring {
  transform: scale(1.32);
  border-color: rgba(255, 168, 190, 0.92);
  background: radial-gradient(circle, rgba(242, 78, 118, 0.34) 0%, transparent 72%);
  box-shadow: 0 0 22px rgba(244, 86, 126, 0.72);
}

.touch-zone:hover .zone-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 已触碰热区柔和标记 */
.touch-zone.touched .zone-ring {
  border-color: rgba(232, 190, 130, 0.65);
  background: radial-gradient(circle, rgba(232, 190, 130, 0.24) 0%, transparent 70%);
  animation: none;
  opacity: 0.65;
}

.touch-zone.touched .zone-tip::after {
  content: " ✓";
  color: var(--gold);
}

/* 顶部自由试探提示条 */
.touch-hud {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  pointer-events: none;
  animation: fadeIn 0.4s ease;
}

.touch-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(36, 12, 26, 0.90), rgba(18, 8, 18, 0.92));
  border: 1px solid rgba(240, 114, 146, 0.58);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(214, 54, 96, 0.28);
  color: #fff3f6;
  font-size: 14.5px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
}

.touch-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f05a80;
  box-shadow: 0 0 10px #f05a80;
  animation: dotBlink 1.3s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.2); }
}

.touch-progress {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(232, 190, 130, 0.18);
  border: 1px solid rgba(232, 190, 130, 0.45);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
}

/* 右下角跳过试探按钮 */
.skip-touch-btn {
  position: absolute;
  right: 28px;
  bottom: 196px;
  z-index: 25;
  appearance: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(232, 190, 130, 0.45);
  background: rgba(20, 11, 24, 0.84);
  color: #f3e2d8;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  font-family: var(--font-sans);
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  transition: background 0.22s, border-color 0.22s, transform 0.2s;
}

.skip-touch-btn:hover {
  transform: translateY(-2px);
  background: rgba(142, 34, 64, 0.90);
  border-color: var(--gold);
  color: #fff;
}

/* 煞风景「……」气泡 */
.thought-bubble {
  position: absolute;
  top: 12%;
  right: 12%;
  background: rgba(250, 246, 248, 0.94);
  color: #1f1722;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.12em;
  padding: 8px 18px;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.thought-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 20px;
  border-width: 9px 7px 0;
  border-style: solid;
  border-color: rgba(250, 246, 248, 0.94) transparent transparent;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==================== 全屏 CG 演出层 ==================== */
.cg-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  background: #08050a;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cg-layer.visible {
  opacity: 1;
}

.cg-parallax-wrap {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.14s ease-out;
}

.cg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform-origin: 50% 35%;
  animation: cgBreathe 12s ease-in-out infinite alternate;
  transition: filter 0.8s ease;
}

.cg-mist-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  cursor: crosshair;
  touch-action: none;
  transition: opacity 0.75s ease;
}

.cg-mist-canvas.cleared {
  opacity: 0;
  pointer-events: none;
}

.cg-mist-hud {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 23;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(18, 10, 24, 0.84);
  border: 1px solid rgba(246, 206, 140, 0.58);
  color: #fff5ea;
  font-size: 13px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  animation: fadeIn 0.35s ease;
}

.mist-clear-btn {
  padding: 3px 11px;
  font-size: 12px;
}

.cg-layer.filter-blush .cg-img {
  filter: saturate(1.18) contrast(1.06) brightness(0.95);
}

@keyframes cgBreathe {
  0%   { transform: scale(1.02) translateY(0%); }
  100% { transform: scale(1.09) translateY(-1.2%); }
}

/* ==================== 绯红暗角、滤镜叠加与黑屏转场 ==================== */
.vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(8, 4, 12, 0.56) 100%);
  transition: background 0.8s ease, box-shadow 0.8s ease;
}

.vignette-overlay.vignette-blush {
  background: radial-gradient(ellipse at center, rgba(255, 110, 145, 0.04) 36%, rgba(138, 20, 56, 0.42) 82%, rgba(36, 4, 16, 0.82) 100%);
  box-shadow: inset 0 0 110px rgba(214, 54, 92, 0.36);
  animation: pulseVignette 3.2s ease-in-out infinite;
}

.vignette-overlay.vignette-sunset {
  background: radial-gradient(ellipse at 72% 24%, rgba(255, 178, 92, 0.14) 0%, rgba(28, 12, 16, 0.54) 100%);
}

.vignette-overlay.vignette-cold {
  background: radial-gradient(ellipse at center, rgba(40, 72, 120, 0.06) 40%, rgba(8, 16, 32, 0.72) 100%);
}

@keyframes pulseVignette {
  0%, 100% { opacity: 0.86; }
  50%      { opacity: 1; }
}

.fade-curtain {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: #040306;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.fade-curtain.dark {
  opacity: 1;
  pointer-events: auto;
}

.chapter-banner {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(6, 4, 9, 0.55);
  animation: bannerFade 2.2s ease forwards;
}

.chapter-en {
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 10px;
}

.chapter-zh {
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: 0.18em;
  color: #fff6f0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

@keyframes bannerFade {
  0% { opacity: 0; }
  18% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ==================== 顶部 HUD 状态栏 ==================== */
.hud-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(10, 6, 14, 0.88) 0%, rgba(10, 6, 14, 0.35) 75%, transparent 100%);
}

.hud-affection {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 11, 24, 0.72);
  border: 1px solid rgba(232, 190, 130, 0.28);
  border-radius: 999px;
  padding: 6px 16px;
  backdrop-filter: blur(8px);
}

.aff-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}

.aff-track {
  width: 138px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.aff-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b83a5e 0%, #e45d7f 55%, #f5be82 100%);
  box-shadow: 0 0 12px rgba(228, 93, 127, 0.65);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.aff-value {
  min-width: 26px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: #fff6f2;
}

.aff-delta {
  font-size: 13px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  animation: deltaFloat 1.8s ease forwards;
}

.aff-delta.plus {
  color: #ffd5dc;
  background: rgba(214, 52, 92, 0.85);
}

.aff-delta.minus {
  color: #d6e4ff;
  background: rgba(62, 96, 148, 0.85);
}

@keyframes deltaFloat {
  0%   { opacity: 0; transform: translateY(4px) scale(0.85); }
  20%  { opacity: 1; transform: translateY(0) scale(1.06); }
  80%  { opacity: 1; transform: translateY(-2px) scale(1); }
  100% { opacity: 0; transform: translateY(-8px) scale(0.95); }
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 12, 24, 0.68);
  color: #ede3e0;
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hud-btn:hover {
  background: rgba(78, 28, 48, 0.82);
  border-color: rgba(232, 190, 130, 0.55);
  color: #fff;
}

.hud-btn.active {
  background: rgba(182, 46, 80, 0.85);
  border-color: var(--gold);
  color: #fff;
}

.hud-btn.danger:hover {
  background: rgba(152, 32, 48, 0.88);
  border-color: #ff7c94;
}

/* ==================== Galgame 底部对话框 ==================== */
.dialogue-container {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(1060px, calc(100vw - 64px));
  z-index: 18;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dialogue-container.hidden-box {
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
}

.dialogue-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: -1px;
  padding: 0 14px;
}

.speaker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 24px 6px;
  background: linear-gradient(135deg, rgba(164, 38, 72, 0.94), rgba(96, 20, 44, 0.94));
  border: 1px solid rgba(236, 194, 138, 0.55);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff6ee;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
}

.speaker-badge.monologue {
  background: linear-gradient(135deg, rgba(46, 32, 54, 0.92), rgba(26, 18, 34, 0.92));
  border-color: rgba(212, 182, 168, 0.35);
  color: #e4d2cd;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.voice-indicator {
  font-size: 14px;
  color: var(--gold);
  animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.scene-tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(232, 190, 130, 0.78);
  padding-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.dialogue-box {
  position: relative;
  min-height: 148px;
  padding: 24px 36px 26px;
  background: linear-gradient(180deg, rgba(16, 10, 20, 0.86) 0%, rgba(10, 6, 14, 0.94) 100%);
  border: 1px solid rgba(232, 190, 130, 0.32);
  border-top: 2px solid rgba(224, 146, 118, 0.65);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.68);
  cursor: pointer;
}

.dialogue-text {
  font-size: 19px;
  line-height: 1.82;
  letter-spacing: 0.04em;
  color: #f9f3f0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  white-space: pre-wrap;
}

.dialogue-text.narration {
  color: #e6d7d2;
}

.next-caret {
  position: absolute;
  right: 22px;
  bottom: 14px;
  font-size: 13px;
  color: var(--gold);
  animation: caretBlink 0.95s ease-in-out infinite;
}

@keyframes caretBlink {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(4px); }
}

/* ==================== 分支选择层 ==================== */
.choice-overlay {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px 110px;
  background: radial-gradient(ellipse at center, rgba(16, 8, 20, 0.45) 0%, rgba(8, 4, 12, 0.72) 100%);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.choice-header {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 22px;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.9);
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(760px, 90vw);
}

.choice-btn {
  appearance: none;
  text-align: left;
  padding: 18px 26px;
  border-radius: 8px;
  border: 1px solid rgba(232, 190, 130, 0.38);
  background: linear-gradient(90deg, rgba(22, 12, 26, 0.9), rgba(34, 15, 28, 0.86));
  color: #faf2ee;
  font-size: 16.5px;
  line-height: 1.55;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.52);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.choice-btn:hover {
  transform: translateX(6px);
  border-color: #f3c489;
  background: linear-gradient(90deg, rgba(132, 30, 60, 0.92), rgba(62, 18, 38, 0.92));
  box-shadow: 0 10px 34px rgba(206, 54, 92, 0.42);
}

.choice-key {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(232, 190, 130, 0.16);
  border: 1px solid rgba(232, 190, 130, 0.55);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  margin-top: 1px;
}

/* ==================== 结局结算卡片 ==================== */
.ending-overlay {
  position: absolute;
  inset: 0;
  z-index: 26;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 3, 10, 0.78);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.7s ease;
}

.ending-card {
  width: min(580px, 90vw);
  padding: 42px 44px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(160deg, rgba(28, 13, 24, 0.95), rgba(12, 8, 18, 0.97));
  border: 1px solid rgba(232, 190, 130, 0.5);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.78), 0 0 42px rgba(200, 62, 91, 0.25);
}

.ending-card.end-secret {
  background: linear-gradient(155deg, rgba(42, 10, 28, 0.97) 0%, rgba(16, 7, 22, 0.98) 55%, rgba(26, 8, 18, 0.97) 100%);
  border-color: rgba(246, 196, 128, 0.78);
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.86),
    0 0 56px rgba(218, 52, 96, 0.42),
    inset 0 0 36px rgba(232, 178, 108, 0.12);
}

.ending-card.end-secret .ending-badge {
  background: linear-gradient(135deg, #d83b68 0%, #8f1d46 55%, #b87c36 100%);
  border-color: #ffe2ac;
  color: #fff8eb;
  box-shadow: 0 0 18px rgba(232, 178, 108, 0.45);
}

.ending-card.end-normal {
  border-color: rgba(232, 178, 108, 0.55);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.78), 0 0 36px rgba(215, 146, 72, 0.22);
}

.ending-card.end-bad {
  background: linear-gradient(160deg, rgba(16, 22, 36, 0.96), rgba(9, 12, 22, 0.98));
  border-color: rgba(122, 162, 212, 0.45);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.8), 0 0 36px rgba(72, 118, 184, 0.22);
}

.ending-badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: #ffe8c8;
  background: rgba(196, 48, 84, 0.78);
  border: 1px solid rgba(246, 206, 152, 0.55);
  margin-bottom: 18px;
}

.ending-card.end-normal .ending-badge {
  background: rgba(188, 112, 42, 0.78);
}

.ending-card.end-bad .ending-badge {
  background: rgba(54, 88, 136, 0.78);
  border-color: rgba(152, 190, 238, 0.5);
}

.ending-title {
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: 0.1em;
  color: #fff7f0;
  margin-bottom: 14px;
}

.ending-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #d6c8c6;
  margin-bottom: 24px;
}

.ending-score {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 190, 130, 0.24);
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-dim);
}

.ending-score strong {
  font-size: 20px;
  color: var(--gold);
}

.ending-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ending-actions .menu-btn {
  padding: 11px 22px;
  font-size: 14px;
}

/* ==================== 弹窗：存档/读档/回顾/ESC ==================== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 3, 9, 0.78);
  backdrop-filter: blur(8px);
}

.modal-panel {
  width: min(620px, 90vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(24, 15, 28, 0.96), rgba(14, 9, 18, 0.98));
  border: 1px solid rgba(232, 190, 130, 0.36);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78);
  overflow: hidden;
}

.modal-panel.modal-wide {
  width: min(780px, 92vw);
}

.modal-panel.modal-compact {
  width: min(360px, 86vw);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(232, 190, 130, 0.18);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.modal-close {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover {
  color: #fff;
}

.save-slots {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 190, 130, 0.22);
  transition: border-color 0.2s, background 0.2s;
}

.slot-card:hover {
  border-color: rgba(232, 190, 130, 0.56);
  background: rgba(164, 42, 74, 0.14);
}

.slot-info {
  flex: 1;
  min-width: 0;
}

.slot-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff5ef;
  margin-bottom: 5px;
}

.slot-meta {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-btns {
  display: flex;
  gap: 8px;
}

.slot-action-btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(232, 190, 130, 0.45);
  background: rgba(164, 38, 72, 0.72);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.slot-action-btn:hover {
  background: rgba(202, 50, 90, 0.9);
}

.slot-action-btn.del {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-dim);
}

.slot-action-btn.del:hover {
  background: rgba(152, 32, 48, 0.72);
  color: #fff;
}

.backlog-list {
  padding: 18px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 64vh;
}

.backlog-item {
  padding: 12px 16px;
  border-left: 3px solid rgba(214, 68, 102, 0.75);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 6px 6px 0;
}

.backlog-item.narration {
  border-left-color: rgba(232, 190, 130, 0.45);
}

.backlog-speaker {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 5px;
}

.backlog-text {
  font-size: 15px;
  line-height: 1.68;
  color: #f0e6e3;
}

.esc-menu-list {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.esc-menu-list .menu-btn {
  width: 100%;
  padding: 11px 18px;
  font-size: 15px;
}

/* ==================== 仿真微信聊天浮窗（WeChat Simulator） ==================== */
.wechat-drawer {
  position: absolute;
  top: 64px;
  right: 26px;
  bottom: 24px;
  width: min(440px, 44vw);
  z-index: 25;
  display: flex;
  align-items: stretch;
  animation: wechatSlideIn 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wechatSlideIn {
  from { opacity: 0; transform: translateX(48px) scale(0.98); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.wechat-phone-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 68px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(232, 190, 130, 0.18);
}

.wechat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #191a1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wechat-back, .wechat-more {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.72);
  width: 28px;
  text-align: center;
}

.wechat-title-wrap {
  text-align: center;
  flex: 1;
}

.wechat-peer-name {
  font-size: 16px;
  font-weight: 600;
  color: #f4f4f6;
  letter-spacing: 0.06em;
}

.wechat-typing-status {
  font-size: 12px;
  color: #62d48c;
  margin-top: 2px;
  animation: typingBlink 1.1s ease-in-out infinite;
}

@keyframes typingBlink {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.wechat-messages {
  flex: 1;
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(ellipse at top right, rgba(42, 174, 103, 0.05), transparent 55%),
    #111214;
}

.wechat-time-pill {
  align-self: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.wechat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: msgPop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.wechat-row.me {
  flex-direction: row-reverse;
}

@keyframes msgPop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wechat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center 18%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.wechat-avatar.me-avatar {
  background: linear-gradient(135deg, #c8466a, #7d2846);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.wechat-bubble {
  position: relative;
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.58;
  word-break: break-word;
  white-space: pre-wrap;
}

.wechat-row.them .wechat-bubble {
  background: #27282e;
  color: #f1f1f4;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wechat-row.me .wechat-bubble {
  background: #2aae67;
  color: #062112;
  font-weight: 500;
}

.wechat-footer {
  padding: 12px 14px 14px;
  background: #18191d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wechat-choices {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wechat-choice-btn {
  appearance: none;
  text-align: left;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(98, 212, 140, 0.36);
  background: rgba(42, 174, 103, 0.12);
  color: #eefbf3;
  font-size: 13.5px;
  line-height: 1.48;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.18s;
}

.wechat-choice-btn:hover {
  background: rgba(42, 174, 103, 0.28);
  border-color: #62d48c;
  transform: translateY(-1px);
}

.wechat-continue-btn {
  width: 100%;
  appearance: none;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(232, 190, 130, 0.55);
  background: linear-gradient(135deg, rgba(176, 44, 78, 0.92), rgba(116, 26, 54, 0.92));
  color: #fff6f0;
  font-size: 14.5px;
  letter-spacing: 0.12em;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wechat-continue-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(206, 54, 92, 0.44);
}

/* ==================== 陈会档案 / Gallery 弹窗与灯箱 ==================== */
.modal-panel.modal-gallery-panel {
  width: min(920px, 94vw);
  max-height: 86vh;
}

.gallery-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-count {
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(232, 190, 130, 0.16);
  border: 1px solid rgba(232, 190, 130, 0.42);
  color: var(--gold);
  font-size: 12px;
}

.gallery-grid {
  padding: 20px 24px 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  overflow-y: auto;
}

.gallery-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(232, 190, 130, 0.28);
  background: rgba(16, 10, 22, 0.88);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card:hover:not(.locked) {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(200, 62, 91, 0.34);
}

.gallery-card.locked {
  cursor: default;
  border-color: rgba(255, 255, 255, 0.10);
}

.gallery-thumb {
  height: 180px;
  background: radial-gradient(circle at 50% 35%, #2b1a2d, #0f0a14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  transition: transform 0.35s ease;
}

.gallery-card:hover:not(.locked) .gallery-thumb img {
  transform: scale(1.05);
}

.gallery-card.locked .gallery-thumb img {
  filter: blur(16px) brightness(0.22) grayscale(0.8);
  transform: scale(1.1);
}

.gallery-lock-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(232, 206, 200, 0.72);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.gallery-lock-badge span:first-child {
  font-size: 24px;
}

.gallery-card-meta {
  padding: 11px 14px 13px;
}

.gallery-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff4ec;
  margin-bottom: 4px;
}

.gallery-card-sub {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gallery 高清大图灯箱 */
.gallery-lightbox {
  position: absolute;
  inset: 0;
  z-index: 55;
  background: rgba(5, 3, 9, 0.92);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  animation: fadeIn 0.25s ease;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(24, 14, 28, 0.85);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--gold);
  background: rgba(164, 38, 72, 0.85);
}

.lightbox-body {
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: 1080px;
  max-height: 82vh;
}

.lightbox-media {
  flex: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(164, 48, 80, 0.22), rgba(10, 6, 14, 0.85));
  border: 1px solid rgba(232, 190, 130, 0.35);
  border-radius: 12px;
  padding: 16px;
  max-height: 76vh;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.72));
}

.lightbox-info {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lightbox-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(186, 46, 82, 0.35);
  border: 1px solid rgba(232, 190, 130, 0.5);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: #fff7f0;
  letter-spacing: 0.08em;
}

.lightbox-comment {
  font-size: 15px;
  line-height: 1.85;
  color: #dfd0ce;
}

/* ==================== 酒店雨夜大堂背景样式 ==================== */
.bg-layer.bg-hotel-lobby {
  background:
    radial-gradient(ellipse at 72% 34%, rgba(236, 174, 96, 0.24) 0%, transparent 48%),
    radial-gradient(ellipse at 32% 60%, rgba(56, 138, 198, 0.26) 0%, transparent 56%),
    linear-gradient(155deg, #07101c 0%, #101724 46%, #181318 100%);
}

/* ==================== 微信限时撤回截获样式 ==================== */
.wechat-bubble.retractable {
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(246, 204, 118, 0.78);
  box-shadow: 0 0 14px rgba(238, 184, 82, 0.35);
  animation: wechatRetractPulse 0.9s ease-in-out infinite;
}

.wechat-bubble.retractable::after {
  content: "⚡ 限时截获";
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(246, 198, 98, 0.24);
  color: #ffd980;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

@keyframes wechatRetractPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(246, 204, 118, 0.3); }
  50% { box-shadow: 0 0 22px rgba(255, 214, 122, 0.72); }
}

.wechat-bubble.intercepted {
  border: 1px solid rgba(255, 214, 120, 0.95);
  background: linear-gradient(135deg, rgba(66, 44, 16, 0.95), rgba(38, 24, 16, 0.96));
  color: #fff4d6;
  box-shadow: 0 0 16px rgba(246, 198, 98, 0.38);
}

.wechat-bubble.intercepted::after {
  content: "★ 已截获心声";
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #ffd978;
  letter-spacing: 0.06em;
}

.wechat-retracted-pill {
  align-self: center;
  margin: 6px 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 216, 216, 0.62);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

/* ==================== 四大互动 QTE 与物理探索组件 ==================== */
.qte-overlay {
  position: absolute;
  inset: 0;
  z-index: 42;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.28s ease;
}

.qte-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #f3c984;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.qte-title {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: 0.12em;
  color: #fff5ee;
  margin-bottom: 8px;
}

.qte-hint {
  font-size: 13.5px;
  line-height: 1.65;
  color: #e2d1cd;
  margin-bottom: 18px;
}

.qte-hint strong {
  color: #ffd98a;
}

.qte-skip-btn {
  appearance: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 190, 130, 0.45);
  background: rgba(18, 10, 22, 0.78);
  color: #f4dfbe;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qte-skip-btn:hover {
  border-color: #ffe2a4;
  background: rgba(74, 34, 46, 0.9);
  color: #fff;
}

.qte-corner-skip {
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 12;
}

/* --- 1) 心跳屏息控制 QTE --- */
.qte-breath-overlay {
  background: rgba(6, 3, 10, 0.56);
  backdrop-filter: blur(4px);
  user-select: none;
}

.qte-breath-card {
  width: min(540px, 88vw);
  padding: 26px 30px 22px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(22, 12, 26, 0.94), rgba(11, 7, 16, 0.96));
  border: 1.5px solid rgba(232, 190, 130, 0.52);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.78),
    0 0 36px rgba(196, 52, 86, 0.24);
  text-align: center;
}

.breath-wave-stage {
  position: relative;
  margin-bottom: 16px;
}

.breath-ecg-canvas {
  width: 100%;
  height: 54px;
  display: block;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(8, 5, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.breath-meter-track {
  position: relative;
  width: 100%;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 190, 130, 0.35);
  overflow: hidden;
}

.breath-safe-zone {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 36%;
  width: 28%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(46, 196, 118, 0.25), rgba(74, 228, 146, 0.52), rgba(46, 196, 118, 0.25));
  border: 1.5px solid rgba(114, 246, 174, 0.85);
  box-shadow: 0 0 18px rgba(72, 224, 142, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #dcffec;
  pointer-events: none;
}

.breath-cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff7a96 0%, #c82e56 100%);
  border: 2px solid #fff5f2;
  box-shadow: 0 0 16px rgba(255, 92, 128, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.breath-cursor i {
  font-style: normal;
  font-size: 13px;
  color: #fff;
}

.breath-cursor.in-zone {
  background: radial-gradient(circle, #7affba 0%, #24b668 100%);
  box-shadow: 0 0 20px rgba(96, 255, 172, 0.9);
}

.breath-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #f3e4df;
  margin-bottom: 8px;
}

.breath-timer-text {
  color: #ffd98a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.breath-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 14px;
}

.breath-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #42d68a, #f3c87a);
  transition: width 0.08s linear;
}

.qte-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qte-sub-meta {
  font-size: 12px;
  color: rgba(226, 206, 206, 0.72);
}

/* --- 2) 亲自拉松领带 · 实时交互视频逐帧拖拽 (Interactive Video Scrubbing) --- */
.qte-tie-overlay {
  background: #060309;
  user-select: none;
  touch-action: none;
}

.tie-stage-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.tie-stage-frame.dragging {
  cursor: grabbing;
}

.tie-stage-frame.tie-fast-shake {
  animation: tieFastShake 0.34s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes tieFastShake {
  0%, 100% { transform: translate(0, 0) scale(1); }
  16% { transform: translate(-8px, 4px) scale(1.015); }
  34% { transform: translate(8px, -3px) scale(1.018); }
  52% { transform: translate(-6px, -2px) scale(1.012); }
  72% { transform: translate(5px, 3px) scale(1.006); }
}

.tie-cg-img,
.tie-scrub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 55% 42%;
  transform: scale(1.02);
  pointer-events: none;
  will-change: transform, filter;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.tie-scrub-video {
  z-index: 1;
}

.tie-cg-img.cam-closeup,
.tie-scrub-video.cam-closeup {
  transform: scale(1.18) translateY(-1.5%);
}

.tie-cg-img.tie-burst-zoom,
.tie-scrub-video.tie-burst-zoom {
  transform: scale(1.26) translateY(-2.4%) !important;
  filter: brightness(1.1) contrast(1.08) saturate(1.22);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease;
}

.tie-blush-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 52% 45%, rgba(210, 42, 78, 0.06), rgba(164, 24, 56, 0.52));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.tie-blush-tint.blush-low {
  opacity: 0.42;
}

.tie-blush-tint.blush-high {
  opacity: 0.82;
}

/* 100% 扯开瞬间推近光晕爆发层 */
.tie-burst-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 54% 46%, rgba(255, 224, 168, 0.38) 0%, rgba(236, 86, 126, 0.26) 38%, rgba(16, 4, 14, 0.48) 100%);
  box-shadow: inset 0 0 120px rgba(255, 198, 134, 0.55);
  transition: opacity 0.55s ease;
}

.tie-burst-glow.active {
  opacity: 1;
  animation: tieBurstPulse 0.9s ease-out forwards;
}

@keyframes tieBurstPulse {
  0%   { opacity: 0.2; transform: scale(0.96); }
  40%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0.88; transform: scale(1.08); }
}

.tie-hud-top {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  padding: 10px 26px;
  border-radius: 12px;
  background: rgba(14, 8, 18, 0.78);
  border: 1px solid rgba(232, 190, 130, 0.5);
  backdrop-filter: blur(10px);
  text-align: center;
  pointer-events: none;
}

.tie-prompt-text {
  font-size: 14.5px;
  color: #fff3ea;
  letter-spacing: 0.08em;
}

.tie-velocity-badge {
  position: absolute;
  top: 148px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.tie-velocity-badge.slow {
  background: rgba(34, 16, 28, 0.84);
  border: 1px solid rgba(238, 194, 136, 0.58);
  color: #ffe7c2;
}

.tie-velocity-badge.fast {
  background: rgba(154, 24, 58, 0.9);
  border: 1px solid rgba(255, 166, 188, 0.88);
  color: #fff2f6;
  box-shadow: 0 0 20px rgba(236, 62, 106, 0.62);
}

.tie-velocity-badge.rebound {
  background: rgba(24, 28, 46, 0.88);
  border: 1px solid rgba(158, 194, 248, 0.62);
  color: #dcedff;
}

.tie-velocity-badge.burst {
  background: linear-gradient(135deg, rgba(198, 46, 86, 0.94), rgba(188, 126, 48, 0.94));
  border: 1px solid #ffebb8;
  color: #fffaf0;
  box-shadow: 0 0 26px rgba(255, 196, 118, 0.72);
}

.tie-slider-track {
  position: absolute;
  left: 55.5%;
  top: 44%;
  width: 48px;
  height: 40%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(14, 8, 18, 0.56);
  border: 1.5px solid rgba(242, 198, 128, 0.68);
  box-shadow:
    0 0 28px rgba(0, 0, 0, 0.6),
    inset 0 0 16px rgba(246, 200, 126, 0.18);
  backdrop-filter: blur(6px);
  z-index: 8;
  touch-action: none;
}

.tie-threshold-mark {
  position: absolute;
  left: -6px;
  right: -6px;
  top: 85%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd98a, #ff7a96, transparent);
  box-shadow: 0 0 10px rgba(255, 210, 124, 0.8);
  pointer-events: none;
  z-index: 9;
}

.tie-threshold-mark span {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(24, 10, 20, 0.84);
  border: 1px solid rgba(246, 198, 122, 0.6);
  color: #ffd98a;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tie-taunt-bubble {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(36, 12, 26, 0.94), rgba(16, 8, 20, 0.95));
  border: 1.5px solid rgba(244, 152, 174, 0.72);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.72), 0 0 24px rgba(212, 52, 92, 0.35);
  color: #fff4f6;
  font-size: 15px;
  letter-spacing: 0.06em;
  pointer-events: none;
  animation: tieTauntPop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.tie-taunt-speaker {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(186, 44, 80, 0.78);
  border: 1px solid rgba(246, 202, 148, 0.55);
  color: #ffebd0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

@keyframes tieTauntPop {
  from { opacity: 0; transform: translate(-50%, 10px) scale(0.95); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.tie-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 70, 108, 0.32), rgba(244, 188, 112, 0.78));
  pointer-events: none;
}

.tie-slider-handle {
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translate(-50%, -18%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe6b8, #d87a56 58%, #9e2648 100%);
  border: 2px solid #fff7ea;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(246, 178, 102, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 10;
  touch-action: none;
}

.tie-slider-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -18%) scale(1.08);
}

.tie-handle-icon {
  color: #fff;
  font-size: 20px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.tie-track-arrows {
  position: absolute;
  inset: 52px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  color: rgba(255, 224, 166, 0.65);
  font-size: 16px;
  pointer-events: none;
  animation: tieArrowFlow 1.5s ease-in-out infinite;
}

@keyframes tieArrowFlow {
  0%, 100% { opacity: 0.35; transform: translateY(-3px); }
  50% { opacity: 0.95; transform: translateY(4px); }
}

.tie-stage-caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(18, 9, 20, 0.86);
  border: 1px solid rgba(232, 190, 130, 0.55);
  color: #ffebc7;
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* --- 3) 手机微光黑暗探索 --- */
.qte-flashlight-overlay {
  background: #020206;
  user-select: none;
  touch-action: none;
}

.flashlight-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: none;
}

.flashlight-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) brightness(0.96);
}

.flashlight-darkness.filter-darkness {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --fx: 50%;
  --fy: 50%;
  background: radial-gradient(
    circle 140px at var(--fx) var(--fy),
    rgba(255, 242, 214, 0.08) 0%,
    rgba(24, 18, 28, 0.16) 52%,
    rgba(3, 3, 8, 0.965) 100%
  );
  transition: opacity 0.85s ease;
}

.flashlight-darkness.cleared {
  opacity: 0;
}

.flashlight-hotspots {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.clue-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.clue-hotspot.lit,
.clue-hotspot:hover,
.clue-hotspot.found {
  opacity: 1;
}

.clue-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 224, 150, 0.9);
  background: rgba(255, 206, 118, 0.16);
  box-shadow: 0 0 18px rgba(255, 214, 128, 0.72);
  animation: cluePulse 1.8s ease-in-out infinite;
}

.clue-hotspot.found .clue-ring {
  border-color: #7affba;
  background: rgba(68, 224, 140, 0.28);
  box-shadow: 0 0 18px rgba(96, 246, 168, 0.82);
  animation: none;
}

.clue-label {
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(12, 7, 16, 0.86);
  border: 1px solid rgba(242, 198, 126, 0.65);
  color: #fff2d6;
  font-size: 12px;
  white-space: nowrap;
}

.clue-hotspot.found .clue-label {
  border-color: #7affba;
  color: #dcffec;
}

@keyframes cluePulse {
  0%, 100% { transform: scale(0.92); opacity: 0.72; }
  50% { transform: scale(1.12); opacity: 1; }
}

.flashlight-hud-top {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(12, 7, 18, 0.84);
  border: 1px solid rgba(232, 190, 130, 0.52);
  color: #fff3e6;
  font-size: 13.5px;
  backdrop-filter: blur(8px);
}

.flashlight-whisper {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: min(680px, 84vw);
  padding: 12px 26px;
  border-radius: 10px;
  background: rgba(16, 8, 22, 0.92);
  border: 1px solid rgba(244, 196, 126, 0.65);
  color: #fff4ea;
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
}

.gallery-section-title.scene-sec {
  color: #b8e4ff;
  border-bottom-color: rgba(130, 196, 255, 0.35);
}

.gallery-section-title.video-sec {
  margin-top: 8px;
  color: #ffd896;
  border-bottom-color: rgba(244, 196, 120, 0.42);
}

.gallery-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 8, 22, 0.84);
  border: 1px solid rgba(246, 200, 124, 0.72);
  color: #ffe2a8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.gallery-card.locked .gallery-video-badge {
  opacity: 0.38;
}

.lightbox-media video {
  max-width: 100%;
  max-height: 70vh;
  width: 100%;
  border-radius: 8px;
  background: #060309;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  outline: none;
}

/* ==================== 番外 DLC 暗号解锁弹窗 & 右上角金色联动提示 ==================== */
.modal-dlc-unlock-panel {
  width: min(440px, 90vw);
}

.dlc-unlock-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 4px 4px;
}

.dlc-unlock-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #e8dad4;
  text-align: center;
}

.dlc-unlock-desc strong {
  color: #ffd992;
}

.dlc-code-input-row {
  display: flex;
  gap: 10px;
}

#input-dlc-code {
  flex: 1;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid rgba(232, 190, 130, 0.45);
  background: rgba(12, 8, 16, 0.86);
  color: #fff6e8;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#input-dlc-code:focus {
  border-color: #ffd98e;
  box-shadow: 0 0 0 3px rgba(232, 184, 102, 0.2);
}

.dlc-confirm-btn {
  padding: 10px 20px;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.dlc-code-error {
  font-size: 12.5px;
  color: #ff8e9e;
  text-align: center;
}

.hud-bonus-toast {
  position: absolute;
  top: 66px;
  right: 24px;
  z-index: 65;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(64, 42, 14, 0.95), rgba(34, 20, 12, 0.96));
  border: 1.5px solid rgba(246, 204, 118, 0.92);
  color: #fff1c9;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(238, 184, 82, 0.45),
    inset 0 0 12px rgba(255, 224, 146, 0.24);
  pointer-events: none;
  animation: hudBonusSlideIn 0.4s ease;
}

@keyframes hudBonusSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==================== Toast 轻提示 ==================== */
.toast {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(26, 14, 30, 0.92);
  border: 1px solid rgba(232, 190, 130, 0.55);
  color: #fff4eb;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* ==================== 一、常驻级立绘随时可戳微交互 ==================== */
.ambient-touch-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.ambient-zone {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 44%;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.ambient-zone:hover {
  background: radial-gradient(circle, rgba(244, 118, 152, 0.16) 0%, transparent 72%);
  box-shadow: 0 0 18px rgba(240, 96, 136, 0.22);
}

.ambient-touch-layer[data-char="rival"] .ambient-zone:hover {
  background: radial-gradient(circle, rgba(132, 186, 255, 0.16) 0%, transparent 72%);
  box-shadow: 0 0 18px rgba(126, 178, 255, 0.24);
}

.ambient-zone.az-eyes {
  top: 12%;
  left: 35%;
  width: 30%;
  height: 12%;
}

.ambient-zone.az-throat {
  top: 26%;
  left: 38%;
  width: 24%;
  height: 11%;
}

.ambient-zone.az-tie {
  top: 38%;
  left: 35%;
  width: 26%;
  height: 16%;
}

.ambient-zone.az-chest {
  top: 44%;
  left: 28%;
  width: 44%;
  height: 18%;
}

/* 物理回弹颤动 + 边缘泛红光晕 */
.sprite-anim.poke-recoil {
  animation: pokeRecoilBounce 0.42s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes pokeRecoilBounce {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  22%  { transform: translate(6px, -6px) scale(1.028) rotate(1.6deg); }
  48%  { transform: translate(-5px, 2px) scale(0.985) rotate(-1.1deg); }
  74%  { transform: translate(3px, -2px) scale(1.01) rotate(0.5deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

.sprite-img.poke-blush-rim {
  filter:
    brightness(1.06) saturate(1.22)
    drop-shadow(0 0 22px rgba(244, 72, 118, 0.68))
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.68)) !important;
}

/* 头顶独立浮动吐槽气泡 */
.ambient-poke-bubble {
  position: absolute;
  top: 6%;
  left: 52%;
  transform: translateX(-50%);
  z-index: 14;
  max-width: 280px;
  padding: 9px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(36, 12, 26, 0.94), rgba(18, 8, 20, 0.95));
  border: 1.5px solid rgba(248, 152, 178, 0.78);
  color: #fff3f6;
  font-size: 13.5px;
  line-height: 1.48;
  letter-spacing: 0.05em;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 22px rgba(232, 68, 112, 0.36);
  animation: pokeBubblePop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.ambient-poke-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 46%;
  border-width: 8px 7px 0;
  border-style: solid;
  border-color: rgba(248, 152, 178, 0.78) transparent transparent;
}

.ambient-poke-bubble.rival-poke-bubble {
  background: linear-gradient(145deg, rgba(16, 26, 48, 0.95), rgba(10, 14, 28, 0.96));
  border-color: rgba(146, 198, 255, 0.8);
  color: #eef6ff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 22px rgba(108, 168, 255, 0.35);
}

.ambient-poke-bubble.rival-poke-bubble::after {
  border-color: rgba(146, 198, 255, 0.8) transparent transparent;
}

@keyframes pokeBubblePop {
  0%   { opacity: 0; transform: translate(-50%, 10px) scale(0.84); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ==================== 二、微信语音条与挑逗表情包 ==================== */
.wechat-voice-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 78%;
}

.wechat-voice-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 158px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(114, 236, 158, 0.52);
  background: linear-gradient(135deg, #27a662 0%, #1d7f4b 100%);
  color: #f6fff9;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(24, 148, 82, 0.32);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wechat-voice-bubble:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(42, 196, 114, 0.45);
}

.wechat-voice-bubble:active {
  transform: scale(0.96);
}

.voice-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.voice-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #eafff2;
  height: 6px;
  transition: height 0.18s ease;
}

.voice-bars i:nth-child(2) { height: 11px; }
.voice-bars i:nth-child(3) { height: 15px; }

.wechat-voice-bubble.voice-playing .voice-bars i {
  animation: voiceWaveJump 0.55s ease-in-out infinite alternate;
}

.wechat-voice-bubble.voice-playing .voice-bars i:nth-child(2) {
  animation-delay: 0.14s;
}

.wechat-voice-bubble.voice-playing .voice-bars i:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes voiceWaveJump {
  0%   { height: 4px; opacity: 0.65; }
  100% { height: 16px; opacity: 1; }
}

.voice-dur {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.voice-hint-tag {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.92;
  font-weight: 500;
}

.voice-unread-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4c6a;
  box-shadow: 0 0 10px rgba(255, 76, 106, 0.9);
}

.wechat-voice-transcript {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(34, 24, 38, 0.92);
  border: 1px solid rgba(232, 190, 130, 0.35);
  color: #fceee8;
  font-size: 13px;
  line-height: 1.56;
  animation: fadeIn 0.25s ease;
}

.wechat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.wechat-sticker-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 198, 128, 0.55);
  background: rgba(244, 194, 118, 0.14);
  color: #ffe7bf;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.wechat-sticker-toggle:hover,
.wechat-sticker-toggle.active {
  background: rgba(226, 72, 112, 0.36);
  border-color: #ffd98e;
  color: #fff;
}

.wechat-toolbar-tip {
  font-size: 11.5px;
  color: rgba(226, 214, 214, 0.58);
}

.wechat-sticker-tray {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.2s ease;
}

.sticker-card-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid rgba(232, 190, 130, 0.32);
  background: linear-gradient(145deg, rgba(44, 20, 36, 0.88), rgba(22, 14, 26, 0.92));
  color: #fff2e8;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sticker-card-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #ffd98a;
  box-shadow: 0 6px 16px rgba(214, 58, 98, 0.35);
}

.sticker-card-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.sticker-emoji {
  font-size: 22px;
  line-height: 1.1;
}

.sticker-name {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.wechat-sticker-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(226, 72, 112, 0.26), rgba(44, 18, 34, 0.92));
  border: 1px solid rgba(246, 184, 146, 0.58);
  color: #fff4ec;
  text-align: center;
}

.wechat-sticker-bubble .sticker-big {
  font-size: 32px;
  line-height: 1.1;
}

.wechat-sticker-bubble .sticker-cap {
  font-size: 12px;
  color: #ffe2b8;
  letter-spacing: 0.06em;
}

/* ==================== 三、修罗场左右拉扯拔河（Tug-of-War） ==================== */
.qte-tug-overlay {
  position: absolute;
  inset: 0;
  z-index: 32;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 26px;
  user-select: none;
  touch-action: none;
}

.tug-tap-zone {
  position: absolute;
  top: 58px;
  bottom: 220px;
  width: 48%;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.65;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.tug-tap-left {
  left: 0;
  justify-content: flex-start;
  color: #ffd8e4;
  background: linear-gradient(90deg, rgba(186, 42, 82, 0.16), transparent 68%);
}

.tug-tap-right {
  right: 0;
  justify-content: flex-end;
  color: #cde3ff;
  background: linear-gradient(270deg, rgba(64, 128, 224, 0.16), transparent 68%);
}

.tug-tap-zone:hover {
  opacity: 1;
}

.tug-tap-zone:active {
  opacity: 1;
  filter: brightness(1.25);
}

.tug-panel {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  width: min(860px, 92vw);
  padding: 18px 26px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(22, 11, 26, 0.92), rgba(10, 8, 18, 0.95));
  border: 1.5px solid rgba(238, 192, 132, 0.56);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.82), 0 0 36px rgba(196, 52, 92, 0.24);
  backdrop-filter: blur(12px);
  text-align: center;
}

.tug-banter-bubble {
  margin-bottom: 10px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(242, 198, 138, 0.36);
  color: #fff6ee;
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.tug-banter-bubble.side-left {
  border-color: rgba(242, 96, 136, 0.78);
  background: rgba(154, 28, 62, 0.28);
}

.tug-banter-bubble.side-right {
  border-color: rgba(126, 182, 255, 0.78);
  background: rgba(36, 74, 148, 0.28);
}

.tug-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 3px;
}

.tug-hint {
  font-size: 12.5px;
  color: #d6c5c2;
  margin-bottom: 12px;
}

.tug-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.tug-side-label {
  min-width: 96px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tug-side-label.left {
  text-align: right;
  color: #ff9cb6;
}

.tug-side-label.right {
  text-align: left;
  color: #9ec8ff;
}

.tug-track {
  position: relative;
  flex: 1;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(238, 196, 136, 0.45);
  overflow: visible;
  cursor: ew-resize;
  touch-action: none;
}

.tug-fill-left {
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 50%;
  width: 0%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(270deg, rgba(226, 62, 104, 0.55), rgba(248, 128, 158, 0.92));
  box-shadow: 0 0 18px rgba(236, 68, 110, 0.55);
  pointer-events: none;
}

.tug-fill-right {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 0%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, rgba(72, 134, 232, 0.55), rgba(142, 198, 255, 0.92));
  box-shadow: 0 0 18px rgba(98, 166, 255, 0.55);
  pointer-events: none;
}

.tug-center-tick {
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 238, 200, 0.7);
  pointer-events: none;
}

.tug-knot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2cf, #e0985c 55%, #a8284e 100%);
  border: 2px solid #fff8eb;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.72), 0 0 18px rgba(248, 196, 118, 0.65);
  cursor: grab;
  z-index: 4;
}

.tug-knot:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.08);
}

.tug-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tug-quick-btn {
  appearance: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #f6ebe6;
  transition: all 0.18s ease;
}

.tug-quick-btn.left:hover {
  background: rgba(186, 40, 78, 0.85);
  border-color: #ffb8ca;
}

.tug-quick-btn.right:hover {
  background: rgba(52, 108, 204, 0.85);
  border-color: #b8d8ff;
}

.tug-meter-text {
  font-size: 12.5px;
  color: #ffd992;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ==================== 四、QoL：半透明记录回放、快进灯、全局按钮触感、好感跳动 ==================== */
#modal-backlog .modal-panel {
  background: linear-gradient(180deg, rgba(20, 12, 26, 0.82), rgba(10, 7, 16, 0.88));
  backdrop-filter: blur(18px);
}

.backlog-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.backlog-replay-btn {
  appearance: none;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 190, 130, 0.45);
  background: rgba(232, 190, 130, 0.14);
  color: #ffe2b0;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.backlog-replay-btn:hover {
  background: rgba(196, 48, 86, 0.72);
  border-color: #ffe8bd;
  color: #fff;
}

.fast-forward-pill {
  position: absolute;
  top: 66px;
  left: 24px;
  z-index: 35;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(186, 42, 82, 0.92), rgba(112, 26, 56, 0.92));
  border: 1px solid rgba(255, 220, 152, 0.8);
  color: #fff6e6;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 22px rgba(212, 48, 92, 0.45);
  pointer-events: none;
  animation: ffPulse 0.8s ease-in-out infinite alternate;
}

@keyframes ffPulse {
  from { opacity: 0.8; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1.03); }
}

/* 全局按钮悬停微光与物理缩放 scale(0.96) */
.menu-btn,
.choice-btn,
.hud-btn,
.wechat-choice-btn,
.wechat-continue-btn,
.slot-action-btn,
.qte-skip-btn,
.tug-quick-btn,
.backlog-replay-btn,
.sticker-card-btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.14s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.menu-btn::before,
.choice-btn::before,
.wechat-choice-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 238, 206, 0.18), transparent);
  transform: skewX(-22deg);
  transition: left 0.48s ease;
  pointer-events: none;
}

.menu-btn:hover::before,
.choice-btn:hover::before,
.wechat-choice-btn:hover::before {
  left: 125%;
}

.menu-btn:active,
.choice-btn:active,
.hud-btn:active,
.wechat-choice-btn:active,
.wechat-continue-btn:active,
.slot-action-btn:active,
.qte-skip-btn:active,
.tug-quick-btn:active,
.backlog-replay-btn:active,
.sticker-card-btn:active {
  transform: scale(0.96) !important;
}

/* 顶部好感度状态栏动态数字跳动与光效 */
.hud-affection.aff-glow-up {
  animation: hudAffGlowUp 0.65s ease;
}

.hud-affection.aff-glow-down {
  animation: hudAffGlowDown 0.65s ease;
}

@keyframes hudAffGlowUp {
  0%   { box-shadow: 0 0 0 rgba(244, 186, 112, 0); border-color: rgba(232, 190, 130, 0.28); }
  35%  { box-shadow: 0 0 26px rgba(246, 112, 148, 0.72), inset 0 0 14px rgba(255, 214, 138, 0.35); border-color: #ffe2a4; transform: scale(1.04); }
  100% { box-shadow: 0 0 0 rgba(244, 186, 112, 0); border-color: rgba(232, 190, 130, 0.28); transform: scale(1); }
}

@keyframes hudAffGlowDown {
  0%   { box-shadow: 0 0 0 rgba(96, 148, 232, 0); }
  35%  { box-shadow: 0 0 22px rgba(92, 142, 224, 0.65); border-color: #9ec4ff; transform: scale(0.98); }
  100% { box-shadow: 0 0 0 rgba(96, 148, 232, 0); transform: scale(1); }
}

.aff-value.rolling {
  color: #ffe29e;
  transform: scale(1.18);
  transition: transform 0.18s ease, color 0.18s ease;
}


/* ==================== 移动端纯静态网页适配补丁 (Nginx / NAS / Mobile Web) ==================== */
html, body {
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.game-root {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overscroll-behavior: none;
  touch-action: none;
}

/* 允许真正需要滚动的弹窗/消息列表保持丝滑纵滑，不向上传递下拉刷新 */
.wechat-messages,
.backlog-list,
.gallery-grid,
.save-slots {
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* 刘海屏 / 底部小白条安全区适配 */
.hud-bar {
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  height: calc(54px + env(safe-area-inset-top, 0px));
}

.dialogue-container {
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.qte-tug-overlay {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.tie-stage-caption {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.qte-corner-skip {
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.wechat-drawer {
  top: calc(60px + env(safe-area-inset-top, 0px));
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

/* 竖屏非阻塞“建议横屏全屏游玩”友好提示条 */
.mobile-landscape-tip {
  display: none;
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(24, 12, 28, 0.86);
  border: 1px solid rgba(244, 198, 130, 0.62);
  color: #fff2de;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.mobile-landscape-tip.dismissed {
  display: none !important;
}

.landscape-tip-close {
  margin-left: 4px;
  opacity: 0.72;
  font-size: 12px;
}

@media (orientation: portrait) and (max-width: 900px) {
  .mobile-landscape-tip:not(.dismissed) {
    display: inline-flex;
  }
}

/* 手机端小屏与横屏紧凑自适应 */
@media (max-width: 900px) {
  .hud-bar {
    gap: 6px;
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }
  .hud-affection {
    padding: 4px 10px;
    gap: 6px;
  }
  .aff-track {
    width: 68px;
  }
  .aff-label {
    font-size: 11.5px;
  }
  .hud-actions {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .hud-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  .dialogue-container {
    width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  }
  .dialogue-box {
    min-height: 112px;
    padding: 16px 20px 18px;
  }
  .dialogue-text {
    font-size: 15.5px;
    line-height: 1.66;
  }
  .wechat-drawer {
    width: min(420px, calc(100vw - 24px));
    right: 12px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .lightbox-body {
    flex-direction: column;
    gap: 16px;
    max-height: 88vh;
    overflow-y: auto;
  }
  .tug-panel {
    padding: 12px 14px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .dialogue-box {
    min-height: 88px;
    padding: 12px 22px 14px;
  }
  .dialogue-text {
    font-size: 14.5px;
    line-height: 1.55;
  }
  .tie-hud-top {
    top: calc(52px + env(safe-area-inset-top, 0px));
    padding: 6px 16px;
  }
  .tie-velocity-badge {
    top: calc(106px + env(safe-area-inset-top, 0px));
  }
}
