/* ===== 6 cyber themes (picked deterministically from the student's name) ===== */

/* 1. Matrix - black/green + canvas rain */
body.theme-matrix {
  --bg: #000; --fg: #b8ffcf; --muted: #4f9a6a; --accent: #00ff6a; --accent2: #7dffb0;
  --panel: rgba(0, 18, 6, .85); --border: rgba(0, 255, 106, .35); --glow: 0 0 18px rgba(0, 255, 106, .22);
  font-family: var(--font-mono);
}

/* 2. Cyberpunk - purple/blue, neon pink/cyan grid */
body.theme-cyberpunk {
  --bg: #0d0221; --fg: #f3e8ff; --muted: #9a84c4; --accent: #ff2bd6; --accent2: #00f0ff;
  --panel: rgba(26, 6, 56, .82); --border: rgba(255, 43, 214, .45); --glow: 0 0 22px rgba(255, 43, 214, .35);
}
body.theme-cyberpunk #bg-fx {
  background:
    linear-gradient(transparent 0 60%, rgba(255, 43, 214, .08)),
    repeating-linear-gradient(90deg, rgba(0, 240, 255, .12) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(255, 43, 214, .12) 0 1px, transparent 1px 60px);
  transform: perspective(500px) rotateX(55deg) scale(2.2); transform-origin: 50% 100%; top: 40%;
  animation: gridMove 4s linear infinite;
}
@keyframes gridMove { to { background-position: 0 0, 0 60px, 0 60px; } }
body.theme-cyberpunk h1, body.theme-cyberpunk h2 { text-shadow: 0 0 10px var(--accent), 0 0 24px var(--accent2); }

/* 3. Sonar - deep ocean blue + radar (canvas) */
body.theme-sonar {
  --bg: #001a33; --fg: #d6f3ff; --muted: #6aa6c6; --accent: #00d5ff; --accent2: #6effd8;
  --panel: rgba(0, 30, 60, .82); --border: rgba(0, 213, 255, .38); --glow: 0 0 20px rgba(0, 213, 255, .25);
  background: radial-gradient(ellipse at 50% 120%, #003a66, #001a33 60%, #000d1a);
  background-attachment: fixed;
}

/* 4. Crimson - black/red ops room */
body.theme-crimson {
  --bg: #0a0000; --fg: #ffe1e1; --muted: #b06a6a; --accent: #ff2a3d; --accent2: #ff9a3d;
  --panel: rgba(30, 0, 0, .85); --border: rgba(255, 42, 61, .4); --glow: 0 0 20px rgba(255, 42, 61, .25);
}
body.theme-crimson #bg-fx {
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(120, 0, 0, .45));
  animation: crimsonPulse 4s ease-in-out infinite;
}
@keyframes crimsonPulse { 50% { opacity: .5; } }

/* 5. Amber - retro CRT with scanlines */
body.theme-amber {
  --bg: #120a00; --fg: #ffcc66; --muted: #a8772a; --accent: #ffb000; --accent2: #ffd98a;
  --panel: rgba(30, 18, 0, .86); --border: rgba(255, 176, 0, .4); --glow: 0 0 18px rgba(255, 176, 0, .28);
  font-family: var(--font-mono); text-shadow: 0 0 4px rgba(255, 176, 0, .55);
}
body.theme-amber #bg-fx {
  z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 4px);
  animation: crtFlicker 6s infinite;
}
@keyframes crtFlicker { 0%, 95%, 100% { opacity: 1; } 96% { opacity: .7; } 97% { opacity: 1; } 98% { opacity: .8; } }

/* 6. Lab - light grey-blue intelligence lab */
body.theme-lab {
  --bg: #eef2f6; --fg: #1d2a38; --muted: #6a7b8e; --accent: #1f6feb; --accent2: #0aa37f;
  --panel: rgba(255, 255, 255, .92); --border: rgba(31, 111, 235, .28); --glow: 0 4px 18px rgba(31, 60, 100, .12);
  --danger: #d6293e; --ok: #10915a; --warn: #b7791f;
}
body.theme-lab #bg-fx {
  background:
    repeating-linear-gradient(90deg, rgba(31, 111, 235, .06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(31, 111, 235, .06) 0 1px, transparent 1px 40px);
}
body.theme-lab .btn-primary { color: #fff; }
body.theme-lab .input { background: #fff; }
body.theme-lab .code-box, body.theme-lab .morse-tape { background: #f6f8fa; }
body.theme-lab .modal { background: #fff; }
