/* ============================================================
   众目 — style.css
   原图尺寸: 1920 × 1080
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@700;900&family=Share+Tech+Mono&family=Rajdhani:wght@300;500;700&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'Noto Serif SC', serif;
}

/* ---------- Scene ---------- */
#scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  background: #000;
  overflow: hidden;
}

.timeline-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 140;
  transform: translateX(-50%);
  opacity: 0.92;
  pointer-events: auto;
  transition: opacity 0.45s ease;
}

.timeline-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.timeline-shell {
  position: relative;
  width: min(1180px, calc(100vw - 120px));
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 14px 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 4, 4, 0.18), rgba(8, 4, 4, 0.04));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.timeline-line {
  position: absolute;
  left: 54px;
  right: 54px;
  top: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(40, 8, 8, 0.1), rgba(110, 20, 20, 0.22), rgba(40, 8, 8, 0.1));
  pointer-events: none;
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 235, 235, 0.72);
  cursor: pointer;
  opacity: 0.42;
  transform: translateY(0) scale(1);
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
  filter: saturate(0.78);
}

.timeline-node.unlocked {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  filter: none;
}

.timeline-node.newly-unlocked {
  animation: timelineNodeReveal 0.9s cubic-bezier(0.22, 0.68, 0, 1.12);
}

.timeline-node.active .timeline-dot,
.timeline-node:hover .timeline-dot {
  transform: scale(1.05);
  border-color: rgba(185, 72, 72, 0.72);
  box-shadow:
    0 0 0 4px rgba(120, 16, 24, 0.1),
    0 0 12px rgba(180, 38, 48, 0.22);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(220, 150, 150, 0.8), rgba(120, 18, 26, 0.92) 52%, rgba(24, 4, 4, 0.98) 100%);
  border: 1px solid rgba(130, 38, 44, 0.44);
  box-shadow:
    0 0 0 3px rgba(32, 6, 8, 0.34),
    0 0 8px rgba(90, 10, 18, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.timeline-node:not(.unlocked) .timeline-dot {
  background: radial-gradient(circle at 35% 35%, rgba(90, 54, 54, 0.52), rgba(54, 12, 16, 0.88) 52%, rgba(12, 4, 4, 0.98) 100%);
  border-color: rgba(88, 28, 32, 0.34);
  box-shadow:
    0 0 0 2px rgba(20, 6, 6, 0.28),
    0 0 5px rgba(60, 10, 14, 0.12);
}

.timeline-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(210, 180, 180, 0.56);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.24);
}

.timeline-node:not(.unlocked) .timeline-label {
  color: rgba(118, 92, 92, 0.42);
}

@keyframes timelineNodeReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
  55% {
    opacity: 1;
    transform: translateY(-2px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- 开始封面 ---------- */
.start-screen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(75, 0, 18, 0.28) 0%, rgba(18, 0, 6, 0.42) 28%, rgba(0,0,0,0.92) 72%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

.start-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.start-bg {
  position: absolute;
  inset: 0;
}

.start-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 18%, rgba(0,0,0,0.24) 48%, rgba(0,0,0,0.84) 100%);
}

.start-red-glow {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 1200px;
  height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(165,20,45,0.22) 0%, rgba(120,10,35,0.14) 28%, rgba(70,0,18,0.08) 52%, rgba(0,0,0,0) 76%);
  filter: blur(34px);
  animation: startGlowBreath 6s ease-in-out infinite;
}

.start-grain {
  position: absolute;
  inset: -10%;
  opacity: 0.04;
  background-image: radial-gradient(rgba(255,255,255,0.16) 0.7px, transparent 0.8px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
  animation: grainDrift 12s linear infinite;
}

.start-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  transform: translateY(-14px);
}

.start-overline {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 26px;
}

.start-title {
  font-size: 148px;
  line-height: 0.95;
  font-weight: 900;
  color: #c11432;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(193,20,50,0.24), 0 0 36px rgba(193,20,50,0.28), 0 0 90px rgba(193,20,50,0.14);
  animation: titlePulse 4.5s ease-in-out infinite;
}

.start-divider {
  width: 240px;
  height: 1px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(193,20,50,0.85), rgba(255,255,255,0));
  box-shadow: 0 0 18px rgba(193,20,50,0.25);
}

.start-sub {
  font-size: 22px;
  color: rgba(255,255,255,0.76);
  margin-bottom: 42px;
  letter-spacing: 0.12em;
}

.btn-start {
  background: linear-gradient(180deg, rgba(26,22,24,0.78), rgba(8,8,8,0.94));
  color: #fff;
  border: 1.5px solid rgba(193,20,50,0.7);
  padding: 14px 46px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(193,20,50,0.16), inset 0 0 16px rgba(255,255,255,0.03);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, color 0.28s ease, background 0.28s ease;
}

.btn-start:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #ff4a6a;
  background: linear-gradient(180deg, rgba(52,18,24,0.88), rgba(10,8,8,0.96));
  box-shadow: 0 0 24px rgba(193,20,50,0.26), 0 0 56px rgba(193,20,50,0.12), inset 0 0 18px rgba(255,255,255,0.05);
}

.btn-start:active {
  transform: scale(0.98);
}

