/* ================ ROOT & RESET ================ */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Segoe UI', sans-serif;
  line-height:1.5;
  color:#fff;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  overflow-x:hidden;
}

/* ================ HEADER ================ */
header {
  position:fixed; top:0; left:0; width:100%;
  background:rgba(0,0,0,0.7); padding:1rem 2rem;
  display:flex; align-items:center; justify-content:space-between;
  backdrop-filter:blur(5px);
}
header h1 { font-size:1.8rem; }
nav a {
  color:#fff; text-decoration:none; margin-left:1.5rem;
  transition:color .3s;
}
nav a:hover { color:#f0f; }

/* ================ HERO SECTION ================ */
.hero {
  height:100vh; display:flex; flex-direction:column;
  justify-content:center; align-items:center;
  text-align:center; padding:0 2rem;
  animation:fadeIn 2s ease-out;
}
.hero h2 { font-size:3rem; margin-bottom:1rem; }
.hero p { font-size:1.2rem; margin-bottom:2rem; max-width:600px; }
.btn {
  display:inline-block; padding:0.8rem 1.5rem;
  border:2px solid #f0f; color:#f0f; text-decoration:none;
  font-weight:bold; transition:background .3s, transform .3s;
}
.btn:hover {
  background:rgba(240,0,240,0.2);
  transform:scale(1.05);
}

/* ================ FOOTER ================ */
footer {
  text-align:center; padding:1rem 0;
  background:rgba(0,0,0,0.7); position:relative; top:100px;
}

/* ================ ANIMATIONS ================ */
@keyframes fadeIn {
  0% { opacity:0; transform:translateY(20px); }
  100% { opacity:1; transform:translateY(0); }
}
body {
  position: relative;
  background: #000010;
  overflow: hidden;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

/* Молния */
.lightning {
  position: absolute;
  top: 0; left: 50%;
  width: 4px;
  height: 100vh;
  background: linear-gradient(to bottom, white, transparent 80%);
  filter: drop-shadow(0 0 8px #99f);
  opacity: 0;
  animation: lightningFlash 5s infinite;
  transform-origin: top center;
  box-shadow: 0 0 10px 5px #aaf;
  z-index: 10;
}

@keyframes lightningFlash {
  0%, 20%, 25%, 30%, 40%, 100% {
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  22%, 27%, 32% {
    opacity: 1;
    transform: translateX(calc(-50vw + 50%)) rotate(5deg);
  }
  35% {
    opacity: 1;
    transform: translateX(calc(50vw - 50%)) rotate(-5deg);
  }
}
.rival-btn {
  background: linear-gradient(135deg, #222, #550000);
  border: 2px solid #ff0000;
  color: #fff;
  margin-left: 15px;
  text-shadow: 0 0 5px #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  transition: all 0.3s ease;
  animation: flicker 3s infinite;
}

.rival-btn:hover {
  background: linear-gradient(135deg, #ff0000, #222);
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 0 50px rgba(255, 255, 255, 0.4);
  text-shadow: 0 0 10px #fff;
  animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  20% { transform: translate(-2px, -1px) rotate(-1deg); }
  40% { transform: translate(2px, 1px) rotate(1deg); }
  60% { transform: translate(-1px, -2px) rotate(0deg); }
  80% { transform: translate(1px, 2px) rotate(1deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.8; }
  48% { opacity: 0.5; }
  50% { opacity: 1; }
  52% { opacity: 0.6; }
  54% { opacity: 1; }
}

