/* ==========================================================================
   NEW ENERGY WORKS - CSS Design System (Geo: FI)
   Vibrant Dark Cyber-Energy Aesthetics & Modern UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #070913;
  --bg-card: rgba(19, 25, 45, 0.7);
  --bg-card-hover: rgba(30, 39, 68, 0.85);
  --bg-nav: rgba(7, 9, 19, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 242, 254, 0.4);

  /* Primary Neon Accents */
  --cyan-neon: #00f2fe;
  --blue-glow: #4facfe;
  --purple-neon: #9d4edd;
  --magenta-neon: #ff007f;
  --gold-accent: #ffd700;

  /* Text Colors */
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transition & Shadows */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-cyan: 0 0 20px rgba(0, 242, 254, 0.35);
  --glow-magenta: 0 0 20px rgba(255, 0, 127, 0.35);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility (a11y) & Accessibility Focus Indicators */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--cyan-neon);
  color: #040712;
  padding: 10px 20px;
  font-weight: 800;
  border-radius: 8px;
  z-index: 10000;
  transition: top 0.2s ease;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.8);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--cyan-neon) !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* SVG Icon Styling */
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.15em;
  height: 1.15em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strip-icon .svg-icon,
.feature-icon .svg-icon {
  width: 1.8rem;
  height: 1.8rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

a {
  color: var(--cyan-neon);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-glow);
  text-shadow: var(--glow-cyan);
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan-neon), var(--purple-neon), var(--magenta-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Top Warning Bar */
.top-notice-bar {
  background: linear-gradient(90deg, #1e0033, #0f172a, #33001b);
  border-bottom: 1px solid rgba(255, 0, 127, 0.2);
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #e2e8f0;
  text-align: center;
}

.top-notice-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-18 {
  background: #ff0055;
  color: #fff;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 10, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: padding 0.3s ease, background 0.3s ease;
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
}

.brand-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan-neon);
  background: rgba(0, 242, 254, 0.1);
}

.mobile-cta-item {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-neon);
  border-color: var(--cyan-neon);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-neon), #0072ff);
  color: #04091e;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.6);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
}

.btn-accent {
  background: linear-gradient(135deg, var(--magenta-neon), var(--purple-neon));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 0, 127, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 0, 127, 0.6);
}

/* Main Container */
main {
  flex: 1;
}

.section {
  padding: 80px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan-neon);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  background: url('../images/hero_bg.webp') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 9, 19, 0.5) 0%, rgba(7, 9, 19, 0.95) 90%);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 780px;
  margin: 0 auto 36px auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-features-strip {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.strip-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
}

.strip-icon {
  font-size: 2rem;
  color: var(--cyan-neon);
  display: flex;
  align-items: center;
  justify-content: center;
}

.strip-text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.strip-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Games Grid & Cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.25);
  background: var(--bg-card-hover);
}

.game-thumb {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-thumb img {
  transform: scale(1.08);
}

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: var(--cyan-neon);
  border: 1px solid var(--cyan-neon);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.game-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Feature Cards Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--magenta-neon);
  box-shadow: var(--glow-magenta);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,242,254,0.2), rgba(157,78,221,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--cyan-neon);
  margin-bottom: 20px;
  border: 1px solid rgba(0,242,254,0.3);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Leaderboard Section Styles */
.leaderboard-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
  border-radius: var(--radius-md);
  padding-bottom: 8px;
}

.leaderboard-wrapper::-webkit-scrollbar {
  height: 6px;
}

.leaderboard-wrapper::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 3px;
}

.leaderboard-wrapper::-webkit-scrollbar-thumb {
  background: var(--cyan-neon);
  border-radius: 3px;
}

.leaderboard-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.leaderboard-table th,
.leaderboard-table td {
  white-space: nowrap;
}