@keyframes startGlowBreath {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.88; }
  50% { transform: translate(-50%,-50%) scale(1.05); opacity: 1; }
}

@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 12px rgba(193,20,50,0.24), 0 0 36px rgba(193,20,50,0.28), 0 0 90px rgba(193,20,50,0.14); }
  50% { text-shadow: 0 0 16px rgba(255,90,120,0.28), 0 0 48px rgba(193,20,50,0.34), 0 0 120px rgba(193,20,50,0.18); }
}

@keyframes grainDrift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -6px); }
  100% { transform: translate(0, 0); }
}

/* ---------- 主标题 ---------- */
#title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 150px;
  font-weight: 900;
  color: #c8000a;
  letter-spacing: 0.15em;
  text-shadow: 0 0 60px rgba(200,0,10,0.6), 0 0 120px rgba(200,0,10,0.3);
  opacity: 0;
  transition: opacity 2s ease;
  z-index: 10;
  pointer-events: none;
  user-select: none;
}

#title.visible {
  opacity: 1;
}

#prompt {
  position: absolute;
  bottom: 60px;
  left: 50%;
  top: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 20;
  opacity: 1;
  transition: opacity 0.8s ease;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#prompt.hidden {
  opacity: 0;
  pointer-events: none;
}

#space-btn {
  cursor: pointer;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.25em;
  padding: 8px 22px;
  border-radius: 6px;
  text-transform: uppercase;
  animation: pulse-border 2s ease-in-out infinite;
  box-shadow: none;
}

#space-btn:active {
  transform: scale(0.95);
}

.prompt-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.25em;
  padding: 8px 22px;
  border-radius: 6px;
  text-transform: uppercase;
  animation: pulse-border 2s ease-in-out infinite;
  background: transparent;
}

.prompt-text {
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-shadow: none;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

/* ---------- 中央长按提示 ---------- */
.hold-warning {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  padding: 16px 30px;
  border: 1.5px solid rgba(200, 0, 10, 0.7);
  background: rgba(10, 0, 0, 0.82);
  color: #fff;
  font-size: 24px;
  letter-spacing: 0.18em;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(200,0,10,0.18);
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  text-transform: uppercase;
}

.hold-warning.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  pointer-events: none;
}

/* ---------- 眼球容器 ---------- */
#eyes-container {
  position: absolute;
  inset: 0;
  z-index: 5;
}

@keyframes eye-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.eye {
  position: absolute;
  display: block;
  opacity: 0;
  filter: brightness(1) blur(1.2px);
  transform: translate(-50%, -50%) scale(0.99);
  transition: opacity 2s ease, filter 2s ease, transform 2s ease;
  transform-origin: center center;
  will-change: opacity, filter, transform;
}

.eye.lit {
  opacity: 1;
  filter: brightness(1.05) blur(0px);
  transform: translate(-50%, -50%) scale(1);
  animation: eye-breathe 4s ease-in-out infinite;
}

.eye.flash {
  filter: brightness(2.8);
}

@keyframes eye-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

.eye.pulse {
  animation: eye-pulse 1.2s ease-in-out infinite;
}

.eye.slow-dim {
  transition: opacity 3s ease, filter 3s ease, transform 3s ease;
}

/* ---------- 眼球坐标 ---------- */
#eye-1  { left: 402px; top: 316px; }
#eye-2  { left: 806px; top: 309px; }
#eye-3  { left: 590px; top: 497px; }
#eye-4  { left: 802px; top: 542px; }
#eye-5  { left: 869px; top: 666px; }
#eye-6  { left: 368px; top: 761px; }
#eye-7  { left: 729px; top: 762px; }
#eye-8  { left: 1279px; top: 231px; }
#eye-9  { left: 1217px; top: 429px; }
#eye-10 { left: 1381px; top: 501px; }
#eye-11 { left: 1711px; top: 419px; }
#eye-12 { left: 1299px; top: 651px; }
#eye-13 { left: 1191px; top: 810px; }
#eye-14 { left: 1544px; top: 727px; }

/* ---------- 眼球计数 ---------- */
#counter {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 18px;
  color: rgba(200,0,10,0.85);
  letter-spacing: 0.15em;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 20;
  font-variant-numeric: tabular-nums;
}

#counter.visible {
  opacity: 1;
}

.count-sep {
  color: rgba(255,255,255,0.3);
  margin: 0 4px;
}

/* ---------- 视频层 ---------- */
#video-eyes,
#video-main {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  object-fit: cover;
  display: block;
  background: transparent;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
}

#video-main {
  z-index: 31;
}

#video-eyes.active,
#video-main.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   进度计数器 暂停交互
   ============================================================ */

.pause-overlay {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  pointer-events: auto;
  background: transparent;
}

.pause-overlay.hidden {
  display: none;
}

/* 三角指示符 */
.counter-triangle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  gap: 4px;
}

.counter-triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid #c8000a;
  filter: drop-shadow(0 0 8px rgba(200,0,10,0.7));
  animation: cw-pulse-tri 2s ease-in-out infinite;
}

