/* ── Layout ───────────────────────────────────────────────────────────────── */
#app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.game-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.game-screen.hidden { display: none !important; }

/* ── Canvas host ─────────────────────────────────────────────────────────── */
#game-wrap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
#canvas-root {
  flex: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;     /* self-contained stacking context — keeps bg z-index local */
  /* Cyber-themed gradient fallback shown if the MP4 fails or hasn't loaded yet.
     Layered radial + linear gives depth without needing video decode. */
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,60,0,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 0%,  rgba(0,148,224,0.12) 0%, transparent 70%),
    linear-gradient(180deg, #04081a 0%, #0a0820 45%, #180a2a 75%, #220a08 100%);
}

/* ── Shared screen circuit-grid background ────────────────────────────────── */
.cyber-grid {
  background-image:
    linear-gradient(rgba(0,148,224,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,148,224,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ── Tactical corner brackets ────────────────────────────────────────────── */
.screen-brackets::before,
.screen-brackets::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--cyber-bright);
  border-style: solid;
  opacity: 0;
  animation: bracketPulse 3s ease-in-out infinite;
  pointer-events: none;
}
.screen-brackets::before { top: 16px; left: 16px; border-width: 2px 0 0 2px; }
.screen-brackets::after  { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; animation-delay: 1s; }

/* ── TITLE SCREEN ────────────────────────────────────────────────────────── */
#screen-title {
  background:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px),
    radial-gradient(ellipse 120% 70% at 50% 115%, rgba(0,40,90,0.80) 0%, var(--void) 60%),
    var(--abyss);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
  gap: 0;
}

#screen-title::before,
#screen-title::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--cyber-bright);
  border-style: solid;
  animation: bracketPulse 3.5s ease-in-out infinite both;
  pointer-events: none;
}
#screen-title::before { top: 16px; left: 16px; border-width: 2px 0 0 2px; animation-delay: 0.25s; }
#screen-title::after  { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; animation-delay: 1.75s; }

/* Venue badge */
.venue-badge {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(0, 148, 224, 0.65);
  border: 1px solid rgba(0, 148, 224, 0.22);
  padding: 5px 16px;
  margin-bottom: 28px;
  text-transform: uppercase;
  position: relative;
}

.title-owl {
  width: 140px; height: 140px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 28px rgba(0,148,224,0.6)) drop-shadow(0 0 8px rgba(77,200,255,0.35));
  animation: owlFloat 3s ease-in-out infinite;
  margin-bottom: 20px;
}

/* Game title — only element keeping Cinzel Decorative */
.title-logo {
  font-family: var(--font-title);
  font-size: clamp(38px, 7vw, 78px);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #b8e8ff 35%, #4dc8ff 65%, #0094e0 100%);
  background-size: 220%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite, titlePulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(0,148,224,0.45));
  margin-bottom: 10px;
}

.title-sub {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.8vw, 18px);
  letter-spacing: 5px;
  color: rgba(77, 200, 255, 0.40);
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* Mode cards */
.mode-cards {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.mode-card {
  width: 200px;
  padding: 26px 20px 22px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.18s;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mode-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,148,224,0.08), transparent 70%);
  opacity: 0; transition: opacity 0.25s;
}
.mode-card:hover::before { opacity: 1; }
.mode-card:hover {
  border-color: rgba(0, 148, 224, 0.75);
  box-shadow: var(--glow-cyber), inset 0 0 1px rgba(0,148,224,0.4);
  transform: translateY(-3px);
}
.mode-card:active { transform: translateY(0) scale(0.97); }

.mode-card.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

.card-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(0,148,224,0.55));
}
.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--cyber-bright);
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.card-desc {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: rgba(220, 235, 250, 0.85);
  line-height: 1.7;
}
.card-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 2px 7px;
  background: rgba(0,148,224,0.10);
  border: 1px solid rgba(0,148,224,0.28);
  color: var(--cyber);
  border-radius: 2px;
}

