:root {
  /* Site defined colors */
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Grey */

  /* Neon base colors derived from site primary/secondary or for contrast */
  --neon-primary-base: var(--primary-color); /* Use site primary as a base */
  --neon-secondary-base: #00FFFF; /* Cyan for contrast */
  --neon-accent-base: #FF00FF; /* Magenta for vibrancy */

  /* Header heights for content padding */
  --header-top-height: 70px; /* Approx height of .header-top */
  --main-nav-height: 50px; /* Approx height of .main-nav */
  --mobile-buttons-height: 60px; /* Approx height of .mobile-buttons-area */

  --header-total-height-desktop: calc(var(--header-top-height) + var(--main-nav-height));
  --header-total-height-mobile: calc(var(--header-top-height) + var(--mobile-buttons-height));
}

/* Base styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #0d0d0d;
  padding-top: var(--header-total-height-desktop); /* Desktop content protection */
}

body.no-scroll {
  overflow: hidden;
}

/* Reusable Neon Glow Mixins/Animations from prompt */
/* 动态霓虹发光颜色 - 多款流动变色效果（必须实现，不能固定颜色） */

/* 基础动态颜色变量 */
:root {
  --neon-cycle-1: #ff00ff, #00ffff, #ffff00, #ff0000, #00ff00, #0000ff;
  --neon-cycle-2: #00ffff, #ffff00, #ff00ff, #00ff00, #ff0000, #0000ff;
  --neon-cycle-3: #ffff00, #ff00ff, #00ffff, #ff0000, #00ff00, #0000ff;
}

/* 基础霓虹光晕效果 */
.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);
}

/* 款式1：经典霓虹灯管效果（支持动态颜色） */
.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, theme-colors 4s ease-in-out infinite;
}

/* 款式2：赛博朋克网格发光（支持动态颜色） */
.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;
}

/* 款式3：脉冲呼吸效果（支持动态颜色） */
.neon-pulse {
  border: 2px solid transparent; /* Border for the pulse effect */
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

/* 款式4：彩虹循环渐变（动态颜色） */
.rainbow-flow {
  border: 2px solid;
  animation: rainbow-border 3s linear infinite;
}

/* 款式5：色相旋转（动态颜色） */
.hue-rotate {
  border: 2px solid;
  filter: hue-rotate(0deg);
  animation: hue-spin 4s linear infinite;
}

/* 款式6：双色交替闪烁（动态颜色） */
.alternate-glow {
  border: 2px solid;
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

/* 款式7：多色流动光带（动态颜色） */
.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;
}

/* 款式8：随机颜色变化（动态颜色） */
.random-colors {
  border: 2px solid;
  animation: random-glow 5s linear infinite;
}

/* 款式9：网站主题色动态变化（动态颜色，推荐使用） */
.theme-flow {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

/* 款式10：LED点阵效果（支持动态颜色） */
.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;
}

/* 动态颜色动画定义 */
@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-base),
      0 0 20px var(--neon-primary-base);
  }
  100% {
    filter: hue-rotate(360deg);
    box-shadow: 
      0 0 10px var(--neon-primary-base),
      0 0 20px var(--neon-primary-base);
  }
}

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

@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-base);
    box-shadow: 
      0 0 10px var(--neon-primary-base),
      0 0 20px var(--neon-primary-base),
      inset 0 0 10px rgba(255, 215, 0, 0.3); /* Using site-primary for inset */
  }
  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(0, 255, 255, 0.3); /* Using neon-secondary-base for inset */
  }
  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, 0, 255, 0.3); /* Using neon-accent-base for inset */
  }
}

/* Original animations */
@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; }
}

/* 动态霓虹文字发光 */
.neon-text-dynamic {
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

@keyframes text-glow-flow {
  0% {
    text-shadow: 
      0 0 5px var(--neon-primary-base),
      0 0 10px var(--neon-primary-base),
      0 0 15px var(--neon-primary-base);
    color: #ffffff;
  }
  50% {
    text-shadow: 
      0 0 5px var(--neon-secondary-base),
      0 0 10px var(--neon-secondary-base),
      0 0 15px var(--neon-secondary-base);
    color: #ffffff;
  }
  100% {
    text-shadow: 
      0 0 5px var(--neon-accent-base),
      0 0 10px var(--neon-accent-base),
      0 0 15px var(--neon-accent-base);
    color: #ffffff;
  }
}

/* General Layout */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex; /* Desktop default */
  flex-direction: column; /* Stacks header-top and main-nav */
  min-height: var(--header-total-height-desktop);
}

.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Header Top Section (Logo and Buttons) */
.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color for header-top */
  padding: 10px 0;
  height: var(--header-top-height);
  box-sizing: border-box;
  display: flex; /* For inner container alignment */
  align-items: center;
}

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

