/* ==========================================================================
   BET88 MODERN RESPONSIVE WEB PORTAL DESIGN SYSTEM
   Theme Tokens, Responsive Fluid Grid, Header, Game Cards & Authority Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Core Colors (Extracted from live Bet88 Production System) */
  --primary: #4c4296;
  --primary-hover: #6156b4;
  --primary-active: #3a3272;
  --primary-light: rgba(76, 66, 150, 0.15);

  /* High-Contrast Conversion Accent (Neon Magenta) */
  --accent: #ef14c8;
  --accent-hover: #f243d3;
  --accent-active: #c20da2;
  --accent-glow: rgba(239, 20, 200, 0.35);

  /* Gold & Ribbon Highlights */
  --gold: #ff9b08;
  --gold-hover: #ffa929;
  --gold-glow: rgba(255, 155, 8, 0.3);

  /* Backgrounds & Canvas Surfaces */
  --bg: #120d27;
  --bg-deep: #0a0618;
  --surface: #2f2768;
  --surface-dark: #1a153b;
  --surface-hover: #3d3380;
  --surface-card: #221b4e;
  --border-surface: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(239, 20, 200, 0.6);

  /* Header & Navigation */
  --header-bg: rgba(53, 41, 101, 0.94);
  --header-border: rgba(255, 255, 255, 0.08);

  /* Text & Typography */
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-inverse: #0a0618;

  /* Status Tokens */
  --success: #28a745;
  --success-bg: rgba(40, 167, 69, 0.15);
  --danger: #c2024c;
  --danger-bg: rgba(194, 2, 76, 0.15);
  --warning: #ff9800;

  /* Typography Stack: Zero Render-Blocking System Font */
  --font-system: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 25px rgba(10, 6, 24, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Layout Widths */
  --container-max: 1320px;
  --header-height: 72px;
}

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

