/* ===========================================
   CHICKEN ROAD ESPAÑA 2026 – STYLES v3.0.0
   Mobile-first. Breakpoints: 640px | 1024px
   =========================================== */

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --primary:        #f97316;
  --primary-dark:   #c2410c;
  --primary-light:  #fff7ed;
  --primary-muted:  #fed7aa;
  --secondary:      #1e293b;
  --secondary-light:#334155;
  --accent:         #fbbf24;
  --bg:             #f1f5f9;
  --white:          #ffffff;
  --text:           #0f172a;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --border:         #e2e8f0;
  --success:        #16a34a;
  --success-light:  #dcfce7;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --warning:        #d97706;
  --warning-light:  #fef3c7;
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.14);
  --radius-sm:      6px;
  --radius-md:      12px;
  --header-h:       54px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--header-h); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.25rem; }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}
h1 { font-size: clamp(1.3rem, 5vw, 2.2rem); }
h2 {
  font-size: clamp(1.15rem, 4vw, 1.8rem);
  margin-bottom: 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 3px solid var(--primary);
}
h3 { font-size: clamp(0.95rem, 3vw, 1.2rem); margin-bottom: 0.6rem; }
h4 { font-size: 0.97rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 0.95rem; overflow-wrap: break-word; word-break: break-word; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--secondary); }

code {
  font-family: 'Courier New', monospace;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HEADER ===== */
header {
  background: var(--secondary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.header-content {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 10px;
}

.logo-image { flex-shrink: 0; }
.logo-img   { height: 34px; width: auto; object-fit: contain; }

/* hidden checkbox — pure CSS nav toggle */
.nav-check { display: none; }

/* desktop nav — hidden by default on mobile */
.desktop-nav {
  display: none;
  flex: 1;
  gap: 2px;
  align-items: center;
}
.desktop-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.desktop-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

/* header actions: hamburger + CTA — pushed to the right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* hamburger bars */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.12); }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* animated X when open */
.nav-check:checked ~ .header-actions .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-check:checked ~ .header-actions .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-check:checked ~ .header-actions .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile dropdown — opens below sticky header */
.nav-check:checked ~ .desktop-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--secondary);
  padding: 6px 0 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  z-index: 99;
}
.nav-check:checked ~ .desktop-nav a {
  padding: 12px 20px;
  font-size: 0.9rem;
  border-radius: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  white-space: normal;
}
.nav-check:checked ~ .desktop-nav a:hover {
  background: rgba(255,255,255,0.1);
  border-left-color: var(--primary);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff !important;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.76rem;
  text-decoration: none !important;
  transition: background 0.2s;
  white-space: nowrap;
  letter-spacing: 0.2px;
  min-height: 34px;
}
.cta-button:hover {
  background: var(--primary-dark);
  text-decoration: none !important;
}

/* ===== HERO ===== */
.hero-game {
  background: linear-gradient(135deg, #0f172a 0%, var(--secondary) 60%, #1a0a2e 100%);
  padding: 28px 0;
  color: #fff;
}

.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-text h1 { color: #fff; margin-bottom: 0.85rem; }

.subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 0.93rem;
  margin-bottom: 1.1rem;
  line-height: 1.75;
}
.subtitle strong { color: var(--accent); }

.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.1rem;
}
.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  min-height: 48px;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.btn-hero:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  min-height: 48px;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
  color: #fff;
}

.hero-image-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.hero-image-wrapper img { width: 100%; }

