/* ============================================================
   AU Pokies — Modern Front-End v2.0
   Dark-first design with glassmorphism, neon accents & light mode
   ============================================================ */

/* ---------- Design tokens ---------- */
:root[data-theme="dark"],
:root {
  --bg:            #0a0e1a;
  --bg-elev:       #11172a;
  --bg-elev-2:     #161d36;
  --surface:       rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);

  --txt:           #e7ecf5;
  --txt-strong:    #ffffff;
  --muted:         #8b94ad;
  --muted-2:       #6b7390;

  --acc:           #7c5cff;     /* electric purple */
  --acc-2:         #00d4ff;     /* cyan */
  --acc-3:         #ff3d8a;     /* hot pink */
  --gold:          #ffc94a;
  --ok:            #22c55e;
  --warn:          #f59e0b;
  --err:           #ef4444;

  --grad-primary:  linear-gradient(135deg,#7c5cff 0%,#00d4ff 100%);
  --grad-hot:      linear-gradient(135deg,#ff3d8a 0%,#ffc94a 100%);
  --grad-hero:     radial-gradient(1200px 600px at 20% 0%,rgba(124,92,255,.35),transparent 60%),
                   radial-gradient(900px 500px at 90% 10%,rgba(0,212,255,.25),transparent 60%),
                   linear-gradient(180deg,#0e1226 0%,#0a0e1a 100%);

  --shadow-sm:  0 2px 8px rgba(0,0,0,.25);
  --shadow:     0 8px 28px rgba(0,0,0,.35);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.55);
  --glow:       0 0 32px rgba(124,92,255,.35);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1240px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

:root[data-theme="light"] {
  --bg:            #f6f7fb;
  --bg-elev:       #ffffff;
  --bg-elev-2:     #ffffff;
  --surface:       rgba(15,23,42,0.03);
  --surface-hover: rgba(15,23,42,0.06);
  --border:        rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.14);

  --txt:           #1a2238;
  --txt-strong:    #0a0e1a;
  --muted:         #5b657e;
  --muted-2:       #788099;

  --grad-hero:     radial-gradient(1200px 600px at 20% 0%,rgba(124,92,255,.18),transparent 60%),
                   radial-gradient(900px 500px at 90% 10%,rgba(0,212,255,.15),transparent 60%),
                   linear-gradient(180deg,#eef1f9 0%,#f6f7fb 100%);

  --shadow-sm:  0 2px 8px rgba(15,23,42,.05);
  --shadow:     0 8px 28px rgba(15,23,42,.08);
  --shadow-lg:  0 20px 60px rgba(15,23,42,.12);
  --glow:       0 0 24px rgba(124,92,255,.18);
}

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html,body { margin: 0; padding: 0 }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img,svg { max-width: 100%; height: auto; border-radius: 8px; display:block }
a { color: var(--acc-2); text-decoration: none; transition: color .15s, opacity .15s }
a:hover { color: var(--acc); text-decoration: none }

::selection { background: rgba(124,92,255,.35); color: var(--txt-strong) }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px }
::-webkit-scrollbar-thumb:hover { background: var(--acc) }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px }

/* ---------- Typography ---------- */
h1,h2,h3,h4 {
  color: var(--txt-strong);
  line-height: 1.2;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(28px, 4vw, 44px); margin: 24px 0 14px }
h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 44px 0 18px;
  position: relative;
  padding-bottom: 12px;
}
h2::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:60px; height:3px;
  background: var(--grad-primary);
  border-radius:2px;
}
h3 { font-size: clamp(18px, 1.8vw, 22px); margin: 24px 0 10px }
p  { margin: 12px 0 }

