/* =====================================================================
   AT Boni (atboni.sbs) · main.css · Design System v2

   RULES (see _docs/DESIGN-SYSTEM.md):
   1. Every value lives in :root as a token. Outside :root only tokens,
      0, 100%, auto, none, fr, deg and unitless 1 are allowed.
   2. Components use SEMANTIC tokens (--color-text, --space-4 ...),
      never primitives (--navy-950, --gray-500 ...).
   3. Headings h1–h4 get their size ONLY from the base layer. Components
      may change colour and margin of a heading, never its font-size.
   4. Breakpoints: 640px (sm), 860px (md), 1024px (lg). Mobile overrides
      live in the RESPONSIVE section at the bottom, in that order.
   5. Check with: python3 _docs/lint-css.py
   ===================================================================== */


/* =====================================================================
   1. TOKENS
   ===================================================================== */
:root {
  /* ---------- 1a. Colour primitives (do not use in components) ---------- */
  --navy-950: #060E20;
  --navy-900: #0D1830;
  --navy-800: #16233F;
  --red-600: #D70119;
  --red-700: #B30015;
  --red-50: #FDECEE;
  --gray-900: #1B2336;
  --gray-800: #2B3448;
  --gray-600: #5B6478;
  --gray-500: #667085;
  --gray-300: #CDD3DD;
  --gray-200: #E3E7EE;
  --gray-100: #EFF2F7;
  --gray-50: #F5F7FA;
  --white: #FFFFFF;
  --slate-300: #A9B2C6;
  --green-600: #15803D;
  --green-500: #22C55E;
  --amber-500: #F2A20C;
  --amber-300: #F2C46B;
  --amber-200: #F5E2BC;
  --amber-50: #FFF8EB;
  --blue-600: #2563EB;

  /* ---------- 1b. Semantic colours (use these) ---------- */
  --color-brand: var(--red-600);
  --color-brand-hover: var(--red-700);
  --color-brand-soft: var(--red-50);
  --color-dark: var(--navy-950);
  --color-dark-raised: var(--navy-900);
  --color-dark-hover: var(--navy-800);

  --color-text: var(--gray-900);          /* headings, UI text */
  --color-text-body: var(--gray-800);     /* long-form paragraphs */
  --color-text-muted: var(--gray-600);    /* secondary text */
  --color-text-subtle: var(--gray-500);   /* meta, captions (AA on white + gray-50) */
  --color-text-inverse: var(--white);
  --color-text-inverse-muted: var(--slate-300);

  --color-bg: var(--white);
  --color-surface: var(--gray-50);        /* boxes inside cards */
  --color-surface-hover: var(--gray-100);
  --color-border: var(--gray-200);
  --color-border-strong: var(--gray-300);
  --color-border-inverse: rgba(255, 255, 255, .10);

  --color-success: var(--green-600);
  --color-live: var(--green-500);
  --color-live-ring: rgba(34, 197, 94, .20);
  --color-star: var(--amber-500);
  --color-verified: var(--blue-600);
  --color-warning-bg: var(--amber-50);
  --color-warning-border: var(--amber-200);
  --color-warning-accent: var(--amber-300);

  --color-header-bg: rgba(255, 255, 255, .96);
  --color-hero-glow: rgba(215, 1, 25, .16);
  --color-link-underline: rgba(215, 1, 25, .45);
  --color-link-underline-inverse: rgba(255, 255, 255, .30);
  --color-focus-ring: rgba(6, 14, 32, .08);
  --color-divider-soft: rgba(6, 14, 32, .08);

  /* ---------- 1c. Typography ---------- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --text-2xs: 11px;   /* overlines, badges, micro-legal */
  --text-xs: 12px;    /* meta, captions, table notes */
  --text-compact: 13px; /* dense UI only (sticky bar on mobile) */
  --text-sm: 14px;    /* UI text, buttons, nav, cards */
  --text-md: 16px;    /* body */
  --text-lg: 18px;    /* lead, h4 */
  --text-xl: 20px;    /* h3 */
  --text-2xl: 24px;   /* h2 mobile */
  --text-3xl: 28px;   /* h2, h1 mobile */
  --text-4xl: 40px;   /* h1 */

  --h1-size: var(--text-4xl);
  --h2-size: var(--text-3xl);
  --h3-size: var(--text-xl);
  --h4-size: var(--text-lg);

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -.02em;
  --tracking-normal: 0;
  --tracking-wide: .06em;

  /* ---------- 1d. Spacing (4px grid) ---------- */
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* ---------- 1e. Sizes (fixed element dimensions) ---------- */
  --size-dot: 8px;
  --size-chevron: 6px;
  --size-icon-xs: 16px;
  --size-icon-sm: 18px;
  --size-icon-md: 24px;
  --size-badge: 28px;
  --size-pay-icon: 18px;
  --size-pay-icon-square: 22px;
  --size-pay-icon-wide: 14px;
  --size-pay-chip-h: 32px;
  --size-pay-chip-w: 52px;
  --size-control-sm: 32px;
  --size-control-md: 40px;
  --size-control-lg: 44px;
  --size-logo-header: 34px;
  --size-logo-header-sm: 28px;
  --size-logo-footer: 30px;
  --size-avatar-sm: 24px;
  --size-avatar-md: 72px;
  --size-avatar-lg: 96px;
  --size-thumb-logo: 72px;
  --size-sticky-logo-w: 96px;
  --size-sticky-logo-h: 52px;
  --size-sticky-logo-w-sm: 56px;
  --size-sticky-logo-h-sm: 40px;
  --size-textarea-min: 140px;

  /* ---------- 1f. Layout widths ---------- */
  --width-container: 1140px;
  --width-prose: 780px;
  --width-footer-text: 360px;
  --width-form: 560px;
  --width-sticky: 760px;
  --card-col-thumb: 200px;
  --card-col-thumb-md: 170px;
  --card-col-thumb-sm: 112px;
  --card-col-cta: 210px;
  --size-spotlight-logo: 160px;
  --header-h: 68px;
  --header-h-sm: 60px;

  /* ---------- 1g. Borders, radius, shadow ---------- */
  --border-thin: 1px;
  --border-medium: 1.5px;
  --border-thick: 2px;
  --border-accent: 3px;

  --radius-sm: 6px;    /* buttons, inputs, chips */
  --radius-md: 10px;   /* boxes inside cards, tables, callouts */
  --radius-lg: 14px;   /* cards, sticky bar */
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(6, 14, 32, .06);
  --shadow-md: 0 1px 2px rgba(6, 14, 32, .06), 0 4px 16px rgba(6, 14, 32, .06);
  --shadow-lg: 0 12px 32px rgba(6, 14, 32, .12);
  --shadow-logo: drop-shadow(0 2px 4px rgba(6, 14, 32, .10));
  --gradient-thumb: linear-gradient(145deg, var(--white) 0%, var(--gray-50) 60%, var(--gray-100) 100%);

  /* ---------- 1h. Motion ---------- */
  --duration-fast: .15s;
  --duration-base: .2s;
  --duration-slow: .4s;
  --ease-standard: ease;
  --ease-spring: cubic-bezier(.2, .9, .3, 1.15);
  --distance-reveal: 8px;
  --distance-lift: -1px;
  --distance-nudge: 2px;
  --scale-hover: 1.03;
  --offset-sticky-hidden: 32px;
  --offset-badge: -12px;
  --offset-rank: -14px;
  --offset-close: -10px;
  --offset-chevron: 3px;
  --menu-bar-shift: 7px;
  --underline-offset: 3px;
  --ring-width: 3px;
  --size-check-w: 12px;
  --size-check-h: 7px;
  --emoji-size: .85em;
  --emoji-gap: .05em;
  --list-indent: 1.25em;
  --backdrop-header: saturate(180%) blur(8px);
  --gradient-hero: radial-gradient(900px 400px at 85% -10%, var(--color-hero-glow), transparent 60%);

  /* ---------- 1i. Layers ---------- */
  --z-raised: 1;
  --z-header: 50;
  --z-sticky: 60;
}