.counter-triangle-line {
  width: 1px;
  height: 16px;
  background: linear-gradient(to bottom, #c8000a, transparent);
  opacity: 0.6;
}

@keyframes cw-pulse-tri {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* 计数器主体方框 */
.counter-box-widget {
  position: relative;
  width: 240px;
  height: 240px;
  background: rgba(10, 6, 6, 0.88);
  border: 1.5px solid #4a1010;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow:
    0 0 40px rgba(200,0,10,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.counter-box-widget::before,
.counter-box-widget::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 10;
}

.counter-box-widget::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid #c8000a;
  border-left: 2px solid #c8000a;
}

.counter-box-widget::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #c8000a;
  border-right: 2px solid #c8000a;
}

/* 左右刻度容器 */
.cw-ticks {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  z-index: 5;
  pointer-events: none;
}

.cw-ticks-left { left: 0; }
.cw-ticks-right { right: 0; }

.cw-tick {
  position: absolute;
  height: 1px;
  background: #3a2020;
  transition: background 0.3s;
}

.cw-ticks-left .cw-tick { right: 0; }
.cw-ticks-right .cw-tick { left: 0; }

.cw-tick.major { width: 12px; }
.cw-tick.minor { width: 6px; }

.cw-tick.active {
  background: #c8000a;
  opacity: 0.8;
}

/* 网格线 */
.cw-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.cw-grid-line {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 1px;
  background: #3a2020;
  opacity: 0.5;
}

/* 填充块 */
.cw-fill-block {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(200, 0, 10, 0.6), rgba(139, 0, 7, 0.15));
  transition: height 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: height;
  z-index: 1;
}

.cw-fill-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #c8000a;
  box-shadow: 0 0 10px #c8000a, 0 0 20px rgba(200,0,10,0.5);
}

/* 数字 */
.cw-number-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  pointer-events: none;
}

.cw-number {
  font-family: 'Share Tech Mono', monospace;
  font-size: 80px;
  color: rgba(232, 200, 200, 0.9);
  line-height: 1;
  text-shadow: 0 0 30px rgba(200,0,10,0.15);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cw-unit {
  font-size: 16px;
  color: #6a4040;
  letter-spacing: 3px;
  display: block;
  text-align: center;
  margin-top: 4px;
  font-family: 'Share Tech Mono', monospace;
}

/* 长按光圈 */
.cw-hold-ring {
  position: absolute;
  inset: -5px;
  border: 1.5px solid transparent;
  pointer-events: none;
  z-index: 7;
  transition: border-color 0.1s;
}

.cw-hold-ring.active {
  border-color: rgba(200, 0, 10, 0.35);
  animation: cw-spin-ring 2s linear infinite;
}

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

/* 完成闪烁 */
.cw-complete-flash {
  position: absolute;
  inset: 0;
  background: #c8000a;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}

/* 波纹 */
.cw-ripple {
  position: absolute;
  background: rgba(200, 0, 10, 0.14);
  transform: scale(0);
  animation: cw-ripple-anim 0.4s ease-out forwards;
  pointer-events: none;
  z-index: 3;
}

@keyframes cw-ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* 完成态 */
.counter-box-widget.complete {
  border-color: #ff4444;
  box-shadow: 0 0 30px rgba(255,68,68,0.5), 0 0 60px rgba(200,0,10,0.2);
}

.counter-box-widget.complete::before,
.counter-box-widget.complete::after {
  border-color: #ff4444;
}

.counter-box-widget.complete .cw-fill-block {
  background: linear-gradient(to top, rgba(255,50,50,0.6), rgba(200,0,10,0.1));
}

.counter-box-widget.complete .cw-fill-block::after {
  background: #ff4444;
  box-shadow: 0 0 10px #ff4444, 0 0 20px rgba(255,68,68,0.5);
}

.counter-box-widget.complete .cw-number {
  color: #ff8888;
  text-shadow: 0 0 20px rgba(255,68,68,0.5);
}

/* 数字弹跳 */
@keyframes cw-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.1) translateY(-5px); }
  100% { transform: scale(1); }
}

.cw-number.bump {
  animation: cw-bump 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 完成闪烁动画 */
@keyframes cw-flash-anim {
  0% { opacity: 0; }
  20% { opacity: 0.22; }
  40% { opacity: 0; }
  60% { opacity: 0.13; }
  100% { opacity: 0; }
}

.cw-complete-flash.flash {
  animation: cw-flash-anim 0.7s ease forwards;
}

/* 鼠标移动提示 */
.counter-hint {
  position: absolute;
  left: 50%;
  top: calc(50% - 210px);
  transform: translateX(-50%);
  z-index: 40;
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.18em;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(255,255,255,0.12);
}

.counter-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 底部长按提示 */
.cw-hint {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(106, 64, 64, 0.8);
  margin-top: 14px;
  animation: cw-hint-blink 3s ease-in-out infinite;
}

@keyframes cw-hint-blink {
  0%, 80%, 100% { opacity: 0.35; }
  40% { opacity: 0.9; }
}

/* 三角完成时变色 */
.counter-triangle.complete {
  border-bottom-color: #ff4444;
  filter: drop-shadow(0 0 8px rgba(255,68,68,0.6));
}

/* ---------- 信息页面 ---------- */
.info-page {
  position: absolute;
  inset: 0;
  z-index: 33;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}

.info-page.hidden {
  display: none;
}

.info-content {
  width: 82%;
  max-width: 1180px;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 42px;
  padding: 36px;
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: default;
}

.info-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-video-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-image {
  width: 100%;
  max-height: 488px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}

.info-video {
  width: 100%;
  max-width: 100%;
  max-height: 488px;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}

.info-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.74);
  color: #f5f1e8;
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.info-video-play:hover {
  transform: translate(-50%, -50%) scale(1.03);
  background: rgba(22, 22, 22, 0.82);
}

