/* ==========================================================================
   Betwinner Somalia — styles.css
   Dark brand UI + Somali signature (alindi ribbon + Star of Unity).
   ========================================================================== */

/* ---------- 1. Tokens (design.md §1) ---------- */
:root {
  --ink:        #12141A;  /* primary background */
  --ink-2:      #171A22;  /* section/panel surface */
  --ink-3:      #1E2230;  /* card / raised surface */
  --gold:       #F2C200;  /* primary accent, CTA, brand mark */
  --gold-soft:  #FFD64D;  /* hover / emphasis on gold */
  --sand:       #F4EFE6;  /* body text on dark (AAA) */
  --blue:       #4189DD;  /* Somali flag blue — geo signature accent */
  --blue-deep:  #2C6BB0;  /* darker blue for chips on light */
  --clay:       #C8533D;  /* warm tertiary — SO geo-tag, small highlights */
  --muted:      #8A92A0;  /* secondary text (≥14px only) */
  --line:       #2A2E3A;  /* hairline borders */
  --success:    #2E7D5B;  /* responsible-gaming / positive cues */
  --white:      #FFFFFF;

  --container:  1400px;
  --gutter:     clamp(16px, 4vw, 32px);
  --r-card:     14px;
  --r-btn:      10px;
  --r-chip:     999px;
  --sh-card:    0 8px 30px rgba(0,0,0,.35);
  --sh-pop:     0 14px 40px rgba(0,0,0,.45);

  --section-pad: clamp(48px, 6vw, 96px);
  --section-pad-sm: clamp(32px, 4vw, 64px);

  --ease: cubic-bezier(.4,.15,.2,1);
}

/* ---------- 2. Reset + base (design.md §2) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
img { vertical-align: middle; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
/* a11y: inline links in body prose must be distinguishable beyond colour (underline) */
main p a, main li a { text-decoration: underline; text-underline-offset: 2px; }
main p a:hover, main li a:hover { text-decoration: underline; }
code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: rgba(255,255,255,.06);
  color: var(--sand);
  padding: .1em .35em;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.08);
  word-break: break-word;
}
.hero code {
  background: rgba(242,194,0,.1);
  border-color: rgba(242,194,0,.22);
  color: var(--gold-soft);
  font-weight: 600;
}
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-weight: 800; line-height: 1.18; color: var(--sand); letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-inline-start: 1.3rem; }
li { margin: 0 0 .45rem; }
strong, b { color: var(--white); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* visible focus for keyboard a11y */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- 3. Layout primitives (design.md §3) ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.section { padding-block: var(--section-pad); }
.section.alt { background: var(--ink-2); }
.section.alt + .section.alt { background: var(--ink-2); } /* keep rhythm intentional */

/* below-the-fold perf: skip on hero/first section */
.section { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.hero, .hero.section { content-visibility: visible; contain-intrinsic-size: none; }

/* visually-hidden, reusable */
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- 4. Signature: alindi ribbon + Star of Unity ---------- */
/* Alindi weave band — repeating gold + blue diamonds (pure gradient, zero images) */
.alindi {
  height: 8px;
  width: 100%;
  border: 0;
  background:
    repeating-linear-gradient(135deg,
      var(--gold) 0 8px,
      rgba(18,20,26,.6) 8px 10px,
      var(--blue) 10px 18px,
      rgba(18,20,26,.6) 18px 20px);
  flex: 0 0 auto;
}
.site-footer > .alindi { height: 10px; }

/* Centred alindi divider between major sections (~40% width, 6px) */
.hero::after,
section#seo-text::before {
  content: "";
  display: block;
  width: min(42%, 420px);
  height: 6px;
  margin: var(--section-pad) auto 0;
  background:
    repeating-linear-gradient(135deg,
      var(--gold) 0 6px,
      rgba(18,20,26,.55) 6px 8px,
      var(--blue) 8px 14px,
      rgba(18,20,26,.55) 14px 16px);
  border-radius: 2px;
}
section#seo-text::before { margin: 0 auto var(--section-pad); }

/* Star of Unity — reusable 5-point star (blue fill, gold outline) */
.star, .geo-star { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(65,137,221,.14), transparent 60%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  padding-block: clamp(40px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: start;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}
.hero h1 {
  margin: .35em 0 .4em;
  display: block;
  max-width: none;
  width: 100%;
}
.hero .lead {
  max-width: none;
  width: 100%;
  line-height: 1.7;
}
.hero .cta-row { width: 100%; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(242,194,0,.08);
  border: 1px solid rgba(242,194,0,.32);
  padding: 6px 12px;
  border-radius: var(--r-chip);
  margin-bottom: 14px;
}
.lead { font-size: 1.1rem; color: var(--sand); max-width: none; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  padding: 13px 24px;
  border-radius: var(--r-btn);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  background: transparent;
  color: var(--sand);
  transition: transform .12s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--sand); border-color: var(--gold); }
.btn--ghost:hover { background: rgba(242,194,0,.1); color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cta-row .btn { flex: 0 0 auto; }

/* ---------- 7. Trust chips ---------- */
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--sand);
  background: rgba(65,137,221,.12);
  border: 1px solid rgba(65,137,221,.4);
  padding: 5px 12px;
  border-radius: var(--r-chip);
}
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: #5CC499; /* a11y: lighter success-green, AA on dark (was var(--success) #2E7D5B ~3.6:1) */
  background: rgba(46,125,91,.14);
  border: 1px solid rgba(46,125,91,.55);
  padding: 7px 14px;
  border-radius: var(--r-chip);
}
.verified-chip svg { width: 16px; height: 16px; }

