:root {
  --bg-outer: #040609;
  --bg-stage: #07090d;
  --surface-glass: rgba(10, 13, 19, 0.86);
  --surface-item: rgba(255, 255, 255, 0.055);
  --surface-item-hover: rgba(255, 255, 255, 0.1);
  --line-subtle: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text-main: #f4f6f9;
  --text-soft: #b8c1cf;
  --text-muted: #7f8a9a;
  --amber: #d9a45b;
  --amber-soft: rgba(217, 164, 91, 0.16);
  --crimson: #c84b47;
  --crimson-soft: rgba(200, 75, 71, 0.18);
  --sage: #7eb89a;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 164, 91, 0.45);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-outer);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

/* ==================== 外框与 9:16 电影舞台 ==================== */
.viewport-backdrop {
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(28, 39, 56, 0.28) 0%, rgba(4, 6, 9, 0.98) 72%),
    var(--bg-outer);
}

.cinema-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-stage);
}

@media (min-width: 560px) {
  .cinema-stage {
    height: min(94dvh, 920px);
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: 96vw;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85);
  }
}

/* ==================== 媒体底层 ==================== */
.media-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #05070b;
  overflow: hidden;
}

.stage-portrait,
.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.stage-portrait {
  transition: opacity 0.4s ease, transform 8s ease-out, filter 0.4s ease;
  transform: scale(1);
}

.stage-portrait.is-breathing {
  animation: portraitBreathe 8s ease-in-out infinite alternate;
}

.stage-portrait.is-acting {
  animation: portraitSlowPush 8s ease-out forwards;
}

.stage-portrait.is-dimmed {
  filter: brightness(0.42) contrast(1.06);
}

@keyframes portraitBreathe {
  0% { transform: scale(1); }
  100% { transform: scale(1.028); }
}

@keyframes portraitSlowPush {
  0% { transform: scale(1.01); }
  100% { transform: scale(1.055); }
}

.stage-video {
  opacity: 0;
  transition: opacity 0.24s ease;
}

.stage-video.is-visible {
  opacity: 1;
}

.stage-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  background: rgba(5, 7, 11, 0.72);
}

.stage-loading-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(212, 168, 92, 0.86);
  animation: stageSpin 0.8s linear infinite;
}

.stage-loading-text {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(235, 238, 244, 0.58);
}

@keyframes stageSpin {
  to { transform: rotate(360deg); }
}

.cinema-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 45%, rgba(3, 5, 8, 0.56) 100%);
}

/* ==================== 开场封面 ==================== */
.cover-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 28px calc(64px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 24%, rgba(38, 52, 74, 0.34) 0%, rgba(5, 7, 11, 0) 62%),
    linear-gradient(to top, #04060a 0%, #06090f 55%, #080d16 100%);
}

.cover-content {
  text-align: center;
}

.cover-subtitle {
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--amber);
  margin-bottom: 10px;
}

.cover-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-main);
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75);
}

.cover-logline {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 280px;
  margin: 0 auto 30px;
}

.cover-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 46px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #0b0d11;
  background: var(--text-main);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

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

/* ==================== 播片态（零常驻按钮） ==================== */
.playback-layer {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: auto;
}

.playback-tap-zone {
  position: absolute;
  inset: 0;
}

.playback-controls {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 4;
  display: flex;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.ctrl-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(244, 246, 249, 0.92);
  background: rgba(8, 11, 16, 0.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ctrl-pill:active {
  background: rgba(255, 255, 255, 0.16);
}

.subtitle-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  padding: 56px 22px calc(30px + env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(
    to top,
    rgba(4, 6, 10, 0.86) 0%,
    rgba(4, 6, 10, 0.42) 55%,
    transparent 100%
  );
}

.subtitle-speaker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(217, 164, 91, 0.9);
  margin-bottom: 5px;
  min-height: 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.subtitle-text {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.85);
}

.playback-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 4;
}

.playback-progress-bar {
  width: 0%;
  height: 100%;
  background: rgba(217, 164, 91, 0.72);
  transition: width 0.12s linear;
}

