:root {
  --primary-color: #1A2B4C; /* Main brand color */
  --secondary-color: #FFD700; /* Accent brand color */
  --neon-primary: var(--primary-color);
  --neon-secondary: var(--secondary-color);
  --neon-accent: #f093fb; /* A vibrant accent for dynamic glows */
  --header-bg: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  --nav-bg: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  --marquee-height: 45px; /* Estimated marquee height */
  --header-top-height: 60px; /* Estimated header top bar height */
  --mobile-buttons-height: 50px; /* Estimated mobile buttons height */
  --neon-primary-rgb: 26, 43, 76; /* From #1A2B4C */
  --neon-secondary-rgb: 255, 215, 0; /* From #FFD700 */
  --neon-accent-rgb: 240, 147, 251; /* From #f093fb */
}

/* General Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #000;
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding-top: calc(var(--marquee-height) + var(--header-top-height) + 40px); /* Adjust for fixed header */
}

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

ul {
  list-style: none;
}

/* Dynamic Neon Glow Colors - 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); }
  100% { filter: hue-rotate(360deg); }
}

@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%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@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),
      inset 0 0 10px rgba(var(--neon-primary-rgb), 0.3); /* Using RGB for transparency */
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      inset 0 0 10px rgba(var(--neon-secondary-rgb), 0.3);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent),
      inset 0 0 10px rgba(var(--neon-accent-rgb), 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-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; }
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--header-bg);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(var(--neon-primary-rgb), 0.1);
  z-index: 1001;
  height: var(--marquee-height);
  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: 0 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-secondary),
    0 0 10px var(--neon-secondary),
    0 0 15px var(--neon-secondary);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

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

.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-secondary),
    0 0 10px var(--neon-secondary),
    0 0 15px var(--neon-secondary);
  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-secondary),
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    0 0 40px var(--neon-secondary);
  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-secondary),
    0 0 6px var(--neon-secondary);
}

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

/* Header Styles (Desktop First) */
.site-header {
  position: fixed;
  top: var(--marquee-height); /* Below the marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-top {
  background: var(--header-bg);
  border-bottom: 2px solid;
  border-bottom-color: var(--neon-secondary); /* Distinct border color for header top */
  animation: theme-colors 4s ease-in-out infinite; /* Theme colors for header top */
  box-shadow: 
    0 0 10px var(--neon-secondary),
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 20px rgba(var(--neon-secondary-rgb), 0.1);
  width: 100%;
  min-height: var(--header-top-height);
  display: flex; /* For container alignment */
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px; /* Padding for logo and buttons */
  width: 100%;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--neon-secondary); /* Logo uses secondary color */
  text-shadow: 
    0 0 5px var(--neon-secondary),
    0 0 10px var(--neon-secondary),
    0 0 15px var(--neon-secondary);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  position: relative;
  z-index: 1; /* Ensure logo is above other elements */
}

/* Desktop Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-secondary), var(--neon-accent)); /* Use secondary and accent for buttons */
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  border-color: var(--neon-secondary);
  animation: alternate-colors 3s ease-in-out infinite alternate; /* Alternate glow for buttons */
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-secondary);
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.btn:hover {
  animation-duration: 1.5s;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.2);
}

/* Mobile Buttons (hidden on desktop) */
.mobile-nav-buttons {
  display: none; /* Hidden by default on desktop */
}

/* Main Navigation (Desktop) */
.main-nav {
  background: var(--nav-bg);
  border-top: 2px solid;
  border-bottom: 2px solid;
  border-top-color: var(--neon-primary); /* Distinct border color for main nav */
  border-bottom-color: var(--neon-primary);
  animation: theme-colors 5s ease-in-out infinite alternate; /* Theme colors for nav */
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(var(--neon-primary-rgb), 0.1);
  width: 100%;
  display: flex; /* Desktop default: flex */
  align-items: center;
  min-height: 50px;
}

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

.nav-link {
  font-size: 17px;
  font-weight: 500;
  color: #e0e0e0;
  padding: 8px 12px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

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

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above logo and overlay */
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--neon-secondary); /* Hamburger uses secondary color */
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary);
}

