/* ============================================
   ZANDERANIMATIONS.COM — Master Stylesheet
   Neon Arcade Universe Theme
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --neon-blue: #FFB400;
  --neon-green: #39FF14;
  --deep-purple: #6B21A8;
  --hot-pink: #FF006E;
  --gold: #FFD700;
  --orange: #FF6B35;
  --red: #FF0040;
  --bg-dark: #0A0A0F;
  --bg-darker: #050508;
  --bg-card: rgba(15, 15, 30, 0.8);
  --bg-card-solid: #0F0F1E;
  --bg-glass: rgba(15, 15, 40, 0.6);
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0C0;
  --text-muted: #666680;
  --border-subtle: rgba(255, 180, 0, 0.15);
  --border-glow: rgba(255, 180, 0, 0.4);
  --font-display: 'Press Start 2P', monospace;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --transition-fast: 150ms ease;
  --transition-med: 300ms ease;
  --transition-slow: 500ms ease;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 20px rgba(255, 180, 0, 0.3);
  --shadow-glow-strong: 0 0 40px rgba(255, 180, 0, 0.5), 0 0 80px rgba(255, 180, 0, 0.2);
  --z-ticker: 100;
  --z-nav: 200;
  --z-modal: 500;
  --z-loading: 1000;
  --z-toast: 900;
}

/* Light mode overrides */
.light-mode {
  --bg-dark: #F0F0F8;
  --bg-darker: #E0E0EE;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-solid: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text-primary: #1A1A2E;
  --text-secondary: #3A3A55;
  --text-muted: #666677;
  --border-subtle: rgba(0, 0, 0, 0.1);
  --border-glow: rgba(0, 0, 0, 0.2);
  --neon-blue: #CC8800;
  --neon-green: #007A00;
  --deep-purple: #5B18A0;
  --hot-pink: #CC0058;
  --gold: #B8860B;
  --orange: #D45A00;
  --shadow-glow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-glow-strong: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Light mode — hardcoded background overrides */
.light-mode .news-ticker {
  background: rgba(240, 240, 248, 0.95);
}
.light-mode .main-nav {
  background: rgba(240, 240, 248, 0.75);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.light-mode .mobile-nav {
  background: rgba(240, 240, 248, 0.98);
}
.light-mode .mute-toggle {
  background: rgba(240, 240, 248, 0.9);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.light-mode .mute-toggle:hover {
  background: rgba(204, 136, 0, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.light-mode .cookie-consent {
  background: rgba(240, 240, 248, 0.98);
}

/* Light mode — community section */
.light-mode .community-section {
  background: #F0F0F8;
}
.light-mode .post-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}
.light-mode .post-card.pinned {
  background: rgba(184, 134, 11, 0.05);
}

/* Light mode — remove glow/text-shadow effects */
.light-mode .text-glow,
.light-mode .text-glow-green,
.light-mode .text-glow-pink,
.light-mode .text-glow-gold {
  text-shadow: none;
}
.light-mode .hero-title {
  text-shadow: none;
}
.light-mode .section-title {
  text-shadow: none;
}
.light-mode .nav-logo {
  filter: none;
  text-shadow: none;
}
.light-mode .nav-pattern {
  background: repeating-linear-gradient(
    90deg,
    rgba(204, 136, 0, 0.12) 0px 50px,
    rgba(0, 122, 0, 0.12) 50px 100px,
    rgba(91, 24, 160, 0.12) 100px 150px,
    rgba(204, 0, 88, 0.12) 150px 200px,
    rgba(184, 134, 11, 0.12) 200px 250px
  );
  background-size: 250px 100%;
}

/* Light mode — coin widget */
.light-mode .coin-widget {
  background: rgba(184, 134, 11, 0.1);
  border-color: rgba(184, 134, 11, 0.3);
}

/* Light mode — daily challenge */
.light-mode .daily-challenge {
  background: linear-gradient(135deg, rgba(91, 24, 160, 0.08), rgba(204, 136, 0, 0.08));
}

/* Light mode — ad zone border */
.light-mode .ad-zone {
  border-color: rgba(0, 0, 0, 0.08);
}

/* Light mode — video thumbnail placeholder */
.light-mode .video-thumbnail {
  background: #ddd;
}

/* Light mode — glass cards */
.light-mode .glass-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}
.light-mode .glass-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

/* Light mode — hamburger bars */
.light-mode .hamburger span {
  background: var(--text-primary);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background var(--transition-med), color var(--transition-med);
}

a { color: var(--neon-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--neon-green); }

img { max-width: 100%; height: auto; display: block; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-blue), var(--deep-purple));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--neon-blue); }

/* ---------- Typography ---------- */
.font-pixel { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: 1px; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-glow { text-shadow: 0 0 10px var(--neon-blue), 0 0 20px rgba(255, 180, 0, 0.5); }
.text-glow-green { text-shadow: 0 0 10px var(--neon-green), 0 0 20px rgba(57, 255, 20, 0.5); }
.text-glow-pink { text-shadow: 0 0 10px var(--hot-pink), 0 0 20px rgba(255, 0, 110, 0.5); }
.text-glow-gold { text-shadow: 0 0 10px var(--gold), 0 0 20px rgba(255, 215, 0, 0.5); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Neon Glow Class ---------- */
.neon-glow {
  position: relative;
  transition: box-shadow var(--transition-med), transform var(--transition-fast);
}
.neon-glow:hover {
  box-shadow: 0 0 15px rgba(255, 180, 0, 0.4), 0 0 30px rgba(255, 180, 0, 0.2), inset 0 0 15px rgba(255, 180, 0, 0.1);
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-med), box-shadow var(--transition-med), transform var(--transition-fast);
}
.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Rainbow border glow on hover */
.rainbow-border {
  position: relative;
  z-index: 1;
}
.rainbow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-green), var(--gold), var(--hot-pink), var(--deep-purple), var(--neon-blue));
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-med);
  animation: rainbowShift 3s ease infinite;
}
.rainbow-border:hover::before {
  opacity: 1;
}
.rainbow-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg-card-solid);
  z-index: -1;
}

@keyframes rainbowShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--deep-purple));
  color: white;
  border: 1px solid var(--neon-blue);
}
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.5), 0 0 40px rgba(255, 180, 0, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--neon-blue);
  border: 2px solid var(--neon-blue);
}
.btn-secondary:hover {
  background: rgba(255, 180, 0, 0.1);
  box-shadow: var(--shadow-glow);
}

.btn-neon {
  background: var(--neon-green);
  color: var(--bg-dark);
  border: none;
  font-weight: 700;
}
.btn-neon:hover {
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.5);
  transform: scale(1.05);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #FFA500);
  color: var(--bg-dark);
  border: none;
  font-weight: 700;
}