/* Cyber divider */
.ember-divider {
  width: 180px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyber), transparent);
  opacity: 0.35;
  margin-bottom: 28px;
}

/* ── DIFFICULTY SCREEN ───────────────────────────────────────────────────── */
#screen-diff {
  background:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0,25,70,0.85) 0%, var(--void) 65%),
    var(--abyss);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
  gap: 20px;
}
#screen-diff::before,
#screen-diff::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--cyber-bright);
  border-style: solid;
  animation: bracketPulse 3.5s ease-in-out infinite both;
  pointer-events: none;
}
#screen-diff::before { top: 16px; left: 16px; border-width: 2px 0 0 2px; animation-delay: 0.25s; }
#screen-diff::after  { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; animation-delay: 1.75s; }

.diff-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  color: var(--cyber-bright);
  letter-spacing: 4px;
  text-shadow: var(--glow-cyber);
  margin-bottom: 8px;
}

.diff-cards {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}

.diff-card {
  width: 170px; padding: 22px 16px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  transition: all 0.22s;
}
.diff-card:hover {
  border-color: var(--cyber);
  box-shadow: var(--glow-cyber);
  transform: translateY(-2px);
}
.diff-card[data-diff="easy"]:hover   { border-color: #44ff88; box-shadow: 0 0 20px rgba(68,255,136,0.35); }
.diff-card[data-diff="medium"]:hover { border-color: var(--cyber-bright); box-shadow: var(--glow-cyber); }
.diff-card[data-diff="hard"]:hover   { border-color: var(--ember); box-shadow: var(--glow-fire); }

.diff-icon  { font-size: 30px; display: block; margin-bottom: 10px; }
.diff-label {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: 2px;
  margin-bottom: 8px;
}
.diff-desc  {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11px; color: rgba(220,235,250,0.82); letter-spacing: 0.7px; line-height: 1.6;
}

/* Practice / Ranked tags on difficulty cards */
.diff-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 2px;
  text-transform: uppercase;
}
.diff-tag-practice {
  color: rgba(200,220,240,0.65);
  background: rgba(0,148,224,0.08);
  border: 1px solid rgba(0,148,224,0.22);
}
.diff-tag-ranked {
  color: #ffd700;
  background: rgba(255,180,0,0.12);
  border: 1px solid rgba(255,180,0,0.45);
  text-shadow: 0 0 6px rgba(255,180,0,0.55);
}

.btn-back {
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: 3px;
  color: rgba(200,220,240,0.35);
  padding: 8px 22px;
  border: 1px solid rgba(0,148,224,0.15);
  border-radius: 3px;
  transition: all 0.2s;
}
.btn-back:hover { color: rgba(200,220,240,0.80); border-color: rgba(0,148,224,0.4); }

/* ── HUD ─────────────────────────────────────────────────────────────────── */
#game-hud {
  position: absolute; top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(2, 8, 22, 0.96);
  border-bottom: 1px solid rgba(0, 148, 224, 0.20);
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
  z-index: 100; flex-shrink: 0;
}

.hud-player {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.hud-player-name {
  font-family: var(--font-display);
  font-size: 16px; letter-spacing: 3px;
  white-space: nowrap;
}
.hud-player.p1 .hud-player-name { color: var(--ember);       text-shadow: 0 0 10px rgba(255,50,0,0.6); }
.hud-player.p2 .hud-player-name { color: var(--cyber-bright); text-shadow: 0 0 10px rgba(77,200,255,0.6); }

#hud-p1-lives, #hud-p2-lives {
  display: flex; gap: 3px; font-size: 16px; line-height: 1;
}

.hud-score-label {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 2px;
  color: rgba(200,220,240,0.28);
}
.hud-score-val {
  font-family: var(--font-hud);
  font-size: 11px;
  color: var(--gold);
}

.hud-divider { width: 1px; height: 28px; background: rgba(0,148,224,0.18); flex-shrink: 0; }

