/* ==========================================================================
 * Interactive Master — Unified 9:16 Cinema Runtime Stylesheet (v5)
 * Shared across /play, /studio, /playable, and /pilot overlays.
 * Extracted from qte-overlay.js for cacheability, maintainability & zero FOUC.
 * ========================================================================== */

[hidden],
.ivd-qte-root [hidden] {
  display: none !important;
}
.ivd-qte-root {
  position: absolute;
  inset: 0;
  z-index: 32;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  container-type: size;
  font-family: var(--ui-font-sans, var(--jp-font-ui, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif));
  color: #ffffff;
}
.ivd-qte-root *, .ivd-qte-root *::before, .ivd-qte-root *::after {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ivd-qte-root *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.ivd-qte-root.is-interactive {
  pointer-events: auto;
}
.ivd-player:not(.is-continue-qte):has(> .ivd-qte-root.is-interactive:not(.is-continue-qte)) .cinema-subtitle,
.ivd-player:not(.is-continue-qte):has(> .ivd-qte-root.is-interactive:not(.is-continue-qte)) .ivd-subtitle-wrap,
.ivd-stage-root:not(.is-continue-qte):has(> .ivd-qte-root.is-interactive:not(.is-continue-qte)) .ivd-bottom-bar {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}
.ivd-qte-num {
  font-family: var(--jp-num-font, "Poppins", Bahnschrift, "DIN Alternate", "Segoe UI", sans-serif);
  font-variant-numeric: tabular-nums;
}

/* Layer 1: Vignette Tension & Screen Hit Flash */
.ivd-qte-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s linear;
  background: radial-gradient(circle at 50% 50%, transparent 42%, rgba(220, 38, 38, 0.72) 100%);
}
.ivd-qte-vignette.mode-charge {
  background: radial-gradient(ellipse at 50% 52%, transparent 58%, rgba(77, 137, 131, 0.35) 100%);
}
.ivd-qte-vignette.mode-emerald {
  background: radial-gradient(circle at 50% 52%, transparent 44%, rgba(34, 197, 139, 0.58) 100%);
}
.ivd-qte-vignette.mode-be {
  opacity: 1 !important;
  backdrop-filter: grayscale(0.58) contrast(1.12);
  background:
    radial-gradient(circle at 50% 42%, rgba(20, 8, 10, 0.32) 20%, rgba(125, 18, 18, 0.86) 100%);
}
.ivd-qte-hitflash {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 48%, rgba(240,252,251,.65), transparent 75%);
  mix-blend-mode: screen;
}

/* Layer 2 & 3: High-DPI 2D Canvas + Crisp SVG Vector HUD */
.ivd-qte-canvas,
.ivd-qte-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.ivd-qte-canvas { z-index: 3; }
.ivd-qte-svg    { z-index: 4; overflow: visible; }

/* Layer 4: Interactive DOM Layer */
.ivd-qte-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Layer 5: Top Social Proof & Stat Delta Toasts */
.ivd-qte-toasts {
  position: absolute;
  top: max(calc(env(safe-area-inset-top, 0px) + 64px), 11%);
  left: 12px;
  right: 12px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.ivd-social-toast {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 94%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(18, 20, 28, 0.90);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.58);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  animation: ivd-toast-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
}
.ivd-social-toast.is-leaving {
  animation: ivd-toast-out 0.24s ease forwards;
}
.ivd-stat-pill-toast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1d1d1d;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
  animation: ivd-toast-in 0.24s ease forwards;
}
@keyframes ivd-toast-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ivd-toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* QTE Header Banner & Glowing Ring Timer (Slim 2-Line + Single-Timer ~64px Layout) */
.ivd-qte-banner {
  position: absolute;
  top: max(calc(env(safe-area-inset-top, 0px) + 56px), 8.5%);
  left: 12px;
  right: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(12, 16, 26, 0.90) 0%, rgba(8, 11, 18, 0.94) 100%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  text-align: left;
  font-family: var(--ui-font-sans, var(--jp-font-ui, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif));
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}
.ivd-qte-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--theme-accent-light, #fde68a), var(--qte-accent, #f59e0b));
  box-shadow: 0 0 14px var(--qte-accent, #f59e0b);
}
.ivd-qte-banner.is-below-targets {
  top: auto;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.ivd-qte-banner.is-lower-dock {
  top: auto;
  bottom: max(calc(env(safe-area-inset-bottom, 0px) + 128px), 21%);
}
.ivd-qte-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ivd-qte-banner-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ivd-qte-mode-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  margin-bottom: 1px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--theme-accent-light, #fde68a);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ivd-qte-title {
  margin: 0;
  font-size: clamp(13.5px, 4.2cqw, 16.5px);
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
  text-wrap: pretty;
}
.ivd-qte-sub {
  margin: 0;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ivd-qte-ring-timer {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.ivd-qte-ring-timer svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.ivd-qte-ring-track {
  fill: rgba(8, 10, 16, 0.55);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 3.2;
}
.ivd-qte-ring-arc {
  fill: none;
  stroke: var(--qte-accent, #f59e0b);
  stroke-width: 3.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--qte-accent, #f59e0b));
  transition: stroke 0.2s ease;
}
.ivd-qte-banner.is-urgent .ivd-qte-ring-arc {
  stroke: #ef4444;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.85));
}
.ivd-qte-ring-sec {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
}
.ivd-qte-timer-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.ivd-qte-timer-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme-accent-light, #fde68a) 0%, var(--qte-accent, #f59e0b) 65%, #e8492f 100%);
  box-shadow: 0 0 10px var(--qte-accent, #f59e0b);
  transform-origin: left center;
}

/* Quick-Action & Progress Pills inside QTEs (One-Hand iPhone Thumb-Zone >= 48px) */
.ivd-qte-quick-pill {
  position: absolute;
  left: 50%;
  bottom: calc(8.5% + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--theme-accent-light, rgba(255, 214, 138, 0.82));
  background: linear-gradient(135deg, rgba(232, 73, 47, 0.92) 0%, rgba(185, 38, 24, 0.94) 100%);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  color: #ffffff;
  min-height: 50px;
  min-width: min(232px, 76%);
  font: 800 14px/1.2 "Poppins", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 12px 28px rgba(232, 73, 47, 0.48),
    0 0 22px var(--theme-glow, rgba(251, 191, 36, 0.30)),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), filter 0.14s ease, box-shadow 0.14s ease;
}
.ivd-qte-quick-pill.is-charge-btn {
  background: linear-gradient(135deg, var(--theme-accent, #e5c158) 0%, rgba(28, 22, 18, 0.94) 100%);
  border-color: var(--theme-accent-light, #fde68a);
  color: #fffdf7;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.56),
    0 0 24px var(--theme-glow, rgba(229, 193, 88, 0.36)),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.ivd-qte-quick-pill.is-holding {
  transform: translateX(-50%) scale(0.97);
  filter: brightness(1.14);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.62),
    0 0 32px var(--theme-glow, rgba(251, 191, 36, 0.56)),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}
.ivd-qte-quick-pill.is-rapid-btn {
  background: linear-gradient(135deg, #ff6b4a 0%, #e8492f 56%, #b91c1c 100%);
}
.ivd-qte-quick-pill:hover {
  filter: brightness(1.1);
  transform: translateX(-50%) translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(232, 73, 47, 0.62), 0 0 26px var(--theme-glow, rgba(251, 191, 36, 0.42));
}
.ivd-qte-quick-pill:active {
  transform: translateX(-50%) scale(0.95);
}

.ivd-qte-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--theme-accent-light, #fde68a);
  font-size: 12px;
  font-weight: 800;
}

/* QTE Center Widgets (Rapid Tap / Biometric Charge / Heartbeat) */
.ivd-qte-center-zone {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}
.ivd-charge-core {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, rgba(42, 34, 52, 0.94) 0%, rgba(12, 15, 24, 0.96) 78%);
  border: 2.5px solid var(--qte-accent, #f59e0b);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.65),
    0 0 26px rgba(245, 158, 11, 0.34),
    inset 0 0 18px rgba(251, 191, 36, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.1s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ivd-charge-core:hover {
  border-color: #ffffff;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(232, 73, 47, 0.52),
    inset 0 0 22px rgba(251, 191, 36, 0.28);
}
.ivd-charge-core.is-rapid-core {
  background: radial-gradient(circle at 38% 30%, rgba(232, 73, 47, 0.45) 0%, rgba(16, 18, 28, 0.96) 76%);
  border-color: #ff6b4a;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(232, 73, 47, 0.48),
    inset 0 0 20px rgba(232, 73, 47, 0.25);
}
.ivd-charge-core b {
  font-size: 21px;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.ivd-fingerprint-svg {
  width: 32px;
  height: 32px;
  color: var(--theme-accent-light, #fde68a);
  filter: drop-shadow(0 0 8px var(--qte-accent, #f59e0b));
  margin-bottom: 1px;
}
.ivd-combo-readout {
  position: absolute;
  top: -52px;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 73, 47, 0.92), rgba(245, 158, 11, 0.90));
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 8px 22px rgba(232, 73, 47, 0.52);
  white-space: nowrap;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* QTE 4: Forensic Radar & Magnifier Pins */
.ivd-forensic-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 78px;
  min-height: 58px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(251, 191, 36, 0.85);
  background: radial-gradient(circle at 50% 25%, rgba(30, 38, 56, 0.88), rgba(10, 14, 22, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.58),
    0 0 20px rgba(251, 191, 36, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.ivd-forensic-pin-icon {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.65));
}
.ivd-forensic-pin-tag {
  font-size: 12px;
  font-weight: 800;
  color: #fef3c7;
  white-space: nowrap;
}
.ivd-forensic-pin:hover {
  transform: translate(-50%, -50%) scale(1.10);
  border-color: #ffffff;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.68),
    0 0 28px rgba(251, 191, 36, 0.65);
}
.ivd-forensic-pin.is-locked-clue {
  border-color: #34d399;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.94), rgba(10, 38, 32, 0.96));
  color: #d1fae5;
  box-shadow: 0 0 26px rgba(34, 197, 139, 0.62);
  animation: ivd-clue-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ivd-forensic-pin.is-locked-clue .ivd-forensic-pin-tag {
  color: #6ee7b7;
}
@keyframes ivd-clue-pop {
  0%   { transform: translate(-50%, -50%) scale(0.86); }
  65%  { transform: translate(-50%, -50%) scale(1.14); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* QTE 6: Multi-Target Combo Nodes */
.ivd-combo-hud-float {
  position: absolute;
  left: 50%;
  top: max(calc(env(safe-area-inset-top, 0px) + 124px), 24%);
  transform: translateX(-50%);
  z-index: 7;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 73, 47, 0.92), rgba(245, 158, 11, 0.90));
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 8px 24px rgba(232, 73, 47, 0.48);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  pointer-events: none;
}
.ivd-combo-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.32);
  background: radial-gradient(circle, rgba(22, 27, 40, 0.88), rgba(10, 12, 20, 0.92));
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 17px;
  font-weight: 900;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ivd-combo-node small {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.05;
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ivd-combo-node.is-upcoming {
  opacity: 0.82;
}
.ivd-combo-node.is-current-target {
  opacity: 1;
  border: 2.5px solid #ffffff;
  background: radial-gradient(circle at 35% 30%, #fde047 0%, #f97316 55%, #e8492f 100%);
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  box-shadow:
    0 0 0 4px rgba(232, 73, 47, 0.34),
    0 0 28px rgba(251, 191, 36, 0.78);
  animation: ivd-target-throb 0.75s ease-in-out infinite alternate;
}
@keyframes ivd-target-throb {
  from { transform: translate(-50%, -50%) scale(0.97); }
  to   { transform: translate(-50%, -50%) scale(1.07); }
}
.ivd-combo-node.is-cleared-target {
  opacity: 0.94;
  border-color: #34d399;
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.94), rgba(16, 48, 40, 0.94));
  color: #6ef0c4;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.45);
  transform: translate(-50%, -50%) scale(0.88);
  pointer-events: none;
}

/* QTE 7: Drag-and-Drop Prop Card & Drop Target */
.ivd-drop-target-zone {
  position: absolute;
  left: 50%;
  top: 31%;
  transform: translate(-50%, -50%);
  width: min(252px, 82%);
  min-height: 88px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 2px dashed rgba(251, 191, 36, 0.78);
  background: radial-gradient(circle at 50% 50%, rgba(30, 38, 58, 0.82), rgba(10, 14, 22, 0.90));
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  color: #fef3c7;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(251, 191, 36, 0.22);
  pointer-events: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.ivd-drop-target-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fbbf24;
  text-transform: uppercase;
}
.ivd-drop-target-zone.is-hot {
  border-style: solid;
  border-color: #34d399;
  color: #d1fae5;
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 0 36px rgba(34, 197, 139, 0.65);
}
.ivd-drag-prop-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 196px;
  min-height: 104px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(251, 191, 36, 0.85);
  background: linear-gradient(145deg, rgba(36, 30, 48, 0.96) 0%, rgba(15, 18, 28, 0.98) 100%);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.68),
    0 0 24px rgba(251, 191, 36, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  color: #ffffff;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  will-change: transform;
}
.ivd-drag-prop-card:active { cursor: grabbing; }
.ivd-drag-prop-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fde68a;
}
.ivd-drag-prop-icon { font-size: 24px; line-height: 1.05; filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.45)); }
.ivd-drag-prop-label { font-size: 13px; font-weight: 800; line-height: 1.25; color: #ffffff; }

/* QTE 8: Scratch Reveal Card */
.ivd-scratch-card {
  position: relative;
  width: min(276px, 86%);
  height: 168px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.82);
  background: linear-gradient(135deg, rgba(24, 32, 48, 0.96), rgba(14, 18, 28, 0.98));
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(251, 191, 36, 0.26);
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}
.ivd-scratch-secret {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.26), rgba(8, 48, 38, 0.96));
}
.ivd-scratch-verified-pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 139, 0.24);
  border: 1px solid rgba(110, 231, 183, 0.65);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.ivd-scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.25s ease;
}

/* QTE 10: Dual Aura Clash Meter (Red vs Blue Tug-of-War + Lightning) */
.ivd-clash-wrap {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}
.ivd-clash-labels {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.ivd-clash-side-you {
  color: #ffedd5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ivd-clash-side-opp {
  color: #bfdbfe;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ivd-clash-track {
  position: relative;
  width: 100%;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.36);
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.62),
    0 0 24px rgba(37, 99, 235, 0.42);
}
.ivd-clash-hero-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #c22715 0%, #e8492f 58%, #fbbf24 100%);
  box-shadow: 4px 0 20px rgba(251, 191, 36, 0.85);
  transition: width 0.06s linear;
}
.ivd-clash-btn {
  padding: 12px 26px;
  border-radius: 999px;
  min-height: 48px;
  border: 1.5px solid rgba(255, 214, 138, 0.85);
  background: linear-gradient(135deg, #ff6b4a 0%, #e8492f 55%, #b91c1c 100%);
  color: #ffffff;
  font: 900 14.5px/1.2 "Poppins", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(232, 73, 47, 0.55),
    0 0 20px rgba(251, 191, 36, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 0.08s ease, filter 0.12s ease;
}
.ivd-clash-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1.5px) scale(1.03);
}
.ivd-clash-btn:active {
  transform: scale(0.93);
}

