:root {
  --bg-deep: #050a12;
  --brass: #d9a959;
  --brass-bright: #f5d896;
  --brass-dark: #8d6324;
  --moon: #7ec0ee;
  --crimson: #e04f4f;
  --glass: rgba(8, 13, 22, 0.76);
  --glass-border: rgba(217, 169, 89, 0.36);
  --text-main: #f4ebd9;
  --text-muted: rgba(244, 235, 217, 0.68);
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #0e192b 0%, #060b14 60%, #020408 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  touch-action: none;
}

#stage-wrap {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
}

#stage-wrap.shake {
  animation: stageShake 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes stageShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-7px, 2px, 0); }
  40% { transform: translate3d(7px, -2px, 0); }
  60% { transform: translate3d(-5px, 1px, 0); }
  80% { transform: translate3d(4px, 0, 0); }
}

#scene-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

#scene-canvas:active {
  cursor: grabbing;
}

#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 54%, rgba(2, 5, 10, 0.68) 100%);
}

#flash-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease-out;
  z-index: 15;
}

#flash-overlay.crimson-pulse {
  background: radial-gradient(circle, rgba(224, 79, 79, 0.14) 28%, rgba(185, 28, 28, 0.56) 100%);
  opacity: 1;
}

#flash-overlay.gold-flash {
  background: radial-gradient(circle at 50% 42%, rgba(245, 216, 150, 0.52), rgba(217, 169, 89, 0.12) 60%, transparent 100%);
  opacity: 1;
}

/* 3D 投射热点极简短标签 */
#hotspot-labels {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.hs-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(9, 14, 24, 0.82);
  border: 1px solid rgba(217, 169, 89, 0.62);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 12px rgba(217, 169, 89, 0.25);
  color: var(--brass-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.25s ease, border-color 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hs-pin:hover, .hs-pin:active {
  transform: translate(-50%, -108%) scale(1.06);
  border-color: var(--brass-bright);
  background: rgba(24, 19, 12, 0.94);
}

.hs-pin .pin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass-bright);
  box-shadow: 0 0 8px var(--brass-bright);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.hs-pin.solved {
  border-color: rgba(126, 192, 238, 0.55);
  color: #cde7fa;
  background: rgba(8, 17, 28, 0.7);
}

.hs-pin.solved .pin-dot {
  background: var(--moon);
  box-shadow: 0 0 8px var(--moon);
  animation: none;
}

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

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.38); opacity: 1; }
}

/* 顶部极简状态条 */
#hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.act-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.act-num {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brass-bright);
}

.act-sep {
  color: var(--brass-dark);
}

.act-loc {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.clue-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.clue-counter {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--brass-bright);
  margin-right: 2px;
  min-width: 24px;
}

.clue-slot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(217, 169, 89, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 235, 217, 0.3);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.clue-slot.found {
  border-color: var(--brass-bright);
  background: radial-gradient(circle, rgba(245, 216, 150, 0.28), rgba(217, 169, 89, 0.08));
  color: var(--brass-bright);
  box-shadow: 0 0 10px rgba(217, 169, 89, 0.45);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-main);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn.muted {
  opacity: 0.45;
  text-decoration: line-through;
}

/* 线索短标签浮层 */
#clue-toast {
  position: fixed;
  top: calc(58px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(14, 19, 30, 0.92);
  border: 1px solid rgba(245, 216, 150, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(217, 169, 89, 0.3);
  color: var(--brass-bright);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  z-index: 25;
  white-space: nowrap;
  animation: toastPop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* 掷骰大字浮层 */
#dice-result-overlay {
  position: fixed;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 26;
  animation: dicePop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.dice-num {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--brass-bright);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.85), 0 0 26px rgba(217, 169, 89, 0.5);
}

.dice-num.fail {
  color: #ff8c8c;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.85), 0 0 26px rgba(224, 79, 79, 0.55);
}