/* ---------- 8. Bonus cards ---------- */
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 22px 0;
}
.bonus-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(18px, 2vw, 26px);
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bonus-card h3 { color: var(--gold); margin: 0; }
.bonus-card .btn { align-self: flex-start; margin-top: 6px; }

/* quick-facts (compact fact grid, if referenced) */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 20px 0;
}
.quick-facts .fact {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.quick-facts .fact .k { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.quick-facts .fact .v { display: block; font-weight: 700; color: var(--sand); margin-top: 4px; }

/* app CTA cluster */
.app-cta, .inline-cta, .aviator-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

/* ---------- 9. Tables (responsive, never horizontal-scroll) ---------- */
.table-wrap {
  margin: 20px 0;
  overflow-x: hidden;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  table-layout: auto;
}
.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
}
.table-wrap thead th {
  background: rgba(65,137,221,.12);
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.table-wrap tbody tr:nth-child(even) { background: rgba(255,255,255,.015); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td strong { color: var(--gold-soft); }

/* ≤680px: collapse table → stacked "cards" with synthesized labels */
@media (max-width: 680px) {
  .table-wrap thead { display: none; }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td { display: block; width: 100%; }
  .table-wrap tr {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    margin-bottom: 12px;
    padding: 6px;
  }
  .table-wrap td {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(110px, 38%) 1fr;
    gap: 8px;
    align-items: start;
  }
  .table-wrap tr:last-child td:last-child { border-bottom: 0; }
  .table-wrap td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--gold);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  /* multi-cell compare tables (3 cols) — keep header label bold inline */
  .table-wrap td[data-label=""]::before,
  .table-wrap td:not([data-label])::before { content: none; }
}

/* ---------- 10. Steps — Star of Unity numbered markers ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 64px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  min-height: 56px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  /* star medallion: gold star with blue ring */
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ink-3), 0 0 0 5px var(--blue);
}
.steps li strong { color: var(--white); }

/* ---------- 11. FAQ (native details) ---------- */
.faq { display: grid; gap: 10px; margin: 18px 0; }
.faq details {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 0 16px;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.faq details[open] { border-color: rgba(242,194,0,.5); background: var(--ink-3); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--sand);
  padding: 14px 0;
  position: relative;
  padding-inline-end: 32px;
  display: block;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--white); }
