/* ─── Design tokens ──────────────────────────────────────────────── */
:root {
  --cyan:    #00ff41;
  --magenta: #008f11;
  --red:     #ccff00;
  --green:   #00ff41;
  --dark:    #050a0f;

  --grid-line: rgba(0, 255, 65, 0.04);
  --border:    rgba(0, 255, 65, 0.14);
  --panel-bg:  rgba(4, 11, 16, 0.97);
  --text-dim:  rgba(0, 255, 65, 0.45);
  --text-mute: rgba(0, 255, 65, 0.28);
}

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

h1, h2, h3, h4, dt, dd { font-weight: normal; }
ul, ol { list-style: none; }
dl { display: block; }

/* ─── Base ───────────────────────────────────────────────────────── */
body {
  background: var(--dark);
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Background grid — CSS-only, no JS cost */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── Canvas ─────────────────────────────────────────────────────── */
#c {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
}

/* ─── Webcam feed ────────────────────────────────────────────────── */
#video {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 180px;
  height: 135px;
  border: 1px solid rgba(0, 255, 65, 0.25);
  border-radius: 3px;
  z-index: 10;
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 0.65;
  transition: opacity 0.4s, border-color 0.2s;
}

#video.hidden  { opacity: 0; pointer-events: none; }
#video.rec-on  { border-color: var(--red); }

/* ─── Status indicator dots ──────────────────────────────────────── */
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #333;
  margin-right: 5px;
  vertical-align: middle;
}

.dot.on  { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); animation: blink 1.2s ease-in-out infinite; }
.dot.red { background: var(--red);  box-shadow: 0 0 6px var(--red);  animation: blink 0.7s ease-in-out infinite; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ─── Loading screen ─────────────────────────────────────────────── */
#ls {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.7s ease;
}

#ls.hidden { opacity: 0; pointer-events: none; }

.lt {
  font-family: 'Rajdhani', sans-serif;
  font-size: 39px;
  font-weight: 600;
  letter-spacing: 10px;
  color: var(--cyan);
  text-shadow: 0 0 28px var(--cyan);
}

.lbw {
  width: 260px;
  height: 2px;
  background: rgba(0, 255, 65, 0.09);
  border-radius: 2px;
  overflow: hidden;
}

.lb {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--cyan);
}

.lm {
  font-size: 15px;
  color: rgba(0, 255, 65, 0.45);
  letter-spacing: 3px;
  text-transform: uppercase;
}
