/* ========================================================================
   Doodle Crash — Main Stylesheet
   Mobile-first responsive design with notebook/doodle theme
   Color palette extracted from game interface
   ======================================================================== */

/* ── CSS Custom Properties ────────────────────────────────────────────── */
:root {
  /* Primary palette — doodle night */
  --color-bg-dark: #0d1117;
  --color-bg-main: #161b27;
  --color-bg-card: #1e2840;
  --color-bg-card-hover: #253352;

  /* Sand & cool tones */
  --color-sand: #E8EBF0;
  --color-sand-light: #c8d0e0;
  --color-sand-dark: #8899BB;
  --color-desert-orange: #FFD93D;
  --color-desert-deep: #E6C200;

  /* Accent — doodle gold */
  --color-accent: #FFD93D;
  --color-accent-hover: #E6C200;
  --color-accent-dark: #c9a800;

  /* CTA — vibrant */
  --color-cta: #FF6B35;
  --color-cta-hover: #E55A24;
  --color-cta-text: #fff;

  /* Text */
  --color-text: #E8EBF0;
  --color-text-muted: #8899BB;
  --color-text-heading: #FFD93D;
  --color-text-dark: #0d1117;

  /* Functional */
  --color-success: #66bb6a;
  --color-warning: #ffa726;
  --color-danger: #ef5350;
  --color-info: #4A90E2;

  /* Frame accents */
  --color-wood: #253352;
  --color-wood-dark: #1e2840;

  /* Borders & shadows */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);

  /* Typography */
  --font-main: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg-dark);
  background-image: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-main) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.625rem; }

p {
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.table-responsive table {
  margin: 0;
}

.table-responsive th,
.table-responsive td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.table-responsive th {
  background: rgba(0,0,0,0.3);
  color: var(--color-gold, #FFD93D);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table-responsive td {
  background: rgba(0,0,0,0.15);
  font-size: 0.93rem;
}

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

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

/* ── Skip Link (Accessibility) ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ── Container ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-main) 100%);
  border-bottom: 2px solid var(--color-wood);
  box-shadow: var(--shadow-md);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-accent);
  text-decoration: none;
}

.header-logo img {
  height: 36px;
  width: auto;
}

/* Desktop nav — hidden on mobile */
.header-nav {
  display: none;
}

.header-nav ul {
  display: flex;
  gap: 0.25rem;
}

.header-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.header-nav a:hover,
.header-nav a.active {
  background: rgba(255, 217, 61, 0.15);
  color: var(--color-accent);
}

/* Header CTA */
.header-cta .btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.header-cta .btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.5);
}

/* Burger menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-dark);
  z-index: 999;
  padding: 1.5rem;
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

.mobile-menu.is-open {
  display: block;
}

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

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--color-text);
  font-size: 1.0625rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition-fast);
}

.mobile-menu a:hover {
  background: rgba(255, 217, 61, 0.1);
  color: var(--color-accent);
}

/* ── Sticky Bottom CTA Bar (Mobile Only) ──────────────────────────────── */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-main) 100%);
  border-top: 2px solid var(--color-accent);
  padding: 0.625rem 1rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.mobile-sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.sticky-cta-text {
  flex: 1;
  min-width: 0;
}

.sticky-cta-text strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-accent);
  line-height: 1.2;
}

.sticky-cta-text span {
  display: block;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.2;
}

.btn-sticky-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* ── Hero Section ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 2rem 0 2.5rem;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, rgba(255, 217, 61, 0.15) 50%, var(--color-bg-dark) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(255, 217, 61, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-image {
  margin: 0 auto 1.5rem;
  max-width: 600px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 2px solid var(--color-wood);
}

.hero-image img,
.hero-image video {
  width: 100%;
  height: auto;
  display: block;
}

.hero h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius);
  padding: 0.875rem 0.75rem;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: rgba(255, 217, 61, 0.1);
  color: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-sand-dark);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  background: rgba(255, 217, 61, 0.05);
}