.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-menu-overlay {
  display: none; /* Hidden by default on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

/* Footer Styles */
.site-footer {
  background-color: #111;
  color: #b0b0b0;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

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

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

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

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--neon-secondary);
}

.footer-col ul {
  padding: 0;
}

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

.footer-col ul li a {
  color: #b0b0b0;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--neon-secondary);
}

.footer-about .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
  display: block;
}

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

.footer-col p {
  margin-bottom: 10px;
}

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

.payment-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%); /* Subtle effect for icons */
  transition: filter 0.3s ease;
}

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

.game-providers-section,
.social-media-section {
  padding: 20px 0;
  border-top: 1px solid #333;
  margin-top: 20px;
}

.game-providers-section h4,
.social-media-section h4 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  text-align: center;
}

.game-providers-section h4::after,
.social-media-section h4::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--neon-secondary);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
}

.footer-bottom .copyright {
  color: #888;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: calc(var(--marquee-height) + var(--header-top-height) + var(--mobile-buttons-height) + 20px); /* Adjust for fixed header and mobile buttons */
  }

  .marquee-section {
    padding: 0;
    height: 40px; /* Smaller marquee height on mobile */
  }
  
  .marquee-container {
    gap: 10px;
    padding: 0 10px;
  }
  
  .marquee-icon {
    width: 25px;
    height: 25px;
  }
  
  .marquee-icon-emoji {
    font-size: 16px;
  }
  
  .marquee-text {
    font-size: 14px;
  }
  
  .marquee-separator {
    font-size: 14px;
    margin: 0 8px;
  }
  
  .marquee-content {
    gap: 20px;
    animation: marquee-scroll 25s linear infinite;
  }

  .site-header {
    top: 40px; /* Below smaller marquee */
  }

  .header-top {
    min-height: 50px; /* Smaller header top bar on mobile */
    padding: 0 15px;
  }

  .header-container {
    padding: 0; /* Remove container padding as hamburger/logo handles it */
    justify-content: flex-start; /* Align hamburger left */
    gap: 10px;
    max-width: none; /* Remove max-width on mobile */
    width: 100%;
  }

  .logo {
    flex: 1; /* Allow logo to take available space */
    text-align: center; /* Center logo */
    font-size: 24px;
    order: 2; /* Move logo to center visually */
  }

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

  .hamburger-menu {
    display: flex; /* Show hamburger menu on mobile */
    order: 1; /* Place hamburger first */
    width: 30px;
    height: 30px;
    padding: 5px;
    margin-left: 0;
    justify-content: space-between;
  }
  .hamburger-menu span {
    width: 20px;
    height: 2px;
  }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


  /* Mobile Buttons */
  .mobile-nav-buttons {
    display: flex !important; /* Always visible on mobile */
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    background: var(--header-bg); /* Match header background */
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Subtle separator */
    gap: 10px; /* Space between buttons */
    position: fixed;
    top: calc(var(--marquee-height) + var(--header-top-height)); /* Below header top */
    left: 0;
    z-index: 1000; /* Same as header */
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
    min-height: var(--mobile-buttons-height);
  }

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

  /* Main Navigation (Mobile) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical alignment */
    position: fixed;
    top: calc(var(--marquee-height) + var(--header-top-height) + var(--mobile-buttons-height)); /* Below header and mobile buttons */
    left: 0;
    width: 100%;
    height: calc(100% - (var(--marquee-height) + var(--header-top-height) + var(--mobile-buttons-height))); /* Full height minus header */
    overflow-y: auto; /* Scrollable if content overflows */
    background: var(--nav-bg);
    padding: 20px 0;
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    z-index: 1000; /* Ensure menu is above overlay */
    border: none; /* Remove border from desktop */
    box-shadow: none; /* Remove shadow from desktop */
  }

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

  .nav-container {
    flex-direction: column;
    padding: 0 15px;
    gap: 15px;
    max-width: none; /* Remove max-width on mobile */
    width: 100%;
    align-items: flex-start;
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-link:hover {
    color: var(--neon-secondary);
  }

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

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

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-col ul {
    text-align: center;
  }

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

/* Helper for no-scroll body */
body.no-scroll {
  overflow: hidden;
}