/* =========================================================
   CasinoSpel - site.css
   Palette: Swedish blue #006AA7 + Swedish yellow #FECC00 only,
   on white, with neutral text greys.
   ========================================================= */

:root {
  --blue: #006AA7;
  --yellow: #FECC00;
  --white: #ffffff;
  --telegram: #2AABEE;

  --ink: #14181c;
  --ink-2: #353c43;
  --ink-3: #5c646c;

  --tint: rgba(0, 106, 167, .055);
  --tint-2: rgba(0, 106, 167, .11);
  --ytint: rgba(254, 204, 0, .2);
  --line: rgba(0, 106, 167, .14);
  --line-2: rgba(0, 106, 167, .28);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --offset: 4px 4px 0 var(--blue);
  --offset-y: 4px 4px 0 var(--yellow);
  --shadow: 0 10px 30px rgba(0, 40, 70, .12);
  --container: 1220px;
  --header-h: 72px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- 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: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.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(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.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: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  text-decoration: none !important; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-cta { color: var(--ink); background: var(--yellow); box-shadow: var(--offset); }
.btn-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--blue); }
.btn-cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--blue); }
.btn-cta svg { width: 18px; height: 18px; }
.btn-ghost { color: var(--white); background: transparent; border: 2px solid var(--white); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .95rem; }

/* =========================================================
   TOPBAR + HEADER
   ========================================================= */
.topbar { background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 500; }
.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(--blue); color: var(--white); font-weight: 800; font-size: .72rem; }
.topbar a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.topbar a:hover { color: var(--blue); text-decoration-color: var(--blue); text-decoration-thickness: 1px; }
.topbar-mini { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 4px solid var(--blue);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 40, 70, .14); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

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

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; height: var(--header-h); }
.nav-list > li { position: relative; display: flex; }
.nav-list a {
  display: flex; align-items: center; padding: 0 11px;
  color: var(--ink-2); font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  white-space: nowrap; text-decoration: none; border-bottom: 4px solid transparent; margin-bottom: -4px;
  transition: color .15s ease, border-color .15s ease;
}
.nav-list a:hover { color: var(--blue); border-bottom-color: var(--yellow); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--yellow); }

.nav-list .has-sub > a::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
  background: var(--white); border: 2px solid var(--blue); box-shadow: var(--offset-y);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; }

.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: var(--radius-sm); border: 0;
  background: var(--blue); color: var(--white); align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; width: 13px; background: var(--yellow); }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(0, 40, 70, .55); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(86vw, 360px);
  background: var(--white); color: var(--ink); display: flex; flex-direction: column;
  border-left: 6px solid var(--yellow);
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 4px solid var(--blue); }
.drawer-close { width: 42px; height: 42px; border: 0; border-radius: var(--radius-sm); background: var(--blue); color: var(--white); font-size: 1.5rem; line-height: 1; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 8px 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: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer-nav a::after { content: "\203A"; font-size: 1.5rem; color: var(--blue); }
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { background: var(--blue); color: var(--white); text-decoration: none; }
.drawer-nav a:hover::after, .drawer-nav a[aria-current="page"]::after { color: var(--yellow); }
.drawer-nav .sub-menu { position: static; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 12px; }
.drawer-foot { padding: 16px 18px 24px; background: var(--tint); }
.drawer-foot .btn { width: 100%; }
.drawer-foot p { margin: 12px 0 0; font-size: .8rem; color: var(--ink-3); 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: var(--white);
  background: var(--blue);
  padding: 26px 0 34px;
  border-bottom: 8px solid var(--yellow);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 660px; }
.hero-visual {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  aspect-ratio: 344 / 560; height: 100%; max-width: 40%;
  background: url("/assets/images/hero.webp") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.breadcrumbs { margin-bottom: 10px; font-size: .86rem; }
.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: rgba(255, 255, 255, .82); }
.breadcrumbs li + li::before { content: "\203A"; color: var(--yellow); font-weight: 700; }
.breadcrumbs a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.breadcrumbs a:hover { text-decoration-color: var(--yellow); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 14px;
  font-size: .82rem; font-weight: 700; color: var(--ink); background: var(--yellow);
}
.dot { display: inline-block; width: 9px; height: 9px; background: var(--yellow); flex-shrink: 0; transform: rotate(45deg); }

.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); font-weight: 800; line-height: 1.06; margin-bottom: 12px; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero h1 .h1-brand {
  display: inline-flex; align-items: center; gap: .4em; margin-left: .15em; padding: .18em .5em;
  font-family: var(--font); font-size: .46em; font-weight: 700; letter-spacing: .02em; color: var(--blue);
  background: var(--white); vertical-align: middle; white-space: nowrap; line-height: 1.2;
}
.hero h1 .h1-flag { width: 1.3em; height: .82em; flex-shrink: 0; }
.hero h1 .h1-tail { white-space: nowrap; }