/* ── Sections (General) ───────────────────────────────────────────────── */
section {
  padding: 2.5rem 0;
}

.section-header {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-wood), transparent);
  margin: 0;
  clear: both;
}

/* ── Table of Contents ────────────────────────────────────────────────── */
.toc {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem 1.5rem;
  padding-bottom: 2.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.toc h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.375rem;
}

.toc li:nth-child(n+4) {
  display: none;
}

.toc.is-expanded li:nth-child(n+4) {
  display: list-item;
}

.toc-toggle {
  position: absolute;
  right: 1rem;
  bottom: 0.6rem;
  background: var(--color-accent);
  color: var(--color-text-dark);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.3s, background 0.2s;
}

.toc-toggle:hover {
  background: var(--color-accent-hover);
}

.toc.is-expanded .toc-toggle {
  transform: rotate(45deg);
}

.toc a {
  color: var(--color-text);
  font-size: 0.9375rem;
}

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

/* ── Game Specs Table ─────────────────────────────────────────────────── */
.specs-table {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.specs-table table {
  width: 100%;
}

.specs-table th,
.specs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9375rem;
}

.specs-table th {
  background: rgba(37, 51, 82, 0.2);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

/* ── Casino Cards ─────────────────────────────────────────────────────── */
.casino-grid {
  display: grid;
  gap: 1rem;
}

.casino-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.casino-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(255, 217, 61, 0.1);
}

.casino-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.casino-logo {
  width: 80px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border-radius: var(--border-radius);
  padding: 0.25rem;
}

.casino-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.casino-rating {
  color: var(--color-accent);
  font-size: 0.875rem;
}

.casino-bonus {
  background: rgba(255, 217, 61, 0.1);
  border: 1px solid rgba(255, 217, 61, 0.2);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
}

.casino-bonus strong {
  display: block;
  font-size: 1.0625rem;
  color: var(--color-accent);
}

.casino-bonus span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.casino-pros-cons {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.casino-pros li::before { content: '\2713 '; color: var(--color-success); font-weight: 700; }
.casino-cons li::before { content: '\2717 '; color: var(--color-danger); font-weight: 700; }

.casino-pros li,
.casino-cons li {
  padding: 0.25rem 0;
}

.casino-pros-cons {
  flex-grow: 1;
}

.casino-cta {
  text-align: center;
  margin-top: auto;
}

/* ── Casino Bonus Grid (bonuses page) ─────────────────────────────────── */
.casino-bonus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.casino-bonus-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bonus-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(30, 40, 64, 0.15);
  border-bottom: 1px solid var(--color-wood);
}

.bonus-card-header img {
  height: 40px;
  width: auto;
}