/* Button ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 600ms ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- Loading Screen ---------- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  background: var(--bg-darker);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-logo {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #FFFF00;
  text-shadow: 0 0 10px #FFFF99, 0 0 25px #FFFF00, 0 0 50px #FFE000, 0 0 100px #FFFF00;
  margin-bottom: 40px;
  letter-spacing: 2px;
}
.loading-bar-container {
  width: min(80%, 400px);
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}
.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  border-radius: 3px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--neon-blue);
}
.loading-percentage {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.loading-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
  text-align: center;
  font-style: italic;
}

/* ---------- News Ticker ---------- */
.news-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-ticker);
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  height: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--hot-pink);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-content {
  display: flex;
  animation: tickerScroll 45s linear infinite;
  white-space: nowrap;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item {
  padding: 0 40px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.ticker-item .highlight { color: var(--neon-blue); font-weight: 600; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Navigation ---------- */
.main-nav {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--transition-med);
}
.nav-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 180, 0, 0.18) 0px 50px,
    rgba(57, 255, 20, 0.18) 50px 100px,
    rgba(107, 33, 168, 0.18) 100px 150px,
    rgba(255, 0, 110, 0.18) 150px 200px,
    rgba(255, 215, 0, 0.18) 200px 250px
  );
  background-size: 250px 100%;
  animation: navPattern 8s linear infinite;
}
.main-nav > *:not(.nav-pattern) {
  position: relative;
  z-index: 1;
}
@keyframes navPattern {
  0% { background-position: 0 0; }
  100% { background-position: 250px 0; }
}
.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 4px;
  font-style: italic;
  transform: skewX(-15deg);
  background: linear-gradient(180deg, #FFD700 0%, #FF8C00 50%, #FF4500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.8)) drop-shadow(0 0 12px rgba(255, 69, 0, 0.4));
  text-shadow: none;
  white-space: nowrap;
}
.nav-avatar-link {
  flex-shrink: 0;
  line-height: 0;
}
.nav-avatar {
  width: 111px;
  height: 111px;
  border-radius: 50%;
  border: 1px solid #FFB400;
  object-fit: cover;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(255, 180, 0, 0.6);
}

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--neon-blue);
  background: rgba(255, 180, 0, 0.1);
}
.nav-link.active { border-bottom: 2px solid var(--neon-blue); }

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

/* Coin counter widget */
.coin-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
}
.coin-icon {
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--bg-dark);
  font-weight: 700;
  animation: coinPulse 2s ease infinite;
}
@keyframes coinPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 8px var(--gold); }
}
.coin-count { font-weight: 700; }
.coin-add {
  animation: coinAdd 0.5s ease;
  color: var(--neon-green);
  font-weight: 700;
}
@keyframes coinAdd {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}

/* Toggle buttons */
.toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.toggle-btn:hover {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(255, 180, 0, 0.3);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 1px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  z-index: var(--z-nav);
  flex-direction: column;
  padding: 30px 20px;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  font-size: 1.1rem;
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Collaboration credit */
.collab-text {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 5px;
  line-height: 1.8;
}
.collab-thin {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--neon-blue);
  font-size: clamp(11px, 1.8vw, 16px);
  letter-spacing: 1px;
}
.collab-mc {
  font-family: 'Silkscreen', cursive;
  font-weight: 700;
  color: var(--neon-blue);
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: 1px;
}
.yt-shimmer-wrap {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}
.yt-shimmer-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 22px;
  overflow: hidden;
  border-radius: 4px;
}
.yt-shimmer-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: ytShimmer 3s infinite;
  pointer-events: none;
}
@keyframes ytShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}
.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 300;
  font-size: clamp(1.275rem, 4.25vw, 2.975rem);
  color: var(--neon-blue);
  text-shadow: 0 0 21px var(--neon-blue), 0 0 42px rgba(255, 180, 0, 0.2);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section Layout ---------- */
.page-section {
  padding: 80px 0;
  margin-top: 92px;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--neon-blue);
  text-shadow: 0 0 15px rgba(255, 180, 0, 0.4);
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.section-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ---------- ZAX Mascot ---------- */
.zax-mascot {
  width: 80px;
  height: 100px;
  position: relative;
  display: inline-block;
}
.zax-body {
  width: 50px;
  height: 60px;
  background: linear-gradient(180deg, #444, #333);
  border-radius: 8px 8px 4px 4px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid #555;
}
.zax-head {
  width: 40px;
  height: 35px;
  background: linear-gradient(180deg, #555, #444);
  border-radius: 10px 10px 4px 4px;
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid #666;
}
.zax-eye {
  width: 8px;
  height: 8px;
  background: var(--neon-blue);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  box-shadow: 0 0 6px var(--neon-blue), 0 0 12px rgba(255, 180, 0, 0.4);
}
.zax-eye.left { left: 8px; }
.zax-eye.right { right: 8px; }
.zax-antenna {
  width: 4px;
  height: 20px;
  background: #666;
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
}
.zax-antenna::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  position: absolute;
  top: -6px;
  left: -2px;
  box-shadow: 0 0 8px var(--neon-green);
  animation: antennaBlink 1.5s ease infinite;
}
@keyframes antennaBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.zax-idle {
  animation: zaxBounce 2s ease-in-out infinite;
}
@keyframes zaxBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.zax-wave .zax-arm-right {
  animation: zaxWave 0.8s ease-in-out 3;
}
@keyframes zaxWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-30deg); }
}
.zax-arm {
  width: 10px;
  height: 25px;
  background: #444;
  border-radius: 4px;
  position: absolute;
  bottom: 20px;
}
.zax-arm-left { left: -8px; transform-origin: top center; }
.zax-arm-right { right: -8px; transform-origin: top center; }
.zax-chest-light {
  width: 12px;
  height: 4px;
  background: var(--hot-pink);
  border-radius: 2px;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--hot-pink);
  animation: chestPulse 1s ease infinite;
}
@keyframes chestPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---------- Arcade Cabinet ---------- */
.arcade-cabinet {
  width: 200px;
  perspective: 800px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.arcade-cabinet:hover { transform: scale(1.05) rotateY(-3deg); }
.cabinet-body {
  background: linear-gradient(180deg, #2a2a3e, #1a1a2e);
  border-radius: 12px 12px 6px 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.cabinet-marquee {
  background: linear-gradient(135deg, var(--deep-purple), var(--hot-pink));
  border-radius: 8px 8px 0 0;
  padding: 8px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}
.cabinet-screen {
  background: #000;
  border: 2px solid #333;
  border-radius: 4px;
  margin: 8px 0;
  padding: 20px 10px;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cabinet-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  pointer-events: none;
}
.cabinet-screen .game-name {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
  margin-bottom: 8px;
}
.cabinet-screen .high-score {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--gold);
}
.cabinet-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px;
}
.cabinet-joystick {
  width: 20px;
  height: 20px;
  background: #444;
  border-radius: 50%;
  border: 2px solid #555;
  position: relative;
}
.cabinet-joystick::after {
  content: '';
  width: 8px;
  height: 16px;
  background: #555;
  border-radius: 3px;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.cabinet-buttons {
  display: flex;
  gap: 6px;
}
.cabinet-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.cabinet-btn.red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.cabinet-btn.blue { background: var(--neon-blue); box-shadow: 0 0 6px var(--neon-blue); }

/* Arcade cabinet hover glow */
.arcade-cabinet:hover .cabinet-body {
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.3), 0 0 40px rgba(255, 180, 0, 0.1);
  border-color: var(--neon-blue);
}
.arcade-cabinet:hover .cabinet-screen {
  border-color: var(--neon-blue);
  box-shadow: inset 0 0 20px rgba(255, 180, 0, 0.2);
}

/* ---------- Arcade Grid ---------- */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  justify-items: center;
}