.info-video-play.hidden {
  opacity: 0;
  pointer-events: none;
}

.info-video-play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #f5f1e8;
}

.info-video-play-text {
  white-space: nowrap;
}

.info-right {
  display: flex;
  align-items: center;
}

.info-text {
  color: #f5f1e8;
  font-size: 24px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  max-width: 620px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.info-text p {
  margin: 0 0 24px 0;
}

.info-text p:last-child {
  margin-bottom: 0;
}

.info-prompt {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.68);
  animation: promptBlink 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes promptBlink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---------- 遮罩（彻底禁用，避免盖黑视频） ---------- */
#overlay {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#overlay.fade-in { opacity: 0 !important; }
#overlay.fade-out { opacity: 0 !important; }

/* ---------- 权限弹窗 ---------- */
.modal {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: #1a1a1a;
  border: 2px solid #c8000a;
  border-radius: 12px;
  padding: 40px 50px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 40px rgba(200,0,10,0.4);
}

.modal-content h2 {
  font-size: 32px;
  color: #c8000a;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.modal-content p {
  font-size: 18px;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

.modal-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 12px 36px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-agree {
  background: linear-gradient(135deg, #c8000a 0%, #8b0007 100%);
  color: #fff;
  border-color: #c8000a;
}

.btn-agree:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(200,0,10,0.6);
}

.btn-disagree {
  background: transparent;
  color: #fff;
  border-color: #666;
}

.btn-disagree:hover {
  border-color: #c8000a;
  color: #c8000a;
}

/* ---------- 终幕介绍层 ---------- */
.final-layer {
  position: absolute;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(120,0,20,0.22) 0%, rgba(28,0,8,0.48) 35%, rgba(0,0,0,0.9) 76%, #000 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.final-layer.hidden {
  display: none;
}

.final-content {
  width: 1320px;
  max-width: calc(100% - 180px);
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(18,10,12,0.92), rgba(6,6,6,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.56),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.final-image-wrap {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 60px rgba(0,0,0,0.42);
}

.final-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.98);
}

.final-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 10px 12px 4px;
}

.final-dialog-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.final-avatar {
  position: relative;
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(200, 0, 10, 0.24);
  box-shadow: 0 0 24px rgba(200, 0, 10, 0.16), inset 0 0 14px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.final-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.final-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(200, 0, 10, 0.16);
  animation: quizAvatarRing 2.2s ease-in-out infinite;
  pointer-events: none;
}

.final-message {
  flex: 1;
  min-width: 0;
}

.final-tag {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(255,235,235,0.88);
  background: rgba(135,12,12,0.26);
  border: 1px solid rgba(255,90,90,0.16);
  box-shadow: 0 0 20px rgba(120,0,0,0.12);
}

.final-bubble {
  position: relative;
  padding: 22px 24px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.final-content.is-speaking .final-bubble {
  animation: speechBubblePulse 1.5s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(200, 0, 10, 0.06),
    0 0 24px rgba(200, 0, 10, 0.12);
}

.final-content.is-speaking .final-avatar {
  animation: speechAvatarPulse 1.5s ease-in-out infinite;
}

.final-content.is-speaking .final-avatar-ring {
  border-color: rgba(255, 80, 80, 0.28);
}

.final-bubble-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(200, 0, 10, 0.75);
  margin-bottom: 10px;
}

.final-title {
  margin: 0 0 22px;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff7f2;
  text-shadow: 0 0 18px rgba(120,0,0,0.18);
}

.final-caption {
  margin: 0;
  font-size: 20px;
  line-height: 1.86;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}

.narration-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: rgba(255, 120, 120, 0.88);
  vertical-align: text-bottom;
  animation: quizCursorBlink 0.9s step-end infinite;
}

@keyframes speechBubblePulse {
  0%, 100% {
    transform: translateY(0);
    border-color: rgba(255, 255, 255, 0.08);
  }
  50% {
    transform: translateY(-1px);
    border-color: rgba(255, 120, 120, 0.18);
  }
}

@keyframes speechAvatarPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(200, 0, 10, 0.14), inset 0 0 14px rgba(0, 0, 0, 0.45);
  }
  50% {
    transform: scale(1.028);
    box-shadow: 0 0 30px rgba(200, 0, 10, 0.2), inset 0 0 14px rgba(0, 0, 0, 0.45);
  }
}

.final-blank-tip {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.68);
  animation: promptBlink 2s ease-in-out infinite;
  pointer-events: none;
}

.final-actions {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-final.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.32);
  box-shadow: none;
}

.btn-final.ghost:hover {
  border-color: rgba(255,255,255,0.65);
}