.bonus-badge {
  background: var(--color-gold);
  color: var(--color-bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
}

.bonus-card-body {
  padding: 1rem;
  flex-grow: 1;
}

.bonus-card-body h3 {
  margin: 0 0 0.5rem;
  color: var(--color-gold);
}

.bonus-highlight {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.bonus-pros,
.bonus-cons {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.bonus-pros li::before { content: '\2713 '; color: var(--color-success); font-weight: 700; }
.bonus-cons li::before { content: '\2717 '; color: var(--color-danger); font-weight: 700; }

.bonus-pros li,
.bonus-cons li {
  padding: 0.2rem 0;
}

.bonus-card-footer {
  padding: 1rem;
  text-align: center;
  margin-top: auto;
}

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

/* ── Payment Methods Grid ─────────────────────────────────────────────── */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.payment-method-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.payment-method-card .payment-icon {
  width: 64px;
  height: 40px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.payment-method-card h3 {
  margin: 0 0 0.5rem;
  color: var(--color-gold);
  font-size: 1.05rem;
}

.payment-method-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

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

/* ── Steps List (claim bonus) ─────────────────────────────────────────── */
.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: 16px;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step-item:nth-child(1) { transition-delay: 0s; }
.step-item:nth-child(2) { transition-delay: 0.15s; }
.step-item:nth-child(3) { transition-delay: 0.3s; }
.step-item:nth-child(4) { transition-delay: 0.45s; }
.step-item:nth-child(5) { transition-delay: 0.6s; }
.step-item:nth-child(6) { transition-delay: 0.75s; }

.step-item h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--color-gold);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: #1a1a1a;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.step-item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

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

/* ── Content Images (float, wrap text) ────────────────────────────────── */
.content-image {
  float: right;
  max-width: 490px;
  margin: 0 0 1rem 2rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-wood);
}

.content-image--left {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

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

.content-image figcaption {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 0.5rem 0.75rem;
  text-align: center;
  background: var(--color-bg-card);
}

.content-section h2,
.content-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  clear: both;
}

.content-section::after {
  content: '';
  display: table;
  clear: both;
}

@media (max-width: 599px) {
  .content-image {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
  }
}

/* ── Image Stack (vertical, centered) ─────────────────────────────────── */
.image-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 1.5rem auto;
  clear: both;
}

@media (min-width: 768px) {
  .image-stack {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.image-stack figure {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-wood);
  margin: 0;
  display: flex;
  flex-direction: column;
}

.image-stack img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
}

.image-stack figcaption {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 0.5rem 0.75rem;
  text-align: center;
  background: var(--color-bg-card);
}

/* ── Image Gallery ────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-wood);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(255, 217, 61, 0.15);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
}

/* ── Testimonials ─────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  gap: 1rem;
}

.testimonial {
  background: var(--color-bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.testimonial-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-wood);
}

.testimonial-header strong {
  display: block;
  color: var(--color-text-heading);
  font-size: 0.9375rem;
}

.testimonial-header span {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.testimonial .rating {
  color: var(--color-accent);
  font-size: 0.875rem;
}

.testimonial blockquote {
  font-style: italic;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.6;
  border-left: 3px solid var(--color-wood);
  padding-left: 1rem;
}

.testimonials-disclaimer {
  margin-top: 1rem;
  text-align: center;
}

.testimonials-disclaimer small {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* ── Calculator ───────────────────────────────────────────────────────── */
.calculator-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
}

.calculator-inputs {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-heading);
}

.input-group input,
.input-group select {
  padding: 0.625rem 0.875rem;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius);
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(255, 217, 61, 0.2);
}

.calculator-result {
  background: var(--color-bg-dark);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.result-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
}

.result-warning .result-value {
  color: var(--color-warning);
}

.calculator-disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 0;
}

/* ── Wagering Calculator (bonuses page) ───────────────────────────────── */
.calculator-wrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.calculator-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calc-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-gold);
}

.calc-field label small {
  font-weight: 400;
  color: var(--color-text-muted);
}

.calc-field input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius);
  background: var(--color-bg-dark);
  color: var(--color-text);
  font-size: 1rem;
}

.calc-field input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 217, 61, 0.2);
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  background: var(--color-bg-dark);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.calc-result-item {
  text-align: center;
}