/* ---------- Age banner ---------- */
.age-banner {
  background: linear-gradient(90deg,#0a0e1a 0%, #1a1230 50%, #0a0e1a 100%);
  color: var(--gold);
  text-align: center;
  font-size: 12.5px;
  padding: 9px 14px;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(255,201,74,.18);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background .2s, box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25) }
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--txt-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.02em;
}
.site-header .logo .logo-icon{
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--grad-primary);
  box-shadow: var(--glow);
  font-size: 18px;
}
.site-header nav.primary-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.site-header nav.primary-nav a {
  position: relative;
  color: var(--txt);
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.site-header nav.primary-nav a:hover,
.site-header nav.primary-nav a.active {
  background: var(--surface);
  color: var(--txt-strong);
}

/* Header right group */
.header-tools {
  display: flex; align-items: center; gap: 8px;
}
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--txt);
  cursor: pointer;
  font-size: 16px;
  transition: background .15s, transform .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(.94) }
.icon-btn .sun { display:none } .icon-btn .moon { display:inline }
:root[data-theme="light"] .icon-btn .sun { display:inline } 
:root[data-theme="light"] .icon-btn .moon { display:none }

/* Header search */
.header-search {
  position: relative;
  width: 230px;
  max-width: 32vw;
}
.header-search input {
  width:100%;
  padding: 9px 12px 9px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--txt);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.header-search input::placeholder { color: var(--muted-2) }
.header-search input:focus {
  outline: none;
  border-color: var(--acc);
  background: var(--bg-elev);
  box-shadow: 0 0 0 3px rgba(124,92,255,.18);
}
.header-search::before {
  content: "🔍";
  position: absolute;
  left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 13px; opacity: .6;
  pointer-events: none;
}
.header-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  max-height: 380px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}
.header-search.open .header-search-results { display:block }
.header-search-results a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--txt);
  font-size: 14px;
}
.header-search-results a:hover { background: var(--surface); color: var(--txt-strong) }
.header-search-results .hsr-thumb {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 7px; background-size: cover; background-position: center;
  background-color: var(--surface);
}
.header-search-results .hsr-meta { font-size: 11px; color: var(--muted) }
.header-search-results .hsr-empty {
  padding: 14px; text-align: center; color: var(--muted); font-size: 13px;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--txt);
  cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 20px;
}

@media (max-width: 960px) {
  .site-header nav.primary-nav,
  .header-search { display: none }
  .mobile-toggle { display: inline-flex }
  body.menu-open .site-header nav.primary-nav {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    padding: 14px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  body.menu-open .site-header nav.primary-nav a {
    width: 100%; padding: 12px 14px;
  }
  body.menu-open .header-search {
    display: block;
    position: fixed;
    top: calc(64px + 240px); left: 14px; right: 14px;
    width: auto; max-width: none;
    z-index: 99;
  }
}

/* ---------- Main / layout ---------- */
main.container { padding-top: 4px; padding-bottom: 60px }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 56px);
  margin: 26px 0 36px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero::before {
  content:"";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(124,92,255,.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,212,255,.14), transparent 40%);
  pointer-events: none;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1 }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(124,92,255,.18);
  border: 1px solid rgba(124,92,255,.35);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c5b6ff;
  margin-bottom: 18px;
}
.hero .eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 12px #22c55e;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero h1 {
  color: var(--txt-strong);
  font-size: clamp(30px, 5vw, 54px);
  margin: 0 0 16px;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.hero h1 .grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--txt);
  opacity: .85;
  max-width: 720px;
  margin: 0 0 24px;
}
.hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stats > div {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hero-stats > div b {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--txt-strong);
  display: block;
  letter-spacing: -.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--grad-primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, box-shadow .15s, filter .15s;
  box-shadow: 0 6px 18px rgba(124,92,255,.35);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); color: #fff; text-decoration: none }
.btn:active { transform: translateY(0) }
.btn.secondary {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--txt-strong);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--surface-hover) }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--txt);
  box-shadow: none;
}