.faq-answer {
  padding: 0 0 14px;
  color: var(--sand);
}
.faq-answer p:last-child,
.faq-answer:last-child { margin-bottom: 0; }

/* ---------- 12. Prose (long-form / seo-text) ---------- */
.prose {
  max-width: none;
  width: 100%;
}
.prose h2,
.prose h3 { color: var(--sand); margin-top: 1.6em; }
.prose h3 { color: var(--gold); }
.prose p {
  color: var(--sand);
  max-width: none;
  line-height: 1.75;
}
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold-soft); }

/* body copy in sections uses full container width */
.section > .container > p,
.section > .container > .lead {
  max-width: none;
  width: 100%;
}

/* ---------- 13. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--sand);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { height: 32px; width: auto; }
.site-header .brand img { height: 34px; }
.brand .b-gold { color: var(--gold); }
.brand .geo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #E16C53; /* a11y: lighter clay, AA on dark header (was var(--clay) #C8533D ~4.0:1) */
  font-weight: 700;
  font-size: .76rem;
  margin-inline-start: 2px;
}
.brand .geo-star { width: 13px; height: 13px; color: var(--blue); }

.main-nav { display: none; margin-inline-start: 10px; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block;
  color: var(--sand);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
  transition: color .12s var(--ease), background-color .12s var(--ease);
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.04); }
.main-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.site-header.scrolled { background: rgba(18,20,26,.97); box-shadow: 0 4px 18px rgba(0,0,0,.35); }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* language pill */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  overflow: hidden;
  background: var(--ink-2);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 7px 10px;
  cursor: pointer;
  line-height: 1;
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

/* lite toggle */
.lite-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--sand);
  font-size: .82rem;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: var(--r-chip);
  cursor: pointer;
}
.lite-toggle svg { width: 16px; height: 16px; }
.lite-toggle[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sand);
  border-radius: var(--r-btn);
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 62px 0 auto 0;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s var(--ease);
  z-index: 99;
  padding-inline: var(--gutter);
}
.mobile-nav.open { max-height: calc(100vh - 62px); overflow-y: auto; padding-bottom: 24px; box-shadow: var(--sh-pop); }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0; display: grid; }
.mobile-nav li { margin: 0; }
.mobile-nav a {
  display: block;
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a[aria-current="page"] { color: var(--gold); }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  margin-top: var(--section-pad);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(min(100%, 320px), 1.4fr) 2fr;
  gap: clamp(24px, 4vw, 48px);
  padding-block: var(--section-pad) var(--section-pad-sm);
}
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 48ch; margin: 12px 0; }
.footer-cta { margin: 6px 0 18px; }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-badges img { height: 40px; width: auto; }
.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  background: #B0462E; /* a11y: darker clay so white text clears AA (was var(--clay) #C8533D ~4.49:1) */
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.footer-col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.footer-col a { color: var(--sand); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }

.footer-mid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.licence-line { margin: 0; font-size: .88rem; color: var(--muted); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 28px;
  font-size: .85rem;
  color: var(--muted);
}
.footer-bottom .copy { flex: 1 1 220px; }
.footer-bottom .footer-legal a { color: var(--muted); }
.footer-bottom .footer-legal a:hover { color: var(--gold); }
.disclaimer {
  width: 100%;
  order: 3;
  margin: 0 0 14px;
  padding: 14px 16px;
  background: rgba(200,83,61,.08);
  border: 1px solid rgba(200,83,61,.3);
  border-radius: var(--r-card);
  font-size: .82rem;
  line-height: 1.55;
  color: var(--sand);
}
.disclaimer code { font-size: .9em; }

/* ---------- 15. Responsible-gaming strip ---------- */
.rg-strip {
  display: block;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter);
  margin-top: 0;
}
.rg-strip a { color: var(--gold); font-weight: 700; }