.btn-final {
  background: linear-gradient(135deg, #ff2a52 0%, #9c0c1c 100%);
  color: #fff;
  border: 1.5px solid rgba(255,58,90,0.78);
  padding: 12px 38px;
  letter-spacing: 0.16em;
  box-shadow: 0 0 18px rgba(255,58,90,0.3);
}

.btn-final:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(255,58,90,0.35),
    0 0 28px rgba(255,90,120,0.28);
}

/* ---------- Choice 页面 ---------- */
.choice-layer {
  position: absolute;
  inset: 0;
  z-index: 58;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(120,0,20,0.16) 0%, rgba(20,0,8,0.34) 34%, rgba(0,0,0,0.94) 76%, #000 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.choice-layer.hidden {
  display: none;
}

.choice-shell {
  width: 1380px;
  max-width: calc(100% - 160px);
  padding: 48px 48px 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(18,8,10,0.9), rgba(7,7,7,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 26px 90px rgba(0,0,0,0.56),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.choice-head {
  text-align: center;
  margin-bottom: 34px;
}

.choice-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,235,235,0.88);
  background: rgba(135,12,12,0.26);
  border: 1px solid rgba(255,90,90,0.16);
  box-shadow: 0 0 20px rgba(120,0,0,0.12);
}

.choice-title {
  font-size: 64px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff7f2;
  margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(120,0,0,0.18);
}

.choice-top-text {
  max-width: 1080px;
  margin: 0 auto 10px;
  font-size: 20px;
  line-height: 1.85;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

/* 两个文字分支 */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 18px;
}

.choice-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 420px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(28,10,12,0.92), rgba(8,8,8,0.96));
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.choice-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(160,20,30,0.16), transparent 34%),
    radial-gradient(circle at 84% 86%, rgba(110,0,10,0.12), transparent 32%);
  pointer-events: none;
}

.choice-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  pointer-events: none;
}

.choice-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,82,112,0.34);
  box-shadow:
    0 24px 68px rgba(0,0,0,0.46),
    0 0 36px rgba(180,20,40,0.12);
  background:
    linear-gradient(180deg, rgba(36,10,14,0.96), rgba(10,8,8,0.98));
}

.choice-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 34px 32px;
}

.choice-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(255,240,240,0.9);
  background: rgba(135,12,12,0.20);
  border: 1px solid rgba(255,90,90,0.16);
  margin-bottom: 28px;
}

.choice-card-title {
  display: block;
  font-size: 42px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff7f2;
  text-shadow: 0 0 12px rgba(0,0,0,0.18);
  max-width: 90%;
}

.choice-card-desc {
  display: block;
  margin-top: 26px;
  font-size: 22px;
  line-height: 1.95;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.04em;
  max-width: 92%;
}

.choice-card-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 36px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,90,90,0.24);
  background: rgba(120,10,18,0.16);
  color: rgba(255,245,245,0.92);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(120,0,0,0.08);
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.choice-card:hover .choice-card-enter {
  transform: translateY(-2px);
  background: rgba(160,18,28,0.22);
  border-color: rgba(255,90,90,0.38);
  box-shadow:
    0 0 24px rgba(180,20,40,0.14),
    0 0 40px rgba(120,0,0,0.08);
}

.choice-bottom-text {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.66);
  animation: promptBlink 2s ease-in-out infinite;
}

@media (max-width: 1100px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-shell {
    max-width: calc(100% - 48px);
    padding: 34px 24px 26px;
  }

  .choice-title {
    font-size: 42px;
  }

  .choice-top-text {
    font-size: 18px;
  }

  .choice-card {
    min-height: 300px;
  }

  .choice-card-inner {
    min-height: 300px;
    padding: 28px 24px 24px;
  }

  .choice-card-title {
    font-size: 30px;
    line-height: 1.35;
    max-width: 100%;
  }

  .choice-card-desc {
    font-size: 18px;
    line-height: 1.8;
    max-width: 100%;
  }
}

/* ============================================================
   29秒暂停：透明发光点引导 + 手电筒探索层
   ============================================================ */

.click-guide-layer {
  position: absolute;
  inset: 0;
  z-index: 33;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.click-guide-layer.hidden {
  display: none;
}

.click-guide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transform: translateY(8px);
  animation: guideFloat 2.6s ease-in-out infinite;
}

.click-guide-dot {
  position: relative;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(circle at center,
      rgba(255,60,60,1) 0%,
      rgba(220,18,28,1) 26%,
      rgba(170,0,12,0.98) 52%,
      rgba(92,0,8,0.92) 76%,
      rgba(0,0,0,0.92) 100%);
  box-shadow:
    0 0 14px rgba(255,50,50,0.95),
    0 0 34px rgba(200,0,10,0.88),
    0 0 78px rgba(120,0,10,0.55);
  animation: clickDotPulse 1.8s ease-in-out infinite;
}