/* Directional, Perfect Hit & Missed QTE Grade Stamps */
.ivd-grade-stamp {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%) rotate(-5deg);
  z-index: 9;
  padding: 8px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 20, 30, 0.95), rgba(32, 22, 28, 0.96));
  border: 2px solid #fbbf24;
  color: #fef3c7;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72), 0 0 26px rgba(251, 191, 36, 0.52);
  animation: ivd-stamp-pop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.ivd-grade-stamp.is-miss {
  border-color: rgba(248, 113, 113, 0.85);
  background: linear-gradient(135deg, rgba(32, 12, 18, 0.94), rgba(16, 10, 16, 0.96));
  color: #fee2e2;
  font-size: 13px;
  letter-spacing: 0.09em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72), 0 0 24px rgba(239, 68, 68, 0.38);
}
.ivd-qte-toasts .ivd-grade-stamp {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  max-width: 94%;
  white-space: normal;
  text-align: center;
  animation: ivd-miss-stamp-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.ivd-grade-stamp.is-leaving {
  animation: ivd-miss-stamp-out 0.28s ease forwards;
}
@keyframes ivd-stamp-pop {
  from { opacity: 0; transform: translate(-50%, -44%) scale(1.55) rotate(-12deg); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-5deg); }
}
@keyframes ivd-miss-stamp-in {
  from { opacity: 0; transform: translateY(-8px) scale(1.12); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ivd-miss-stamp-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-6px) scale(0.96); }
}

/* ======================================================================
   PART 2: 6-STYLE ZERO-SCROLL CHOICE SCRIM & CARDS (100% Full-Screen Fit)
   ====================================================================== */
.ivd-choice-scrim {
  pointer-events: auto;
  max-height: 92%;
  height: auto;
  overflow: visible;
  padding: 14px 12px 12px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8, 10, 16, 0.78) 18%,
    rgba(8, 10, 16, 0.94) 54%,
    rgba(6, 8, 13, 0.98) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: ivd-scrim-up 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes ivd-scrim-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ivd-choice-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}
.ivd-choice-move-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 73, 47, 0.30) 0%, rgba(245, 158, 11, 0.22) 100%);
  border: 1px solid rgba(255, 150, 98, 0.62);
  box-shadow: 0 0 16px rgba(232, 73, 47, 0.38);
  color: #ffedd5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ivd-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}
.ivd-choice-prompt {
  margin: 0;
  font-size: clamp(12.8px, 3.8cqw, 15.5px);
  font-weight: 800;
  line-height: 1.24;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ivd-wallet-chip {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 24, 36, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.ivd-choice-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}
.ivd-choice-countdown {
  flex: 1;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.ivd-choice-countdown > i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fde047 0%, #f97316 55%, #e8492f 100%);
  box-shadow: 0 0 12px rgba(232, 73, 47, 0.55);
  transform-origin: left center;
}
.ivd-choice-timer.is-urgent .ivd-choice-countdown > i {
  background: linear-gradient(90deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.88);
}
.ivd-choice-timer.is-urgent .ivd-genre-timer-sec {
  color: #fca5a5;
}

/* Style 1: classic_stack (Zero-scroll full-visibility mobile stack) */
.ivd-choice-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: none;
  overflow: visible;
}
.ivd-choice-list.is-gift-open {
  display: none !important;
}
.ivd-choice-list.style-classic_stack.is-dense {
  gap: 5.5px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.ivd-choice-card {
  --choice-edge: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
  padding: 8px 11px 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(16, 20, 32, 0.86);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: #ffffff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}
.ivd-choice-list.style-classic_stack .ivd-choice-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: var(--choice-edge);
  box-shadow: 0 0 12px var(--choice-edge);
}
/* Directional #E8492F / #2563EB edge glow for A/B free choices */
.ivd-choice-card.edge-a {
  --choice-edge: #E8492F;
  border-color: rgba(232, 73, 47, 0.48);
  background: radial-gradient(125% 140% at 0% 50%, rgba(232, 73, 47, 0.22) 0%, rgba(16, 20, 32, 0.86) 62%);
}
.ivd-choice-card.edge-b {
  --choice-edge: #2563EB;
  border-color: rgba(37, 99, 235, 0.54);
  background: radial-gradient(125% 140% at 0% 50%, rgba(37, 99, 235, 0.24) 0%, rgba(16, 20, 32, 0.86) 62%);
}
.ivd-choice-list.style-classic_stack.is-dense .ivd-choice-card {
  padding: 9px 12px 9px 13px;
}
.ivd-choice-card:hover {
  transform: translateY(-2.5px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.58),
    0 0 22px rgba(255, 255, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.ivd-choice-card.edge-a:hover {
  border-color: #ff7259;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(232, 73, 47, 0.42);
}
.ivd-choice-card.edge-b:hover {
  border-color: #60a5fa;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(37, 99, 235, 0.45);
}
.ivd-choice-card:active {
  transform: scale(0.985);
}

/* Keycap [A]/[B] & Chevron/Check Indicator */
.ivd-choice-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.ivd-choice-keycap {
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.ivd-choice-card.edge-a .ivd-choice-keycap {
  background: linear-gradient(135deg, #ff6b4a 0%, #e8492f 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 3px 10px rgba(232, 73, 47, 0.38);
}
.ivd-choice-card.edge-b .ivd-choice-keycap {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.42);
}
.ivd-choice-card.gate-coins .ivd-choice-keycap {
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%);
  color: #1c1204;
  border-color: rgba(255, 255, 255, 0.5);
}
.ivd-choice-chevron {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: #f8fafc;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.ivd-choice-card:hover .ivd-choice-chevron {
  transform: translateX(2.5px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
}
.ivd-choice-card.is-selected {
  border-color: #34d399 !important;
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.55), inset 0 0 0 1px rgba(167, 243, 208, 0.42) !important;
  transform: translateY(-2px) scale(1.015);
}
.ivd-choice-card.is-selected .ivd-choice-chevron {
  background: #22c58b;
  border-color: #a7f3d0;
  color: #052e1c;
  transform: scale(1.08);
}
.ivd-choice-card.is-dimmed-sibling {
  opacity: 0.36;
  transform: scale(0.975);
  pointer-events: none;
}

/* Style 2: floating_bubbles (Asymmetric staggered speech bubbles, zero scroll) */
.ivd-choice-list.style-floating_bubbles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: none;
  overflow: visible;
  padding: 2px;
}
.ivd-choice-list.style-floating_bubbles .ivd-choice-card {
  width: auto;
  min-width: 78%;
  max-width: 94%;
  padding: 8px 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.ivd-choice-list.style-floating_bubbles .ivd-choice-card.bubble-left {
  align-self: flex-start;
  border-radius: 16px 16px 16px 4px;
}
.ivd-choice-list.style-floating_bubbles .ivd-choice-card.bubble-right {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
}
.ivd-choice-list.style-floating_bubbles .ivd-choice-card:hover {
  transform: translateY(-2px) scale(1.015);
}

/* Style 3: tarot_cards (Compact 2-col / 3-fan / 5-card destiny spread, zero scroll) */
.ivd-choice-list.style-tarot_cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: none;
  overflow: visible;
  perspective: 900px;
  padding: 1px;
}
.ivd-choice-list.style-tarot_cards.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.ivd-choice-list.style-tarot_cards .ivd-choice-card {
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  min-height: 76px;
  padding: 8px 8px 7px;
  gap: 4px;
  border-radius: 13px;
  border: 1.5px solid rgba(255, 196, 92, 0.58);
  background: linear-gradient(180deg, rgba(40, 30, 52, 0.94) 0%, rgba(15, 18, 28, 0.97) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.52), inset 0 0 0 2px rgba(255, 196, 92, 0.10);
}
.ivd-choice-list.style-tarot_cards .ivd-choice-card.is-featured-tarot {
  grid-column: 1 / -1;
  order: -1;
  min-height: 46px;
  flex-direction: row;
  text-align: left;
  padding: 7px 11px;
}
.ivd-choice-list.style-tarot_cards .ivd-choice-card:hover {
  transform: translateY(-2.5px) rotateX(4deg) scale(1.015);
  border-color: #fde047;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.62), 0 0 20px rgba(251, 191, 36, 0.32);
}
.ivd-tarot-emblem {
  font-size: 18px;
  line-height: 1.05;
  filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.5));
}

/* Style 4: stance_wheel (Compact 2x2 Tactical Quadrant Grid + Center Countdown Hub, zero scroll) */
.ivd-stance-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(50cqh, 380px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
}
.ivd-stance-deck.is-gift-open {
  display: none !important;
}
.ivd-stance-quad-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.ivd-stance-quad-grid .ivd-choice-card {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 62px;
  padding: 7px 9px;
  gap: 3px;
  border-radius: 12px;
}
.ivd-stance-quad-grid .ivd-choice-card.quad-0 { border-color: rgba(232, 73, 47, 0.48); }
.ivd-stance-quad-grid .ivd-choice-card.quad-1 { border-color: rgba(59, 130, 246, 0.48); }
.ivd-stance-quad-grid .ivd-choice-card.quad-2 { border-color: rgba(251, 191, 36, 0.48); }
.ivd-stance-quad-grid .ivd-choice-card.quad-3 { border-color: rgba(52, 211, 153, 0.48); }
.ivd-stance-quad-grid .ivd-choice-card.quad-1,
.ivd-stance-quad-grid .ivd-choice-card.quad-3 {
  align-items: flex-end;
  text-align: right;
}
.ivd-stance-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  opacity: 0.95;
}
.ivd-stance-center-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a3147 0%, #0d1018 100%);
  border: 2px solid rgba(255, 181, 69, 0.92);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.92), 0 0 14px rgba(232, 73, 47, 0.55);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #ffe3a3;
  pointer-events: none;
}

/* Legacy v5 gate-coins::after removed — superseded by v6 Cinema HUD */
.ivd-choice-card.gate-rewarded_ad {
  --choice-edge: #3b82f6;
  border-color: rgba(96, 165, 250, 0.76);
  background: linear-gradient(135deg, rgba(23, 44, 84, 0.90) 0%, rgba(18, 25, 42, 0.94) 100%);
}
.ivd-choice-card.gate-stat_gate.is-unlocked {
  --choice-edge: #22c58b;
  border-color: rgba(52, 211, 153, 0.80);
  background: linear-gradient(135deg, rgba(14, 62, 46, 0.90) 0%, rgba(18, 30, 28, 0.94) 100%);
}
.ivd-choice-card.gate-stat_gate.is-locked {
  --choice-edge: #f87171;
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(34, 24, 34, 0.88);
}

