/* ================================================================
   OnlineCasinoSverige.com — Premium Dark Theme v3
   Full rewrite: fixed guide grid, casino cards, mobile layout
   ================================================================ */

/* ----------------------------------------------------------------
   1. RESET & CSS VARIABLES
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #0d1117;
  --bg-card:      #161b22;
  --bg-card-2:    #1c2330;
  --bg-section:   #0f1520;
  --accent:       #f0c040;
  --accent-h:     #f5cc55;
  --accent-dim:   #c49a10;
  --text:         #e6edf3;
  --text-2:       #8b949e;
  --text-3:       #9098a1;
  --border:       #30363d;
  --border-2:     #21262d;
  --tag-bg:       #0d2818;
  --tag:          #3fb950;
  --tag-b:        #238636;
  --red:          #f85149;
  --r-sm:         6px;
  --r-md:         12px;
  --r-lg:         18px;
  --sh-card:      0 4px 24px rgba(0, 0, 0, 0.45);
  --sh-hover:     0 10px 48px rgba(0, 0, 0, 0.65);
  --sh-gold:      0 4px 24px rgba(240, 192, 64, 0.22);
  --tr:           0.2s ease;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:        1220px;
  --header-h:     64px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--tr);
}
a:hover {
  color: var(--accent-h);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.35rem;
}

/* Utility: prevent text overflow in flex/grid children */
.truncate { min-width: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ----------------------------------------------------------------
   2. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr), color var(--tr);
  white-space: nowrap;
  line-height: 1;
}

.btn-gold {
  background: linear-gradient(135deg, #f0c040, #dda820);
  color: #0d1117;
  box-shadow: var(--sh-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #f5cc50, #eab830);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240, 192, 64, 0.4);
  color: #0d1117;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(240, 192, 64, 0.06);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-lg {
  padding: 0.95rem 2.4rem;
  font-size: 1rem;
  border-radius: var(--r-md);
}


/* ----------------------------------------------------------------
   3. HEADER
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
  transition: box-shadow var(--tr), border-color var(--tr);
}
.site-header.scrolled {
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.7);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.logo:hover { color: var(--accent); text-decoration: none; }
.logo em { color: var(--accent); font-style: normal; }
.logo-icon { font-size: 1.25rem; }
.footer-logo { font-size: 0.9rem; }

/* Desktop nav */




.header-cta {
  flex-shrink: 0;
  padding: 0.45rem 1.1rem;
  font-size: 0.84rem;
  margin-left: 0.5rem;
}

/* Hamburger */







/* ----------------------------------------------------------------
   4. HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  background: var(--bg);
  text-align: center;
}

.hero-bg-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(
    ellipse at 50% 25%,
    rgba(240, 192, 64, 0.11) 0%,
    rgba(240, 120, 0, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.15), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.25);
  color: var(--accent);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.4rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.6px;
}

.h1-accent {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.94rem, 2.4vw, 1.1rem);
  color: var(--text-2);
  margin: 0 auto 0.85rem;
  max-width: 660px;
  line-height: 1.65;
}

.hero-disclaimer {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.5rem;
}
.hero-disclaimer a { color: var(--text-3); text-decoration: underline; }

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-bottom: 2.4rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.stat-icon { font-size: 1rem; }

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ----------------------------------------------------------------
   5. SECTION HEADERS (shared)
   ---------------------------------------------------------------- */
.section-header { margin-bottom: 1.25rem; }

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: var(--text-2);
  font-size: 0.9rem;
}


/* ----------------------------------------------------------------
   6. TOPPLISTA
   ---------------------------------------------------------------- */
.topplista-section { padding: 4.5rem 0 3rem; }

.topplista-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  font-size: 0.77rem;
  color: var(--text-3);
  margin-bottom: 1.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
}
.meta-sep { color: var(--border); }

/* Casino List */
.casino-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ---- Casino Card ---- */
.casino-card {
  display: grid;
  /* rank | logo | info | cta */
  grid-template-columns: 68px 108px minmax(0, 1fr) 168px;
  grid-template-rows: 1fr;
  column-gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

/* Gold left accent bar */
.casino-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  transition: background var(--tr);
}

.casino-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-hover);
  border-color: rgba(240, 192, 64, 0.25);
}
.casino-card:hover::before {
  background: var(--accent);
}