.hud-center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px;
}
#hud-level {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 4px;
  color: var(--cyber-bright);
  opacity: 0.8;
}

/* HUD Feedback popup */
#hud-feedback {
  position: absolute;
  top: 70px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 4px;
  pointer-events: none; z-index: 120;
  text-shadow: 0 0 14px currentColor;
  transition: opacity 0.3s;
  white-space: nowrap;
}

/* ── COUNTDOWN ───────────────────────────────────────────────────────────── */
#cd-overlay {
  position: absolute; inset: 0;
  background: rgba(2, 8, 22, 0.90);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
#cd-overlay.hidden { display: none; }

#cd-number {
  font-family: var(--font-display);
  font-size: clamp(100px, 22vw, 180px);
  color: var(--cyber-bright);
  text-shadow: var(--glow-cyber);
  line-height: 1;
}
#cd-number.cd-pop { animation: cdPop 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

/* ── PAUSE OVERLAY ───────────────────────────────────────────────────────── */
#pause-overlay {
  position: absolute; inset: 0;
  background: rgba(2, 8, 22, 0.95);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; z-index: 300;
}
#pause-overlay.hidden { display: none; }

.pause-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  color: var(--cyber-bright);
  letter-spacing: 8px;
  text-shadow: var(--glow-cyber);
  margin-bottom: 10px;
}

/* ── RESULT SCREEN ───────────────────────────────────────────────────────── */
#screen-result {
  background:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px),
    radial-gradient(ellipse 100% 80% at 50% 85%, rgba(0,25,70,0.90) 0%, var(--void) 65%),
    var(--abyss);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
}
#screen-result::before,
#screen-result::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--cyber-bright);
  border-style: solid;
  animation: bracketPulse 3.5s ease-in-out infinite both;
  pointer-events: none;
}
#screen-result::before { top: 16px; left: 16px; border-width: 2px 0 0 2px; animation-delay: 0.25s; }
#screen-result::after  { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; animation-delay: 1.75s; }

.result-winner-img {
  width: 130px; height: 130px;
  image-rendering: pixelated;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 24px rgba(0,148,224,0.55));
  animation: owlFloat 2.5s ease-in-out infinite;
}
.result-winner-img.p2 { filter: hue-rotate(195deg) saturate(1.2) brightness(1.1); }

#result-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 88px);
  letter-spacing: 6px;
  margin-bottom: 6px;
  text-shadow: 0 0 30px currentColor;
  animation: titlePulse 2s ease-in-out infinite;
}

.result-scores {
  font-family: var(--font-hud);
  font-size: 8px; letter-spacing: 2px;
  color: rgba(200,220,240,0.48);
  line-height: 2.4;
  text-align: center;
  margin-bottom: 32px;
}

/* ── Shared button styles ────────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: 4px;
  padding: 13px 44px;
  color: var(--cyber-bright);
  border: 1px solid rgba(0,148,224,0.50);
  background: rgba(0,148,224,0.06);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.25s;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,148,224,0.12), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.btn-primary:hover { border-color: var(--cyber-bright); color: #fff; box-shadow: var(--glow-cyber); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: 3px;
  padding: 10px 34px;
  color: rgba(200,220,240,0.35);
  border: 1px solid rgba(0,148,224,0.15);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: all 0.22s;
}
.btn-secondary:hover { color: rgba(200,220,240,0.80); border-color: rgba(0,148,224,0.40); }

.btn-group { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ── Data particles (CSS, title only) ────────────────────────────────────── */
.ember-particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--cyber);
  box-shadow: 0 0 6px var(--cyber-bright);
  pointer-events: none;
  animation: rise linear infinite;
}

/* ══════════════════════════════════════════════════════════════════════════
   UNKNOWN SECURITY CONFERENCE — ENHANCED VISUAL SYSTEM
   ══════════════════════════════════════════════════════════════════════════ */

