/* ==========================================================================
   JILIQQ Philippines: Master Design System & Component Library
   Standardized with /casino-design-system and /ace58-ui-guidance
   Full-Width Responsive Architecture (1200px-1280px Desktop Container)
   ========================================================================== */

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

:root {
  /* --- Visual Aesthetic Tokens: Luxury Dark Casino --- */
  --bg-base: #0f0f12;               /* Deep Obsidian Canvas */
  --bg-surface: #18181f;            /* Primary Surface / Section Canvas */
  --bg-card: #21212b;               /* Rich Card Elevation */
  --bg-card-hover: #292936;         /* Interactive Card Hover */
  --bg-card-elevated: #2e2e3d;      /* Highlighted Card Elevation */
  --bg-glass: rgba(33, 33, 43, 0.85);

  /* --- Borders & Outlines --- */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 215, 0, 0.15);
  --border-gold-glow: rgba(255, 215, 0, 0.4);
  --border-focus: #FFD700;

  /* --- Vibrant Gold Gradient Accents --- */
  --accent-gold-start: #FFD700;
  --accent-gold-mid: #FDB931;
  --accent-gold-end: #d97706;
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 50%, #d97706 100%);
  --gold-gradient-hover: linear-gradient(135deg, #FFF066 0%, #FFD700 50%, #FDB931 100%);
  --accent-gold-glow: rgba(255, 215, 0, 0.35);

  /* --- Status & Auxiliary Accents --- */
  --accent-green: #10b981;          /* Verified / Active RTP */
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  --accent-cyan: #06b6d4;           /* Fast E-Wallet / Tech */
  --accent-purple: #8b5cf6;         /* VIP / Exclusives */
  --accent-red: #ef4444;            /* High Volatility / Alert */

  /* --- Typography Scale & Color --- */
  --text-main: #f8fafc;             /* Primary High Contrast */
  --text-muted: #cbd5e1;            /* Secondary Body / Description */
  --text-subtle: #94a3b8;           /* Muted Meta & Footnotes */
  --text-gold: #FFD700;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* --- Sizing, Elevation & Grid --- */
  --max-width: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 25px rgba(255, 215, 0, 0.35);
  --shadow-gold-hover: 0 0 35px rgba(255, 215, 0, 0.55);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #1c1c26 0%, #0f0f12 75%);
  padding-bottom: 72px; /* clearance for mobile bottom nav */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container Utility (1200px - 1280px max-width) */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Headings Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  h2 { font-size: 2.25rem; }
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Content Prose Links (High-Visibility Contextual Hyperlinks)
   ========================================================================== */
.spoke-content a:not(.btn),
article a:not(.btn),
.data-table a:not(.btn) {
  color: #FFD700 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255, 215, 0, 0.7) !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline;
}

.spoke-content a:not(.btn):hover,
article a:not(.btn):hover,
.data-table a:not(.btn):hover {
  color: #FFF066 !important;
  text-decoration-color: #FFF066 !important;
  text-decoration-thickness: 2px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* External verified entity links subtle distinction (Cyan) */
.spoke-content a[href^="http"]:not([href*="jiliqq8.net"]):not([href*="localhost"]):not([href*="d6v2h8j.com"]):not(.btn),
article a[href^="http"]:not([href*="jiliqq8.net"]):not([href*="localhost"]):not([href*="d6v2h8j.com"]):not(.btn) {
  color: #38bdf8 !important;
  text-decoration-color: rgba(56, 189, 248, 0.7) !important;
}

.spoke-content a[href^="http"]:not([href*="jiliqq8.net"]):not([href*="localhost"]):not([href*="d6v2h8j.com"]):not(.btn):hover,
article a[href^="http"]:not([href*="jiliqq8.net"]):not([href*="localhost"]):not([href*="d6v2h8j.com"]):not(.btn):hover {
  color: #7dd3fc !important;
  text-decoration-color: #7dd3fc !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Synergistic Hub & Sibling Guides Box */
.spoke-content blockquote {
  background: var(--bg-surface);
  border-left: 4px solid #FFD700;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 28px 0;
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.spoke-content blockquote p {
  color: var(--text-main);
  margin-bottom: 0;
  font-size: 0.98rem;
}

.spoke-content blockquote a {
  color: #FFD700 !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-decoration-color: rgba(255, 215, 0, 0.8) !important;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-align: center;
  transition: all var(--transition-normal);
  white-space: nowrap;
  cursor: pointer;
}

/* Primary Gold Gradient CTA (Play Now / Deposit) */
.btn-primary, .btn-gold {
  background: var(--gold-gradient);
  color: #0b0c10;
  box-shadow: 0 4px 18px var(--accent-gold-glow);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary:hover, .btn-gold:hover {
  background: var(--gold-gradient-hover);
  color: #000000;
  box-shadow: var(--shadow-gold-hover);
  transform: translateY(-2px);
}

/* Secondary Ghost / Outline Button (Read Guide / Learn) */
.btn-outline, .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline:hover, .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFD700;
  color: #FFD700;
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.btn-cyan:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-notice-bar {
  background: linear-gradient(90deg, #18181f 0%, #21212b 50%, #18181f 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-tag.green {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #FFD700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Hamburger Toggle */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #121217;
  border-bottom: 2px solid var(--border-card);
  padding: 20px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: block;
  animation: slideDown 0.25s ease-out;
}

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

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-links a {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
}

.mobile-nav-links a:hover {
  background: var(--bg-card);
  color: #FFD700;
}

/* ==========================================================================
   Hero Section with Casino Flashy Background & Dual CTAs
   ========================================================================== */
.hero-container {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background: linear-gradient(180deg, rgba(15, 15, 18, 0.75) 0%, rgba(24, 24, 31, 0.95) 100%),
              url('../../images/casino-ambient-bg.webp') center/cover no-repeat;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-title .gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-dual-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-assurance {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.payment-pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-pill-row img {
  height: 28px;
  width: auto;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 2px 6px;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  background: var(--bg-card);
}

.hero-visual-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-normal);
}

.hero-visual-card:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 15, 18, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Interactive 3x2 Grid Boxes with Pagination (6 Items Per Page)
   ========================================================================== */
.games-section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title-wrap h2 {
  margin-bottom: 6px;
}

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

/* Category Filter Tabs */
.category-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.filter-tab {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--gold-gradient);
  color: #0b0c10;
  border-color: #FFD700;
}

/* 3x2 Grid Box Container */
.games-3x2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .games-3x2-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-3x2-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   5x2 Category Grid (Homepage Category Directory Section)
   ========================================================================== */
.categories-5x2-grid,
.games-3x2-grid.categories-5x2-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

@media (min-width: 480px) {
  .categories-5x2-grid,
  .games-3x2-grid.categories-5x2-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (min-width: 768px) {
  .categories-5x2-grid,
  .games-3x2-grid.categories-5x2-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
}

@media (min-width: 1024px) {
  .categories-5x2-grid,
  .games-3x2-grid.categories-5x2-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
  }
}

.categories-5x2-grid .directory-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.categories-5x2-grid .directory-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-glow);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
}

.categories-5x2-grid .game-card-thumb {
  height: 125px;
  position: relative;
  overflow: hidden;
  background: #11141d;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.categories-5x2-grid .game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.categories-5x2-grid .directory-card:hover .game-card-thumb img {
  transform: scale(1.06);
}

.categories-5x2-grid .game-card-body {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.categories-5x2-grid .game-card-title {
  font-size: 0.95rem !important;
  line-height: 1.35;
  margin-bottom: 6px;
  font-weight: 700;
}

.categories-5x2-grid .game-card-title a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.categories-5x2-grid .game-card-desc {
  font-size: 0.78rem !important;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.categories-5x2-grid .game-card-actions .btn {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  width: 100%;
  border-radius: var(--radius-full);
}

/* Game Placecard */
.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-glow);
  box-shadow: var(--shadow-gold);
}

/* Directory Card Component */
.directory-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.directory-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-glow);
  box-shadow: var(--shadow-gold);
}

.directory-card .game-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.directory-card .game-card-title a {
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.directory-card:hover .game-card-title a {
  color: #FFD700;
}

.game-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11141d;
}

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

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

.game-card-provider {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.game-card-stats {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.stat-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-pill.rtp {
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}

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

.game-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.game-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

/* Dual Buttons on Placecard */
.game-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.game-card-actions .btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.85rem;
}

/* Pagination Controls */
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.page-btn:hover {
  background: var(--bg-card-hover);
  border-color: #FFD700;
  color: #ffffff;
}

.page-btn.active {
  background: var(--gold-gradient);
  color: #0b0c10;
  border-color: #FFD700;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   Content Sections, Feature Spotlights & Contextual Media
   ========================================================================== */
.content-section {
  padding: 72px 0;
  border-top: 1px solid var(--border-subtle);
}

.feature-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}

@media (min-width: 992px) {
  .feature-spotlight {
    grid-template-columns: 1fr 1fr;
    padding: 48px;
  }
}

.feature-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
}

.feature-media img {
  width: 100%;
  height: auto;
}

.feature-text h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

/* Comparison Tables */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 28px 0;
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th, .data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #FFD700;
  font-family: var(--font-heading);
  font-weight: 700;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all var(--transition-fast);
}