/* =====================================================================
   2. BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: var(--border-thick) solid var(--color-brand); outline-offset: var(--space-0-5); border-radius: var(--space-1); }

/* The ONLY place heading sizes are set */
h1, h2, h3, h4 { margin: 0; color: var(--color-text); font-weight: var(--weight-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
h1 { font-size: var(--h1-size); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }

h1 img.emoji, .flag img.emoji { display: inline-block; height: var(--emoji-size); width: auto; margin: 0 var(--emoji-gap); vertical-align: calc(-1 * var(--emoji-gap)); }

.container { width: 100%; max-width: var(--width-container); margin: 0 auto; padding: 0 var(--space-6); }

/* Overline: small uppercase label used across components */
.overline,
.bonus-label, .cd-title, .author-role, .sticky-label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: var(--leading-snug);
}


/* =====================================================================
   3. LAYOUT: header, hero, content, footer
   ===================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--color-header-bg);
  backdrop-filter: var(--backdrop-header);
  border-bottom: var(--border-thin) solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: var(--size-logo-header); width: auto; }

.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a {
  display: inline-flex; align-items: center; gap: var(--space-1-5);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: color var(--duration-fast), background-color var(--duration-fast);
}
.nav a:hover { color: var(--color-text); background: var(--color-surface); }
.nav a[aria-current="page"],
.nav a[aria-current="page"]:hover { color: var(--color-brand); font-weight: var(--weight-semibold); background: var(--color-brand-soft); }
.nav-icon { flex-shrink: 0; width: var(--size-icon-xs); height: var(--size-icon-xs); color: var(--color-text-subtle); transition: color var(--duration-fast); }
.nav a:hover .nav-icon { color: var(--color-text); }
.nav a[aria-current="page"] .nav-icon { color: var(--color-brand); }

.menu-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: var(--size-control-md); height: var(--size-control-md); padding: var(--space-3) var(--space-2);
  background: transparent; border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-sm);
}
.menu-toggle span { display: block; height: var(--border-thick); background: var(--color-text); border-radius: var(--border-thick); transition: transform var(--duration-base), opacity var(--duration-base); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(var(--menu-bar-shift)) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(calc(-1 * var(--menu-bar-shift))) rotate(-45deg); }

/* ---------- Hero (dark band) ---------- */
.dark-top {
  background: var(--gradient-hero), var(--color-dark);
  color: var(--color-text-inverse);
  padding-bottom: var(--space-16);
}
.dark-top:not(:has(.casino-list)) { padding-bottom: 0; }
.dark-top:not(:has(.casino-list)) .page-hero { padding-bottom: var(--space-12); }

.page-hero { padding: var(--space-16) 0 var(--space-8); }
.page-hero h1 { color: var(--color-text-inverse); max-width: var(--width-prose); }
.page-hero .lead { margin-top: var(--space-4); max-width: var(--width-prose); font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--color-text-inverse-muted); }