.dice-tag {
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(10, 15, 24, 0.86);
  border: 1px solid rgba(245, 216, 150, 0.6);
  color: var(--brass-bright);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dice-tag.fail {
  border-color: rgba(224, 79, 79, 0.75);
  color: #ffb0b0;
}

@keyframes dicePop {
  from { opacity: 0; transform: translate(-50%, -44%) scale(0.75); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 底部控制条 */
#hud-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.bar-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: auto;
  max-width: 100%;
}

.hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(8, 13, 22, 0.72);
  border: 1px solid rgba(217, 169, 89, 0.25);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.inspect-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.inspect-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.08em;
}

.inspect-dc {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(217, 169, 89, 0.16);
  color: var(--brass-bright);
  border: 1px solid rgba(217, 169, 89, 0.38);
}

.brass-btn, .ghost-btn, .crimson-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.brass-btn {
  background: linear-gradient(135deg, #ebd08b 0%, #c48c38 100%);
  color: #161006;
  box-shadow: 0 4px 18px rgba(217, 169, 89, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brass-btn:active, .crimson-btn:active, .ghost-btn:active {
  transform: scale(0.95);
}

.brass-btn:disabled, .crimson-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.brass-btn.crane-trigger {
  animation: brassGlow 1.7s ease-in-out infinite;
}

@keyframes brassGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(217, 169, 89, 0.45); }
  50% { box-shadow: 0 4px 30px rgba(245, 216, 150, 0.92); }
}

.crimson-btn {
  background: linear-gradient(135deg, #e05757 0%, #a52424 100%);
  color: #fff3f3;
  box-shadow: 0 4px 18px rgba(224, 79, 79, 0.45);
}

.ghost-btn {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  padding: 0 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 复古黄铜塔吊操纵台 */
.crane-console {
  width: min(360px, calc(100vw - 24px));
  padding: 12px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 21, 31, 0.94), rgba(9, 12, 18, 0.96));
  border: 1.5px solid rgba(217, 169, 89, 0.58);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(245, 216, 150, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-back {
  height: 30px;
  width: 34px;
  padding: 0;
  font-size: 14px;
}

.crane-stage-label {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brass-bright);
  flex: 1;
  text-align: center;
}

.crane-pct {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--moon);
  min-width: 38px;
  text-align: right;
}

.crane-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.crane-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.crane-slider-shell {
  position: relative;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b0e14, #171d29);
  border: 1px solid rgba(217, 169, 89, 0.45);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.crane-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(196, 140, 56, 0.35), rgba(245, 216, 150, 0.72));
  pointer-events: none;
  transition: width 0.05s linear;
}

#crane-lever {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 38px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: grab;
  touch-action: pan-x;
}

#crane-lever:active {
  cursor: grabbing;
}

#crane-lever::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fae2a8 0%, #c8903c 55%, #8c5f1f 100%);
  border: 1.5px solid #fff0c8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.65), 0 0 14px rgba(245, 216, 150, 0.55);
}

#crane-lever::-moz-range-thumb {
  width: 44px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fae2a8 0%, #c8903c 55%, #8c5f1f 100%);
  border: 1.5px solid #fff0c8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.65), 0 0 14px rgba(245, 216, 150, 0.55);
}

.hidden {
  display: none !important;
}

/* 复古结案印章卡 & 失败结局卡 */
.modal-backdrop, #ending-modal, #fail-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(3, 6, 12, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 45;
  padding: 20px;
}

.ending-card {
  width: min(330px, 90vw);
  padding: 26px 22px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 23, 33, 0.97), rgba(9, 12, 18, 0.99));
  border: 1.5px solid rgba(217, 169, 89, 0.62);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(217, 169, 89, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  animation: stampCardIn 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes stampCardIn {
  from { opacity: 0; transform: scale(0.88) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.stamp-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2.5px dashed rgba(224, 79, 79, 0.85);
  padding: 5px;
  transform: rotate(-11deg);
  box-shadow: 0 0 24px rgba(224, 79, 79, 0.25);
}

.stamp-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(224, 79, 79, 0.9);
  background: radial-gradient(circle, rgba(224, 79, 79, 0.18), rgba(120, 18, 18, 0.08));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f47a7a;
}

.stamp-top, .stamp-year {
  font-size: 8px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.stamp-main {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.15;
}

.ending-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brass-bright);
}

