/* Подключён в index.html через <link rel="stylesheet" href="styles.css"> */

body {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
  color: white;
  animation: page-load 1.2s ease-out;
}

@keyframes page-load {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Глич-эффект для заголовка */
.glitch {
  position: relative;
  color: #0ff;
  text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.glitch::before {
  top: -2px;
  color: #f0f;
  animation: glitchTop 2s infinite linear alternate-reverse;
}

.glitch::after {
  top: 2px;
  color: #0ff;
  animation: glitchBottom 2s infinite linear alternate-reverse;
}

@keyframes glitchTop {
  0% { clip: rect(0, 9999px, 0, 0); }
  50% { clip: rect(0, 9999px, 8px, 0); }
  100% { clip: rect(0, 9999px, 0, 0); }
}

@keyframes glitchBottom {
  0% { clip: rect(0, 9999px, 0, 0); }
  50% { clip: rect(5px, 9999px, 15px, 0); }
  100% { clip: rect(0, 9999px, 0, 0); }
}

/* Анимация подсветки блока с промокодом */
.promo-glow {
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  from { background-color: #1e3a8a; }
  to   { background-color: #3b82f6; }
}

/* Неоновые кнопки */
.neon-btn {
  transition: all 0.2s ease-in-out;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
}

.neon-btn:hover {
  box-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff;
  transform: scale(1.03);
}

/* Подсветка при выделении текста */
::selection {
  background: #00ffff;
  color: #000;
}

/* Адаптация под тёмный режим и мобильные устройства */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  .neon-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .promo-glow {
    font-size: 1rem;
  }
}

/* Стиль вертикального видео */

/* Контейнер с сохранением вертикального 9:16 видео */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 aspect ratio */
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Неоновая подсветка блока с видео */
.video-glow {
  animation: videoPulse 3s infinite alternate;
  box-shadow: 0 0 10px #ff00ff55, 0 0 20px #ff00ff33, 0 0 30px #ff00ff22;
}

@keyframes videoPulse {
  from {
    box-shadow: 0 0 12px #ff00ff88, 0 0 24px #ff00ff55, 0 0 36px #ff00ff22;
  }
  to {
    box-shadow: 0 0 24px #ff00ffcc, 0 0 36px #ff00ffaa, 0 0 48px #ff00ff88;
  }
}

body.page-404 {
  background: #000;
  color: #fff;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.header .logo {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #eaeaea;
}

.footer {
  margin-top: auto;
  padding: 2rem 0;
  opacity: 0.5;
}

.footer-text {
  font-size: 0.9rem;
}

