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

  /* Neon base colors derived from theme for dynamic animations */
  --neon-primary-flow: var(--primary-color); /* Green */
  --neon-secondary-flow: var(--register-color); /* Red */
  --neon-accent-flow: var(--register-login-font-color); /* Yellow */

  /* Default neon glow colors for non-animated elements or fallback */
  --neon-glow-base: #FFFF00; /* Bright Yellow */
  --neon-glow-alt: #FF00FF; /* Magenta */
  --neon-glow-accent: #00FFFF; /* Cyan */

  --header-offset: 155px; /* Desktop: Marquee 45px + Header-top 60px + Main-nav 50px */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 130px; /* Mobile: Marquee 30px + Header-top 50px + Mobile-buttons 50px */
  }
}

/* Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #121212;
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden;
}

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

/* Neon Animations */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary-flow);
    box-shadow:
      0 0 10px var(--neon-primary-flow),
      0 0 20px var(--neon-primary-flow);
  }
  33% {
    border-color: var(--neon-secondary-flow);
    box-shadow:
      0 0 10px var(--neon-secondary-flow),
      0 0 20px var(--neon-secondary-flow);
  }
  66% {
    border-color: var(--neon-accent-flow);
    box-shadow:
      0 0 10px var(--neon-accent-flow),
      0 0 20px var(--neon-accent-flow);
  }
}

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

@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, #0a0a0a, #1a1a2e, #16213e);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-glow-base),
    0 0 20px var(--neon-glow-base),
    0 0 30px var(--neon-glow-base),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
  z-index: 1001;
  height: 45px; /* Explicit height for offset calculation */
  display: flex;
  align-items: center;
}

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

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

.marquee-icon-emoji {
  font-size: 24px;
  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-base),
    0 0 10px var(--neon-glow-base),
    0 0 15px var(--neon-glow-base);
  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: 16px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-shadow:
    0 0 5px var(--neon-glow-base),
    0 0 10px var(--neon-glow-base),
    0 0 15px var(--neon-glow-base);
  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-base),
    0 0 20px var(--neon-glow-base),
    0 0 30px var(--neon-glow-base),
    0 0 40px var(--neon-glow-base);
  transform: scale(1.05);
  color: #ffffff;
}

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

/* Header Section */
.site-header {
  position: fixed;
  top: 45px; /* Adjusted based on marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: #ffffff;
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-accent-flow),
    0 0 20px var(--neon-accent-flow),
    0 0 30px var(--neon-accent-flow),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
  width: 100%;
  min-height: 60px; /* Explicit height for offset calculation */
  display: flex;
  align-items: center;
}

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

.logo {
  color: #ffffff; /* Regular style, no neon glow */
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase; /* KU CA SI NO */
  display: block;
  line-height: 1;
}

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

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

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1002; /* Above other header elements */
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Neon glow for hamburger */
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { bottom: 0; }

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

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

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-secondary-flow),
    0 0 20px var(--neon-secondary-flow),
    0 0 30px var(--neon-secondary-flow),
    inset 0 0 20px rgba(255, 0, 255, 0.1);
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 50px; /* Explicit height for offset calculation */
}

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

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

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

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

.site-footer h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 15px;
}

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

.site-footer ul li a {
  color: #f0f0f0;
  text-decoration: none;
  display: block;
  padding: 5px 0;
}

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

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

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

.footer-logo {
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
}

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

.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;
  object-fit: contain;
}

.game-providers-section, .social-media-section {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .marquee-section {
    height: 30px; /* Mobile marquee height */
    padding: 0px 0px;
  }

  .marquee-container {
    gap: 10px;
    padding: 0px 2px;
  }

  .marquee-icon {
    width: 20px;
    height: 20px;
  }

  .marquee-icon-emoji {
    font-size: 14px;
  }

  .marquee-text {
    font-size: 14px;
  }

  .marquee-separator {
    font-size: 14px;
    margin: 0 10px;
  }

  .marquee-content {
    gap: 20px;
    animation: marquee-scroll 25s linear infinite;
  }

  .site-header {
    top: 30px; /* Adjusted based on mobile marquee height */
  }

  .header-top {
    min-height: 50px; /* Mobile header-top height */
  }

  .header-container {
    padding: 10px 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between; /* Hamburger left, logo center */
    position: relative; /* For logo centering */
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px;
    position: absolute; /* Force absolute positioning for centering */
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Allow content width */
    max-width: calc(100% - 80px); /* Adjust based on hamburger width */
  }

  .hamburger-menu {
    display: block;
    order: -1; /* Place it first */
    align-self: center;
    z-index: 1002;
    margin-right: auto; /* Push logo to center */
  }

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

  .mobile-nav-buttons {
    display: flex !important;
    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, #0a0a0a, #1a1a2e, #16213e); /* Match header-top background */
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 5px var(--neon-accent-flow),
      0 0 10px var(--neon-accent-flow);
    min-height: 50px; /* Mobile button area height */
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-offset); /* Below the fixed header + buttons */
    left: 0;
    width: 70%; /* Adjust as needed */
    height: calc(100% - var(--header-offset));
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 20px 0;
    overflow-y: auto;
  }

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

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

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

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

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

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

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

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

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

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

  .payment-methods, .game-providers-section, .social-media-section {
    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;
  }
}
