/* ================================================================
   BETSSONAR.ONLINE — Global Design System
   Betsson Argentina — Guía Independiente 2026
   ================================================================ */

/* Fonts loaded via <link> in HTML head for non-blocking performance */

/* === CSS VARIABLES === */
:root {
  /* Brand palette */
  --clr-primary:    #FF6B00;      /* Betsson orange */
  --clr-primary-d:  #D95500;
  --clr-primary-l:  #FF8C2E;
  --clr-accent:     #FFCA28;      /* gold */
  --clr-green:      #22C55E;
  --clr-red:        #EF4444;

  /* Backgrounds */
  --bg-dark:        #0A0D14;
  --bg-card:        #111520;
  --bg-card2:       #181E2D;
  --bg-border:      rgba(255,255,255,0.08);

  /* Text */
  --txt-primary:    #F1F5F9;
  --txt-secondary:  #94A3B8;
  --txt-muted:      #64748B;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #0A0D14 0%, #131927 50%, #0C1020 100%);
  --grad-orange: linear-gradient(135deg, #FF6B00, #FF8C2E);
  --grad-card: linear-gradient(145deg, #181E2D, #111520);

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Spacing */
  --section-py: 5rem;
  --container: 1200px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-orange: 0 4px 24px rgba(255,107,0,0.3);
  --glow-orange: 0 0 40px rgba(255,107,0,0.15);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--txt-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* prevent horizontal scroll globally */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Prevent long words/URLs from breaking layout */
p, li, td, th, h1, h2, h3, h4, h5, h6, .card-title, .card-desc {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; color: var(--txt-secondary); }
strong { color: var(--txt-primary); font-weight: 600; }

/* === HEADER / NAVBAR === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,13,20,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 2rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--txt-primary);
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.nav-logo img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}
.nav-logo span:not(.logo-badge) { color: var(--clr-primary); }
.logo-badge {
  font-size: 0.6rem;
  background: var(--clr-primary);
  color: #fff;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--txt-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--txt-primary);
  background: var(--bg-card2);
}
.nav-cta {
  background: var(--grad-orange) !important;
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: var(--shadow-orange);
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.92; transform: translateY(-1px) !important; }

/* Mobile/tablet menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--txt-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* === BREADCRUMB === */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--txt-muted);
}
.breadcrumb a { color: var(--txt-muted); }
.breadcrumb a:hover { color: var(--clr-primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* === HERO === */
.hero {
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--clr-primary-l);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.hero h1 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #F1F5F9 60%, #FF8C2E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--txt-secondary);
  max-width: 600px;
  margin-bottom: 1.75rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stat-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 130px;
}
.stat-pill .num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-primary);
}
.stat-pill .lbl {
  font-size: 0.72rem;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font-body);
  white-space: normal;
  text-align: center;
}
.btn-primary {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,107,0,0.4); }
.btn-outline {
  background: transparent;
  color: var(--txt-primary);
  border: 1.5px solid var(--bg-border);
}
.btn-outline:hover { border-color: var(--clr-primary); color: var(--clr-primary); background: rgba(255,107,0,0.05); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* === CARDS === */
.card {
  background: var(--grad-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,107,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--txt-primary);
}
.card-desc { font-size: 0.9rem; color: var(--txt-secondary); margin: 0; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* === SECTIONS === */
.section { padding: var(--section-py) 0; }
.section-sm { padding: 3rem 0; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--txt-secondary);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

/* === TABLES === */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--bg-border); margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 400px; }
thead { background: var(--bg-card2); }
th { padding: 0.85rem 1rem; text-align: left; font-weight: 600; color: var(--txt-primary); white-space: nowrap; }
td { padding: 0.8rem 1rem; border-top: 1px solid var(--bg-border); color: var(--txt-secondary); vertical-align: middle; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
td .badge-yes { color: var(--clr-green); font-weight: 600; }
td .badge-no  { color: var(--clr-red); font-weight: 600; }
td .badge-warn { color: var(--clr-accent); font-weight: 600; }

/* === FAQ ACCORDION === */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(255,107,0,0.4); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--txt-primary);
  gap: 1rem;
}
.faq-q .icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,107,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-primary);
  font-size: 1rem;
  transition: transform 0.3s;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}