/* ── CRT scanline overlay (global, fixed, non-interactive) ───────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.055) 2px,
    rgba(0, 0, 0, 0.055) 4px
  );
  pointer-events: none;
  z-index: 8000;
}

/* ── Moving scan beam — one bright horizontal sweep per screen ───────────── */
.scan-beam {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,229,255,0.06) 20%,
    rgba(0,229,255,0.14) 50%,
    rgba(0,229,255,0.06) 80%,
    transparent 100%
  );
  animation: scanBeam 9s linear infinite;
  pointer-events: none;
  z-index: 6;
}

/* ── 4-corner tech brackets — full set ───────────────────────────────────── */
/* Screens already have TL (::before) and BR (::after) from CSS.
   These classes add the missing TR and BL corners via HTML elements.    */
.tc-tl, .tc-tr, .tc-bl, .tc-br {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--cyber-bright);
  border-style: solid;
  animation: bracketPulse 3.5s ease-in-out infinite both;
  pointer-events: none;
  z-index: 5;
}
.tc-tl { top: 16px; left: 16px;    border-width: 2px 0 0 2px; animation-delay: 0s;    }
.tc-tr { top: 16px; right: 16px;   border-width: 2px 2px 0 0; animation-delay: 0.5s;  }
.tc-bl { bottom: 16px; left: 16px;  border-width: 0 0 2px 2px; animation-delay: 1.0s;  }
.tc-br { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; animation-delay: 1.5s;  }

/* ── Glitch text — applies to .title-logo ────────────────────────────────── */
.glitch-text {
  animation:
    shimmer    5s    linear      infinite,
    titlePulse 2.8s  ease-in-out infinite,
    glitch     11s   step-end    infinite;
}

/* ── Enhanced venue badge ────────────────────────────────────────────────── */
.venue-badge {
  position: relative;
}
.venue-badge::before,
.venue-badge::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyber-bright);
  box-shadow: 0 0 8px var(--cyber-bright);
  animation: nodePulse 2s ease-in-out infinite;
}
.venue-badge::before { left: -14px; }
.venue-badge::after  { right: -14px; animation-delay: 1s; }

/* ── Enhanced divider with data-stream pulse ─────────────────────────────── */
.ember-divider {
  position: relative;
  overflow: visible;
}
.ember-divider::after {
  content: '';
  position: absolute;
  left: 50%; top: -1px;
  width: 8px; height: 3px;
  transform: translateX(-50%);
  background: var(--cyber-bright);
  box-shadow: 0 0 10px var(--cyber-bright), 0 0 20px var(--cyber);
  border-radius: 50%;
  animation: nodePulse 2.4s ease-in-out infinite;
}

/* ── Button system — enhanced with tech corner marks ─────────────────────── */
.btn-primary {
  position: relative;
}
.btn-primary::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 6px; height: 6px;
  border-right: 1px solid var(--cyber-bright);
  border-bottom: 1px solid var(--cyber-bright);
  opacity: 0.7;
  transition: opacity 0.25s, box-shadow 0.25s;
}
.btn-primary:hover {
  border-color: var(--cyber-bright);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(0,170,255,0.55), 0 0 8px rgba(0,229,255,0.35), inset 0 0 12px rgba(0,229,255,0.08);
  letter-spacing: 5px;
}
.btn-primary:hover::after { opacity: 1; box-shadow: 0 0 6px var(--cyber-bright); }

/* ── Danger button (red variant) ─────────────────────────────────────────── */
.btn-danger {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: 4px;
  padding: 13px 44px;
  color: var(--ember);
  border: 1px solid rgba(255,34,0,0.45);
  background: rgba(255,34,0,0.06);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.25s;
}
.btn-danger:hover {
  border-color: var(--flame);
  color: #ff8866;
  box-shadow: 0 0 22px rgba(255,50,0,0.50), 0 0 8px rgba(255,68,0,0.30);
}