/* ---------- Game Modal ---------- */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-med), visibility var(--transition-med);
}
.game-modal.active {
  opacity: 1;
  visibility: visible;
}
.game-modal-content {
  position: relative;
  width: 90vw;
  max-width: 900px;
  height: 80vh;
  max-height: 700px;
  background: #000;
  border: 2px solid var(--neon-blue);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow-strong);
}
.game-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 0, 64, 0.8);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.game-modal-close:hover {
  background: var(--red);
  transform: scale(1.1);
}
.game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- CRT Scanline Overlay ---------- */
.crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}
.crt-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
}

/* ---------- Cards Grid ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- Video Cards ---------- */
.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-med);
  cursor: pointer;
}
.video-card:hover {
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px) scale(1.02);
}
.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.video-card:hover .video-play-overlay { opacity: 1; }
.play-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}
.video-info {
  padding: 14px;
}
.video-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  color: white;
}
.video-of-day-badge {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-size: 0.55rem;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  animation: badgePulse 2s ease infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
}

/* ---------- News / Articles ---------- */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition-med);
}
.article-card:hover {
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.article-category {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-green);
  margin-bottom: 8px;
}
.article-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.read-time { display: flex; align-items: center; gap: 4px; }

/* Full article view */
.article-full {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.article-full h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  color: var(--neon-blue);
}
.article-full .article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.article-full .article-body h2 {
  color: var(--neon-green);
  margin: 30px 0 15px;
}
.article-full .article-body h3 {
  color: var(--gold);
  margin: 25px 0 10px;
}
.article-full .article-body p { margin-bottom: 16px; }
.article-full .article-body ul, .article-full .article-body ol {
  margin: 12px 0 12px 24px;
  color: var(--text-secondary);
}
.article-full .article-body li { margin-bottom: 6px; }

/* ---------- Community Board ---------- */
.community-section {
  background: #1a1a2e;
}
.post-card {
  background: rgba(20, 20, 40, 0.8);
  border: 1px solid rgba(255, 180, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color var(--transition-fast);
}
.post-card:hover { border-color: var(--border-glow); }
.post-card.pinned {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.05);
}
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.post-username {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-blue);
}
.post-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}
.post-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  word-wrap: break-word;
}
.post-reactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}
.reaction-btn:hover {
  background: rgba(255, 180, 0, 0.1);
  border-color: var(--neon-blue);
}
.reaction-btn.active {
  background: rgba(255, 180, 0, 0.15);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}
.post-replies {
  margin-left: 20px;
  border-left: 2px solid var(--border-subtle);
  padding-left: 16px;
  margin-top: 12px;
}
.replies-toggle {
  font-size: 0.8rem;
  color: var(--neon-blue);
  cursor: pointer;
  margin-top: 8px;
  padding: 4px 0;
}

/* New post button */
.new-post-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--deep-purple));
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.4);
  z-index: 50;
  transition: all var(--transition-fast);
}
.new-post-fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 30px rgba(255, 180, 0, 0.6);
}

/* Post form modal */
.post-form-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.post-form {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-glow-strong);
}
.post-form h3 {
  color: var(--neon-blue);
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 12px;
  transition: border-color var(--transition-fast);
}
.form-input:focus {
  border-color: var(--neon-blue);
  outline: none;
  box-shadow: 0 0 10px rgba(255, 180, 0, 0.2);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 12px;
}
.char-count.warning { color: var(--orange); }
.char-count.danger { color: var(--red); }

/* Avatar selector */
.avatar-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.avatar-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}
.avatar-option:hover { border-color: var(--neon-blue); }
.avatar-option.selected { border-color: var(--neon-green); box-shadow: 0 0 10px rgba(57, 255, 20, 0.3); }

/* ---------- Player Profile ---------- */
.profile-section { padding: 40px 0; }
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--neon-blue);
  box-shadow: 0 0 15px rgba(255, 180, 0, 0.3);
}
.profile-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--neon-blue);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--neon-green);
  font-weight: 700;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Achievement Grid ---------- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.achievement-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all var(--transition-med);
  opacity: 0.4;
}
.achievement-badge.unlocked {
  opacity: 1;
  border-color: var(--gold);
}
.achievement-badge.unlocked:hover {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  transform: translateY(-4px);
}
.achievement-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.achievement-name {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.achievement-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Achievement unlock popup */
.achievement-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: var(--z-toast);
  background: var(--bg-card-solid);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
}
.achievement-popup .popup-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.achievement-popup .popup-icon { font-size: 3rem; margin-bottom: 12px; }
.achievement-popup .popup-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
}
.achievement-popup .popup-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
}
.achievement-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ---------- Daily Challenge ---------- */
.daily-challenge {
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.2), rgba(255, 180, 0, 0.2));
  border: 1px solid var(--deep-purple);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin: 30px 0;
}
.daily-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.daily-game {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--neon-blue);
  margin-bottom: 6px;
}
.daily-target {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.daily-timer {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.streak-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--orange);
}
.streak-flame {
  animation: flameFlicker 0.5s ease infinite alternate;
}
@keyframes flameFlicker {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(1.15); }
}

/* ---------- Ad Zones ---------- */
.ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.02);
}
.ad-zone.leaderboard { width: 728px; max-width: 100%; height: 90px; }
.ad-zone.rectangle { width: 300px; height: 250px; }
.ad-zone.banner { width: 468px; max-width: 100%; height: 60px; }

/* Interstitial ad */
.interstitial-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.interstitial-content {
  position: relative;
  max-width: 600px;
  width: 90%;
}
.interstitial-skip {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.interstitial-skip.active {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
  cursor: pointer;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background: rgba(15, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--neon-blue);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(100%);
  transition: transform var(--transition-med);
}
.cookie-consent.visible { transform: translateY(0); }
.cookie-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ---------- Privacy Page ---------- */
.privacy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.privacy-page h1 {
  color: var(--neon-blue);
  margin-bottom: 30px;
}
.privacy-page h2 {
  color: var(--neon-green);
  margin: 30px 0 12px;
  font-size: 1.3rem;
}
.privacy-page p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
}
.privacy-page ul {
  margin: 10px 0 16px 24px;
  color: var(--text-secondary);
}
.privacy-page li {
  margin-bottom: 8px;
  list-style: disc;
}

