/* =========================================================
   CasinoLars - site.css
   Look: signal yellow on black, hard edges, offset shadows.
   Layout: topbar > header > hero (H1 + p) > casino list > text > footer
   ========================================================= */

:root {
  /* Palette: black + yellow only */
  --night: #0b0b0b;
  --night-2: #151515;
  --night-3: #222222;
  --primary: #ffd400;
  --primary-2: #ffc300;
  --primary-soft: #fff4b8;
  --primary-tint: #fffbe0;
  --accent: #0b0b0b;
  --cta: #ffd400;
  --cta-2: #ffc300;
  --gold: #ffd400;

  /* Surfaces & text */
  --bg: #fffdf2;
  --surface: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #1f1f1f;
  --ink-3: #4d4d4d;
  --line: #0b0b0b;
  --line-2: #e8dfae;

  /* System */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --hard: 4px 4px 0 var(--night);
  --hard-lg: 6px 6px 0 var(--night);
  --hard-y: 4px 4px 0 var(--primary);
  --shadow-sm: var(--hard);
  --shadow: var(--hard);
  --shadow-lg: var(--hard-lg);
  --container: 1200px;
  --header-h: 72px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Archivo Black", "Archivo", "Arial Black", system-ui, sans-serif;
  --tg: #229ed9;
  --tg-2: #2aabee;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { background: var(--primary); text-decoration-color: var(--ink); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 6px var(--night); }
::selection { background: var(--primary); color: var(--night); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--primary); color: var(--night); padding: 10px 16px; font-weight: 800; border: 2px solid var(--night); }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 2px solid var(--night);
  font-weight: 800; font-size: .98rem; letter-spacing: .02em; text-transform: uppercase; text-decoration: none !important;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn-cta { color: var(--night); background: var(--primary); box-shadow: var(--hard); }
.btn-cta:hover { background: var(--primary); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--night); }
.btn-cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--night); }
.btn-cta svg { width: 18px; height: 18px; }
.site-header .btn-cta, .mobile-drawer .btn-cta, .sticky-cta .btn-cta, .hero .btn-cta { border-color: var(--primary); box-shadow: 3px 3px 0 #fff3; }
.btn-ghost { color: var(--primary); background: transparent; border-color: var(--primary); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .84rem; }

/* =========================================================
   TOPBAR + HEADER
   ========================================================= */
.topbar { background: var(--primary); color: var(--night); font-size: .78rem; font-weight: 600; border-bottom: 2px solid var(--night); }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0; flex-wrap: wrap; text-align: center; }
.topbar .age { display: inline-block; padding: 1px 7px; background: var(--night); color: var(--primary); font-weight: 900; font-size: .72rem; }
.topbar a { color: var(--night); font-weight: 800; text-decoration-color: var(--night); text-decoration-thickness: 1px; }
.topbar a:hover { background: var(--night); color: var(--primary); }
.topbar-mini { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--night); border-bottom: 4px solid var(--primary);
}
.site-header.is-scrolled { box-shadow: 0 6px 0 rgba(11, 11, 11, .12); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 22px; }

.logo { display: inline-flex; align-items: center; text-decoration: none !important; flex-shrink: 0; }
.logo:hover { background: none; }
.logo-img { display: block; height: 38px; width: auto; }
.drawer-head .logo-img { height: 34px; }
.footer-brand .logo-img { height: 46px; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a {
  display: block; padding: 8px 10px; color: #fff; font-weight: 700; font-size: .86rem;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; text-decoration: none;
  border-bottom: 3px solid transparent; transition: color .12s, border-color .12s;
}
.nav-list a:hover { color: var(--primary); background: none; border-bottom-color: var(--primary); }
.nav-list a[aria-current="page"] { color: var(--night); background: var(--primary); }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: var(--radius-sm);
  border: 2px solid var(--primary); background: var(--primary); color: var(--night); align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 3px; background: currentColor; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(11, 11, 11, .7); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(88vw, 360px);
  background: var(--night); color: #fff; display: flex; flex-direction: column;
  border-left: 6px solid var(--primary);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 2px solid var(--night-3); }
