body {
  background-color: black;
  color: #00FF00;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 20px;
  white-space: pre;
  overflow: hidden;
  position: relative;

  /* CRT glow effect */
  text-shadow: 0 0 5px #00FF00, 0 0 10px #00FF00;

  /* Scanlines */
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  background-size: 100% 4px;

  /* Flicker */
  animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.98; }
}

/* Terminal container */
.terminal-box {
  border: 1px solid #00FF00;
  padding: 20px;
  margin: 10px auto;
  width: 80%;
  background-color: rgba(0, 0, 0, 0.85);
}

/* Blinking cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.cursor {
  display: inline-block;
  width: 10px;
  height: 1em;
  background-color: #00FF00;
  animation: blink 1s step-start infinite;
  vertical-align: bottom;
}

/* Vignette + Noise Overlay */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Vignette: dark curved edges */
body::before {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
  mix-blend-mode: multiply;
}

/* Static noise layer */
body::after {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAANJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=');
  opacity: 0.02;
  mix-blend-mode: screen;
  animation: noise 0.2s infinite;
}

@keyframes noise {
  0% { transform: translate(0,0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0,0); }
}


#access-denied-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  color: #FF0033;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  text-align: center;
  white-space: pre;
  animation: crtFlicker 0.2s infinite;
  padding: 20px;
}

.jolly-roger {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  text-shadow: 0 0 10px red;
  margin-bottom: 20px;
}

.denied-text {
  font-size: 36px;
  color: #FF0033;
  font-weight: bold;
  text-shadow: 0 0 20px red, 0 0 40px #FF0033;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
