/* ==========================================================================
   [BRAND_PALETTE] Design Tokens & Mobile Shell Architecture
   Strictly token-driven, WCAG 2.2 AA accessible, Grade 5-6 readable
   ========================================================================== */

:root {
  /* Brand Colors from brand_palette.json */
  --primary: #8b0000;
  --primary-hover: #a31212;
  --primary-glow: rgba(139, 0, 0, 0.45);
  
  --accent: #f0c159;
  --accent-hover: #ffd700;
  --accent-gold-gradient: linear-gradient(135deg, #ffd700 0%, #f0c159 50%, #b8860b 100%);
  --accent-glow: rgba(240, 193, 89, 0.4);
  --accent-champagne: #f7e7ce;
  
  --bg-primary: #121214;
  --bg-secondary: #17171a;
  --surface: #17171a;
  --surface-elevated: #1f1f24;
  --surface-card: #1c1c20;
  --surface-glass: rgba(28, 28, 32, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-focus: #f0c159;

  /* Text & Contrast Tokens */
  --text-primary: #ffffff;
  --text-muted: #b8b8c2;
  --text-dim: #7e7e8a;
  --text-inverse: #121214;

  /* Status Colors */
  --status-success: #00ff88;
  --status-warning: #ffb703;
  --status-danger: #ff4757;

  /* Typography */
  --font-family-primary: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-family-display: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-md: 1.125rem;   /* 18px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 1.75rem;   /* 28px */

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Radii & Elevation */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(240, 193, 89, 0.4);

  /* Touch & Navigation Heights */
  --header-height: 60px;
  --bottom-nav-height: 64px;
  --touch-target-min: 44px;
  --shell-max-width: 430px;
}

/* Base Reset & Desktop Outer Stage */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #1a1a1a; /* Desktop outer background */
  font-family: var(--font-family-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* 1. Mobile App Shell Container */
.app-shell {
  width: 100%;
  max-width: var(--shell-max-width);
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--bg-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 16px));
  overflow-x: hidden;
}

@media (max-width: 430px) {
  body {
    background-color: var(--bg-primary);
  }
  .app-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

/* Focus Visible Accessibility */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* 2. Navigation & Shell Components */

/* Sticky Header (.hdr) */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  width: 100%;
  background-color: rgba(18, 18, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  transition: border-color 0.2s ease;
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hdr-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.hdr-logo-link:hover {
  opacity: 0.9;
}

.hdr-logo-img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header {
  min-height: 36px;
  padding: 0 14px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  letter-spacing: 0.2px;
}

.btn-login {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  border: 1px solid rgba(240, 193, 89, 0.4);
}

.btn-login:hover {
  background: rgba(240, 193, 89, 0.15);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-register {
  background: var(--accent-gold-gradient);
  color: var(--text-inverse);
  border: none;
  box-shadow: 0 2px 10px rgba(240, 193, 89, 0.35);
}

.btn-register:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Notification & 21+ Disclaimer (Zero Heading Tags Rule) */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-badge-warning {
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent);
  border: 1px solid rgba(240, 193, 89, 0.3);
}

.pill-badge-success {
  background: rgba(0, 255, 136, 0.15);
  color: var(--status-success);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.notice-banner {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  padding: 6px var(--space-4);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
}

.notice-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Fixed Bottom Touch Bar (.bottom-nav) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell-max-width);
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(20, 20, 22, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 1000;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: var(--touch-target-min);
  padding: 4px 0;
}

.nav-tab:hover, .nav-tab.active {
  color: var(--accent);
}

.nav-tab-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Elevated Center CTA Tab */
.nav-tab-center {
  position: relative;
}

.nav-tab-center .center-cta-bubble {
  position: absolute;
  top: -16px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent) 0%, #c48a1c 100%);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(240, 193, 89, 0.45);
  border: 3px solid var(--bg-primary);
  transition: transform 0.2s ease;
}

.nav-tab-center:hover .center-cta-bubble {
  transform: scale(1.08);
}

.nav-tab-center .center-cta-label {
  margin-top: 30px;
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
}

/* Main Content Area */
.app-content {
  flex: 1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Hero Quick Banner */
.hero-card {
  background: radial-gradient(circle at 100% 0%, rgba(139, 0, 0, 0.4) 0%, rgba(20, 20, 24, 0.95) 70%),
              linear-gradient(145deg, #221417 0%, #161619 100%);
  border: 1px solid rgba(240, 193, 89, 0.35);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 25px rgba(139, 0, 0, 0.2);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(240, 193, 89, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-title {
  font-family: var(--font-family-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.3px;
}

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

.hero-description {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-cta-btn {
  min-height: var(--touch-target-min);
  background: var(--accent-gold-gradient);
  color: var(--text-inverse);
  font-weight: 800;
  font-size: var(--font-size-base);
  border-radius: var(--radius-full);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-shadow: 0 4px 18px rgba(240, 193, 89, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.hero-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240, 193, 89, 0.55);
}

/* Category Quick Filter Carousel */
.category-carousel {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-carousel::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px var(--space-3);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-size-xs);
  font-weight: 600;
  transition: all 0.2s ease;
}

.cat-pill.active, .cat-pill:hover {
  background: var(--surface-elevated);
  border-color: var(--accent);
  color: var(--accent);
}

.cat-icon {
  width: 16px;
  height: 16px;
}

/* Section Header Bar */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.section-link {
  font-size: var(--font-size-xs);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.section-link:hover {
  text-decoration: underline;
}

/* 3. Interactive 3x2 Game Grids */
.game-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

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

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 193, 89, 0.5);
  box-shadow: var(--shadow-md);
}

.game-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111113;
  overflow: hidden;
}

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

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

.game-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(240, 193, 89, 0.4);
  z-index: 2;
}

/* Dual-Button Overlay / Action Bar */
.game-info {
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.game-name {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-provider {
  font-size: 11px;
  color: var(--text-dim);
}

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

.btn-game-play {
  min-height: 32px;
  padding: 0 4px;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-game-play:hover {
  background: var(--accent-hover);
}

.btn-game-guide {
  min-height: 32px;
  padding: 0 4px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-game-guide:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Payment Quick Cards */
.payment-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.payment-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.payment-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.payment-logo {
  height: 24px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
}

.payment-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.payment-speed {
  font-size: 10px;
  color: var(--status-success);
}

/* 4. PAA & FAQ Accordion Components */
.faq-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

.faq-card[open] {
  border-color: rgba(240, 193, 89, 0.4);
}

.faq-summary {
  padding: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  user-select: none;
  min-height: var(--touch-target-min);
}

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

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--accent);
  transition: transform 0.25s ease;
}

.faq-card[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 var(--space-4) var(--space-4) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: var(--space-3);
}

/* Snippet Capsule for Direct Answer */
.faq-snippet-box {
  background: var(--surface-elevated);
  border-left: 3px solid var(--accent);
  padding: var(--space-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  font-weight: 500;
}

/* 5. E-E-A-T & Mandatory Responsible Gaming Compliance */
.compliance-footer {
  background: #111113;
  border-top: 1px solid var(--border);
  padding: var(--space-6) var(--space-4) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-badge-icon {
  height: 32px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

.trust-badge-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-align: center;
}

.responsible-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.responsible-headline-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.responsible-text {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.helpline-box {
  font-size: var(--font-size-xs);
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.footer-nav-link {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--accent);
}

.copyright-text {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: var(--space-2);
}

/* 6. Accessible 21+ Age Gate Modal */
.age-gate-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--space-4);
}

.age-gate-dialog.active {
  display: flex;
}

.age-gate-modal {
  width: 100%;
  max-width: 380px;
  background: var(--surface-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
}

.age-gate-icon {
  width: 56px;
  height: 56px;
}

.age-gate-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.age-gate-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.age-gate-btn-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.btn-age-confirm {
  width: 100%;
  min-height: var(--touch-target-min);
  background: linear-gradient(135deg, var(--accent) 0%, #c48a1c 100%);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: var(--font-size-base);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-age-confirm:hover {
  filter: brightness(1.1);
}

.btn-age-exit {
  width: 100%;
  min-height: 40px;
  background: transparent;
  color: var(--text-dim);
  font-size: var(--font-size-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-age-exit:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* Category Overview Complete Grid */
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.category-overview-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  transition: all 0.2s ease;
}

.category-overview-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--surface-elevated);
}

.cat-overview-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(240, 193, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(240, 193, 89, 0.2);
}

.cat-overview-icon-wrap img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cat-overview-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.cat-overview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-overview-desc {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Featured Games 8-Grid (Responsive 4x2 layout with thumb overlays) */
.game-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 375px) {
  .game-grid-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.game-card-compact {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.game-card-compact:hover {
  border-color: rgba(240, 193, 89, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(240, 193, 89, 0.2);
}

.game-card-compact .game-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111113;
  overflow: hidden;
}

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

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

.game-card-compact .game-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid rgba(240, 193, 89, 0.35);
  z-index: 2;
  line-height: 1;
}

.game-card-compact .game-info {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.game-card-compact .game-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.game-card-compact .game-provider {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-compact .game-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 3px;
}

.game-card-compact .btn-game-play {
  min-height: 26px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  background: var(--accent-gold-gradient);
  color: var(--text-inverse);
  box-shadow: 0 2px 6px rgba(240, 193, 89, 0.3);
}

.game-card-compact .btn-game-play:hover {
  filter: brightness(1.15);
}

.game-card-compact .btn-game-guide {
  min-height: 26px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.game-card-compact .btn-game-guide:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Action Guides List (One-by-One Full Width Cards) */
.guides-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.guide-card-tile {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.guide-card-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0.8;
}

.guide-card-tile:hover {
  border-color: var(--accent);
  background: var(--surface-elevated);
  transform: translateX(3px);
}

.guide-tile-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.guide-tile-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-tile-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(240, 193, 89, 0.12);
  border: 1px solid rgba(240, 193, 89, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.guide-tile-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.guide-tile-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.guide-tile-cta {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(240, 193, 89, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.guide-card-tile:hover .guide-tile-cta {
  transform: translateX(2px);
  background: var(--accent);
  color: var(--text-inverse);
}

/* Editorial Guide Sections (One-by-One Clean Heading + Paragraph Blocks) */
.editorial-guide-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.2s ease;
}

.editorial-guide-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.editorial-guide-heading {
  font-family: var(--font-family-primary);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  letter-spacing: -0.2px;
}

.editorial-guide-heading::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--accent-gold-gradient);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 3px;
  box-shadow: 0 0 8px rgba(240, 193, 89, 0.4);
}

.editorial-guide-body {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  padding-left: 14px;
}

.editorial-guide-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-1);
  padding-left: 14px;
  transition: all 0.2s ease;
  letter-spacing: 0.1px;
}

.editorial-guide-link:hover {
  color: var(--accent-hover);
  transform: translateX(3px);
}