.faq-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

/* ==========================================================================
   Footer Component & Compliance Bar
   ========================================================================== */
.site-footer {
  background: #09090c;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1.1fr 1fr 1fr 1.2fr;
  }
}

/* Postcard Thumbnail & Badges */
.game-card-thumb {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
  background: #0d121d;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.game-card:hover .game-card-thumb img,
.directory-card:hover .game-card-thumb img {
  transform: scale(1.06);
}

.game-card-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

/* Page Hero Container (First Container) */
.page-hero-container {
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 32px;
  }
}

.hero-image-side {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 9;
  max-height: 320px;
  background: #0b0e14;
}

.hero-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-side:hover img {
  transform: scale(1.03);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 14, 20, 0.88) 0%, rgba(11, 14, 20, 0.2) 50%, transparent 100%);
  pointer-events: none;
}

.hero-image-badge-bar {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: #ffffff;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.footer-links a:hover {
  color: #FFD700;
}

.footer-compliance-box {
  background: #14141a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--text-subtle);
  line-height: 1.6;
}

.compliance-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge-21 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  color: #ef4444;
  font-weight: 800;
  font-size: 0.95rem;
}

.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-subtle);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Mobile Sticky Bottom Navigation (Touch-Friendly)
   ========================================================================== */
.mobile-sticky-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 15, 18, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-card);
  z-index: 990;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1024px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.sticky-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.sticky-nav-item.active, .sticky-nav-item:hover {
  color: #FFD700;
}

.sticky-nav-item .icon {
  font-size: 1.15rem;
}

.sticky-nav-item.cta {
  background: var(--gold-gradient);
  color: #0b0c10;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
}

/* ==========================================================================
   Age Gate Modal (18+ / 21+) — Strict Non-Heading Compliance
   ========================================================================== */
.age-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-modal-overlay.active {
  display: flex;
}

.age-modal-box {
  background: #18181f;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

/* Uses styled div, NOT h1-h6 */
.age-modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.age-modal-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.age-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