/* ---------- Section heading row ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin: 40px 0 14px;
}
.section-head h2 { margin: 0; padding-bottom: 8px }
.section-head .head-tabs {
  display: flex; gap: 6px; background: var(--surface);
  padding: 4px; border-radius: 12px;
  border: 1px solid var(--border);
}
.section-head .head-tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.section-head .head-tabs button.active,
.section-head .head-tabs button:hover {
  background: var(--bg-elev);
  color: var(--txt-strong);
}

/* ---------- Pokie card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin: 22px 0;
}
.card {
  position: relative;
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(124,92,255,.25), 0 12px 32px rgba(124,92,255,.18);
}
.card a.thumb {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/9;
  background: var(--bg-elev-2);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.card a.thumb .thumb-initial {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: rgba(255,255,255,.95);
  text-shadow: 0 6px 20px rgba(0,0,0,.4);
  letter-spacing: -3px;
}
.card a.thumb::after {
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}
.card .meta { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 4px; font-size: 16.5px }
.card h3 a { color: var(--txt-strong) }
.card h3 a:hover { color: var(--acc-2); text-decoration: none }
.card .provider-line { font-size: 13px; color: var(--muted); margin-bottom: 10px }
.card .provider-line a { color: var(--muted); }
.card .provider-line a:hover { color: var(--acc-2) }
.card .tags {
  font-size: 11.5px;
  display: flex; flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.card .tags span {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--txt);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
}
.card .tags .rating {
  background: rgba(255,201,74,.14);
  color: var(--gold);
  border-color: rgba(255,201,74,.3);
  font-weight: 700;
}

/* Card badges */
.card a.thumb .card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--err); color: #fff;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
}
.card a.thumb .card-badge.new { background: var(--ok) }
.card a.thumb .card-badge.hot { background: var(--grad-hot); color: #2a1500 }
.card a.thumb .card-badge.megawin { background: var(--grad-primary) }

/* Favorite button on card */
.card .fav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10,14,26,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  z-index: 3;
  transition: background .15s, transform .15s, color .15s;
}
.card .fav-btn:hover { background: rgba(10,14,26,.85); transform: scale(1.08) }
.card .fav-btn.active { color: var(--gold); border-color: var(--gold) }

/* Card play overlay */
.card .play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,14,26,.4);
  opacity: 0;
  transition: opacity .2s;
  z-index: 1;
}
.card:hover .play-overlay { opacity: 1 }
.card .play-overlay .play-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: var(--glow);
  transform: scale(.9);
  transition: transform .2s;
}
.card:hover .play-overlay .play-icon { transform: scale(1) }

/* ---------- Provider chips ---------- */
.provider-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 18px 0 22px;
}
.provider-chips a {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--txt);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.provider-chips a:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--txt-strong);
}
.provider-chips a.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,92,255,.4);
}
.provider-chips a span.count { opacity: .65; margin-left: 4px }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--radius);
  margin: 18px 0;
}
.filter-bar input,
.filter-bar select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--txt);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.filter-bar input { flex: 1; min-width: 220px }
.filter-bar input::placeholder { color: var(--muted-2) }
.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--acc);
  background: var(--bg-elev-2);
  box-shadow: 0 0 0 3px rgba(124,92,255,.16);
}
.filter-bar select { cursor: pointer }
.filter-bar select option {
  background: var(--bg-elev); color: var(--txt);
}

.results-count { color: var(--muted); font-size: 13.5px; margin: 0 0 14px }
.results-count strong { color: var(--txt-strong) }

