/* ── CAMPAIGN SELECT ── */
#campaign-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, #0a0a2a 0%, #000 100%);
  overflow: hidden;
}

.campaign-card {
  width: 220px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
  position: relative;
}
.campaign-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}
.campaign-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.campaign-card.locked {
  opacity: 0.4; cursor: not-allowed;
}
.campaign-preview {
  width: 100%; height: 140px;
  position: relative; overflow: hidden;
}
.campaign-preview canvas {
  width: 100%; height: 100%; display: block;
}
.campaign-info {
  padding: 1rem;
}
.campaign-name {
  font-family: 'Orbitron', sans-serif;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .15em;
  margin-bottom: .2rem;
}
.campaign-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: .65rem; opacity: .6;
  margin-bottom: .75rem;
}
.campaign-desc {
  font-size: .72rem; color: rgba(255,255,255,0.6);
  line-height: 1.5; margin-bottom: .75rem;
}
.campaign-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em;
}
.badge-18 {
  background: rgba(255,0,0,0.2);
  border: 1px solid #ff0000;
  color: #ff0000;
}
.badge-free {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.4);
  color: #00ff88;
}

/* ── CAMPAIGN THEMES ── */

/* Underground theme */
body.theme-underground {
  --primary: #ff8c00;
  --secondary: #cc4400;
  --accent: #ffd700;
  --bg-deep: #0d0800;
  --bg-dark: #1a0e00;
  --glow: 0 0 25px rgba(255,140,0,0.35);
  --glow-sm: 0 0 10px rgba(255,140,0,0.25);
  --border: rgba(255,140,0,0.15);
  --border-bright: rgba(255,140,0,0.5);
}

/* Aquatic theme */
body.theme-aquatic {
  --primary: #00ccff;
  --secondary: #0066cc;
  --accent: #00ffcc;
  --bg-deep: #000d1a;
  --bg-dark: #001833;
  --glow: 0 0 25px rgba(0,204,255,0.35);
  --glow-sm: 0 0 10px rgba(0,204,255,0.25);
  --border: rgba(0,204,255,0.15);
  --border-bright: rgba(0,204,255,0.5);
}

/* Horror theme — nightmare fuel */
body.theme-horror {
  --primary: #dd0000;
  --secondary: #990000;
  --accent: #ff2200;
  --bg-deep: #080000;
  --bg-dark: #120000;
  --bg-panel: rgba(20,0,0,0.95);
  --bg-card: rgba(30,0,0,0.9);
  --glow: 0 0 30px rgba(220,0,0,0.5);
  --glow-sm: 0 0 15px rgba(200,0,0,0.4);
  --border: rgba(180,0,0,0.3);
  --border-bright: rgba(220,0,0,0.6);
  --text: #ffdddd;
  --text-dim: #aa5555;
}

/* Horror scanlines — more intense, blood-tinted */
body.theme-horror .scanlines {
  background: repeating-linear-gradient(
    0deg, transparent, transparent 1px,
    rgba(120,0,0,0.08) 1px, rgba(120,0,0,0.08) 2px
  );
  opacity: 1;
}

/* Horror — flicker animation on buttons */
body.theme-horror .btn:hover {
  animation: horrorFlicker 0.15s infinite;
}
@keyframes horrorFlicker {
  0%,100%{opacity:1;} 50%{opacity:.85;}
}

/* Horror — vignette overlay */
body.theme-horror::after {
  content: '';
  position: fixed; inset: 0; z-index: 499;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(80,0,0,0.4) 100%);
}

/* Horror HUD — blood theme */
body.theme-horror #hud {
  background: rgba(15,0,0,0.98);
  border-bottom-color: rgba(180,0,0,0.4);
}
body.theme-horror #hud::after {
  background: linear-gradient(90deg, transparent, #cc0000, transparent);
}

/* Horror world map — darker, more oppressive */
body.theme-horror #world-canvas {
  filter: saturate(0.7) brightness(0.85);
}

/* Horror panels */
body.theme-horror .panel,
body.theme-horror #side-panel {
  background: rgba(18,0,0,0.97);
  border-color: rgba(150,0,0,0.3);
}

/* Horror buttons */
body.theme-horror .btn {
  border-color: rgba(150,0,0,0.4);
  background: rgba(40,0,0,0.6);
}
body.theme-horror .btn::before {
  background: var(--primary) !important;
}

/* HUD campaign indicator */
.hud-campaign {
  font-family: 'Share Tech Mono', monospace;
  font-size: .6rem;
  padding: .15rem .4rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--primary);
  letter-spacing: .08em;
  flex-shrink: 0;
}