.read-more-btn {
  display: inline; padding: 0; margin-left: var(--space-0-5);
  background: none; border: 0;
  color: var(--color-text-inverse); font-weight: var(--weight-semibold); font-size: inherit;
  text-decoration: underline; text-decoration-color: var(--color-brand); text-underline-offset: var(--underline-offset); text-decoration-thickness: var(--border-thick);
}
.read-more-btn:hover { text-decoration-color: var(--color-text-inverse); }

.last-updated {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6);
  margin-top: var(--space-6);
  font-size: var(--text-sm); color: var(--color-text-inverse-muted);
}
.last-updated:not(.has-author) { display: block; }
.last-updated time { color: var(--color-text-inverse); font-weight: var(--weight-medium); }
.last-updated .lu-row { display: inline-flex; align-items: center; gap: var(--space-2); }
.last-updated .lu-date::before {
  content: ""; width: var(--size-dot); height: var(--size-dot); border-radius: var(--radius-full);
  background: var(--color-live); box-shadow: 0 0 0 var(--ring-width) var(--color-live-ring);
}
.last-updated .lu-author { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-text-inverse); font-weight: var(--weight-semibold); }
.last-updated .lu-author:hover { text-decoration: underline; text-underline-offset: var(--underline-offset); }
.last-updated .lu-author img { width: var(--size-avatar-sm); height: var(--size-avatar-sm); border-radius: var(--radius-full); object-fit: cover; border: var(--border-thin) solid var(--color-border-inverse); }
.last-updated .lu-check {
  display: inline-grid; place-items: center; width: var(--size-icon-xs); height: var(--size-icon-xs); border-radius: var(--radius-full);
  background: var(--color-verified); color: var(--color-text-inverse); font-size: var(--text-2xs); font-weight: var(--weight-bold);
}

