/* =========================================================
   Casino Pattinson - site.css
   Layout: header > hero (H1 + p) > H2 > casino list > text > footer
   ========================================================= */

:root {
  /* Brand palette */
  --night: #0d0a1f;
  --night-2: #161130;
  --night-3: #221a45;
  --primary: #6c47ff;
  --primary-2: #9b5cff;
  --primary-soft: #efeaff;
  --accent: #ff4d8d;
  --cta: #14c47c;
  --cta-2: #0ea86a;
  --gold: #ffb020;

  /* Surfaces & text */
  --bg: #f5f4fa;
  --surface: #ffffff;
  --ink: #15122b;
  --ink-2: #4b4867;
  --ink-3: #7b7896;
  --line: #e6e3f2;
  --line-2: #d8d4ea;

  /* System */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(21, 18, 43, .06), 0 2px 8px rgba(21, 18, 43, .04);
  --shadow: 0 6px 24px rgba(21, 18, 43, .08);
  --shadow-lg: 0 18px 50px rgba(21, 18, 43, .14);
  --container: 1200px;
  --header-h: 68px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, 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: 1rem;
  line-height: 1.65;
  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(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 2px; border-radius: 6px; }

.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(--cta); color: #fff; padding: 10px 16px; border-radius: 8px; 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: 12px; border: 0;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-2) 100%);
  box-shadow: 0 8px 20px rgba(20, 196, 124, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(20, 196, 124, .42), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-cta svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn-cta:hover svg { transform: translateX(3px); }
.btn-ghost {
  color: #fff; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 10px; }

/* =========================================================
   HEADER / TOP MENU
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(13, 10, 31, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { background: rgba(13, 10, 31, .96); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex-shrink: 0; }
.logo-img { display: block; height: 46px; width: auto; }
.drawer-head .logo-img { height: 36px; }
.footer-brand .logo-img { height: 48px; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .94rem;
  text-decoration: none; transition: color .15s ease, background .15s ease;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-list a[aria-current="page"] { color: #fff; background: rgba(108, 71, 255, .28); }

/* Optional dropdown support: <li class="has-sub"><a>..</a><ul class="sub-menu">..</ul></li> */
.nav-list .has-sub > a::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--night-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06); color: #fff; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .25s ease, background .2s;
}
.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; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 140; background: rgba(8, 6, 20, .6);
  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(--night); color: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer-close {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.5rem; line-height: 1;
}
.drawer-nav { flex: 1; overflow-y: auto; padding: 12px; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 14px; border-radius: 12px; color: rgba(255, 255, 255, .86);
  font-weight: 600; font-size: 1.04rem; text-decoration: none;
}
.drawer-nav a::after { content: "\203A"; font-size: 1.4rem; opacity: .4; }
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { background: rgba(108, 71, 255, .22); color: #fff; }
.drawer-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
.drawer-foot { padding: 16px 18px 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.drawer-foot .btn { width: 100%; }
.drawer-foot p { margin: 12px 0 0; font-size: .78rem; color: rgba(255, 255, 255, .5); 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 (H1 + paragraph)
   ========================================================= */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(108, 71, 255, .55), transparent 60%),
    radial-gradient(700px 380px at 92% 0%, rgba(255, 77, 141, .28), transparent 60%),
    radial-gradient(600px 300px at 60% 120%, rgba(20, 196, 124, .16), transparent 60%),
    var(--night);
  padding: 18px 0 42px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; z-index: 1;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 700px; }

/* Hero slika: desno, visina = visina hero sekcije, leva ivica se stapa sa pozadinom */
.hero-visual {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  aspect-ratio: 5 / 2; height: 100%; max-width: 100%;
  background: url("/assets/images/hero.webp") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}

.breadcrumbs { margin-bottom: 10px; font-size: .84rem; }
.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, .6); }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .3); }
.breadcrumbs a { color: rgba(255, 255, 255, .78); }
.breadcrumbs a:hover { color: #fff; }

/* used on 404 */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; margin-bottom: 16px;
  border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 4px rgba(20, 196, 124, .2); flex-shrink: 0; }

.hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 10px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #b79bff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: clamp(.98rem, 1.3vw, 1.08rem); line-height: 1.6; color: rgba(255, 255, 255, .76);
  margin-bottom: 14px;
  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: #c4b1ff; font-weight: 700; font-size: .86rem; text-decoration: underline; text-underline-offset: 3px;
}
.lead-more[hidden] { display: none; }

.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hero-author { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.hero-author strong { color: #fff; font-weight: 700; }
.hero-author .avatar { width: 32px; height: 32px; font-size: .76rem; }
.hero-updated { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .82); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: inline-grid; place-items: center; font-weight: 800; font-size: .86rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 2px solid rgba(255, 255, 255, .25);
}

/* =========================================================
   H2 + CASINO LIST (3 kartice u jednom redu)
   ========================================================= */
.toplist-section { position: relative; margin-top: -16px; padding-bottom: 56px; z-index: 2; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; margin: 0; }
.section-head .sub { color: var(--ink-3); font-size: .86rem; margin: 4px 0 0; }
.disclosure { position: relative; flex-shrink: 0; font-size: .84rem; color: var(--ink-3); }
.disclosure summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure[open] summary { border-color: var(--primary); color: var(--primary); }
.disclosure-body {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(340px, 86vw);
  padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); color: var(--ink-2); line-height: 1.55;
}

.casino-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  align-items: stretch;
}

/* Kartica: logo + features + CTA */
.casino-card {
  --pad: 18px;
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--pad-top, var(--pad)) var(--pad) var(--pad);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.casino-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.casino-card.is-top {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  box-shadow: 0 18px 46px rgba(108, 71, 255, .2);
}
.top-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 6px 16px rgba(108, 71, 255, .35);
}
.top-ribbon svg { width: 13px; height: 13px; }

.cc-rank {
  position: absolute; top: calc(var(--pad-top, var(--pad)) - 6px); left: calc(var(--pad) - 6px); z-index: 2;
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .86rem; color: var(--ink);
  background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(21, 18, 43, .15);
}
.is-top .cc-rank { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }

.cc-top { display: flex; align-items: center; gap: 16px; }
.cc-img {
  flex: 0 0 128px; width: 128px; height: 128px; overflow: hidden; border-radius: 16px;
  box-shadow: 0 8px 20px rgba(21, 18, 43, .18); transition: transform .2s ease;
}
.cc-img:hover { transform: scale(1.03); }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }

.cc-features { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cc-features li { position: relative; padding-left: 27px; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.cc-features li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(20, 196, 124, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea86a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* margin-top:auto drzi CTA dugmad poravnata na dnu sve tri kartice */
.cc-cta { margin-top: auto; padding-top: 16px; }
.cc-cta .btn { width: 100%; min-height: 50px; font-size: 1.02rem; }

.list-note { margin: 20px 0 0; text-align: center; font-size: .84rem; color: var(--ink-3); }

/* =========================================================
   TEXT / CONTENT
   ========================================================= */
.content-section { padding: 8px 0 72px; }
.content-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }

.toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow-sm);
}
.toc summary {
  list-style: none; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 10px; pointer-events: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block; padding: 8px 10px 8px 12px; border-radius: 9px; border-left: 3px solid transparent;
  font-size: .88rem; font-weight: 600; color: var(--ink-2); line-height: 1.35; text-decoration: none;
}
.toc a:hover { background: var(--bg); color: var(--ink); }
.toc a.is-active { color: var(--primary); background: var(--primary-soft); border-left-color: var(--primary); }

.prose { max-width: 780px; font-size: 1.04rem; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; color: var(--ink); margin: 2.2em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.22rem; font-weight: 700; color: var(--ink); margin: 1.6em 0 .5em; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--primary); }
.prose ol li::marker { color: var(--primary); font-weight: 800; }