/* ---------- TL;DR / Quick verdict ---------- */
.tldr {
  background: linear-gradient(135deg, rgba(124,92,255,.07), rgba(0,212,255,.04));
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--acc);
  padding: 22px 26px;
  border-radius: var(--radius);
  margin: 22px 0;
}
.tldr h2 { border: 0; margin-top: 0; padding-bottom: 0; font-size: 18px }
.tldr h2::after { display: none }
.tldr ul.facts {
  list-style: none; padding: 0;
  margin: 14px 0 0;
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 14px;
}
.tldr ul.facts li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}
.tldr ul.facts li strong { color: var(--txt-strong); font-weight: 600 }
.tldr .cta-row { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap }
.tldr .cta-row a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124,92,255,.35);
  transition: transform .12s, filter .15s;
}
.tldr .cta-row a:hover { transform: translateY(-1px); filter: brightness(1.08); color:#fff }
.tldr .cta-row a.secondary {
  background: var(--surface);
  color: var(--txt-strong);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

/* ---------- Specs table ---------- */
.specs {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 22px;
  margin: 22px 0;
}
.specs table { width: 100%; border-collapse: collapse }
.specs th, .specs td {
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}
.specs th { color: var(--muted); font-weight: 500; width: 42% }
.specs td { color: var(--txt-strong); font-weight: 500 }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0 }

.table-wrap { overflow-x: auto; margin: 16px 0 }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}
thead th {
  background: var(--surface);
  color: var(--txt-strong);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Demo + Video frame ---------- */
.demo-wrap {
  margin: 26px 0;
  padding: 22px;
  background: linear-gradient(135deg,#0a0e1a, #11172a);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.demo-wrap::before {
  content:"";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(600px 200px at 100% 100%, rgba(0,212,255,.14), transparent 60%);
  pointer-events: none;
}
.demo-wrap > * { position: relative }
.demo-wrap h2 { color: #fff; border: 0; margin-top: 0; font-size: 20px; padding-bottom: 0 }
.demo-wrap h2::after { display: none }
.demo-wrap p { color: #cbd5e1; margin: 6px 0 14px }
.demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: calc(100vh - 240px);
  min-height: 320px;
  margin: 0 auto;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.05);
}
.demo-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
@supports (aspect-ratio: 16/9){
  .demo-frame { max-width: calc((100vh - 240px) * 16 / 9) }
}
.demo-disclaimer { font-size: 12px; color: #94a3b8; margin-top: 10px; text-align: center }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: var(--radius); overflow: hidden;
  margin: 14px 0; box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.demo-controls {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.demo-controls .demo-disclaimer { margin: 0; text-align: left; flex: 1 }
.demo-fs-btn {
  background: var(--surface);
  color: #fff;
  border: 1px solid var(--border-strong);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.demo-fs-btn:hover { background: var(--surface-hover) }

@media (max-width: 640px) {
  .demo-frame { max-height: calc(100vh - 200px); min-height: 240px }
  @supports (aspect-ratio: 16/9){
    .demo-frame { max-width: calc((100vh - 200px) * 16 / 9) }
  }
}

/* ---------- Pros / Cons ---------- */
.proscons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: 22px 0;
}
.proscons .pros, .proscons .cons {
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.proscons .pros {
  background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(34,197,94,.02));
  border-color: rgba(34,197,94,.3);
}
.proscons .cons {
  background: linear-gradient(135deg, rgba(239,68,68,.08), rgba(239,68,68,.02));
  border-color: rgba(239,68,68,.3);
}
.proscons h3 { margin-top: 0; color: var(--txt-strong) }
.proscons ul { padding-left: 18px; margin: 8px 0 }
.proscons li { margin: 6px 0 }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr } }

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 24px 22px;
  margin: 18px 0;
}
.faq dt {
  font-weight: 700;
  font-size: 16px;
  margin-top: 16px;
  color: var(--txt-strong);
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  padding-right: 28px;
  transition: color .15s;
}
.faq dt:first-of-type { border-top: 0 }
.faq dt::after {
  content: "+";
  position: absolute;
  right: 0; top: 16px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  transition: transform .2s, background .15s, color .15s;
}
.faq dt:hover { color: var(--acc-2) }
.faq dt:hover::after { background: var(--surface-hover); color: var(--acc-2) }
.faq dt.open::after { content:"−"; transform: rotate(180deg); background: var(--acc); color: #fff }
.faq dd {
  margin: 0;
  color: var(--txt);
  font-size: 15px;
  display: none;
  padding-bottom: 6px;
  animation: fadeIn .25s ease;
}
.faq dt.open + dd { display: block }
@keyframes fadeIn { from{opacity:0; transform:translateY(-4px)} to{opacity:1; transform:none} }

/* ---------- Blockquote ---------- */
blockquote {
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(255,201,74,.08), transparent);
  color: var(--txt);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 10px;
}

/* ---------- Author box ---------- */
.author-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 32px 0 0;
  display: flex;
  gap: 16px;
  align-items: center;
}
.author-box .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 22px;
  font-family: var(--font-display);
  box-shadow: var(--glow);
  flex-shrink: 0;
}
.author-box .meta-author { font-size: 13.5px; color: var(--muted); margin-top: 2px }
.author-box strong { color: var(--txt-strong) }

