/* Screensaver - Bouncing logo to prevent burn-in */

.screensaver {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #010a06;
  z-index: 10;
  display: none;
  cursor: none;
}

.screensaver.active {
  display: block;
}

.screensaver-logo {
  position: absolute;
  font-family: "VT323", monospace;
  font-size: 4rem;
  color: #14fdce;
  text-shadow:
    0 0 10px #14fdce,
    0 0 20px #0c7b46,
    0 0 30px #0c7b46,
    0 0 40px #064d2a;
  white-space: nowrap;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Subtle pulse animation on the logo */
@keyframes screensaver-pulse {
  0%, 100% {
    opacity: 0.9;
    text-shadow:
      0 0 10px #14fdce,
      0 0 20px #0c7b46,
      0 0 30px #0c7b46,
      0 0 40px #064d2a;
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 15px #14fdce,
      0 0 30px #0c7b46,
      0 0 45px #0c7b46,
      0 0 60px #064d2a;
  }
}

.screensaver-logo {
  animation: screensaver-pulse 2s ease-in-out infinite;
}

/* Scanline effect on screensaver too */
.screensaver::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0.4)
  );
  background-size: 100% 0.3rem;
  pointer-events: none;
}