/* ==================== 待机交互态 ==================== */
.idle-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

/* 顶部极简浮条 ≤44px */
.top-bar {
  pointer-events: auto;
  height: calc(42px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(4, 6, 10, 0.76) 0%, transparent 100%);
}

.suspect-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}

.suspect-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(244, 246, 249, 0.62);
  transition: color 0.2s ease;
}

.suspect-tab.active {
  color: var(--text-main);
  font-weight: 500;
}

.suspect-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1.5px;
  background: var(--amber);
  border-radius: 2px;
}

.broken-dot {
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.suspect-tab.is-broken .broken-dot {
  display: inline-block;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chances-text {
  font-size: 12px;
  color: rgba(244, 246, 249, 0.78);
  font-variant-numeric: tabular-nums;
}

.chances-text.is-low {
  color: #e47d79;
}

.mute-icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 246, 249, 0.76);
  border-radius: 50%;
}

/* 底部柔和暗色渐变浮区 ≤30% 屏幕高度 */
.bottom-dock {
  pointer-events: auto;
  padding: 28px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(
    to top,
    rgba(4, 6, 10, 0.94) 0%,
    rgba(4, 6, 10, 0.78) 62%,
    rgba(4, 6, 10, 0) 100%
  );
}

.quote-block {
  margin-bottom: 10px;
}

.quote-line {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(244, 246, 249, 0.84);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.choice-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.choice-btn {
  width: 100%;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-main);
  background: rgba(14, 18, 26, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.choice-btn:active {
  transform: scale(0.988);
  background: rgba(255, 255, 255, 0.12);
}

.choice-rebut {
  border-color: rgba(217, 164, 91, 0.38);
  background: rgba(30, 24, 16, 0.72);
  color: #f6e2c2;
}

.choice-arrow {
  font-size: 18px;
  line-height: 1;
  color: var(--amber);
  margin-left: 8px;
}

.utility-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 2px;
}

.text-link-btn {
  font-size: 12.5px;
  color: rgba(244, 246, 249, 0.72);
  padding: 4px 6px;
}

.text-link-btn:active {
  color: var(--text-main);
}

.link-accuse.is-ready {
  color: var(--amber);
  font-weight: 500;
}

.link-divider {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.24);
}

/* ==================== 底部抽屉通用 ==================== */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(3, 5, 8, 0.62);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.18s ease;
}

.sheet-panel {
  width: 100%;
  max-height: 78%;
  display: flex;
  flex-direction: column;
  background: rgba(11, 14, 20, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  animation: slideUp 0.22s ease;
}

.sheet-notes,
.sheet-accuse {
  max-height: 84%;
}

.sheet-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.sheet-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.sheet-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sheet-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sheet-close-btn:active {
  background: var(--surface-item);
}

/* ==================== 一步反驳抽屉 ==================== */
.rebut-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rebut-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-align: left;
  background: var(--surface-item);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rebut-item.selected {
  background: var(--amber-soft);
  border-color: rgba(217, 164, 91, 0.55);
}

.rebut-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 7px;
  overflow: hidden;
  background: #141923;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}

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

.rebut-item-text {
  flex: 1;
  min-width: 0;
}

.rebut-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 2px;
}

.rebut-item-brief {
  font-size: 12px;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rebut-confirm-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(18, 22, 31, 0.98);
  border-top: 1px solid rgba(217, 164, 91, 0.28);
}

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

.rebut-confirm-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rebut-confirm-fact {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rebut-submit-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #0b0d11;
  background: var(--amber);
}

/* ==================== 查看证据与口供 ==================== */
.notes-tabs {
  display: flex;
  gap: 18px;
}

.notes-tab {
  position: relative;
  padding: 4px 0 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.notes-tab.active {
  color: var(--text-main);
  font-weight: 600;
}

.notes-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.notes-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
}

.evidence-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evidence-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 11px;
  background: var(--surface-item);
  text-align: left;
  width: 100%;
}

