@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #0f0f0f;
  font-family: 'Orbitron', monospace, 'Courier New', monospace;
  overflow: hidden;
  position: relative;
  color: #00ffea;
}

.noise {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.neon {
  font-size: 5rem;
  position: relative;
  color: #00ffea;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  user-select: none;

  /* Основное неоновое свечение */
  text-shadow:
    0 0 5px #00fff7,
    0 0 10px #00fff7,
    0 0 20px #00fff7,
    0 0 40px #00fff7,
    0 0 60px #00fff7,
    0 0 80px #00fff7;

  animation: neonPulse 2s infinite alternate;
  z-index: 1;
  margin: 0;
  padding: 0.5em 0;
}

/* Глитч-слои */
.neon::before,
.neon::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  clip-path: polygon(0 2%, 100% 2%, 100% 15%, 0 15%);
  animation: glitchShift 2s infinite linear;
}

.neon::before {
  left: 2px;
  text-shadow: -2px 0 red;
  animation-delay: -0.5s;
}

.neon::after {
  left: -2px;
  text-shadow: -2px 0 blue;
  animation-delay: -1s;
}

@keyframes neonPulse {
  from {
    text-shadow:
      0 0 5px #00fff7,
      0 0 10px #00fff7,
      0 0 20px #00fff7,
      0 0 40px #00fff7,
      0 0 60px #00fff7,
      0 0 80px #00fff7;
  }
  to {
    text-shadow:
      0 0 15px #00fff7,
      0 0 30px #00fff7,
      0 0 50px #00fff7,
      0 0 80px #00fff7,
      0 0 100px #00fff7,
      0 0 120px #00fff7;
  }
}

@keyframes glitchShift {
  0% {
    clip-path: polygon(0 2%, 100% 2%, 100% 15%, 0 15%);
    transform: translate(0);
  }
  20% {
    clip-path: polygon(0 15%, 100% 15%, 100% 30%, 0 30%);
    transform: translate(-2px, -2px);
  }
  40% {
    clip-path: polygon(0 30%, 100% 30%, 100% 45%, 0 45%);
    transform: translate(2px, 2px);
  }
  60% {
    clip-path: polygon(0 45%, 100% 45%, 100% 60%, 0 60%);
    transform: translate(-1px, 1px);
  }
  80% {
    clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
    transform: translate(1px, -1px);
  }
  100% {
    clip-path: polygon(0 75%, 100% 75%, 100% 90%, 0 90%);
    transform: translate(0);
  }
}

/* Кнопка в углу */
#cornerBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  background: transparent;
  border: 1px solid rgba(0, 255, 234, 0.4);
  color: rgba(0, 255, 234, 0.6);
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
  font-family: 'Orbitron', monospace, 'Courier New', monospace;
  user-select: none;
  box-shadow: none;
}

#cornerBtn:hover {
  background-color: rgba(0, 255, 234, 0.1);
  color: rgba(0, 255, 234, 0.9);
  border-color: rgba(0, 255, 234, 0.7);
  box-shadow: none;
  transform: none;
}