/* ---------- Responsible gambling box ---------- */
.rg-box {
  background: linear-gradient(135deg, rgba(239,68,68,.08), rgba(239,68,68,.02));
  border: 1px solid rgba(239,68,68,.28);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 28px 0;
  color: var(--txt);
}
.rg-box strong { color: #fca5a5 }
:root[data-theme="light"] .rg-box strong { color: #b91c1c }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--muted) }
.breadcrumb a:hover { color: var(--acc-2) }
.breadcrumb > span:last-child { color: var(--txt-strong); font-weight: 500 }

/* ---------- Provider header ---------- */
.provider-header {
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.provider-header h1 { margin: 0; font-size: 28px }
.provider-header .count {
  background: var(--grad-primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(124,92,255,.35);
}

/* ---------- Reading progress bar ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--grad-primary);
  z-index: 200;
  transition: width .12s linear;
  box-shadow: 0 0 12px rgba(124,92,255,.6);
}

/* ---------- Share / Action buttons ---------- */
.share-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 18px 0;
}
.share-row button, .share-row a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--txt);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.share-row button:hover, .share-row a:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--txt-strong);
}
.share-row button.is-fav { color: var(--gold); border-color: rgba(255,201,74,.4) }

/* ---------- Recently viewed strip ---------- */
.recent-strip {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 30px 0;
}
.recent-strip h4 {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.recent-strip .recent-items {
  display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.recent-strip .recent-items a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px 8px 8px;
  color: var(--txt);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  min-width: 200px;
  transition: background .15s, border-color .15s;
}
.recent-strip .recent-items a:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--txt-strong);
}
.recent-strip .recent-items a .rv-thumb {
  width: 36px; height: 36px;
  border-radius: 7px;
  background-size: cover; background-position: center;
  background-color: var(--bg-elev-2);
  flex-shrink: 0;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  cursor: pointer;
  border: 0;
  box-shadow: 0 10px 28px rgba(124,92,255,.45);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none }
.back-to-top:hover { filter: brightness(1.08) }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translate(-50%, 30px);
  background: var(--bg-elev-2);
  color: var(--txt-strong);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--bg) 0%, #060912 100%);
  border-top: 1px solid var(--border);
  color: var(--txt);
  padding: 56px 0 28px;
  margin-top: 60px;
}
:root[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, var(--bg) 0%, #e3e7f1 100%);
}
.site-footer h4 {
  color: var(--txt-strong);
  margin: 0 0 14px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.site-footer a { color: var(--acc-2) }
.site-footer a:hover { color: var(--acc) }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 32px;
}
.foot-cols ul { list-style: none; padding: 0; margin: 0 }
.foot-cols li { margin: 8px 0; font-size: 14px }
.foot-legal {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--muted);
}
.foot-legal p { margin: 8px 0 }
.copy { text-align: center; margin-top: 18px !important; color: var(--muted-2) }

/* ---------- Skeleton ---------- */
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.skeleton, .card a.thumb.loading {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-hover) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* ---------- Reveal-on-scroll animation ---------- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .container { padding: 0 16px }
  h1 { font-size: 26px }
  h2 { font-size: 21px }
  .hero { padding: 36px 22px; border-radius: var(--radius-lg) }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 24px; padding-top: 20px }
  .demo-wrap { padding: 14px; margin: 18px -4px; border-radius: var(--radius) }
  .demo-wrap h2 { font-size: 17px }
  .grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)) }
  .card .meta { padding: 12px 12px 14px }
  .card h3 { font-size: 15px }
  .card .tags { gap: 4px }
  .card .tags span { padding: 2px 7px; font-size: 11px }
  .back-to-top { bottom: 16px; right: 16px; width: 42px; height: 42px }
  .author-box { padding: 14px 16px }
  .author-box .avatar { width: 48px; height: 48px; font-size: 18px }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .demo-wrap, .video-frame,
  .back-to-top, .read-progress, .age-banner, .share-row,
  .recent-strip, .toast { display: none !important }
  body { background: #fff; color: #000 }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
