/* ============================================
   CYMATIC SCAN - DOMINATOR SCOPE VIEW
   Four-Corner Parameter HUD
   ============================================ */

:root {
  --bg-primary: #020408;
  --text-primary: #d8e4f0;
  --text-secondary: rgba(140, 180, 220, 0.6);
  --accent-h: 195;
  --accent-s: 100%;
  --accent-l: 50%;
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-dim: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
  --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.1);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.3;
}

/* =============================================
   LOADING SCREEN
   ============================================= */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #020408;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s, visibility 1s;
}

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

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

.loading-ring-outer {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  border: 2px solid rgba(0, 200, 255, 0.08);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: relative;
  box-shadow: 0 0 30px var(--accent-glow);
}

.loading-ring-inner {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(0, 200, 255, 0.05);
  border-bottom-color: var(--accent);
  border-left-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.4s linear reverse infinite;
}

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

.loading-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0.5em;
  color: var(--accent);
  text-shadow: 0 0 50px var(--accent-dim), 0 0 100px var(--accent-glow);
}

.loading-subtitle {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 380px;
}

.loading-status {
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

/* =============================================
   SCOPE VIEW (FULLSCREEN)
   ============================================= */
.scope-view {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.scope-view video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  filter: brightness(0.65) contrast(1.2) saturate(0.6);
  z-index: 1;
}

.scope-view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 2;
}

/* =============================================
   IDLE CROSSHAIR (Subdued center mark)
   ============================================= */
.idle-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.5s;
}

.idle-crosshair.hidden {
  opacity: 0;
}

.cross-line {
  position: absolute;
  background: hsla(195, 100%, 50%, 0.4);
  box-shadow: 0 0 8px hsla(195, 100%, 50%, 0.2);
}