.hero-lead-box { position: relative; }
.hero-lead {
  font-size: clamp(1.02rem, 1.35vw, 1.14rem); line-height: 1.58; color: var(--white);
  margin-bottom: 14px; max-width: 600px;
  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(--yellow); font-weight: 700; font-size: .88rem; 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: .9rem; color: rgba(255, 255, 255, .9); }
.hero-author a { color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.hero-author a:hover { text-decoration: none; color: var(--yellow); }
.hero-author strong { color: var(--white); font-weight: 700; }
.hero-author .avatar, .hero-author img.avatar { width: 32px; height: 32px; object-fit: cover; border: 2px solid var(--yellow); }
.hero-updated { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--white); }
.upd-short { display: none; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: inline-grid; place-items: center;
  font-weight: 800; font-size: .86rem; color: var(--white); background: var(--blue);
}
.hero .n-tag { background: var(--yellow); color: var(--ink); }

/* =========================================================
   CASINO LIST AREA
   ========================================================= */
.toplist-section { position: relative; padding: 30px 0 44px; background: linear-gradient(var(--tint), var(--tint)), var(--white); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 0; }
.section-head .sub { color: var(--ink-3); font-size: .88rem; margin: 4px 0 0; }
.list-note { margin: 18px 0 0; text-align: center; font-size: .84rem; color: var(--ink-3); }
.ml.ml .ranking__head h2, .ml.ml h2 { font-family: var(--font-head); }
.ml.ml .btn { border-radius: var(--radius-sm); box-shadow: var(--offset); font-family: var(--font-head); letter-spacing: .02em; }
.ml.ml .btn:hover { filter: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--blue); }
.ml.ml .casino { box-shadow: none; border-width: 2px; }
.ml.ml .casino--top { border-color: var(--blue); }
.ml.ml .casino--top::before { display: none; }
.ml.ml .casino__flag { border-radius: 0; box-shadow: none; background: var(--blue); color: var(--white); }
.ml.ml .casino__rank { border-radius: 0; }
.ml.ml .adinfo { display: none; }

/* legacy card list (not used by markets-list, kept for safety) */
.casino-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.casino-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--line-2); border-radius: var(--radius-lg); padding: 18px; }
.casino-card.is-top { border-color: var(--blue); box-shadow: var(--offset-y); }
.cc-top { display: flex; align-items: center; gap: 16px; }
.cc-img { flex: 0 0 120px; width: 120px; height: 120px; overflow: hidden; border-radius: var(--radius); }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-features { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cc-cta { margin-top: auto; padding-top: 16px; }
.cc-cta .btn { width: 100%; }

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band { padding: 0; background: var(--yellow); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 20px 14px; text-align: center; border-left: 2px solid rgba(0, 106, 167, .25); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--blue); font-weight: 800; }
.stat span { display: block; margin-top: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }

/* =========================================================
   CONTENT
   ========================================================= */
.content-section { padding: 48px 0 72px; }
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.content-wrap > .toc { order: 2; }
.content-wrap > .prose, .content-wrap > article { order: 1; }

.toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--white); border: 2px solid var(--blue); padding: 0 0 10px;
}
.toc summary {
  list-style: none; display: block; padding: 12px 16px; margin-bottom: 8px;
  font-family: var(--font-head); font-size: .95rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--white); background: var(--blue); pointer-events: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0 8px; display: grid; gap: 1px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 7px 8px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2); line-height: 1.35; text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--blue); padding-top: 1px; }