.faq-a p { font-size: 0.9rem; color: var(--txt-secondary); margin: 0; }

/* === STEP LIST === */
.steps { display: flex; flex-direction: column; gap: 1rem; }
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items: start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-orange);
}
.step-body h4 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--txt-primary); }
.step-body p { font-size: 0.88rem; color: var(--txt-secondary); margin: 0; }

/* === ALERT BOXES === */
.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: 0.9rem;
  margin: 1.25rem 0;
}
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.alert p { margin: 0; }
.alert-warn  { background: rgba(255,202,40,0.08); border-color: var(--clr-accent); }
.alert-warn  .alert-icon { color: var(--clr-accent); }
.alert-info  { background: rgba(59,130,246,0.08); border-color: #3B82F6; }
.alert-info  .alert-icon { color: #3B82F6; }
.alert-success { background: rgba(34,197,94,0.08); border-color: var(--clr-green); }
.alert-success .alert-icon { color: var(--clr-green); }
.alert-danger  { background: rgba(239,68,68,0.08); border-color: var(--clr-red); }
.alert-danger  .alert-icon { color: var(--clr-red); }

/* === CHECKLIST === */
.checklist { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--txt-secondary);
}
.check-item .ci { flex-shrink: 0; margin-top: 0.1rem; font-size: 1rem; }
.check-item.ok .ci { color: var(--clr-green); }
.check-item.warn .ci { color: var(--clr-accent); }
.check-item.err .ci { color: var(--clr-red); }

/* === GAMES GRID === */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  border-color: rgba(255,107,0,0.4);
}
.game-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.game-label {
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--txt-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.game-card:hover .game-overlay { opacity: 1; }
.game-play-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--clr-primary);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
}

/* === AFFILIATE CTA BOX === */
.cta-box {
  background: linear-gradient(135deg, #1A1000 0%, #1E1400 40%, #100A00 100%);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-orange);
}
.cta-box > * {
  position: relative;
  z-index: 1;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,107,0,0.08), transparent 70%);
  pointer-events: none;
}
.cta-box h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.cta-box p  { color: var(--txt-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.cta-disclaimer {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--txt-muted);
}

/* === CONTENT ARTICLE === */
.article-body { max-width: 800px; }
.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--bg-border);
  font-size: 1.4rem;
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--clr-primary-l);
}
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--txt-secondary);
  font-size: 0.95rem;
}
.article-body li { margin-bottom: 0.4rem; list-style: disc; }
.article-body ol li { list-style: decimal; }

/* TOC */
.toc-box {
  background: var(--bg-card2);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc-box h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--txt-muted); margin-bottom: 0.75rem; }
.toc-box ol { margin: 0; padding-left: 1.25rem; }
.toc-box li { margin-bottom: 0.35rem; font-size: 0.88rem; }
.toc-box a { color: var(--txt-secondary); transition: color 0.2s; }
.toc-box a:hover { color: var(--clr-primary); }

/* Meta info bar */
.meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--txt-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.meta-bar span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 0;
}

/* === SIDEBAR LAYOUT === */
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
}
.article-body,
.sidebar {
  min-width: 0;
}
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--txt-primary); }
.sidebar-links { display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar-links a {
  font-size: 0.85rem;
  color: var(--txt-secondary);
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, background 0.2s;
}
.sidebar-links a:hover { color: var(--clr-primary); background: rgba(255,107,0,0.05); }

/* === QUICK FACTS BOX === */
.quick-facts {
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.quick-facts h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}
.qf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.qf-item { font-size: 0.85rem; }
.qf-label { color: var(--txt-muted); font-size: 0.75rem; display: block; margin-bottom: 0.15rem; }
.qf-value { color: var(--txt-primary); font-weight: 600; }

/* === FOOTER === */
.site-footer {
  background: #070B12;
  border-top: 1px solid var(--bg-border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--txt-muted); margin-top: 0.75rem; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; color: var(--txt-primary); margin-bottom: 0.75rem; }
.footer-col a {
  display: block;
  font-size: 0.83rem;
  color: var(--txt-muted);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--clr-primary); }