.evidence-card:active {
  background: var(--surface-item-hover);
}

.evidence-card-thumb {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background: #121720;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}

.evidence-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.evidence-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.evidence-card-facts {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
}

/* 证据大图预览 */
#evidenceDetailModal {
  justify-content: center;
  padding: 20px 16px;
}

.detail-card {
  position: relative;
  width: 100%;
  max-height: 86%;
  display: flex;
  flex-direction: column;
  background: #0d1118;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.detail-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 8, 12, 0.72);
  color: var(--text-main);
  font-size: 15px;
}

.detail-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #111620;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-placeholder {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.detail-copy {
  padding: 16px;
  overflow-y: auto;
}

.detail-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.detail-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-facts li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-facts li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 口供列表 */
.testimony-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimony-entry {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--surface-item);
}

.testimony-entry.is-secret {
  background: rgba(217, 164, 91, 0.1);
}

.testimony-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.testimony-who {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.testimony-tag {
  font-size: 11.5px;
  color: var(--amber);
}

.testimony-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.testimony-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==================== 指认凶手 ==================== */
.accuse-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accuse-step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.accuse-count {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.accuse-suspects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.accuse-suspect-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--surface-item);
  border: 1px solid transparent;
}

.accuse-suspect-btn.selected {
  background: var(--crimson-soft);
  border-color: rgba(200, 75, 71, 0.72);
}

.accuse-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
}

.accuse-suspect-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
}

.accuse-suspect-role {
  font-size: 11.5px;
  color: var(--text-muted);
}

.accuse-evidences {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.accuse-ev-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
  background: var(--surface-item);
  border: 1px solid transparent;
}

.accuse-ev-btn.selected {
  background: var(--amber-soft);
  border-color: rgba(217, 164, 91, 0.58);
}

.accuse-ev-title {
  font-size: 13.5px;
  color: var(--text-main);
}

.accuse-ev-check {
  font-size: 12px;
  color: var(--amber);
}

.accuse-footer {
  flex-shrink: 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
}

.accuse-submit-btn {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: var(--crimson);
}