/* ---------- 16. Game cards + carousel ---------- */
.games-empty { padding: 18px; border: 1px dashed var(--line); border-radius: var(--r-card); text-align: center; }
.carousel {
  position: relative;
  margin: 22px 0;
  padding-inline: 0;
}
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 210px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.carousel-track > * { scroll-snap-align: start; }
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.carousel-track:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.game-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.game-cover {
  background: #0c0e14;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* Live Evolution tiles — match source ~620×330, fill evenly */
.game-cover--wide {
  aspect-ratio: 62 / 33;
}
.game-cover--wide img {
  object-fit: cover;
  object-position: center center;
}
.gc-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; text-align: start; }
.gc-title { font-weight: 700; color: var(--sand); font-size: .98rem; line-height: 1.25; }
.gc-prov { font-size: .8rem; color: var(--muted); }
.gc-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sand);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--r-chip);
  cursor: pointer;
  align-self: flex-start;
  margin-top: 6px;
}
.gc-toggle[aria-expanded="true"] { background: rgba(242,194,0,.12); border-color: var(--gold); color: var(--gold); }
.gc-desc {
  font-size: .86rem;
  color: var(--sand);
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s var(--ease), margin-top .2s var(--ease);
}
.gc-desc a { color: var(--gold); font-weight: 700; }
.game-card[data-open="true"] .gc-desc { max-height: 200px; margin-top: 8px; }

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(242,194,0,.45);
  background: rgba(18,20,26,.92);
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
.carousel-prev { inset-inline-start: 4px; }
.carousel-next { inset-inline-end: 4px; }
@media (hover: hover) and (min-width: 760px) {
  .carousel-prev, .carousel-next { display: inline-flex; }
}
@media (max-width: 759px) {
  .carousel-prev, .carousel-next { display: none !important; }
}

/* ---------- 17. Reviews (static editorial) ---------- */
#reviews .reviews-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2vw, 22px);
  margin: 18px 0;
}
.review-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-card);
  padding: 18px 20px;
  box-shadow: var(--sh-card);
}
.review-card .r-rating { color: var(--gold); font-size: .9rem; letter-spacing: 2px; margin-bottom: 8px; }
.review-card .r-stars { color: var(--gold); }
.review-card blockquote { margin: 0 0 12px; }
.review-card blockquote p { margin: 0; color: var(--sand); font-style: italic; }
.review-card blockquote p strong { font-style: normal; color: var(--white); }
.review-card cite { display: block; font-size: .82rem; color: var(--muted); font-style: normal; }
.review-card .r-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  border: 1px solid rgba(65,137,221,.4);
  padding: 3px 9px;
  border-radius: var(--r-chip);
  margin-top: 8px;
}
#reviews .reviews-note { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }

/* ---------- 18. Age + skip ---------- */
.age-lg { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 18b. Payment tiles, providers strip, app badges, hero art ---------- */
.pay-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}
.pay-tiles.compact {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.pay-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-align: center;
}
.pay-tile img {
  width: auto;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
}
.pay-tiles.compact .pay-tile img { height: 30px; }
.pay-tile .pay-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--sand);
  line-height: 1.15;
}
.pay-caption {
  font-size: .82rem;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* providers logo strip — SVGs are near-black; invert for dark UI */
.providers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  padding: 18px 12px;
  margin-top: 6px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.providers img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .88;
  transition: opacity .2s var(--ease), filter .2s var(--ease);
}
.providers img:hover {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(242,194,0,.35));
}