.calc-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.calc-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .calculator-form {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Warning / Info Boxes ─────────────────────────────────────────────── */
.warning-box {
  background: rgba(255, 167, 38, 0.1);
  border: 1px solid rgba(255, 167, 38, 0.3);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  overflow: hidden;
}

.info-box {
  background: rgba(255, 217, 61, 0.08);
  border: 1px solid rgba(255, 217, 61, 0.25);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

/* ── Info Table ───────────────────────────────────────────────────────── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}

.info-table th {
  background: var(--color-bg-card);
  color: var(--color-accent);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--color-wood);
}

.info-table td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--color-text);
}

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

/* ── Strategy Preview ─────────────────────────────────────────────────── */
.strategy-preview {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.strategy-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
}

.strategy-card h4 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* ── Pros / Cons ──────────────────────────────────────────────────────── */
.pros-cons-table {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pros, .cons {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
}

.pros {
  border: 1px solid rgba(102, 187, 106, 0.3);
}

.cons {
  border: 1px solid rgba(239, 83, 80, 0.3);
}

.pros h4 { color: var(--color-success); margin-bottom: 0.75rem; }
.cons h4 { color: var(--color-danger); margin-bottom: 0.75rem; }

.pros li, .cons li {
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

/* ── Verdict / Rating ─────────────────────────────────────────────────── */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
}

.author-info strong {
  display: block;
  color: var(--color-text-heading);
  font-size: 1rem;
}

.author-info span {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.final-rating {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  margin-top: 1.5rem;
}

.rating-score {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.rating-summary {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: left;
}

.faq-question:hover {
  background: rgba(255, 217, 61, 0.05);
}

.faq-question h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0;
  flex: 1;
  padding-right: 0.75rem;
}

.faq-question span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-heading);
  flex: 1;
  padding-right: 0.75rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  color: var(--color-text-muted);
  margin-left: 0.25rem;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

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

/* ── Steps (HowTo) ───────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  gap: 1rem;
  counter-reset: step-counter;
}

.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  position: relative;
  counter-increment: step-counter;
}

.step-card::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-cta) 100%);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ── Video Embed ──────────────────────────────────────────────────────── */
.video-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-wood);
  margin-bottom: 1.5rem;
  background: #000;
}

.video-container video {
  width: 100%;
  display: block;
}

/* ── Affiliate Disclosure ─────────────────────────────────────────────── */
.affiliate-disclosure {
  background: rgba(255, 217, 61, 0.05);
  border: 1px solid rgba(255, 217, 61, 0.15);
  border-radius: var(--border-radius);
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, var(--color-bg-main) 0%, var(--color-bg-dark) 100%);
  border-top: 2px solid var(--color-wood);
  padding-top: 2.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 0.9375rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 0.75rem;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-badges img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.trust-badges img:hover {
  opacity: 1;
}

/* Disclaimer */
.footer-disclaimer {
  background: rgba(239, 83, 80, 0.08);
  border: 1px solid rgba(239, 83, 80, 0.2);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-disclaimer strong {
  color: var(--color-danger);
}

/* Copyright */
.footer-copyright {
  text-align: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ── Content Styles (for article pages) ───────────────────────────────── */
.content-body {
  max-width: 800px;
  margin: 0 auto;
}

.content-body h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.content-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-body ul,
.content-body ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }

.content-body li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.content-body img {
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border: 1px solid var(--color-wood);
}

.content-body table {
  margin-bottom: 1.5rem;
}

.content-body th,
.content-body td {
  padding: 0.625rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9375rem;
}

.content-body th {
  color: var(--color-accent);
  font-weight: 600;
  background: rgba(37, 51, 82, 0.15);
}

/* ── Troubleshoot Grid ────────────────────────────────────────────────── */
.troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.troubleshoot-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.troubleshoot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.troubleshoot-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.troubleshoot-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold, #FFD93D);
}

.troubleshoot-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.troubleshoot-card li {
  margin-bottom: 0.4rem;
  font-size: 0.93rem;
  line-height: 1.5;
}

/* ── Browser Grid ─────────────────────────────────────────────────────── */
.browser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.browser-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.browser-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.browser-icon {
  margin-bottom: 0.75rem;
}

.browser-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold, #FFD93D);
}

.browser-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* ── Guide Cards ──────────────────────────────────────────────────────── */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.guide-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.guide-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold, #FFD93D);
}

.guide-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-card li {
  margin-bottom: 0.4rem;
  font-size: 0.93rem;
  line-height: 1.5;
}

.guide-card p {
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ── Card reveal animation (troubleshoot, browser, guide) ────────────── */
.troubleshoot-card,
.browser-card,
.guide-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.troubleshoot-card.is-visible,
.browser-card.is-visible,
.guide-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: Download page grids ─────────────────────────────────── */
@media (max-width: 768px) {
  .troubleshoot-grid,
  .guide-cards {
    grid-template-columns: 1fr;
  }
  .browser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .browser-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Symbol Grid (for paytable) ───────────────────────────────────────── */
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  justify-items: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.symbol-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
}

.symbol-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  border: none;
}

