/* ============================================
   CasinoTopNL — Minimal, Fast, Mobile-First
   ============================================ */
 
/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
 
/* --- Variables --- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --text: #15171c;
  --text-soft: #5a6072;
  --border: #e6e8ee;
  --accent: #ff5722;        /* High-CTR CTA */
  --accent-hover: #e54a18;
  --accent-soft: #fff3ee;
  --gold: #f5b301;
  --green: #00a651;
  --shadow-hover: 0 8px 24px rgba(20, 23, 32, .10);
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1180px;
}
 
/* --- Base --- */
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 90px; /* room for sticky banner */
}
 
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
 
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
 
/* --- Header --- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.logo strong { color: var(--accent); }
.header__cta {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
}
.header__cta:hover { background: var(--accent); color: #fff; }
 
/* --- Hero --- */
.hero {
  padding: 40px 0 28px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero__lead {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 20px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-soft);
}
 
/* --- Ranking grid --- */
.ranking { padding: 28px 0 40px; }
.ranking__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
 
.casino-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.casino-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #d4d8e0;
}
.casino-card__rank {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.casino-card:nth-child(1) .casino-card__rank { background: var(--gold); color: #2b2200; }
.casino-card:nth-child(2) .casino-card__rank { background: #c0c4ce; color: #1b1d24; }
.casino-card:nth-child(3) .casino-card__rank { background: #cd7f32; }
 
.casino-card__logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px;
}
.casino-card__logo img { max-height: 60px; width: auto; }
 
.casino-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}
.stars { color: var(--gold); letter-spacing: 1px; }
.rating-num { font-weight: 700; }
 
.casino-card__bonus {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text);
}
.casino-card__bonus strong {
  display: block;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}
.casino-card__bonus span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  margin-top: 2px;
}
 
.casino-card__note {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 10px;
}
 
/* --- Button (CTA) --- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-size: 15px;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  width: 100%;
}
.btn--cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.05);
}
.btn--cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 87, 34, .25);
}
 
/* --- Games slider --- */
.games { padding: 16px 0 40px; background: var(--bg-soft); }
.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.slider__viewport {
  overflow: hidden;
  flex: 1;
}
.slider__track {
  display: flex;
  gap: 14px;
  transition: transform .3s ease;
  will-change: transform;
}
.game-card {
  flex: 0 0 auto;
  width: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.game-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.game-card span {
  display: block;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
}
 
.slider__btn {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.slider__btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
 
/* --- SEO text --- */
.seo-text {
  padding: 40px 0;
}
.seo-text > .container > div,
.seo-text > .container {
  max-width: 880px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.75;
}
.seo-text h2, .seo-text h3 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}
.seo-text h2 { font-size: 24px; margin: 32px 0 12px; }
.seo-text h3 { font-size: 19px; margin: 24px 0 10px; }
.seo-text p { margin-bottom: 14px; }
.seo-text a { color: var(--accent); text-decoration: underline; }
 
/* Lists inside article — undo the global reset locally */
.seo-text ul,
.seo-text ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.seo-text ul { list-style: disc; }
.seo-text ol { list-style: decimal; }
.seo-text li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.seo-text li::marker { color: var(--accent); }
.seo-text li > p { margin: 0; }              /* engine wraps li content in <p> */
 
/* Comparison tables */
.seo-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 15px;
}
.seo-text th,
.seo-text td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.seo-text td > p { margin: 0; }              /* engine wraps cell content in <p> */
/* First row acts as header (engine outputs <tr><td>, not <th>) */
.seo-text thead td,
.seo-text thead th,
.seo-text tr:first-child td {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
}
.seo-text tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, .025);
}
/* keep header tint on the first row even with the zebra rule above */
.seo-text tbody tr:first-child td { background: var(--bg-soft); }
 
/* Stack tables into cards on phones */
@media (max-width: 560px) {
  .seo-text table,
  .seo-text tbody,
  .seo-text tr,
  .seo-text td { display: block; width: 100%; }
  .seo-text tr {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .seo-text td { border: 0; border-bottom: 1px solid var(--border); }
  .seo-text tr td:last-child { border-bottom: 0; }
}
 
/* --- Footer --- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 24px 0 20px;
}
.footer__disclaimer {
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
  max-width: 880px;
  margin: 0 auto 10px;
  line-height: 1.6;
}
.footer__disclaimer a { color: var(--accent); text-decoration: underline; }
.footer__copy {
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
}
 
/* --- Sticky bottom banner --- */
.sticky-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #15171c;
  color: #fff;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  transition: transform .2s ease;
}
.sticky-banner.is-hidden { transform: translateY(110%); }
.sticky-banner__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}
.sticky-banner__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}
.sticky-banner__text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.sticky-banner__text span {
  color: #b9bdc7;
  font-size: 12px;
}
.btn--banner {
  width: auto;
  padding: 11px 18px;
  white-space: nowrap;
  font-size: 14px;
}
.sticky-banner__close {
  color: #b9bdc7;
  font-size: 26px;
  line-height: 1;
  padding: 0 4px;
  transition: color .15s ease;
}
.sticky-banner__close:hover { color: #fff; }
 
/* --- Responsive --- */
@media (max-width: 900px) {
  .ranking__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { padding-bottom: 110px; }
  .header__inner { height: 56px; }
  .header__cta { font-size: 13px; padding: 6px 10px; }
  .logo__text { font-size: 16px; }
  .hero { padding: 28px 0 20px; }
  .ranking { padding: 20px 0 30px; }
  .ranking__grid { grid-template-columns: 1fr; gap: 14px; }
  .section-title { font-size: 20px; }
  .game-card { width: 140px; }
  .game-card img { height: 140px; }
  .seo-text { padding: 28px 0; }
  .seo-text > .container > div,
  .seo-text > .container { font-size: 16px; }
  .seo-text h2 { font-size: 21px; }
  .seo-text h3 { font-size: 18px; }
  .sticky-banner__inner { padding: 8px 12px; gap: 10px; }
  .sticky-banner__text strong { font-size: 14px; }
  .btn--banner { padding: 10px 14px; font-size: 13px; }
}