.ending-sub {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--moon);
}

.ending-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0;
}

.stat-box {
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 169, 89, 0.22);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--brass-bright);
}

.ending-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.replay-btn {
  width: 100%;
}

.next-act-badge {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

/* =========================================================================
   v3 真视频 + 去标签真解谜 UI 样式
   ========================================================================= */

#verified-badges {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.verified-badge {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(14, 19, 28, 0.82);
  border: 1px solid rgba(245, 216, 150, 0.6);
  color: var(--brass-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  transition: opacity 0.25s ease;
}

.verified-badge.hidden-pin {
  opacity: 0;
}

.hud-center {
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.trust-pill, .flaw-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trust-label, .flaw-title {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.trust-badge {
  font-size: 14px;
  color: var(--brass-bright);
  text-shadow: 0 0 8px rgba(245, 216, 150, 0.55);
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.trust-badge.lost {
  color: rgba(255, 255, 255, 0.16);
  text-shadow: none;
  transform: scale(0.8);
}

.flaw-counter {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 800;
  color: var(--brass-bright);
}

.flaw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(217, 169, 89, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.flaw-dot.found {
  background: var(--brass-bright);
  border-color: #fff2cc;
  box-shadow: 0 0 10px rgba(245, 216, 150, 0.85);
}

#clue-toast.toast-danger {
  border-color: rgba(224, 79, 79, 0.88);
  color: #ffb8b8;
  background: rgba(34, 10, 14, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 22px rgba(224, 79, 79, 0.4);
}

#clue-toast.toast-info {
  border-color: rgba(126, 192, 238, 0.65);
  color: #d6eeff;
}

/* 阶段一：斯诺森谎言条 + 常驻掀顶按钮 */
.lie-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 21, 31, 0.9), rgba(9, 13, 22, 0.94));
  border: 1px solid rgba(217, 169, 89, 0.48);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: min(440px, calc(100vw - 140px));
}

.snoson-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid var(--brass);
  background: radial-gradient(circle, #332515, #14100a);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.avatar-mono {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--brass-bright);
}

.lie-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lie-quote {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brass-bright);
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.lie-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* 阶段二：指认凶器设施横幅 */
.accuse-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(32, 22, 10, 0.94), rgba(14, 17, 25, 0.96));
  border: 1.5px solid var(--brass-bright);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 22px rgba(245, 216, 150, 0.35);
  color: var(--brass-bright);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  animation: brassGlow 1.8s ease-in-out infinite;
}

/* 阶段三：塔吊暗金目标倾角区 (78%–95%) */
.crane-console.angle-matched {
  border-color: #ffe399;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.78), 0 0 28px rgba(245, 216, 150, 0.45);
}

.tick-target {
  color: var(--brass-bright);
  font-weight: 700;
}

.crane-target-zone {
  position: absolute;
  left: 78%;
  width: 17%;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(245, 216, 150, 0.35), rgba(217, 169, 89, 0.55));
  border-left: 1.5px dashed #ffe6a3;
  border-right: 1.5px dashed #ffe6a3;
  pointer-events: none;
  z-index: 1;
}

.crane-action-row {
  display: flex;
  justify-content: center;
}

.lock-angle-btn {
  width: 100%;
  height: 40px;
}

.lock-angle-btn.ready {
  animation: brassGlow 1.2s ease-in-out infinite;
}

/* 开场幕布 */
#intro-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at 50% 42%, rgba(7, 12, 22, 0.56), rgba(3, 6, 12, 0.92));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
  padding: 20px;
  overflow: hidden;
}