.click-guide-dot::before,
.click-guide-dot::after {
  content: '';
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.click-guide-dot::before {
  width: 94px;
  height: 94px;
  border: 1px solid rgba(200, 0, 10, 0.28);
  animation: clickDotRing 2.2s ease-out infinite;
}

.click-guide-dot::after {
  width: 146px;
  height: 146px;
  border: 1px solid rgba(120, 0, 10, 0.18);
  animation: clickDotRing 2.2s ease-out infinite 0.45s;
}

.click-guide-text {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.18em;
  text-shadow:
    0 0 10px rgba(0,0,0,0.45),
    0 0 28px rgba(200,0,10,0.24);
  pointer-events: none;
}

@keyframes guideFloat {
  0%, 100% { transform: translateY(8px); }
  50% { transform: translateY(0); }
}

@keyframes clickDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 14px rgba(255,50,50,0.95),
      0 0 34px rgba(200,0,10,0.88),
      0 0 78px rgba(120,0,10,0.55);
  }
  50% {
    transform: scale(1.14);
    box-shadow:
      0 0 18px rgba(255,80,80,1),
      0 0 48px rgba(220,10,20,0.96),
      0 0 112px rgba(120,0,10,0.7);
  }
}

@keyframes clickDotRing {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.75);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

/* ---------- 手电筒层 ---------- */
.flashlight-layer {
  position: absolute;
  inset: 0;
  z-index: 34;
  overflow: hidden;
  background: radial-gradient(circle at center, #101010 0%, #000 72%);
  cursor: none;
}

.flashlight-layer.hidden {
  display: none;
}

.flashlight-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.flashlight-layer.revealed .flashlight-stage {
  transform: translateX(-160px);
}

.scan-stage {
  position: absolute;
  inset: 0;
}

.flashlight-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: brightness(1.08) contrast(1.08) saturate(1.02);
  transition:
    opacity 1.05s ease,
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease;
}

.flashlight-layer.revealed .flashlight-image {
  filter: brightness(1.16) contrast(1.10) saturate(1.05);
}

.flashlight-image-2 {
  opacity: 0;
}

.flashlight-image-2.active {
  opacity: 1;
}

.flashlight-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.995);
  transition: background 0.03s linear, opacity 0.9s ease;
}

.flashlight-layer.revealed .flashlight-overlay {
  opacity: 0;
}

