@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body, html {
  margin: 0;
  padding: 0;
  background: black;
  color: #ff0000;
  font-family: 'Share Tech Mono', monospace;
  height: 100%;
  overflow: hidden;
}

.glitch-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 0, 0, 0.3),
    rgba(0, 0, 0, 0.4) 2px,
    transparent 4px,
    transparent 6px
  );
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.1s ease;
}

.glitch-overlay.active {
  opacity: 1;
  animation: flashGlitch 0.15s steps(3, start) infinite;
}

@keyframes flashGlitch {
  0%, 100% { opacity: 1; transform: skewX(0); }
  30% { opacity: 0.6; transform: skewX(8deg); }
  60% { opacity: 0.2; transform: skewX(-6deg); }
}

.warning-text {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.2em;
  color: #ffcccc;
  text-align: center;
  white-space: pre-line;
  z-index: 10000;
  opacity: 0;
  animation: fadeInText 2s ease 4.7s forwards;
  text-shadow: 0 0 4px crimson, 0 0 10px red;
}

@keyframes fadeInText {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(1.05); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.blackout {
  background-color: black !important;
  background-image: none !important;
  transition: background-color 1s ease;
}

#return-link {
  display: none;
  position: fixed;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  color: crimson;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1em;
  text-decoration: none;
  z-index: 10001;
  animation: fadeInReturn 2s ease forwards;
}

@keyframes fadeInReturn {
  from { opacity: 0; }
  to { opacity: 1; }
}
