/* ═══════════════════════════════════════════════════════════
   EN LIGNE FRANCE — style.css
   Affiliate ranking page for legal French operators
   enlignefrance.com — 2026
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Brand palette */
  --navy-900:  #060e1f;
  --navy-800:  #0a1628;
  --navy-700:  #0f2040;
  --navy-600:  #163055;
  --navy-500:  #1e4080;
  --navy-400:  #2a5ba8;
  --navy-300:  #4478cc;

  --orange-600: #d45a00;
  --orange-500: #ff6b00;
  --orange-400: #ff8c38;
  --orange-300: #ffad70;
  --orange-100: #fff3e8;

  --green-700:  #15803d;
  --green-500:  #22c55e;
  --green-100:  #dcfce7;

  --gold-500:   #f5a623;
  --gold-300:   #fcd34d;

  --gray-900:   #111827;
  --gray-800:   #1f2937;
  --gray-700:   #374151;
  --gray-600:   #4b5563;
  --gray-500:   #6b7280;
  --gray-400:   #9ca3af;
  --gray-300:   #d1d5db;
  --gray-200:   #e5e7eb;
  --gray-100:   #f3f4f6;
  --gray-50:    #f9fafb;
  --white:      #ffffff;

  /* Semantic tokens */
  --color-primary:      var(--navy-800);
  --color-primary-mid:  var(--navy-600);
  --color-primary-lt:   var(--navy-400);
  --color-accent:       var(--orange-500);
  --color-accent-dark:  var(--orange-600);
  --color-accent-lt:    var(--orange-300);
  --color-bg:           var(--gray-50);
  --color-surface:      var(--white);
  --color-border:       var(--gray-200);
  --color-text:         var(--gray-800);
  --color-text-mid:     var(--gray-600);
  --color-text-lt:      var(--gray-500);
  --color-text-muted:   var(--gray-400);

  /* Typography */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radius */
  --r-sm:   0.375rem;
  --r-md:   0.625rem;
  --r-lg:   1rem;
  --r-xl:   1.25rem;
  --r-2xl:  1.75rem;
  --r-3xl:  2.5rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(6,14,31,.05);
  --shadow-sm: 0 2px 6px rgba(6,14,31,.07);
  --shadow-md: 0 4px 16px rgba(6,14,31,.10);
  --shadow-lg: 0 8px 28px rgba(6,14,31,.14);
  --shadow-xl: 0 16px 48px rgba(6,14,31,.18);
  --shadow-orange: 0 6px 20px rgba(255,107,0,.35);
  --shadow-orange-lg: 0 12px 36px rgba(255,107,0,.45);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
  --t-spring: 300ms cubic-bezier(.34,1.56,.64,1);

  /* Layout */
  --container-max: 1180px;
  --header-h:       68px;
}

/* ─── 2. RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; color: var(--color-text); }

/* ─── 3. UTILITIES ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section { padding-block: var(--sp-20); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--sp-12);
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--orange-100);
  border: 1px solid rgba(255,107,0,.2);
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  color: var(--color-primary);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.025rem;
  color: var(--color-text-mid);
  line-height: 1.8;
}

/* ─── 4. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--r-md);
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-cta {
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange-lg);
  background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 100%);
}

.btn-ghost-white {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.825rem; }

/* ─── 5. LEGAL TOP BAR ──────────────────────────────────────── */
.legal-topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.85);
  padding: 0.55rem 0;
  position: relative;
  z-index: 1100;
  transition: max-height var(--t-slow), padding var(--t-slow), opacity var(--t-slow);
}

