/* ==========================================================================
   Gperya (gperya1.org) — Authentic Fiesta Crimson & Golden Eagle Design System
   Mapped from brand_palette.json | 1200px Responsive Layout | 0px Overflow
   ========================================================================== */

:root {
  /* 1. Core Brand Tokens from brand_palette.json */
  --brand-primary: #993D3D;
  --brand-secondary: #CC2929;
  --brand-cta: #FFC800;
  --brand-cta-hover: #FF8000;
  --surface-bg: #3F1519;
  --surface-shell: #662929;
  --surface-card: #7E3232;
  --surface-card-elevated: #803333;
  --surface-modal: #141718;
  --surface-light-card: #FEECED;

  /* Typography & Border Tokens */
  --text-primary: #FFFFFF;
  --text-secondary: #FFF1BF;
  --text-muted: #F3D5C0;
  --text-on-cta: #3F1519;
  --border-subtle: #CB7A7A;
  --border-gold: #E2C69A;

  /* Trust & Payment Semantic Tokens */
  --pagcor-blue: #75ACFF;
  --gcash-blue: #7792BC;
  --maya-green: #78C2A2;
  --success-green: #5FEC7E;
  --danger-red: #D2365E;

  /* 2. Multi-Studio Provider Colorway Badges */
  --studio-jili-primary: #E11D48;
  --studio-jili-accent: #F59E0B;
  --studio-fc-primary: #D97706;
  --studio-fc-accent: #059669;
  --studio-pp-primary: #EA580C;
  --studio-pp-accent: #7C3AED;
  --studio-pg-primary: #8B5CF6;
  --studio-pg-accent: #FB923C;
  --studio-live-primary: #2563EB;
  --studio-live-accent: #E2E8F0;
  --studio-fishing-primary: #06B6D4;
  --studio-fishing-accent: #14B8A6;

  /* 3. Layout, Spacing & Radii */
  --container-max: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-card: 0 6px 18px rgba(20, 7, 9, 0.38);
  --shadow-floating: 0 14px 32px rgba(20, 7, 9, 0.55);
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Reset & Zero Horizontal Overflow Guarantee */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--surface-bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 50% 0%, var(--brand-primary) 0%, var(--surface-bg) 72%);
  color: var(--text-primary);
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  padding-bottom: 76px; /* Space for sticky mobile conversion bar */
}

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

a {
  color: var(--brand-cta);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* WCAG 2.2 AA Focus-Visible Indicator */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-cta);
  outline-offset: 2px;
}

/* Centered 1200px Responsive Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* ==========================================================================
   4. Desktop Horizontal Header & Mobile Slide-Out Drawer
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(102, 41, 41, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: var(--space-3);
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none !important;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
}

.brand-wordmark-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--brand-cta);
  line-height: 1.1;
}

.brand-wordmark-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Desktop Horizontal Nav with Dropdowns */
.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

@media (min-width: 980px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:focus-within > .nav-link {
  background: var(--brand-primary);
  color: var(--brand-cta);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: var(--surface-shell);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-floating);
  padding: var(--space-2);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 120;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: flex;
}

.nav-dropdown a {
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-dropdown a:hover {
  background: var(--brand-secondary);
  color: #FFFFFF;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-cta);
  color: var(--brand-cta);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  background: rgba(63, 21, 25, 0.5);
}

.btn-login:hover {
  background: var(--brand-cta);
  color: var(--text-on-cta);
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-cta) 0%, var(--brand-cta-hover) 100%);
  color: var(--text-on-cta) !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(255, 200, 0, 0.35);
}

.btn-register:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Mobile Drawer Toggle & Slide-Out Drawer */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--brand-primary);
  color: var(--brand-cta);
  font-size: 1.35rem;
  cursor: pointer;
}

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

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 7, 9, 0.72);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 310px;
  max-width: 86vw;
  background: var(--surface-bg);
  border-left: 2px solid var(--border-gold);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: var(--space-4);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-3);
}

.mobile-drawer-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface-card);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none !important;
}

.mobile-nav-list a:hover {
  background: var(--brand-secondary);
  color: var(--brand-cta);
}

/* ==========================================================================
   5. Hero Container & Breadcrumbs (H1 First Heading Rule Enforced)
   ========================================================================== */
