:root {
  --site-primary-dark: #0A2342;
  --site-secondary-gold: #FFD700;
  --neon-primary-base: #00FFFF; /* Bright Cyan */
  --neon-secondary-base: #FF00FF; /* Bright Magenta */
  --neon-accent-base: #FFFF00; /* Bright Yellow */
  --neon-color-1: var(--neon-primary-base);
  --neon-color-2: var(--neon-secondary-base);
  --neon-color-3: var(--neon-accent-base);
  --header-height-desktop: 0px; /* Placeholder, updated by JS */
  --header-height-mobile: 0px; /* Placeholder, updated by JS */
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-top: var(--header-height-desktop); /* Default for desktop */
  background-color: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll from menu transform */
}

/* Animations for dynamic colors and glow effects */
@keyframes rainbow-border {
  0% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
  16.6% { border-color: #ff8000; box-shadow: 0 0 10px #ff8000, 0 0 20px #ff8000; }
  33.3% { border-color: #ffff00; box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00; }
  50% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
  66.6% { border-color: #0000ff; box-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff; }
  83.3% { border-color: #8000ff; box-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff; }
  100% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
}

@keyframes hue-spin {
  0% { filter: hue-rotate(0deg); box-shadow: 0 0 10px var(--neon-color-1), 0 0 20px var(--neon-color-1); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-color-1), 0 0 20px var(--neon-color-1); }
}

@keyframes alternate-colors {
  0% { border-color: var(--neon-color-1); box-shadow: 0 0 10px var(--neon-color-1), 0 0 20px var(--neon-color-1); }
  100% { border-color: var(--neon-color-2); box-shadow: 0 0 10px var(--neon-color-2), 0 0 20px var(--neon-color-2); }
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-color-1), 0 0 20px var(--neon-color-2); }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px var(--neon-color-3), 0 0 20px var(--neon-color-1); }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-color-1), 0 0 20px var(--neon-color-2); }
}

@keyframes random-glow {
  0% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
  20% { border-color: #00ffff; box-shadow: 0 0 20px #00ffff; }
  40% { border-color: #ffff00; box-shadow: 0 0 20px #ffff00; }
  60% { border-color: #00ff00; box-shadow: 0 0 20px #00ff00; }
  80% { border-color: #ff0000; box-shadow: 0 0 20px #ff0000; }
  100% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary-base);
    box-shadow: 0 0 10px var(--neon-primary-base), 0 0 20px var(--neon-primary-base), inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-secondary-base);
    box-shadow: 0 0 10px var(--neon-secondary-base), 0 0 20px var(--neon-secondary-base), inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  66% {
    border-color: var(--neon-accent-base);
    box-shadow: 0 0 10px var(--neon-accent-base), 0 0 20px var(--neon-accent-base), inset 0 0 10px rgba(255, 255, 0, 0.3);
  }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor, inset 0 0 15px currentColor; }
  20%, 24%, 55% { opacity: 0.8; box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, inset 0 0 10px currentColor; }
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
  to { box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor; }
}

@keyframes led-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

@keyframes text-glow-flow {
  0% { text-shadow: 0 0 5px var(--neon-color-1), 0 0 10px var(--neon-color-1), 0 0 15px var(--neon-color-1); color: #ffffff; }
  50% { text-shadow: 0 0 5px var(--neon-color-2), 0 0 10px var(--neon-color-2), 0 0 15px var(--neon-color-2); color: #ffffff; }
  100% { text-shadow: 0 0 5px var(--neon-color-3), 0 0 10px var(--neon-color-3), 0 0 15px var(--neon-color-3); color: #ffffff; }
}

/* Base Neon Glow Classes */
.neon-glow {
  box-shadow:
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 15px currentColor,
    0 0 20px currentColor,
    inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, theme-colors 4s linear infinite;
}

.cyber-grid {
  background:
    linear-gradient(90deg, transparent 95%, currentColor 100%),
    linear-gradient(180deg, transparent 95%, currentColor 100%);
  background-size: 20px 20px;
  border: 1px solid;
  animation: hue-spin 4s linear infinite;
}

.neon-pulse {
  border: 2px solid transparent;
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

.rainbow-flow {
  border: 2px solid;
  animation: rainbow-border 3s linear infinite;
}

.hue-rotate {
  border: 2px solid;
  filter: hue-rotate(0deg);
  animation: hue-spin 4s linear infinite;
}

.alternate-glow {
  border: 2px solid;
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

.color-stream {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg,
    #ff0000, #ff8000, #ffff00, #00ff00,
    #00ffff, #0000ff, #8000ff, #ff0080
  );
  background-size: 400% 400%;
  animation: gradient-flow 3s ease infinite;
}

.random-colors {
  border: 2px solid;
  animation: random-glow 5s linear infinite;
}

.theme-flow {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

.led-matrix {
  border: 2px solid;
  box-shadow:
    0 0 5px currentColor,
    0 0 10px currentColor;
  position: relative;
  animation: random-glow 5s linear infinite;
}

.led-matrix::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background:
    radial-gradient(circle at 0% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 0% 100%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 100%, currentColor 2px, transparent 3px);
  background-size: 20px 20px;
  animation: led-blink 1s steps(2) infinite;
}

/* Header styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  color: #fff;
}

.header-top {
  background: linear-gradient(135deg, var(--site-primary-dark), #1a1a2e);
  border-bottom: 2px solid var(--neon-accent-base); /* Yellowish glow for top */
  box-shadow:
    0 0 10px var(--neon-accent-base),
    0 0 20px var(--neon-accent-base),
    0 0 30px var(--neon-accent-base),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
  padding: 10px 0;
  animation: theme-colors 5s linear infinite; /* Dynamic glow for header-top */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-family: 'Electrolize', sans-serif; /* Example cyberpunk-ish font */
  font-size: 2.5em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
  padding: 5px 0;
  flex-shrink: 0;
}

.desktop-nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary-base), var(--neon-secondary-base));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  overflow: hidden;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary-base);
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow:
    0 0 15px currentColor,
    0 0 30px currentColor,
    0 0 45px currentColor;
}