.ivd-choice-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ivd-choice-title {
  font-size: clamp(12px, 3.5cqw, 14px);
  font-weight: 800;
  line-height: 1.24;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@container (max-width: 260px) {
  .ivd-choice-scrim {
    padding: 10px 8px 8px;
    gap: 5px;
  }
  .ivd-choice-kicker-row {
    display: none;
  }
  .ivd-choice-prompt {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ivd-choice-card,
  .ivd-stance-quad-grid .ivd-choice-card,
  .ivd-choice-list.style-tarot_cards .ivd-choice-card {
    min-height: 0;
    padding: 6px 8px;
    gap: 4px;
  }
  .ivd-choice-keycap {
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
  }
  .ivd-choice-chevron {
    display: none;
  }
  .ivd-choice-title {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ivd-stance-quad-grid .ivd-choice-tags,
  .ivd-choice-list.style-tarot_cards .ivd-choice-tags {
    display: none;
  }
  .ivd-stance-center-hub {
    width: 28px;
    height: 28px;
  }
}
.ivd-choice-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}
.ivd-choice-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ivd-gate-pill {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ivd-gate-pill.coins {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1d1d1d;
}
.ivd-gate-pill.ad {
  background: rgba(59, 130, 246, 0.28);
  border: 1px solid rgba(147, 197, 253, 0.6);
  color: #dbeafe;
}
.ivd-gate-pill.stat-ok {
  background: rgba(24, 145, 90, 0.34);
  border: 1px solid rgba(110, 231, 183, 0.6);
  color: #a7f3d0;
}
.ivd-gate-pill.gift-boost {
  background: linear-gradient(135deg, #f43f5e, #e8492f);
  color: #fff;
  box-shadow: 0 3px 10px rgba(232, 73, 47, 0.45);
  cursor: pointer;
}

/* Gift Boost Inline Tray */
.ivd-gift-tray {
  margin-top: 4px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(18, 20, 29, 0.97);
  border: 1px solid rgba(251, 191, 36, 0.52);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.ivd-gift-tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: #fde68a;
  margin-bottom: 8px;
  gap: 6px;
}
.ivd-gift-close {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ivd-gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.ivd-gift-btn {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.ivd-gift-btn:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}
.ivd-gift-btn.is-recommended {
  border-color: rgba(232, 73, 47, 0.85);
  background: rgba(232, 73, 47, 0.16);
}
.ivd-gift-icon { font-size: 20px; line-height: 1.1; }
.ivd-gift-name { font-size: 12px; font-weight: 700; }
.ivd-gift-gain { font-size: 12px; color: #6ee7b7; font-weight: 700; }
.ivd-gift-cost { font-size: 12px; color: #fcd34d; font-weight: 800; }

/* Bad-End Freeze & Ending Settlement Modal Cards (Compact Single-Screen Fit, Zero Scrollbar) */
.ivd-cinema-modal-wrap {
  position: absolute;
  inset: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 11px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: auto;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 8, 12, 0.16) 0%, rgba(10, 10, 16, 0.88) 54%, rgba(8, 9, 14, 0.96) 100%);
  animation: ivd-scrim-up 0.24s ease forwards;
}
.ivd-be-card,
.ivd-ending-card {
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(18, 20, 29, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62);
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 100%;
  overflow: hidden;
}
.ivd-be-card {
  border-color: rgba(239, 68, 68, 0.58);
  background: linear-gradient(180deg, rgba(48, 14, 18, 0.94) 0%, rgba(20, 14, 18, 0.96) 100%);
}
.ivd-tier-crest {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
}
.ivd-end-title {
  margin: 0;
  font-size: clamp(15px, 4.6cqw, 19px);
  font-weight: 900;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ivd-echo-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3.5px solid #fbbf24;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.ivd-echo-box b {
  display: block;
  color: #fde68a;
  font-size: 12px;
  margin-bottom: 2px;
}
.ivd-rewind-cta {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f05b3d 0%, #d63f24 100%);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(232, 73, 47, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.14s ease;
}
.ivd-rewind-cta:hover { transform: translateY(-1px); }
.ivd-rewind-cta:active { transform: scale(0.98); }

.ivd-end-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.ivd-end-stat-box {
  padding: 6px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  min-width: 0;
}
.ivd-end-stat-box small {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.78);
}
.ivd-end-stat-box b {
  display: block;
  margin-top: 2px;
  font-size: clamp(14px, 4.5cqw, 17px);
  white-space: nowrap;
}

.ivd-sink-arena {
  padding: 8px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.ivd-sink-caption {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ivd-sink-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ivd-sink-btn {
  padding: 7px 9px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: clamp(12px, 3.4cqw, 12.5px);
  font-weight: 800;
  white-space: nowrap;
  gap: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.1s ease, background 0.14s ease;
}
.ivd-sink-btn.rose:hover { background: rgba(244, 63, 94, 0.24); border-color: rgba(251, 113, 133, 0.65); }
.ivd-sink-btn.egg:hover  { background: rgba(245, 158, 11, 0.24); border-color: rgba(251, 191, 36, 0.65); }
.ivd-sink-btn:active     { transform: scale(0.94); }

.ivd-end-actions {
  display: flex;
  gap: 8px;
}
.ivd-end-sec-btn {
  flex: 1;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.ivd-end-sec-btn:hover { background: rgba(255, 255, 255, 0.15); }

/* ======================================================================
   PART 3: v2.0 GENRE SKINS, VERDICT DECK, DEATH ECHO & TAROT POSTER
   ====================================================================== */
.ivd-qte-root,
.ivd-stage-root,
.ivd-player,
.ivd-qte-root[data-genre-theme="corporate_noir"],
.ivd-stage-root[data-genre-theme="corporate_noir"],
.ivd-player[data-genre-theme="corporate_noir"] {
  --theme-surface: rgba(16, 18, 26, 0.90);
  --theme-surface-strong: #0d111a;
  --theme-accent: #e5c158;
  --theme-accent-light: #fde68a;
  --theme-border: rgba(229, 193, 88, 0.52);
  --theme-glow: rgba(229, 193, 88, 0.28);
  --theme-tint: rgba(229, 193, 88, 0.16);
  --theme-radius: 16px;
  --qte-accent: #f59e0b;
}
.ivd-qte-root[data-genre-theme="dragon_romantasy"],
.ivd-stage-root[data-genre-theme="dragon_romantasy"],
.ivd-player[data-genre-theme="dragon_romantasy"] {
  --theme-surface: rgba(22, 12, 14, 0.90);
  --theme-surface-strong: #170a0d;
  --theme-accent: #ff7832;
  --theme-accent-light: #fcd34d;
  --theme-border: rgba(255, 120, 50, 0.56);
  --theme-glow: rgba(255, 120, 50, 0.30);
  --theme-tint: rgba(255, 120, 50, 0.18);
  --qte-accent: #fb923c;
}
.ivd-qte-root[data-genre-theme="mafia_crimson"],
.ivd-stage-root[data-genre-theme="mafia_crimson"],
.ivd-player[data-genre-theme="mafia_crimson"] {
  --theme-surface: rgba(20, 9, 12, 0.92);
  --theme-surface-strong: #150609;
  --theme-accent: #ef4444;
  --theme-accent-light: #fecaca;
  --theme-border: rgba(239, 68, 68, 0.58);
  --theme-glow: rgba(239, 68, 68, 0.32);
  --theme-tint: rgba(239, 68, 68, 0.18);
  --qte-accent: #f43f5e;
}
.ivd-qte-root[data-genre-theme="palace_gilded"],
.ivd-stage-root[data-genre-theme="palace_gilded"],
.ivd-player[data-genre-theme="palace_gilded"] {
  --theme-surface: rgba(14, 22, 22, 0.92);
  --theme-surface-strong: #0a1414;
  --theme-accent: #e14d36;
  --theme-accent-light: #fef08a;
  --theme-border: rgba(250, 204, 21, 0.56);
  --theme-glow: rgba(250, 204, 21, 0.28);
  --theme-tint: rgba(225, 77, 54, 0.18);
  --qte-accent: #facc15;
}
.ivd-qte-root[data-genre-theme="medical_er"],
.ivd-stage-root[data-genre-theme="medical_er"],
.ivd-player[data-genre-theme="medical_er"] {
  --theme-surface: rgba(10, 18, 28, 0.92);
  --theme-surface-strong: #07111c;
  --theme-accent: #38bdf8;
  --theme-accent-light: #7dd3fc;
  --theme-border: rgba(56, 189, 248, 0.58);
  --theme-glow: rgba(56, 189, 248, 0.34);
  --theme-tint: rgba(56, 189, 248, 0.18);
  --qte-accent: #0ea5e9;
}
.ivd-qte-root[data-genre-theme="campus_rose"],
.ivd-stage-root[data-genre-theme="campus_rose"],
.ivd-player[data-genre-theme="campus_rose"] {
  --theme-surface: rgba(26, 13, 21, 0.92);
  --theme-surface-strong: #1b0b15;
  --theme-accent: #fb7185;
  --theme-accent-light: #fda4af;
  --theme-border: rgba(251, 113, 133, 0.58);
  --theme-glow: rgba(251, 113, 133, 0.34);
  --theme-tint: rgba(251, 113, 133, 0.18);
  --qte-accent: #f43f5e;
}
.ivd-qte-root[data-genre-theme] .ivd-qte-timer-fill {
  background: linear-gradient(90deg, var(--theme-accent-light) 0%, var(--theme-accent) 60%, var(--qte-accent) 100%);
}
.ivd-qte-root[data-genre-theme] .ivd-qte-timer-meta.is-urgent .ivd-qte-timer-fill {
  background: linear-gradient(90deg, #fca5a5 0%, #ef4444 100%);
}
.ivd-qte-root[data-genre-theme] .ivd-choice-countdown > i,
.ivd-qte-root[data-genre-theme] .ivd-choice-countdown.ivd-cine-filament > i {
  background: linear-gradient(90deg, var(--theme-accent) 0%, var(--theme-accent-light) 100%);
}

.ivd-genre-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}
.ivd-qte-timer-meta {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 12px/1.2 "Poppins", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
}
.ivd-qte-timer-meta.is-urgent {
  color: #fca5a5;
}
.ivd-qte-timer-meta [data-role="qte-seconds"] {
  min-width: 2.2ch;
  text-align: right;
}
.ivd-qte-timer-meta [data-role="qte-prog-slot"]:empty { display: none; }
.ivd-qte-timer-meta .ivd-qte-progress-pill {
  margin: 0;
  line-height: 1.25;
}
.ivd-genre-timer-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  box-shadow: 0 0 12px var(--theme-glow);
  color: var(--theme-accent-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ivd-genre-timer-sec {
  font-size: 12px;
  font-weight: 800;
  color: var(--theme-accent-light);
}

/* 11th QTE: Verdict Deck (Left/Right Swipe Judgment Card + Dual Stamp Buttons) */
.ivd-qte-banner.is-verdict-banner {
  top: max(calc(env(safe-area-inset-top, 0px) + 52px), 7.5%);
}
.ivd-verdict-deck-wrap {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 23%;
  bottom: calc(4% + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 920px;
  pointer-events: none;
}
.ivd-verdict-dossier {
  position: relative;
  width: min(370px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 15px 15px 14px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(24, 28, 42, 0.96) 0%, rgba(11, 14, 22, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--theme-border);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.82),
    0 0 30px var(--theme-glow),
    inset 0 0 0 3px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  will-change: transform;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  animation: ivd-scrim-up 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.ivd-verdict-dossier:active {
  cursor: grabbing;
}
.ivd-verdict-dossier.swipe-right-hot {
  border-color: #34d399;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.82), 0 0 34px rgba(52, 211, 153, 0.45);
}
.ivd-verdict-dossier.swipe-left-hot {
  border-color: #f87171;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.82), 0 0 34px rgba(248, 113, 113, 0.45);
}

/* Directional Decision Stamps on Judgment Swipe */
.ivd-verdict-dir-stamp {
  position: absolute;
  top: 16px;
  z-index: 9;
  padding: 4px 11px;
  border-radius: 7px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease, transform 0.1s ease;
}
.ivd-verdict-dir-stamp.is-execute {
  left: 14px;
  border: 2.5px solid #34d399;
  background: rgba(6, 78, 59, 0.92);
  color: #a7f3d0;
  transform: rotate(-12deg) scale(0.92);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.55);
}
.ivd-verdict-dir-stamp.is-exonerate {
  right: 14px;
  border: 2.5px solid #f87171;
  background: rgba(127, 29, 29, 0.92);
  color: #fecaca;
  transform: rotate(12deg) scale(0.92);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.55);
}

.ivd-verdict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ivd-verdict-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.ivd-verdict-crest {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--theme-border);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ivd-verdict-kicker {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--theme-accent-light);
  text-transform: uppercase;
}
.ivd-verdict-delta-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--theme-border);
  color: var(--theme-accent-light);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ivd-verdict-clause {
  margin: 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3.5px solid var(--theme-accent);
  color: #F8FAFC;
  font-family: var(--ui-font-sans, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.44;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ivd-verdict-seal-zone {
  position: relative;
  min-height: 68px;
  padding: 8px 13px;
  border-radius: 12px;
  border: 1.5px dashed var(--theme-border);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.36) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.ivd-verdict-seal-zone:hover,
.ivd-verdict-seal-zone.is-hot {
  border-style: solid;
  border-color: var(--theme-accent-light);
  box-shadow: 0 0 24px var(--theme-glow);
}
.ivd-verdict-seal-guide {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ivd-verdict-seal-guide b {
  font-size: 12px;
  color: var(--theme-accent-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ivd-verdict-seal-guide span {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.76);
}
.ivd-verdict-signet-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.ivd-verdict-signet-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.ivd-verdict-signet-token {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, var(--theme-accent-light), var(--theme-accent) 78%);
  border: 2px solid #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 18px var(--theme-glow);
  display: grid;
  place-items: center;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  cursor: grab;
  touch-action: none;
  transition: transform 0.12s ease;
}
.ivd-verdict-signet-token:hover {
  transform: scale(1.08) rotate(-6deg);
}
.ivd-verdict-signet-token:active {
  cursor: grabbing;
}
.ivd-verdict-stamp-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  padding: 7px 15px;
  border-radius: 8px;
  border: 3px double var(--theme-accent-light);
  background: rgba(16, 12, 14, 0.96);
  color: var(--theme-accent-light);
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.82), 0 0 28px var(--theme-glow);
  pointer-events: none;
  animation: ivd-verdict-seal-slam 0.28s cubic-bezier(0.22, 1.38, 0.42, 1) forwards;
}
.ivd-verdict-stamp-mark.genre-dragon_romantasy {
  border-radius: 999px;
  border-color: #FBBF24;
  background: radial-gradient(circle, rgba(124, 45, 18, 0.96), rgba(28, 12, 10, 0.98));
  color: #FDE68A;
}
.ivd-verdict-stamp-mark.genre-mafia_crimson {
  border-radius: 999px;
  border-color: #FCA5A5;
  background: radial-gradient(circle, rgba(153, 27, 27, 0.96), rgba(40, 8, 12, 0.98));
  color: #FEE2E2;
}
.ivd-verdict-stamp-mark.genre-palace_gilded {
  border-radius: 4px;
  border: 3px double #FACC15;
  background: rgba(185, 38, 24, 0.95);
  color: #FEF08A;
}
.ivd-verdict-stamp-mark.genre-medical_er {
  border-radius: 6px;
  border: 3px double #7dd3fc;
  background: radial-gradient(circle, rgba(12, 74, 110, 0.96), rgba(7, 22, 36, 0.98));
  color: #bae6fd;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.82), 0 0 28px rgba(56, 189, 248, 0.48);
}
.ivd-verdict-stamp-mark.genre-campus_rose {
  border-radius: 999px;
  border: 3px double #fda4af;
  background: radial-gradient(circle, rgba(136, 19, 55, 0.96), rgba(38, 10, 22, 0.98));
  color: #ffe4e6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.82), 0 0 28px rgba(251, 113, 133, 0.48);
}
@keyframes ivd-verdict-seal-slam {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(2.35) rotate(-18deg); }
  72%  { opacity: 1; transform: translate(-50%, -50%) scale(0.95) rotate(-5deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-7deg); }
}
.ivd-verdict-veto-slash {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 48%;
  height: 5px;
  z-index: 9;
  background: linear-gradient(90deg, transparent 0%, #EF4444 15%, #FCA5A5 50%, #DC2626 85%, transparent 100%);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.9);
  transform: rotate(-16deg) scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  animation: ivd-veto-slash-draw 0.18s ease-out forwards;
}
@keyframes ivd-veto-slash-draw {
  to { transform: rotate(-16deg) scaleX(1); }
}
.ivd-verdict-veto-tag {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(-12deg);
  z-index: 10;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(127, 29, 29, 0.95);
  border: 2px solid #FCA5A5;
  color: #FEE2E2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.ivd-verdict-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
}
.ivd-verdict-approve-btn {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--theme-accent-light);
  background: linear-gradient(135deg, var(--theme-accent-light) 0%, var(--theme-accent) 100%);
  color: #111827;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 8px 22px var(--theme-glow);
  transition: transform 0.14s ease, filter 0.14s ease;
}
.ivd-verdict-approve-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.ivd-verdict-approve-btn:active { transform: scale(0.97); }
.ivd-verdict-veto-btn {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid rgba(248, 113, 113, 0.55);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.48), rgba(24, 20, 32, 0.88));
  color: #FECACA;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
.ivd-verdict-veto-btn:hover {
  background: rgba(220, 38, 38, 0.34);
  border-color: #FCA5A5;
  transform: translateY(-2px);
}
.ivd-verdict-veto-btn:active { transform: scale(0.97); }

/* 🔊 Death Echo Blind-Box & Genre Epitaph Card */
.ivd-cinema-modal-wrap {
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ivd-cinema-modal-wrap::-webkit-scrollbar,
.ivd-be-card::-webkit-scrollbar,
.ivd-ending-card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.ivd-be-card,
.ivd-ending-card {
  max-height: 100%;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 6px;
}
.ivd-be-ribbon {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.24);
  border: 1px solid rgba(252, 165, 165, 0.56);
  color: #FECACA;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.ivd-epitaph-headline {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
  border-left: 3px solid var(--theme-accent);
  color: var(--theme-accent-light);
  font-family: var(--ui-font-sans, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.ivd-be-quote {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}
.ivd-death-echo-card {
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(10, 12, 18, 0.78);
  border: 1px solid var(--theme-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ivd-echo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  color: var(--theme-accent-light);
}
.ivd-echo-reward-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FBBF24, #D97706);
  color: #140E02;
  font-size: 12px;
  font-weight: 900;
  animation: ivd-toast-in 0.26s ease forwards;
}
.ivd-echo-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ivd-echo-speaker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
.ivd-echo-speaker b {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ivd-echo-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  flex-shrink: 0;
}
.ivd-echo-eq i {
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: var(--theme-accent-light);
  opacity: 0.55;
  transition: height 0.15s ease;
}
.ivd-echo-eq i:nth-child(2) { height: 11px; }
.ivd-echo-eq i:nth-child(3) { height: 15px; }
.ivd-echo-eq i:nth-child(4) { height: 9px; }
.ivd-echo-eq.is-playing i {
  opacity: 1;
  animation: ivd-eq-bounce 0.56s ease-in-out infinite alternate;
}
.ivd-echo-eq.is-playing i:nth-child(2) { animation-delay: 0.11s; }
.ivd-echo-eq.is-playing i:nth-child(3) { animation-delay: 0.22s; }
.ivd-echo-eq.is-playing i:nth-child(4) { animation-delay: 0.07s; }
.ivd-echo-eq.is-playing i:nth-child(5) { animation-delay: 0.18s; }
@keyframes ivd-eq-bounce {
  0%   { height: 4px; }
  100% { height: 18px; }
}
.ivd-echo-play-btn {
  width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--theme-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--theme-accent-light);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.1s ease;
}
.ivd-echo-play-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.ivd-echo-play-btn:active {
  transform: scale(0.98);
}
.ivd-echo-reveal {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--theme-accent-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: ivd-scrim-up 0.22s ease forwards;
}
.ivd-echo-quote-en {
  margin: 0;
  font-family: var(--ui-font-sans, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  color: #FFFFFF;
}
.ivd-echo-caption-zh {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

/* 🎴 9:16 Viral Power Persona Tarot Strip & Poster Modal (Compact Single-Row Fit) */
.ivd-persona-strip {
  padding: 7px 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(10, 12, 18, 0.65) 100%);
  border: 1px solid var(--theme-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ivd-persona-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.ivd-persona-kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--theme-accent-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ivd-persona-title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.ivd-persona-title-row b {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ivd-tarot-open-btn {
  width: auto;
  flex-shrink: 0;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 9px;
  border: 1px solid var(--theme-accent-light);
  background: linear-gradient(135deg, var(--theme-accent) 0%, rgba(30, 24, 38, 0.95) 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--theme-glow);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.ivd-tarot-open-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ivd-tarot-open-btn:active { transform: scale(0.98); }

.ivd-tarot-poster-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  padding: 12px;
  background: rgba(6, 8, 13, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
  animation: ivd-toast-in 0.22s ease forwards;
}
.ivd-tarot-poster-canvas {
  max-height: 72cqh;
  max-width: 100%;
  width: auto;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  border: 1.5px solid var(--theme-border);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.85), 0 0 28px var(--theme-glow);
  background: #080A12;
}
.ivd-tarot-modal-actions {
  width: min(320px, 100%);
  display: flex;
  gap: 8px;
}
.ivd-tarot-dl-btn {
  flex: 1.5;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--theme-accent-light);
  background: linear-gradient(135deg, #F59E0B, #E8492F);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.ivd-tarot-close-btn {
  flex: 1;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Compact 204px-wide Studio Mini Simulator Responsiveness */
@container (max-width: 260px) {
  .ivd-qte-banner {
    padding: 6px 10px;
    gap: 3px;
  }
  .ivd-qte-banner.is-lower-dock {
    top: auto;
    bottom: max(calc(env(safe-area-inset-bottom, 0px) + 56px), 19%);
  }
  .ivd-qte-mode-chip,
  .ivd-qte-ring-timer {
    display: none;
  }
  .ivd-qte-banner.is-verdict-banner {
    top: 6px;
    left: 8px;
    right: 8px;
  }
  .ivd-qte-banner.is-verdict-banner .ivd-qte-sub {
    display: none;
  }
  .ivd-qte-banner.is-verdict-banner .ivd-qte-title {
    margin: 2px 0;
    font-size: 12.5px;
  }
  .ivd-verdict-deck-wrap {
    left: 7px;
    right: 7px;
    top: 60px;
    bottom: 6px;
  }
  .ivd-verdict-dossier {
    padding: 9px 9px 8px;
    gap: 6px;
  }
  .ivd-verdict-crest {
    display: none;
  }
  .ivd-verdict-clause {
    padding: 6px 8px;
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  .ivd-verdict-seal-zone {
    min-height: 44px;
    padding: 5px 8px;
  }
  .ivd-verdict-seal-guide span {
    display: none;
  }
  .ivd-verdict-signet-wrap {
    width: 36px;
    height: 36px;
  }
  .ivd-verdict-signet-token {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .ivd-verdict-actions {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .ivd-verdict-approve-btn {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 12px;
  }
  .ivd-verdict-veto-btn {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 12px;
  }
  .ivd-cinema-modal-wrap {
    padding: 8px;
  }
  .ivd-be-card,
  .ivd-ending-card {
    padding: 10px 9px;
    gap: 7px;
  }
  .ivd-tarot-poster-canvas {
    max-height: 62cqh;
  }
  .ivd-tarot-modal-actions {
    flex-direction: column;
    gap: 5px;
  }
}

/* ======================================================================
   PART 4: 7 SCENE-ADAPTED DIEGETIC QTE MODES + SPATIAL ANCHORS (18-QTE)
   Semi-transparent non-blocking overlays so live video shines through!
   ====================================================================== */
.ivd-qte-center-zone.is-diegetic-anchor .ivd-charge-core {
  background: radial-gradient(circle at 38% 30%, rgba(28, 22, 36, 0.58) 0%, rgba(8, 10, 18, 0.64) 82%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* 12. incoming_call (📱 拟真手机突发来电/密信) */
.ivd-call-card {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 25%;
  margin: 0 auto;
  max-width: 348px;
  padding: 16px 15px 14px;
  border-radius: 22px;
  background: rgba(12, 16, 26, 0.78);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.72), 0 0 28px rgba(34, 197, 139, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  pointer-events: auto;
  animation: ivd-phone-vibe 1.3s ease-in-out infinite;
}
@keyframes ivd-phone-vibe {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  10%      { transform: translate3d(-2.5px, 1px, 0) rotate(-0.8deg); }
  20%      { transform: translate3d(2.5px, -1px, 0) rotate(0.8deg); }
  30%      { transform: translate3d(-2px, 0, 0) rotate(-0.5deg); }
  40%      { transform: translate3d(2px, 0, 0) rotate(0.5deg); }
  52%      { transform: translate3d(0, 0, 0) rotate(0deg); }
}
.ivd-call-avatar-ring {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #34d399, #059669 78%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.18), 0 0 26px rgba(52, 211, 153, 0.55);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.ivd-call-caller {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}
.ivd-call-role {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(110, 231, 183, 0.45);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
}
.ivd-call-msg {
  margin: 0;
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.38;
}
.ivd-call-wave {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
}
.ivd-call-wave i {
  width: 3.5px;
  height: 8px;
  border-radius: 99px;
  background: #6ee7b7;
  animation: ivd-eq-bounce 0.48s ease-in-out infinite alternate;
}
.ivd-call-wave i:nth-child(2) { animation-delay: 0.09s; }
.ivd-call-wave i:nth-child(3) { animation-delay: 0.19s; }
.ivd-call-wave i:nth-child(4) { animation-delay: 0.05s; }
.ivd-call-wave i:nth-child(5) { animation-delay: 0.15s; }
.ivd-call-wave i:nth-child(6) { animation-delay: 0.24s; }
.ivd-call-wave i:nth-child(7) { animation-delay: 0.11s; }
.ivd-call-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 9px;
  margin-top: 2px;
}
.ivd-call-btn {
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.ivd-call-btn.reject {
  border: 1.5px solid rgba(248, 113, 113, 0.68);
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.72), rgba(127, 29, 29, 0.85));
  color: #fecaca;
}
.ivd-call-btn.answer {
  border: 1.5px solid #a7f3d0;
  background: linear-gradient(135deg, #22c58b 0%, #059669 100%);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.55), 0 0 20px rgba(52, 211, 153, 0.48);
}
.ivd-call-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ivd-call-btn:active { transform: scale(0.96); }

/* 13. wiping_care (🩹 实景温柔擦拭/清创护理) */
.ivd-wipe-anchor {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 1.5px dashed rgba(253, 224, 71, 0.72);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.ivd-wipe-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(12, 16, 24, 0.76);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(253, 224, 71, 0.58);
  color: #fef3c7;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ivd-diegetic-insight-banner {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 17%;
  z-index: 10;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 24, 34, 0.92), rgba(20, 42, 38, 0.94));
  backdrop-filter: blur(14px);
  border: 1.5px solid #fde047;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72), 0 0 24px rgba(251, 191, 36, 0.42);
  color: #fef9c3;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.38;
  pointer-events: none;
  animation: ivd-toast-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 14. gaze_focus (👁️ 第一视角微表情凝视识破) */
.ivd-gaze-reticle {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 152px;
  height: 152px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}
.ivd-gaze-pill {
  padding: 2.5px 9px;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.76);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(125, 211, 252, 0.62);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* 15. voice_objection (⚖️ 逆转当庭异议拍桌) */
.ivd-objection-stage {
  position: absolute;
  inset: 26.5% 12px calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.ivd-lie-quote-card {
  padding: 11px 13px;
  border-radius: 15px;
  background: rgba(16, 14, 24, 0.80);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(248, 113, 113, 0.58);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.58);
  pointer-events: auto;
}
.ivd-lie-speaker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #fca5a5;
}
.ivd-lie-quote-text {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.36;
  color: #ffffff;
}
.ivd-objection-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}
.ivd-objection-chip {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(14, 18, 28, 0.84);
  backdrop-filter: blur(16px);
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.ivd-objection-chip:hover {
  transform: translateY(-2px);
  border-color: #fde047;
}
.ivd-objection-chip.is-key-contradiction {
  border-color: rgba(251, 191, 36, 0.76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(251, 191, 36, 0.26);
}
.ivd-objection-chip.is-key-contradiction::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120%;
  width: 60%;
  background: linear-gradient(105deg, transparent 0%, rgba(254, 240, 138, 0.24) 50%, transparent 100%);
  animation: ivd-vip-shimmer 2.2s ease-in-out infinite;
  pointer-events: none;
}
.ivd-objection-chip.is-wrong-shake {
  border-color: rgba(248, 113, 113, 0.68);
  opacity: 0.56;
}
.ivd-objection-slam {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%) rotate(-8deg);
  z-index: 12;
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 3px solid #fde047;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85), 0 0 38px rgba(239, 68, 68, 0.85);
  color: #fef08a;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
  animation: ivd-verdict-seal-slam 0.28s cubic-bezier(0.22, 1.38, 0.42, 1) forwards;
}

/* 16. phone_passcode (🔐 现场线索破译4位密码) */
.ivd-passcode-panel {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: min(286px, 88%);
  padding: 13px 14px 12px;
  border-radius: 20px;
  background: rgba(12, 16, 26, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: auto;
}
.ivd-passcode-clue {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(253, 224, 71, 0.58);
  color: #fef08a;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.ivd-passcode-dots {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
}
.ivd-passcode-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.48);
  background: transparent;
  transition: all 0.14s ease;
}
.ivd-passcode-dot.is-filled {
  border-color: #34d399;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
  transform: scale(1.12);
}
.ivd-keypad-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.ivd-keypad-key {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.14s ease, border-color 0.14s ease;
}
.ivd-keypad-key:hover {
  background: rgba(255, 255, 255, 0.20);
}
.ivd-keypad-key:active {
  transform: scale(0.93);
}
.ivd-keypad-key.is-next-digit {
  border: 2px solid #fde047;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.34), rgba(232, 73, 47, 0.24));
  color: #fef9c3;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.58);
}

/* 17. contract_seal (✒️ EXECUTIVE BOARD INJUNCTION · 董事会最高裁决签章) */
.ivd-contract-decree {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: min(338px, 90%);
  padding: 15px 15px 14px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(16, 22, 34, 0.88) 0%, rgba(10, 14, 24, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(148, 163, 184, 0.58);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.76), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  touch-action: none;
}
.ivd-contract-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  padding-bottom: 7px;
}
.ivd-contract-clause {
  margin: 0;
  font-size: 13px;
  line-height: 1.44;
  color: #f8fafc;
  font-weight: 600;
}
.ivd-contract-stamp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}
.ivd-contract-red-box {
  position: relative;
  flex: 1;
  min-height: 68px;
  border-radius: 10px;
  border: 2px dashed rgba(248, 113, 113, 0.85);
  background: rgba(185, 28, 28, 0.14);
  display: grid;
  place-items: center;
  color: #fecaca;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.ivd-contract-red-box:hover,
.ivd-contract-red-box.is-hot {
  border-style: solid;
  border-color: #fde047;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.55);
}
.ivd-gold-seal-knob {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f8fafc 0%, #cbd5e1 44%, #475569 85%, #1e293b 100%);
  border: 2px solid #fde047;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65), 0 0 20px rgba(250, 204, 21, 0.45);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 900;
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
}
.ivd-crimson-square-imprint {
  position: absolute;
  inset: 7px 10px;
  border-radius: 8px;
  border: 2.5px solid #34d399;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(15, 23, 42, 0.96));
  color: #a7f3d0;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4px 6px;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.68);
  animation: ivd-verdict-seal-slam 0.26s cubic-bezier(0.22, 1.38, 0.42, 1) forwards;
}

/* 18. evidence_combine (🧩 双证物红线比对推理) */
.ivd-polaroid-clue {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--pol-rot, -4deg));
  width: min(142px, 42%);
  padding: 9px 9px 11px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease, border-color 0.16s ease;
}
.ivd-polaroid-clue::before {
  content: "📌";
  font-size: 14px;
  line-height: 1;
  margin-top: -4px;
}
.ivd-polaroid-photo {
  width: 100%;
  height: 54px;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 40%, #1e293b, #0f172a);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.ivd-polaroid-caption {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.24;
  color: #0f172a;
}
.ivd-polaroid-clue:hover,
.ivd-polaroid-clue.is-pinned-active {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.07);
  border-color: #ef4444;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(239, 68, 68, 0.65);
}

/* Legacy v5 spatial_anchors & dialogue_interrupt removed — superseded by v6 Cinema HUD */
@container (max-width: 280px) {
  .ivd-cinema-modal-wrap {
    padding: 6px 7px 8px;
  }
  .ivd-be-card,
  .ivd-ending-card {
    padding: 8px 9px;
    gap: 5px;
  }
  .ivd-end-title {
    font-size: 13.5px;
    -webkit-line-clamp: 1;
  }
  .ivd-ending-epilogue {
    display: none;
  }
}
@container (max-height: 490px) {
  .ivd-cinema-modal-wrap {
    padding: 8px 9px 10px;
  }
  .ivd-be-card,
  .ivd-ending-card {
    padding: 9px 10px;
    gap: 5px;
  }
  .ivd-ending-epilogue {
    -webkit-line-clamp: 1 !important;
  }
}

/* ======================================================================
   PART 5: 6 DRAMA-SIGNATURE BESPOKE MINI-GAMES (Total 24 QTE Modes)
   ====================================================================== */
/* 19. silver_acupuncture (🩺 ER DEEP-VESSEL & THORACIC RESUSCITATION · 急诊深层血管穿刺复苏) */
.ivd-acu-bpm-hud {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  z-index: 6;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(6, 18, 28, 0.84);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(56, 189, 248, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.58), 0 0 20px rgba(56, 189, 248, 0.38);
  color: #bae6fd;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
}
.ivd-acupoint-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 118px;
  min-height: 54px;
  padding: 6px 11px;
  border-radius: 14px;
  border: 1.5px solid rgba(125, 211, 252, 0.85);
  background: radial-gradient(circle at 35% 30%, rgba(14, 165, 233, 0.34), rgba(8, 18, 30, 0.88));
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.62), 0 0 22px rgba(56, 189, 248, 0.42);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.ivd-acupoint-pin small {
  font-size: 12px;
  font-weight: 800;
  color: #bae6fd;
  white-space: nowrap;
}
.ivd-acupoint-pin.is-active-acu {
  border-color: #38bdf8;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.28), 0 0 28px rgba(56, 189, 248, 0.88);
  animation: ivd-target-throb 0.7s ease-in-out infinite alternate;
}
.ivd-acupoint-pin.is-needled {
  border-color: #34d399;
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.92), rgba(15, 23, 42, 0.92));
  color: #a7f3d0;
  box-shadow: 0 0 22px rgba(52, 211, 153, 0.65);
  pointer-events: none;
}

/* 20. defib_shock (⚡ 200J 急诊除颤起搏) */
.ivd-defib-card {
  position: absolute;
  left: 50%;
  top: 59%;
  transform: translate(-50%, -50%);
  width: min(326px, 90%);
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(10, 14, 24, 0.78);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(248, 113, 113, 0.68);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7), 0 0 24px rgba(239, 68, 68, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.ivd-defib-card.is-charging {
  border-color: #fbbf24;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72), 0 0 28px rgba(251, 191, 36, 0.45);
}
.ivd-defib-card.is-charged {
  border-color: #fde047;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72), 0 0 32px rgba(250, 204, 21, 0.62);
}
.ivd-defib-card.is-restored {
  border-color: #34d399;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72), 0 0 32px rgba(52, 211, 153, 0.68);
}
.ivd-defib-charge-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.ivd-defib-charge-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #f59e0b 0%, #fde047 65%, #34d399 100%);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.65);
  transition: transform 0.04s linear;
}
.ivd-defib-monitor {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 900;
  color: #fca5a5;
}
.ivd-defib-card.is-restored .ivd-defib-monitor { color: #6ee7b7; }
.ivd-defib-paddles-btn {
  width: 100%;
  min-height: 52px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 2px solid #fde047;
  background: linear-gradient(135deg, #dc2626 0%, #d97706 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.55), 0 0 22px rgba(251, 191, 36, 0.42);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.ivd-defib-card.is-charged .ivd-defib-paddles-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
  border-color: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.62), 0 0 28px rgba(253, 224, 71, 0.72);
}
.ivd-defib-paddles-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ivd-defib-paddles-btn:active { transform: scale(0.96); }

/* 21. cctv_scrub (🎞️ 断崖记录仪/港务监控逐帧锁证) */
.ivd-cctv-rec-hud {
  position: absolute;
  top: 21%;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(6, 10, 18, 0.68);
  border: 1px solid rgba(248, 113, 113, 0.48);
  color: #fecaca;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.ivd-cctv-dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(9% + env(safe-area-inset-bottom, 0px));
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10, 14, 24, 0.84);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.68);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}
.ivd-cctv-track-wrap {
  position: relative;
  width: 100%;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  padding: 0 6px;
}
.ivd-cctv-crime-zone {
  position: absolute;
  left: 65%;
  width: 20%;
  top: 2px;
  bottom: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.55), rgba(251, 191, 36, 0.65));
  border: 1px solid #fde047;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.72);
  pointer-events: none;
}
.ivd-cctv-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  accent-color: #fde047;
  cursor: pointer;
}
.ivd-cctv-lock-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid #fde047;
  background: linear-gradient(135deg, #e8492f 0%, #b91c1c 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(232, 73, 47, 0.5);
}

/* 22. auction_gavel (🔨 港务码头十倍举牌落槌碾压) */
.ivd-auction-stage {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%);
  width: min(334px, 90%);
  padding: 15px 15px 14px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(28, 22, 14, 0.84) 0%, rgba(12, 14, 22, 0.90) 100%);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(251, 191, 36, 0.78);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.74), 0 0 30px rgba(251, 191, 36, 0.34);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
  pointer-events: auto;
}
.ivd-auction-rival-ticker {
  width: 100%;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(185, 28, 28, 0.26);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fecaca;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.ivd-auction-gavel-btn {
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 15px;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 52%, #b45309 100%);
  color: #1c1204;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.28;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.58), 0 0 28px rgba(253, 224, 71, 0.58);
  transition: transform 0.14s ease, filter 0.14s ease;
}
.ivd-auction-gavel-btn:hover { transform: translateY(-2.5px) scale(1.02); filter: brightness(1.06); }
.ivd-auction-gavel-btn:active { transform: scale(0.95); }

/* 23. locket_clasp (📿 外婆双叶金挂坠旋扣开锁验真) */
.ivd-locket-medallion {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 174px;
  height: 174px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fef08a 0%, #eab308 48%, #854d0e 92%);
  border: 3px solid #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72), 0 0 34px rgba(250, 204, 21, 0.62), inset 0 0 18px rgba(255, 255, 255, 0.52);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  text-align: center;
  color: #291805;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
  transition: transform 0.22s cubic-bezier(0.22, 1.36, 0.36, 1), background 0.22s ease;
}
.ivd-locket-medallion:hover { transform: translate(-50%, -50%) scale(1.05); }
.ivd-locket-medallion.is-opened {
  background: radial-gradient(circle at 50% 42%, #fffbeb 0%, #fef08a 58%, #ca8a04 100%);
  transform: translate(-50%, -50%) scale(1.10);
}
.ivd-locket-clasp-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(28, 18, 4, 0.84);
  color: #fef08a;
  font-size: 12px;
  font-weight: 900;
}
.ivd-locket-engraving {
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.28;
  color: #422006;
}

/* 24. blackcard_freeze (💳 卡林顿百夫长黑卡·十秒全族封杀令) */
.ivd-blackcard-stage {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%);
  width: min(334px, 90%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  pointer-events: auto;
  touch-action: none;
}
.ivd-centurion-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #090b10 0%, #1e2430 52%, #0c0e14 100%);
  border: 1.5px solid #fbbf24;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.82), 0 0 28px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #fef3c7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ivd-centurion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.86), 0 0 34px rgba(239, 68, 68, 0.5);
}
.ivd-centurion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fde047;
}
.ivd-centurion-num {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #ffffff;
}
.ivd-blackcard-swipe-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1.5px solid #fde047;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 55%, #450a0a 100%);
  color: #fef08a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.55), 0 0 20px rgba(239, 68, 68, 0.42);
}