.cross-v {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.cross-h {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

/* =============================================
   CINEMATIC SCOPE RINGS (Massive Background HUD)
   ============================================= */
.cinematic-scope {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120vmin;
  /* Massive size covering most of the screen */
  height: 120vmin;
  z-index: 2;
  /* Behind the ID cards but above camera */
  pointer-events: none;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.cinematic-scope .scope-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cinematic-scope .ring {
  fill: none;
  stroke: var(--accent);
  transform-origin: 500px 500px;
  filter: url(#neon-glow);
}

.cinematic-scope .scope-ticks {
  stroke: var(--accent);
  stroke-width: 2;
  filter: url(#neon-glow);
  opacity: 0.5;
}

/* Outer Ring: Dashed, slow reverse rotation */
.ring-outer {
  stroke-width: 2;
  stroke-dasharray: 4 12;
  opacity: 0.4;
  animation: rotate-ccw 60s linear infinite;
}

/* Segmented Ring 1: Thick blocks, forward rotation */
.ring-segmented-1 {
  stroke-width: 18;
  stroke-dasharray: 80 40 20 40;
  opacity: 0.6;
  animation: rotate-cw 40s linear infinite;
}

/* Solid Gap Ring: Thin line with a large gap */
.ring-solid-gap {
  stroke-width: 3;
  stroke-dasharray: 2000 400;
  /* mostly solid, one big gap */
  opacity: 0.8;
  animation: rotate-ccw 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Data Ring: Very dense tiny dashes */
.ring-data {
  stroke-width: 10;
  stroke-dasharray: 2 6;
  opacity: 0.5;
  animation: rotate-cw 20s linear infinite;
}

/* Core Outline: Inner faint ring */
.ring-core {
  stroke-width: 1;
  stroke-dasharray: 10 10;
  opacity: 0.3;
  animation: rotate-ccw 90s linear infinite;
}

/* Keyframes */
@keyframes rotate-cw {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-ccw {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* Threat Level Overrides for Scope */
body.threat-latent .cinematic-scope .ring,
body.threat-latent .cinematic-scope .scope-ticks {
  stroke: hsl(20, 100%, 55%);
}

body.threat-enforce .cinematic-scope .ring,
body.threat-enforce .cinematic-scope .scope-ticks {
  stroke: hsl(0, 100%, 55%);
}

body.threat-enforce .ring-segmented-1 {
  animation-duration: 10s;
  /* Spins much faster during lethal mode */
}

body.threat-enforce .ring-data {
  animation-duration: 5s;
}

/* =============================================
   TARGET ID CARD (Cinematic Hologram)
   ============================================= */
.target-id-card {
  position: absolute;
  width: 320px;
  z-index: 20;
  /* Glow and structure */
  background: linear-gradient(135deg, rgba(0, 40, 60, 0.9) 0%, rgba(0, 15, 25, 0.8) 100%);
  border: 1px solid var(--accent);
  box-shadow:
    0 0 15px var(--accent-glow),
    inset 0 0 20px rgba(0, 0, 0, 0.8),
    0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: var(--accent);
  transition: opacity 0.3s, transform 0.1s linear;

  /* Initial hidden state */
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.target-id-card:not(.hidden) {
  opacity: 1;
  transform: scale(1);
  animation: hologramFlicker 4s infinite, openGlitch 0.4s ease-out forwards;
}

@keyframes openGlitch {
  0% {
    clip-path: inset(50% 0 50% 0);
    opacity: 0;
  }

  20% {
    clip-path: inset(20% 0 80% 0);
    opacity: 1;
  }

  40% {
    clip-path: inset(0 0 0 0);
    transform: translateX(-10px);
  }

  60% {
    transform: translateX(10px);
  }

  80% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hologramFlicker {

  0%,
  100% {
    opacity: 1;
  }

  98% {
    opacity: 1;
  }

  99% {
    opacity: 0.8;
  }
}

.id-card-header {
  display: flex;
  justify-content: space-between;
  background: var(--accent);
  color: #000;
  padding: 2px 8px;
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.id-card-body {
  position: relative;
  padding: 12px;
  min-height: 120px;
  overflow: hidden;
}

/* Background Seal */
.id-seal-bg {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  color: var(--accent);
  opacity: 0.15;
  pointer-events: none;
  animation: slowSpin 20s linear infinite;
}

.id-content {
  position: relative;
  z-index: 2;
}

.id-title {
  font-family: var(--font-display);
  font-size: 0.45rem;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px dotted var(--accent-dim);
  text-shadow: 0 0 8px var(--accent-glow);
}

.id-row {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.id-col {
  display: flex;
  flex-direction: column;
}

.id-label {
  font-family: var(--font-display);
  font-size: 0.4rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.id-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
}

.id-large {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

/* Decorative Waveform Baseline */
.id-waveform {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.id-waveform svg {
  height: 12px;
  flex-grow: 1;
  color: var(--accent-dim);
}

.wave-text {
  font-family: var(--font-display);
  font-size: 0.4rem;
  color: var(--text-secondary);
}

/* Threat Overrides for ID Card */
body.threat-latent .target-id-card {
  border-color: hsl(20, 100%, 55%);
  box-shadow: 0 0 15px hsla(20, 100%, 55%, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.5);
  color: hsl(20, 100%, 65%);
}

body.threat-latent .id-card-header {
  background: hsl(20, 100%, 55%);
}

body.threat-latent .id-seal-bg {
  color: hsl(20, 100%, 55%);
}

body.threat-latent .id-title {
  border-bottom-color: hsla(20, 100%, 55%, 0.4);
}

body.threat-enforce .target-id-card {
  border-color: hsl(0, 100%, 55%);
  box-shadow: 0 0 20px hsla(0, 100%, 55%, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.5);
  color: hsl(0, 100%, 70%);
}

body.threat-enforce .id-card-header {
  background: hsl(0, 100%, 55%);
}

body.threat-enforce .id-seal-bg {
  color: hsl(0, 100%, 55%);
}

body.threat-enforce .id-title {
  border-bottom-color: hsla(0, 100%, 55%, 0.4);
}

/* =============================================
   TERMINAL DATA STREAM
   ============================================= */
.terminal-stream {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 300px;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 32px;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 90%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 90%);
}

.terminal-header {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: rgba(0, 20, 30, 0.6);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  padding: 6px 12px;
  margin-bottom: 8px;
  text-shadow: 0 0 10px var(--accent-glow);
  box-shadow: 0 0 15px var(--accent-glow);
  opacity: 0.9;
}

.terminal-content {
  font-family: monospace;
  font-size: 0.45rem;
  color: var(--accent);
  opacity: 0.7;
  line-height: 1.4;
  word-break: break-all;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terminal-line {
  animation: typeLine 0.1s steps(2);
}

@keyframes typeLine {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Threat Overrides */
body.threat-latent .terminal-header,
body.threat-latent .terminal-content {
  color: hsl(20, 100%, 65%);
  border-color: hsl(20, 100%, 55%);
}

body.threat-enforce .terminal-header,
body.threat-enforce .terminal-content {
  color: hsl(0, 100%, 65%);
  border-color: hsl(0, 100%, 55%);
}

/* =============================================
   HUD ELEMENTS - Four Corner Layout
   ============================================= */
.hud {
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

/* ---- Top Left: System & Score ---- */
.hud-top-left {
  top: 24px;
  left: 32px;
}

.hud-system-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-dim);
  margin-bottom: 12px;
}

.hud-dim {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
}

/* ---- Top Right: Status ---- */
.hud-top-right {
  top: 24px;
  right: 32px;
  text-align: right;
}

.hud-live {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: #ff2244;
  text-shadow: 0 0 10px rgba(255, 34, 68, 0.5);
  margin-bottom: 12px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2244;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 4px #ff2244;
  }

  50% {
    opacity: 0.3;
    box-shadow: 0 0 16px #ff2244;
  }
}

/* ---- Bottom Left: Hue & AI ---- */
.hud-bottom-left {
  bottom: 60px;
  left: 32px;
}

/* ---- Bottom Right: Emotions ---- */
.hud-bottom-right {
  bottom: 60px;
  right: 32px;
  width: 220px;
}

/* =============================================
   PARAMETER DISPLAY (used in all corners)
   ============================================= */
.param-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.param-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.param-key {
  font-family: var(--font-display);
  font-size: 0.45rem;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  text-transform: uppercase;
  min-width: 60px;
}

.param-val {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-dim);
  transition: color 0.4s, text-shadow 0.4s;
}

.param-val[data-level="caution"] {
  color: hsl(50, 90%, 55%);
  text-shadow: 0 0 12px hsla(50, 90%, 55%, 0.4);
}

.param-val[data-level="latent"] {
  color: hsl(20, 100%, 55%);
  text-shadow: 0 0 15px hsla(20, 100%, 55%, 0.5);
}

.param-val[data-level="enforce"] {
  color: hsl(0, 100%, 58%);
  text-shadow: 0 0 20px hsla(0, 100%, 50%, 0.6);
  animation: enforcePulse 0.8s ease-in-out infinite alternate;
}

@keyframes enforcePulse {
  0% {
    text-shadow: 0 0 15px hsla(0, 100%, 50%, 0.4);
  }

  100% {
    text-shadow: 0 0 30px hsla(0, 100%, 50%, 0.8);
  }
}

.param-sub {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ---- AI Risk Color Coding ---- */
.param-val[data-risk="mild_stress"] {
  color: hsl(50, 85%, 55%);
  text-shadow: 0 0 12px hsla(50, 85%, 55%, 0.4);
}

.param-val[data-risk="moderate_risk"] {
  color: hsl(30, 90%, 55%);
  text-shadow: 0 0 12px hsla(30, 90%, 55%, 0.4);
}

.param-val[data-risk="high_risk"] {
  color: hsl(15, 95%, 55%);
  text-shadow: 0 0 15px hsla(15, 95%, 55%, 0.5);
}

.param-val[data-risk="critical"] {
  color: hsl(0, 100%, 58%);
  text-shadow: 0 0 20px hsla(0, 100%, 50%, 0.6);
  animation: enforcePulse 0.8s ease-in-out infinite alternate;
}

/* ---- Hue Indicator Dot ---- */
.hue-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-dim);
  transition: background 0.5s, box-shadow 0.5s;
  margin-left: 4px;
}

/* =============================================
   EMOTION BARS
   ============================================= */
.emotion-header {
  font-family: var(--font-display);
  font-size: 0.45rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
  margin-bottom: 8px;
  opacity: 0.8;
}

.emotion-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.emotion-row {
  display: grid;
  grid-template-columns: 14px 38px 1fr 28px;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
}

.emotion-icon {
  font-size: 0.55rem;
  text-align: center;
}

.emotion-label {
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  font-size: 0.6rem;
}

.emotion-bar-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.emotion-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s ease-out, background 0.3s;
  box-shadow: 0 0 6px var(--accent-glow);
}

.emotion-val {
  font-family: var(--font-display);
  font-size: 0.5rem;
  color: var(--text-secondary);
  text-align: right;
  letter-spacing: 0.05em;
}

/* =============================================
   BOTTOM CENTER ACTION TEXT
   ============================================= */
.hud-bottom-center {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

.action-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 24px;
  border: 1px solid var(--accent-dim);
  display: inline-block;
  backdrop-filter: blur(4px);
  transition: all 0.4s;
}

/* =============================================
   CORNER DECORATIONS
   ============================================= */
.corner-dec {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 8;
  pointer-events: none;
}

.corner-dec::before,
.corner-dec::after {
  content: '';
  position: absolute;
  background: var(--accent);
  opacity: 0.2;
}

.corner-tl {
  top: 16px;
  left: 16px;
}

.corner-tl::before {
  top: 0;
  left: 0;
  width: 30px;
  height: 1px;
}

.corner-tl::after {
  top: 0;
  left: 0;
  width: 1px;
  height: 30px;
}

.corner-tr {
  top: 16px;
  right: 16px;
}

.corner-tr::before {
  top: 0;
  right: 0;
  width: 30px;
  height: 1px;
}

.corner-tr::after {
  top: 0;
  right: 0;
  width: 1px;
  height: 30px;
}

.corner-bl {
  bottom: 16px;
  left: 16px;
}

.corner-bl::before {
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1px;
}

.corner-bl::after {
  bottom: 0;
  left: 0;
  width: 1px;
  height: 30px;
}

.corner-br {
  bottom: 16px;
  right: 16px;
}

.corner-br::before {
  bottom: 0;
  right: 0;
  width: 30px;
  height: 1px;
}

.corner-br::after {
  bottom: 0;
  right: 0;
  width: 1px;
  height: 30px;
}

/* =============================================
   VIGNETTE OVERLAY (No scanlines)
   ============================================= */
.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  transition: background 0.8s;
}

/* =============================================
   WARNING BANNER (TOP)
   ============================================= */
#warning-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  padding: 10px 0;
  color: #fff;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 30, 0.7), transparent);
  border-bottom: 1px solid rgba(255, 0, 30, 0.5);
  text-shadow: 0 0 15px rgba(255, 0, 30, 0.9);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  pointer-events: none;
}

#warning-banner.active {
  transform: translateY(0);
  opacity: 1;
  animation: bannerFlash 1s ease-in-out infinite;
}

@keyframes bannerFlash {

  0%,
  100% {
    background: linear-gradient(90deg, transparent, rgba(255, 0, 30, 0.5), transparent);
  }

  50% {
    background: linear-gradient(90deg, transparent, rgba(255, 0, 30, 0.85), transparent);
  }
}

/* =============================================
   THREAT LEVEL GLOBAL STATES
   ============================================= */
body.threat-caution .action-label {
  color: hsl(50, 90%, 55%);
  border-color: hsla(50, 90%, 55%, 0.4);
  text-shadow: 0 0 15px hsla(50, 90%, 55%, 0.6);
}

body.threat-caution .vignette-overlay {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(60, 40, 0, 0.5) 100%);
}

body.threat-latent .action-label {
  color: hsl(20, 100%, 55%);
  border-color: hsla(20, 100%, 55%, 0.5);
  text-shadow: 0 0 18px hsla(20, 100%, 55%, 0.7);
}

body.threat-latent .vignette-overlay {
  background: radial-gradient(ellipse at center, transparent 30%, rgba(80, 20, 0, 0.6) 100%);
}

body.threat-latent .corner-dec::before,
body.threat-latent .corner-dec::after {
  background: hsl(20, 100%, 55%);
  opacity: 0.4;
}

body.threat-enforce .action-label {
  color: hsl(0, 100%, 60%);
  border-color: hsla(0, 100%, 60%, 0.6);
  text-shadow: 0 0 25px hsla(0, 100%, 50%, 0.8);
  animation: enforceActionPulse 0.5s infinite alternate;
}

@keyframes enforceActionPulse {
  0% {
    transform: scale(1);
    border-color: hsla(0, 100%, 60%, 0.4);
  }

  100% {
    transform: scale(1.02);
    border-color: hsla(0, 100%, 60%, 0.8);
  }
}

body.threat-enforce .vignette-overlay {
  background: radial-gradient(ellipse at center, transparent 20%, rgba(120, 0, 0, 0.7) 100%);
  animation: enforceVignette 0.8s ease-in-out infinite alternate;
}

@keyframes enforceVignette {
  0% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

body.threat-enforce .scope-view video {
  filter: brightness(0.5) contrast(1.4) saturate(0.3) hue-rotate(-15deg);
}

body.threat-enforce .corner-dec::before,
body.threat-enforce .corner-dec::after {
  background: hsl(0, 100%, 55%);
  opacity: 0.6;
}