:root {
  --primary-site-color: #1A202C;
  --secondary-site-color: #FFD700; /* Gold/Yellow */

  /* Intelligent Neon Colors based on secondary-site-color */
  --neon-primary: var(--secondary-site-color); /* Gold/Yellow for primary glow */
  --neon-secondary: #FF6600; /* Orange for secondary glow */
  --neon-accent: #FF00FF; /* Magenta for accent glow */

  /* Specific colors for header-top and main-nav for contrast */
  --header-top-bg: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  --header-top-glow: var(--neon-primary); /* Yellow glow for top bar */

  --main-nav-bg: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a);
  --main-nav-glow: var(--neon-secondary); /* Orange glow for main nav */

  --button-primary-gradient: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  --button-secondary-gradient: linear-gradient(135deg, var(--neon-accent), #00ffff); /* Magenta to Cyan */
}

/* Base styles */
body {
  margin: 0;
  padding-top: 0; /* Default for desktop */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--primary-site-color);
  color: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Animations */
@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-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 #ff0000, 0 0 20px #ff8000;
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #0000ff;
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000;
  }
}

@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);
    box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 0 0 10px var(--neon-accent), 0 0 20px var(--neon-accent);
  }
}

@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-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary);
    color: #ffffff;
  }
  50% {
    text-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary), 0 0 15px var(--neon-secondary);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent), 0 0 15px var(--neon-accent);
    color: #ffffff;
  }
}

/* Header styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background-color: #0a0a0a; 
}

.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%; /* Ensure it takes full width up to max-width */
}

.header-top {
  background: var(--header-top-bg);
  border-bottom: 2px solid var(--header-top-glow);
  box-shadow: 
    0 0 10px var(--header-top-glow),
    0 0 20px var(--header-top-glow),
    0 0 30px var(--header-top-glow),
    inset 0 0 15px rgba(255, 255, 0, 0.1);
  padding: 15px 0;
}

.header-top .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff; /* Base color for dynamic text glow */
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  display: block; /* Ensure visibility */
  padding: 5px 0;
}

/* Multiple glow styles for logo (e.g., neon-pulse) */
.logo.neon-pulse {
  animation: text-glow-flow 3s ease-in-out infinite alternate, pulse-glow 2s ease-in-out infinite alternate;
}

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

.btn {
  position: relative;
  background: var(--button-primary-gradient);
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Default dynamic color */
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap; /* Prevent button text from wrapping */
}

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

/* Specific button glow styles */
.btn.rainbow-flow {
  animation: rainbow-border 3s linear infinite, theme-colors 4s ease-in-out infinite; /* Combine with theme-colors */
}

.btn.theme-flow {
  animation: theme-colors 4s ease-in-out infinite;
}

.main-nav {
  background: var(--main-nav-bg);
  border-top: 2px solid var(--main-nav-glow);
  border-bottom: 2px solid var(--main-nav-glow);
  box-shadow: 
    0 0 10px var(--main-nav-glow),
    0 0 20px var(--main-nav-glow),
    0 0 30px var(--main-nav-glow),
    inset 0 0 15px rgba(255, 102, 0, 0.1);
  padding: 10px 0;
  display: flex;
  flex-direction: row; /* Desktop default */
  justify-content: center;
  align-items: center;
}

.main-nav .nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

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

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1002; /* Above overlay */
  animation: theme-colors 4s ease-in-out infinite; /* Neon effect for hamburger */
  border-radius: 3px;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff; /* White bars for contrast */
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

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

.hamburger-menu span:nth-child(2) {
  top: 8px;
}

.hamburger-menu span:nth-child(3) {
  top: 16px;
}

.hamburger-menu.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

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

.hamburger-menu.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

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

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

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

.site-footer h4 {
  color: #FFD700; /* Use secondary site color for headings */
  margin-bottom: 15px;
  font-size: 1.2em;
}

.footer-top {
  padding-bottom: 30px;
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr); /* 4 columns, first one wider */
  gap: 30px;
}

.footer-col {
  margin-bottom: 20px;
}

.footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700;
  display: block;
  margin-bottom: 15px;
}

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

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

.footer-nav a {
  color: #e0e0e0;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #FFD700;
}

.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-methods h4, .game-providers-section h4, .social-media-section h4 {
  margin-bottom: 15px;
}

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

.footer-middle .footer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-providers-section, .social-media-section {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  color: #b0b0b0;
}

.copyright {
  margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  body {
    padding-top: 130px; /* Header-top (~60px) + mobile-nav-buttons (~60px) + buffer */
  }

  .header-container, .nav-container, .footer-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
  }

  .header-top .header-container {
    justify-content: space-between;
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: -1; /* Place it first */
    margin-right: 15px;
    align-self: center;
  }

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

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--header-top-bg); /* Match header top background */
    border-bottom: 2px solid var(--header-top-glow);
    box-shadow: 
      0 0 5px var(--header-top-glow),
      0 0 10px var(--header-top-glow),
      inset 0 0 5px rgba(255, 255, 0, 0.1);
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column; /* Stack links vertically */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Side menu width */
    height: 100%;
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease-in-out;
    background: var(--main-nav-bg); /* Use main nav background */
    padding-top: 80px; /* Space for fixed header content */
    border-right: 2px solid var(--main-nav-glow);
    box-shadow: 
      0 0 10px var(--main-nav-glow),
      0 0 20px var(--main-nav-glow),
      inset 0 0 15px rgba(255, 102, 0, 0.1);
    z-index: 1001;
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding: 0 20px;
  }

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

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

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

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

  .footer-middle .footer-container {
    padding: 0 15px;
  }
}