.legal-topbar.hidden {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.legal-topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.badge-18 {
  flex-shrink: 0;
  background: var(--color-accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
  letter-spacing: 0.04em;
}

.legal-topbar p {
  font-size: 0.8rem;
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}

.legal-topbar a {
  color: var(--orange-300);
  text-decoration: underline;
}

.topbar-close {
  flex-shrink: 0;
  color: rgba(255,255,255,.4);
  font-size: 0.9rem;
  padding: 0.2rem;
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
  line-height: 1;
}
.topbar-close:hover { color: var(--white); }

/* ─── 6. HEADER ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--t-base);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.logo-icon { flex-shrink: 0; }
.logo-text  { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; }
.logo-accent { color: var(--orange-500); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--navy-800); background: var(--gray-100); }

.nav-cta {
  background: var(--orange-500) !important;
  color: var(--white) !important;
  box-shadow: var(--shadow-orange);
  margin-left: 0.4rem;
}
.nav-cta:hover { background: var(--orange-600) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.hamburger:hover { background: var(--gray-100); }
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── 7. HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-500) 100%);
  overflow: hidden;
  padding-block: var(--sp-24) var(--sp-20);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

/* Animated background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: absolute;
  border-radius: var(--r-full);
  filter: blur(80px);
  opacity: 0.18;
}
.orb-1 { width: 500px; height: 500px; top: -150px; right: -100px; background: var(--orange-500); animation: orbFloat 14s ease-in-out infinite; }
.orb-2 { width: 350px; height: 350px; bottom: -100px; left: -80px; background: var(--navy-300); animation: orbFloat 18s ease-in-out infinite reverse; }
.orb-3 { width: 220px; height: 220px; top: 40%; left: 40%; background: var(--gold-500); opacity: 0.1; animation: orbFloat 10s ease-in-out infinite 4s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-25px) scale(1.06); }
  66%      { transform: translate(-20px,18px) scale(0.96); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}
.trust-badge svg { color: var(--orange-400); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-6);
}

.title-highlight {
  background: linear-gradient(90deg, var(--orange-400) 0%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: var(--sp-10);
}
.hero-subtitle strong { color: rgba(255,255,255,.95); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-6);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hstat { display: flex; flex-direction: column; }
.hstat strong { font-family: var(--font-display); font-size: 1.85rem; font-weight: 900; color: var(--orange-300); line-height: 1; }
.hstat span   { font-size: 0.78rem; color: rgba(255,255,255,.55); margin-top: 0.3rem; }
.hstat-sep    { width: 1px; height: 42px; background: rgba(255,255,255,.15); }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,.4); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px; position: relative;
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown { 0%,100%{top:6px;opacity:1} 50%{top:18px;opacity:.25} }

/* ─── 8. TRUST BAR ───────────────────────────────────────────── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding-block: var(--sp-4);
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.trust-icon { font-size: 1.1rem; }
.trust-sep  { width: 1px; height: 24px; background: var(--gray-200); }

/* ─── 9. FILTER BAR ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--sp-8);
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--orange-400); color: var(--orange-500); }
.filter-btn.active {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

/* ─── 10. RANKING SECTION ───────────────────────────────────── */
.ranking-section { background: var(--color-bg); }

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* ════════════════════════════════════════════════════
   RANK CARD — 5-column horizontal row
   [badge 58px] [logo 165px] [info 1fr] [stars 170px] [cta 220px]
   ════════════════════════════════════════════════════ */
.rank-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  display: grid;
  grid-template-columns: 58px 165px 1fr 170px 220px;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(6,14,31,.055), 0 1px 2px rgba(6,14,31,.04);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

/* Left accent bar */
.rank-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gray-200);
  border-radius: 12px 0 0 12px;
  transition: background 250ms ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(6,14,31,.11), 0 4px 10px rgba(6,14,31,.07);
  border-color: rgba(255,107,0,.3);
}
.rank-card:hover::before { background: var(--orange-500); }