.flashlight-cursor {
  position: absolute;
  left: -9999px;
  top: -9999px;
  z-index: 22;
  display: block;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  color: rgba(255, 248, 220, 0.98);
  font-family: 'Share Tech Mono', monospace;
  font-size: 38px;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(255, 240, 180, 0.95),
    0 0 22px rgba(255, 220, 120, 0.65),
    0 0 42px rgba(255, 220, 120, 0.28);
  user-select: none;
  transition: opacity 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

.flashlight-layer.revealed .flashlight-cursor {
  opacity: 1;
  color: rgba(255, 235, 235, 0.98);
  text-shadow:
    0 0 12px rgba(255, 90, 90, 1),
    0 0 28px rgba(200, 0, 10, 0.78),
    0 0 48px rgba(120, 0, 10, 0.35);
}

.pelvis-hotspot {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  cursor: none;
  background: transparent;
  border: none;
  outline: none;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform: none;
  opacity: 0;
}

.flashlight-tip {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  color: rgba(255,255,255,0.84);
  font-size: 22px;
  letter-spacing: 0.18em;
  text-shadow: 0 0 12px rgba(0,0,0,0.35);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.flashlight-layer.revealed .flashlight-tip {
  opacity: 0;
}

.flashlight-exit {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 18;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  letter-spacing: 0.18em;
  opacity: 0;
  pointer-events: none;
  text-shadow:
    0 0 12px rgba(0,0,0,0.5),
    0 0 24px rgba(0,0,0,0.35);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.flashlight-layer.revealed .flashlight-exit {
  opacity: 1;
  pointer-events: auto;
  animation: flashlightBlink 2s ease-in-out infinite;
}

.flashlight-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 20;
  min-width: 420px;
  max-width: 760px;
  padding: 18px 28px;
  border-radius: 999px;
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  letter-spacing: 0.14em;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(8, 8, 8, 0.52);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.32);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flashlight-feedback.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.flashlight-feedback.success {
  color: rgba(255, 246, 214, 0.98);
  border-color: rgba(255, 220, 120, 0.46);
  box-shadow:
    0 0 20px rgba(255, 220, 120, 0.12),
    0 0 46px rgba(200, 0, 10, 0.12);
  animation: feedback-pop 0.45s ease;
}

.flashlight-feedback.error {
  color: rgba(255, 230, 230, 0.96);
  border-color: rgba(200, 0, 10, 0.52);
  box-shadow:
    0 0 18px rgba(200, 0, 10, 0.16),
    0 0 40px rgba(200, 0, 10, 0.10);
  animation: feedback-shake 0.42s ease;
}

.flashlight-feedback.hidden {
  display: none;
}

@keyframes feedback-pop {
  0% { transform: translate(-50%, -50%) scale(0.86); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes feedback-shake {
  0%   { transform: translate(-50%, -50%) scale(0.95); }
  20%  { transform: translate(calc(-50% - 8px), -50%) scale(1); }
  40%  { transform: translate(calc(-50% + 8px), -50%) scale(1); }
  60%  { transform: translate(calc(-50% - 5px), -50%) scale(1); }
  80%  { transform: translate(calc(-50% + 5px), -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.flashlight-panels {
  position: absolute;
  top: 50%;
  right: 250px;
  z-index: 8;
  width: 560px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateY(-50%) translateX(34px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.9s ease 0.1s,
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.flashlight-layer.revealed .flashlight-panels {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.glass-card {
  position: relative;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(14, 6, 6, 0.96), rgba(8, 4, 4, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(200, 0, 10, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(200, 0, 10, 0.08),
    rgba(255, 255, 255, 0.02) 34%,
    rgba(255, 255, 255, 0.01) 66%,
    rgba(200, 0, 10, 0.04)
  );
  pointer-events: none;
}

.glass-dialog-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.glass-avatar {
  position: relative;
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(200, 0, 10, 0.24);
  box-shadow: 0 0 20px rgba(200, 0, 10, 0.14), inset 0 0 14px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.glass-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glass-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(200, 0, 10, 0.16);
  animation: quizAvatarRing 2.2s ease-in-out infinite;
  pointer-events: none;
}

.glass-message {
  flex: 1;
  min-width: 0;
}

.glass-tag {
  position: relative;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: rgba(255, 210, 210, 0.8);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(120, 0, 8, 0.22);
  border: 1px solid rgba(200, 0, 10, 0.24);
}

.glass-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8000a;
  box-shadow: 0 0 5px #c8000a;
  animation: quizDotBlink 1.6s ease-in-out infinite;
}

.glass-bubble {
  position: relative;
  padding: 20px 22px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card.is-speaking .glass-bubble {
  animation: speechBubblePulse 1.5s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(200, 0, 10, 0.06),
    0 0 24px rgba(200, 0, 10, 0.12);
}

.glass-card.is-speaking .glass-avatar {
  animation: speechAvatarPulse 1.5s ease-in-out infinite;
}

.glass-card.is-speaking .glass-avatar-ring {
  border-color: rgba(255, 80, 80, 0.28);
}

.glass-bubble-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(200, 0, 10, 0.75);
  margin-bottom: 10px;
}

.glass-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 12px;
}

.glass-text {
  font-size: 20px;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.05em;
  margin: 0;
  white-space: pre-line;
}

@keyframes flashlightBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* ============================================================
   名字问答层 — quiz
   ============================================================ */

.quiz-layer {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.quiz-layer.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.quiz-layer.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.quiz-shell {
  position: relative;
  width: 700px;
  padding: 46px 48px 38px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(14, 6, 6, 0.97), rgba(6, 4, 4, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(200, 0, 10, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 0.68, 0, 1.12), opacity 0.45s ease;
}

.quiz-layer.visible .quiz-shell {
  transform: translateY(0);
  opacity: 1;
}

.quiz-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(200, 0, 10, 0.32);
  border-style: solid;
  pointer-events: none;
}
.quiz-corner--tl { top: 14px; left: 14px; border-width: 1.5px 0 0 1.5px; border-radius: 3px 0 0 0; }
.quiz-corner--tr { top: 14px; right: 14px; border-width: 1.5px 1.5px 0 0; border-radius: 0 3px 0 0; }
.quiz-corner--bl { bottom: 14px; left: 14px; border-width: 0 0 1.5px 1.5px; border-radius: 0 0 0 3px; }
.quiz-corner--br { bottom: 14px; right: 14px; border-width: 0 1.5px 1.5px 0; border-radius: 0 0 3px 0; }

.quiz-scan-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: rgba(255, 210, 210, 0.80);
  background: rgba(120, 0, 8, 0.22);
  border: 1px solid rgba(200, 0, 10, 0.24);
}

.quiz-scan-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8000a;
  box-shadow: 0 0 5px #c8000a;
  animation: quizDotBlink 1.6s ease-in-out infinite;
}

@keyframes quizDotBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.quiz-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 28px;
}

.quiz-avatar {
  position: relative;
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  --avatar-pos-x: 50%;
  --avatar-pos-y: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(200, 0, 10, 0.28);
  box-shadow: 0 0 18px rgba(200, 0, 10, 0.14), inset 0 0 12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  cursor: pointer;
}

.quiz-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(200, 0, 10, 0.18);
  animation: quizAvatarRing 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes quizAvatarRing {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.quiz-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--avatar-pos-x) var(--avatar-pos-y);
  display: block;
  z-index: 2;
}

.quiz-avatar-slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 210, 210, 0.58);
  text-transform: uppercase;
  z-index: 1;
}

.quiz-avatar-hint {
  display: block;
  margin: 0 auto 22px;
  width: fit-content;
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(255,255,255,0.12);
}

.quiz-avatar.sending::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(200, 0, 10, 0.45);
  box-shadow: 0 0 14px rgba(200, 0, 10, 0.45);
  animation: quizAvatarPing 0.9s ease-out forwards;
  pointer-events: none;
  z-index: 4;
}

@keyframes quizAvatarPing {
  0% { transform: scale(0.78); opacity: 0.9; }
  60% { transform: scale(1.1); opacity: 0.5; }
  100% { transform: scale(1.34); opacity: 0; }
}

/* 三个头像预留位 */
.quiz-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 2;
}

.quiz-avatar-inner {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 1;
}

.quiz-avatar-inner--scan-1 {
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,0.22) 0%, transparent 18%),
    radial-gradient(circle at 50% 40%, rgba(200, 0, 10, 0.38) 0%, rgba(120,0,8,0.22) 34%, transparent 62%),
    radial-gradient(ellipse 55% 34% at 50% 78%, rgba(200, 0, 10, 0.24) 0%, transparent 100%);
}