.quick-stats { margin-top: 10px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stat-item {
  background: rgba(0,0,0,0.25);
  padding: 10px 8px;
  text-align: center;
}
.stat-item.highlight { background: rgba(249,115,22,0.28); }
.stat-label {
  display: block;
  font-size: 0.63rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.stat-value {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: #fff;
}

/* ===== CONTENT WRAPPER ===== */
/* Mobile: sidebar stacks above main content */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 0 24px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 100%;
  margin-bottom: 18px;
}

.toc {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.toc h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 1px; }
.toc a {
  display: block;
  padding: 6px 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.83rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
  min-height: 34px;
  display: flex;
  align-items: center;
}
.toc a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
  text-decoration: none;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  padding: 16px;
  color: #fff;
  text-align: center;
}
.sidebar-cta h4     { color: #fff; font-size: 0.92rem; margin-bottom: 6px; }
.sidebar-cta p      { font-size: 0.82rem; color: rgba(255,255,255,0.88); margin-bottom: 10px; }
.sidebar-cta strong { color: var(--accent); }

.btn-sidebar {
  display: block;
  background: #fff;
  color: var(--primary) !important;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-sidebar:hover {
  background: var(--accent);
  color: var(--secondary) !important;
  text-decoration: none;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.main-content section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* ===== FIGURES / IMAGES ===== */
.article-visual {
  margin: 1.1rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.article-visual img { width: 100%; }
.article-visual figcaption {
  padding: 7px 12px;
  background: var(--bg);
  font-size: 0.74rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ===== FEATURE CARDS ===== */
.key-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 1.1rem 0;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 0.93rem; margin-bottom: 0.4rem; color: var(--secondary); }
.feature-card p  { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 0; }

.pros-card { border-left: 4px solid var(--success); }
.cons-card { border-left: 4px solid var(--danger);  }

.pros-cons-list { list-style: none; padding: 0; }
.pros-cons-list li {
  padding: 3px 0 3px 20px;
  font-size: 0.85rem;
  position: relative;
}
.pros-cons-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.pros-cons-list.cons li { color: var(--text-muted); }
.pros-cons-list.cons li::before { content: '✕'; color: var(--danger); }

.game-list { list-style: none; padding: 0; }
.game-list li {
  padding: 4px 0;
  font-size: 0.87rem;
  border-bottom: 1px solid var(--border);
}
.game-list li:last-child { border-bottom: none; }

.mini-list { list-style: none; padding: 0; margin: 0.6rem 0 0.9rem; }
.mini-list li { padding: 2px 0; font-size: 0.84rem; color: var(--text-muted); }
.mini-list li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ===== CASINO CARDS ===== */
.casino-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1.1rem 0;
}

/* Mobile layout: stacked rows */
.casino-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.casino-card:hover { box-shadow: var(--shadow-md); }

.casino-card.rank-1 { border-left: 5px solid #fbbf24; background: #fffdf0; }
.casino-card.rank-2 { border-left: 5px solid #94a3b8; }
.casino-card.rank-3 { border-left: 5px solid #b45309; }
.casino-card.rank-4 { border-left: 5px solid var(--primary); }

.casino-rank {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 800;
  flex-shrink: 0;
}
.rank-1 .rank-number { background: #fbbf24; color: #78350f; }
.rank-2 .rank-number { background: #94a3b8; color: #fff; }
.rank-3 .rank-number { background: #b45309; color: #fff; }
.rank-4 .rank-number { background: var(--primary); color: #fff; }

.rank-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  line-height: 1.2;
}

.casino-info       { min-width: 0; }
.casino-info h3    { font-size: 0.97rem; margin-bottom: 4px; }

.casino-stars      { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.star-fill         { color: #fbbf24; font-size: 0.9rem; letter-spacing: 2px; line-height: 1; }
.rating-text       { color: var(--text-muted); font-size: 0.75rem; }

.casino-bonus {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.bonus-amount { font-size: 0.94rem; color: var(--success); font-weight: 700; }
.bonus-detail { font-size: 0.75rem; color: var(--text-muted); }

.casino-info > p { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 6px; }

.casino-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.casino-features li {
  font-size: 0.74rem;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.casino-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.btn-casino {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 44px;
}
.btn-casino:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: #fff;
}

.casino-disclaimer {
  font-size: 0.67rem;
  color: var(--text-light);
  text-align: center;
}

.casino-comparison-note {
  background: var(--warning-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.81rem;
  color: #92400e;
  margin-top: 8px;
  overflow-wrap: break-word;
}

/* ===== STEPS ===== */
.rules-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1.1rem 0;
}

.rule-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 13px;
  border: 1px solid var(--border);
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.rule-step h4 { margin-bottom: 2px; color: var(--secondary); font-size: 0.9rem; }
.rule-step p  { font-size: 0.84rem; color: var(--text-muted); margin: 0; }

/* ===== INFO / WARNING BOXES ===== */
.info-box {
  background: var(--primary-light);
  border: 1px solid var(--primary-muted);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 1.1rem 0;
}
.info-box h4 { color: var(--primary-dark); margin-bottom: 5px; font-size: 0.91rem; }
.info-box p  { font-size: 0.84rem; color: #7c3405; margin: 0; }

.warning-box {
  background: var(--danger-light);
  border: 1px solid #fca5a5;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 1.1rem 0;
  font-size: 0.84rem;
  color: #7f1d1d;
}
.warning-box ul { margin-top: 6px; }
.warning-box li { margin-bottom: 4px; }

/* ===== TABLES ===== */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 1.1rem 0;
}

table              { width: 100%; border-collapse: collapse; font-size: 0.81rem; }
caption            { font-size: 0.74rem; color: var(--text-muted); padding: 7px 10px; text-align: left; }
thead tr           { background: var(--secondary); }
thead th {
  padding: 9px 11px;
  text-align: left;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
tbody td           { padding: 9px 11px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg); }
tbody tr:hover     { background: var(--primary-light); }

.specs-table tbody tr td:first-child {
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
}

.mode-badge {
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}
.mode-badge.easy     { background: var(--success-light); color: var(--success); }
.mode-badge.medium   { background: var(--warning-light); color: var(--warning); }
.mode-badge.hard     { background: #fee2e2; color: var(--danger); }
.mode-badge.hardcore { background: #f3e8ff; color: #7c3aed; }

/* ===== PAYMENT ICONS ===== */
.payment-method-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}
.payment-icon-label { font-size: 0.81rem; color: var(--text-muted); }

/* ===== DOWNLOAD CARDS ===== */
.download-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 1.1rem 0;
}

.download-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.download-card h3  { font-size: 0.92rem; color: var(--secondary); margin-bottom: 0; }
.download-card > p { font-size: 0.77rem; color: var(--text-muted); margin: 0; }
.download-card ul  { list-style: none; padding: 0; }
.download-card li  { font-size: 0.83rem; padding: 2px 0; }

.install-note  { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.mini-steps    { padding-left: 1.2rem; margin: 0; }
.mini-steps li { font-size: 0.78rem; padding: 2px 0; color: var(--text-muted); }

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.83rem;
  text-decoration: none;
  transition: background 0.2s;
  background: var(--primary);
  color: #fff;
  min-height: 44px;
  margin-top: auto;
  text-align: center;
}
.btn-download:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn-download.android       { background: #16a34a; }
.btn-download.android:hover { background: #15803d; }
.btn-download.ios           { background: var(--secondary); }
.btn-download.ios:hover     { background: var(--secondary-light); }

/* ===== FAQ ===== */
.faq-category { margin-bottom: 1.3rem; }
.faq-category h3 {
  font-size: 0.88rem;
  color: var(--secondary);
  margin-bottom: 8px;
  padding: 7px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  border-bottom: none;
}
.faq-list { display: flex; flex-direction: column; gap: 5px; }

details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
details[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-muted);
}

summary {
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  background: var(--white);
  transition: background 0.15s;
  gap: 10px;
  min-height: 44px;
  overflow-wrap: break-word;
  word-break: break-word;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
}
details[open] summary::after { content: '−'; }
summary:hover { background: var(--primary-light); }

details p, details ul, details ol {
  padding: 4px 14px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  background: var(--white);
  overflow-wrap: break-word;
}
details ul, details ol { padding-left: 2.2rem; padding-bottom: 12px; }
details li { margin-bottom: 4px; color: var(--text-muted); font-size: 0.85rem; }

/* ===== RESPONSIBLE GAMING ===== */
.responsible-gaming {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 15px;
  border: 1px solid var(--border);
  margin-top: 1rem;
}
.rg-tools { list-style: none; padding: 0; }
.rg-tools li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  overflow-wrap: break-word;
}
.rg-tools li:last-child { border-bottom: none; }
.rg-tools strong { color: var(--secondary); }

.help-resources {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 11px;
  margin-top: 10px;
  border: 1px solid var(--border);
}
.help-resources p { font-size: 0.85rem; margin-bottom: 4px; }

/* ===== AUTHOR ===== */
.author-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.author-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.author-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--primary);
  width: 60px;
  height: 60px;
}
.author-info h3 { font-size: 0.92rem; margin-bottom: 4px; }
.author-info p  { font-size: 0.82rem; color: var(--text-muted); }

/* ===== CTA FINAL ===== */
.cta-final {
  background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 100%);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  color: #fff;
  margin-bottom: 14px;
}
.cta-final h3     { color: #fff; font-size: 1.15rem; margin-bottom: 0.5rem; border-bottom: none; padding: 0; }
.cta-final > p    { color: rgba(255,255,255,0.82); margin-bottom: 1.1rem; font-size: 0.9rem; }
.cta-final strong { color: var(--accent); }

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
  min-height: 44px;
}
.btn-cta-large:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.cta-note {
  margin-top: 10px !important;
  font-size: 0.76rem !important;
  color: rgba(255,255,255,0.5) !important;
}

/* ===== FOOTER ===== */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.75);
  padding: 32px 0 18px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.footer-col p { font-size: 0.82rem; line-height: 1.6; margin-bottom: 4px; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--primary); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.footer-bottom a       { color: var(--primary); }
.footer-bottom a:hover { color: var(--accent); }

/* =========================================
   TABLET  ≥ 640px
   ========================================= */
@media (min-width: 640px) {
  .container { padding: 0 20px; }

  .logo-img { height: 38px; }

  .hero-cta { flex-direction: row; }
  .btn-hero, .btn-secondary { width: auto; }

  .key-features    { grid-template-columns: repeat(2, 1fr); }
  .download-options { grid-template-columns: repeat(2, 1fr); }

  .main-content section { padding: 22px 20px; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }

  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   DESKTOP  ≥ 1024px
   ========================================= */
@media (min-width: 1024px) {
  :root { --header-h: 62px; }

  .container { padding: 0 24px; }

  .logo-img { height: 42px; }
  .header-content { gap: 20px; }

  /* show desktop nav, hide hamburger */
  .desktop-nav { display: flex; }
  .nav-toggle  { display: none; }

  /* reset dropdown state on desktop regardless of checkbox */
  .nav-check:checked ~ .desktop-nav {
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .nav-check:checked ~ .desktop-nav a {
    padding: 6px 10px;
    font-size: 0.84rem;
    border-radius: var(--radius-sm);
    min-height: unset;
    display: block;
    border-left: none;
  }

  .cta-button { padding: 9px 18px; font-size: 0.82rem; min-height: 38px; }

  /* hero: two-column */
  .hero-game { padding: 56px 0; }
  .hero-content-wrapper {
    flex-direction: row;
    gap: 48px;
    align-items: center;
  }
  .hero-text  { flex: 1; }
  .hero-visual { flex: 1.3; }

  /* two-column layout: sticky sidebar + main */
  .content-wrapper {
    flex-direction: row;
    gap: 28px;
    padding: 36px 0 40px;
    align-items: flex-start;
  }

  .sidebar {
    width: 265px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    margin-bottom: 0;
  }

  .main-content section { padding: 28px 32px; }

  /* feature cards: 3 columns */
  .key-features { grid-template-columns: repeat(3, 1fr); }

  /* casino cards: grid layout */
  .casino-card {
    display: grid;
    grid-template-columns: 76px 1fr 155px;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    flex-direction: unset;
  }
  .casino-rank {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .rank-number { width: 44px; height: 44px; min-width: 44px; font-size: 1.15rem; }
  .casino-actions { align-items: center; }

  /* download: 3 columns */
  .download-options { grid-template-columns: repeat(3, 1fr); }

  /* footer: 4 columns */
  .footer-content { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .cta-final { padding: 40px 36px; }
  .cta-final h3 { font-size: 1.4rem; }
}