.intro-cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.36;
  filter: saturate(0.85) contrast(1.06);
  pointer-events: none;
  z-index: 0;
}

.intro-card {
  position: relative;
  z-index: 1;
  width: min(350px, 90vw);
  padding: 28px 24px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.9), rgba(8, 11, 18, 0.95));
  border: 1.5px solid rgba(217, 169, 89, 0.58);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 36px rgba(217, 169, 89, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* 极简 3D 沙盘加载幕（秒跳视频时过渡） */
#scene-loading-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at 50% 45%, rgba(11, 18, 30, 0.94), rgba(3, 6, 12, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 42;
  padding: 20px;
}

.scene-loading-card {
  width: min(310px, 84vw);
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(12, 18, 28, 0.92);
  border: 1px solid rgba(217, 169, 89, 0.48);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.75);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scene-loading-title {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--brass-bright);
}

.scene-loading-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.scene-loading-bar {
  width: 15%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b88235, #f4d38c);
  transition: width 0.22s ease-out;
}

.scene-loading-pct {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.intro-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--moon);
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--brass-bright);
}

.intro-sub {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.intro-start-btn {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  font-size: 15px;
  animation: brassGlow 1.8s ease-in-out infinite;
}

/* 电影级全屏 9:16 视频播放器（兼容 iOS / Android / 钉钉 WebView） */
#video-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  background: #020408;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #0f1726, #020408 75%);
}

#cinematic-video {
  width: 100%;
  height: 100%;
  max-width: min(100vw, 56.25vh);
  max-height: 100%;
  object-fit: cover;
  background: #000;
}

.video-top-controls {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.skip-pill, .unmute-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.skip-pill {
  background: rgba(10, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.unmute-pill {
  background: rgba(217, 169, 89, 0.92);
  border: 1px solid #fff0c8;
  color: #161006;
  animation: brassGlow 1.5s ease-in-out infinite;
}

.video-subtitle-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(2, 4, 8, 0.88) 45%, rgba(2, 4, 8, 0.97));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  pointer-events: none;
  z-index: 4;
}

.video-sub-badge {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--brass);
  font-weight: 700;
}

.video-sub-text {
  max-width: 520px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* 暗房文字/封面兜底卡片（MP4 未落盘时优雅展示） */
#video-fallback-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 35%, rgba(26, 36, 54, 0.92), rgba(4, 7, 13, 0.98));
  z-index: 3;
}

.vf-frame {
  width: min(360px, 90vw);
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(217, 169, 89, 0.45);
  background: rgba(9, 13, 21, 0.88);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.vf-badge {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--moon);
}

.vf-speaker {
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(217, 169, 89, 0.15);
  border: 1px solid rgba(217, 169, 89, 0.45);
  color: var(--brass-bright);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.vf-text {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-main);
}

.vf-progress-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.vf-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brass-dark), var(--brass-bright));
}

.vf-continue-btn {
  height: 36px;
  font-size: 13px;
}

/* 失败结局与星级 */
.ending-stars {
  font-size: 22px;
  letter-spacing: 0.22em;
  color: var(--brass-bright);
  text-shadow: 0 0 14px rgba(245, 216, 150, 0.6);
}

.fail-card {
  border-color: rgba(224, 79, 79, 0.65);
}

.fail-title {
  color: #ff9c9c;
}

@media (max-width: 480px) {
  .trust-pill, .flaw-pill { height: 32px; padding: 0 9px; gap: 4px; }
  .icon-btn { width: 32px; height: 32px; font-size: 14px; }
  .lie-strip { max-width: calc(100vw - 24px); padding: 6px 10px 6px 7px; }
  .lie-quote { font-size: 12.5px; }
  .accuse-banner { font-size: 12.5px; padding: 9px 14px; }
  .inspect-pill { height: 40px; padding: 0 11px; }
  .brass-btn, .ghost-btn, .crimson-btn { height: 40px; padding: 0 14px; font-size: 13px; }
  .dice-num { font-size: 54px; }
}