.footer-bottom {
  border-top: 1px solid var(--bg-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--txt-muted);
  line-height: 1.6;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--txt-muted);
  flex-wrap: wrap;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--clr-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: initial; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* Show hamburger on tablets too — nav has 7 items and doesn't fit below 900px */
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(10,13,20,0.98); padding: 1.5rem; border-bottom: 1px solid var(--bg-border); gap: 1rem; z-index: 9999; }
  .nav-links.open { display: flex; }
  .nav-cta { white-space: normal; text-align: center; }
}
@media (max-width: 768px) {
  :root { --section-py: 3rem; }
  body { max-width: 100%; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stat-box { flex-direction: row; flex-wrap: wrap; }
  .stat-pill { flex: 1; min-width: 100px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .qf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-box { padding: 1.75rem 1.25rem; }
}

/* === UTILITIES === */
.text-orange { color: var(--clr-primary); }
.text-green  { color: var(--clr-green); }
.text-red    { color: var(--clr-red); }
.text-muted  { color: var(--txt-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none; }

/* Highlight box */
.highlight-box {
  background: rgba(255,107,0,0.06);
  border-left: 3px solid var(--clr-primary);
  padding: 0.9rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--txt-secondary);
}
.highlight-box strong { color: var(--txt-primary); }

/* Verdict badge */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.verdict-good { background: rgba(34,197,94,0.1); color: var(--clr-green); border: 1px solid rgba(34,197,94,0.25); }
.verdict-warn { background: rgba(255,202,40,0.1); color: var(--clr-accent); border: 1px solid rgba(255,202,40,0.25); }
.verdict-bad  { background: rgba(239,68,68,0.1);  color: var(--clr-red);   border: 1px solid rgba(239,68,68,0.25); }

/* Trust badges row */
.trust-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--txt-secondary);
}
.trust-badge .ti { font-size: 1rem; }

/* === TABLE CELL BADGES (direct td classes) === */
td.badge-yes { color: var(--clr-green); font-weight: 600; }
td.badge-no  { color: var(--clr-red);   font-weight: 600; }
td.badge-warn{ color: var(--clr-accent); font-weight: 600; }

/* === ARTICLE h1 GRADIENT HIGHLIGHT === */
.hero h1 span,
.hero h1 .text-orange { color: var(--clr-primary); -webkit-text-fill-color: var(--clr-primary); }

/* === INLINE TEXT COLORS === */
.text-orange { color: var(--clr-primary) !important; }
.text-green  { color: var(--clr-green)   !important; }
.text-orange-d { color: var(--clr-primary-d) !important; }

/* === CARD HOVER on article inner pages === */
.article-body .card {
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* === RESPONSIVE: sidebar below on tablet === */
@media (max-width: 1024px) {
  .qf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .qf-grid { grid-template-columns: 1fr; }
  .content-with-sidebar { gap: 1.5rem; }
}

/* === MOBILE STICKY CTA === */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(10,13,20,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--bg-border);
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.mobile-sticky-cta .btn {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 0.85rem;
  box-shadow: 0 4px 15px rgba(255,107,0,0.4);
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(255,107,0,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255,107,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,0,0); }
}