/* ── Gold #1 treatment ── */
.rank-card--gold {
  border-color: rgba(245,166,35,.35);
  background: linear-gradient(135deg, #fffdf7 0%, var(--white) 50%);
  box-shadow: 0 4px 16px rgba(245,166,35,.12), 0 2px 6px rgba(6,14,31,.06);
}
.rank-card--gold::before { background: var(--gold-500); }
.rank-card--gold:hover   { border-color: rgba(245,166,35,.6); }

/* ── COL 1 · Rank Badge ── */
.rank-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gray-300);
}
.rank-num   { font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; color: var(--white); line-height: 1; }
.rank-label { font-size: 0.42rem; font-weight: 800; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1; margin-top: 2px; }

.rank-badge--1 {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold-500) 0%, #c87a00 100%);
  box-shadow: 0 4px 14px rgba(245,166,35,.45);
}
.rank-badge--1 .rank-num { font-size: 1.4rem; }
.rank-badge--2 { background: linear-gradient(135deg, #b0bec5, #78909c); }
.rank-badge--3 { background: linear-gradient(135deg, #cd7f32, #a0522d); }
.rank-badge--4 { background: linear-gradient(135deg, var(--navy-400), var(--navy-600)); }
.rank-badge--5 { background: linear-gradient(135deg, var(--navy-400), var(--navy-600)); }

/* ── COL 2 · Logo ── */
.rank-logo-wrap {
  width: 165px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  overflow: hidden;
  transition: border-color 250ms ease, background 250ms ease;
}
.rank-card:hover .rank-logo-wrap {
  background: var(--white);
  border-color: var(--gray-300);
}
.rank-logo {
  max-width: 120px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── COL 3 · Brand Info ── */
.rank-info { min-width: 0; }

.rank-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}
.cat-tag {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cat-sports { background: rgba(30,64,128,.09);  color: var(--navy-500); }
.cat-poker  { background: rgba(255,107,0,.09);  color: var(--orange-600); }
.cat-horse  { background: rgba(139,69,19,.09);  color: #7c4a00; }
.cat-fdj    { background: rgba(5,148,74,.09);   color: var(--green-700); }

.rank-features {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.rank-features li {
  font-size: 0.815rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.4;
}
.feat-icon {
  color: var(--green-500);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ── COL 4 · Rating (stars) ── */
.rank-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.rank-stars {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.star        { font-size: 1.2rem; line-height: 1; color: var(--gray-300); }
.star.filled { color: var(--gold-500); }
.star.half   {
  position: relative;
  color: var(--gray-300);
}
.star.half::before {
  content: '★';
  position: absolute;
  left: 0; top: 0;
  width: 50%;
  overflow: hidden;
  color: var(--gold-500);
}

.rating-score {
  font-family: var(--font-display);
  line-height: 1;
}
.rating-score strong {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy-800);
}
.rating-score span {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 600;
}

.rating-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-100);
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-full);
  letter-spacing: 0.03em;
}

/* ── COL 5 · CTA Column ── */
.rank-cta-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Offer pill */
.offer-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.6rem 0.75rem;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  transition: border-color 250ms ease;
}
.rank-card:hover .offer-pill { border-color: rgba(255,107,0,.25); }

.offer-pill--gold {
  background: linear-gradient(135deg, #fff8ec, #fff3dc);
  border-color: rgba(245,166,35,.3);
}
.rank-card:hover .offer-pill--gold { border-color: rgba(245,166,35,.55); }

.offer-pill-amount {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--orange-500);
  line-height: 1;
}
.offer-pill-desc {
  font-size: 0.7rem;
  color: var(--gray-600);
  line-height: 1.35;
  margin-top: 0.2rem;
}

/* CTA button */
.rank-cta {
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.01em;
}

.rank-disclaimer {
  font-size: 0.62rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.4;
}

/* ── Ranking update note ── */
.ranking-update-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: var(--sp-8);
  justify-content: center;
}
.ranking-update-note svg { flex-shrink: 0; }

/* ── Hidden filter state ── */
.rank-card[data-hidden="true"] { display: none; }

/* ─── 11. HOW WE RANK ────────────────────────────────────────── */
.how-section { background: var(--white); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.how-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.how-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-300);
}

.how-icon-wrap {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--navy-500), var(--navy-700));
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.how-card h3 { font-size: 1rem; color: var(--navy-800); margin-bottom: var(--sp-3); }
.how-card p  { font-size: 0.85rem; color: var(--gray-600); line-height: 1.75; }

/* ─── 12. INFO SECTION (Sports) ──────────────────────────────── */
.info-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.info-text .section-title { text-align: left; }
.info-text p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.info-text strong { color: var(--navy-800); }

.info-checkpoints {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--sp-6);
}
.checkpoint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}
.cp-icon {
  width: 24px; height: 24px;
  background: var(--green-500);
  color: var(--white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Info visual */
.info-visual { position: relative; height: 340px; }
.info-card-stack { position: relative; width: 100%; height: 100%; }

.icard {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base), box-shadow var(--t-base);
  cursor: default;
}
.icard:hover { transform: scale(1.04); box-shadow: var(--shadow-lg); }
.icard-icon { font-size: 1.75rem; flex-shrink: 0; }
.icard > div strong { display: block; font-size: 0.95rem; color: var(--navy-800); font-weight: 700; }
.icard > div span   { font-size: 0.78rem; color: var(--gray-500); }

.icard-1 { top: 0;    left: 0;    z-index: 4; }
.icard-2 { top: 85px; left: 50px; z-index: 3; }
.icard-3 { top: 170px;left: 20px; z-index: 2; }
.icard-4 { top: 255px;left: 70px; z-index: 1; }

/* ─── 13. POKER SECTION ──────────────────────────────────────── */
.poker-section { background: var(--white); }

.poker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.poker-card {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  border-radius: var(--r-2xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
  border: 1px solid rgba(255,255,255,.05);
}
.poker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(6,14,31,.4);
}

.poker-card-icon { font-size: 2.5rem; margin-bottom: var(--sp-4); }
.poker-card h3 { font-size: 1rem; color: var(--white); margin-bottom: var(--sp-3); }
.poker-card p  { font-size: 0.84rem; color: rgba(255,255,255,.65); line-height: 1.75; }

/* ─── 14. FAQ ACCORDION ──────────────────────────────────────── */
.faq-section { background: var(--gray-50); }
.faq-wrap { max-width: 820px; }

.accordion { display: flex; flex-direction: column; gap: 0.6rem; }

.accordion-item {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.accordion-item.open {
  border-color: var(--orange-400);
  box-shadow: var(--shadow-md);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  text-align: left;
  background: transparent;
  transition: color var(--t-fast);
}
.accordion-trigger:hover { color: var(--navy-800); }
.accordion-item.open .accordion-trigger { color: var(--navy-800); }

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray-400);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--t-base), color var(--t-fast);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); color: var(--orange-500); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.accordion-panel:not([hidden]) { padding-bottom: var(--sp-5); }