.logo {
  font-family: 'Electrolize', sans-serif; /* Example retro-futuristic font */
  font-size: 2.5em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff; /* Base color for glowing text */
  white-space: nowrap;
  /* Neon glow handled by .neon-text-dynamic and .neon-pulse classes */
}

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

/* Main Navigation */
.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid transparent; /* Ensure border is present for animation */
  border-bottom: 2px solid transparent;
  animation: rainbow-border 3s linear infinite; /* Dynamic border color for main-nav */
  padding: 5px 0;
  height: var(--main-nav-height);
  box-sizing: border-box;
  display: flex; /* Desktop default: visible, horizontal */
  align-items: center;
}

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

.nav-link {
  color: #f0f0f0;
  text-decoration: none;
  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-base);
  text-shadow: 0 0 5px var(--neon-primary-base), 0 0 10px var(--neon-primary-base);
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
  display: none; /* Hidden on desktop by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above overlay */
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: space-around;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0,255,255,0.5); /* Base glow for hamburger */
  border-radius: 3px;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic glow for hamburger */
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--neon-secondary-base); /* Neon color for lines */
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

/* Mobile Buttons Area */
.mobile-buttons-area {
  display: none; /* Hidden on desktop by default */
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: alternate-colors 3s ease-in-out infinite alternate; /* Dynamic border color */
  padding: 10px 0;
  box-sizing: border-box;
  height: var(--mobile-buttons-height);
  align-items: center;
  justify-content: center;
}

.mobile-buttons-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Buttons */
.btn {
  position: relative;
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
  /* Animations for dynamic glow and border are applied via classes like theme-flow, rainbow-flow */
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary-base);
  background: linear-gradient(135deg, var(--neon-primary-base), var(--neon-secondary-base));
  box-shadow: 
    0 0 10px var(--neon-primary-base),
    0 0 20px var(--neon-primary-base); /* Initial glow */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 15px var(--neon-primary-base),
    0 0 30px var(--neon-primary-base),
    0 0 45px var(--neon-primary-base);
}

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

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

.site-footer a:hover {
  color: var(--primary-color);
}

.site-footer h4 {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

.footer-top-section {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-section .footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; /* First column wider for description */
  gap: 30px;
}

.footer-logo {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
}

.footer-description {
  line-height: 1.8;
  word-wrap: break-word; /* Ensure full text display */
  overflow-wrap: break-word;
  color: #bbbbbb;
}

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

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

.footer-col ul li a {
  color: #cccccc;
}

.payment-methods .payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.payment-methods .payment-icons img {
  max-height: 40px;
  width: auto;
  height: auto;
  filter: grayscale(100%) brightness(150%); /* Make icons glow slightly */
  transition: filter 0.3s ease;
}

.payment-methods .payment-icons img:hover {
  filter: grayscale(0%) brightness(100%);
}

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

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

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

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

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

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

.footer-bottom-section .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright-info {
  margin: 0;
  color: #999999;
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-legal-links li a {
  color: #999999;
  font-size: 0.85em;
}

.footer-legal-links li a:hover {
  color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-total-height-mobile); /* Mobile content protection */
  }

  .site-header {
    min-height: auto; /* Allow height to adjust */
  }

  .header-top {
    height: var(--header-top-height);
    padding: 5px 0;
  }

  .header-top .header-container {
    padding: 0 15px;
    justify-content: center; /* Center logo */
    position: relative; /* For hamburger positioning */
  }

  .logo {
    font-size: 2em;
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center the text */
  }

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

  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
  }

  .mobile-buttons-area {
    display: flex; /* Show mobile buttons */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0; /* Full height overlay */
    left: 0;
    width: 70%; /* Menu width */
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: calc(var(--header-top-height) + var(--mobile-buttons-height) + 20px); /* Push content down */
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    background: linear-gradient(180deg, #1a1a2e, #0f3460); /* Darker background for menu */
    border: none;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    animation: none; /* No neon animation for mobile menu itself */
  }

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

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

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

  .mobile-menu-overlay.active {
    display: block; /* Show overlay when menu is active */
  }

  .footer-top-section .footer-container {
    grid-template-columns: 1fr; /* Single column layout for footer top */
    gap: 20px;
  }

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

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

  .footer-bottom-section .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }
}

/* Responsive color intensity */
@media (max-width: 768px) {
  .rainbow-flow,
  .hue-rotate,
  .alternate-glow,
  .color-stream,
  .random-colors,
  .theme-flow {
    box-shadow: 
      0 0 5px currentColor,
      0 0 10px currentColor !important;
  }
}