.breadcrumb-bar {
  background: rgba(63, 21, 25, 0.65);
  border-bottom: 1px solid rgba(203, 122, 122, 0.3);
  padding: 10px 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li::after {
  content: "›";
  margin-left: 8px;
  color: var(--border-gold);
}

.breadcrumb-list li:last-child::after {
  content: "";
}

.hero-section {
  padding: var(--space-8) 0 var(--space-6);
  position: relative;
}

.hero-card {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--surface-shell) 55%, var(--surface-bg) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-floating);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 860px) {
  .hero-card {
    grid-template-columns: 1.35fr 0.65fr;
    padding: var(--space-8);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 200, 0, 0.16);
  border: 1px solid var(--brand-cta);
  color: var(--brand-cta);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.hero-card h1,
.article-content h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 var(--space-4) 0;
}

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

.hero-visual-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Dual-Intent CTA Group */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-cta) 0%, var(--brand-cta-hover) 100%);
  color: var(--text-on-cta) !important;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(255, 200, 0, 0.38);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 200, 0, 0.52);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: rgba(63, 21, 25, 0.75);
  border: 1.5px solid var(--border-gold);
  color: var(--text-secondary) !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-secondary:hover {
  background: var(--brand-secondary);
  border-color: var(--brand-cta);
  color: #FFFFFF !important;
}

/* ==========================================================================
   6. Multi-Studio Provider Colorway Badges
   ========================================================================== */
.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* JILI Games: Crimson / Amber (#E11D48 / #F59E0B) */
.badge-studio-jili {
  background: linear-gradient(135deg, var(--studio-jili-primary) 0%, var(--studio-jili-accent) 100%);
  border: 1px solid #FDE68A;
}

/* FC Slots (Fa Chai): Imperial Gold / Deep Jade (#D97706 / #059669) */
.badge-studio-fc {
  background: linear-gradient(135deg, var(--studio-fc-primary) 0%, var(--studio-fc-accent) 100%);
  border: 1px solid #A7F3D0;
}

/* PP Slots (Pragmatic Play): Bright Orange / Electric Purple (#EA580C / #7C3AED) */
.badge-studio-pp {
  background: linear-gradient(135deg, var(--studio-pp-primary) 0%, var(--studio-pp-accent) 100%);
  border: 1px solid #DDD6FE;
}

/* PG Soft Games: Electric Violet / Neon Coral (#8B5CF6 / #FB923C) */
.badge-studio-pg {
  background: linear-gradient(135deg, var(--studio-pg-primary) 0%, var(--studio-pg-accent) 100%);
  border: 1px solid #FED7AA;
}

/* Live Casino: Royal Deep Blue / Platinum (#2563EB / #E2E8F0) */
.badge-studio-live {
  background: linear-gradient(135deg, var(--studio-live-primary) 0%, #1E40AF 100%);
  border: 1px solid var(--studio-live-accent);
  color: var(--studio-live-accent);
}

/* Arcade & Fishing: Aqua Teal / Cyan (#06B6D4 / #14B8A6) */
.badge-studio-fishing {
  background: linear-gradient(135deg, var(--studio-fishing-primary) 0%, var(--studio-fishing-accent) 100%);
  border: 1px solid #CCFBF1;
  color: #042F2E;
}

/* ==========================================================================
   7. Interactive 3x2 Game Grid with Studio Filter Chips & Pagination
   ========================================================================== */
.game-lobby-section {
  margin: var(--space-8) 0;
  background: var(--surface-shell);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.lobby-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.lobby-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--brand-cta);
}

/* Filter Chip Bar */
.filter-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.filter-chip {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-bg);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--brand-cta);
  color: #FFFFFF;
}

.filter-chip.is-active {
  background: var(--brand-cta);
  color: var(--text-on-cta);
  border-color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 200, 0, 0.35);
}

/* 3x2 Responsive Game Grid */
.game-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (min-width: 540px) {
  .game-grid-3x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .game-grid-3x2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.game-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cta);
  box-shadow: var(--shadow-floating);
}

.game-card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-bg);
  overflow: hidden;
}

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

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

.game-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.rtp-tag {
  background: rgba(20, 7, 9, 0.88);
  border: 1px solid var(--success-green);
  color: var(--success-green);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
}

.game-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: var(--space-3);
}

.game-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.game-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.meta-pill {
  background: rgba(63, 21, 25, 0.65);
  border: 1px solid rgba(226, 198, 154, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
}

.game-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.btn-card-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-cta);
  color: var(--text-on-cta) !important;
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none !important;
  text-align: center;
}

.btn-card-play:hover {
  background: var(--brand-cta-hover);
}

.btn-card-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-bg);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary) !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
  text-align: center;
}

.btn-card-guide:hover {
  background: var(--brand-secondary);
  color: #FFFFFF !important;
}

/* Client-Side Pagination Bar */
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(203, 122, 122, 0.35);
}

.page-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-bg);
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--brand-cta);
  color: #FFFFFF;
}