.mobile-button-area {
  display: none; /* Hidden on desktop */
}

.main-nav {
  background: linear-gradient(135deg, #16213e, #0f3460); /* Different dark gradient */
  border-top: 2px solid var(--neon-secondary-base); /* Magenta/Reddish glow for main nav */
  border-bottom: 2px solid var(--neon-secondary-base);
  box-shadow:
    0 0 10px var(--neon-secondary-base),
    0 0 20px var(--neon-secondary-base),
    0 0 30px var(--neon-secondary-base),
    inset 0 0 20px rgba(255, 0, 255, 0.1);
  width: 100%;
  display: flex; /* Desktop: visible, row direction */
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  animation: theme-colors 6s linear infinite reverse; /* Dynamic glow for main-nav, different animation speed/direction */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop: horizontal */
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.1em;
  padding: 8px 15px;
  white-space: nowrap;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-accent-base);
  text-shadow: 0 0 5px var(--neon-accent-base), 0 0 10px var(--neon-accent-base);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* Footer Styles - Regular */
.site-footer {
  background-color: #1a1a2e;
  color: #e0e0e0;
  padding: 40px 0 20px 0;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

.footer-top-section, .footer-middle-section, .footer-bottom-section {
  padding: 20px 0;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top-section .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: var(--site-secondary-gold);
  font-size: 1.2em;
  margin-bottom: 15px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--site-secondary-gold);
}

.footer-logo {
  font-size: 2em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--site-secondary-gold);
}

.payment-methods .payment-icons,
.game-providers-section .game-providers-icons,
.social-media-section .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.payment-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%);
  transition: filter 0.3s ease;
}

.payment-methods .payment-icons img:hover,
.game-providers-section .game-providers-icons img:hover,
.social-media-section .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%);
}

.footer-middle-section {
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.game-providers-section, .social-media-section {
  margin-bottom: 20px;
}

.game-providers-section:last-child, .social-media-section:last-child {
  margin-bottom: 0;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-legal-nav a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-nav a:hover {
  color: var(--site-secondary-gold);
}

.copyright {
  text-align: center;
  color: #aaa;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .header-container, .nav-container, .site-footer .footer-container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-mobile); /* Updated by JS */
  }

  body.no-scroll {
    overflow: hidden;
  }

  .site-header {
    flex-direction: column;
  }

  .header-top {
    padding: 10px 0;
    justify-content: space-between;
    animation: none;
    border-bottom: none;
    box-shadow: none;
  }

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    box-shadow: 0 0 5px var(--neon-accent-base), 0 0 10px var(--neon-accent-base);
    animation: theme-colors 3s ease-in-out infinite alternate;
    flex-shrink: 0;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--neon-accent-base);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .logo {
    flex: 1;
    text-align: center;
    font-size: 2em;
    margin: 0;
    padding: 0;
  }

  .desktop-nav-buttons {
    display: none;
  }

  .mobile-button-area {
    display: block;
    position: fixed;
    top: 0; /* Will be adjusted by JS */
    width: 100%;
    background: linear-gradient(135deg, var(--site-primary-dark), #1a1a2e);
    padding: 10px 0;
    z-index: 999; /* Below mobile menu, above content */
    border-bottom: 2px solid var(--neon-accent-base);
    box-shadow:
      0 0 5px var(--neon-accent-base),
      0 0 10px var(--neon-accent-base),
      inset 0 0 5px rgba(255, 255, 0, 0.1);
  }

  .mobile-button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 15px;
    max-width: none;
    width: 100%;
  }

  .main-nav {
    position: fixed;
    top: 0; /* Will be adjusted by JS */
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0; /* Top/bottom padding for menu items */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: none; /* Initially hidden, JS will toggle flex */
    z-index: 1001;
    border-right: 2px solid var(--neon-primary-base);
    box-shadow:
      5px 0 15px rgba(0, 255, 255, 0.5),
      10px 0 30px rgba(0, 255, 255, 0.3);
    animation: none;
    overflow-y: auto; /* Allow scrolling for long menus */
  }

  .main-nav.active {
    transform: translateX(0);
    display: flex;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    width: 100%;
    max-width: none;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2em;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .footer-top-section .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    text-align: center;
  }

  .footer-legal-nav {
    flex-direction: column;
    gap: 10px;
  }
}