.leaderboard-table th {
  padding: 12px 18px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.leaderboard-table tr.rank-row {
  background: rgba(19, 25, 45, 0.8);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.leaderboard-table tr.rank-row:hover {
  background: rgba(30, 39, 68, 0.95);
  transform: scale(1.01);
}

.leaderboard-table td {
  padding: 16px 18px;
  font-size: 0.95rem;
}

.leaderboard-table td:first-child {
  border-radius: 12px 0 0 12px;
}

.leaderboard-table td:last-child {
  border-radius: 0 12px 12px 0;
}

.player-game-mobile {
  display: none;
}

.score-badge {
  color: var(--cyan-neon);
  font-weight: 800;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
}

.rank-1 { background: gold; color: #000; box-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }
.rank-2 { background: silver; color: #000; }
.rank-3 { background: #cd7f32; color: #fff; }
.rank-other { background: rgba(255,255,255,0.1); color: #fff; }

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.faq-question:hover {
  color: var(--cyan-neon);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Newsletter Box */
.newsletter-box {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(255, 0, 127, 0.15));
  border: 1px solid var(--cyan-neon);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.2);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 24px auto 0 auto;
}

/* About / Content Section */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.content-img {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.content-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.content-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

/* Community Stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 27, 75, 0.8));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--cyan-neon);
  text-shadow: var(--glow-cyan);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Forms */
.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan-neon);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* Play Modal & HTML Canvas Game Player */
.game-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-modal.active {
  display: flex;
}

.game-modal-box {
  background: #0d1222;
  border: 1px solid var(--border-glow);
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 242, 254, 0.3);
  display: flex;
  flex-direction: column;
}

.game-modal-header {
  padding: 16px 24px;
  background: #151d35;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-modal-header h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-modal {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--magenta-neon);
}

.game-canvas-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

canvas#gameCanvas {
  background: #050811;
  width: 100%;
  max-width: 800px;
  height: 450px;
  display: block;
}

.game-controls-bar {
  padding: 16px 24px;
  background: #111827;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.game-score-display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold-accent);
}

/* THOROUGHLY DETAILED FOOTER (GEO: FI) */
.site-footer {
  background: linear-gradient(180deg, #050814 0%, #03040a 100%);
  border-top: 1px solid var(--border-glow);
  padding: 70px 40px 30px 40px;
  color: #94a3b8;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan-neon) 30%, var(--purple-neon) 70%, transparent 100%);
  box-shadow: 0 0 15px var(--cyan-neon);
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 45px;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94a3b8;
}

.footer-badges {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.footer-pill-badge {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan-neon);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
  font-family: var(--font-heading);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-neon), var(--purple-neon));
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer-links a::before {
  content: '›';
  color: var(--cyan-neon);
  font-size: 1rem;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-links a:hover::before {
  opacity: 1;
  color: var(--magenta-neon);
}

/* Glassmorphism Compliance Card in Footer */
.footer-compliance-card {
  max-width: 1280px;
  margin: 0 auto 35px auto;
  background: rgba(12, 16, 36, 0.75);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
}

.compliance-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 280px;
}

.compliance-18-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0055, #990033);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(255, 0, 85, 0.5);
  flex-shrink: 0;
}

.compliance-info h5 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0 0 4px 0;
  font-family: var(--font-heading);
}

.compliance-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.compliance-rg-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rg-link-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--cyan-neon);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rg-link-pill:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-neon);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #64748b;
}
  flex-wrap: wrap;
}

.org-link {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  color: var(--cyan-neon);
}

.org-link:hover {
  background: rgba(0, 242, 254, 0.15);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
}

/* Cookie & Age Modals */
.legal-modal {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 420px;
  background: #111728;
  border: 1px solid var(--cyan-neon);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 3000;
}

.legal-modal.active {
  display: block;
}

.legal-modal h4 {
  margin-bottom: 8px;
  color: var(--cyan-neon);
}

.legal-modal p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.legal-modal-actions {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   FULL MOBILE RESPONSIVE ENGINE (320px - 1440px)
   ========================================================================== */

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

img, video, iframe, svg, canvas {
  max-width: 100%;
}

/* Tablet & Desktop (< 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
  }
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .benefits-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Mobile Screens (< 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  .section {
    padding: 50px 24px;
  }
  
  /* Mobile Navigation Menu */
  .btn-header-cta {
    display: none !important; /* Hide crowded navbar button on mobile row */
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
  }
  .mobile-cta-item {
    display: block;
    width: 100%;
    margin-top: 10px;
  }
  .nav-mobile-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 10, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 18px 20px 24px 20px;
    gap: 6px;
    border-bottom: 1px solid var(--cyan-neon);
    box-shadow: 0 20px 40px rgba(0,0,0,0.95);
    animation: fadeInDown 0.25s ease-out;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Typography */
  .hero-title {
    font-size: clamp(1.8rem, 7.5vw, 2.5rem);
    line-height: 1.2;
  }
  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .content-text h2 {
    font-size: 1.6rem;
  }

  /* Grids & Cards */
  .games-grid, .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .category-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  /* Mobile Leaderboard Transformation */
  .leaderboard-wrapper {
    overflow-x: visible !important;
    padding-bottom: 0;
  }
  .leaderboard-table {
    min-width: 100% !important;
    width: 100% !important;
    border-spacing: 0;
    display: block;
  }
  .leaderboard-table thead {
    display: none !important;
  }
  .leaderboard-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .leaderboard-table tr.rank-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(0, 242, 254, 0.25) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .leaderboard-table tr.rank-row:hover {
    transform: none;
  }
  .col-game {
    display: none !important;
  }
  .col-rank {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 !important;
  }
  .col-player {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    margin-left: 12px;
    margin-right: 12px;
    padding: 0 !important;
    overflow: hidden;
  }
  .player-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player-game-mobile {
    display: block !important;
    font-size: 0.78rem;
    color: var(--cyan-neon);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
  }
  .col-score {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    padding: 0 !important;
  }
  .score-badge {
    display: inline-block;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.35);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--cyan-neon);
    font-weight: 800;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  /* Newsletter & Stats */
  .newsletter-box {
    padding: 30px 16px;
  }
  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }
  .newsletter-form input {
    width: 100%;
  }
  .stats-container {
    padding: 24px 16px;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat-number {
    font-size: 2.2rem;
  }

  /* Footer Adaptation */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-compliance-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 16px;
  }
  .compliance-badge-18 {
    margin: 0 auto;
  }
  .responsible-orgs {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Game Canvas & Play Modal Mobile Responsiveness */
  .game-modal {
    padding: 10px;
  }
  .game-modal-box {
    max-height: 96vh;
    border-radius: 12px;
  }
  .game-modal-header {
    padding: 12px 16px;
  }
  .game-modal-header h3 {
    font-size: 1rem;
  }
  .game-canvas-wrapper {
    min-height: auto;
    aspect-ratio: 16 / 9;
    padding: 0;
  }
  canvas#gameCanvas {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
  .game-controls-bar {
    padding: 12px 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .game-score-display {
    font-size: 0.95rem;
  }

  /* Legal & Cookie Modals Mobile */
  .legal-modal {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 16px;
  }
  .contact-form-container {
    padding: 24px 16px;
  }
}

/* Extra Small Phones (< 480px) */
@media (max-width: 480px) {
  .container, .section {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .stats-container {
    grid-template-columns: 1fr;
  }
  .leaderboard-table th, .leaderboard-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .game-modal-header h3 {
    font-size: 0.9rem;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   DALLAS MARCH STYLE COMPONENTS (CYBER NEON THEME)
   ========================================================================== */

/* Game Iframe Modal Window */
.gmodal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.gmodal[hidden] {
  display: none !important;
}

.gmodal__panel {
  width: 100%;
  max-width: 1040px;
  height: 85vh;
  max-height: 720px;
  background: #090e24;
  border: 1px solid var(--cyan-neon);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.35);
  position: relative;
}

.gmodal__bar {
  background: #060919;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.gmodal__bar h2 {
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmodal__bar h2::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--cyan-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-neon);
}

.gmodal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmodal__btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.gmodal__btn:hover {
  background: rgba(0, 242, 254, 0.2);
  color: var(--cyan-neon);
  border-color: var(--cyan-neon);
}

.gmodal__frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* Feature Cards (Why Choose Us) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-neon), var(--purple-neon));
  opacity: 0;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--glow-cyan);
}