.callout {
  display: flex; gap: 14px; margin: 1.6em 0; padding: 18px 20px;
  border-radius: var(--radius); background: var(--primary-soft); border: 1px solid #dcd2ff; color: var(--ink-2);
}
.callout-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.callout-icon svg { width: 18px; height: 18px; }
.callout p { margin: 0; }
.callout.is-warning { background: #fff6e6; border-color: #ffe0a8; }
.callout.is-warning .callout-icon { background: var(--gold); }

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

.table-wrap { margin: 1.4em 0 1.8em; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.table-wrap th, .table-wrap td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table-wrap th { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: #faf9fe; }
.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: 3px 9px; border-radius: 7px; font-weight: 800; font-size: .82rem; color: var(--cta-2); background: rgba(20, 196, 124, .12); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.4em 0 1.8em; }
.pros-cons > div { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pros-cons h3 { margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li { position: relative; padding-left: 22px; font-size: .94rem; }
.pros-cons .pros li::before { content: "+"; position: absolute; left: 0; font-weight: 800; color: var(--cta-2); }
.pros-cons .cons li::before { content: "\2212"; position: absolute; left: 0; font-weight: 800; color: var(--accent); }
.pros-cons .pros { border-top: 3px solid var(--cta); }
.pros-cons .cons { border-top: 3px solid var(--accent); }

.faq { display: grid; gap: 10px; margin: 1.2em 0 1.8em; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #cfc3ff; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 52px 16px 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: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c47ff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 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;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.author-box .avatar { width: 60px; height: 60px; font-size: 1.1rem; border: 0; }
.author-box h3 { margin: 0 0 2px; font-size: 1.05rem; }
.author-box .role { display: block; font-size: .82rem; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.author-box p { margin: 0; font-size: .94rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .66); font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: minmax(240px, 1.2fr) 2.4fr; gap: 48px; padding: 64px 24px 40px; }
.footer-brand p { margin: 16px 0 18px; max-width: 340px; 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: 34px; padding: 0 12px;
  border-radius: 9px; font-size: .78rem; font-weight: 800; color: #fff; border: 1px solid rgba(255, 255, 255, .18);
}
.rg-badges .age { background: var(--accent); border-color: var(--accent); }

.footer-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-col h4 { margin: 0 0 14px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 5px 0; color: rgba(255, 255, 255, .64); }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.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, .46); line-height: 1.55; }
.footer-bottom .disclaimer { max-width: 760px; }

/* ---------- Floating helpers ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 46px; height: 46px; border-radius: 14px; border: 0;
  display: grid; place-items: center; color: #fff;
  background: var(--night-3); box-shadow: var(--shadow-lg);
  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: rgba(13, 10, 31, .97); color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
  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 { display: flex; align-items: center; gap: 12px; }
.sticky-logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.sticky-cta-text { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-cta-text strong { display: block; font-size: .92rem; }
.sticky-cta-text span { display: block; font-size: .8rem; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn { min-height: 42px; padding: 0 16px; font-size: .9rem; }
.sticky-close { width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); font-size: 1.1rem; line-height: 1; }

/* 404 */
.notfound { text-align: center; padding: 40px 0 80px; }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav-list a { padding: 10px 10px; font-size: .9rem; }
  .header-inner { gap: 18px; }
}

@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .casino-list { gap: 16px; }
  .casino-card { --pad: 16px; }
  .hero-visual { opacity: .32; }
  .cc-top { flex-direction: column; align-items: stretch; gap: 14px; }
  .cc-img { flex-basis: auto; width: 120px; height: 120px; margin: 0 auto; }
  .cc-features li { font-size: .88rem; }

  .content-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; padding: 0; }
  .toc summary { pointer-events: auto; cursor: pointer; margin: 0; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: "+"; font-size: 1.3rem; font-weight: 600; color: var(--primary); }
  .toc[open] summary::after { content: "\2212"; }
  .toc ol { padding: 0 10px 12px; }
  .prose { max-width: none; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .logo-img { height: 38px; }
  .drawer-head .logo-img { height: 32px; }
  .nav-toggle { width: 42px; height: 42px; }

  /* Hero: kompaktno da CTA bude above the fold */
  .hero { padding: 16px 0 30px; }
  .hero::after { height: 18px; border-radius: 18px 18px 0 0; }
  .hero-visual { background-image: url("/assets/images/hero-sm.webp"); opacity: .3; }
  .breadcrumbs { margin-bottom: 8px; font-size: .8rem; }
  .hero h1 { font-size: 1.55rem; line-height: 1.15; margin-bottom: 8px; }
  .hero-lead { font-size: .94rem; line-height: 1.55; margin-bottom: 10px; }
  .lead-more { margin: -6px 0 10px; font-size: .82rem; }
  .hero-meta { gap: 8px 12px; }
  .hero-author { font-size: .8rem; gap: 7px; }
  .hero-author .avatar { width: 26px; height: 26px; font-size: .64rem; border-width: 1px; }
  .hero-updated { font-size: .8rem; gap: 7px; }
  .hero-updated .dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(20, 196, 124, .2); }
  .hero-author { display: none; }

  .toplist-section { margin-top: -8px; padding-bottom: 40px; }
  .section-head { margin-bottom: 22px; gap: 10px; }
  .section-head h2 { font-size: 1.22rem; line-height: 1.25; }
  .section-head .sub { display: none; }
  .disclosure summary { padding: 7px; }
  .disclosure .disc-text { display: none; }

  .casino-list { grid-template-columns: 1fr; gap: 22px; max-width: 520px; margin: 0 auto; }
  .casino-card { --pad: 14px; }
  .casino-card.is-top { --pad-top: 28px; }
  .top-ribbon { top: -15px; padding: 5px 12px; font-size: .7rem; }
  .casino-card:hover { transform: none; }
  .cc-top { flex-direction: row; align-items: center; gap: 14px; }
  .cc-img { flex: 0 0 112px; width: 112px; height: 112px; margin: 0; border-radius: 14px; }
  .cc-features { gap: 7px; }
  .cc-features li { font-size: .88rem; padding-left: 25px; }
  .cc-cta { padding-top: 14px; }
  .cc-cta .btn { min-height: 52px; font-size: 1.05rem; }

  .content-section { padding-bottom: 56px; }
  .prose { font-size: 1rem; }
  .criteria, .pros-cons { grid-template-columns: 1fr; }
  .table-wrap table { min-width: 0; font-size: .86rem; }
  .table-wrap th, .table-wrap td { padding: 11px 10px; }
  .callout { padding: 16px; }
  .author-box { flex-direction: column; gap: 12px; }

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

  .sticky-cta { display: block; }
  body.has-sticky .to-top { bottom: 86px; }
  body.has-sticky .site-footer { padding-bottom: 76px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.42rem; }
  .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; }
}