.toc a:hover { background: var(--tint); color: var(--ink); text-decoration: none; }
.toc a.is-active { background: var(--yellow); color: var(--ink); }

.prose { max-width: 800px; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.55rem, 2.5vw, 2.05rem); font-weight: 800; color: var(--ink); margin: 2.1em 0 .65em; }
.prose h2::before { content: ""; display: block; width: 56px; height: 7px; margin-bottom: 14px; background: var(--yellow); box-shadow: 18px 0 0 var(--blue); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.28rem; font-weight: 700; color: var(--blue); margin: 1.6em 0 .45em; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose a:hover { background: var(--ytint); }
.prose ul, .prose ol { margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--blue); }
.prose ol li::marker { color: var(--blue); font-weight: 800; }

.callout {
  display: flex; gap: 14px; margin: 1.6em 0; padding: 18px 20px;
  background: var(--tint); border-left: 6px solid var(--blue); color: var(--ink-2);
}
.callout-icon { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; background: var(--blue); color: var(--white); }
.callout-icon svg { width: 19px; height: 19px; }
.callout p { margin: 0; }
.callout.is-warning { background: var(--ytint); border-left-color: var(--yellow); }
.callout.is-warning .callout-icon { background: var(--yellow); color: var(--ink); }

.criteria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.4em 0 1.8em; }
.criteria-item { padding: 18px 18px 18px; background: var(--white); border: 2px solid var(--line-2); border-top: 6px solid var(--blue); }
.criteria-item:nth-child(even) { border-top-color: var(--yellow); }
.criteria-item h3 { margin: 10px 0 6px; font-size: 1.1rem; color: var(--ink); }
.criteria-item p { margin: 0; font-size: .96rem; }
.criteria-ico { width: 42px; height: 42px; display: grid; place-items: center; background: var(--tint-2); font-size: 20px; line-height: 1; }
.criteria-ico svg { width: 20px; height: 20px; color: var(--blue); }

.table-wrap { margin: 1.4em 0 1.8em; overflow-x: auto; border: 2px solid var(--blue); background: var(--white); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-family: var(--font-head); font-size: .86rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--white); background: var(--blue); border-bottom: 4px solid var(--yellow); }
.table-wrap tbody tr:nth-child(even) td { background: var(--tint); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 700; color: var(--ink); }
.table-wrap .score { display: inline-block; padding: 2px 8px; font-weight: 800; font-size: .84rem; color: var(--ink); background: var(--yellow); }

.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(--white); border: 2px solid var(--line-2); }
.pros-cons h3 { margin: 0 0 12px; padding: 10px 16px; font-size: 1.05rem; }
.pros-cons .pros h3 { background: var(--blue); color: var(--white); }
.pros-cons .cons h3 { background: var(--yellow); color: var(--ink); }
.pros-cons ul { list-style: none; padding: 0 16px; margin: 0; }
.pros-cons li { position: relative; padding-left: 24px; font-size: .97rem; }
.pros-cons .pros li::before { content: "+"; position: absolute; left: 0; top: -1px; font-weight: 800; font-size: 1.1rem; color: var(--blue); }
.pros-cons .cons li::before { content: "\2212"; position: absolute; left: 0; top: -1px; font-weight: 800; font-size: 1.1rem; color: var(--ink-3); }