/* ---------- About Page ---------- */
.about-page { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.about-page h1 { color: var(--neon-blue); margin-bottom: 20px; }
.about-page h2 { color: var(--neon-green); margin: 30px 0 12px; }
.about-page p { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.7; }

/* ---------- Featured Highlight ---------- */
.spotlight-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 4px;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-green), var(--gold), var(--hot-pink), var(--neon-blue));
  background-size: 300% 300%;
  animation: rainbowShift 4s ease infinite;
}
.spotlight-frame > * {
  border-radius: calc(var(--radius-xl) - 4px);
}

/* ---------- Leaderboard ---------- */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}
.leaderboard-table th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.leaderboard-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
}
.leaderboard-table tr:hover { background: rgba(255, 180, 0, 0.05); }
.rank-1 { color: var(--gold); font-weight: 700; }
.rank-2 { color: #C0C0C0; font-weight: 600; }
.rank-3 { color: #CD7F32; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-section h4 {
  font-family: var(--font-heading);
  color: var(--neon-blue);
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.footer-link {
  display: block;
  color: var(--text-muted);
  padding: 4px 0;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}
.footer-link:hover { color: var(--neon-blue); }
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-pixel-art {
  display: inline-block;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity var(--transition-fast);
  font-size: 0.6rem;
  letter-spacing: 2px;
}
.footer-pixel-art:hover { opacity: 1; }

/* ---------- Coin Insert Animation ---------- */
@keyframes coinInsert {
  0% { transform: translateY(-60px) scale(1); opacity: 1; }
  70% { transform: translateY(0) scale(1); opacity: 1; }
  80% { transform: translateY(0) scale(0.8); opacity: 1; }
  100% { transform: translateY(10px) scale(0.3); opacity: 0; }
}
.coin-insert-anim {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid #DAA520;
  z-index: 10;
  animation: coinInsert 0.8s ease-in forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: #8B6914;
}

/* ---------- Seasonal Themes ---------- */
body.theme-halloween {
  --neon-blue: #FF6600;
  --neon-green: #8B00FF;
  --deep-purple: #4A0080;
  --hot-pink: #FF4500;
}
body.theme-christmas {
  --neon-blue: #FF0000;
  --neon-green: #00CC00;
  --gold: #FFD700;
}
body.theme-summer {
  --neon-blue: #00CED1;
  --neon-green: #ADFF2F;
  --hot-pink: #FF69B4;
}
body.theme-school {
  --neon-blue: #4169E1;
  --neon-green: #32CD32;
  --gold: #FFA500;
}

/* Retro mode (easter egg) */
body.retro-mode {
  filter: sepia(0.3) contrast(1.1);
}
body.retro-mode::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
}

/* ---------- Swiper Overrides ---------- */
.swiper { width: 100%; padding: 10px 0; }
.swiper-button-next, .swiper-button-prev {
  color: var(--neon-blue) !important;
  text-shadow: 0 0 10px var(--neon-blue);
}
.swiper-pagination-bullet {
  background: var(--neon-blue) !important;
  opacity: 0.4;
}
.swiper-pagination-bullet-active { opacity: 1 !important; }

/* ---------- Online Count ---------- */
.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--neon-green);
}
.online-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: onlinePulse 2s ease infinite;
}
@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(57, 255, 20, 0); }
}

/* ---------- Filter / Search ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
  background: rgba(255, 180, 0, 0.1);
}
.search-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.search-input:focus {
  border-color: var(--neon-blue);
  outline: none;
  box-shadow: 0 0 15px rgba(255, 180, 0, 0.2);
}
.search-input::placeholder { color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-avatar { width: 85px; height: 85px; }
  .hamburger { display: flex; }

  .hero-title { font-size: 1.275rem; }
  .hero-subtitle { font-size: 1rem; }

  .arcade-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .arcade-cabinet { width: 100%; }

  .card-grid.cols-3 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .profile-header { flex-direction: column; text-align: center; }

  .ad-zone.leaderboard { width: 320px; height: 50px; }
  .ad-zone.rectangle { display: none; }

  .daily-challenge { padding: 16px; }

  .game-modal-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  .post-form { padding: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }

  .arcade-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .coin-widget { padding: 3px 10px; font-size: 0.75rem; }
  .coin-icon { width: 14px; height: 14px; font-size: 0.5rem; }

  .achievements-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .achievement-badge { padding: 10px; }
  .achievement-icon { font-size: 1.5rem; }
  .achievement-name { font-size: 0.6rem; }

  .hero-cta-group { flex-direction: column; align-items: center; }

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

@media (min-width: 769px) and (max-width: 1024px) {
  .arcade-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1025px) {
  .arcade-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Animations (AOS alternative fallbacks) ---------- */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ---------- Print ---------- */
@media print { body { display: none; } }

/* ---------- Memory Game Specific ---------- */
.memory-grid {
  display: grid;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}
.memory-grid.size-4x4 { grid-template-columns: repeat(4, 1fr); }
.memory-grid.size-4x6 { grid-template-columns: repeat(4, 1fr); }
.memory-grid.size-5x6 { grid-template-columns: repeat(5, 1fr); }
.memory-grid.size-6x6 { grid-template-columns: repeat(6, 1fr); }

.memory-card {
  aspect-ratio: 1;
  perspective: 600px;
  cursor: pointer;
}
.memory-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}
.memory-card-front, .memory-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.memory-card-back {
  background: linear-gradient(135deg, var(--deep-purple), #2a1a4e);
  border: 2px solid var(--deep-purple);
  font-family: var(--font-display);
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}
.memory-card-front {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  transform: rotateY(180deg);
  font-size: 2rem;
}
.memory-card.matched .memory-card-front {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
  animation: matchPulse 0.5s ease;
}
@keyframes matchPulse {
  0% { transform: rotateY(180deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(180deg) scale(1); }
}

/* ---------- Game HUD ---------- */
.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: white;
  z-index: 5;
  pointer-events: none;
}
.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Combo Display ---------- */
.combo-display {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold);
  pointer-events: none;
  z-index: var(--z-toast);
}

/* ---------- Skeleton loading ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.05) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Hall of Fame ---------- */
.hall-of-fame {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 30px;
}
.hall-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* ── Mute Toggle Button ── */
.mute-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #FFB400;
  background: rgba(10, 10, 15, 0.85);
  color: #FFB400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 12px rgba(255, 180, 0, 0.3);
  padding: 0;
}
.mute-toggle:hover {
  background: rgba(255, 180, 0, 0.15);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.5);
}