/* ==================== 结局与复盘 ==================== */
.ending-screen {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(6, 8, 12, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.ending-scroll {
  flex: 1;
  overflow-y: auto;
  padding: calc(32px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
}

.ending-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.ending-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.ending-badge.is-true {
  background: rgba(126, 184, 154, 0.16);
  color: var(--sage);
}

.ending-badge.is-bad {
  background: var(--crimson-soft);
  color: #e6827e;
}

.ending-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.ending-summary {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

.truth-heading {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 12px;
}

.truth-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.truth-row {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--surface-item);
}

.truth-time {
  flex-shrink: 0;
  width: 44px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.truth-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.ending-actions {
  text-align: center;
}

.ending-restart-btn {
  min-width: 168px;
  height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #0b0d11;
  background: var(--text-main);
}

/* ==================== 轻提示 ==================== */
.toast-banner {
  position: absolute;
  top: calc(52px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  max-width: 88%;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  color: var(--text-main);
  background: rgba(14, 18, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.toast-banner.is-new {
  color: #fbe6c2;
  background: rgba(24, 19, 13, 0.96);
  border-color: rgba(217, 164, 91, 0.55);
}

/* ==================== 案情速报档案页 ==================== */
.brief-screen {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  background: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.28s ease;
}

.brief-card {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 20px 18px 18px;
  border-radius: 14px;
  background: rgba(12, 16, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
}

.brief-case-no {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 6px;
}

.brief-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.brief-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.brief-row {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

.brief-row-label {
  flex-shrink: 0;
  width: 34px;
  font-weight: 600;
  color: var(--text-main);
}

.brief-section-label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 12px 0 8px;
}

.brief-persons {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.brief-person-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-item);
  border: 1px solid var(--line-soft);
}

.brief-person-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brief-person-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.brief-person-role {
  font-size: 11.5px;
  color: var(--amber);
}

.brief-person-note {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.45;
}

.brief-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.brief-enter-btn {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #0b0d11;
  background: var(--text-main);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

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

/* ==================== 新证红点与来源标签 ==================== */
.text-link-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.notes-badge {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(217, 164, 91, 0.8);
}

.evidence-source,
.detail-source,
.rebut-item-source {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--amber);
  opacity: 0.86;
  margin-bottom: 3px;
}

.detail-source {
  font-size: 11.5px;
  margin-bottom: 6px;
}

.evidence-new-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #120e07;
  background: var(--amber);
  vertical-align: middle;
}

.evidence-pending-note {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.notes-brief-wrap {
  padding: 2px 2px 12px;
}

/* ==================== 顾沉三阶段防线槽 ==================== */
.defense-pips {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.defense-pips .pip {
  display: inline-block;
  width: 6px;
  height: 3px;
  border-radius: 1.5px;
  background: rgba(217, 164, 91, 0.85);
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.defense-pips .pip.is-broken {
  background: rgba(255, 255, 255, 0.16);
  transform: scaleX(0.85);
}

.defense-pips.is-all-broken .pip {
  background: var(--sage);
  opacity: 0.9;
}

/* ==================== 结案高亮主行动按钮 ==================== */
.choice-btn.choice-accuse-cta {
  background: linear-gradient(135deg, rgba(168, 46, 42, 0.92), rgba(118, 28, 26, 0.94));
  border: 1px solid rgba(242, 130, 126, 0.52);
  color: #fff5f4;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(180, 48, 44, 0.34);
  animation: accusePulse 2.2s ease-in-out infinite;
}

.choice-btn.choice-accuse-cta .choice-arrow {
  color: #ffd0ce;
}

@keyframes accusePulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(180, 48, 44, 0.28); }
  50% { box-shadow: 0 10px 30px rgba(216, 72, 68, 0.52); }
}

/* ==================== 拍桌反驳 0.6s 电影感闪切与震屏 ==================== */
.impact-overlay {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(10, 12, 17, 0.72), rgba(4, 5, 8, 0.92));
  animation: impactFade 0.62s ease forwards;
}

.impact-overlay.is-hit {
  background: radial-gradient(circle at 50% 50%, rgba(36, 26, 12, 0.74), rgba(4, 5, 8, 0.92));
}

.impact-overlay.is-miss {
  background: radial-gradient(circle at 50% 50%, rgba(44, 14, 14, 0.76), rgba(4, 5, 8, 0.92));
}

.impact-inner {
  width: 82%;
  text-align: center;
  animation: impactZoom 0.62s cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}

.impact-rule {
  height: 1px;
  width: 100%;
  margin: 12px 0;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 91, 0.78), transparent);
}

.impact-overlay.is-miss .impact-rule {
  background: linear-gradient(90deg, transparent, rgba(200, 75, 71, 0.82), transparent);
}

.impact-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #fce8c6;
  text-shadow: 0 0 22px rgba(217, 164, 91, 0.45);
}

.impact-overlay.is-miss .impact-title {
  color: #ffc5c2;
  text-shadow: 0 0 22px rgba(200, 75, 71, 0.5);
}

.impact-sub {
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(244, 246, 249, 0.76);
}

@keyframes impactFade {
  0% { opacity: 0; }
  18% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes impactZoom {
  0% { transform: scale(1.12); opacity: 0; }
  22% { transform: scale(1); opacity: 1; }
  80% { transform: scale(0.985); opacity: 1; }
  100% { transform: scale(0.96); opacity: 0; }
}

.cinema-stage.is-impact-hit {
  animation: stageHitShake 0.34s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.cinema-stage.is-impact-miss {
  animation: stageMissShake 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes stageHitShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(0, 5px, 0); }
  45% { transform: translate3d(0, -3px, 0); }
  70% { transform: translate3d(0, 2px, 0); }
}

@keyframes stageMissShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-6px, 0, 0); }
  42% { transform: translate3d(6px, 0, 0); }
  64% { transform: translate3d(-4px, 0, 0); }
  82% { transform: translate3d(3px, 0, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