/* #1 card special */
.casino-card--top {
  border-color: rgba(240, 192, 64, 0.35);
  background: linear-gradient(135deg, #161b22 0%, #1a2333 100%);
  box-shadow: 0 2px 20px rgba(240, 192, 64, 0.07);
}
.casino-card--top::before { background: var(--accent); }
.casino-card--top:hover {
  border-color: rgba(240, 192, 64, 0.55);
  box-shadow: 0 10px 50px rgba(240, 192, 64, 0.16);
}

/* Rank column */
.casino-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  flex-shrink: 0;
}

.rank-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.casino-card--top .rank-number { font-size: 1.75rem; }

.rank-badge {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-best     { background: var(--accent); color: #0d1117; }
.badge-paynplay { background: #1a56db; color: #fff; }
.badge-new      { background: #16a34a; color: #fff; }

/* Logo column */
.casino-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.casino-logo {
  width: 100px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 900;
  font-family: var(--font);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  user-select: none;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform var(--tr), box-shadow var(--tr);
}
.casino-card:hover .casino-logo {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.logo-abbr  { font-size: 0.74rem; font-weight: 900; letter-spacing: 0.5px; }
.logo-abbr2 { font-size: 0.63rem; font-weight: 800; opacity: 0.9; }

/* Per-brand logo colors */
.logo-betmgm  { background: linear-gradient(135deg, #002d72, #003f9f); }
.logo-betmgm .logo-abbr  { color: #fff; }
.logo-betmgm .logo-abbr2 { color: #c8a951; }
.logo-speedy  { background: linear-gradient(135deg, #ff5a00, #cc3a00); color: #fff; }
.logo-speedy .logo-abbr { font-size: 0.63rem; letter-spacing: 1px; }
.logo-expekt  { background: linear-gradient(135deg, #c00020, #900018); color: #fff; }
.logo-expekt .logo-abbr { font-size: 0.63rem; letter-spacing: 1px; }
.logo-jubla   { background: linear-gradient(135deg, #5b21b6, #4c1d95); color: #ddd6fe; }
.logo-jubla .logo-abbr { font-size: 0.68rem; letter-spacing: 1px; }
.logo-otto    { background: linear-gradient(135deg, #0d9488, #0a6e66); color: #fff; }
.logo-otto .logo-abbr { font-size: 0.8rem; letter-spacing: 2px; }
.logo-mrvegas { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.logo-mrvegas .logo-abbr  { color: #fff; font-size: 0.7rem; }
.logo-mrvegas .logo-abbr2 { color: #fcd34d; }
.logo-voodoo  { background: linear-gradient(135deg, #3b0764, #581c87); color: #c4b5fd; }
.logo-voodoo .logo-abbr { font-size: 0.83rem; letter-spacing: 1px; }
.logo-1x2     { background: linear-gradient(135deg, #166534, #14532d); color: #86efac; }
.logo-1x2 .logo-abbr { font-size: 0.88rem; letter-spacing: 2px; }
.logo-mega    { background: linear-gradient(135deg, #78350f, #92400e); color: #fde68a; }
.logo-mega .logo-abbr { font-size: 0.68rem; letter-spacing: 2px; }
.logo-cherry  { background: linear-gradient(135deg, #be123c, #9f1239); color: #fff; }
.logo-cherry .logo-abbr { font-size: 1.1rem; }

/* Info column */
.casino-info {
  min-width: 0; /* critical: prevents grid blowout */
}

.casino-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.3rem;
}

.casino-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.casino-stars {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.stars      { color: var(--accent); font-size: 0.82rem; letter-spacing: 1px; }
.rating-num { font-size: 0.78rem; font-weight: 700; color: var(--text-2); }

.casino-bonus {
  margin-bottom: 0.22rem;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bonus-label { color: var(--text-2); margin-right: 0.25rem; }
.bonus-value { color: var(--accent); font-weight: 700; }

.casino-wagering {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.casino-wagering strong { color: var(--text-2); }

.casino-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag);
  border: 1px solid var(--tag-b);
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.17rem 0.48rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* CTA column */
.casino-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  flex-shrink: 0;
  text-align: center;
}
.casino-cta .btn { width: 100%; font-size: 0.86rem; }

.casino-review-link {
  font-size: 0.72rem;
  color: var(--text-3);
  text-decoration: underline;
  text-align: center;
}
.casino-review-link:hover { color: var(--text-2); }

.casino-disclaimer {
  font-size: 0.62rem;
  color: var(--text-3);
  line-height: 1.4;
  text-align: center;
}
.casino-disclaimer a { color: var(--text-3); text-decoration: underline; }

/* Affiliate notice */
.affiliate-notice {
  margin-top: 1.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
}
.affiliate-notice p {
  font-size: 0.73rem;
  color: var(--text-3);
  line-height: 1.6;
}


/* ----------------------------------------------------------------
   7. WHY US
   ---------------------------------------------------------------- */
.why-us-section {
  background: var(--bg-section);
  padding: 4rem 0;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.why-us-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card);
  border-color: rgba(240, 192, 64, 0.2);
}
.why-icon        { font-size: 2.25rem; margin-bottom: 0.9rem; display: block; }
.why-us-card h3  { font-size: 0.98rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.why-us-card p   { font-size: 0.84rem; color: var(--text-2); line-height: 1.65; }


/* ----------------------------------------------------------------
   8. GUIDE SECTION  ← MAIN FIX: explicit grid-column placement
   ---------------------------------------------------------------- */
.guide-section { padding: 4.5rem 0 3.5rem; }

/*
  Layout: 3 grid children in a 2-column grid.
  Using explicit grid placement so each child lands in the right spot:
  - .guide-toc    → col 1, row 1
  - .guide-content → col 1, row 2
  - .guide-sidebar → col 2, row 1 to end (sticky on right)
*/
.guide-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  grid-template-rows: auto auto;
  column-gap: 3rem;
  row-gap: 0;
  align-items: start;
}

/* TOC: top of left column */
.guide-toc {
  grid-column: 1;
  grid-row: 1;
  background: rgba(240, 192, 64, 0.05);
  border: 1px solid rgba(240, 192, 64, 0.15);
  border-radius: var(--r-md);
  padding: 1.4rem;
  margin-bottom: 2.25rem;
}

/* Main article: bottom of left column */
.guide-content {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

/* Sidebar: right column, spans both rows, sticky */
.guide-sidebar {
  grid-column: 2;
  grid-row: 1 / -1;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
}

/* TOC internals */
.toc-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
  letter-spacing: 0.3px;
}
.toc-list { padding-left: 1.1rem; }
.toc-list li { margin-bottom: 0.38rem; }
.toc-list a {
  font-size: 0.82rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--tr);
}
.toc-list a:hover { color: var(--accent); text-decoration: underline; }

/* Guide content typography */
.guide-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-2);
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.guide-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.guide-content h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.7rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}

.guide-content p {
  color: var(--text-2);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.82;
}
.guide-content p strong { color: var(--text); }

.guide-content ul,
.guide-content ol {
  margin-bottom: 1rem;
  color: var(--text-2);
  font-size: 0.92rem;
}
.guide-content li { margin-bottom: 0.45rem; line-height: 1.7; }
.guide-content a  { color: var(--accent); }
.guide-content a:hover { color: var(--accent-h); }
.guide-content em { font-style: italic; color: var(--text); }

/* Step list */
.step-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.step-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  transition: border-color var(--tr);
}
.step-list li:hover { border-color: rgba(240, 192, 64, 0.2); }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d1117;
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.step-list li > div strong {
  color: var(--text);
  font-size: 0.91rem;
  display: block;
  margin-bottom: 0.22rem;
}
.step-list li > div p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border-radius: var(--r-md);
  -webkit-overflow-scrolling: touch;
}
.comparison-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.83rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.comparison-table thead { background: rgba(240, 192, 64, 0.08); }
.comparison-table th {
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-2);
  color: var(--text-2);
  vertical-align: middle;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td strong { color: var(--text); }
.comparison-table tbody tr:hover td { background: rgba(240, 192, 64, 0.03); }

/* RG warning box */
.rg-box {
  background: rgba(240, 192, 64, 0.05);
  border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  margin-top: 1.5rem;
}
.rg-box p { margin: 0; color: var(--text-2); font-size: 0.87rem; }
.rg-box p + p { margin-top: 0.55rem; }
.rg-box a { color: var(--accent); }

/* Sidebar boxes */
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem;
}
.sidebar-box h3 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box ul li { margin-bottom: 0.4rem; }
.sidebar-box ul li a {
  font-size: 0.82rem;
  color: var(--text-2);
  text-decoration: none;
}
.sidebar-box ul li a:hover { color: var(--accent); }

.sidebar-toplist {}
.sidebar-casino-mini {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-2);
}
.sidebar-casino-mini:last-child { border-bottom: none; padding-bottom: 0; }
.scm-rank { font-size: 0.78rem; font-weight: 900; color: var(--accent); min-width: 22px; }
.scm-name { font-size: 0.8rem; font-weight: 600; color: var(--text); flex: 1; }
.scm-cta {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0d1117;
  background: var(--accent);
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--tr);
  flex-shrink: 0;
}
.scm-cta:hover { background: var(--accent-h); color: #0d1117; text-decoration: none; }

.sidebar-box--rg {
  border-color: rgba(240, 192, 64, 0.2);
  background: rgba(240, 192, 64, 0.03);
}
.sidebar-rg-text {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 0.8rem;
  line-height: 1.5;
}


/* ----------------------------------------------------------------
   9. FAQ
   ---------------------------------------------------------------- */
.faq-section {
  background: var(--bg-section);
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-2);
}

.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--tr);
}
.faq-item.open { border-color: rgba(240, 192, 64, 0.3); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.4rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.91rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--tr), background var(--tr);
}
.faq-question:hover { color: var(--accent); background: rgba(240, 192, 64, 0.04); }
.faq-question[aria-expanded="true"] { color: var(--accent); }

.faq-icon {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-2);
  font-size: 0.87rem;
  line-height: 1.75;
  animation: fadeIn 0.2s ease;
}
.faq-answer a { color: var(--accent); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ----------------------------------------------------------------
   10. RG FOOTER BAR
   ---------------------------------------------------------------- */
.rg-footer {
  background: #06101a;
  border-top: 1px solid rgba(240, 192, 64, 0.12);
  padding: 0.75rem 0;
}
.rg-footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  font-size: 0.75rem;
  color: var(--text-3);
}
.rg-footer-inner a { color: var(--text-3); text-decoration: underline; }
.rg-footer-inner strong { color: var(--text-2); }
.rg-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ----------------------------------------------------------------
   11. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: #07090e;
  border-top: 1px solid var(--border-2);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-2);
}

.footer-tagline {
  font-size: 0.79rem;
  color: var(--text-3);
  margin-bottom: 1rem;
  max-width: 240px;
  line-height: 1.6;
}

.footer-trust-logos { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.trust-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-3);
}
.age-badge {
  background: rgba(248, 81, 73, 0.15);
  border-color: var(--red);
  color: var(--red);
}

.footer-nav h4,
.footer-license h4 {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}
.footer-nav ul,
.footer-license ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li,
.footer-license li { margin-bottom: 0.45rem; }
.footer-nav a,
.footer-license a {
  font-size: 0.82rem;
  color: var(--text-2);
  text-decoration: none;
}
.footer-nav a:hover,
.footer-license a:hover { color: var(--accent); }
.footer-license span { font-size: 0.82rem; color: var(--text-2); }

.footer-disclaimer {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-2);
}
.footer-disclaimer p {
  font-size: 0.71rem;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 960px;
}
.footer-disclaimer a { color: var(--text-3); text-decoration: underline; }

.footer-copyright { padding: 1rem 1.5rem; }
.footer-copyright p {
  font-size: 0.72rem;
  color: var(--text-3);
  text-align: center;
}


/* ================================================================
   12. RESPONSIVE BREAKPOINTS
   Mobile-first corrections applied top to bottom
   ================================================================ */

/* --- Tablet large: ≤1100px --- */
@media (max-width: 1100px) {
  .casino-card {
    grid-template-columns: 60px 96px minmax(0, 1fr) 152px;
    column-gap: 0.85rem;
    padding: 1rem 1.1rem;
  }
  .casino-logo { width: 90px; height: 42px; }
  .guide-inner { column-gap: 2rem; }
  .guide-sidebar { grid-column: 2; }
}

/* --- Tablet: ≤900px --- */
@media (max-width: 900px) {
  /* Guide: collapse to single column */
  .guide-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .guide-toc    { grid-column: 1; grid-row: 1; margin-bottom: 1.75rem; }
  .guide-content { grid-column: 1; grid-row: 2; }
  .guide-sidebar {
    grid-column: 1;
    grid-row: 3;
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
  }

  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* --- Tablet small: ≤768px --- */
@media (max-width: 768px) {
  /* Casino card: hide logo column */
  .casino-card {
    grid-template-columns: 56px minmax(0, 1fr) 148px;
    column-gap: 0.75rem;
    padding: 0.9rem 1rem;
  }
  .casino-logo-wrap { width: 48px; height: 48px; flex-shrink: 0; }
  .casino-logo { width: 36px; height: 36px; }
}

@media (max-width: 400px) {
  .casino-logo-wrap { width: 40px; height: 40px; }
}

/* --- Mobile nav: ≤640px --- */
@media (max-width: 640px) {
  /* Show hamburger, hide desktop nav + header CTA */
  
  .header-cta   { display: none; }

  /* Mobile nav overlay */
  
  
  
  .main-nav a:last-child { border-bottom: none; }

  /* Hero */
  .hero { padding: 3.5rem 0 3rem; }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .hero-cta-row .btn { width: 100%; max-width: 300px; }
  .hero-stats { gap: 0.5rem 1.25rem; }

  /* Casino cards: stack info + CTA below rank */
  .casino-card {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.65rem;
    row-gap: 0.7rem;
    padding: 0.85rem 0.9rem;
  }
  /* casino-logo-wrap kept visible with reduced size (handled at 768/400) */
  .casino-rank  {
    grid-column: 1;
    grid-row: 1 / 3; /* span both rows */
    align-self: start;
    padding-top: 0.15rem;
  }
  .casino-info {
    grid-column: 2;
    grid-row: 1;
  }
  .casino-cta {
    grid-column: 2;
    grid-row: 2;
    align-items: stretch;
    min-width: 0;
  }
  .casino-cta .btn { width: 100%; }
  .rank-number { font-size: 1.3rem; }
  .casino-card--top .rank-number { font-size: 1.5rem; }

  /* Guide sidebar back to flex row */
  .guide-sidebar {
    grid-template-columns: 1fr;
  }

  /* Why us */
  .why-us-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  /* FAQ */
  .faq-question { font-size: 0.84rem; padding: 0.95rem 1.1rem; }

  /* Tables */
  .comparison-table th,
  .comparison-table td { padding: 0.55rem 0.7rem; font-size: 0.76rem; }
}

/* --- Small mobile: ≤400px --- */
@media (max-width: 400px) {
  h1 { font-size: 1.7rem; }
  .hero-badge { font-size: 0.65rem; }
  .casino-name { font-size: 0.9rem; }
  .bonus-value { font-size: 0.82rem; }
  .rank-number { font-size: 1.2rem; }
  .casino-card--top .rank-number { font-size: 1.35rem; }
  .casino-cta .btn { font-size: 0.82rem; padding: 0.6rem 1rem; }
}

/* Skip link */
.skip-link{position:absolute;top:-100%;left:16px;z-index:9999;padding:12px 24px;background:#f0c040;color:#000;font-weight:700;border-radius:0 0 8px 8px;text-decoration:none;transition:top .2s}
.skip-link:focus{top:0}

/* Author */
.author-section{padding:48px 0;border-top:1px solid rgba(255,255,255,0.06)}
.author-block{display:flex;align-items:flex-start;gap:20px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:24px}
.author-photo{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid rgba(240,192,64,0.5);flex-shrink:0}
.author-info{flex:1}
.author-name{font-size:1.1rem;color:#fff;display:block;margin-bottom:2px}
.author-role{font-size:0.82rem;color:rgba(255,255,255,0.5);display:block;margin-bottom:8px}
.author-bio{font-size:0.9rem;color:rgba(255,255,255,0.7);line-height:1.6;margin:0 0 8px}
.author-date{font-size:0.78rem;color:rgba(255,255,255,0.4)}

/* Content image */
.content-image{margin:32px 0;border-radius:12px;overflow:hidden}
.content-image img{width:100%;height:auto;display:block;border-radius:12px}

/* Related guides */
.related-guides{margin:48px 0 32px;padding:28px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:12px}
.related-guides h2{font-size:1.2rem;margin-bottom:16px}
.related-guides ul{list-style:none;padding:0;margin:0}
.related-guides li{padding:8px 0;border-bottom:1px solid rgba(255,255,255,0.05);font-size:0.92rem}
.related-guides li:last-child{border-bottom:none}

@media(max-width:600px){
  .author-block{flex-direction:column;text-align:center;align-items:center}
  .author-photo{width:56px;height:56px}
}

/* ========================================================== */
/* Polish additions — WCAG, print, breadcrumb, disclosure, img */
/* ========================================================== */

/* Keyboard focus indicators — WCAG 2.4.7 */
:focus-visible { outline: 3px solid var(--accent, #f0c040); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .btn-gold:focus-visible, .btn-outline:focus-visible { outline-offset: 4px; }
.main-nav a:focus-visible { outline-offset: 6px; }
.faq-question:focus-visible { outline-offset: -2px; }
.casino-card a:focus-visible, .scm-cta:focus-visible { outline-offset: 3px; }
.skip-link:focus { top: 0; outline: 3px solid var(--accent, #f0c040); }

/* Print styles */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .site-header, .site-footer, .rg-footer, .hero-cta-row, .casino-cta .btn, .faq-question, .scm-cta, .guide-sidebar, .sidebar-box, .sidebar, .skip-link, .hero-bg-glow { display: none !important; }
  main, article, section { background: #fff !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  img { max-width: 100% !important; page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; color: #000 !important; }
}

/* Breadcrumb */
.breadcrumb { padding: 0.75rem 0; margin-bottom: 1rem; font-size: 0.88rem; }
.breadcrumb ol, .breadcrumb > .container { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; color: var(--text-2, #9199a1); }
.breadcrumb li:not(:last-child)::after { content: "\203A"; margin-left: 0.5rem; color: var(--text-3, #6e7681); }
.breadcrumb a { color: var(--text-2, #9199a1); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent, #f0c040); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text, #e6edf3); font-weight: 500; }

/* Affiliate disclosure / transparency note */
.affiliate-disclosure { background: rgba(240,192,64,0.05); border-left: 3px solid var(--accent, #f0c040); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.92rem; color: var(--text-2, #9199a1); border-radius: 4px; }
.affiliate-disclosure strong { color: var(--accent, #f0c040); }
.transparency-note { background: rgba(240,192,64,0.08); border: 1px solid rgba(240,192,64,0.3); padding: 1.5rem; border-radius: 8px; margin: 1.5rem 0; color: var(--text, #e6edf3); }
.transparency-note strong { color: var(--accent, #f0c040); }

/* Article images (replaces common inline style) */
.article-image { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 0 auto; }


/* Utility classes to replace common inline styles */
.hero-compact { padding: 2.5rem 0 1.5rem; }
.section-pad-2 { padding: 2rem 0; }
.breadcrumb-inline { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .95rem; }
.plain-list-grid { list-style: none; padding: 0; display: grid; gap: .75rem; }
.h-lg-gap { font-size: 1.3rem; margin-bottom: 1rem; }
.inline-cta-center {
  min-height: 44px; display: block; text-align: center; margin-top: 1rem; }

/* Extra utilities (pass 2 inline-style migration) */
.content-narrow { max-width: 800px; }
.rg-box--spaced { margin: 2rem 0; }
.author-block { margin-bottom: 2rem; }
.author-photo--square { border-radius: 12px; }
.author-initials {
  width: 64px; height: 64px;
  background: #1a1a2e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #f0c040; font-weight: 700; font-size: 1.5rem;
  flex-shrink: 0;
}
.error-hero { padding: 4rem 0; text-align: center; }
.error-kicker { font-size: 1.1rem; opacity: .75; margin-bottom: .5rem; }
.error-title { font-size: clamp(2rem, 6vw, 4rem); margin: 0 0 1rem; }
.error-lead { max-width: 640px; margin: 0 auto 2rem; font-size: 1.15rem; line-height: 1.6; }
.error-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.error-links-wrap { max-width: 720px; margin: 0 auto; text-align: left; }
.error-links-heading { font-size: 1.4rem; margin-bottom: 1rem; }
.error-links-grid { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }


/* Warning tags for non-SE-licensed casinos */
.tag-warning {
  background: rgba(230, 80, 60, 0.12) !important;
  border-color: rgba(230, 80, 60, 0.4) !important;
  color: #ff9380 !important;
}


/* ================================================================
   NAVIGATION v2 — Desktop dropdowns + Mobile slide-in panel
   ================================================================ */

.main-nav { display: flex; align-items: center; }
.main-nav-list {
  display: flex; list-style: none; margin: 0; padding: 0;
  gap: 0.25rem; align-items: center;
}
.main-nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; color: var(--text, #e6edf3);
  padding: 0.65rem 0.95rem; border-radius: 8px;
  text-decoration: none; transition: background 0.15s, color 0.15s;
  font-size: 0.92rem; font-weight: 500; white-space: nowrap;
  min-height: 44px;
}
.nav-link:hover, .nav-link:focus-visible {
  background: rgba(240, 192, 64, 0.08); color: var(--accent, #f0c040);
}
.submenu-arrow { font-size: 0.7em; opacity: 0.7; transition: transform 0.2s; }
.has-submenu.open .submenu-arrow,
.nav-submenu-toggle[aria-expanded="true"] .submenu-arrow { transform: rotate(180deg); }

.nav-submenu {
  position: absolute; top: 100%; left: 0;
  background: #0d1117; border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: 12px; padding: 0.5rem;
  min-width: 240px; max-width: 320px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(240, 192, 64, 0.1);
  display: none; z-index: 1000; margin-top: 0.5rem;
}
.has-submenu.open > .nav-submenu { display: block; animation: navFade 0.18s ease; }
@keyframes navFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.nav-submenu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0.8rem; border-radius: 6px;
  color: var(--text, #e6edf3); text-decoration: none;
  font-size: 0.88rem; transition: background 0.12s, color 0.12s;
}
.nav-submenu a:hover, .nav-submenu a:focus-visible {
  background: rgba(240, 192, 64, 0.1); color: var(--accent, #f0c040);
}
.nav-submenu small {
  font-size: 0.72rem; color: var(--text-3, #9098a1);
  font-weight: 400; margin-left: 0.5rem;
}
.submenu-section-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent, #f0c040); padding: 0.6rem 0.8rem 0.3rem;
  font-weight: 700; opacity: 0.85;
}
.submenu-section-title:first-child { padding-top: 0.2rem; }

.nav-toggle {
  display: none; background: transparent; border: 0;
  width: 44px; height: 44px; cursor: pointer; padding: 0;
  position: relative; border-radius: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text, #e6edf3);
  margin: 5px auto; transition: 0.25s ease;
  border-radius: 2px;
}
.nav-toggle:hover { background: rgba(240, 192, 64, 0.08); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent, #f0c040); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent, #f0c040); }

.nav-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6); z-index: 998;
  opacity: 0; transition: opacity 0.25s;
}
.nav-backdrop.show { display: block; opacity: 1; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -100%;
    width: 85%; max-width: 360px; height: 100vh;
    background: #0d1117; border-left: 1px solid rgba(240, 192, 64, 0.2);
    padding: 5rem 1rem 2rem; overflow-y: auto;
    transition: right 0.3s cubic-bezier(.4,0,.2,1); z-index: 999;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.5);
  }
  .main-nav.open { right: 0; }
  .main-nav-list {
    flex-direction: column; align-items: stretch;
    gap: 0.15rem; width: 100%;
  }
  .main-nav-list > li { width: 100%; }
  .nav-link {
    width: 100%; justify-content: space-between;
    padding: 0.85rem 1rem; font-size: 1rem;
    border-radius: 8px; min-height: 48px;
  }
  .nav-submenu {
    position: static; display: none;
    background: rgba(255, 255, 255, 0.02); border: 0;
    border-radius: 0; padding: 0.25rem 0 0.25rem 1rem;
    min-width: 0; max-width: none; margin-top: 0.25rem;
    box-shadow: none; border-left: 2px solid rgba(240, 192, 64, 0.3);
  }
  .has-submenu.open > .nav-submenu { display: block; }
  .nav-submenu a { padding: 0.65rem 0.8rem; min-height: 44px; }
  .header-cta { padding: 0.5rem 0.85rem; font-size: 0.85rem; min-height: 40px; }
}

@media (max-width: 400px) {
  .header-cta { display: none; }
}

@media (min-width: 901px) {
  .main-nav { display: flex !important; position: static; height: auto; padding: 0; }
  .nav-toggle { display: none !important; }
  .nav-backdrop { display: none !important; }
}

/* Table mobile scroll hint - subtle gradient + min-width on table-wrap */
@media (max-width: 768px) {
  .table-wrap {
    position: relative;
    background: linear-gradient(to right, transparent 90%, rgba(240,192,64,0.08) 100%);
  }
  .table-wrap::after {
    content: "← svep →";
    display: block; text-align: center;
    font-size: 0.7rem; color: var(--text-3, #9098a1);
    padding: 0.35rem 0; opacity: 0.7;
    font-style: italic;
  }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 0.5rem 0.6rem; }
}
