* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: black;
  overflow: hidden;
  color: white;
}

/* Мышиный след */
canvas#trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

canvas#ripples {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

canvas#flames {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}



/* Основной контейнер */
.container {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Контент по центру */
.content {
  text-align: center;
  max-width: 100%;
}

.logo {
  position: absolute;
  top: 1rem;
  left: 2rem;
  color: gold;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 8px gold;
}

.headline {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: gold;
  text-shadow: 0 0 10px red;
}

.description {
  font-size: 1.1rem;
  color: #eee;
  margin-bottom: 2rem;
}

/* Баннер */
.banner img {
  width: 90vw;
  max-width: 600px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  margin-bottom: 2rem;
}

/* Кнопки */
.buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 2.5rem;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.login {
  background: linear-gradient(45deg, #F2E85A, #F25A5A);
  color: black;
}

.register {
  background: linear-gradient(45deg, #F25A5A, #F2E85A);
  color: white;
}

.btn:hover {
  animation: flash 0.5s ease-in-out infinite, shake 0.4s infinite;
}

@keyframes flash {
  0% { box-shadow: 0 0 5px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 0 25px rgba(255,255,255,1); }
  100% { box-shadow: 0 0 5px rgba(255,255,255,0.2); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* Адаптив */
@media (max-width: 768px) {
  .headline {
    font-size: 1.7rem;
    padding: 0 1rem;
    line-height: 1.3;
  }

  .description {
    font-size: 0.95rem;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }

  .logo {
    font-size: 1.1rem;
    left: 1rem;
    top: 1rem;
  }

  .banner img {
    max-width: 90vw;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .buttons {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
  }

  .content {
    padding-top: 4rem;
  }

  .container {
    padding: 1rem 0.5rem;
    justify-content: flex-start;
    overflow-y: auto;
  }
}

/* === Анимированный градиентный фон === */
body {
  height: 100%;
  margin: 0;
  background: linear-gradient(105deg, #EB12DC, #EB122F, #12D1EB, #44EB12, #E4CF1A, #44EB12, #12D1EB, #EB122F, #EB12DC);
  background-size: 600% 600%;
  animation: casinoGradient 10s ease infinite;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  overflow: hidden;
  position: relative;
}


/* === Шумовая текстура поверх === */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/logo_1x.svg");
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

/* === Переливающаяся анимация градиента === */
@keyframes casinoGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Неоновые круги === */
.glow-ring {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 12s infinite ease-in-out;
}

.ring1 {
  width: 300px;
  height: 300px;
  top: 15%;
  left: 20%;
}

.ring2 {
  width: 250px;
  height: 250px;
  bottom: 10%;
  right: 10%;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