.quiz-avatar-inner--scan-2 {
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,0.20) 0%, transparent 18%),
    radial-gradient(ellipse 34% 26% at 50% 48%, rgba(255, 90, 120, 0.38) 0%, rgba(160,0,24,0.26) 46%, transparent 74%),
    radial-gradient(ellipse 48% 28% at 50% 74%, rgba(180, 0, 24, 0.20) 0%, transparent 100%);
}

.quiz-avatar-inner--scan-3 {
  background:
    radial-gradient(circle at 34% 44%, rgba(255, 90, 120, 0.28) 0%, transparent 24%),
    radial-gradient(circle at 66% 44%, rgba(255, 90, 120, 0.28) 0%, transparent 24%),
    radial-gradient(ellipse 52% 34% at 50% 78%, rgba(120,0,10,0.18) 0%, transparent 100%);
}

.quiz-avatar.quiz-avatar--scan-1 .quiz-avatar-inner--scan-1,
.quiz-avatar.quiz-avatar--scan-2 .quiz-avatar-inner--scan-2,
.quiz-avatar.quiz-avatar--scan-3 .quiz-avatar-inner--scan-3 {
  display: block;
}

.quiz-bubble {
  flex: 1;
  padding: 18px 22px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-bubble.incoming {
  animation: quizBubbleDrop 0.9s cubic-bezier(0.22, 0.68, 0, 1.12);
}

@keyframes quizBubbleDrop {
  0% { transform: translate(-14px, 18px) scale(0.96); opacity: 0; }
  55% { transform: translate(4px, -6px) scale(1.02); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

/* 头像放大层 */
.avatar-zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
}

.avatar-zoom.visible {
  display: flex;
}

.avatar-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.avatar-zoom.visible .avatar-zoom-backdrop {
  opacity: 1;
}

.avatar-zoom-img-wrap {
  position: relative;
  z-index: 1;
  padding: 70px 18px 18px;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 18%, rgba(255,255,255,0.08) 0%, transparent 36%), rgba(20, 10, 10, 0.82);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 0.68, 0, 1.12), opacity 0.28s ease;
}

.avatar-zoom.visible .avatar-zoom-img-wrap {
  transform: scale(1);
  opacity: 1;
}

.avatar-zoom-img {
  max-width: 680px;
  max-height: 680px;
  width: min(78vw, 680px);
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.avatar-zoom-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(10, 6, 6, 0.82);
  color: rgba(255, 236, 236, 0.92);
  font-family: 'Share Tech Mono', monospace;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.avatar-zoom-close:hover {
  transform: scale(1.08);
  border-color: rgba(255, 110, 110, 0.42);
  background: rgba(44, 10, 10, 0.9);
}

.avatar-zoom-close-tip {
  margin-top: 10px;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 220, 220, 0.72);
}

.quiz-bubble-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(200, 0, 10, 0.75);
  margin-bottom: 10px;
}

.quiz-bubble-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.06em;
  min-height: 3.7em;
  white-space: pre-line;
}

.quiz-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: rgba(200, 0, 10, 0.85);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: quizCursorBlink 0.9s step-end infinite;
}

@keyframes quizCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.quiz-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.38s ease, transform 0.38s ease;
  pointer-events: none;
}

.quiz-input-row.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quiz-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  outline: none;
  caret-color: #c8000a;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.quiz-input::placeholder {
  color: rgba(255, 255, 255, 0.20);
  font-size: 16px;
}

.quiz-input:focus {
  border-color: rgba(200, 0, 10, 0.42);
  box-shadow: 0 0 0 3px rgba(200, 0, 10, 0.09);
}

.quiz-submit-btn {
  padding: 14px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(160, 0, 10, 0.72), rgba(100, 0, 6, 0.82));
  border: 1px solid rgba(200, 0, 10, 0.36);
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.20em;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
  white-space: nowrap;
}

.quiz-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(200, 0, 10, 0.26);
}

.quiz-submit-btn:active {
  transform: scale(0.97);
}

.quiz-submit-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.quiz-feedback-row {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.quiz-feedback-row.show {
  opacity: 1;
  transform: translateY(0);
}

.quiz-feedback-row.hidden {
  display: none;
}

.quiz-feedback-row.correct {
  background: rgba(0, 70, 22, 0.22);
  border: 1px solid rgba(0, 150, 50, 0.20);
}

.quiz-feedback-row.wrong {
  background: rgba(100, 0, 0, 0.22);
  border: 1px solid rgba(200, 0, 10, 0.22);
}

.quiz-feedback-row.reveal {
  background: rgba(120, 50, 0, 0.20);
  border: 1px solid rgba(255, 180, 80, 0.20);
}

.quiz-feedback-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.quiz-feedback-row.correct .quiz-feedback-text { color: rgba(140, 240, 140, 0.88); }
.quiz-feedback-row.wrong .quiz-feedback-text { color: rgba(255, 160, 160, 0.88); }
.quiz-feedback-row.reveal .quiz-feedback-text { color: rgba(255, 220, 160, 0.92); }