.accordion-panel p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
  padding: var(--sp-4) var(--sp-6) 0;
  border-top: 1px solid var(--gray-100);
}
.accordion-panel a { color: var(--orange-500); text-decoration: underline; }
.accordion-panel strong { color: var(--navy-800); }

/* ─── 15. RESPONSIBLE GAMBLING ───────────────────────────────── */
.rg-section {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  padding-block: var(--sp-16);
}

.rg-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-8);
}

.rg-icon {
  flex-shrink: 0;
  width: 80px; height: 80px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-300);
}

.rg-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.rg-content p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.8;
  margin-bottom: var(--sp-5);
}
.rg-content strong { color: rgba(255,255,255,.95); }

.rg-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.rg-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  transition: background var(--t-fast), transform var(--t-fast);
}
.rg-link:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.rg-link strong { font-size: 0.88rem; color: var(--white); }
.rg-link span   { font-size: 0.78rem; color: rgba(255,255,255,.55); }

/* ─── 16. FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--navy-900); color: rgba(255,255,255,.75); }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: var(--sp-16);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand .logo { margin-bottom: var(--sp-5); }
.footer-brand .logo-text { color: var(--white); }

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}

.footer-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.footer-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-full);
  color: rgba(255,255,255,.6);
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-5);
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.45);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--orange-300); }

/* Legal warning block */
.footer-legal-block {
  background: rgba(0,0,0,.25);
  padding-block: var(--sp-10);
  border-top: 1px solid rgba(255,255,255,.06);
}

