/* ================= GLOBAL & ROOT ================= */
:root {
  --bg-main: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --primary-color: #ffd700;
  --secondary-color: #00e5ff;
  --text-color: #e0e0e0;
  --text-dark: #a0a0b0;
  --font-main: "Roboto", sans-serif;
  --font-headings: "Teko", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-color);
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 30px;
}
img {
  max-width: 100%;
  display: block;
}
section {
  padding: 50px 0;
}

/* ================= BACKGROUND & PRELOADER ================= */
.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.background-shapes ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.background-shapes li {
  position: absolute;
  list-style: none;
  display: block;
  bottom: -150px;
  animation: fall 15s linear infinite;
  color: rgba(255, 255, 255, 0.05);
}
.background-shapes li:nth-child(1) {
  left: 10%;
  font-size: 80px;
  animation-delay: 0s;
}
.background-shapes li:nth-child(2) {
  left: 20%;
  font-size: 30px;
  animation-delay: 2s;
  animation-duration: 12s;
}
.background-shapes li:nth-child(3) {
  left: 30%;
  font-size: 50px;
  animation-delay: 4s;
}
.background-shapes li:nth-child(4) {
  left: 40%;
  font-size: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}
.background-shapes li:nth-child(5) {
  left: 50%;
  font-size: 20px;
  animation-delay: 3s;
}
.background-shapes li:nth-child(6) {
  left: 60%;
  font-size: 80px;
  animation-delay: 7s;
}
.background-shapes li:nth-child(7) {
  left: 70%;
  font-size: 40px;
  animation-delay: 1s;
  animation-duration: 20s;
}
.background-shapes li:nth-child(8) {
  left: 80%;
  font-size: 50px;
  animation-delay: 5s;
}
.background-shapes li:nth-child(9) {
  left: 90%;
  font-size: 30px;
  animation-delay: 2s;
  animation-duration: 10s;
}
.background-shapes li:nth-child(10) {
  left: 95%;
  font-size: 60px;
  animation-delay: 8s;
}
@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-120vh) rotate(720deg);
  }
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.card-loader {
  position: relative;
  width: 100px;
  height: 150px;
}
.card-loader .card {
  position: absolute;
  width: 80px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  transform-origin: bottom center;
  animation: card-fan 1.8s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-logo {
  font-family: var(--font-headings);
  font-size: 18px;
  color: #1a1a2e;
  text-align: center;
  line-height: 1;
}
.card-logo span {
  color: var(--primary-color);
  font-size: 24px;
  display: block;
}
.card-loader .card:nth-child(1) {
  animation-delay: -0.4s;
  background-color: #f0f0f0;
}
.card-loader .card:nth-child(2) {
  animation-delay: -0.2s;
  background-color: #e0e0e0;
}
@keyframes card-fan {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(-30deg) translateY(-20px);
  }
  50% {
    transform: rotate(0deg) translateY(0);
  }
  75% {
    transform: rotate(30deg) translateY(-20px);
  }
}

/* ================= HEADER ================= */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.mirror-banner {
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: #000;
  text-align: center;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 700;
}
header {
  background-color: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-headings);
  font-size: 32px;
  font-weight: 700;
  color: white;
}
.logo span {
  color: var(--primary-color);
}
#desktop-nav {
  display: none;
}
#hamburger-menu {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1101;
}
.auth-buttons button {
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}
.btn-login {
  background-color: transparent;
  color: white;
  border: 1px solid var(--primary-color);
}
.btn-register {
  background-color: var(--primary-color);
  color: black;
  margin-left: 10px;
}
#mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background-color: #151525;
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-left: 1px solid var(--primary-color);
}
#mobile-nav.active {
  transform: translateX(0);
}
#mobile-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 24px;
  font-family: var(--font-headings);
  padding: 10px 20px;
}

/* ================= HERO & COMMON BUTTONS ================= */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}
.hero-content h1 {
  font-size: 48px;
  line-height: 1.1;
}
.hero-content h2 {
  font-size: 24px;
  margin: 10px 0 20px;
}
.hero-content p {
  font-size: 16px;
  margin: 0 auto 30px;
}
.btn-cta {
  background: linear-gradient(45deg, var(--primary-color), #ffeb3b);
  color: black;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}
.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--primary-color);
  animation: none;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.btn-cta-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 12px 35px;
  font-size: 16px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.btn-cta-secondary:hover {
  background: var(--secondary-color);
  color: #000;
  box-shadow: 0 0 20px var(--secondary-color);
}

/* ================= SLOTS MARQUEE (REWORKED) ================= */
.games-marquee-wrapper {
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}
.games-marquee-wrapper:hover .games-marquee {
  animation-play-state: paused;
}
.games-marquee {
  display: flex;
  gap: 15px;
  /* Animation will be applied here */
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.game-card {
  flex-shrink: 0; /* Prevents cards from shrinking */
  width: 45vw; /* ~2 cards visible on mobile */
  max-width: 200px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent);
  padding: 10px;
  text-align: center;
}
.game-overlay h3 {
  font-size: 16px;
  color: white;
  margin-bottom: 10px;
  line-height: 1.2;
}
.btn-play {
  background-color: var(--secondary-color);
  color: black;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
}
.btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--secondary-color);
  animation: none;
  cursor: pointer;
}

/* Styles for other sections (no changes) */
.live-stats {
  background-color: rgba(26, 26, 46, 0.8);
  border-top: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}