/* ==========================================================================
   COMPREHENSIVE LIGHT MODE OVERRIDES
   All text, backgrounds, borders, and accents for full light-mode readability.
   DO NOT modify dark-mode styles above — these are additive overrides only.
   ========================================================================== */

/* --- Global body & text --- */
body.light-mode {
  background: #f5f5fa;
  color: #111111;
}
body.light-mode a { color: #B37400; }
body.light-mode a:hover { color: #006600; }

/* --- Typography: headings, paragraphs --- */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4 {
  color: #111111;
}
body.light-mode p { color: #222222; }

/* --- Navigation --- */
body.light-mode .main-nav {
  background: rgba(245, 245, 250, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .nav-logo {
  filter: none;
  text-shadow: none;
}
body.light-mode .nav-link {
  color: #222222;
}
body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  color: #B37400;
  background: rgba(179, 116, 0, 0.08);
}
body.light-mode .nav-link.active {
  border-bottom-color: #B37400;
}
body.light-mode .nav-avatar {
  border-color: #B37400;
}

/* --- News Ticker --- */
body.light-mode .news-ticker {
  background: rgba(245, 245, 250, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .ticker-item {
  color: #333333;
}
body.light-mode .ticker-item .highlight {
  color: #B37400;
}
body.light-mode .ticker-label {
  background: #CC0058;
}

/* --- Hero Section --- */
body.light-mode .hero-section {
  background: #f0f0f8;
}
body.light-mode .hero-title {
  color: #B37400;
  text-shadow: none;
}
body.light-mode .hero-subtitle {
  color: #333333;
}
body.light-mode .hero-content {
  color: #111111;
}

/* --- Collab text --- */
body.light-mode .collab-thin {
  color: #B37400;
}
body.light-mode .collab-mc {
  color: #B37400;
}

/* --- Section Headers --- */
body.light-mode .section-title {
  color: #B37400;
  text-shadow: none;
}
body.light-mode .section-tagline {
  color: #444444;
}

/* --- Buttons --- */
body.light-mode .btn-primary {
  background: linear-gradient(135deg, #B37400, #5B18A0);
  color: #ffffff;
  border-color: #B37400;
}
body.light-mode .btn-secondary {
  color: #B37400;
  border-color: #B37400;
}
body.light-mode .btn-secondary:hover {
  background: rgba(179, 116, 0, 0.1);
}
body.light-mode .btn-neon {
  background: #006600;
  color: #ffffff;
}
body.light-mode .btn-gold {
  background: linear-gradient(135deg, #B8860B, #CC8800);
  color: #ffffff;
}

/* --- Toggle buttons (theme/sound) --- */
body.light-mode .toggle-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: #333333;
}
body.light-mode .toggle-btn:hover {
  color: #B37400;
  border-color: #B37400;
  box-shadow: 0 2px 8px rgba(179, 116, 0, 0.2);
}

/* --- Glass Cards --- */
body.light-mode .glass-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  color: #111111;
}
body.light-mode .glass-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* --- Neon Glow (remove in light mode) --- */
body.light-mode .neon-glow:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* --- Video Cards (CSS class-based) --- */
body.light-mode .video-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #111111;
}
body.light-mode .video-card:hover {
  border-color: #B37400;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
body.light-mode .video-title {
  color: #111111;
}
body.light-mode .video-meta {
  color: #666666;
}
body.light-mode .video-thumbnail {
  background: #e0e0e0;
}

/* --- JSX Video Cards (za-video-card inline) --- */
body.light-mode .za-video-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .za-video-card:hover {
  box-shadow: 0 4px 20px rgba(179, 116, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .za-video-card div[style*="color: rgb(255, 255, 255)"],
body.light-mode .za-video-card div[style*="color: #fff"] {
  color: #111111 !important;
}

/* --- Article/News Cards --- */
body.light-mode .article-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #111111;
}
body.light-mode .article-card:hover {
  border-color: #B37400;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
body.light-mode .article-title {
  color: #111111;
}
body.light-mode .article-excerpt {
  color: #333333;
}
body.light-mode .article-category {
  color: #006600;
}
body.light-mode .article-footer {
  color: #666666;
}

/* --- Article full view --- */
body.light-mode .article-full h1 {
  color: #B37400;
}
body.light-mode .article-full .article-body {
  color: #222222;
}
body.light-mode .article-full .article-body h2 {
  color: #006600;
}
body.light-mode .article-full .article-body h3 {
  color: #B8860B;
}

/* --- Community Board --- */
body.light-mode .community-section {
  background: #f0f0f8;
}
body.light-mode .post-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #111111;
}
body.light-mode .post-card.pinned {
  background: rgba(184, 134, 11, 0.06);
  border-color: #B8860B;
}
body.light-mode .post-username {
  color: #B37400;
}
body.light-mode .post-time {
  color: #888888;
}
body.light-mode .post-text {
  color: #222222;
}
body.light-mode .reaction-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #444444;
}
body.light-mode .reaction-btn:hover {
  background: rgba(179, 116, 0, 0.08);
  border-color: #B37400;
}
body.light-mode .reaction-btn.active {
  background: rgba(179, 116, 0, 0.1);
  border-color: #B37400;
  color: #B37400;
}
body.light-mode .replies-toggle {
  color: #B37400;
}
body.light-mode .post-replies {
  border-left-color: rgba(0, 0, 0, 0.1);
}

/* --- Post form --- */
body.light-mode .post-form {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
body.light-mode .post-form h3 {
  color: #B37400;
}
body.light-mode .form-input {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.15);
  color: #111111;
}
body.light-mode .form-input:focus {
  border-color: #B37400;
  box-shadow: 0 0 8px rgba(179, 116, 0, 0.15);
}

/* --- Coin Widget --- */
body.light-mode .coin-widget {
  background: rgba(184, 134, 11, 0.08);
  border-color: rgba(184, 134, 11, 0.25);
  color: #8B6914;
}

/* --- Profile --- */
body.light-mode .profile-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .profile-name {
  color: #B37400;
}
body.light-mode .profile-avatar-large {
  border-color: #B37400;
  box-shadow: 0 0 8px rgba(179, 116, 0, 0.15);
}
body.light-mode .stat-card {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .stat-value {
  color: #006600;
}
body.light-mode .stat-label {
  color: #666666;
}

/* --- Achievements --- */
body.light-mode .achievement-badge {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .achievement-badge.unlocked {
  border-color: #B8860B;
}
body.light-mode .achievement-name {
  color: #111111;
}
body.light-mode .achievement-desc {
  color: #666666;
}
body.light-mode .achievement-popup {
  background: #ffffff;
  border-color: #B8860B;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}
body.light-mode .achievement-popup .popup-title {
  color: #B8860B;
}
body.light-mode .achievement-popup .popup-name {
  color: #111111;
}
body.light-mode .achievement-popup .popup-desc {
  color: #444444;
}

/* --- Daily Challenge --- */
body.light-mode .daily-challenge {
  background: linear-gradient(135deg, rgba(91, 24, 160, 0.06), rgba(179, 116, 0, 0.06));
  border-color: rgba(91, 24, 160, 0.2);
}
body.light-mode .daily-title {
  color: #B8860B;
  text-shadow: none;
}
body.light-mode .daily-game {
  color: #B37400;
}
body.light-mode .daily-target {
  color: #444444;
}
body.light-mode .daily-timer {
  color: #666666;
}
body.light-mode .streak-counter {
  color: #D45A00;
}

/* --- Leaderboard --- */
body.light-mode .leaderboard-table th {
  color: #666666;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .leaderboard-table td {
  color: #222222;
  border-bottom-color: rgba(0, 0, 0, 0.05);
}
body.light-mode .leaderboard-table tr:hover {
  background: rgba(179, 116, 0, 0.04);
}

/* --- Hall of Fame --- */
body.light-mode .hall-of-fame {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.08), rgba(255, 165, 0, 0.04));
  border-color: rgba(184, 134, 11, 0.2);
}
body.light-mode .hall-title {
  color: #B8860B;
  text-shadow: none;
}

/* --- Arcade Cabinets --- */
body.light-mode .cabinet-body {
  background: linear-gradient(180deg, #e8e8f0, #d8d8e5);
  border-color: rgba(0, 0, 0, 0.12);
}
body.light-mode .cabinet-marquee {
  color: #ffffff;
}
body.light-mode .cabinet-screen {
  background: #111;
  border-color: #555;
}
body.light-mode .cabinet-screen .game-name {
  color: #006600;
  text-shadow: 0 0 6px rgba(0, 102, 0, 0.4);
}
body.light-mode .cabinet-screen .high-score {
  color: #B8860B;
}
body.light-mode .arcade-cabinet:hover .cabinet-body {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #B37400;
}

/* --- Game Modal --- */
body.light-mode .game-modal {
  background: rgba(0, 0, 0, 0.85);
}
body.light-mode .game-modal-content {
  border-color: #B37400;
}

/* --- Filter / Search --- */
body.light-mode .filter-btn {
  color: #444444;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}
body.light-mode .filter-btn:hover,
body.light-mode .filter-btn.active {
  color: #B37400;
  border-color: #B37400;
  background: rgba(179, 116, 0, 0.06);
}
body.light-mode .search-input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #111111;
}
body.light-mode .search-input:focus {
  border-color: #B37400;
  box-shadow: 0 0 8px rgba(179, 116, 0, 0.15);
}
body.light-mode .search-input::placeholder {
  color: #999999;
}

/* --- Footer --- */
body.light-mode .site-footer {
  background: #e8e8f0;
  border-top-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .footer-section h4 {
  color: #B37400;
}
body.light-mode .footer-link {
  color: #555555;
}
body.light-mode .footer-link:hover {
  color: #B37400;
}
body.light-mode .footer-bottom {
  color: #888888;
  border-top-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .footer-pixel-art {
  color: #aaaaaa;
}

/* --- Ad Zones --- */
body.light-mode .ad-zone {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  color: #999999;
}

/* --- Cookie Consent --- */
body.light-mode .cookie-consent {
  background: rgba(255, 255, 255, 0.97);
  border-top-color: #B37400;
}
body.light-mode .cookie-text {
  color: #333333;
}

/* --- Privacy & About Pages --- */
body.light-mode .privacy-page h1,
body.light-mode .about-page h1 {
  color: #B37400;
}
body.light-mode .privacy-page h2,
body.light-mode .about-page h2 {
  color: #006600;
}
body.light-mode .privacy-page p,
body.light-mode .about-page p {
  color: #222222;
}
body.light-mode .privacy-page ul,
body.light-mode .privacy-page li {
  color: #333333;
}

/* --- Mobile Nav --- */
body.light-mode .mobile-nav {
  background: rgba(245, 245, 250, 0.98);
}
body.light-mode .mobile-nav .nav-link {
  color: #222222;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
body.light-mode .mobile-nav .nav-link:hover,
body.light-mode .mobile-nav .nav-link.active {
  color: #B37400;
}

/* --- Scrollbar (light mode) --- */
body.light-mode ::-webkit-scrollbar-track {
  background: #e8e8f0;
}
body.light-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #B37400, #5B18A0);
}
body.light-mode ::-webkit-scrollbar-thumb:hover {
  background: #B37400;
}

/* --- Loading Screen --- */
body.light-mode .loading-screen {
  background: #f0f0f8;
}
body.light-mode .loading-logo {
  color: #B8860B;
  text-shadow: 0 0 10px rgba(184, 134, 11, 0.3);
}
body.light-mode .loading-bar-container {
  background: rgba(0, 0, 0, 0.08);
}
body.light-mode .loading-percentage {
  color: #444444;
}
body.light-mode .loading-tip {
  color: #666666;
}

/* --- Online indicator --- */
body.light-mode .online-indicator {
  color: #006600;
}
body.light-mode .online-dot {
  background: #006600;
}

/* --- Skeleton loading --- */
body.light-mode .skeleton {
  background: linear-gradient(90deg, #e8e8f0 25%, #f0f0f5 50%, #e8e8f0 75%);
  background-size: 200% 100%;
}

/* --- Swiper overrides for light mode --- */
body.light-mode .swiper-button-next,
body.light-mode .swiper-button-prev {
  color: #B37400 !important;
  text-shadow: none;
}
body.light-mode .swiper-pagination-bullet {
  background: #B37400 !important;
}

/* --- Memory Game --- */
body.light-mode .memory-card-back {
  background: linear-gradient(135deg, #5B18A0, #3a1a5e);
}
body.light-mode .memory-card-front {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #111111;
}

/* --- Game HUD (keep light text on dark game backgrounds) --- */

/* --- Combo Display --- */
body.light-mode .combo-display {
  color: #B8860B;
  text-shadow: 0 0 10px rgba(184, 134, 11, 0.4);
}

/* --- New Post FAB --- */
body.light-mode .new-post-fab {
  background: linear-gradient(135deg, #B37400, #5B18A0);
  box-shadow: 0 4px 16px rgba(179, 116, 0, 0.3);
}

/* --- Rainbow border in light mode --- */
body.light-mode .rainbow-border::after {
  background: #ffffff;
}

/* --- Interstitial --- */
body.light-mode .interstitial-skip {
  color: #444444;
  border-color: rgba(0, 0, 0, 0.15);
}
body.light-mode .interstitial-skip.active {
  color: #B37400;
  border-color: #B37400;
}

/* ==========================================================================
   INLINE-STYLE OVERRIDES (requires !important to beat JSX inline styles)
   About, News, Community, Videos, Games pages all use inline style objects
   with hard-coded dark-mode colors. These overrides fix light-mode contrast.
   ========================================================================== */

/* --- About / Story Page --- */
body.light-mode .about-page {
  background: #f5f5fa !important;
}
body.light-mode .about-hero {
  background: linear-gradient(135deg, #e8e6f0, #d0cde3, #c8c5d8) !important;
}
body.light-mode .about-hero-title {
  color: #111 !important;
  text-shadow: none !important;
}
body.light-mode .about-hero-subtitle {
  color: #444 !important;
}
body.light-mode .about-section {
  background: rgba(0, 0, 0, 0.03) !important;
}
body.light-mode .about-section h2 {
  color: #111 !important;
}
body.light-mode .about-section p {
  color: #333 !important;
}
body.light-mode .about-page .zax-quote-block {
  background: linear-gradient(135deg, rgba(91, 24, 160, 0.08), rgba(0, 150, 180, 0.08)) !important;
  border-color: rgba(91, 24, 160, 0.25) !important;
}
body.light-mode .about-page .zax-quote-block blockquote {
  color: #222 !important;
}
body.light-mode .about-page h1,
body.light-mode .about-page h2,
body.light-mode .about-page h3 {
  color: #111 !important;
  text-shadow: none !important;
}
body.light-mode .about-page p,
body.light-mode .about-page span,
body.light-mode .about-page blockquote {
  color: #222 !important;
}
body.light-mode .about-page button {
  color: #fff !important;
}

/* --- News HQ Page (grid + article full views) --- */
body.light-mode .news-page h1 {
  color: #111 !important;
  text-shadow: none !important;
}
body.light-mode .news-page p {
  color: #333 !important;
}
body.light-mode .news-page span {
  color: #555 !important;
}
body.light-mode .news-page .news-hero p {
  color: #555 !important;
}
body.light-mode .news-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .news-card:hover {
  border-color: rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .news-card h3 {
  color: #111 !important;
}
body.light-mode .news-card p {
  color: #333 !important;
}
body.light-mode .news-card div[style] {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}
/* Search input in news */
body.light-mode .news-page input[type="text"] {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #111 !important;
}
/* Category filter pills */
body.light-mode .news-page button[style] {
  border-color: rgba(0, 0, 0, 0.15) !important;
}
/* Article full view — inline styled */
body.light-mode .article-full h1 {
  color: #111 !important;
  text-shadow: none !important;
}
body.light-mode .article-full div,
body.light-mode .article-full p,
body.light-mode .article-full span {
  color: #333 !important;
}
body.light-mode .article-full .article-body {
  color: #222 !important;
}
body.light-mode .article-full .article-body h2,
body.light-mode .article-full .article-body h3 {
  color: #111 !important;
}
/* Back button in article view */
body.light-mode .article-full > button {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #333 !important;
}
/* CTA buttons keep white text */
body.light-mode .news-page button[style*="linear-gradient"],
body.light-mode .article-full div[style*="border-top"] button {
  color: #fff !important;
}

/* --- Community / Squad Chat Page --- */
body.light-mode .community-page {
  color: #111 !important;
}
body.light-mode .community-page h1 {
  color: #0088aa !important;
  text-shadow: none !important;
}
body.light-mode .community-page h3 {
  color: #0088aa !important;
}
body.light-mode .community-page div[style*="rgba(26,26,46"],
body.light-mode .community-page div[style*="rgba(26, 26, 46"] {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .community-page div[style*="color: #e0e0e0"],
body.light-mode .community-page div[style*="color: rgb(224, 224, 224)"] {
  color: #222 !important;
}
body.light-mode .community-page span[style*="color: #666"],
body.light-mode .community-page div[style*="color: #666"],
body.light-mode .community-page span[style*="color: rgb(102, 102, 102)"] {
  color: #888 !important;
}
body.light-mode .community-page button[style*="color: #aaa"],
body.light-mode .community-page button[style*="color: rgb(170, 170, 170)"] {
  color: #555 !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .community-page div[style*="color: #00D4FF"],
body.light-mode .community-page span[style*="color: #00D4FF"] {
  color: #0088aa !important;
}
body.light-mode .community-page div[style*="color: #34D399"],
body.light-mode .community-page span[style*="color: #34D399"] {
  color: #008855 !important;
}
/* Modal */
body.light-mode .community-page div[style*="background: #1a1a2e"],
body.light-mode .community-page div[style*="background: rgb(26, 26, 46)"] {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}
body.light-mode .community-page input,
body.light-mode .community-page textarea {
  background: #f5f5f5 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #111 !important;
}
body.light-mode .community-page label {
  color: #666 !important;
}
/* Load more button */
body.light-mode .community-page button[style*="color: #00D4FF"] {
  color: #0088aa !important;
  background: rgba(0, 136, 170, 0.08) !important;
  border-color: rgba(0, 136, 170, 0.3) !important;
}
/* No posts placeholder */
body.light-mode .community-page div[style*="color: #666"][style*="padding: 40"] {
  color: #888 !important;
}

/* --- Videos Page --- */
body.light-mode .videos-page h1 {
  color: #111 !important;
  text-shadow: none !important;
}
body.light-mode .videos-page > p {
  color: #555 !important;
}
body.light-mode .videos-page h2 {
  color: #0088aa !important;
  text-shadow: none !important;
}
body.light-mode .videos-page .za-video-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .videos-page .za-video-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}
body.light-mode .videos-page .za-video-card div[style*="color: #fff"],
body.light-mode .videos-page .za-video-card div[style*="color: rgb(255, 255, 255)"] {
  color: #111 !important;
}
body.light-mode .videos-page .za-video-card div[style*="color: #888"],
body.light-mode .videos-page .za-video-card div[style*="color: rgb(136, 136, 136)"] {
  color: #666 !important;
}
/* Featured hero video title */
body.light-mode .videos-page div[style*="color: #fff"][style*="font-weight: bold"],
body.light-mode .videos-page div[style*="color: #fff"][style*="fontWeight: bold"],
body.light-mode .videos-page div[style*="color: rgb(255, 255, 255)"][style*="font-weight"] {
  color: #111 !important;
}
/* Channel badge section cards */
body.light-mode .videos-page div[style*="linear-gradient(145deg, #1a1a2e"],
body.light-mode .videos-page div[style*="linear-gradient(145deg, rgb(26, 26, 46)"] {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .videos-page div[style*="linear-gradient(145deg"] div[style*="color: #fff"] {
  color: #111 !important;
}
body.light-mode .videos-page div[style*="linear-gradient(145deg"] div[style*="color: #888"] {
  color: #666 !important;
}
/* Roblox filter button inactive */
body.light-mode .videos-page button[style*="linear-gradient(135deg, #2a2a4a"] {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #333 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}
/* No videos found */
body.light-mode .videos-page div[style*="color: #666"] {
  color: #888 !important;
}

/* --- Games Arcade Page --- */
body.light-mode .games-page {
  background: #f5f5fa !important;
}
body.light-mode .games-page > h1 {
  color: #0088aa !important;
  text-shadow: none !important;
}
body.light-mode .games-page .za-arcade-cabinet {
  background: linear-gradient(180deg, #e8e8f0, #ddd) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
body.light-mode .games-page .za-arcade-cabinet div[style*="background: #2a2a2a"],
body.light-mode .games-page .za-arcade-cabinet div[style*="background: rgb(42, 42, 42)"] {
  background: #e0e0e8 !important;
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .games-page .za-arcade-cabinet div[style*="color: #aaa"],
body.light-mode .games-page .za-arcade-cabinet div[style*="color: rgb(170, 170, 170)"] {
  color: #555 !important;
}
body.light-mode .games-page .za-arcade-cabinet div[style*="color: #888"],
body.light-mode .games-page .za-arcade-cabinet span[style*="color: #888"] {
  color: #666 !important;
}
/* Arcade stats bar */
body.light-mode .games-page span[style*="color: #aaa"] {
  color: #666 !important;
}
/* Arcade search input */
body.light-mode .games-page input[style] {
  background: #f5f5f5 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #111 !important;
}
/* Arcade filter buttons */
body.light-mode .games-page button[style*="background: #1a1a2e"],
body.light-mode .games-page button[style*="background: rgb(26, 26, 46)"] {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #555 !important;
}
/* No games found */
body.light-mode .games-page div[style*="color: #666"] {
  color: #888 !important;
}

/* --- Spotlight frame (home page video) --- */
body.light-mode .spotlight-frame {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* --- Home page inline styled text --- */
body.light-mode .glass-card h3 {
  color: #111 !important;
}
body.light-mode .glass-card p {
  color: #333 !important;
}

/* --- Privacy Page (inline styles) --- */
body.light-mode .privacy-page h1 {
  color: #111 !important;
  text-shadow: none !important;
}
body.light-mode .privacy-page p {
  color: #333 !important;
}
body.light-mode .privacy-page h2 {
  color: #111 !important;
}
body.light-mode .privacy-page strong {
  color: #111 !important;
}
body.light-mode .privacy-page li {
  color: #333 !important;
}
body.light-mode .privacy-page .privacy-section {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .privacy-page .privacy-hero p {
  color: #555 !important;
}
body.light-mode .privacy-page div[style*="color: rgba(255,255,255,0.35)"],
body.light-mode .privacy-page div[style*="color: rgba(255, 255, 255, 0.35)"] {
  color: #888 !important;
}

/* --- ROMZ Vault Page --- */
body.light-mode .romz-page {
  background: #f5f5fa !important;
}
body.light-mode .romz-page h1,
body.light-mode .romz-page h2,
body.light-mode .romz-page h3 {
  text-shadow: none !important;
}

/* --- Mute Toggle --- */
body.light-mode .mute-toggle {
  color: #B37400 !important;
}
body.light-mode .mute-toggle svg {
  stroke: #B37400 !important;
}

/* ==========================================================================
   FIX 7: GLOBAL LIGHT MODE — Remove all text-shadow/glow effects
   ========================================================================== */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode .game-title,
body.light-mode .arcade-title,
body.light-mode .hero-title,
body.light-mode .section-title,
body.light-mode .nav-logo,
body.light-mode .romz-title,
body.light-mode .romz-subtitle,
body.light-mode .romz-marquee-text,
body.light-mode .romz-screen-name,
body.light-mode .romz-hof-title,
body.light-mode .daily-title,
body.light-mode .za-arcade-cabinet div,
body.light-mode [style*="text-shadow"],
body.light-mode [style*="textShadow"] {
  text-shadow: none !important;
}

/* ==========================================================================
   FIX 8: STORY/ABOUT PAGE — Light mode text visibility
   ========================================================================== */
body.light-mode .about-page,
body.light-mode .about-page .about-section,
body.light-mode .about-page .about-section p,
body.light-mode .about-page .about-section h2,
body.light-mode .about-page div[style*="color: rgba(255,255,255"],
body.light-mode .about-page div[style*="color: rgb(255, 255, 255)"],
body.light-mode .about-page p[style*="color: rgba(255,255,255"],
body.light-mode .about-page div[class*="about"] p,
body.light-mode .about-page div[class*="about"] {
  color: #111 !important;
}
body.light-mode .about-page .about-hero {
  background: linear-gradient(135deg, #e8e0f0, #d0c8e8, #e0ddf0) !important;
}
body.light-mode .about-page .about-hero-title {
  color: #111 !important;
}
body.light-mode .about-page .about-hero-subtitle {
  color: #333 !important;
}
body.light-mode .about-page .about-section {
  background: rgba(0, 0, 0, 0.03) !important;
}
body.light-mode .about-page .zax-quote-block {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(6,182,212,0.08)) !important;
}
body.light-mode .about-page .zax-quote-block blockquote {
  color: #222 !important;
}

/* ==========================================================================
   FIX 9: NEWS PAGE — Light mode article visibility
   ========================================================================== */
body.light-mode .news-page {
  color: #111 !important;
}
body.light-mode .news-page h1,
body.light-mode .news-page h3 {
  color: #111 !important;
}
body.light-mode .news-card {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .news-card h3 {
  color: #111 !important;
}
body.light-mode .news-card p {
  color: #333 !important;
}
body.light-mode .news-card .news-card-author {
  color: #333 !important;
}
body.light-mode .news-card .news-card-date,
body.light-mode .news-card span[style*="color: rgba(255,255,255,0.35)"],
body.light-mode .news-card span[style*="color: rgba(255,255,255,0.4)"] {
  color: #666 !important;
}
body.light-mode .news-card:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

/* Ensure all news cards are fully opaque */
body.light-mode .news-card,
.news-card {
  opacity: 1 !important;
}

/* Full article view in light mode */
body.light-mode .article-full h1 {
  color: #111 !important;
}
body.light-mode .article-full div[style*="color: rgba(255,255,255"],
body.light-mode .article-full span[style*="color: rgba(255,255,255"],
body.light-mode .article-full p {
  color: #222 !important;
}
body.light-mode .article-full .article-body {
  color: #222 !important;
}
body.light-mode .article-full .article-body h2,
body.light-mode .article-full .article-body h3 {
  color: #111 !important;
}

/* News search and filter in light mode */
body.light-mode .news-page input[type="text"] {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #111 !important;
}
body.light-mode .news-page .news-hero p {
  color: #555 !important;
}
body.light-mode .news-filter-btn,
body.light-mode .news-category-tag {
  color: #333 !important;
  border-color: #999 !important;
  background: #e8e8e8 !important;
}
body.light-mode .news-filter-btn.active,
body.light-mode .news-filter-btn:hover {
  color: #fff !important;
  background: #555 !important;
}

