:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-color: #C30808;
  --register-login-font-color: #FFFF00;

  --neon-bg-dark: #0a0a0a;
  --neon-bg-darker: #1a1a2e;
  --neon-bg-deep: #16213e;

  /* Dynamic Neon Colors based on theme */
  --neon-glow-color-1: #00ff00; /* Bright Green */
  --neon-glow-color-2: #00ffff; /* Cyan */
  --neon-glow-color-3: #ff00ff; /* Magenta */
  --neon-glow-color-4: #ffff00; /* Yellow */
  --neon-glow-color-5: #ff0000; /* Red */

  --header-offset: 155px; /* Desktop: Marquee (45px) + Header Top (60px) + Main Nav (50px) */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 140px; /* Mobile: Marquee (35px) + Header Top (55px) + Mobile Buttons (50px) */
  }
}

/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset);
  background-color: var(--secondary-color);
  color: #333;
  overflow-x: hidden;
}

/* Color Contrast for general text */
p, li, a {
  color: #333333;
}

h1, h2, h3, h4, h5, h6 {
  color: #000000;
}

/* Animations for dynamic neon effects */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-glow-color-1);
    box-shadow: 0 0 10px var(--neon-glow-color-1), 0 0 20px var(--neon-glow-color-1);
  }
  25% {
    border-color: var(--neon-glow-color-2);
    box-shadow: 0 0 10px var(--neon-glow-color-2), 0 0 20px var(--neon-glow-color-2);
  }
  50% {
    border-color: var(--neon-glow-color-3);
    box-shadow: 0 0 10px var(--neon-glow-color-3), 0 0 20px var(--neon-glow-color-3);
  }
  75% {
    border-color: var(--neon-glow-color-4);
    box-shadow: 0 0 10px var(--neon-glow-color-4), 0 0 20px var(--neon-glow-color-4);
  }
}

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

@keyframes marquee-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--neon-bg-dark), var(--neon-bg-darker), var(--neon-bg-deep));
  color: var(--secondary-color);
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-glow-color-1),
    0 0 20px var(--neon-glow-color-1),
    0 0 30px var(--neon-glow-color-1),
    inset 0 0 20px rgba(0, 255, 0, 0.1);
  z-index: 1001;
  padding: 8px 0;
  min-height: 29px;
}

.marquee-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
}

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 18px;
  display: inline-block;
  animation: marquee-pulse 2s ease-in-out infinite, text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow:
    0 0 5px var(--neon-glow-color-1),
    0 0 10px var(--neon-glow-color-1),
    0 0 15px var(--neon-glow-color-1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  gap: 30px;
}

.marquee-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  text-shadow:
    0 0 5px var(--neon-glow-color-1),
    0 0 10px var(--neon-glow-color-1),
    0 0 15px var(--neon-glow-color-1);
  line-height: 1.5;
  display: inline-block;
  vertical-align: middle;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  cursor: pointer;
  transition: all 0.3s ease;
}

.marquee-text:hover {
  text-shadow:
    0 0 10px var(--neon-glow-color-4),
    0 0 20px var(--neon-glow-color-4),
    0 0 30px var(--neon-glow-color-4),
    0 0 40px var(--neon-glow-color-4);
  transform: scale(1.05);
  color: var(--secondary-color);
}

.marquee-separator {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 15px;
  text-shadow:
    0 0 3px var(--neon-glow-color-1),
    0 0 6px var(--neon-glow-color-1);
}

/* Header Section */
.site-header {
  position: fixed;
  top: 45px; /* Offset by marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: 110px; /* total header height without marquee */
}

.header-top {
  background: linear-gradient(135deg, var(--neon-bg-dark), var(--neon-bg-darker));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-glow-color-4),
    0 0 20px var(--neon-glow-color-4),
    inset 0 0 15px rgba(255, 255, 0, 0.1);
  padding: 10px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  flex-shrink: 0;
  /* LOGO NO NEON */
  text-shadow: none;
  box-shadow: none;
}

.logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 40px;
}

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

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--register-login-color), #FF4444);
  padding: 12px 25px;
  color: var(--register-login-font-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow:
    0 0 5px var(--register-login-font-color),
    0 0 10px var(--register-login-font-color);
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
}

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

@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;
  }
}

.btn:hover {
  animation-duration: 2s; /* Faster animation on hover */
  transform: translateY(-2px);
  box-shadow:
    0 0 15px var(--register-login-color),
    0 0 30px var(--register-login-color),
    0 0 45px var(--register-login-color),
    inset 0 0 15px rgba(195, 8, 8, 0.3);
}

.main-nav {
  background: linear-gradient(135deg, var(--neon-bg-darker), var(--neon-bg-deep));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-glow-color-5),
    0 0 20px var(--neon-glow-color-5),
    inset 0 0 15px rgba(255, 0, 0, 0.1);
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 0;
  min-height: 30px;
}

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

.nav-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-size: 16px;
  white-space: nowrap;
  /* Regular text, no neon glow by default */
  text-shadow: none;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002;
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--neon-glow-color-1);
  margin: 5px 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-glow-color-1), 0 0 10px var(--neon-glow-color-1);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

/* Footer Section */
.site-footer {
  background: #222;
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 0 20px;
  margin-bottom: 30px;
}

.footer-col h4,
.game-providers-section h4,
.social-media-section h4 {
  color: var(--secondary-color);
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

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

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

.footer-nav li a {
  color: #aaa;
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

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

.payment-methods .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 .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 visible on dark background */
  transition: filter 0.3s ease;
}

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

.game-providers-section,
.social-media-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #888;
  padding-left: 20px;
  padding-right: 20px;
}

.copyright {
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .marquee-section {
    padding: 5px 0;
    min-height: 25px;
  }
  .marquee-container {
    gap: 10px;
    padding: 0 10px;
  }
  .marquee-icon {
    width: 20px;
    height: 20px;
  }
  .marquee-icon-emoji {
    font-size: 16px;
  }
  .marquee-text,
  .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 20px;
    animation: marquee-scroll 25s linear infinite;
  }

  .site-header {
    top: 35px; /* Offset by mobile marquee height */
    min-height: 95px; /* total header height without marquee */
  }

  .header-top {
    padding: 8px 0;
    min-height: 40px;
  }

  .header-container {
    padding: 0 15px;
    position: relative;
    min-height: 40px;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
  }

  .logo img {
    max-height: 35px;
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Always visible on mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    overflow: hidden;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    background: linear-gradient(135deg, var(--neon-bg-darker), var(--neon-bg-deep));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 8px var(--neon-glow-color-5),
      0 0 15px var(--neon-glow-color-5),
      inset 0 0 10px rgba(255, 0, 0, 0.1);
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Account for 10px gap */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
  }

  .hamburger-menu {
    display: block;
    position: relative;
    z-index: 1002;
    margin-left: -10px;
  }

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

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

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Start below the fixed header */
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-offset));
    background: linear-gradient(135deg, var(--neon-bg-dark), var(--neon-bg-deep));
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(-100%); /* Slide out from left */
    z-index: 999; /* Below hamburger, above overlay */
    padding: 20px 0;
    border-top: none;
    border-bottom: none;
    box-shadow: none;
  }

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

  .nav-container {
    flex-direction: column;
    padding: 0 15px;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
  }

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

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    display: none;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .game-providers-section,
  .social-media-section {
    padding: 0 15px;
  }

  .footer-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