/* ── Mode card — enhanced inner glow on hover ────────────────────────────── */
.mode-card:hover {
  border-color: var(--cyber-bright);
  box-shadow:
    0 0 22px rgba(0,170,255,0.40),
    0 0 8px rgba(0,229,255,0.25),
    inset 0 0 20px rgba(0,229,255,0.04);
}

/* ── Diff card — sharper hover states ───────────────────────────────────── */
.diff-card[data-diff="easy"]:hover   { border-color: #44ff88; box-shadow: 0 0 22px rgba(68,255,136,0.40); }
.diff-card[data-diff="medium"]:hover { border-color: var(--cyber-bright); box-shadow: 0 0 22px rgba(0,229,255,0.45); }
.diff-card[data-diff="hard"]:hover   { border-color: var(--ember); box-shadow: 0 0 22px rgba(255,34,0,0.50); }

/* ── HUD: score value bright glow ────────────────────────────────────────── */
#hud-score {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(240,192,64,0.55);
}

/* ── HUD: level indicator accent ─────────────────────────────────────────── */
#hud-level {
  color: var(--cyber-bright);
  text-shadow: 0 0 12px rgba(0,229,255,0.60);
}

/* ── HUD bar: brighter border ────────────────────────────────────────────── */
#game-hud {
  border-bottom: 1px solid rgba(0,229,255,0.18);
  box-shadow: 0 1px 12px rgba(0,170,255,0.12);
}

/* ── Shield indicator glow ───────────────────────────────────────────────── */
#hud-shield {
  border-color: rgba(0,229,255,0.35) !important;
  color: var(--cyber-bright) !important;
  text-shadow: 0 0 10px var(--cyber-bright);
}

/* ── Countdown: sharper number ───────────────────────────────────────────── */
#cd-number {
  text-shadow:
    0 0 40px rgba(0,229,255,0.90),
    0 0 80px rgba(0,170,255,0.50),
    0 0 4px #fff;
  letter-spacing: 8px;
}

/* ── Pause overlay: tech border ─────────────────────────────────────────── */
#pause-overlay {
  border: 1px solid rgba(0,229,255,0.10);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px),
    rgba(1, 7, 18, 0.97);
}
.pause-title {
  color: var(--cyber-bright);
  text-shadow:
    0 0 30px rgba(0,229,255,0.80),
    0 0 60px rgba(0,170,255,0.40);
  letter-spacing: 10px;
}

/* ── Result screen: bigger, bolder victory/defeat states ────────────────── */
#result-title {
  letter-spacing: 8px;
  text-shadow:
    0 0 40px currentColor,
    0 0 80px currentColor;
  animation: glitch 9s step-end infinite, titlePulse 2.2s ease-in-out infinite;
}

/* ── Result owl glow — adapts to winner color ────────────────────────────── */
#result-owl {
  filter: drop-shadow(0 0 30px rgba(0,229,255,0.60)) drop-shadow(0 0 8px rgba(0,229,255,0.30));
}

/* ── Orbitron utility class (for special labels) ─────────────────────────── */
.font-tech {
  font-family: var(--font-tech);
  letter-spacing: 2px;
}

/* ── Data node decorative dot ────────────────────────────────────────────── */
.data-node {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyber-bright);
  box-shadow: 0 0 8px var(--cyber-bright);
  animation: nodePulse 2s ease-in-out infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── SOC panel: more vivid energy fill ───────────────────────────────────── */
#soc-energy-fill,
#hud-energy-fill {
  background: linear-gradient(90deg, #0094e0, #00e5ff);
  box-shadow: 0 0 8px rgba(0,229,255,0.55);
}

/* ── Shield fill bar ─────────────────────────────────────────────────────── */
.shield-fill {
  background: linear-gradient(90deg, #00aaff, #00e5ff) !important;
  box-shadow: 0 0 6px rgba(0,229,255,0.50);
}