/* ---------- Content (long-form) ---------- */
.content { padding: var(--space-16) 0; }
.content + .content { padding-top: 0; }
.content .container { max-width: calc(var(--width-prose) + 2 * var(--space-6)); }
.content .container > section + section { margin-top: var(--space-12); }

.content h2 { margin-bottom: var(--space-4); }
.content h3 { margin: var(--space-8) 0 var(--space-3); }
.content h2 + h3 { margin-top: var(--space-4); }
.content p, .content li { color: var(--color-text-body); line-height: var(--leading-relaxed); }
.content p + p, .content p + ul, .content p + ol, .content ul + p, .content ol + p, .content .table-wrap + p { margin-top: var(--space-4); }
.content ul, .content ol { margin: var(--space-4) 0 0; padding-left: var(--list-indent); }
.content li { margin-top: var(--space-2); }
.content li::marker { color: var(--color-brand); }
.content strong { color: var(--color-text); font-weight: var(--weight-semibold); }
.content a:not(.btn) {
  color: var(--color-text); font-weight: var(--weight-medium);
  text-decoration: underline; text-decoration-color: var(--color-link-underline);
  text-underline-offset: var(--underline-offset); text-decoration-thickness: var(--border-medium);
  transition: text-decoration-color var(--duration-fast);
}
.content a:not(.btn):hover { text-decoration-color: var(--color-brand); }
.content .actions { margin-top: var(--space-6); }
.content .note { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: var(--color-text-inverse-muted); padding: var(--space-16) 0 var(--space-8); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-12); }
.footer-grid .logo img { height: var(--size-logo-footer); }
.footer-brand p { margin-top: var(--space-4); max-width: var(--width-footer-text); line-height: var(--leading-relaxed); }
.responsible-badge {
  display: inline-block; margin-top: var(--space-4); padding: var(--space-1) var(--space-3);
  border: var(--border-thin) solid var(--color-border-inverse); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-text-inverse);
}
.footer-title { margin-bottom: var(--space-4); color: var(--color-text-inverse); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-grid li a { color: var(--color-text-inverse-muted); transition: color var(--duration-fast); }
.footer-grid li a:hover { color: var(--color-text-inverse); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6);
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: var(--border-thin) solid var(--color-border-inverse);
  font-size: var(--text-xs);
}
.footer-bottom a { color: var(--color-text-inverse); text-decoration: underline; text-underline-offset: var(--space-0-5); text-decoration-color: var(--color-link-underline-inverse); }
.footer-bottom a:hover { text-decoration-color: var(--color-text-inverse); }


/* =====================================================================
   4. COMPONENTS
   ===================================================================== */

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--size-control-lg); padding: 0 var(--space-6);
  font-size: var(--text-sm); font-weight: var(--weight-semibold); line-height: var(--leading-none);
  border: var(--border-thin) solid transparent; border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
  white-space: nowrap;
}
.btn-block { width: 100%; }
.btn-primary, .btn-secondary { background: var(--color-brand); color: var(--color-text-inverse); }
.btn-primary:hover, .btn-secondary:hover { background: var(--color-brand-hover); }
.btn-primary::after, .btn-secondary::after { content: "→"; font-weight: var(--weight-medium); transition: transform var(--duration-fast); }
.btn-primary:hover::after, .btn-secondary:hover::after { transform: translateX(var(--distance-nudge)); }
.btn-outline { min-height: var(--size-control-md); background: var(--color-bg); color: var(--color-text); border-color: var(--color-border-strong); }
.btn-outline:hover { background: var(--color-surface); border-color: var(--color-text); }