.why-card:hover::before {
  opacity: 1;
}

.why-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-neon);
  font-size: 1.5rem;
}

.why-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Live Embedded Demo Game Section */
.hm-demo {
  margin-top: 40px;
}

.hm-demo__shell {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  height: 520px;
  background: #080c1d;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.25);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-demo__shell iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.hm-demo__poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--cyan-neon);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  padding: 20px;
}

.hm-demo__poster svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--cyan-neon);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px var(--cyan-neon));
}

/* Reviews Carousel */
.reviews-section {
  position: relative;
  overflow: hidden;
}

.reviews-track-container {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease-in-out;
}

.review-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 992px) {
  .review-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .review-card {
    flex: 0 0 100%;
  }
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-neon), var(--purple-neon));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #04091e;
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.review-who h3 {
  font-size: 1rem;
  margin: 0 0 4px 0;
  color: #fff;
}

.review-stars {
  color: var(--gold-accent);
  display: flex;
  gap: 3px;
  font-size: 0.9rem;
}

.review-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.reviews-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.reviews-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  color: var(--cyan-neon);
  border-color: var(--cyan-neon);
}

.reviews-dots {
  display: flex;
  gap: 8px;
}

.reviews-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.reviews-dot.active {
  background: var(--cyan-neon);
  box-shadow: 0 0 10px var(--cyan-neon);
  width: 24px;
  border-radius: 10px;
}

/* Floating Support Chat Widget */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-neon), var(--purple-neon));
  color: #04091e;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 25px rgba(0, 242, 254, 0.5);
  z-index: 9999;
  transition: var(--transition);
}

.chat-toggle:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 6px 30px rgba(0, 242, 254, 0.7);
}

.chat-toggle svg {
  width: 26px;
  height: 26px;
  stroke: #04091e;
  stroke-width: 2.2;
  fill: none;
}

.chat-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  background: #090e24;
  border: 1px solid var(--cyan-neon);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.25);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInUp 0.3s ease-out;
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-panel__head {
  background: #060919;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cyan-neon);
  color: #04091e;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-who {
  flex: 1;
}

.chat-who h2 {
  font-size: 0.95rem;
  margin: 0;
  color: #fff;
}

.chat-who p {
  font-size: 0.75rem;
  color: #10b981;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-who p::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.chat-close:hover {
  color: #fff;
}

.chat-log {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(7, 9, 19, 0.6);
}

.msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  word-break: break-word;
}

.msg--bot {
  background: rgba(19, 25, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg--user {
  background: linear-gradient(135deg, var(--cyan-neon), #0072ff);
  color: #04091e;
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-form {
  padding: 12px;
  background: #060919;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
}

.chat-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 16px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--cyan-neon);
}

.chat-form button {
  background: var(--cyan-neon);
  color: #04091e;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