@media (max-width: 768px) {
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* === PERFORMANCE: touch manipulation (eliminates 300ms click delay) === */
a, button, [role="button"], input, select, textarea {
  touch-action: manipulation;
}

/* === MOBILE NAV: scroll lock when open === */
body.nav-open { overflow: hidden; }

/* === NAV DROPDOWN ANIMATION (applies wherever hamburger is shown) === */
@media (max-width: 900px) {
  .nav-links {
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Hamburger → X animation */
  .nav-toggle span { transition: transform 0.25s ease, opacity 0.25s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Larger touch targets (min 44px) for nav links */
  .nav-links a {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 10px;
  }
  .nav-cta { justify-content: center; }
}

@media (max-width: 768px) {
  /* Better FAQ tap target */
  .faq-q { min-height: 52px; }

  /* Reduce backdrop-filter on mobile (GPU performance) */
  .site-header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .mobile-sticky-cta {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Full-width article body (no wasted space) */
  .article-body { max-width: 100%; }

  /* Disable card hover lift on touch (no hover state anyway) */
  .card:hover { transform: none; box-shadow: none; }
  .game-card:hover { transform: none; box-shadow: none; }
  .btn-primary:hover { transform: none; }
}

/* === SMALL SCREENS (≤390px): tighter container === */
@media (max-width: 390px) {
  .container { padding: 0 0.875rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .cta-box { padding: 1.5rem 1rem; }
  .faq-q { padding: 0.9rem 1rem; }
  .faq-a { padding: 0 1rem; }
  .faq-item.open .faq-a { padding: 0 1rem 1rem; }
  .card { padding: 1.25rem; }
  h1 { font-size: clamp(1.55rem, 7vw, 1.9rem); }
}

/* === REDUCED MOTION: respect user preference === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .mobile-sticky-cta .btn { animation: none; }
}

/* ================================================================
   ENHANCED MOBILE ADAPTATION (< 768px)
   ================================================================ */

/* Tables: horizontal scroll with visual indicator */
@media (max-width: 768px) {
  .table-wrap {
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255,107,0,0.1);
    position: relative;
  }
  
  table {
    min-width: 500px;
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 0.7rem;
    white-space: nowrap;
  }
  
  /* Visual hint for horizontal scrolling */
  .table-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, rgba(255,107,0,0.1), transparent);
    pointer-events: none;
    border-radius: 0 var(--radius) var(--radius) 0;
  }
}

/* Image optimization */
@media (max-width: 768px) {
  .hero::before {
    width: 400px;
    height: 400px;
    right: -50%;
    top: -50%;
  }
  
  .cta-box::before {
    width: 200px;
    height: 200px;
  }
}

/* Accessibility: better focus states for mobile */
@media (max-width: 768px) {
  button:focus-visible,
  a:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 2px;
  }
  
  /* Increase touch target to 44px minimum (WCAG AA) */
  .btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }
  
  input, select, textarea {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Improved spacing on small screens */
@media (max-width: 768px) {
  :root {
    --section-py: 2.5rem;
  }
  
  .section { padding: var(--section-py) 0; }
  .section-sm { padding: 2rem 0; }
  
  .container { padding: 0 1rem; }

  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .card { padding: 1.25rem; }
  .sidebar-card { padding: 1rem; }
  
  .article-body h2 {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    font-size: 1.2rem;
  }
  
  .article-body h3 { font-size: 1rem; }
}

/* Hero section wrapping */
@media (max-width: 768px) {
  .hero-inner {
    gap: 1.5rem;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
  
  .hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  
  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .meta-bar {
    gap: 0.65rem 1rem;
  }
}

/* Menu link improvements */
@media (max-width: 900px) {
  .nav-inner {
    min-height: 60px;
    gap: 1rem;
  }

  .nav-logo {
    max-width: calc(100% - 3.5rem);
    font-size: 1.1rem;
    gap: 0.5rem;
  }
  
  .nav-links {
    top: 60px;
    padding: 1rem;
  }
  
  .nav-links a {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
}

/* Text sizes and line-height */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.6;
  }
  
  h1 { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
  h2 { font-size: clamp(1.1rem, 4vw, 1.4rem); }
  h3 { font-size: clamp(0.95rem, 3.5vw, 1.2rem); }
  
  p { font-size: 0.9rem; }
  .article-body p { font-size: 0.95rem; }
}

/* Sidebar: better spacing on mobile */
@media (max-width: 768px) {
  .content-with-sidebar {
    gap: 1.5rem;
  }
  
  .sidebar {
    gap: 1rem;
  }
  
  .sidebar-card {
    padding: 1rem;
    border-radius: var(--radius);
  }
}

/* Alert boxes: better mobile sizing */
@media (max-width: 768px) {
  .alert {
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-left-width: 3px;
    font-size: 0.85rem;
    margin: 1rem 0;
  }
  
  .alert-icon { font-size: 1rem; }
  .alert p { font-size: 0.85rem; }
}

/* FAQ: better mobile UX */
@media (max-width: 768px) {
  .faq-list { gap: 0.6rem; }
  
  .faq-q {
    padding: 1rem;
    font-size: 0.9rem;
    gap: 0.75rem;
    min-height: 48px;
  }
  
  .faq-q .icon {
    width: 20px;
    height: 20px;
  }
  
  .faq-a {
    margin: 0;
    padding: 0 1rem;
    max-height: 0;
  }
  
  .faq-item.open .faq-a {
    max-height: 600px;
    padding: 0 1rem 1rem;
  }
  
  .faq-a p { font-size: 0.85rem; }
}

/* Step list on mobile */
@media (max-width: 768px) {
  .steps { gap: 0.8rem; }
  
  .step {
    grid-template-columns: 35px 1fr;
    gap: 0.75rem;
  }
  
  .step-num {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
  
  .step-body h4 { font-size: 0.9rem; }
  .step-body p { font-size: 0.82rem; }
}

/* CTA boxes on mobile */
@media (max-width: 768px) {
  .cta-box {
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    text-align: center;
  }
  
  .cta-box h3 { font-size: 1.2rem; }
  .cta-box p { font-size: 0.9rem; }
  .cta-disclaimer { font-size: 0.7rem; }
}

/* Badge and pill sizing */
@media (max-width: 768px) {
  .stat-pill {
    flex: 0 1 calc(50% - 0.5rem);
    min-width: unset;
  }
  
  .stat-pill .num { font-size: 1.4rem; }
  .stat-pill .lbl { font-size: 0.65rem; }
}

/* Footer on mobile */
@media (max-width: 768px) {
  .site-footer { padding: 2rem 0 1rem; }
  
  .footer-grid {
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }
  
  .footer-brand p { font-size: 0.8rem; }
  .footer-col h5 { font-size: 0.8rem; }
  .footer-col a { font-size: 0.78rem; }
  
  .footer-disclaimer { font-size: 0.75rem; }
  .footer-legal { gap: 1rem; font-size: 0.75rem; }
}

/* Quick facts mobile */
@media (max-width: 768px) {
  .quick-facts {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .quick-facts h4 { font-size: 0.75rem; }
  .qf-item { font-size: 0.8rem; }
  .qf-label { font-size: 0.7rem; }
}

/* TOC mobile */
@media (max-width: 768px) {
  .toc-box {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .toc-box h4 { font-size: 0.8rem; }
  .toc-box li { font-size: 0.82rem; }
}

/* Very small screens (320px - 375px) */
@media (max-width: 374px) {
  .container { padding: 0 0.75rem; }
  
  .hero { padding: 2rem 0 1.75rem; }
  
  h1 { font-size: clamp(1.2rem, 5vw, 1.5rem) !important; }
  h2 { font-size: clamp(1rem, 4vw, 1.2rem) !important; }
  
  .nav-logo {
    font-size: 1rem;
    gap: 0.4rem;
  }
  .nav-logo img {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .logo-badge { font-size: 0.5rem; }
  
  .btn { padding: 0.65rem 1rem; font-size: 0.85rem; }
  .btn-lg { padding: 0.75rem 1rem; font-size: 0.9rem; }
  
  .card { padding: 1rem; }
  .cta-box { padding: 1.25rem 0.75rem; }
  
  .faq-q { padding: 0.85rem; }
  .alert { padding: 0.75rem 0.85rem; }
}

/* Ultra-small screens (< 320px) */
@media (max-width: 319px) {
  :root {
    --section-py: 1.5rem;
  }
  
  .container { padding: 0 0.65rem; }
  .nav-inner { gap: 0.5rem; }
  
  h1 { font-size: 1.1rem !important; }
  body { font-size: 14px; }
}

/* Landscape mode (small height) */
@media (max-height: 600px) and (max-width: 768px) {
  .hero { padding: 1.5rem 0 1rem; }
  .section { padding: 1.5rem 0; }
  .mobile-sticky-cta { padding: 0.5rem 0.75rem; }
  .mobile-sticky-cta .btn { padding: 0.6rem; font-size: 0.9rem; }
}

/* Print styles */
@media print {
  .site-header, .site-footer, .breadcrumb, .mobile-sticky-cta, .sidebar, .nav-toggle {
    display: none !important;
  }
  
  body { padding-bottom: 0; }
  .article-body { max-width: 100%; }
}