/* Chevron for toggles (shared) */
.chevron::after,
.details-toggle::after, .author-more > summary::after, .faq-item > summary::after {
  content: ""; width: var(--size-chevron); height: var(--size-chevron); margin-top: calc(-1 * var(--offset-chevron));
  border-right: var(--border-medium) solid currentColor; border-bottom: var(--border-medium) solid currentColor;
  transform: rotate(45deg); transition: transform var(--duration-base), margin var(--duration-base);
}
.details-toggle[aria-expanded="true"] { background: var(--color-surface); }
.details-toggle[aria-expanded="true"]::after,
.author-more[open] > summary::after,
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: var(--offset-chevron); }

/* ---------- Badge / pill ---------- */
.top-pick-badge, .new-flag {
  position: absolute; z-index: var(--z-raised);
  padding: var(--space-0-5) var(--space-2);
  background: var(--color-brand); color: var(--color-text-inverse);
  font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); line-height: var(--leading-normal);
  border-radius: var(--radius-full);
}
.top-pick-badge { top: var(--offset-badge); left: var(--space-4); padding: var(--space-0-5) var(--space-3); text-transform: none; letter-spacing: var(--tracking-normal); font-size: var(--text-xs); }
.new-flag { top: var(--space-2); left: var(--space-2); text-transform: uppercase; }

/* ---------- Casino list + card ---------- */
.list-heading { color: var(--color-text-inverse); margin-bottom: var(--space-4); }
.list-note { margin-bottom: var(--space-4); font-size: var(--text-sm); color: var(--color-text-inverse-muted); }
.list-note a { color: var(--color-text-inverse); text-decoration: underline; text-decoration-color: var(--color-brand); text-underline-offset: var(--underline-offset); }
.casino-list { display: grid; gap: var(--space-3); }

.casino-card {
  position: relative;
  display: grid;
  grid-template-columns: var(--card-col-thumb) minmax(0, 1fr) minmax(0, 1.1fr) var(--card-col-cta);
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-6) var(--space-4) var(--space-4);
  background: var(--color-bg); color: var(--color-text);
  border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration-base), transform var(--duration-base);
}
.casino-card:hover { box-shadow: var(--shadow-lg); transform: translateY(var(--distance-lift)); }
.casino-card.top-pick { border: var(--border-thick) solid var(--color-brand); margin-top: var(--space-3); }

.rank-badge {
  position: absolute; top: 50%; left: var(--offset-rank); transform: translateY(-50%);
  display: grid; place-items: center; width: var(--size-badge); height: var(--size-badge);
  background: var(--color-dark); color: var(--color-text-inverse);
  font-size: var(--text-sm); font-weight: var(--weight-bold);
  border: var(--border-thick) solid var(--color-bg); border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.top-pick .rank-badge { background: var(--color-brand); }

.casino-thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--gradient-thumb);
  border: var(--border-thin) solid var(--color-border);
}
.casino-thumb img {
  position: absolute; inset: var(--space-3) var(--space-4);
  width: calc(100% - 2 * var(--space-4)); height: calc(100% - 2 * var(--space-3));
  max-width: none; object-fit: contain;
  filter: var(--shadow-logo);
  transition: transform var(--duration-base);
}
.casino-card:hover .casino-thumb img { transform: scale(var(--scale-hover)); }

.casino-info h3 { margin: 0; }
.rating { display: block; margin-top: var(--space-0-5); font-size: var(--text-sm); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.rating::first-letter { color: var(--color-star); }

.casino-bonus {
  display: flex; flex-direction: column; gap: var(--space-0-5);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-md);
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}
a.casino-bonus:hover { border-color: var(--color-border-strong); background: var(--color-surface-hover); }
.bonus-label { color: var(--color-text-subtle); }
.bonus-amount { font-size: var(--text-md); font-weight: var(--weight-bold); line-height: var(--leading-snug); color: var(--color-text); }
.bonus-terms { display: flex; flex-wrap: wrap; align-items: center; margin-top: var(--space-0-5); font-size: var(--text-xs); color: var(--color-text-subtle); }
.bonus-terms .sep { display: inline-block; width: var(--border-thin); height: var(--space-3); margin: 0 var(--space-2); background: var(--color-border-strong); font-size: 0; }