.drawer-close { width: 42px; height: 42px; border: 2px solid var(--primary); background: var(--primary); color: var(--night); font-size: 1.6rem; line-height: 1; font-weight: 700; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 20px;
  color: #fff; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  border-bottom: 1px solid var(--night-3);
}
.drawer-nav a::after { content: "\2192"; color: var(--primary); }
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { background: var(--primary); color: var(--night); }
.drawer-nav a:hover::after, .drawer-nav a[aria-current="page"]::after { color: var(--night); }
.drawer-foot { padding: 16px 18px 24px; border-top: 2px solid var(--night-3); }
.drawer-foot .btn { width: 100%; }
.drawer-foot p { margin: 12px 0 0; font-size: .78rem; color: rgba(255, 255, 255, .6); text-align: center; }
body.nav-open { overflow: hidden; }
body.nav-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.nav-open .mobile-drawer { transform: translateX(0); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--night);
  padding: 26px 0 40px; border-bottom: 6px solid var(--primary);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(255, 212, 0, .06) 0 14px, transparent 14px 46px);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; }
.hero-visual {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: min(46%, 560px);
  background: url("/assets/images/hero.webp") left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}

.breadcrumbs { margin-bottom: 12px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .4); }
.breadcrumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumbs a:hover { color: var(--night); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 16px;
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--night); background: var(--primary);
}
.dot { display: inline-block; width: 9px; height: 9px; background: var(--primary); flex-shrink: 0; }
.hero-badge .dot { background: var(--night); }

.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.85rem); letter-spacing: -.01em; line-height: 1.08;
  margin-bottom: 12px; text-transform: none;
}
.hero h1 em {
  font-style: normal; color: var(--night); background: var(--primary);
  padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero h1 .h1-brand {
  display: inline-flex; align-items: center; gap: .42em; margin-left: .15em; padding: .12em .45em;
  font-family: var(--font); font-size: .5em; font-weight: 800; letter-spacing: .02em;
  color: var(--primary); border: 2px solid var(--primary); vertical-align: middle; white-space: nowrap;
}
.hero h1 .h1-flag { width: 1.25em; height: .78em; flex-shrink: 0; }
.hero h1 .h1-tail { white-space: nowrap; }

.hero-lead-box { position: relative; }
.hero-lead {
  font-size: clamp(.98rem, 1.3vw, 1.1rem); line-height: 1.6; color: rgba(255, 255, 255, .86);
  margin-bottom: 16px; padding-left: 14px; border-left: 4px solid var(--primary);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.hero-lead.is-open { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.lead-more { display: inline-block; margin: -8px 0 12px; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 800; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.lead-more[hidden] { display: none; }

.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hero-author { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; color: rgba(255, 255, 255, .75); }
.hero-author a { color: #fff; font-weight: 800; text-decoration-color: var(--primary); }
.hero-author a:hover { color: var(--night); }
.hero-updated { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: rgba(255, 255, 255, .85); text-transform: uppercase; letter-spacing: .04em; }
.upd-short { display: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--primary); }
.hero-author img.avatar { width: 32px; height: 32px; border: 2px solid var(--primary); }

/* =========================================================
   CASINO LIST (markets-list SE) - local skin
   ========================================================= */
.toplist-section { position: relative; padding: 30px 0 44px; background: var(--bg); }
.ml.ml--SE .ranking { background: none; padding-top: 0; }
.ml.ml--SE .ranking__head h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0; }
.ml.ml--SE .ranking__head h2::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .4em; background: var(--primary); border: 2px solid var(--night); vertical-align: -.02em; }
.ml.ml--SE .casino { border: 2px solid var(--night); box-shadow: var(--hard); }
.ml.ml--SE .casino--top { border-color: var(--night); box-shadow: 6px 6px 0 var(--primary), 6px 6px 0 2px var(--night); background: var(--primary-tint); }
.ml.ml--SE .casino--top::before { content: none; }
.ml.ml--SE .casino:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--night); }
.ml.ml--SE .casino--top:hover { box-shadow: 8px 8px 0 var(--primary), 8px 8px 0 2px var(--night); }
.ml.ml--SE .casino__flag { border-radius: 0; background: var(--night); color: var(--primary); box-shadow: none; }
.ml.ml--SE .casino__logo { border-radius: var(--radius-sm); border: 2px solid var(--night); box-shadow: none; }
.ml.ml--SE .casino__logo::after { content: none; }
.ml.ml--SE .casino__rank { background: var(--primary); color: var(--night); border-radius: 0 0 4px 0; border-right: 2px solid var(--night); border-bottom: 2px solid var(--night); }
.ml.ml--SE .casino__features li::before { background: var(--primary); }
.ml.ml--SE .btn { border: 2px solid var(--night); border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .03em; box-shadow: 3px 3px 0 var(--night); }
.ml.ml--SE .btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--night); filter: none; }

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band { padding: 0 0 8px; background: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--night); border: 2px solid var(--night); }
.stat { padding: 18px 12px; text-align: center; border-right: 2px solid var(--night-3); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; color: var(--primary); }
.stat span { display: block; margin-top: 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; }