.faq { display: grid; gap: 8px; margin: 1.2em 0 1.8em; }
.faq details { background: var(--white); border: 2px solid var(--line-2); transition: border-color .2s; }
.faq details[open] { border-color: var(--blue); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 15px 56px 15px 18px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006AA7' stroke-width='3.2' stroke-linecap='square'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 18px 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

.author-box {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 2.6em; padding: 24px;
  background: var(--blue); color: rgba(255, 255, 255, .92); border-bottom: 6px solid var(--yellow);
}
.author-box .avatar, .author-box img.avatar { width: 88px; height: 88px; object-fit: cover; border: 3px solid var(--yellow); border-radius: 50%; flex-shrink: 0; }
.author-box h3 { margin: 0 0 2px; font-size: 1.25rem; color: var(--white); }
.author-box .role { display: block; font-size: .84rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.author-box p { margin: 0; font-size: .97rem; }
.author-box a { color: var(--white); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.4em 0 1.8em; counter-reset: none; }
.step { position: relative; background: var(--white); border: 2px solid var(--line-2); padding: 18px 18px 18px 70px; }
.step-n { position: absolute; left: 0; top: 0; bottom: 0; width: 52px; display: grid; place-items: start center; padding-top: 16px; background: var(--blue); color: var(--yellow); font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.step h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--ink); }
.step p { margin: 0; font-size: .96rem; color: var(--ink-2); }

.prose-figure { margin: 28px 0 26px; }
.prose-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--tint-2); box-shadow: 10px 10px 0 var(--yellow); }
.prose-figure figcaption { margin-top: 16px; padding-left: 12px; border-left: 4px solid var(--blue); font-size: .92rem; line-height: 1.5; color: var(--ink-3); }

/* related */
.related-section { padding: 0 0 56px; }
.related-title { margin: 0 0 16px; font-size: 1.5rem; }
.related-title::after { content: ""; display: block; width: 56px; height: 6px; margin-top: 10px; background: var(--yellow); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card {
  display: block; padding: 16px 18px; background: var(--white); border: 2px solid var(--line-2);
  text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.related-card:hover { text-decoration: none; border-color: var(--blue); transform: translate(-2px, -2px); box-shadow: var(--offset-y); }
.related-card span { display: block; }
.related-card .r-tag { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.related-card .r-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.08rem; line-height: 1.3; }

/* authors page */
.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(--white); border: 2px solid var(--line-2); padding: 22px; }
.author-card.is-lead { border-color: var(--blue); box-shadow: var(--offset-y); }
.author-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 0 12px; border: 3px solid var(--yellow); }
.author-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.author-card .role { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.author-card p { margin: 0 0 10px; font-size: .97rem; }
.author-card a { font-weight: 700; word-break: break-word; }
.content-wrap.no-toc { grid-template-columns: minmax(0, 1fr); }

/* 404 */
.notfound { text-align: center; padding: 40px 0 80px; }
.notfound .code { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; color: var(--blue); text-shadow: 6px 6px 0 var(--yellow); }

/* =========================================================
   NEWS
   ========================================================= */
.n-tag { display: inline-block; padding: 2px 9px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--blue); color: var(--white); }
.hero--news .hero-inner { max-width: 820px; }
.hero--news h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.news-feature-wrap { margin-top: 28px; }
.news-feature { margin: 0; }
.news-feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 12px 12px 0 var(--yellow); background: var(--tint-2); }
.news-feature figcaption { margin-top: 18px; padding-left: 12px; border-left: 4px solid var(--blue); font-size: .92rem; color: var(--ink-3); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--line-2); transition: transform .15s, box-shadow .15s, border-color .15s; }
.news-card:hover { border-color: var(--blue); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--yellow); }
.news-card:first-child { grid-column: span 2; }
.news-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint-2); border-bottom: 6px solid var(--yellow); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.n-meta { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--ink-3); margin-bottom: 8px; }
.news-body h2, .news-body h3 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 8px; }
.news-card:first-child .news-body h2 { font-size: 1.6rem; }
.news-body h2 a, .news-body h3 a { color: var(--ink); text-decoration: none; }
.news-body h2 a:hover, .news-body h3 a:hover { color: var(--blue); }
.news-body p { font-size: .97rem; color: var(--ink-2); margin-bottom: 12px; }
.n-read { margin-top: auto; font-family: var(--font-head); font-weight: 700; color: var(--blue); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--blue); color: rgba(255, 255, 255, .9); font-size: .95rem; border-top: 8px solid var(--yellow); }
.footer-top { display: grid; grid-template-columns: minmax(240px, 1fr) 3fr; gap: 48px; padding: 56px 24px 40px; }
.footer-brand p { margin: 16px 0 18px; max-width: 340px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.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 12px; font-size: .8rem; font-weight: 700; color: var(--white); border: 2px solid rgba(255, 255, 255, .55); }
.rg-badges .age { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.footer-menu { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; }
.footer-col h4 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col a { display: inline-block; padding: 5px 0; color: var(--white); line-height: 1.35; }
.footer-col a:hover { color: var(--yellow); text-decoration: none; }
.footer-bottom { border-top: 2px solid rgba(255, 255, 255, .22); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 26px; }
.footer-bottom p { margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .82); line-height: 1.55; }
.footer-bottom .disclaimer { max-width: 760px; }