.casino-cta { display: flex; flex-direction: column; gap: var(--space-2); }
.cta-terms { text-align: center; font-size: var(--text-2xs); line-height: var(--leading-snug); color: var(--color-text-subtle); }

.casino-details {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6);
  padding-top: var(--space-4);
  border-top: var(--border-thin) solid var(--color-border);
}
.casino-details[hidden] { display: none; }
.cd-title { margin-bottom: var(--space-2); color: var(--color-text-subtle); }

.casino-features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-0-5); }
.casino-features li { position: relative; padding-left: var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); }
.casino-features li::before {
  content: ""; position: absolute; left: var(--space-0-5); top: var(--space-1-5);
  width: var(--size-check-w); height: var(--size-check-h);
  border-left: var(--border-thick) solid var(--color-success); border-bottom: var(--border-thick) solid var(--color-success);
  transform: rotate(-45deg);
}

.pay-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1-5); }
.pay-methods li {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--size-pay-chip-h); min-width: var(--size-pay-chip-w); padding: 0 var(--space-2);
  background: var(--color-bg); border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-sm);
}
.pay-methods img { height: var(--size-pay-icon); width: auto; max-width: calc(var(--size-pay-chip-w) * 1.5); object-fit: contain; }
.pay-methods img[src*="interac"], .pay-methods img[src*="mifinity"], .pay-methods img[src*="mastercard"] { height: var(--size-pay-icon-square); }
.pay-methods img[src*="a1-magenta"] { max-width: none; height: var(--size-pay-icon-wide); }

/* ---------- Casino spotlight (review section inside content) ---------- */
.spotlight {
  margin-top: var(--space-8); padding: var(--space-6);
  background: var(--color-bg);
  border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.spotlight.is-winner { border: var(--border-thick) solid var(--color-brand); }
.spotlight-head { display: grid; grid-template-columns: var(--size-spotlight-logo) minmax(0, 1fr); align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.spotlight-rank { margin-bottom: var(--space-1); color: var(--color-brand); }
.content .spotlight h3 { margin: 0; }
.spotlight-shot { margin: var(--space-6) 0 0; }
.spotlight-shot img { width: 100%; border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.spotlight-shot figcaption { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-subtle); }
.spotlight-cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  margin-top: var(--space-6); padding: var(--space-4);
  background: var(--color-surface); border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-md);
}
.spotlight-bonus { display: flex; flex-direction: column; gap: var(--space-0-5); }
.spotlight-bonus .bonus-label { color: var(--color-text-subtle); }
.spotlight-cta .btn { flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--space-4); border-top: var(--border-thin) solid var(--color-border); }
.faq-item { border-bottom: var(--border-thin) solid var(--color-border); }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0;
  list-style: none; cursor: pointer;
  font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--color-text);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { flex-shrink: 0; color: var(--color-brand); }
.faq-item > summary:hover { color: var(--color-brand); }
.content .faq-item p { padding-bottom: var(--space-4); }

/* ---------- Table ---------- */
.table-wrap { margin-top: var(--space-6); overflow-x: auto; border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
thead th {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface); color: var(--color-text);
  font-weight: var(--weight-semibold); text-align: left; white-space: nowrap;
  border-bottom: var(--border-thin) solid var(--color-border);
}
td { padding: var(--space-3) var(--space-4); border-bottom: var(--border-thin) solid var(--color-border); vertical-align: top; color: var(--color-text-body); font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: var(--weight-semibold); color: var(--color-text); }