/* =========================================================
   CONTENT
   ========================================================= */
.content-section { padding: 36px 0 72px; }
.content-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 52px; align-items: start; }
.content-wrap.no-toc { grid-template-columns: minmax(0, 1fr); }

.toc { position: sticky; top: calc(var(--header-h) + 22px); background: var(--surface); border: 2px solid var(--night); box-shadow: var(--hard); }
.toc summary {
  list-style: none; display: block; padding: 12px 16px; background: var(--night); color: var(--primary);
  font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; pointer-events: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 8px;
  font-size: .86rem; font-weight: 700; color: var(--ink-2); line-height: 1.35; text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 900; font-size: .74rem; color: var(--ink-3); padding-top: 1px; }
.toc a:hover { background: var(--primary-soft); color: var(--ink); }
.toc a.is-active { background: var(--primary); color: var(--night); }
.toc a.is-active::before { color: var(--night); }

.prose { max-width: 790px; font-size: 1.05rem; color: var(--ink-2); }
.prose h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 2.4vw, 1.95rem); color: var(--ink);
  margin: 2.1em 0 .75em; padding-top: .55em; border-top: 4px solid var(--night); position: relative;
}
.prose h2::before { content: ""; position: absolute; top: -4px; left: 0; width: 64px; height: 4px; background: var(--primary); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 1.6em 0 .5em; }
.prose strong { color: var(--ink); background: linear-gradient(transparent 62%, var(--primary-soft) 62%); }
.prose ul, .prose ol { margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--ink); content: "\25A0  "; font-size: .8em; }
.prose ol li::marker { color: var(--ink); font-weight: 900; }

.callout { display: flex; gap: 14px; margin: 1.6em 0; padding: 18px 20px; background: var(--primary); border: 2px solid var(--night); box-shadow: var(--hard); color: var(--night); }
.callout a { text-decoration-color: var(--night); }
.callout a:hover { background: var(--night); color: var(--primary); }
.callout-icon { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; background: var(--night); color: var(--primary); }
.callout-icon svg { width: 20px; height: 20px; }
.callout p { margin: 0; }
.callout.is-warning { background: var(--primary-soft); }

.criteria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.4em 0 1.8em; }
.criteria-item { padding: 18px; background: var(--surface); border: 2px solid var(--night); box-shadow: var(--hard); }
.criteria-item h3 { margin: 12px 0 6px; font-size: 1.02rem; }
.criteria-item p { margin: 0; font-size: .93rem; }
.criteria-ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--primary); border: 2px solid var(--night); font-size: 20px; line-height: 1; }
.criteria-ico svg { width: 20px; height: 20px; }