.legal-warning-box {
  max-width: 860px;
  margin-inline: auto;
}

.legal-warning-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.legal-18 {
  background: var(--orange-500);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-sm);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.legal-warning-header strong {
  font-size: 0.85rem;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-warning-box p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}
.legal-warning-box p:last-child { margin-bottom: 0; }
.legal-warning-box a { color: rgba(255,255,255,.65); text-decoration: underline; }
.legal-warning-box a:hover { color: var(--orange-300); }
.legal-warning-box strong { color: rgba(255,255,255,.8); }

.footer-bottom {
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.35); }
.footer-bottom strong { color: rgba(255,255,255,.55); }

/* ─── 17. BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 500;
  width: 46px; height: 46px;
  background: var(--orange-500);
  color: var(--white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-orange);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast);
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover   { background: var(--orange-600); transform: translateY(-3px); }

/* ─── 18. ANIMATIONS ──────────────────────────────────────────── */
.animate-up, .animate-left, .animate-right {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.65s ease;
}
.animate-up    { transform: translateY(28px); }
.animate-left  { transform: translateX(-28px); }
.animate-right { transform: translateX(28px); }
.animate-up.visible, .animate-left.visible, .animate-right.visible {
  opacity: 1; transform: translate(0,0);
}
.how-grid    .how-card:nth-child(1)   { transition-delay: .05s; }
.how-grid    .how-card:nth-child(2)   { transition-delay: .12s; }
.how-grid    .how-card:nth-child(3)   { transition-delay: .19s; }
.how-grid    .how-card:nth-child(4)   { transition-delay: .26s; }
.poker-grid  .poker-card:nth-child(1) { transition-delay: .05s; }
.poker-grid  .poker-card:nth-child(2) { transition-delay: .12s; }
.poker-grid  .poker-card:nth-child(3) { transition-delay: .19s; }
.poker-grid  .poker-card:nth-child(4) { transition-delay: .26s; }

/* ─── 19. RESPONSIVE — TABLET ≤ 1100px ──────────────────────── */
@media (max-width: 1100px) {
  /* Squeeze rating column, shrink logo slightly */
  .rank-card {
    grid-template-columns: 52px 145px 1fr 155px 200px;
    gap: 1.1rem;
    padding: 1.1rem 1.35rem;
  }
}

/* ─── 20. RESPONSIVE — TABLET ≤ 900px ───────────────────────── */
@media (max-width: 900px) {
  /*
   * 3-column layout:
   * [badge] [logo] [info]
   * [rating] spans to end, cta-col spans to end (2nd row)
   */
  .rank-card {
    grid-template-columns: 50px 150px 1fr;
    grid-template-rows: auto auto;
    gap: 1rem 1.25rem;
    padding: 1.25rem;
  }
  /* rating lives in the info column space, 2nd row col 1-2 */
  .rank-rating {
    grid-column: 1 / 3;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    border-top: 1px solid var(--gray-100);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
  }
  /* cta-col spans full width as second row */
  .rank-cta-col {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--gray-100);
    padding-top: 0.75rem;
  }
  .offer-pill  { flex: 1; flex-direction: row; align-items: center; justify-content: center; gap: 0.5rem; }
  .offer-pill-amount { font-size: 1.4rem; }
  .rank-cta    { flex: 2; min-width: 0; }
  .rank-disclaimer { flex: none; white-space: nowrap; }

  .how-grid    { grid-template-columns: 1fr 1fr; }
  .poker-grid  { grid-template-columns: 1fr 1fr; }
  .info-grid   { grid-template-columns: 1fr; gap: var(--sp-12); }
  .info-visual { height: 300px; }
  .footer-top  { grid-template-columns: 1fr; gap: var(--sp-10); }
}