/* ---------- Callout ---------- */
.callout {
  padding: var(--space-6);
  background: var(--color-surface);
  border: var(--border-thin) solid var(--color-border); border-left: var(--border-accent) solid var(--color-dark);
  border-radius: var(--radius-md);
}
.callout.is-warning { background: var(--color-warning-bg); border-color: var(--color-warning-border); border-left-color: var(--color-warning-accent); }
.callout h3 { margin: 0 0 var(--space-2); }
.callout p { font-size: var(--text-sm); line-height: var(--leading-normal); }
.callout p.legal-note { margin-top: var(--space-3); padding-top: var(--space-3); border-top: var(--border-thin) solid var(--color-divider-soft); color: var(--color-text-muted); font-size: var(--text-xs); }

/* ---------- Author box ---------- */
.author-box {
  display: grid; grid-template-columns: var(--size-avatar-lg) 1fr; gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-bg);
  border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.author-box + * { margin-top: var(--space-8); }
.author-photo { width: var(--size-avatar-lg); height: var(--size-avatar-lg); border-radius: var(--radius-full); object-fit: cover; }
.author-role { display: inline-block; margin-bottom: var(--space-1); color: var(--color-brand); }
.author-body h2 { margin: 0 0 var(--space-3); }
.author-body h2 a { text-decoration: none !important; }
.author-body p { font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.author-teaser { color: var(--color-text-muted); }
.author-body .author-facts { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.author-facts li { margin: 0; padding: var(--space-2) var(--space-3); background: var(--color-surface); border-radius: var(--radius-sm); font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--color-text-muted); }
.author-facts strong { display: block; font-size: var(--text-sm); color: var(--color-text); }
.author-more { margin-top: var(--space-4); }
.author-more > summary { display: inline-flex; align-items: center; gap: var(--space-2); list-style: none; cursor: pointer; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text); }
.author-more > summary::-webkit-details-marker { display: none; }
.author-more > summary::after { color: var(--color-brand); }
.author-more .more-open, .author-more[open] .more-closed { display: none; }
.author-more[open] .more-open { display: inline; }
.author-more p { margin-top: var(--space-3); }

/* ---------- Form ---------- */
.contact-form { max-width: var(--width-form); margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.contact-form label { display: grid; gap: var(--space-1-5); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: var(--space-3) var(--space-4);
  font: inherit; font-weight: var(--weight-regular); font-size: var(--text-md); color: var(--color-text);
  background: var(--color-bg); border: var(--border-thin) solid var(--color-border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.contact-form textarea { resize: vertical; min-height: var(--size-textarea-min); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--color-text-subtle); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-text); box-shadow: 0 0 0 var(--ring-width) var(--color-focus-ring); }
.contact-form .btn { justify-self: start; }

/* ---------- Sticky offer ---------- */
.sticky-offer {
  position: fixed; left: 50%; bottom: var(--space-4); z-index: var(--z-sticky);
  width: min(var(--width-sticky), calc(100% - 2 * var(--space-3)));
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-2);
  background: var(--color-bg);
  border: var(--border-medium) solid var(--color-brand); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, calc(100% + var(--offset-sticky-hidden)));
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-spring), opacity var(--duration-base) var(--ease-standard);
}
body.show-sticky-offer .sticky-offer { transform: translate(-50%, 0); opacity: 1; }
.sticky-stars { display: none; }
.sticky-logo {
  flex-shrink: 0; display: grid; place-items: center;
  width: var(--size-sticky-logo-w); height: var(--size-sticky-logo-h); padding: var(--space-1-5);
  background: var(--color-surface); border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-sm);
}
.sticky-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.sticky-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-0-5); line-height: var(--leading-snug); }
.sticky-meta { display: flex; align-items: center; gap: var(--space-1-5); min-width: 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.sticky-label { color: var(--color-brand); white-space: nowrap; }
.sticky-name { font-weight: var(--weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-label + .sticky-name::before { content: "·"; margin-right: var(--space-1-5); color: var(--color-text-subtle); }
.sticky-bonus { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--color-text); }
.sticky-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: var(--size-control-lg); padding: 0 var(--space-6);
  background: var(--color-brand); color: var(--color-text-inverse); font-size: var(--text-sm); font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm); transition: background-color var(--duration-fast);
}
.sticky-btn:hover { background: var(--color-brand-hover); }
.sticky-close {
  position: absolute; top: var(--offset-close); right: var(--offset-close);
  width: var(--size-badge); height: var(--size-badge); padding: 0;
  display: grid; place-items: center;
  background: var(--color-bg); border: var(--border-thin) solid var(--color-border); border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: var(--text-md); line-height: var(--leading-none); color: var(--color-text-muted);
}
.sticky-close:hover { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-text-inverse); }


