/* CRT Scanlines Overlay */
.crt-scanlines {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.32) 50%
  );
  background-size: 100% 4px;
}

/* Röhrenmonitor Vignette & Wölbung */
.crt-vignette {
  position: fixed;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.75);
}

.crt-off {
  display: none !important;
}

/* Phosphor Glow auf Text */
body {
  text-shadow: 0 0 var(--glow-radius) rgba(51, 255, 102, 0.35);
}

/* Blinkender Retro-Cursor Indikator rechts im CLI-Feld */
.cursor-indicator {
  display: inline-block;
  margin-left: 6px;
  background: var(--primary);
  box-shadow: 0 0 var(--glow-radius) var(--primary);
  animation: blink 1s step-end infinite;
}

.cursor-block {
  width: 10px;
  height: 1.15em;
}

.cursor-underline {
  width: 12px;
  height: 3px;
  align-self: flex-end;
  margin-bottom: 2px;
}

.cursor-bar {
  width: 3px;
  height: 1.15em;
}

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

/* Custom Range Slider im Terminal-Stil */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--dim);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 18px;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 var(--glow-radius) var(--primary);
}