/* =========================================================
   EXTRA COMPONENTS (topbar, stats, steps, related)
   ========================================================= */
.topbar { background: var(--night-2); color: rgba(255,255,255,.74); font-size: .78rem; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 0; flex-wrap: wrap; text-align: center; }
.topbar .age { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: var(--night); font-weight: 800; font-size: .72rem; letter-spacing: .02em; }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.topbar a:hover { color: var(--accent); }
.topbar-mini { display: none; }
.disc-text-short { display: none; }

.stats-band { padding: 26px 0 4px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 1.45rem; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.stat span { display: block; margin-top: 4px; font-size: .78rem; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 1.4em 0 1.8em; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; box-shadow: var(--shadow-sm); }
.step-n { position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .88rem; }
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; font-size: .92rem; color: var(--ink-2); }

.related-section { padding: 0 0 34px; }
.related-title { margin: 0 0 14px; font-size: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.related-card { display: block; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .18s, border-color .18s; }
.related-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.related-card span { display: block; }
.related-card .r-tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 3px; }
.related-card .r-title { font-weight: 700; color: var(--ink); font-size: .95rem; }

.criteria-ico { font-size: 19px; line-height: 1; }

/* Sticky CTA: fristaende X i hornet, hel text, aven desktop */
.sticky-cta-inner { padding-right: 34px; }
.sticky-cta-text span {
  display: block; font-size: .74rem; line-height: 1.3; color: rgba(255, 255, 255, .72);
  white-space: normal; overflow: visible; text-overflow: clip;
}
.sticky-close {
  position: absolute; top: 5px; right: 6px; z-index: 2;
  width: 22px; height: 22px; border-radius: 7px; border: 0;
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8);
  font-size: .95rem; line-height: 1; display: grid; place-items: center; cursor: pointer;
}
.sticky-close:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* Exit-intent modal (10 s inaktivitet) */
.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(13, 10, 31, .74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.exit-card {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 36px); overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-lg); padding: 26px 24px 20px;
  box-shadow: var(--shadow-lg); text-align: left; animation: exitIn .26s ease both;
}
.exit-x {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 9px;
  background: var(--bg); color: var(--ink-2); font-size: 1.2rem; line-height: 1; display: grid; place-items: center; cursor: pointer;
}
.exit-x:hover { background: var(--primary-soft); color: var(--primary); }
.exit-kicker { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.exit-card h2 { margin: 0 0 8px; font-size: 1.32rem; line-height: 1.2; letter-spacing: -.02em; 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: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.exit-offer img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.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: 48px; 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; cursor: pointer; }
.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) scale(.985); } to { opacity: 1; transform: none; } }