html {
  font-family: var(--font-system);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.55;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(76, 66, 150, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(239, 20, 200, 0.12) 0%, transparent 45%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

strong, b {
  font-weight: 700;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Fluid Container Architecture
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1400px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   4. Global Header Navigation (.site-header)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.primary-nav {
  display: none;
}

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

  .nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color 0.2s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--text-main);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    border-radius: var(--radius-pill);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-dark);
  border: 1px solid var(--border-surface);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-trigger:hover {
  border-color: var(--primary-hover);
  color: var(--text-main);
  background: var(--surface);
}

.search-trigger kbd {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

@media (max-width: 640px) {
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .search-trigger {
    padding: 0.5rem;
  }
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-login:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

@media (max-width: 480px) {
  .btn-login {
    display: none;
  }
}

.btn-register-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #c20da2 100%);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-register-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface-dark);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--surface);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Header Component Aliases and Fallbacks */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav {
  display: none;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-login-header:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

.btn-register-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #c20da2 100%);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-register-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Editorial Featured Media Banner
   -------------------------------------------------------------------------- */
.editorial-featured-media {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: var(--surface-dark, #1a153b);
  border: 1px solid var(--border-surface, rgba(255, 255, 255, 0.1));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.editorial-featured-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.editorial-featured-media:hover img {
  transform: scale(1.02);
}

.editorial-featured-media figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-dim, rgba(255, 255, 255, 0.65));
  background: rgba(18, 13, 39, 0.95);
  border-top: 1px solid var(--border-surface, rgba(255, 255, 255, 0.08));
  line-height: 1.4;
}

@media (max-width: 767px) {
  .editorial-featured-media {
    margin: 1rem 0 1.5rem;
    border-radius: var(--radius-md, 10px);
  }
  .editorial-featured-media figcaption {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Spoke Postcards Showcase: 4-Column Grid on Web, 2-Column Grid on Mobile
   -------------------------------------------------------------------------- */
.spoke-postcards-section {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--surface-card, #1A1235);
  border: 1px solid var(--border-surface, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
}

.spoke-postcards-section .editorial-h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #FFFFFF);
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.spoke-postcards-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #B0BEC5);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.spoke-postcards-grid {
  display: grid;
  gap: 1rem;
}

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

@media (min-width: 768px) and (max-width: 1023px) {
  .spoke-postcards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .spoke-postcards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}


/* Mobile Slide-Out Drawer Navigation */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 24, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 340px;
  background: var(--surface-dark);
  border-left: 1px solid var(--border-surface);
  z-index: 1060;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

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

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

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.drawer-link:hover,
.drawer-link.active {
  color: var(--text-main);
  background: var(--surface);
}

.drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section (Strictly H1 First DOM Heading)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 3rem 0 3.5rem;
  position: relative;
}

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

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 155, 8, 0.12);
  border: 1px solid rgba(255, 155, 8, 0.35);
  color: #ffb84d;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.hero-h1 {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

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

.hero-p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #c20da2 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--surface);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--primary-hover);
}

/* Trust Bar Component */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-surface);
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  border: 1px solid var(--border-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

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

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

/* --------------------------------------------------------------------------
   6. General Section Layout & Typography (H2, Lead)
   -------------------------------------------------------------------------- */
.content-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

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

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 780px;
}

/* --------------------------------------------------------------------------
   7. Category Hub Directory Cards
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

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

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-card);
}

.category-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-dark);
  overflow: hidden;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-media img {
  transform: scale(1.05);
}

.category-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.category-p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.category-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   8. Responsive Game & Placecard Grids
   -------------------------------------------------------------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.15rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.game-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 20, 200, 0.4);
  box-shadow: 0 12px 28px rgba(10, 6, 24, 0.6);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-dark);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover .card-media img {
  transform: scale(1.06);
}

.card-badge-studio {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 6, 24, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
}

.card-badge-rtp {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(40, 167, 69, 0.9);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.45rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.btn-card-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, #e07000 100%);
  color: #000000;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-card-play:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.btn-card-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-guide:hover {
  background: var(--surface);
  color: var(--text-main);
  border-color: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   9. Featured Promotions & VIP Rebates Cards
   -------------------------------------------------------------------------- */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

.promo-card {
  background: var(--surface-card);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.promo-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 155, 8, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.promo-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.promo-p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.promo-terms {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--primary-hover);
}

.promo-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. Step-by-Step Player Tutorials Component
   -------------------------------------------------------------------------- */
.tutorials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.tutorial-card {
  background: var(--surface-card);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tutorial-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tutorial-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tutorial-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.tutorial-footer-link {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tutorial-footer-link:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   11. Frequently Asked Questions (Accordion Component)
   -------------------------------------------------------------------------- */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 900px;
}

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

.faq-item[open] {
  border-color: var(--primary-hover);
  background: var(--surface-dark);
}

.faq-summary {
  padding: 1.15rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] .faq-summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. Authority Footer & Disclaimers (.site-footer)
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-surface);
  padding-top: 4rem;
  padding-bottom: 2rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
    gap: 3rem;
  }
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.compliance-notice {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-nav-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.trust-badge-item svg {
  flex-shrink: 0;
  color: var(--success);
}

.sub-footer {
  border-top: 1px solid var(--border-surface);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
}

@media (min-width: 768px) {
  .sub-footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.responsible-warning {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffb84d;
  font-weight: 600;
  background: rgba(255, 155, 8, 0.08);
  border: 1px solid rgba(255, 155, 8, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff9800;
  color: #000000;
  font-weight: 800;
  font-size: 0.75rem;
}

.pagcor-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.pagcor-link:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   13. Search Modal & Backdrop
   -------------------------------------------------------------------------- */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 24, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.search-modal {
  width: 100%;
  max-width: 580px;
  background: var(--surface-dark);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-surface);
  gap: 0.75rem;
}

.search-input-wrap input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.1rem;
}

.search-results-list {
  max-height: 320px;
  overflow-y: auto;
  list-style: none;
  padding: 0.5rem;
}

.search-result-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.search-result-item a:hover {
  background: var(--surface);
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   14. Editorial & Gateway Hub Layout Styles
   Desktop Sticky TOC & Quick-Action Sidebar + Mobile Jump Menu
   -------------------------------------------------------------------------- */
.breadcrumb-nav {
  padding: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumb-item a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-separator {
  color: var(--text-dim);
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2rem 0 4rem;
}

@media (min-width: 1024px) {
  .editorial-layout {
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
    align-items: start;
  }
}

.editorial-main {
  min-width: 0;
}

.editorial-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-surface);
  padding-bottom: 1.75rem;
}

.editorial-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

.editorial-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.editorial-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.mobile-jump-menu {
  background: var(--surface-card);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  overflow: hidden;
}

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

.mobile-jump-menu summary {
  padding: 0.9rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-jump-list {
  padding: 0 1.15rem 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-jump-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-section {
  margin-bottom: 2.75rem;
  padding-top: 1rem;
}

.editorial-h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
  position: relative;
}

.editorial-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
}

.editorial-p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.step-walkthrough {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.step-box-item {
  background: var(--surface-card);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-badge-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-box-content {
  flex-grow: 1;
}

.step-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.step-box-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.section-cta-box {
  background: linear-gradient(135deg, rgba(76, 66, 150, 0.25) 0%, rgba(239, 20, 200, 0.12) 100%);
  border: 1px solid rgba(239, 20, 200, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .section-cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.section-cta-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.section-cta-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.section-cta-btns {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #c20da2 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px var(--accent-glow);
  white-space: nowrap;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--surface);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.btn-cta-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--primary-hover);
}

.info-callout {
  background: rgba(255, 155, 8, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.info-callout p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.info-callout strong {
  color: #ffb84d;
}

.data-table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
}

.key-value-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-surface);
  font-size: 0.9rem;
}

.key-value-table th {
  background: var(--surface-dark);
  color: #ffffff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-surface);
}

.key-value-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-surface);
  color: var(--text-muted);
}

.key-value-table tr:last-child td {
  border-bottom: none;
}

.key-value-table td:first-child {
  font-weight: 600;
  color: #ffffff;
  width: 40%;
}

.editorial-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .editorial-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    height: fit-content;
  }
}

.sidebar-box {
  background: var(--surface-card);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.toc-link:hover {
  color: #ffffff;
  background: var(--surface);
}

.quick-action-card {
  background: linear-gradient(135deg, #221b4e 0%, #150f33 100%);
  border: 1px solid rgba(239, 20, 200, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.quick-action-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.quick-action-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