/* ---- v5 Studio WYSIWYG Spatial Anchor Drag Pins & Living Slow-Mo Pulse ---- */
.ivd-stage-root.is-living-slowmo .ivd-video-slot.is-active {
  filter: brightness(0.92) contrast(1.04) saturate(1.06);
}
.ivd-studio-drag-layer {
  position: absolute;
  inset: 0;
  z-index: 48;
  pointer-events: auto;
  background: radial-gradient(circle at 50% 48%, rgba(15, 23, 42, 0.08), rgba(5, 7, 13, 0.42));
  border: 2px dashed rgba(245, 196, 81, 0.72);
  user-select: none;
  touch-action: none;
}
.ivd-studio-drag-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.92);
  border: 1px solid rgba(245, 196, 81, 0.72);
  color: #fde68a;
  font: 700 12px/1.2 var(--ui-font-sans, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}
.ivd-studio-drag-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 78%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1.5px solid #f5c451;
  background: rgba(10, 13, 22, 0.92);
  color: #fff;
  font: 700 12px/1.2 var(--ui-font-sans, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif);
  cursor: grab;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.62), 0 0 0 4px rgba(245, 196, 81, 0.22);
  transition: box-shadow 120ms ease, border-color 120ms ease;
}
.ivd-studio-drag-pin:active,
.ivd-studio-drag-pin.is-dragging {
  cursor: grabbing;
  border-color: #fde047;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.72), 0 0 0 7px rgba(250, 204, 21, 0.34);
  z-index: 5;
}
.ivd-studio-drag-pin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c451, #e8492f);
  color: #090b10;
  font: 900 12px/1 "Poppins", sans-serif;
  flex-shrink: 0;
}
.ivd-studio-drag-pin-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.ivd-studio-drag-pin-coords {
  font: 700 12px/1 var(--ui-font-mono, "Cascadia Mono", Consolas, ui-monospace, monospace);
  color: #fde68a;
  opacity: 0.9;
  flex-shrink: 0;
}