.symbol-card h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.symbol-card p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ── Feature Cards Row (equal-height with image + text) ───────────────── */
.feature-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

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

.feature-card img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  display: block;
  background: url('/images/interface/desert-squeeze-slot-banner-desert-party-characters.webp') center/cover no-repeat;
}

.feature-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
}

.feature-card-body h4 {
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.feature-card-body p {
  font-size: 0.875rem;
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .feature-cards-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Split Card (text + image side by side) ───────────────────────────── */
.split-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.split-card-text {
  padding: 1.25rem;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.split-card-image {
  flex-shrink: 0;
}

.split-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .split-card {
    flex-direction: row;
    align-items: center;
  }

  .split-card-text {
    flex: 3;
  }

  .split-card-image {
    flex: 1;
    max-width: 240px;
    overflow: hidden;
  }

  .split-card--reverse {
    flex-direction: row-reverse;
  }
}

/* ── Pair Cards ──────────────────────────────────────────────────────── */
.pair-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pair-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.pair-card-body {
  padding: 1rem;
}

.pair-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-gold);
}

.pair-card-body p,
.pair-card-body ul {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.pair-card-body ul {
  padding-left: 1.25rem;
}

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

/* ── Feature Cards ────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
}

.feature-card h3 {
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.feature-card img {
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

/* ── Comparison Table ─────────────────────────────────────────────────── */
.comparison-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

.comparison-table table {
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  font-size: 0.875rem;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-table th {
  background: rgba(37, 51, 82, 0.2);
  color: var(--color-accent);
}

/* ── Contact Form ─────────────────────────────────────────────────────── */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius);
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(255, 217, 61, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── 404 Page ─────────────────────────────────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--color-accent);
}

/* ── Cookie Consent ───────────────────────────────────────────────────── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-bg-dark);
  border-top: 2px solid var(--color-wood);
  padding: 1rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.cookie-content p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-buttons .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ── Updated Badge (Freshness Signal) ─────────────────────────────────── */
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  margin-top: 1rem;
  background: rgba(102, 187, 106, 0.1);
  border: 1px solid rgba(102, 187, 106, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--color-success);
}

/* ── Heatmap Infographic ─────────────────────────────────────────────── */
.heatmap-wrapper {
  margin-bottom: 1.5rem;
}

.heatmap-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius-lg);
  background: var(--color-bg-card);
}

.heatmap-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  table-layout: fixed;
}

.heatmap-table thead th {
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  background: rgba(37, 51, 82, 0.3);
  border-bottom: 2px solid var(--color-wood);
  text-align: center;
  white-space: nowrap;
}

.heatmap-corner {
  text-align: left !important;
  width: 100px;
}

