* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: black;
  overflow-x: hidden;
  overflow-y: auto;
  color: white;
  position: relative;
}
/* Мышиный след */
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: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 100px 20px 20px; /* отступ сверху — чтобы логотипу было место */
  text-align: center;
}

.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 120px;
  z-index: 10;
}
/* Контент по центру */
.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 (min-width: 769px) {
  .flex-layout {
    height: 100vh;
  }

  html, body {
    overflow-y: hidden;
  }

  .text-section {
    flex: 1 1 55%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .text-scroll {
    max-height: 100%;
    overflow-y: auto;
    padding-right: 1rem;
    line-height: 1.3;
    font-size: 0.95rem;
  }

  .text-scroll::-webkit-scrollbar {
    width: 6px;
  }

  .text-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
  }

  .text-section {
  color: black;
}

/* Не переопределяем заголовки */
.text-section h1,
.text-section h2 {
  color: inherit;           /* остаётся как задано раньше */
  text-shadow: inherit;
}

/* Параграфы и остальной текст — чёрный */
.text-section p,
.text-section span,
.text-section li,
.text-section div {
  color: black;
  text-shadow: none;
}

}


/* === Анимированный градиентный фон === */
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; }
}

.flex-layout {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
}

.text-section {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.text-section h1 {
  color: gold;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px red;
}

.text-section h2 {
  color: #F2E85A;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px #F25A5A;
}

.text-section p {
  margin-bottom: 1rem;
}

.banner-section {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  height: 100%;
}

.banner-section img {
  max-width: 700px;
  width: 120%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
  margin-bottom: 2rem;
}


.banner-section .buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}


/* === МОБИЛКА === */
@media (max-width: 768px) {
  .logo {
    display: none;
  }

  .flex-layout {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    padding-top: 3rem;
  }

  html, body {
    overflow-y: auto; /* На мобилке — разрешаем прокрутку */
  }

  .banner-section {
    order: 1;
    width: 100%;
    margin-bottom: 2rem;
    padding-top: 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .banner-section img {
    max-width: 90vw;
    margin: 0 auto 1.5rem;
    display: block;
  }

  .banner-section .buttons {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .banner-section .btn {
    width: 100%;
    padding: 1rem;
  }

  .text-section {
    order: 3;
    width: 100%;
    padding: 1rem;
  }

  .text-section {
  color: black;
}


/* Параграфы и остальной текст — чёрный */
.text-section p,
.text-section span,
.text-section li,
.text-section div {
  color: black;
  text-shadow: none;
}

}