/* ---- LAN QR Real-Device Preview Modal ---- */
.ivd-qr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ivd-qr-card {
  width: min(370px, 100%);
  border-radius: 18px;
  padding: 20px;
  background: #101420;
  border: 1px solid rgba(245, 196, 81, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.68);
  color: #f5f7fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.ivd-qr-svg-wrap {
  width: 212px;
  height: 212px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
}
.ivd-qr-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ivd-qr-url-box {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fde68a;
  font: 600 12px/1.35 var(--ui-font-mono, "Cascadia Mono", Consolas, ui-monospace, monospace);
  word-break: break-all;
  user-select: all;
}

/* ========================================================================== *
 * v6 CINEMA-GRADE MOBILE UI RESET (Netflix Stories × Chapters × Diegetic AR)
 * Zero keycaps, zero chevrons, zero ellipsis truncation, thumb-zone ergonomics
 * ========================================================================== */

@keyframes ivd-cine-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ivd-vip-sheen {
  0%, 72%, 100% {
    transform: translateX(-140%) skewX(-20deg);
  }
  88% {
    transform: translateX(240%) skewX(-20deg);
  }
}

@keyframes ivd-reticle-pulse {
  0% {
    transform: scale(0.86);
    opacity: 0.92;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

/* 1. Lower-Third Filmic Scrim (Leaves upper 58%+ completely open for actors' faces) */
.ivd-choice-scrim.ivd-cine-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: auto;
  max-height: 76%;
  padding: 36px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  border: none;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 7, 11, 0) 0%,
    rgba(6, 7, 11, 0.56) 24%,
    rgba(6, 7, 11, 0.90) 68%,
    rgba(6, 7, 11, 0.96) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
  pointer-events: auto;
}

.ivd-cine-prompt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0 4px;
}

.ivd-choice-prompt.ivd-cine-prompt {
  margin: 0;
  flex: 1;
  text-align: center;
  font-family: var(--ui-font-sans, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: #FAF7F2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.92), 0 1px 3px rgba(0, 0, 0, 0.95);
  /* ZERO '...' ellipsis truncation — show full readable question! */
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  white-space: normal !important;
}

.ivd-wallet-chip.ivd-cine-wallet {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 17, 24, 0.72);
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.48));
  color: var(--theme-accent-light, #F6DC92);
  font-size: 12px;
  font-weight: 700;
}

/* Hairline Diegetic Countdown Filament */
.ivd-choice-timer.ivd-cine-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 2px;
  margin: -2px 0 2px;
}

.ivd-choice-countdown.ivd-cine-filament {
  flex: 1;
  height: 2.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  box-shadow: none;
}

.ivd-choice-countdown.ivd-cine-filament > i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--theme-accent, #E8C162) 0%, var(--theme-accent-light, #F7DF9C) 100%);
  border-radius: 999px;
  transition: background 180ms ease;
}