.heatmap-row-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent);
  background: rgba(37, 51, 82, 0.15);
  padding: 0.875rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.heatmap-cell {
  position: relative;
  padding: 0.875rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: default;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

.heatmap-cell .heatmap-value {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.heatmap-cell .heatmap-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: var(--bar-width, 0%);
  border-radius: 0 2px 2px 0;
  opacity: 0.7;
  transition: width 0.6s ease;
}

/* Heatmap color levels: 1 = green/safe, 5 = red/risky */
.heatmap-cell[data-level="1"] {
  background: rgba(102, 187, 106, 0.2);
  color: #a5d6a7;
}
.heatmap-cell[data-level="1"] .heatmap-bar {
  background: #66bb6a;
}

.heatmap-cell[data-level="2"] {
  background: rgba(129, 199, 132, 0.15);
  color: #c5e1a5;
}
.heatmap-cell[data-level="2"] .heatmap-bar {
  background: #9ccc65;
}

.heatmap-cell[data-level="3"] {
  background: rgba(255, 213, 79, 0.15);
  color: #fff176;
}
.heatmap-cell[data-level="3"] .heatmap-bar {
  background: #ffd54f;
}

.heatmap-cell[data-level="4"] {
  background: rgba(255, 167, 38, 0.15);
  color: #ffcc80;
}
.heatmap-cell[data-level="4"] .heatmap-bar {
  background: #ffa726;
}

.heatmap-cell[data-level="5"] {
  background: rgba(239, 83, 80, 0.18);
  color: #ef9a9a;
}
.heatmap-cell[data-level="5"] .heatmap-bar {
  background: #ef5350;
}

.heatmap-cell:hover {
  filter: brightness(1.2);
  z-index: 2;
}

/* Strategy type badges */
.heatmap-strat {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 4px;
}

.heatmap-strat-avoid {
  background: rgba(239, 83, 80, 0.2) !important;
  color: #ef9a9a !important;
}
.heatmap-strat-early {
  background: rgba(255, 167, 38, 0.18) !important;
  color: #ffcc80 !important;
}
.heatmap-strat-balanced {
  background: rgba(255, 213, 79, 0.18) !important;
  color: #fff176 !important;
}
.heatmap-strat-deep {
  background: rgba(129, 199, 132, 0.18) !important;
  color: #c5e1a5 !important;
}
.heatmap-strat-max {
  background: rgba(239, 83, 80, 0.18) !important;
  color: #ef9a9a !important;
}

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

/* Tooltip */
.heatmap-tooltip {
  position: fixed;
  max-width: 280px;
  padding: 0.75rem 1rem;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius);
  color: var(--color-text);
  font-size: 0.8125rem;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.heatmap-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legend */
.heatmap-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-wood);
  border-radius: var(--border-radius);
}

.heatmap-legend-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heatmap-legend-gradient {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.heatmap-legend-bar {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #66bb6a, #9ccc65, #ffd54f, #ffa726, #ef5350);
}

.heatmap-legend-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.heatmap-legend-strategies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.heatmap-legend-chip {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Heatmap responsive */
@media (max-width: 599px) {
  .heatmap-corner {
    width: 72px;
  }

  .heatmap-table thead th {
    font-size: 0.6875rem;
    padding: 0.625rem 0.5rem;
  }

  .heatmap-cell {
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
  }

  .heatmap-row-label {
    padding: 0.625rem 0.5rem;
    font-size: 0.875rem;
  }

  .heatmap-legend-gradient {
    flex-direction: column;
    gap: 0.25rem;
  }

  .heatmap-legend-bar {
    width: 100%;
    height: 8px;
  }
}

/* ── Print Styles ─────────────────────────────────────────────────────── */
@media print {
  .site-header,
  .mobile-sticky-cta,
  .cookie-banner,
  .header-cta,
  .menu-toggle,
  .mobile-menu,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ── Responsive: Tablet (768px+) ──────────────────────────────────────── */
@media (min-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }

  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 3.5rem 0;
  }

  /* Hero */
  .hero {
    padding: 3rem 0 3.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .quick-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 700px;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Calculator */
  .calculator-inputs {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }

  /* Pros/Cons */
  .pros-cons-table {
    grid-template-columns: 1fr 1fr;
  }

  /* Casino grid */
  .casino-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Casino pros/cons */
  .casino-pros-cons {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Symbol grid */
  .symbol-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Feature grid */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Strategy */
  .strategy-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cookie */
  .cookie-content {
    flex-direction: row;
    text-align: left;
  }
}

/* ── Responsive: Desktop (1024px+) ────────────────────────────────────── */
@media (min-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }

  .container {
    padding: 0 2rem;
  }

  /* Header — show desktop nav, hide burger */
  .header-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  /* Hide mobile sticky CTA on desktop */
  .mobile-sticky-cta {
    display: none !important;
  }

  /* Hero */
  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
  }

  .hero-image {
    order: 2;
    margin: 0;
  }

  .hero-text {
    order: 1;
  }

  .hero-ctas {
    justify-content: flex-start;
  }

  .quick-stats {
    margin: 0 0 1.5rem;
  }

  /* Casino grid */
  .casino-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  /* Symbol grid */
  .symbol-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Utility Classes ──────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
