/* styles.css (classic / clean)
   - Simple colors, minimal effects
   - Traditional layout + readable typography
*/

:root{
  --bg: #ffffff;
  --text: #1f2937;       /* slate-800 */
  --muted: #4b5563;      /* slate-600 */
  --border: #e5e7eb;     /* gray-200 */
  --panel: #f9fafb;      /* gray-50 */
  --accent: #1d4ed8;     /* blue-700 */
  --accent-2: #16a34a;   /* green-600 */
  --warn: #b45309;       /* amber-700 */

  --radius: 10px;
  --radius-sm: 8px;

  --container: 1120px;
  --pad: 16px;
  --header-h: 72px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 2*var(--pad)));
  margin-inline: auto;
}

:focus-visible{
  outline: 3px solid rgba(29,78,216,.35);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Header */
header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-content{
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Logo sizing fix (fits header nicely) */
.logo-img{
  height: 34px;         /* <= adjust if needed */
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.desktop-nav{
  display: none;
  align-items: center;
  gap: 16px;
}
.desktop-nav a{
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}
.desktop-nav a:hover{
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-link{
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
}
.login-link:hover{
  color: var(--text);
}

.cta-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(29,78,216,.25);
  background: var(--accent);
  color: #fff;
}
.cta-button:hover{
  background: #1e40af; /* blue-800 */
  text-decoration: none;
}

/* Hero */
.hero-game{
  padding: 26px 0 16px;
}
.hero-content-wrapper{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.hero-text{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
}
.hero-text h1{
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
}
.subtitle{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}
.game-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}
.badge{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
}

.hero-cta{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 12px;
}
.btn-hero{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.btn-hero:hover{
  background: var(--panel);
  text-decoration: none;
}
.btn-hero.primary{
  background: var(--accent);
  border-color: rgba(29,78,216,.25);
  color: #fff;
}
.btn-hero.primary:hover{
  background: #1e40af;
}
.btn-hero.secondary{
  border-color: rgba(22,163,74,.25);
  color: #0f172a;
}
.btn-hero.secondary:hover{
  background: #f0fdf4; /* green-50 */
}

.trust-indicators{
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Hero visual */
.hero-visual{
  display: grid;
  gap: 12px;
}
.hero-image-wrapper{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}
.play-overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.25);
}
.play-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.play-button:hover{
  background: var(--panel);
  text-decoration: none;
}

.quick-stats{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
}
.stats-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.stat-item{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.stat-label{
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.stat-value{
  font-weight: 800;
  font-size: 15px;
}
.stat-item.highlight{
  border-color: rgba(180,83,9,.25);
  background: #fffbeb; /* amber-50 */
}

/* Bonuses */
.bonuses-section{
  padding: 18px 0 8px;
}
.bonuses-section h2{
  margin: 0 0 12px;
  font-size: 20px;
}
.bonus-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.bonus-card{
  position: relative;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
}
.bonus-card.featured{
  border-color: rgba(29,78,216,.25);
}
.bonus-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.bonus-card h3{
  margin: 0 0 8px;
  font-size: 16px;
}
.bonus-amount{
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--accent);
}
.bonus-features{
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
}
.bonus-features li{ margin: 6px 0; }

.btn-bonus{
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}
.btn-bonus:hover{
  background: #eef2ff; /* indigo-50-ish */
  text-decoration: none;
}

/* Sidebar + main content */
.content-wrapper{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px 0 34px;
}
.sidebar{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
}
.toc h3{ margin: 0 0 10px; font-size: 15px; }
.toc ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a{
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
}
.toc a:hover{
  background: #eef2ff;
  color: var(--text);
  text-decoration: none;
}

.sidebar-cta{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.sidebar-cta h4{ margin: 0 0 6px; }
.sidebar-cta p{ margin: 0 0 10px; color: var(--muted); }
.btn-sidebar{
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid rgba(22,163,74,.25);
  background: #f0fdf4;
  color: #14532d;
}
.btn-sidebar:hover{
  background: #dcfce7;
  text-decoration: none;
}

.main-content{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
}
.main-content section{
  scroll-margin-top: calc(var(--header-h) + 16px);
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.main-content section:first-child{
  border-top: none;
  padding-top: 4px;
}
.main-content h2{
  margin: 0 0 10px;
  font-size: 20px;
}
.main-content h3{
  margin: 14px 0 8px;
  font-size: 16px;
}
.main-content p{ margin: 0 0 10px; color: var(--muted); }

/* Figure */
.article-visual{ margin: 10px 0 14px; }
.article-visual img{
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.article-visual figcaption{
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Steps */
.step-by-step{
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
}
.step{
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 12px;
}
.step-number{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 800;
  background: #eef2ff;
  border: 1px solid rgba(29,78,216,.18);
  color: #1e3a8a;
}
.step h3{ margin: 0 0 6px; font-size: 15px; }
.step p{ margin: 0; }

/* Table */
.table-container{
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.data-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}
.data-table th,
.data-table td{
  border-bottom: 1px solid var(--border);
  padding: 10px 10px;
  text-align: left;
  vertical-align: top;
}
.data-table th{
  background: var(--panel);
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.data-table tbody tr:hover{ background: #f8fafc; }

.mode-badge{
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
}
.mode-badge.easy{ background:#f0fdf4; border-color: rgba(22,163,74,.25); color:#14532d; }
.mode-badge.medium{ background:#eff6ff; border-color: rgba(29,78,216,.20); color:#1e3a8a; }
.mode-badge.hard{ background:#fffbeb; border-color: rgba(180,83,9,.22); color:#7c2d12; }
.mode-badge.hardcore{ background:#fef2f2; border-color: rgba(220,38,38,.20); color:#7f1d1d; }

.badge-sm{
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
}

/* Tip box */
.strategy-tip{
  border: 1px solid rgba(180,83,9,.22);
  background: #fffbeb;
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 12px;
}
.strategy-tip h4{ margin: 0 0 6px; font-size: 15px; }
.strategy-tip p{ margin: 0; color: #7c2d12; }

/* Features */
.features-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.feature-box{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
}
.feature-icon{ font-size: 20px; margin-bottom: 6px; }
.feature-box h3{ margin: 0 0 6px; font-size: 15px; }
.feature-box p{ margin: 0; }

/* Payments */
.payment-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.payment-category{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
}
.payment-category.featured{
  border-color: rgba(22,163,74,.25);
  background: #f0fdf4;
}
.payment-category h3{ margin: 0 0 8px; font-size: 15px; }
.payment-logos{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.payment-badge{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.payment-info{ margin: 0; color: var(--muted); font-size: 13px; }

.payment-limits{
  margin-top: 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
}
.payment-limits h4{ margin: 0 0 6px; font-size: 14px; }
.payment-limits ul{ margin: 0; padding-left: 18px; color: var(--muted); }
.payment-limits li{ margin: 6px 0; }

/* Modes */
.modes-container{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.mode-card{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
}
.mode-card.real-money{
  background: #eff6ff;
  border-color: rgba(29,78,216,.20);
}
.mode-header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.mode-tag{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.mode-tag.premium{
  border-color: rgba(29,78,216,.20);
  background: #fff;
  color: #1e3a8a;
}
.mode-features{ margin: 8px 0 10px; padding-left: 18px; color: var(--muted); }
.mode-features li{ margin: 6px 0; }

.btn-mode{
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.btn-mode:hover{ background: var(--panel); text-decoration: none; }
.btn-mode.primary{
  background: var(--accent);
  border-color: rgba(29,78,216,.25);
  color: #fff;
}
.btn-mode.primary:hover{ background: #1e40af; }

/* Provably fair */
.provably-fair-section{
  margin-top: 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
}
.fair-process{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0;
}
.fair-step{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 12px;
}
.fair-arrow{ display: none; }
.fair-note a{ font-weight: 700; }

/* FAQ */
.faq-list{ display: grid; gap: 10px; }
details{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 12px;
}
summary{
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  list-style: none;
}
summary::-webkit-details-marker{ display:none; }
details p{ margin: 10px 0 0; color: var(--muted); }

/* Download */
.download-options{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.download-card{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
}
.download-card.featured{
  background: #eff6ff;
  border-color: rgba(29,78,216,.20);
}
.platform-icon{ font-size: 24px; margin-bottom: 6px; }
.platform-desc{ margin: 0 0 8px; color: var(--muted); }
.platform-features{ margin: 0 0 10px; padding-left: 18px; color: var(--muted); }
.platform-features li{ margin: 6px 0; }

.install-steps-mini{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  margin: 10px 0;
}
.install-steps-mini p{ margin: 0 0 6px; font-weight: 700; color: var(--text); }
.install-steps-mini ol{ margin: 0; padding-left: 18px; color: var(--muted); }
.install-steps-mini li{ margin: 6px 0; }

.btn-download{
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.btn-download:hover{ background: var(--panel); text-decoration: none; }
.btn-download.primary{
  background: var(--accent);
  border-color: rgba(29,78,216,.25);
  color: #fff;
}
.btn-download.primary:hover{ background: #1e40af; }
.btn-download.android{ background:#f0fdf4; border-color: rgba(22,163,74,.25); color:#14532d; }
.btn-download.android:hover{ background:#dcfce7; }
.btn-download.ios{ background:#fffbeb; border-color: rgba(180,83,9,.22); color:#7c2d12; }
.btn-download.ios:hover{ background:#fef3c7; }

.security-badge{
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* System requirements */
.system-requirements{
  margin-top: 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
}
.requirements-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.req-col{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 12px;
}
.req-col h4{ margin: 0 0 6px; font-size: 14px; }
.req-col ul{ margin: 0; padding-left: 18px; color: var(--muted); }
.req-col li{ margin: 6px 0; }

/* Final CTA */
.cta-final{
  margin-top: 14px;
  border: 1px solid rgba(29,78,216,.20);
  background: #eff6ff;
  border-radius: var(--radius);
  padding: 16px;
}
.cta-final h3{ margin: 0 0 6px; font-size: 18px; }
.cta-final p{ margin: 0 0 10px; color: var(--muted); }
.cta-buttons{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.btn-cta-large{
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.btn-cta-large:hover{ background: var(--panel); text-decoration: none; }
.btn-cta-large.primary{
  background: var(--accent);
  border-color: rgba(29,78,216,.25);
  color: #fff;
}
.btn-cta-large.primary:hover{ background: #1e40af; }
.btn-cta-large.secondary{
  background: #f0fdf4;
  border-color: rgba(22,163,74,.25);
  color: #14532d;
}
.btn-cta-large.secondary:hover{ background: #dcfce7; }

.cta-note{ margin: 0; color: var(--muted); font-size: 13px; }

/* Footer */
footer{
  margin-top: 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-content{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px 0;
}
.footer-col{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
}
.footer-col h4{ margin: 0 0 8px; font-size: 15px; }
.footer-col p{ margin: 0 0 10px; color: var(--muted); }
.footer-col a{
  display: block;
  padding: 6px 0;
  color: var(--muted);
}
.footer-col a:hover{ color: var(--text); }

.footer-licenses{
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-bottom{
  padding: 12px 0 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (min-width: 820px){
  .desktop-nav{ display: flex; }

  .hero-content-wrapper{
    grid-template-columns: 1.05fr .95fr;
    align-items: start;
  }

  .hero-cta{ grid-template-columns: 1fr 1fr; }

  .bonus-cards{ grid-template-columns: repeat(3, minmax(0,1fr)); }

  .content-wrapper{
    grid-template-columns: 300px 1fr;
    gap: 16px;
  }
  .sidebar{
    position: sticky;
    top: calc(var(--header-h) + 12px);
    height: fit-content;
  }

  .features-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }

  .payment-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  .modes-container{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  .download-options{ grid-template-columns: repeat(3, minmax(0,1fr)); }

  .requirements-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }

  .cta-buttons{ grid-template-columns: 1fr 1fr; }

  .footer-content{ grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* optional */
.go{ cursor: pointer; }

/* ===== Mobile optimizations for "Meniu Rapid" + "Cum se Joacă" onward =====
   Drop this at the END of your styles.css (it overrides earlier rules)
*/

/* 1) Sidebar: make it compact + horizontal scroll TOC on mobile */
@media (max-width: 819px){
  .content-wrapper{
    padding-top: 10px;
  }

  .sidebar{
    padding: 12px;
  }

  .toc h3{
    font-size: 14px;
    margin-bottom: 8px;
  }

  /* turn TOC list into a horizontal chip row */
  .toc ul{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .toc ul::-webkit-scrollbar{
    height: 6px;
  }
  .toc ul::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,.15);
    border-radius: 999px;
  }
  .toc li{
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .toc a{
    white-space: nowrap;
    padding: 8px 10px;
  }

  /* Sidebar CTA: keep but tighter */
  .sidebar-cta{
    margin-top: 10px;
    padding-top: 10px;
  }
}

/* 2) Article spacing: reduce density + keep headings readable on small screens */
@media (max-width: 819px){
  .main-content{
    padding: 14px;
  }

  .main-content h2{
    font-size: 18px;
    line-height: 1.25;
  }
  .main-content h3{
    font-size: 15px;
  }

  .main-content section{
    padding: 12px 0;
  }

  .article-visual img{
    border-radius: 10px;
  }
  .article-visual figcaption{
    font-size: 12.5px;
  }
}

/* 3) "Cum se Joacă" steps: avoid cramped 2-column layout on very small screens */
@media (max-width: 420px){
  .step{
    grid-template-columns: 1fr; /* stack */
    gap: 10px;
  }
  .step-number{
    width: 34px;
    height: 34px;
  }
}

/* 4) Difficulty table: make it easier to use on mobile
      - allow horizontal scroll (already)
      - improve touch target + sticky header readability
*/
@media (max-width: 819px){
  .table-container{
    border-radius: 10px;
  }
  .data-table{
    min-width: 820px; /* ensures scroll rather than squish */
  }
  .data-table th,
  .data-table td{
    padding: 12px 10px;
  }
  .data-table th{
    position: sticky;
    top: 0;
    z-index: 1;
  }
}

/* 5) Generic grids under the article: force 1-column on mobile (some sections already are) */
@media (max-width: 819px){
  .features-grid,
  .payment-grid,
  .modes-container,
  .download-options,
  .requirements-grid{
    grid-template-columns: 1fr !important;
  }
}

/* 6) Buttons: full width and consistent height on mobile */
@media (max-width: 819px){
  .btn-hero,
  .btn-bonus,
  .btn-sidebar,
  .btn-mode,
  .btn-download,
  .btn-cta-large{
    width: 100%;
  }
}

/* 7) Make sidebar sticky OFF on mobile to avoid awkward jumps */
@media (max-width: 819px){
  .sidebar{
    position: static !important;
    top: auto !important;
  }
}

/* =========================
   MOBILE WIDTH FIX
   ========================= */

@media (max-width: 819px){

  /* 1) Reduce container side padding */
  .container{
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* 2) Prevent any child from forcing page overflow */
  body{
    overflow-x: hidden;
  }

  .main-content,
  .sidebar,
  .hero-text,
  .bonus-card,
  .feature-box,
  .payment-category,
  .mode-card,
  .download-card,
  .req-col{
    width: 100%;
    max-width: 100%;
  }

  /* 3) Make sure nothing stretches layout */
  img,
  table,
  .table-container{
    max-width: 100%;
  }

  /* 4) Let tables scroll INSIDE wrapper (not stretch page) */
  .table-container{
    overflow-x: auto;
  }

  .data-table{
    min-width: 700px; /* keeps table readable */
    width: max-content;
  }

  /* 5) Fix horizontal TOC overflow */
  .toc ul{
    max-width: 100%;
  }

  /* 6) Remove any accidental min-width inheritance */
  *{
    min-width: 0;
  }
}

    /* Base icon slot */
    .ico{
      display: inline-block;
      width: 16px;
      height: 16px;
      margin-right: 8px;
      vertical-align: -2px;
      color: currentColor;
      flex: 0 0 auto;
    }
    .badge{ display: inline-flex; align-items: center; }
    .feature-icon{ display: inline-flex; align-items:center; justify-content:center; }
    .platform-icon{ display: inline-flex; align-items:center; justify-content:center; }

    /* Render the Bootstrap Icon glyph through CSS (no extra markup) */
    .ico::before{
      font-family: "bootstrap-icons" !important;
      font-style: normal;
      font-weight: 400 !important;
      font-variant: normal;
      text-transform: none;
      line-height: 1;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      content: "";
      display: inline-block;
      width: 1em;
      height: 1em;
    }

    /* Hero badges */
    .ico-instant::before{ content: "\F46B"; } /* lightning-charge */
    .ico-bonus::before{ content: "\F3F5"; }   /* gift */
    .ico-secure::before{ content: "\F47B"; }  /* lock */
    .ico-mobile::before{ content: "\F4E7"; }  /* phone */

    /* Bonuses / misc headings */
    .ico-gift::before{ content: "\F3F5"; }      /* gift */
    .ico-cashback::before{ content: "\F116"; }  /* arrow-repeat */
    .ico-reload::before{ content: "\F116"; }    /* arrow-repeat */
    .ico-play::before{ content: "\F4F5"; }      /* play-circle */
    .ico-tip::before{ content: "\F431"; }       /* lightbulb */

    /* Features */
    .ico-target::before{ content: "\F5DA"; }    /* bullseye */
    .ico-payments::before{ content: "\F2A2"; }  /* credit-card */
    .ico-fair::before{ content: "\F47B"; }      /* lock */
    .ico-app::before{ content: "\F4E7"; }       /* phone */
    .ico-limits::before{ content: "\F7D2"; }    /* sliders */
    .ico-vip::before{ content: "\F586"; }       /* award */

    /* Platforms */
    .ico-web::before{ content: "\F3EE"; }       /* globe */
    .ico-android::before{ content: "\F7D3"; }   /* android2 */
    .ico-ios::before{ content: "\F65B"; }       /* apple */

    /* Make icon blocks a consistent size */
    .feature-icon .ico,
    .platform-icon .ico{
      margin-right: 0;
      width: 18px;
      height: 18px;
      vertical-align: 0;
    }

/* ===== Section image slot ===== */
.section-media{
  margin: 12px 0 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}
.section-media img{
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Small gallery / screenshots strip ===== */
.image-strip{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}
.image-strip img{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

/* 2–3 columns on larger screens */
@media (min-width: 720px){
  .image-strip{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