.live-stats-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.live-jackpot h4,
.live-winners h4 {
  font-size: 22px;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 15px;
  text-align: center;
}
.jackpot-counter {
  font-family: var(--font-headings);
  font-size: 50px;
  line-height: 1;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 15px var(--primary-color);
  letter-spacing: 2px;
  text-align: center;
}
.jackpot-counter .currency {
  color: var(--secondary-color);
  text-shadow: 0 0 15px var(--secondary-color);
  margin-left: 10px;
  font-size: 36px;
}
.live-winners {
  background-color: #0f0f1a;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #2a2a3e;
}
.winners-feed-wrapper {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.winners-feed-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top, #0f0f1a, transparent);
  pointer-events: none;
}
.winners-feed {
  list-style: none;
  animation: scroll-up 20s linear infinite;
}
.winners-feed li {
  padding: 12px 10px;
  font-size: 14px;
  border-bottom: 1px solid #2a2a3e;
  color: var(--text-dark);
}
.winners-feed li span {
  color: var(--text-color);
  font-weight: 700;
}
@keyframes scroll-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.promo-block.crypto-bonus {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.promo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}
.promo-image i {
  font-size: 100px;
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--primary-color);
}
.promo-text h2 {
  font-size: 32px;
}
.promo-text p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text-dark);
}
.registration-interactive-block {
  background-color: var(--bg-secondary);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #2a2a3e;
}
.step-triggers {
  display: flex;
  flex-wrap: wrap;
  background-color: #151525;
}
.step-trigger {
  flex: 1 1 auto;
  padding: 10px;
  background: 0 0;
  border: none;
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}
.step-trigger.active,
.step-trigger:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.step-content-wrapper {
  padding: 30px 20px;
}
.step-content {
  display: none;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.5s ease;
}
.step-content.active {
  display: flex;
}
.step-visual i {
  font-size: 60px;
  color: var(--secondary-color);
}
.step-text h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}
.step-text p {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-us {
  background-color: var(--bg-secondary);
}
.about-content p {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}
.about-content ul {
  list-style: none;
  padding: 0;
}
.about-content li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--text-color);
}
.about-content li i {
  color: var(--primary-color);
  margin-top: 4px;
}
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.payment-item {
  background-color: #151525;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.payment-icon {
  font-size: 32px;
  margin-bottom: 15px;
  color: #888;
}
.payment-icon-custom {
  font-family: var(--font-headings);
  font-size: 24px;
  border: 2px solid #888;
  border-radius: 5px;
  padding: 2px 8px;
  margin-bottom: 15px;
  color: #888;
}
.payment-item span {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 700;
  text-align: center;
}
.payment-item:hover .payment-icon,
.payment-item:hover .payment-icon-custom {
  color: var(--primary-color);
}
.payment-item:hover .payment-icon-custom {
  border-color: var(--primary-color);
}
.site-footer {
  background-color: #0c0c14;
  padding: 40px 0 20px;
  border-top: 2px solid var(--primary-color);
}
.footer-top {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-about p {
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
}
.footer-links h4,
.footer-responsible h4 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 15px;
}
.footer-links a {
  display: block;
  color: var(--text-dark);
  text-decoration: none;
  margin-bottom: 10px;
}
.responsible-icons {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}
.responsible-icons i {
  font-size: 32px;
}
.icon-18plus {
  width: 32px;
  height: 32px;
  border: 2px solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid #2a2a3e;
  padding-top: 20px;
  text-align: center;
}
.copyright-text {
  color: var(--text-dark);
  font-size: 14px;
}
#toast-notification {
  position: fixed;
  background: linear-gradient(135deg, #1a1a2e, #2a2a3e);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  padding: 20px;
  z-index: 2000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease-in-out;
  width: calc(100% - 30px);
  bottom: 15px;
  right: 15px;
  left: 15px;
}
.toast-hidden {
  transform: translateX(120%);
}
.toast-visible {
  transform: translateX(0);
}
.toast-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: 0 0;
  border: none;
  color: var(--text-dark);
  font-size: 24px;
  cursor: pointer;
}
#toast-notification h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}
#toast-notification p {
  color: var(--text-color);
  font-size: 15px;
  margin-bottom: 15px;
}
#toast-notification p strong {
  color: var(--primary-color);
}
.btn-toast-claim {
  width: 100%;
  background-color: var(--primary-color);
  color: #000;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

/* ================= MEDIA QUERIES ================= */
@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }
  h2 {
    font-size: 48px;
    margin-bottom: 40px;
  }
  section {
    padding: 60px 0;
  }
  .logo {
    font-size: 36px;
  }
  .hero-content h1 {
    font-size: 60px;
  }
  .hero-content h2 {
    font-size: 30px;
  }
  .live-stats-container {
    grid-template-columns: 1fr 1fr;
  }
  .jackpot-counter {
    font-size: 72px;
  }
  .jackpot-counter .currency {
    font-size: 50px;
  }
  .game-card {
    width: 30vw;
    max-width: 240px;
  }
  .promo-content {
    flex-direction: row;
    text-align: left;
  }
  .step-content {
    flex-direction: row;
    text-align: left;
  }
  .payment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }
  .responsible-icons {
    justify-content: flex-start;
  }
  #toast-notification {
    width: 340px;
    left: auto;
    bottom: 20px;
    right: 20px;
  }
}

@media (min-width: 1024px) {
  #desktop-nav {
    display: flex;
    gap: 20px;
  }
  #desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
  }
  #desktop-nav a:hover {
    color: var(--primary-color);
  }
  #hamburger-menu {
    display: none;
  }
  .hero-content h1 {
    font-size: 72px;
  }
  .hero-content h2 {
    font-size: 36px;
  }
  .game-card {
    width: 23vw;
    max-width: 260px;
  }
  .payment-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .footer-top {
    gap: 40px;
  }
}
/* 1. Чтобы фон не скроллился под открытым меню */
body.menu-open {
  overflow: hidden;
}

/* 2. Стили для самого оверлея */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1040; /* Ниже меню, но выше контента */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
