:root {
  --site-primary-base: #003366; /* Dark blue */
  --site-secondary-base: #FFD700; /* Gold */

  /* Neon colors derived from site base colors */
  --neon-blue: #00FFFF; /* Bright Cyan */
  --neon-magenta: #FF00FF; /* Bright Magenta */
  --neon-yellow: #FFFF00; /* Bright Yellow */
  --neon-red: #FF0000; /* Bright Red */
  --neon-green: #00FF00; /* Bright Green */
  --neon-orange: #FFA500; /* Bright Orange */

  /* Primary neon colors for animations, intelligently chosen */
  --neon-primary: var(--neon-blue); /* Default primary glow color */
  --neon-secondary: var(--neon-yellow); /* Default secondary glow color */
  --neon-accent: var(--neon-magenta); /* Default accent glow color */

  /* Background colors */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460;
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  padding-top: 110px; /* Desktop Header + Nav height approximation */
}

/* Animations */
@keyframes rainbow-border {
  0% { border-color: var(--neon-red); box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red); }
  16.6% { border-color: var(--neon-orange); box-shadow: 0 0 10px var(--neon-orange), 0 0 20px var(--neon-orange); }
  33.3% { border-color: var(--neon-yellow); box-shadow: 0 0 10px var(--neon-yellow), 0 0 20px var(--neon-yellow); }
  50% { border-color: var(--neon-green); box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green); }
  66.6% { border-color: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue); }
  83.3% { border-color: var(--neon-magenta); box-shadow: 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-magenta); }
  100% { border-color: var(--neon-red); box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red); }
}

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

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

@keyframes gradient-flow {
  0% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-orange); }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-magenta); }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-orange); }
}

@keyframes random-glow {
  0% { border-color: var(--neon-magenta); box-shadow: 0 0 20px var(--neon-magenta); }
  20% { border-color: var(--neon-blue); box-shadow: 0 0 20px var(--neon-blue); }
  40% { border-color: var(--neon-yellow); box-shadow: 0 0 20px var(--neon-yellow); }
  60% { border-color: var(--neon-green); box-shadow: 0 0 20px var(--neon-green); }
  80% { border-color: var(--neon-red); box-shadow: 0 0 20px var(--neon-red); }
  100% { border-color: var(--neon-magenta); box-shadow: 0 0 20px var(--neon-magenta); }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-blue);
    box-shadow:
      0 0 10px var(--neon-blue),
      0 0 20px var(--neon-blue),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-yellow);
    box-shadow:
      0 0 10px var(--neon-yellow),
      0 0 20px var(--neon-yellow),
      inset 0 0 10px rgba(255, 255, 0, 0.3);
  }
  66% {
    border-color: var(--neon-magenta);
    box-shadow:
      0 0 10px var(--neon-magenta),
      0 0 20px var(--neon-magenta),
      inset 0 0 10px rgba(255, 0, 255, 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-blue),
      0 0 10px var(--neon-blue),
      0 0 15px var(--neon-blue);
    color: #ffffff;
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-yellow),
      0 0 10px var(--neon-yellow),
      0 0 15px var(--neon-yellow);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-magenta),
      0 0 10px var(--neon-magenta),
      0 0 15px var(--neon-magenta);
    color: #ffffff;
  }
}

/* Header styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: 60px; /* Base min-height */
  display: flex;
  flex-direction: column; /* Default for mobile, overridden for desktop */
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border glow */
  padding: 10px 0;
  display: flex;
  align-items: center;
  width: 100%;
}

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

.logo {
  font-family: 'Electrolize', sans-serif; /* Example retro-futuristic font */
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
  text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary);
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border glow */
  text-shadow: 0 0 5px #ffffff, 0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s; /* hover时加快颜色变化速度 */
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--neon-primary), 0 0 30px var(--neon-primary), inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--dark-bg-4));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s linear infinite reverse; /* Different animation for contrast */
  padding: 10px 0;
  width: 100%;
  display: flex; /* Desktop default */
  flex-direction: row; /* Desktop default */
  justify-content: center; /* Desktop default */
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

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

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1002;
  transition: all 0.3s ease;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-yellow);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-yellow);
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 11px; }
.hamburger-menu span:nth-child(3) { top: 22px; }

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
  background-color: var(--neon-magenta);
  box-shadow: 0 0 5px var(--neon-magenta);
}

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

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
  background-color: var(--neon-magenta);
  box-shadow: 0 0 5px var(--neon-magenta);
}

.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

/* Footer styles */
.site-footer {
  background-color: #1a1a2e;
  color: #e0e0e0;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

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

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr); /* First column wider for logo/desc */
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--neon-yellow);
  margin-top: 5px;
}

.footer-logo {
  font-family: 'Electrolize', sans-serif;
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Ensure full display, no ellipsis */
}

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

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

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

.footer-nav a:hover {
  color: var(--neon-blue);
}

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

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
  transition: filter 0.3s ease;
}

.payment-icons img:hover, .game-providers-icons img:hover, .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%) drop-shadow(0 0 5px var(--neon-blue));
}

.footer-middle-sections {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  color: #888;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 130px; /* Mobile Header + Mobile Buttons height approximation */
  }

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

  .header-container {
    padding: 0 15px;
  }

  .header-top {
    padding: 10px 0;
  }

  .logo {
    font-size: 1.8em;
    flex-grow: 1;
    text-align: center;
  }

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

  .hamburger-menu {
    display: block;
    order: -1; /* Move to left */
    margin-left: 15px;
    margin-right: auto;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    flex-direction: column;
    background: linear-gradient(180deg, var(--dark-bg-3), var(--dark-bg-1));
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    border: none; /* Remove border for mobile slide-out */
    padding-top: 80px; /* Space for logo/hamburger */
    overflow-y: auto;
  }

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

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

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-top: 1px solid;
    animation: theme-colors 4s ease-in-out infinite alternate; /* Dynamic border glow */
    z-index: 1000;
    width: 100%;
  }

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

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

  .footer-col h4::after {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .payment-methods, .game-providers-section, .social-media-section {
    text-align: center;
  }

  .payment-icons, .game-providers-icons, .social-media-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5em;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .mobile-nav-buttons {
    flex-wrap: wrap;
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    margin: 5px;
  }
}

.no-scroll {
  overflow: hidden;
}