.table-wrap { margin: 1.4em 0 1.8em; overflow-x: auto; border: 2px solid var(--night); background: var(--surface); box-shadow: var(--hard); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .93rem; }
.table-wrap th, .table-wrap td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table-wrap th { font-size: .74rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); background: var(--night); border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) td { background: var(--primary-tint); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 800; color: var(--ink); }
.table-wrap .score { display: inline-block; padding: 2px 8px; font-weight: 900; font-size: .82rem; color: var(--night); background: var(--primary); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0 1.8em; }
.pros-cons > div { padding: 0 0 14px; background: var(--surface); border: 2px solid var(--night); box-shadow: var(--hard); }
.pros-cons h3 { margin: 0 0 12px; padding: 10px 16px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.pros-cons .pros h3 { background: var(--primary); color: var(--night); border-bottom: 2px solid var(--night); }
.pros-cons .cons h3 { background: var(--night); color: var(--primary); }
.pros-cons ul { list-style: none; padding: 0 16px; margin: 0; }
.pros-cons li { position: relative; padding-left: 26px; font-size: .94rem; }
.pros-cons li::before { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; display: grid; place-items: center; font-weight: 900; font-size: .8rem; line-height: 1; }
.pros-cons .pros li::before { content: "+"; background: var(--primary); color: var(--night); border: 1px solid var(--night); }
.pros-cons .cons li::before { content: "\2212"; background: var(--night); color: var(--primary); }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.4em 0 1.8em; }
.step { position: relative; background: var(--surface); border: 2px solid var(--night); padding: 18px 18px 18px 70px; box-shadow: var(--hard); }
.step-n { position: absolute; left: -2px; top: -2px; bottom: -2px; width: 52px; display: grid; place-items: center; background: var(--primary); border: 2px solid var(--night); color: var(--night); font-family: var(--display); font-size: 1.4rem; }
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; font-size: .93rem; color: var(--ink-2); }

.faq { display: grid; gap: 10px; margin: 1.2em 0 1.8em; }
.faq details { background: var(--surface); border: 2px solid var(--night); }
.faq details[open] { box-shadow: var(--hard); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 15px 56px 15px 18px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 12px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  display: grid; place-items: center; background: var(--primary); border: 2px solid var(--night); font-weight: 900; font-size: 1.1rem; line-height: 1;
}
.faq details[open] summary { background: var(--night); color: var(--primary); }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 14px 18px 16px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 2.4em; padding: 22px; background: var(--surface); border: 2px solid var(--night); border-left: 12px solid var(--primary); box-shadow: var(--hard); }
.author-box img.avatar { width: 84px; height: 84px; border: 3px solid var(--night); }
.author-box h3 { margin: 0 0 2px; font-size: 1.1rem; }
.author-box .role { display: inline-block; font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--night); background: var(--primary); padding: 1px 8px; margin-bottom: 8px; }
.author-box p { margin: 0; font-size: .95rem; }

.authors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 1.4em 0 1.8em; }
.authors:has(> .author-card:only-child) { grid-template-columns: minmax(0, 560px); }
.author-card { background: var(--surface); border: 2px solid var(--night); padding: 20px; box-shadow: var(--hard); }
.author-card.is-lead { box-shadow: 6px 6px 0 var(--primary), 6px 6px 0 2px var(--night); }
.author-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 0 12px; border: 3px solid var(--night); }
.author-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.author-card .role { display: inline-block; font-size: .74rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: var(--night); color: var(--primary); padding: 1px 8px; margin-bottom: 8px; }
.author-card p { margin: 0 0 10px; font-size: .94rem; }
.author-card a { font-weight: 800; font-size: .9rem; word-break: break-word; }

/* in-text photos */
.prose-figure { margin: 28px 0 26px; }
.prose-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--night); box-shadow: 8px 8px 0 var(--primary); background: var(--primary-soft); }
.prose-figure figcaption { margin-top: 14px; padding-left: 12px; border-left: 4px solid var(--primary); font-size: .9rem; line-height: 1.5; color: var(--ink-3); }