.ivd-choice-timer.ivd-cine-timer.is-urgent .ivd-cine-filament > i {
  background: linear-gradient(90deg, #EF4444 0%, #FCA5A5 100%);
}

.ivd-genre-timer-sec.ivd-cine-sec {
  font-size: 12px;
  font-weight: 700;
  color: var(--theme-accent-light, rgba(250, 247, 242, 0.86));
  min-width: 24px;
  text-align: right;
  letter-spacing: 0.02em;
}

.ivd-choice-timer.ivd-cine-timer.is-urgent .ivd-cine-sec {
  color: #FCA5A5;
}

/* 2. Cinema Choice Pills (Netflix Stories × Chapters Luxury Frosted Glass) */
.ivd-choice-list.ivd-cine-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  max-height: min(50cqh, 380px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 0;
}
.ivd-choice-list.ivd-cine-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Tarot Cards 2-col / 3-col Grid (placed AFTER .ivd-cine-list so grid layout always wins!) */
.ivd-choice-list.ivd-cine-list.style-tarot_cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ivd-choice-list.ivd-cine-list.style-tarot_cards.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.ivd-choice-list.ivd-cine-list.style-tarot_cards .ivd-choice-card.ivd-cine-card {
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  min-height: 82px;
  padding: 10px 10px 9px;
  gap: 5px;
  border-color: var(--theme-border, rgba(232, 193, 98, 0.45));
  background: linear-gradient(180deg, rgba(28, 22, 38, 0.84) 0%, rgba(13, 15, 24, 0.90) 100%);
}
.ivd-tarot-arcana {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-accent-light, #f3d284);
  opacity: 0.94;
  line-height: 1.15;
}
.ivd-choice-list.ivd-cine-list.style-tarot_cards .ivd-choice-card.ivd-cine-card .ivd-cine-copy {
  align-items: center;
  text-align: center;
}
.ivd-choice-list.ivd-cine-list.style-tarot_cards .ivd-choice-card.ivd-cine-card.is-featured-tarot {
  grid-column: 1 / -1;
  order: -1;
  min-height: 48px;
  flex-direction: row;
  text-align: left;
  padding: 10px 14px;
}
.ivd-choice-list.ivd-cine-list.style-tarot_cards .ivd-choice-card.ivd-cine-card.is-featured-tarot .ivd-cine-copy {
  align-items: flex-start;
  text-align: left;
}

/* Stance Wheel 2x2 Quadrant Grid (placed AFTER .ivd-cine-list for clean precedence) */
.ivd-stance-quad-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ivd-stance-quad-grid .ivd-choice-card.ivd-cine-card {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 68px;
  padding: 9px 11px;
  gap: 4px;
}
.ivd-stance-quad-grid .ivd-choice-card.ivd-cine-card.quad-1,
.ivd-stance-quad-grid .ivd-choice-card.ivd-cine-card.quad-3 {
  align-items: flex-end;
  text-align: right;
}

.ivd-choice-card.ivd-cine-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(16, 18, 26, 0.74);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  color: #F8FAFC;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: ivd-cine-rise 240ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--stagger-idx, 0) * 45ms);
  transition: transform 120ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms ease, border-color 160ms ease, opacity 180ms ease;
}

.ivd-choice-card.ivd-cine-card.edge-a,
.ivd-choice-card.ivd-cine-card.edge-b {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(17, 20, 29, 0.76);
}

.ivd-choice-card.ivd-cine-card:hover:not(:disabled) {
  border-color: rgba(250, 247, 242, 0.42);
  background: rgba(26, 30, 42, 0.86);
  transform: translateY(-1px);
}

.ivd-choice-card.ivd-cine-card:active:not(:disabled) {
  transform: scale(0.972);
  background: rgba(34, 38, 52, 0.92);
}

/* Premium VIP Coin Choice (Chapters / ReelShort Warm Gold Accent) */
.ivd-choice-card.ivd-cine-card.gate-coins {
  border: 1px solid rgba(232, 193, 98, 0.72);
  background: linear-gradient(135deg, rgba(64, 43, 16, 0.84) 0%, rgba(22, 18, 15, 0.86) 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.44), 0 0 18px rgba(232, 193, 98, 0.18), inset 0 1px 0 rgba(255, 232, 168, 0.24);
}

.ivd-choice-card.ivd-cine-card.gate-coins::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 179, 0.18), transparent);
  pointer-events: none;
  animation: ivd-vip-sheen 4.4s ease-in-out infinite;
}

.ivd-choice-card.ivd-ar-hotspot.gate-coins::after {
  display: none !important;
  content: none !important;
}

.ivd-choice-card.ivd-cine-card.is-payoff {
  border-color: rgba(110, 231, 183, 0.56);
  background: linear-gradient(135deg, rgba(16, 52, 42, 0.82) 0%, rgba(14, 22, 26, 0.84) 100%);
}