.page-btn.is-active {
  background: var(--brand-cta);
  color: var(--text-on-cta);
  border-color: #FFFFFF;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ==========================================================================
   8. Editorial Article Content, Responsive Tables & Contextual Visuals
   ========================================================================== */
.article-shell {
  background: rgba(102, 41, 41, 0.82);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .article-shell {
    padding: var(--space-8);
  }
}

.article-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  color: var(--brand-cta);
  margin: var(--space-8) 0 var(--space-3);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 198, 154, 0.3);
}

.article-content h3 {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  margin: var(--space-6) 0 var(--space-2);
}

.article-content p,
.article-content li {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

.article-content ul,
.article-content ol {
  padding-left: 1.35rem;
}

.article-content blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, rgba(153, 61, 61, 0.65) 0%, rgba(126, 50, 50, 0.55) 100%);
  border: 1px solid rgba(226, 198, 154, 0.35);
  border-left: 4px solid var(--brand-cta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
}

.article-content code {
  font-family: inherit;
  background: rgba(255, 241, 191, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(226, 198, 154, 0.25);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.94em;
  font-weight: 700;
  white-space: nowrap;
}

.article-content td code,
.article-content th code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: inherit;
  white-space: nowrap;
}

.article-content pre {
  background: var(--surface-shell);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
}

/* Responsive Table Wrapper (Warm Crimson Palette Blend & 100% Fit) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: var(--space-6) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: var(--surface-shell);
  box-shadow: 0 4px 14px rgba(63, 21, 25, 0.25);
}

.table-responsive table,
.article-content table {
  width: 100% !important;
  max-width: 100%;
  display: table;
  table-layout: auto;
  border-collapse: collapse;
  margin: 0;
}

.article-content th {
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--surface-card) 100%);
  color: var(--text-secondary);
  text-align: left;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-weight: 800;
  border-bottom: 1.5px solid var(--border-gold);
}

.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(226, 198, 154, 0.18);
  font-size: 0.93rem;
  color: var(--text-primary);
  vertical-align: middle;
  overflow-wrap: break-word;
}

.article-content tr:last-child td {
  border-bottom: none;
}

.article-content tr:nth-child(even) td {
  background: rgba(153, 61, 61, 0.38);
}

.article-content tr:hover td {
  background: rgba(204, 41, 41, 0.28);
}

/* Contextual Inline Image Cards */
.contextual-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

@media (min-width: 680px) {
  .contextual-visual-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contextual-figure {
  margin: 0;
  background: var(--surface-bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contextual-figure img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.contextual-figure figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--surface-card);
}

/* ==========================================================================
   9. E-E-A-T Author & Verification Block
   ========================================================================== */
.eeat-author-card {
  background: linear-gradient(135deg, var(--surface-card) 0%, var(--surface-shell) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.eeat-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eeat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(117, 172, 255, 0.14);
  border: 1px solid var(--pagcor-blue);
  color: #E0F2FE;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   10. 5-Column Silo Directory & Mandatory Compliance Footer
   ========================================================================== */
.site-footer {
  background: #240B0E;
  border-top: 2px solid var(--border-gold);
  padding: var(--space-12) 0 var(--space-8);
  color: var(--text-secondary);
}

.silo-directory-title {
  font-size: 1.3rem;
  color: var(--brand-cta);
  margin: 0 0 var(--space-4) 0;
}

.silo-5col-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(203, 122, 122, 0.3);
}

@media (min-width: 560px) {
  .silo-5col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .silo-5col-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.silo-col h3 {
  font-size: 0.95rem;
  color: #FFFFFF;
  margin: 0 0 var(--space-3) 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--brand-secondary);
}

.silo-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.silo-col a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-decoration: none;
}

.silo-col a:hover {
  color: var(--brand-cta);
  text-decoration: underline;
}

/* Payment Badges & Responsible Gaming Compliance Block */
.footer-compliance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  align-items: center;
}

@media (min-width: 820px) {
  .footer-compliance-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

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

.payment-badge-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  background: #FFFFFF;
}

.age-gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-secondary);
  color: #FFFFFF;
  border: 2px solid var(--brand-cta);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

/* Sticky Mobile Bottom Conversion Bar */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(63, 21, 25, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--brand-cta);
  padding: 10px var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

@media (min-width: 980px) {
  .sticky-mobile-bar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* 21+ Age Gate Modal (Crawler-Safe Accessible Dialog) */
.age-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 7, 9, 0.86);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.age-gate-modal.is-visible {
  display: flex;
}

.age-gate-card {
  background: var(--surface-shell);
  border: 2px solid var(--brand-cta);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-floating);
}