/* Telegram: roterande badge */
.tg-cta {
  position: relative; display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 56px; height: 56px; margin-left: auto; border-radius: 50%;
  background: #fff; border: 2px solid #229ED9; box-shadow: 0 8px 22px rgba(34, 158, 217, .35);
  text-decoration: none;
}
.tg-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: tgspin 22s linear infinite; }
.tg-ring text { font-family: var(--font); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; fill: #0B1220; }
.tg-core {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #45B6E8, #1E96C8); box-shadow: 0 3px 10px rgba(30, 150, 200, .45);
}
.tg-core svg { width: 15px; height: 15px; fill: currentColor; }
.tg-cta:hover .tg-ring { animation-play-state: paused; }
@keyframes tgspin { to { transform: rotate(360deg); } }

/* H1: varumärkesrad med flagga + domän */
.hero h1 .h1-brand {
  display: inline-flex; align-items: center; gap: .42em; margin-left: .1em;
  font-size: .6em; font-weight: 800; letter-spacing: .01em; color: rgba(255, 255, 255, .74);
  vertical-align: middle; white-space: nowrap;
}
.hero h1 .h1-flag { width: 1.2em; height: .75em; border-radius: 2px; flex-shrink: 0; }
.hero h1 .h1-tail { white-space: nowrap; }

/* Ingress: på mobil två rader med Läs mer längst till höger på andra raden */
.hero-lead-box { position: relative; }
.upd-short { display: none; }

/* Författare */
.hero-author a { color: #fff; font-weight: 700; text-decoration: none; }
.hero-author a:hover { text-decoration: underline; }
.hero-author img.avatar { object-fit: cover; border: 2px solid rgba(255, 255, 255, .35); background: var(--night-3); }
.author-box img.avatar { width: 84px; height: 84px; object-fit: cover; border: 0; background: none; }
.authors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.4em 0 1.8em; }
.author-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.author-card.is-lead { border-color: rgba(108, 71, 255, .45); box-shadow: 0 14px 34px rgba(108, 71, 255, .14); }
.author-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; display: block; margin: 0 0 12px; }
.author-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.author-card .role { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.author-card p { margin: 0 0 10px; font-size: .94rem; }
.author-card a { font-weight: 700; font-size: .9rem; word-break: break-word; }

.content-wrap.no-toc { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 761px) {
  .hero { padding-bottom: 32px; }
  .section-head { margin-bottom: 26px; }
  .top-ribbon { top: -20px; }
  .casino-card.is-top { --pad-top: calc(var(--pad) - 1px); }
}
@media (min-width: 1081px) {
  .cc-img { align-self: flex-start; }
}
@media (min-width: 901px) {
  .sticky-cta {
    display: block; left: 50%; right: auto; bottom: 22px;
    width: min(560px, calc(100vw - 190px));
    padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .38);
    transform: translate(-50%, calc(100% + 30px));
  }
  .sticky-cta.is-visible { transform: translate(-50%, 0); }
  .sticky-cta-inner { max-width: none; margin: 0; gap: 12px; padding-right: 30px; }
  .sticky-cta-text span { font-size: .8rem; }
  .sticky-cta .btn { min-height: 44px; padding: 0 22px; font-size: .92rem; }
  .sticky-close { top: 7px; right: 8px; }
  .tg-cta { position: fixed; right: 22px; bottom: 22px; z-index: 85; width: 92px; height: 92px; margin: 0; }

  .to-top { bottom: 128px; }
}
@media (min-width: 1440px) {
  .tg-cta { width: 104px; height: 104px; }
  .to-top { bottom: 140px; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .casino-card { --pad-top: 30px; }
  .casino-card.is-top { --pad-top: 29px; }
  .cc-img { align-self: flex-start; }
  .casino-card .cc-rank { top: 8px; left: 8px; }
  .disclosure summary { padding: 5px 10px; font-size: .72rem; letter-spacing: .01em; text-transform: none; color: var(--ink-2); }
  .disc-text-short { display: inline; }
  .hero h1 .h1-brand { font-size: .7em; margin-left: .06em; gap: .38em; }
  .hero h1 .h1-flag { width: 1.2em; height: .75em; }
  .hero-lead { -webkit-line-clamp: 2; line-clamp: 2; }
  .lead-more {
    position: absolute; right: 0; bottom: 0; margin: 0; padding: 1px 10px;
    border-radius: 999px; background: rgba(13, 10, 31, .92);
    font-size: .76rem; text-decoration: none; line-height: 1.6;
  }
  .hero-lead.is-open + .lead-more { position: static; margin: 4px 0 10px; padding: 0; background: none; }
  .steps { grid-template-columns: 1fr; }
  .authors { grid-template-columns: 1fr; }
  .author-box img.avatar { width: 64px; height: 64px; }
  .hero-author { display: inline-flex; gap: 7px; font-size: .78rem; }
  .hero-author img.avatar { width: 24px; height: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .topbar { font-size: .73rem; }
  .topbar-inner { padding: 6px 4px; }
}
@media (max-width: 560px) {
  .topbar-full { display: none; }
  .topbar-mini { display: inline; }
  .hero-meta { gap: 6px; }
  .hero-author { font-size: .72rem; gap: 5px; }
  .hero-author img.avatar { width: 22px; height: 22px; }
  .hero-updated { font-size: .72rem; gap: 5px; }
  .upd-long { display: none; }
  .upd-short { display: inline; }
  .tg-cta { width: 44px; height: 44px; }
  .tg-core { width: 24px; height: 24px; }
  .tg-core svg { width: 12px; height: 12px; }
  .topbar { font-size: .68rem; }
  .topbar-inner { padding: 4px 2px; gap: 6px; }
  .hero { padding: 12px 0 22px; }
  .hero h1 { font-size: 1.38rem; }
  .hero-lead { margin-bottom: 8px; }
  .toplist-section { margin-top: -12px; }
  .section-head { margin-bottom: 16px; }
  .casino-card { --pad: 12px; }
  .cc-cta { padding-top: 10px; }
  .cc-features { gap: 6px; }
  .cc-features li { font-size: .85rem; }
}
@media (max-width: 380px) {
  .hero-meta { gap: 5px; }
  .hero-author { font-size: .7rem; }
  .hero-updated { font-size: .7rem; }
  .tg-cta { width: 40px; height: 40px; }
  .tg-core { width: 22px; height: 22px; }
  .tg-core svg { width: 11px; height: 11px; }
  .breadcrumbs { display: none; }
  .hero { padding: 8px 0 14px; }
  .hero h1 { margin-bottom: 5px; }
  .section-head { margin-bottom: 12px; }
  .cc-features li { font-size: .82rem; line-height: 1.35; }
  .cc-cta { padding-top: 7px; }
}