/* =========================================================
   NEWS
   ========================================================= */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 6px 0 36px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--night); box-shadow: var(--hard); text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.news-card:hover { background: var(--surface); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--night); }
.news-card-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 2px solid var(--night); }
.news-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.news-date { align-self: flex-start; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; background: var(--night); color: var(--primary); padding: 2px 8px; }
.news-title { font-family: var(--display); font-size: 1.22rem; line-height: 1.2; }
.news-excerpt { font-size: .94rem; color: var(--ink-2); }
.news-more { margin-top: auto; font-weight: 900; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.news-more::after { content: " \2192"; }
.news-card:hover .news-more { background: var(--primary); align-self: flex-start; }
.news-feature { margin: 0 0 18px; }
.news-feature img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--night); box-shadow: 8px 8px 0 var(--primary); }
.news-feature figcaption { margin-top: 14px; padding-left: 12px; border-left: 4px solid var(--primary); font-size: .9rem; color: var(--ink-3); }
.post-meta { display: inline-block; margin: 6px 0 26px; padding: 6px 12px; font-size: .84rem; font-weight: 700; background: var(--primary-soft); border: 2px solid var(--night); }

/* =========================================================
   RELATED
   ========================================================= */
.related-section { padding: 0 0 48px; }
.related-title { margin: 0 0 16px; font-family: var(--display); font-weight: 400; font-size: 1.4rem; text-transform: uppercase; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card { display: block; padding: 14px 16px; background: var(--surface); border: 2px solid var(--night); text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; }
.related-card:hover { background: var(--primary); transform: translate(-2px, -2px); box-shadow: var(--hard); }
.related-card span { display: block; }
.related-card .r-tag { display: inline-block; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--night); padding: 1px 6px; margin-bottom: 6px; }
.related-card .r-title { font-weight: 800; color: var(--ink); font-size: .96rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .72); font-size: .92rem; border-top: 8px solid var(--primary); }
.footer-top { display: grid; grid-template-columns: minmax(230px, 1fr) 3fr; gap: 44px; padding: 56px 24px 38px; }
.footer-brand p { margin: 16px 0 18px; max-width: 320px; line-height: 1.6; }
.rg-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-badges span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 10px; font-size: .74rem; font-weight: 900; text-transform: uppercase; color: var(--primary); border: 2px solid var(--primary); }
.rg-badges .age { background: var(--primary); color: var(--night); }
.footer-menu { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.footer-col h4 { margin: 0 0 12px; padding-bottom: 8px; font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); border-bottom: 2px solid var(--night-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col a { display: inline-block; padding: 4px 0; color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-col a:hover { color: var(--night); background: var(--primary); }
.footer-bottom { border-top: 2px solid var(--night-3); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: 26px; }
.footer-bottom p { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .58); line-height: 1.55; }
.footer-bottom .disclaimer { max-width: 760px; }

/* =========================================================
   FLOATING: to-top, sticky CTA, Telegram
   ========================================================= */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 46px; height: 46px;
  border: 2px solid var(--night); display: grid; place-items: center; color: var(--night); background: var(--primary); box-shadow: var(--hard);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, bottom .25s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  background: var(--night); color: #fff; border-top: 4px solid var(--primary);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility .3s;
}
.sticky-cta.is-visible { transform: translateY(0); visibility: visible; }
.sticky-cta-inner { position: relative; display: flex; align-items: center; gap: 12px; padding-right: 34px; }
.sticky-logo-link { display: inline-flex; flex-shrink: 0; }
.sticky-logo-link:hover { background: none; }
.sticky-logo { width: 44px; height: 44px; flex-shrink: 0; object-fit: cover; border: 2px solid var(--primary); }
.sticky-cta-text { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-cta-text strong { display: block; font-size: .92rem; color: var(--primary); text-transform: uppercase; letter-spacing: .03em; }
.sticky-cta-text span { display: block; font-size: .76rem; line-height: 1.3; color: rgba(255, 255, 255, .78); }
.sticky-cta .btn { min-height: 42px; padding: 0 16px; font-size: .86rem; }
.sticky-close { position: absolute; top: 5px; right: 6px; z-index: 2; width: 24px; height: 24px; border: 0; background: var(--night-3); color: var(--primary); font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.sticky-close:hover { background: var(--primary); color: var(--night); }

/* Telegram: Telegram blue, appears after the casino list has been scrolled past */
.tg-float {
  position: fixed; right: 20px; bottom: 80px; z-index: 85;
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tg); color: #fff; text-decoration: none;
  box-shadow: 0 10px 26px rgba(34, 158, 217, .45), inset 0 0 0 3px rgba(255, 255, 255, .25);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .15s, bottom .25s ease;
}
.tg-float:hover { background: var(--tg-2); color: #fff; text-decoration: none; }
.tg-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.tg-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: tgspin 10s linear infinite; }
.tg-ring text { font-family: var(--font); font-size: 12px; font-weight: 900; letter-spacing: .04em; fill: #fff; }
.tg-float:hover .tg-ring { animation-duration: 5s; }
.tg-float-ico { position: relative; width: 44%; height: 44%; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--tg); }
.tg-float-ico svg { width: 56%; height: 56%; fill: currentColor; margin-left: -6%; }
@keyframes tgspin { to { transform: rotate(360deg); } }

/* Exit modal */
.exit-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; }
.exit-modal[hidden] { display: none; }
.exit-backdrop { position: absolute; inset: 0; background: rgba(11, 11, 11, .8); }
.exit-card {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 36px); overflow-y: auto;
  background: var(--surface); border: 3px solid var(--night); border-top: 12px solid var(--primary); padding: 24px 22px 18px;
  box-shadow: 8px 8px 0 var(--primary); animation: exitIn .22s ease both;
}
.exit-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 2px solid var(--night); background: var(--primary); color: var(--night); font-size: 1.2rem; line-height: 1; display: grid; place-items: center; }
.exit-kicker { display: inline-block; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--night); padding: 2px 8px; margin-bottom: 8px; }
.exit-card h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 1.34rem; line-height: 1.2; color: var(--ink); }
.exit-card p { margin: 0 0 16px; font-size: .94rem; color: var(--ink-2); line-height: 1.5; }
.exit-offer { display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 14px; border: 2px solid var(--night); background: var(--primary-tint); }
.exit-offer-link { display: flex; flex-shrink: 0; }
.exit-offer img { width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; border: 2px solid var(--night); }
.exit-offer-body strong { display: block; font-size: .96rem; color: var(--ink); line-height: 1.3; }
.exit-offer-body span { display: block; margin-top: 3px; font-size: .82rem; color: var(--ink-2); line-height: 1.35; }
.exit-btn { width: 100%; min-height: 50px; font-size: 1rem; }
.exit-decline { display: block; width: 100%; margin-top: 10px; border: 0; background: none; color: var(--ink-3); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.exit-note { display: block; margin-top: 10px; text-align: center; font-size: .72rem; color: var(--ink-3); }
body.exit-open { overflow: hidden; }
@keyframes exitIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 404 */
.notfound { text-align: center; padding: 40px 0 80px; }
.notfound .code { display: inline-block; font-family: var(--display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--night); background: var(--primary); padding: 0 .2em; border: 4px solid var(--night); box-shadow: 10px 10px 0 var(--night); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .nav-list a { padding: 8px 7px; font-size: .8rem; }
  .header-inner { gap: 14px; }
  .logo-img { height: 34px; }
}
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .content-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
  .toc summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: "+"; font-size: 1.2rem; color: var(--primary); }
  .toc[open] summary::after { content: "\2212"; }
  .prose { max-width: none; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-visual { opacity: .35; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 2px solid var(--night-3); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .sticky-cta {
    display: block; left: 50%; right: auto; bottom: 22px; width: min(560px, calc(100vw - 300px));
    padding: 10px 14px; border: 2px solid var(--primary); box-shadow: 6px 6px 0 var(--primary);
    transform: translate(-50%, calc(100% + 40px));
  }
  .sticky-cta.is-visible { transform: translate(-50%, 0); }
  .tg-float { bottom: 22px; right: 22px; }
  .to-top { bottom: 120px; right: 41px; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .container { padding: 0 16px; }
  .logo-img { height: 30px; }
  .drawer-head .logo-img { height: 30px; }
  .nav-toggle { width: 42px; height: 42px; }
  .topbar { font-size: .7rem; }
  .topbar-inner { padding: 4px 2px; gap: 6px; }

  .hero { padding: 14px 0 20px; border-bottom-width: 4px; }
  .hero-visual { width: 70%; opacity: .22; background-image: url("/assets/images/hero-sm.webp"); }
  .breadcrumbs { margin-bottom: 8px; font-size: .7rem; }
  .hero h1 { font-size: 1.5rem; line-height: 1.14; margin-bottom: 8px; }
  .hero h1 .h1-brand { font-size: .58em; border-width: 1.5px; }
  .hero-lead { font-size: .93rem; line-height: 1.5; margin-bottom: 10px; padding-left: 10px; border-left-width: 3px; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; display: block; }
  .lead-more { position: absolute; right: 0; bottom: 0; margin: 0; padding: 1px 8px; background: var(--night); font-size: .74rem; text-decoration: none; }
  .hero-lead.is-open + .lead-more { position: static; margin: 4px 0 10px; padding: 0; }
  .hero-meta { gap: 6px 12px; }
  .hero-author { font-size: .76rem; gap: 6px; }
  .hero-author img.avatar { width: 24px; height: 24px; }
  .hero-updated { font-size: .72rem; }

  .toplist-section { padding: 18px 0 30px; }
  .ml.ml--SE .casino:hover { transform: none; }
  .content-section { padding: 26px 0 56px; }
  .prose { font-size: 1rem; }
  .criteria, .pros-cons, .steps, .authors, .news-grid { grid-template-columns: 1fr; }
  .table-wrap table { min-width: 0; font-size: .86rem; }
  .table-wrap th, .table-wrap td { padding: 10px 9px; }
  .callout { padding: 16px; }
  .author-box { flex-direction: column; gap: 12px; }
  .author-box img.avatar { width: 64px; height: 64px; }
  .related-grid { grid-template-columns: 1fr; }

  .footer-top { padding: 44px 16px 30px; }
  .footer-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .footer-col a { padding: 6px 0; }

  .sticky-cta { display: block; }
  body.has-sticky .site-footer { padding-bottom: 76px; }
  .tg-float { right: 12px; bottom: 14px; width: 70px; height: 70px; }
  body.sticky-on .tg-float { bottom: 88px; }
  .to-top { right: 26px; bottom: 96px; width: 42px; height: 42px; }
  body.sticky-on .to-top { bottom: 170px; }
}
@media (max-width: 560px) {
  .topbar-full { display: none; }
  .topbar-mini { display: inline; }
  .upd-long { display: none; }
  .upd-short { display: inline; }
  .hero { padding: 10px 0 16px; }
  .hero h1 { font-size: 1.36rem; }
  .stat b { font-size: 1.35rem; }
}
@media (max-width: 380px) {
  .breadcrumbs { display: none; }
  .hero h1 { font-size: 1.28rem; margin-bottom: 6px; }
  .sticky-cta-text span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .tg-ring { animation: none !important; }
}

/* Author: plain name in the hero, linked name in the author box at the bottom */
.hero-author strong { color: #fff; font-weight: 800; }
.author-box h3 a { color: var(--ink); text-decoration-color: var(--primary); }
.author-box h3 a:hover { background: var(--primary); }