/* app store badges row + android screenshot */
.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 8px;
}
.app-badges a { display: inline-flex; }
.app-badges img { height: 54px; width: auto; }
/* hero art — full banner visible, never crop */
.hero-art {
  margin-top: clamp(20px, 4vw, 32px);
  margin-inline: calc(-1 * var(--gutter));
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  border-radius: 0;
  overflow: visible;
  border: 0;
  border-block: 1px solid var(--line);
  background: #0a0c12;
  align-self: stretch;
  line-height: 0;
  padding: clamp(10px, 1.6vw, 18px);
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}
@media (min-width: 920px) {
  .hero-art {
    margin-inline: auto;
    width: min(100%, 820px);
    border-radius: var(--r-card);
    border: 1px solid var(--line);
    overflow: hidden; /* radius only — padding keeps logos off the clip edge */
  }
}

.app-shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  margin-top: 16px;
  background: var(--ink-3);
}

/* section headings / body alignment */
.section > .container > h2,
.section > .container > h1 { text-wrap: balance; }
.bonus-cards, .quick-facts, .pay-tiles, .reviews-grid { justify-items: stretch; }
.app-badges { align-items: center; }
.app-badges .btn { min-height: 54px; }

/* ---------- 19. Breakpoints ---------- */
@media (min-width: 920px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .header-cta .lang-switch button { padding: 6px 8px; }
  .lite-toggle span { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .hero h1 { max-width: none; }
  .hero .lead { font-size: 1.02rem; max-width: none; }
  .carousel-track { grid-auto-columns: minmax(168px, 70vw); gap: 12px; }

  /* mobile header: lang + lite live in the drawer */
  .site-header .lang-switch,
  .site-header .lite-toggle { display: none !important; }
  .site-header .container { gap: 10px; }
  .site-header .brand { font-size: 1.05rem; }
  .site-header .brand img { height: 28px; }
  .header-cta .btn--primary.btn--sm { padding: 8px 12px; font-size: .82rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle svg { width: 20px; height: 20px; }
}

/* drawer-tools: lang-switch + lite-toggle echoed at top of #mobile-nav */
.drawer-tools {
  display: none;            /* hidden on desktop where #mobile-nav is hidden */
  align-items: center;
  gap: 10px;
  padding: 14px 4px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.mobile-nav .drawer-tools .lang-switch button { padding: 8px 12px; font-size: .82rem; }
.mobile-nav .drawer-tools .lite-toggle { padding: 8px 12px; font-size: .85rem; }
.mobile-nav .drawer-tools .lite-toggle span { display: inline; }

@media (max-width: 560px) {
  .drawer-tools { display: flex; }
}

@media (max-width: 360px) {
  :root { --gutter: 14px; }
  body { font-size: 1rem; }
  /* smallest phones: drop the "· SO" tag to keep the wordmark inside the viewport */
  .site-header .brand .geo { display: none; }
  .site-header .container { gap: 8px; min-height: 56px; }
  .site-header .brand { font-size: 1rem; }
  .site-header .brand img { height: 24px; }
  .mobile-nav { inset: 56px 0 auto 0; }
}

/* ---------- 20. Lite / data-saver mode ---------- */
body.lite {
  background: #0e1016;
}
body.lite img:not(.footer-badges img):not(.brand img) {
  filter: grayscale(.6) brightness(.85);
}
body.lite .hero {
  background: var(--ink);
}
body.lite .hero h1::before,
body.lite .alindi,
body.lite .hero::after,
body.lite section#seo-text::before {
  /* keep meaning, drop the gradient weight */
  background: var(--gold) !important;
  box-shadow: none !important;
}
body.lite .game-cover img { visibility: hidden; }
body.lite .game-cover { background: var(--ink-3); }
body.lite .carousel-track { scroll-behavior: auto; }
body.lite * {
  animation-duration: .001ms !important;
  transition-duration: .001ms !important;
}

/* ---------- 21. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .carousel-track { scroll-behavior: auto; }
}

/* ---------- 22. Print ---------- */
@media print {
  .site-header, .mobile-nav, .alindi, .footer-cta, .nav-toggle, .carousel-prev, .carousel-next { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { padding-block: 12px; }
}