.ivd-choice-card.ivd-cine-card.is-selected {
  border-color: var(--theme-accent-light, #F6DC92) !important;
  background: var(--theme-tint, rgba(246, 220, 146, 0.22)) !important;
  transform: scale(0.985) !important;
  box-shadow: 0 0 0 2px var(--theme-border, rgba(246, 220, 146, 0.45)), 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

.ivd-choice-card.ivd-cine-card.is-dimmed-sibling {
  opacity: 0.22 !important;
  transform: scale(0.97) !important;
}

.ivd-cine-copy {
  flex: 1 1 150px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ivd-choice-card.ivd-cine-card .ivd-choice-title {
  font-family: var(--ui-font-sans, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.32;
  color: #FAF7F2;
  /* ZERO '...' ellipsis truncation! */
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  white-space: normal !important;
}

.ivd-choice-card.ivd-cine-card .ivd-choice-tags {
  font-size: 12px;
  font-weight: 500;
  color: rgba(250, 247, 242, 0.68);
}

/* Refined Luxury Gate Pills */
.ivd-cine-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FAF7F2;
}

.ivd-cine-pill.is-vip {
  background: linear-gradient(135deg, #E8C162, #C9962B);
  border-color: #FBE4A4;
  color: #120E06;
  font-weight: 800;
}

.ivd-cine-pill.is-ad {
  background: rgba(99, 102, 241, 0.26);
  border-color: rgba(165, 180, 252, 0.45);
  color: #E0E7FF;
}

.ivd-cine-pill.is-clue {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(110, 231, 183, 0.50);
  color: #D1FAE5;
}

.ivd-cine-pill.is-boost {
  background: var(--theme-tint, rgba(232, 193, 98, 0.22));
  border-color: var(--theme-border, rgba(232, 193, 98, 0.55));
  color: var(--theme-accent-light, #FDE68A);
}

.ivd-cine-pill.is-custom-badge {
  background: var(--theme-tint, rgba(232, 193, 98, 0.20));
  border-color: var(--theme-border, rgba(232, 193, 98, 0.52));
  color: var(--theme-accent-light, #FDE68A);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ivd-cine-pill.is-locked {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.34);
  color: #cbd5e1;
  flex-shrink: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  text-align: left;
  line-height: 1.25;
  font-size: 12px;
  padding: 3px 8px;
}
.ivd-choice-card.ivd-cine-card:has(.ivd-cine-pill.is-locked) {
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: 6px;
}

/* Dialogue Interrupt: clean theme-accented filmic urgency (no boxy borders, zero clip) */
.ivd-choice-scrim.ivd-cine-scrim[data-choice-style="dialogue_interrupt"] {
  max-height: 82%;
  padding: 24px 16px calc(14px + env(safe-area-inset-bottom, 0px));
}

.ivd-choice-list.ivd-cine-list.style-dialogue_interrupt .ivd-choice-card.ivd-cine-card {
  border-left: 3px solid var(--theme-accent, #E5484D);
  background: rgba(22, 14, 18, 0.80);
  padding: 11px 15px;
  min-height: 44px;
}

.ivd-choice-list.ivd-cine-list.style-dialogue_interrupt .ivd-choice-card.ivd-cine-card.edge-b {
  border-left-color: var(--theme-accent-light, #E8C162);
  background: rgba(20, 18, 16, 0.80);
}

/* Floating Bubbles: organic staggered film whispers in lower thumb zone */
.ivd-choice-list.ivd-cine-list.style-floating_bubbles .ivd-choice-card.ivd-cine-card {
  width: auto;
  max-width: 88%;
  border-radius: 20px;
}

.ivd-choice-list.ivd-cine-list.style-floating_bubbles .ivd-choice-card.bubble-left {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.ivd-choice-list.ivd-cine-list.style-floating_bubbles .ivd-choice-card.bubble-right {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

/* 3. TRUE DIEGETIC AR SPATIAL ANCHORS (1:1 synced with Studio WYSIWYG anchor_x / anchor_y) */
.ivd-choice-scrim.ivd-cine-scrim[data-choice-style="spatial_anchors"] {
  position: absolute;
  inset: 0;
  max-height: none;
  padding: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 7, 11, 0.24) 0%,
    rgba(6, 7, 11, 0) 20%,
    rgba(6, 7, 11, 0) 70%,
    rgba(6, 7, 11, 0.88) 100%
  );
  pointer-events: none;
  justify-content: flex-end;
}

.ivd-ar-stage-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.ivd-choice-card.ivd-ar-hotspot {
  position: absolute !important;
  transform: translate(-12px, -50%) !important;
  width: auto !important;
  max-width: none !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: visible !important;
  pointer-events: auto !important;
  cursor: pointer;
  z-index: 4;
}

.ivd-choice-card.ivd-ar-hotspot.callout-left {
  left: auto !important;
  right: calc((1 - var(--ax, 0.72)) * 100%);
  flex-direction: row-reverse !important;
  transform: translate(12px, -50%) !important;
}

.ivd-ar-reticle {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(250, 247, 242, 0.92);
  background: rgba(10, 12, 18, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--theme-glow, rgba(246, 220, 146, 0.55));
}

.ivd-ar-reticle > i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--theme-accent, #FAF7F2);
  box-shadow: 0 0 8px var(--theme-accent-light, #F6DC92);
}

.ivd-ar-reticle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--theme-accent-light, rgba(246, 220, 146, 0.8));
  animation: ivd-reticle-pulse 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.ivd-choice-card.ivd-ar-hotspot.gate-coins .ivd-ar-reticle {
  border-color: var(--theme-accent-light, #F6DC92);
  box-shadow: 0 0 18px var(--theme-glow, rgba(232, 193, 98, 0.78));
}

.ivd-ar-callout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(230px, max(84px, calc((1 - var(--ax, 0.28)) * 100cqw - 44px)));
  padding: 8px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 16, 24, 0.78);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  color: #FAF7F2;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform 130ms ease, border-color 140ms ease, background 140ms ease;
}

.ivd-choice-card.ivd-ar-hotspot.callout-left .ivd-ar-callout {
  max-width: min(230px, max(84px, calc(var(--ax, 0.72) * 100cqw - 44px)));
}

.ivd-choice-card.ivd-ar-hotspot.gate-coins .ivd-ar-callout {
  border-color: var(--theme-border, rgba(232, 193, 98, 0.75));
  background: linear-gradient(135deg, rgba(64, 43, 16, 0.86), rgba(20, 16, 14, 0.88));
}

.ivd-choice-card.ivd-ar-hotspot:hover .ivd-ar-callout {
  border-color: rgba(250, 247, 242, 0.62);
  background: rgba(24, 28, 40, 0.90);
}

.ivd-choice-card.ivd-ar-hotspot:active .ivd-ar-callout {
  transform: scale(0.96);
}

.ivd-choice-card.ivd-ar-hotspot.is-selected .ivd-ar-callout {
  border-color: var(--theme-accent-light, #F6DC92);
  background: var(--theme-tint, rgba(246, 220, 146, 0.26));
}

.ivd-choice-card.ivd-ar-hotspot.is-dimmed-sibling {
  opacity: 0.22 !important;
}

.ivd-ar-text {
  font-family: var(--ui-font-sans, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.28;
  color: #FAF7F2;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.ivd-ar-bottom-whisper {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 18px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: auto;
}

/* Narrow Mobile Viewport Guard (<=360px container width): prevent AR callout right/left clipping */
@container (max-width: 360px) {
  .ivd-ar-callout {
    max-width: min(204px, max(76px, calc((1 - var(--ax, 0.28)) * 100cqw - 46px)));
    padding: 6px 10px;
    gap: 5px;
  }
  .ivd-choice-card.ivd-ar-hotspot.callout-left .ivd-ar-callout {
    max-width: min(204px, max(76px, calc(var(--ax, 0.72) * 100cqw - 46px)));
  }
  .ivd-ar-text {
    font-size: 12px;
    line-height: 1.24;
  }
}

/* Compact Embedded Studio / Playable Preview Scaling (<280px container width) */
@container (max-width: 280px) {
  .ivd-choice-scrim.ivd-cine-scrim {
    padding: 18px 8px 10px;
    gap: 6px;
  }
  .ivd-choice-prompt.ivd-cine-prompt {
    font-size: 12px;
    line-height: 1.26;
  }
  .ivd-genre-timer-tag {
    padding: 1.5px 6px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .ivd-choice-list.ivd-cine-list {
    gap: 5px;
  }
  .ivd-choice-card.ivd-cine-card {
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 10px;
    gap: 6px;
  }
  .ivd-choice-card.ivd-cine-card .ivd-choice-title {
    font-size: 12px;
    line-height: 1.22;
  }
  .ivd-cine-pill {
    padding: 2px 6px;
    font-size: 12px;
  }
  .ivd-ar-reticle {
    width: 16px;
    height: 16px;
  }
  .ivd-ar-reticle > i {
    width: 5px;
    height: 5px;
  }
  .ivd-choice-card.ivd-ar-hotspot {
    transform: translate(-8px, -50%) !important;
    gap: 5px !important;
  }
  .ivd-choice-card.ivd-ar-hotspot.callout-left {
    left: auto !important;
    right: calc((1 - var(--ax, 0.72)) * 100%);
    transform: translate(8px, -50%) !important;
  }
  .ivd-ar-callout {
    max-width: min(132px, max(64px, calc((1 - var(--ax, 0.28)) * 100cqw - 30px)));
    padding: 5px 8px;
    border-radius: 9px;
  }
  .ivd-choice-card.ivd-ar-hotspot.callout-left .ivd-ar-callout {
    max-width: min(132px, max(64px, calc(var(--ax, 0.72) * 100cqw - 30px)));
  }
  .ivd-ar-text {
    font-size: 12px;
    line-height: 1.2;
  }
  .ivd-ar-bottom-whisper {
    padding: 10px 8px 9px;
    gap: 4px;
  }
}

/* ==========================================================================
   PART 5: JOYPLUS INTERACTIVE UI 3.0 — CINEMA LIQUID GLASS (6 CHOICES + 24 QTE)
   Theme-Driven Obsidian Liquid Glass × Dynamic 6-Genre Palette Custom Properties
   Replaces legacy cold-navy game HUD chrome with Apple VisionOS / Netflix Interactive craft.
   ========================================================================== */

/* 1. Dynamic-Island Compact Cinema QTE Header (Face-Safe Lower-Dock Ready) */
.ivd-qte-banner {
  top: max(calc(env(safe-area-inset-top, 0px) + 56px), 8.5%);
  left: 12px;
  right: 12px;
  padding: 8px 12px;
  gap: 4px;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--theme-surface, rgba(20, 19, 22, 0.80)) 0%, rgba(12, 11, 14, 0.88) 100%);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.45));
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.48),
    0 0 20px var(--theme-glow, rgba(232, 193, 98, 0.16)),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.ivd-qte-banner.is-lower-dock {
  top: auto;
  bottom: max(calc(env(safe-area-inset-bottom, 0px) + 128px), 21%);
}
.ivd-qte-banner.is-below-targets {
  top: auto;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
@container (max-width: 260px) {
  .ivd-qte-banner {
    padding: 6px 10px;
    gap: 3px;
  }
  .ivd-qte-banner.is-lower-dock {
    top: auto;
    bottom: max(calc(env(safe-area-inset-bottom, 0px) + 56px), 19%);
  }
}
.ivd-qte-banner::before {
  width: 3px;
  top: 7px;
  bottom: 7px;
  background: linear-gradient(180deg, var(--theme-accent-light, #f3d284) 0%, var(--theme-accent, #e8c162) 100%);
  box-shadow: 0 0 10px var(--theme-glow, rgba(232, 193, 98, 0.45));
}
.ivd-qte-mode-chip {
  padding: 2px 8px;
  background: var(--theme-tint, rgba(232, 193, 98, 0.16));
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.45));
  color: var(--theme-accent-light, #f3d284);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.ivd-qte-ring-track {
  fill: rgba(15, 14, 17, 0.52);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2.8;
}
.ivd-qte-ring-arc {
  stroke: var(--theme-accent, #e8c162);
  stroke-width: 3;
  filter: drop-shadow(0 0 4px var(--theme-glow, rgba(232, 193, 98, 0.6)));
}
.ivd-qte-timer-fill {
  background: linear-gradient(90deg, var(--theme-accent-light, #f3d284) 0%, var(--theme-accent, #e8c162) 60%, var(--qte-accent, #e8492f) 100%);
  box-shadow: 0 0 8px var(--theme-glow, rgba(232, 193, 98, 0.45));
}
.ivd-qte-quick-pill {
  border: 1.5px solid var(--theme-accent-light, #f3d284);
  background: linear-gradient(135deg, var(--theme-tint, rgba(232, 193, 98, 0.34)) 0%, var(--theme-surface-strong, rgba(16, 15, 20, 0.94)) 100%);
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  box-shadow:
    0 12px 28px var(--theme-glow, rgba(232, 193, 98, 0.42)),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* 2. Refined Tactile Cores, Combo Rings, Forensic Pins & Clash Bars */
.ivd-charge-core {
  background: radial-gradient(circle at 35% 28%, rgba(36, 33, 40, 0.86) 0%, rgba(14, 13, 16, 0.92) 80%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 2px solid var(--theme-border, rgba(232, 193, 98, 0.45));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.58),
    0 0 22px var(--theme-glow, rgba(232, 193, 98, 0.28)),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.ivd-charge-core.is-rapid-core {
  background: radial-gradient(circle at 35% 28%, var(--theme-tint, rgba(232, 193, 98, 0.34)) 0%, rgba(18, 15, 18, 0.92) 78%);
  border-color: var(--theme-accent, #e8c162);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.58),
    0 0 26px var(--theme-glow, rgba(232, 193, 98, 0.42)),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.ivd-forensic-pin {
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.45));
  background: linear-gradient(160deg, var(--theme-surface, rgba(26, 24, 29, 0.84)), rgba(14, 13, 16, 0.88));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.52),
    0 0 0 3px var(--theme-tint, rgba(232, 193, 98, 0.14)),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ivd-combo-node {
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: radial-gradient(circle, rgba(24, 23, 27, 0.84), rgba(12, 11, 14, 0.90));
  backdrop-filter: blur(14px);
}
.ivd-combo-node.is-current-target {
  border: 2px solid var(--theme-accent-light, #f3d284);
  background: radial-gradient(circle at 35% 28%, var(--theme-accent-light, #f3d284) 0%, var(--theme-accent, #e8c162) 56%, var(--qte-accent, #d4381e) 100%);
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
  box-shadow:
    0 0 0 4px var(--theme-tint, rgba(232, 193, 98, 0.28)),
    0 12px 28px var(--theme-glow, rgba(232, 193, 98, 0.52));
}
.ivd-drop-target-zone {
  border: 1.5px dashed var(--theme-border, rgba(232, 193, 98, 0.45));
  background: radial-gradient(circle at 50% 50%, var(--theme-surface, rgba(28, 25, 30, 0.76)), rgba(13, 12, 15, 0.86));
  backdrop-filter: blur(18px);
}
.ivd-drag-prop-card {
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.45));
  background: linear-gradient(145deg, var(--theme-surface, rgba(30, 27, 32, 0.92)) 0%, rgba(14, 13, 16, 0.96) 100%);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.64),
    0 0 22px var(--theme-glow, rgba(232, 193, 98, 0.22)),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.ivd-scratch-card {
  border: 1.5px solid var(--theme-border, rgba(232, 193, 98, 0.45));
  background: linear-gradient(135deg, var(--theme-surface, rgba(24, 23, 27, 0.94)), rgba(14, 13, 16, 0.97));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ivd-clash-track {
  height: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(90deg, #1e3a5f 0%, #2563eb 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.56), inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.ivd-clash-hero-fill {
  background: linear-gradient(90deg, var(--qte-accent, #e8492f) 0%, var(--theme-accent, #e8c162) 60%, var(--theme-accent-light, #f3d284) 100%);
  box-shadow: 4px 0 18px var(--theme-glow, rgba(232, 193, 98, 0.56));
}

/* 3. Luxury Diegetic QTEs (iOS Call / iOS Lock Passcode / Heirloom Locket / Centurion Black Card / Court Decree) */
.ivd-call-card {
  border-radius: 26px;
  background: linear-gradient(165deg, var(--theme-surface, rgba(24, 23, 27, 0.82)) 0%, rgba(13, 12, 15, 0.88) 100%);
  backdrop-filter: blur(26px) saturate(175%);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.20));
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ivd-call-avatar-ring {
  background: radial-gradient(circle at 35% 30%, #34d399, #047857 82%);
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.16), 0 10px 24px rgba(5, 150, 105, 0.42);
}
.ivd-passcode-panel {
  border-radius: 24px;
  background: linear-gradient(165deg, var(--theme-surface, rgba(22, 21, 25, 0.80)) 0%, rgba(13, 12, 15, 0.88) 100%);
  backdrop-filter: blur(26px) saturate(175%);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.18));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.ivd-keypad-key {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  font-family: var(--jp-num-font, "Poppins", Bahnschrift, sans-serif);
}
.ivd-keypad-key.is-next-digit {
  border: 1.5px solid var(--theme-accent-light, #f3d284);
  background: radial-gradient(circle, var(--theme-tint, rgba(232, 193, 98, 0.34)), rgba(18, 16, 22, 0.45));
  box-shadow: 0 0 16px var(--theme-glow, rgba(232, 193, 98, 0.44));
}
.ivd-contract-decree,
.ivd-auction-stage,
.ivd-cctv-dock,
.ivd-lie-quote-card,
.ivd-objection-chip {
  background: linear-gradient(165deg, var(--theme-surface, rgba(24, 22, 26, 0.84)) 0%, rgba(13, 12, 15, 0.90) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.ivd-contract-decree,
.ivd-auction-stage,
.ivd-lie-quote-card {
  border-color: var(--theme-border, rgba(232, 193, 98, 0.45));
}
.ivd-locket-medallion {
  background: radial-gradient(circle at 32% 26%, #faf0c8 0%, var(--theme-accent, #e8c162) 48%, #6b4714 90%, #3a2408 100%);
  border: 2px solid var(--theme-accent-light, rgba(255, 246, 214, 0.92));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.68),
    0 0 0 5px var(--theme-tint, rgba(232, 193, 98, 0.16)),
    0 0 28px var(--theme-glow, rgba(232, 193, 98, 0.42)),
    inset 0 2px 12px rgba(255, 255, 255, 0.56),
    inset 0 -8px 18px rgba(68, 38, 6, 0.42);
}
.ivd-locket-clasp-pill {
  background: rgba(22, 16, 9, 0.88);
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.45));
  color: var(--theme-accent-light, #f3d284);
}
.ivd-centurion-card {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, transparent 36%, var(--theme-tint, rgba(232, 193, 98, 0.12)) 68%, transparent 100%),
    linear-gradient(145deg, #161518 0%, #242228 48%, #0e0d10 100%);
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.58));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.78),
    0 0 24px var(--theme-glow, rgba(232, 193, 98, 0.24)),
    inset 0 1px 0 rgba(255, 242, 204, 0.34);
}
.ivd-centurion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 240, 196, 0.16) 50%, transparent 100%);
  animation: ivd-vip-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

/* 4. All 6 Choice UIs — Theme-Aware Cinema Liquid Glass */
.ivd-choice-scrim,
.ivd-choice-scrim.ivd-cine-scrim {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(13, 12, 15, 0.62) 22%,
    rgba(13, 12, 15, 0.90) 60%,
    rgba(10, 9, 12, 0.97) 100%
  );
}
.ivd-choice-card.ivd-cine-card,
.ivd-choice-card.ivd-cine-card.edge-a,
.ivd-choice-card.ivd-cine-card.edge-b {
  background: var(--theme-surface, rgba(20, 19, 23, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}
.ivd-choice-list.ivd-cine-list.style-classic_stack .ivd-choice-card.ivd-cine-card.edge-a {
  border-color: var(--theme-border, rgba(232, 193, 98, 0.45));
  background: linear-gradient(96deg, var(--theme-tint, rgba(232, 193, 98, 0.16)) 0%, var(--theme-surface, rgba(20, 19, 23, 0.80)) 46%);
}
.ivd-choice-list.ivd-cine-list.style-classic_stack .ivd-choice-card.ivd-cine-card.edge-b {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(96deg, rgba(255, 255, 255, 0.06) 0%, var(--theme-surface, rgba(20, 19, 23, 0.80)) 46%);
}
.ivd-choice-card.ivd-cine-card:hover:not(:disabled) {
  border-color: var(--theme-accent-light, rgba(255, 248, 238, 0.48));
  background: rgba(31, 29, 34, 0.88);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.52),
    0 0 18px var(--theme-glow, rgba(232, 193, 98, 0.18)),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.ivd-choice-card.ivd-cine-card.gate-coins {
  border: 1px solid var(--theme-accent, #e8c162);
  background: linear-gradient(135deg, var(--theme-tint, rgba(232, 193, 98, 0.28)) 0%, var(--theme-surface-strong, rgba(22, 18, 15, 0.90)) 100%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.48),
    0 0 20px var(--theme-glow, rgba(232, 193, 98, 0.24)),
    inset 0 1px 0 rgba(255, 236, 179, 0.30);
}
.ivd-choice-list.ivd-cine-list.style-tarot_cards .ivd-choice-card.ivd-cine-card {
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.45));
  background: linear-gradient(175deg, var(--theme-surface, rgba(34, 28, 36, 0.88)) 0%, var(--theme-surface-strong, rgba(15, 14, 17, 0.94)) 100%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.54),
    inset 0 0 0 1px var(--theme-tint, rgba(232, 193, 98, 0.16)),
    inset 0 1px 0 rgba(255, 240, 200, 0.24);
}
/* Never crush 3 tarot cards into narrow 38px vertical word-splits; use featured top card + balanced 2-col pair */
.ivd-choice-list.ivd-cine-list.style-tarot_cards.cols-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px;
}
.ivd-choice-list.ivd-cine-list.style-tarot_cards.cols-3 > .ivd-choice-card:first-child {
  grid-column: 1 / -1;
  min-height: 46px;
  flex-direction: row;
  text-align: left;
  padding: 9px 13px;
}
.ivd-choice-list.ivd-cine-list.style-tarot_cards.cols-3 > .ivd-choice-card:first-child .ivd-cine-copy,
.ivd-choice-list.ivd-cine-list.style-tarot_cards.cols-3 > .ivd-choice-card:first-child .ivd-choice-title {
  text-align: left !important;
}
.ivd-choice-card.ivd-cine-card .ivd-choice-title {
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
@container (max-width: 280px) {
  .ivd-choice-list.ivd-cine-list.style-tarot_cards,
  .ivd-choice-list.ivd-cine-list.style-tarot_cards.cols-3 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 5px;
  }
  .ivd-choice-list.ivd-cine-list.style-tarot_cards .ivd-choice-card.ivd-cine-card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    min-height: 34px !important;
    padding: 6px 9px !important;
    gap: 7px !important;
  }
  .ivd-choice-list.ivd-cine-list.style-tarot_cards .ivd-choice-card.ivd-cine-card .ivd-choice-title {
    text-align: left !important;
  }
  .ivd-choice-list.ivd-cine-list.style-tarot_cards .ivd-tarot-emblem {
    font-size: 13px;
    flex-shrink: 0;
  }
}
.ivd-choice-list.ivd-cine-list.style-floating_bubbles .ivd-choice-card.ivd-cine-card {
  background: var(--theme-surface, rgba(22, 20, 24, 0.80));
  border-color: rgba(255, 255, 255, 0.20);
}
.ivd-choice-list.ivd-cine-list.style-floating_bubbles .ivd-choice-card.ivd-cine-card.bubble-left {
  border-color: var(--theme-border, rgba(232, 193, 98, 0.45));
}
.ivd-stance-kicker {
  color: var(--theme-accent-light, #f3d284);
}
.ivd-stance-center-hub {
  background: radial-gradient(circle, var(--theme-surface, #27242a) 0%, var(--theme-surface-strong, #111013) 100%);
  border: 1.5px solid var(--theme-accent-light, #f3d284);
  color: var(--theme-accent-light, #f3d284);
  box-shadow: 0 0 0 3px rgba(17, 16, 19, 0.85), 0 0 18px var(--theme-glow, rgba(232, 193, 98, 0.42));
}
.ivd-choice-card.ivd-ar-hotspot .ivd-ar-callout {
  background: var(--theme-surface, rgba(18, 17, 21, 0.82));
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border-color: var(--theme-border, rgba(232, 193, 98, 0.45));
}
.ivd-choice-card.ivd-ar-hotspot .ivd-ar-reticle {
  border-color: var(--theme-accent-light, rgba(255, 248, 238, 0.94));
  background: rgba(17, 16, 19, 0.48);
  box-shadow: 0 0 14px var(--theme-glow, rgba(232, 193, 98, 0.55));
}
.ivd-choice-card.ivd-ar-hotspot .ivd-ar-reticle > i {
  background: var(--theme-accent, #e8c162);
  box-shadow: 0 0 8px var(--theme-accent-light, #f3d284);
}

/* 5. Ending Settlement, Bad-End & Gift Boost Modals — Theme-Aware Luxury */
.ivd-be-card,
.ivd-ending-card,
.ivd-gift-tray {
  background: linear-gradient(168deg, var(--theme-surface, rgba(24, 22, 26, 0.92)) 0%, var(--theme-surface-strong, rgba(13, 12, 15, 0.96)) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.45));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.70), 0 0 22px var(--theme-glow, rgba(232, 193, 98, 0.16)), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.ivd-be-card {
  border-color: var(--theme-border, rgba(232, 73, 47, 0.56));
  background:
    radial-gradient(circle at 50% 0%, var(--theme-tint, rgba(232, 73, 47, 0.22)) 0%, transparent 56%),
    linear-gradient(175deg, rgba(32, 16, 18, 0.94) 0%, rgba(15, 12, 14, 0.97) 100%);
}
.ivd-social-toast {
  background: var(--theme-surface, rgba(20, 19, 23, 0.88));
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.46));
}
.ivd-wallet-chip {
  background: var(--theme-surface, rgba(20, 19, 23, 0.82));
  backdrop-filter: blur(12px);
  border: 1px solid var(--theme-border, rgba(232, 193, 98, 0.46));
  color: var(--theme-accent-light, #f3d284);
}

/* ==========================================================================
 * v21 Consumer-Grade 9:16 Cinema HUD, Reaction Whispers, Act Milestones
 * & Collectible Ending Replay Cards (6-Skin Token & iPhone Safe-Area Native)
 * ========================================================================== */

/* 1. Top-Left Minimal Episode Capsule (EP 01 / 50) */
.ivd-ep-badge {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.56);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #e5c158) 42%, rgba(255, 255, 255, 0.16));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36);
  color: rgba(255, 252, 245, 0.94);
  font-family: var(--ui-font-display, "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}
.ivd-ep-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-accent-light, #fde68a);
  box-shadow: 0 0 8px var(--theme-accent, #e5c158);
  flex-shrink: 0;
}

/* Lightweight Top-Right Dialogue Rewind Button (↺ 5s) */
.ivd-rewind5s-pill {
  height: 28px !important;
  padding: 0 10px !important;
  font-family: var(--ui-font-display, "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  background: rgba(10, 12, 18, 0.52) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: rgba(248, 250, 252, 0.90) !important;
  opacity: 0.84;
  transition: opacity 180ms ease, border-color 150ms ease, background 150ms ease, transform 120ms ease;
}
.ivd-rewind5s-pill:hover {
  opacity: 1;
  border-color: var(--theme-accent-light, #fde68a) !important;
  background: rgba(18, 22, 34, 0.82) !important;
  color: var(--theme-accent-light, #fde68a) !important;
}
.ivd-rewind5s-pill.is-pulsing {
  transform: scale(0.92);
  border-color: var(--theme-accent-light, #fde68a) !important;
}

/* 2. Ultra-Thin 2px Bottom Progress Ribbon */
.ivd-slim-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom, 0px);
  height: 2px;
  z-index: 25;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: opacity 220ms ease;
}
.ivd-slim-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--theme-accent, #e5c158) 0%, var(--theme-accent-light, #fde68a) 100%);
  box-shadow: 0 0 8px var(--theme-glow, rgba(229, 193, 88, 0.45));
  will-change: transform;
}

/* Auto-fade Minimal Cinema HUD whenever Choice / QTE / Ending Modal is active */
.ivd-stage-root.has-choices .ivd-ep-badge,
.ivd-stage-root.has-interaction .ivd-ep-badge,
.ivd-stage-root.is-ending .ivd-ep-badge,
.ivd-stage-root.is-bad-end .ivd-ep-badge,
.ivd-player:has(> .ivd-qte-root.is-interactive) .ivd-ep-badge,
.ivd-stage-root.has-choices .ivd-rewind5s-pill,
.ivd-stage-root.has-interaction .ivd-rewind5s-pill,
.ivd-stage-root.is-ending .ivd-rewind5s-pill,
.ivd-stage-root.is-bad-end .ivd-rewind5s-pill,
.ivd-player:has(> .ivd-qte-root.is-interactive) .ivd-rewind5s-pill,
.ivd-stage-root.has-choices .ivd-slim-progress,
.ivd-stage-root.has-interaction .ivd-slim-progress,
.ivd-stage-root.is-ending .ivd-slim-progress,
.ivd-stage-root.is-bad-end .ivd-slim-progress,
.ivd-player:has(> .ivd-qte-root.is-interactive) .ivd-slim-progress {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 3. Cinematic Post-Choice Inner Monologue Whisper Bar (Lower-Middle, Below Subtitles) */
.ivd-reaction-whisper {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: calc(10.5% + env(safe-area-inset-bottom, 0px));
  z-index: 23;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.97);
  transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1), transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ivd-reaction-whisper.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.ivd-reaction-whisper.is-leaving {
  opacity: 0;
  transform: translate3d(0, -6px, 0) scale(0.98);
}
.ivd-reaction-whisper-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--theme-surface, rgba(16, 18, 26, 0.86)) 0%, rgba(8, 10, 16, 0.90) 100%);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid var(--theme-border, rgba(229, 193, 88, 0.46));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.56),
    0 0 18px var(--theme-glow, rgba(229, 193, 88, 0.22)),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #faf7f2;
  font-family: var(--ui-font-sans, "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.38;
  text-align: center;
  text-wrap: pretty;
}
.ivd-reaction-whisper-spark {
  color: var(--theme-accent-light, #fde68a);
  font-style: normal;
  font-size: 12px;
  flex-shrink: 0;
}
.ivd-reaction-whisper[data-tone="revenge"] .ivd-reaction-whisper-card {
  border-color: color-mix(in srgb, var(--theme-accent, #e5c158) 65%, #fb7185);
}
.ivd-reaction-whisper[data-tone="dignity"] .ivd-reaction-whisper-card {
  border-color: var(--theme-accent-light, #fde68a);
}
.ivd-reaction-whisper[data-tone="affinity"] .ivd-reaction-whisper-card {
  border-color: color-mix(in srgb, var(--theme-accent-light, #fde68a) 55%, #34d399);
}
.ivd-stage-root.has-choices .ivd-reaction-whisper,
.ivd-stage-root.is-ending .ivd-reaction-whisper,
.ivd-stage-root.is-bad-end .ivd-reaction-whisper,
.ivd-player:has(> .ivd-qte-root.is-interactive) .ivd-reaction-whisper {
  opacity: 0 !important;
}

/* 4. Act I-V Intermission Milestone Recap Banner (Top Safe-Zone, Non-Blocking) */
.ivd-act-milestone {
  position: absolute;
  top: calc(50px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  z-index: 29;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, -14px, 0) scale(0.95);
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ivd-act-milestone.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.ivd-act-milestone.is-leaving {
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.97);
}
.ivd-act-milestone-pill {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-surface, rgba(16, 18, 26, 0.92)) 0%, var(--theme-surface-strong, rgba(10, 12, 18, 0.96)) 100%);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid var(--theme-accent-light, #fde68a);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.66),
    0 0 24px var(--theme-glow, rgba(229, 193, 88, 0.32)),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: var(--theme-accent-light, #fde68a);
  font-family: var(--ui-font-display, "Poppins", Bahnschrift, "DIN Alternate", "Segoe UI", sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ivd-act-milestone-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 248, 224, 0.22) 50%, transparent 100%);
  animation: ivd-vip-sheen 2.4s ease-in-out infinite;
  pointer-events: none;
}

@media (max-width: 900px) {
  .ivd-act-milestone {
    top: calc(94px + env(safe-area-inset-top, 0px));
  }
}

/* 5. Ending Card Compact 5-Block Single-Screen Fit (Zero-Scroll on 667px iPhone) & Monochrome SVG Icons */
.ivd-ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ivd-ico.is-filled {
  fill: currentColor;
  stroke: none;
}
.ivd-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ivd-ending-card {
  padding: 10px 12px;
  gap: 6px;
  border-radius: 15px;
  overflow-y: auto;
  max-height: calc(100% - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 8px);
}
.ivd-ending-card .ivd-tier-crest {
  padding: 2px 9px;
}
.ivd-ending-card .ivd-end-title {
  font-size: clamp(15px, 4.4cqw, 18px);
  line-height: 1.18;
  -webkit-line-clamp: 1;
}
.ivd-ending-card .ivd-ending-epilogue {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ivd-ending-card .ivd-persona-strip {
  padding: 6px 9px;
  gap: 6px;
}
.ivd-ending-card .ivd-end-stats {
  gap: 6px;
}
.ivd-ending-card .ivd-end-stat-box {
  padding: 5px 4px;
}
.ivd-ending-card .ivd-end-stat-box b {
  margin-top: 1px;
  font-size: clamp(14px, 4.2cqw, 16px);
}
.ivd-ending-card .ivd-sink-arena {
  padding: 6px 8px;
}
.ivd-ending-card .ivd-sink-caption {
  margin-bottom: 4px;
}
.ivd-ending-card .ivd-sink-btn {
  padding: 6px 8px;
  min-height: 34px;
}
.ivd-ending-card .ivd-end-actions {
  gap: 7px;
}
.ivd-ending-card .ivd-end-sec-btn {
  min-height: 40px;
}
.ivd-ending-persona-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-tint, rgba(229, 193, 88, 0.24)) 0%, rgba(16, 18, 26, 0.88) 100%);
  border: 1px solid var(--theme-accent-light, #fde68a);
  box-shadow: 0 4px 16px var(--theme-glow, rgba(229, 193, 88, 0.24));
  color: var(--theme-accent-light, #fde68a);
  font-family: var(--ui-font-display, "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ivd-ending-memories {
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(8, 10, 16, 0.64);
  border: 1px solid var(--theme-border, rgba(229, 193, 88, 0.34));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ivd-ending-memories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--ui-font-display, "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--theme-accent-light, #fde68a);
}
.ivd-ending-memories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ivd-ending-memory-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border-left: 2.5px solid var(--theme-accent, #e5c158);
}
.ivd-memory-ep {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--theme-tint, rgba(229, 193, 88, 0.18));
  color: var(--theme-accent-light, #fde68a);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}
.ivd-memory-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ivd-memory-choice {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ivd-memory-whisper {
  font-size: 12px;
  font-style: italic;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-height: 700px) {
  .ivd-cinema-modal-wrap {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .ivd-ending-card {
    padding: 9px 10px;
    gap: 5px;
  }
  .ivd-ending-card .ivd-end-sec-btn {
    min-height: 38px;
  }
}
@container (max-height: 600px) {
  .ivd-ending-card {
    padding: 8px 10px;
    gap: 4px;
  }
  .ivd-ending-card .ivd-memory-whisper {
    display: none;
  }
}

@container (max-width: 300px) {
  .ivd-ep-badge {
    height: 24px;
    padding: 0 8px;
    font-size: 12px;
  }
  .ivd-rewind5s-pill {
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
  .ivd-act-milestone-pill {
    font-size: 12px;
    padding: 6px 12px;
  }
  .ivd-reaction-whisper-card {
    font-size: 12px;
    padding: 6px 12px;
  }
  .ivd-memory-whisper {
    display: none;
  }
}

/* ==========================================================================
 * Accessibility: Focus-Visible Keyboard Rings & Reduced Motion (Runtime HUD)
 * ========================================================================== */
:is(.ivd-qte-root, .ivd-choice-deck, .ivd-choice-scrim, .ivd-ending-card, .ivd-be-card) :is(
  button,
  a,
  input,
  [role="button"],
  [tabindex]:not([tabindex="-1"]),
  .ivd-choice-card,
  .ivd-ar-hotspot,
  .ivd-qte-quick-pill,
  .ivd-charge-core,
  .ivd-forensic-pin,
  .ivd-combo-node,
  .ivd-drag-prop-card,
  .ivd-clash-btn,
  .ivd-verdict-seal-zone,
  .ivd-verdict-signet-token,
  .ivd-verdict-approve-btn,
  .ivd-verdict-veto-btn,
  .ivd-call-btn,
  .ivd-objection-chip,
  .ivd-keypad-key,
  .ivd-contract-red-box,
  .ivd-gold-seal-knob,
  .ivd-polaroid-clue,
  .ivd-acupoint-pin,
  .ivd-defib-paddles-btn,
  .ivd-cctv-slider,
  .ivd-cctv-lock-btn,
  .ivd-auction-gavel-btn,
  .ivd-locket-medallion,
  .ivd-centurion-card,
  .ivd-blackcard-swipe-btn,
  .ivd-gift-btn,
  .ivd-gift-close,
  .ivd-rewind-cta,
  .ivd-sink-btn,
  .ivd-end-sec-btn,
  .ivd-echo-play-btn,
  .ivd-tarot-open-btn,
  .ivd-tarot-dl-btn,
  .ivd-tarot-close-btn
):focus-visible {
  outline: 2px solid var(--theme-accent-light, #fde68a);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(10, 12, 18, 0.72);
}

.ivd-rewind5s-pill:focus-visible {
  outline: 2px solid var(--theme-accent-light, #fde68a);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  :is(.ivd-qte-root, .ivd-choice-deck, .ivd-choice-scrim, .ivd-ending-card, .ivd-be-card),
  :is(.ivd-qte-root, .ivd-choice-deck, .ivd-choice-scrim, .ivd-ending-card, .ivd-be-card) *,
  :is(.ivd-qte-root, .ivd-choice-deck, .ivd-choice-scrim, .ivd-ending-card, .ivd-be-card) *::before,
  :is(.ivd-qte-root, .ivd-choice-deck, .ivd-choice-scrim, .ivd-ending-card, .ivd-be-card) *::after,
  .ivd-act-milestone,
  .ivd-act-milestone-pill::after,
  .ivd-reaction-whisper {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-play-state: paused !important;
    transition-duration: 0.01ms !important;
  }
}