/* =========================================================
   FLOATING: to-top, sticky CTA, exit modal, Telegram
   ========================================================= */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 46px; height: 46px; border: 0;
  display: grid; place-items: center; color: var(--yellow); background: var(--blue); box-shadow: 3px 3px 0 var(--yellow);
  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(--white); color: var(--ink); border-top: 5px solid var(--yellow);
  box-shadow: 0 -10px 28px rgba(0, 40, 70, .18);
  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: 30px; }
.sticky-logo-link { display: inline-flex; flex-shrink: 0; }
.sticky-logo { width: 46px; height: 46px; flex-shrink: 0; object-fit: cover; border: 2px solid var(--line-2); }
.sticky-cta-text { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-cta-text strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--blue); }
.sticky-cta-text span { display: block; font-size: .78rem; line-height: 1.3; color: var(--ink-3); }
.sticky-cta .btn { min-height: 42px; padding: 0 16px; font-size: .95rem; box-shadow: 3px 3px 0 var(--blue); }
.sticky-close { position: absolute; top: -4px; right: -6px; width: 24px; height: 24px; border: 0; background: var(--tint-2); color: var(--ink-2); font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.sticky-close:hover { background: var(--blue); color: var(--white); }

.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(0, 40, 70, .7); }
.exit-card {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 36px); overflow-y: auto;
  background: var(--white); padding: 26px 24px 20px; border-top: 8px solid var(--yellow);
  box-shadow: 10px 10px 0 var(--blue); animation: exitIn .26s ease both;
}
.exit-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; background: var(--tint-2); color: var(--ink-2); font-size: 1.2rem; line-height: 1; display: grid; place-items: center; }
.exit-x:hover { background: var(--blue); color: var(--white); }
.exit-kicker { display: inline-block; padding: 2px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--white); background: var(--blue); margin-bottom: 10px; }
.exit-card h2 { margin: 0 0 8px; font-size: 1.5rem; color: var(--ink); }
.exit-card p { margin: 0 0 16px; font-size: .96rem; color: var(--ink-2); line-height: 1.5; }
.exit-offer { display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 16px; border: 2px solid var(--line-2); background: var(--tint); }
.exit-offer-link { display: flex; flex-shrink: 0; }
.exit-offer img { width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; background: var(--white); }
.exit-offer-body strong { display: block; font-size: 1rem; color: var(--ink); line-height: 1.3; }
.exit-offer-body span { display: block; margin-top: 3px; font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
.exit-btn { width: 100%; min-height: 50px; }
.exit-decline { display: block; width: 100%; margin-top: 12px; border: 0; background: none; color: var(--ink-3); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }
.exit-note { display: block; margin-top: 10px; text-align: center; font-size: .74rem; color: var(--ink-3); }
body.exit-open { overflow: hidden; }
@keyframes exitIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Telegram: rotating badge, appears only after the casino list has been scrolled past (main.js) */
.tg-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 85;
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--telegram); text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(42, 171, 238, .5);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, bottom .25s ease;
}
.tg-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.tg-float:hover { background: #229ED9; }
.tg-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: tgspin 12s linear infinite; }
.tg-ring text { font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: .08em; fill: #fff; }
.tg-core { position: relative; width: 42%; height: 42%; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.tg-core svg { width: 56%; height: 56%; fill: var(--telegram); margin-left: -2px; }
@keyframes tgspin { to { transform: rotate(360deg); } }
body.tg-on .to-top { bottom: 128px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .nav-list a { padding: 0 8px; font-size: .95rem; }
  .header-inner { gap: 16px; }
  .footer-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-visual { max-width: 50%; }
  .content-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .content-wrap > .toc { order: 0; }
  .toc { position: static; padding: 0; }
  .toc summary { pointer-events: auto; cursor: pointer; margin: 0; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--yellow); }
  .toc[open] summary::after { content: "\2212"; }
  .toc ol { padding: 8px 8px 10px; }
  .prose { max-width: none; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 2px solid rgba(0, 106, 167, .25); }
  .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 - 340px));
    padding: 10px 14px; border: 2px solid var(--blue); border-top-width: 5px; border-top-color: var(--yellow);
    box-shadow: 8px 8px 0 var(--blue); transform: translate(-50%, calc(100% + 40px));
  }
  .sticky-cta.is-visible { transform: translate(-50%, 0); }
  .sticky-cta .btn { min-height: 44px; padding: 0 22px; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .logo-img { height: 40px; }
  .drawer-head .logo-img { height: 32px; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-list { height: auto; }

  .hero { padding: 14px 0 18px; border-bottom-width: 6px; }
  .hero-visual { display: none; }
  .breadcrumbs { margin-bottom: 6px; font-size: .8rem; }
  .hero h1 { font-size: 1.62rem; line-height: 1.1; margin-bottom: 8px; }
  .hero h1 .h1-brand { font-size: .56em; }
  .hero-lead { font-size: .98rem; line-height: 1.5; margin-bottom: 10px; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; display: block; }
  .lead-more { position: absolute; right: 0; bottom: 0; margin: 0; padding: 1px 10px; background: var(--blue); font-size: .78rem; text-decoration: none; line-height: 1.6; }
  .hero-lead.is-open + .lead-more { position: static; margin: 4px 0 10px; padding: 0; background: none; }
  .hero-meta { gap: 6px 12px; }
  .hero-author { font-size: .8rem; gap: 7px; }
  .hero-author .avatar, .hero-author img.avatar { width: 24px; height: 24px; border-width: 1px; }
  .hero-updated { font-size: .8rem; }

  .toplist-section { padding: 18px 0 30px; }
  .stat { padding: 14px 8px; }
  .stat b { font-size: 1.6rem; }
  .content-section { padding: 30px 0 52px; }
  .criteria, .pros-cons, .steps { grid-template-columns: 1fr; }
  .table-wrap table { min-width: 0; font-size: .88rem; }
  .table-wrap th, .table-wrap td { padding: 10px; }
  .callout { padding: 16px; }
  .author-box { flex-direction: column; gap: 12px; padding: 20px; }
  .author-box .avatar, .author-box img.avatar { width: 72px; height: 72px; }
  .prose-figure img { box-shadow: 6px 6px 0 var(--yellow); }
  .news-feature img { box-shadow: 6px 6px 0 var(--yellow); }
  .news-feature-wrap { margin-top: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; gap: 18px; }
  .news-card:first-child { grid-column: auto; }
  .news-card:first-child .news-body h2 { font-size: 1.3rem; }

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

  .sticky-cta { display: block; }
  body.has-sticky .site-footer { padding-bottom: 80px; }
  body.sticky-on .to-top { bottom: 92px; }
  body.sticky-on .tg-float { bottom: 92px; }
  body.tg-on .to-top { bottom: 104px; }
  body.sticky-on.tg-on .to-top { bottom: 176px; }
  .tg-float { right: 12px; width: 76px; height: 76px; }
  .to-top { right: 18px; }
}
@media (max-width: 560px) {
  .topbar-full { display: none; }
  .topbar-mini { display: inline; }
  .topbar { font-size: .74rem; }
  .topbar-inner { padding: 4px 2px; gap: 6px; }
  .upd-long { display: none; }
  .upd-short { display: inline; }
  .hero h1 { font-size: 1.46rem; }
  .hero-author { font-size: .74rem; }
  .hero-updated { font-size: .74rem; }
}
@media (max-width: 380px) {
  .breadcrumbs { display: none; }
  .hero { padding: 10px 0 14px; }
  .hero h1 { font-size: 1.36rem; 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; }
}