/* =====================================================================
   5. UTILITIES & MOTION
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(var(--distance-reveal)); transition: opacity var(--duration-slow) var(--ease-standard), transform var(--duration-slow) var(--ease-standard); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.flag-svg { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* =====================================================================
   6. RESPONSIVE  (lg 1024 → md 860 → sm 640)
   ===================================================================== */
@media (max-width: 1024px) {
  .casino-card { grid-template-columns: var(--card-col-thumb-md) minmax(0, 1fr) var(--card-col-cta); }
  .casino-thumb { grid-row: 1 / 3; align-self: center; }
  .casino-bonus { grid-column: 2 / 4; grid-row: 2; }
  .casino-card .casino-cta { grid-column: 3; grid-row: 1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-2) var(--space-6) var(--space-4);
    background: var(--color-bg); border-bottom: var(--border-thin) solid var(--color-border); box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { display: flex; gap: var(--space-3); padding: var(--space-3) 0; font-size: var(--text-md); border-bottom: var(--border-thin) solid var(--color-border); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover, .nav a[aria-current="page"], .nav a[aria-current="page"]:hover { background: none; }
  .nav-icon { width: var(--size-icon-sm); height: var(--size-icon-sm); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: 1 / -1; }
  .author-body .author-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root {
    --header-h: var(--header-h-sm);
    --h1-size: var(--text-3xl);
    --h2-size: var(--text-2xl);
    --h3-size: var(--text-lg);
    --h4-size: var(--text-md);
  }
  .container { padding: 0 var(--space-4); }
  .logo img { height: var(--size-logo-header-sm); }

  .page-hero { padding: var(--space-8) 0 var(--space-6); }
  .page-hero .lead { font-size: var(--text-md); }
  .dark-top { padding-bottom: var(--space-8); }

  .casino-card { grid-template-columns: var(--card-col-thumb-sm) minmax(0, 1fr); gap: var(--space-3) var(--space-4); padding: var(--space-4); }
  .casino-thumb { grid-row: auto; aspect-ratio: 4 / 3; align-self: start; }
  .casino-thumb img { inset: var(--space-2); width: calc(100% - 2 * var(--space-2)); height: calc(100% - 2 * var(--space-2)); }
  .casino-bonus, .casino-card .casino-cta { grid-column: 1 / -1; grid-row: auto; }
  .casino-details { grid-template-columns: 1fr; gap: var(--space-4); }
  .rank-badge { top: var(--space-2); left: auto; right: var(--space-2); transform: none; }
  .casino-card.top-pick { margin-top: var(--space-4); }

  .content { padding: var(--space-12) 0; }
  .spotlight { padding: var(--space-4); }
  .spotlight-head { grid-template-columns: var(--card-col-thumb-sm) minmax(0, 1fr); gap: var(--space-3); }
  .spotlight-cta { flex-direction: column; align-items: stretch; }
  .spotlight-cta .btn { width: 100%; }

  .author-box { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-4); }
  .author-photo { width: var(--size-avatar-md); height: var(--size-avatar-md); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }

  .sticky-offer { bottom: var(--space-3); gap: var(--space-3); }
  .sticky-logo { width: var(--size-sticky-logo-w-sm); height: var(--size-sticky-logo-h-sm); padding: var(--space-1); }
  .sticky-label { display: none; }
  .sticky-label + .sticky-name::before { content: none; }
  .sticky-name { font-size: var(--text-2xs); }
  .sticky-bonus { font-size: var(--text-compact); }
  .sticky-btn { min-height: var(--size-control-md); padding: 0 var(--space-3); font-size: var(--text-compact); }
}