/* ─── 21. RESPONSIVE — MOBILE ≤ 768px ───────────────────────── */
@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .section { padding-block: var(--sp-16); }

  /* Hamburger menu */
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-4) var(--sp-6) var(--sp-8);
    gap: 0.2rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-base), opacity var(--t-base);
    z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 0.75rem 1rem; font-size: 1rem; border-radius: var(--r-md); }
  .nav-cta  { margin-left: 0; margin-top: 0.5rem; text-align: center; }

  /* Hero */
  .hero        { min-height: auto; padding-block: var(--sp-16) var(--sp-12); }
  .hero-title  { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero-stats  { gap: var(--sp-4); }
  .hstat-sep   { display: none; }
  .hero-scroll { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Trust bar */
  .trust-bar-inner { gap: var(--sp-3); justify-content: flex-start; }
  .trust-sep { display: none; }

  /* ── Rank card: fully stacked single-column ── */
  .rank-card {
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0.75rem 1rem;
    padding: 1.1rem;
    border-radius: 10px;
  }

  /* Row 1: badge (col1) + logo (col2) */
  .rank-logo-wrap {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 58px;
    border-radius: 8px;
  }

  /* Row 2: info spans full width */
  .rank-info {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  /* Row 3: rating spans full width */
  .rank-rating {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    border-top: 1px solid var(--gray-100);
    padding-top: 0.75rem;
    margin-top: 0;
  }

  /* Row 4: CTA spans full width */
  .rank-cta-col {
    grid-column: 1 / -1;
    grid-row: 4;
    flex-direction: column;
    border-top: 1px solid var(--gray-100);
    padding-top: 0.75rem;
    gap: 0.6rem;
  }
  .offer-pill { flex-direction: row; align-items: center; justify-content: center; gap: 0.5rem; }
  .offer-pill-amount { font-size: 1.4rem; }
  .rank-cta   { width: 100%; }
  .rank-name  { font-size: 1.05rem; white-space: normal; }

  /* Other sections */
  .how-grid    { grid-template-columns: 1fr; }
  .poker-grid  { grid-template-columns: 1fr 1fr; }
  .info-visual { display: none; }
  .footer-nav-cols { grid-template-columns: 1fr 1fr; }
  .rg-inner { flex-direction: column; gap: var(--sp-5); }
  .rg-icon  { width: 60px; height: 60px; }
  .back-to-top { bottom: 1.5rem; right: 1.25rem; }
}

/* ─── 22. RESPONSIVE — SMALL MOBILE ≤ 480px ─────────────────── */
@media (max-width: 480px) {
  .hero-trust-badges { gap: 0.3rem; }
  .trust-badge       { font-size: 0.7rem; }
  .poker-grid        { grid-template-columns: 1fr; }
  .footer-nav-cols   { grid-template-columns: 1fr; }
  .rg-tools          { flex-direction: column; }
  .rank-card         { padding: 1rem; gap: 0.6rem 0.75rem; }
  .filter-bar        { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--sp-2); }
  .filter-btn        { flex-shrink: 0; }
  .rank-cta          { font-size: 0.825rem; }
}

/* ─── 23. PRINT ──────────────────────────────────────────────── */
@media print {
  .header, .hamburger, .hero-bg, .back-to-top, .topbar-close { display: none !important; }
  .header { position: static; }
  .rank-card:hover { transform: none; box-shadow: none; }
  * { animation: none !important; transition: none !important; }
}

/* ─── 24. REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
