/* ==========================================================================
   MMG Casino Guide — Global Stylesheet
   Self-contained. No external libraries, frameworks, fonts or CDNs.
   Theme: deep dark premium + gold accent + green CTA.
   ========================================================================== */

/* ----------------------------- Design Tokens ----------------------------- */
:root {
  /* Surfaces */
  --bg:            #0a0d14;
  --bg-2:          #0e1320;
  --surface:       #141a28;
  --surface-2:     #1b2333;
  --surface-3:     #232d42;
  --border:        #2a3349;
  --border-soft:   #1f273a;

  /* Brand / accent */
  --gold:          #f6c544;
  --gold-2:        #e0a93c;
  --gold-soft:     rgba(246, 197, 68, 0.12);
  --gold-glow:     rgba(246, 197, 68, 0.35);

  /* CTA green */
  --green:         #19c37d;
  --green-2:       #11a368;
  --green-glow:    rgba(25, 195, 125, 0.4);

  /* Text */
  --text:          #eef1f6;
  --text-muted:    #9aa6bd;
  --text-dim:      #6b7791;

  /* Status */
  --star:          #f6c544;
  --danger:        #f06363;

  /* Layout */
  --container:     1180px;
  --radius:        14px;
  --radius-sm:     9px;
  --radius-lg:     22px;
  --shadow:        0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-soft:   0 8px 24px rgba(0, 0, 0, 0.3);

  /* Z-index scale */
  --z-nav: 50;
  --z-overlay: 40;
  --z-raised: 10;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(246, 197, 68, 0.08), transparent 60%),
    radial-gradient(900px 480px at 8% 0%, rgba(25, 195, 125, 0.07), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-2); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
p  { margin: 0 0 1rem; }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------ Layout ----------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--tight { padding: clamp(34px, 4vw, 52px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(246, 197, 68, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
}

.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.lead { font-size: 1.12rem; color: var(--text-muted); }

/* ------------------------------ Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  min-height: 46px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
}
/* Buttons never show the underline applied to regular prose links. */
.btn, .btn:hover, .prose a.btn, .prose a.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-cta {
  color: #052013;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-2) 100%);
  box-shadow: 0 6px 18px var(--green-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-cta:hover { color: #052013; box-shadow: 0 10px 26px var(--green-glow); transform: translateY(-2px); }

.btn-gold {
  color: #1a1405;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  box-shadow: 0 6px 18px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-gold:hover { color: #1a1405; box-shadow: 0 10px 26px var(--gold-glow); transform: translateY(-2px); }

.btn-ghost {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-3); border-color: var(--gold); }

.btn-block { width: 100%; }

/* ------------------------------ Header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-weight: 800; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--gold), var(--gold-2));
  color: #1a1405;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px var(--gold-glow);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-size: 1.06rem; letter-spacing: -0.01em; }
.brand-name span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }

/* On desktop the panel is transparent: its children (links + CTA) sit
   directly in the top-bar flex row via display:contents. */
.nav-panel { display: contents; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 13px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: var(--surface-2); }

.nav-cta { margin-left: 4px; }

/* Burger button (mobile only) */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 70;
  width: 44px; height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); }
.site-header.is-open .nav-toggle { border-color: var(--gold); color: var(--gold); }

.burger { position: relative; display: block; width: 22px; height: 16px; }
.burger i {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 7px; }
.burger i:nth-child(3) { top: 14px; }
.site-header.is-open .burger i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.site-header.is-open .burger i:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.site-header.is-open .burger i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* --------------------------- Header sub-bar ------------------------------ */
.header-subbar {
  background: var(--bg-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.subbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  min-height: 40px;
  padding-block: 7px;
}
.header-subbar .trust-row { margin-top: 0; gap: 8px 18px; justify-content: flex-start; }
.header-subbar .trust-item { font-size: 0.75rem; }
.header-subbar .trust-item svg { width: 16px; height: 16px; flex: 0 0 16px; }
.header-subbar .update-line { margin-top: 0; font-size: 0.75rem; }

/* ------------------------------- Hero ------------------------------------ */
.hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(30px, 4vw, 46px); text-align: center; }
.hero-inner { max-width: 820px; margin-inline: auto; }
.hero h1 { margin-top: 18px; }
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; margin-inline: auto; }

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
}
.geo-flag { font-size: 1.1rem; line-height: 1; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 34px;
  justify-content: center;
  margin-top: 26px;
}
.trust-item { display: inline-flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 0.92rem; font-weight: 600; }
.trust-item svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 20px; }

.update-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.update-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.18); }
.update-line strong { color: var(--text-muted); font-weight: 700; }

/* --------------------------- Rating Table -------------------------------- */
.ranking { display: flex; flex-direction: column; gap: 18px; }

.rank-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rank-card:hover { transform: translateY(-3px); border-color: rgba(246, 197, 68, 0.4); box-shadow: var(--shadow); }

.rank-card--top {
  border-color: rgba(246, 197, 68, 0.55);
  box-shadow: 0 0 0 1px rgba(246, 197, 68, 0.25), var(--shadow);
}

.rank-ribbon {
  position: absolute;
  top: -11px; left: 24px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1405;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  padding: 4px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 12px var(--gold-glow);
}

/* ---- Top row: [rank + logo] | bonus | rating ---- */
.rank-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}
.rank-id { display: flex; align-items: center; gap: 16px; min-width: 0; }

.rank-pos {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text-muted);
  background: var(--surface-3);
  border: 1px solid var(--border);
}
.rank-card--top .rank-pos { color: #1a1405; background: linear-gradient(145deg, var(--gold), var(--gold-2)); border-color: transparent; }

.rank-logo { display: inline-flex; align-items: center; min-width: 0; }
.rank-logo .logo-img { max-height: 40px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-logo .chip {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 0.95rem;
  color: #0a0d14;
}

/* Bonus block */
.rank-bonus { min-width: 0; }
.rank-bonus .bonus-amt { font-weight: 800; font-size: 1.4rem; color: var(--gold); line-height: 1.2; }
.rank-bonus .bonus-sub { font-size: 0.86rem; color: var(--text-muted); margin-top: 2px; }

/* Rating block (right-aligned on desktop) */
.rank-rating { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; }
.star-full { color: var(--star); }
.star-empty { color: var(--surface-3); }
.rating-num { font-weight: 800; font-size: 1rem; }
.rating-num span { color: var(--text-dim); font-weight: 600; font-size: 0.8rem; }
.rating-votes { font-size: 0.76rem; color: var(--text-dim); }

/* ---- Bottom row: payments | action ---- */
.rank-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.rank-pay { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pay-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  white-space: nowrap;
}

.rank-action { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.rank-action .btn { min-width: 210px; white-space: nowrap; }
.rank-action .visit {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.rank-action .visit:hover { color: var(--gold); }

.rank-note { text-align: center; color: var(--text-dim); font-size: 0.82rem; margin-top: 22px; }

/* ----------------------------- Info Cards -------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  border: 1px solid rgba(246, 197, 68, 0.25);
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--gold); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin-bottom: 0; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-weight: 900; font-size: 1.2rem;
  color: #1a1405;
  background: linear-gradient(145deg, var(--gold), var(--gold-2));
}

/* ----------------------------- FAQ -------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 18px 20px;
  cursor: pointer;
}
.faq-q .chevron { flex: 0 0 20px; width: 20px; height: 20px; color: var(--gold); transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-q .chevron { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; color: var(--text-muted); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; }

/* ----------------------------- Content pages ----------------------------- */
.page-hero {
  padding: clamp(44px, 6vw, 70px) 0 clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}
.page-hero p { color: var(--text-muted); max-width: 640px; margin-inline: auto; }

.breadcrumb { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { margin-top: 2.2rem; padding-top: 0.2rem; }
.prose h3 { margin-top: 1.6rem; color: var(--gold); }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose ul { margin-bottom: 1.2rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .updated { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 2rem; }

.callout {
  border-left: 4px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.callout--danger { border-left-color: var(--danger); }
.callout--green { border-left-color: var(--green); }
.callout p:last-child { margin-bottom: 0; }

/* Support org cards */
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1.5rem 0; }
.org-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.org-card img { height: 40px; width: auto; margin-bottom: 12px; }
/* Dark logos (e.g. HUPIS) need a light plate on the dark org-card. */
.org-card img.org-logo--light { background: #fff; border-radius: 8px; padding: 6px 10px; box-sizing: content-box; }
/* Square-cornered logos (e.g. GamCare) get the same rounded look as the footer badges. */
.org-card img.org-logo--rounded { border-radius: 8px; }
.org-card h4 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text); }
.org-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.org-card a { font-weight: 700; }

/* ----------------------------- Forms ------------------------------------- */
.form-grid { display: grid; gap: 18px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field .error-msg { color: var(--danger); font-size: 0.82rem; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }

.form-status {
  display: none;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(25, 195, 125, 0.12);
  border: 1px solid rgba(25, 195, 125, 0.4);
  color: var(--text);
  font-weight: 600;
}
.form-status.is-visible { display: block; }

.contact-info { display: grid; gap: 16px; }
.info-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; }
.info-block h4 { margin: 0 0 4px; font-size: 1rem; }
.info-block p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.info-block a { font-weight: 700; }

/* ----------------------------- CTA band ---------------------------------- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(246, 197, 68, 0.12), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px) 24px;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-muted); max-width: 520px; margin: 0 auto 22px; }

/* ----------------------------- Footer ------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
  padding-top: clamp(44px, 5vw, 64px);
  margin-top: 24px;
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-muted); font-weight: 600; font-size: 0.93rem; }
.footer-col a:hover { color: var(--gold); }

.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
/* Responsible-gambling logos rendered as matching, equal-height rounded badges. */
.rg-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.rg-logo:hover { opacity: 1; transform: translateY(-1px); }
.rg-logo img { height: 100%; width: auto; display: block; }
/* HUPIS uses a dark logo, so it needs a light backing plate to stay legible. */
.rg-logo--light { background: #fff; padding: 6px 9px; }
.rg-logo--light img { height: 22px; }
.age-badge {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-weight: 900;
  font-size: 0.82rem;
  flex: 0 0 40px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
a.age-badge:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.disclaimer {
  border-top: 1px solid var(--border-soft);
  padding: 26px 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.7;
}
.disclaimer p { margin-bottom: 0.8rem; }
.disclaimer strong { color: var(--text-muted); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-muted); }

/* ----------------------------- Utilities --------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------- Reveal animation ---------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes menuItemIn {
  to { opacity: 1; transform: none; }
}

/* ============================== Responsive =============================== */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* Tighten the top-row columns so nothing crowds on tablets. */
  .rank-top { gap: 18px; }
  .rank-bonus .bonus-amt { font-size: 1.25rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  /* ---- Full-screen overlay menu ---- */
  .nav-panel {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 60;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 88px 24px 40px;
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(246, 197, 68, 0.12), transparent 60%),
      rgba(8, 11, 18, 0.92);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease-out, visibility 0.32s ease-out;
  }
  .site-header.is-open .nav-panel { opacity: 1; visibility: visible; }
  /* Prevent the page from scrolling behind the open overlay. */
  body.nav-open { overflow: hidden; }

  .nav-panel .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    max-width: 340px;
  }
  .nav-panel .nav-links a {
    display: block;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    padding: 15px 18px;
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid transparent;
  }
  .nav-panel .nav-links a:hover { background: var(--surface-2); }
  .nav-panel .nav-links a.is-active {
    color: var(--gold);
    background: var(--gold-soft);
    border-color: rgba(246, 197, 68, 0.3);
  }

  .nav-panel .nav-cta {
    display: inline-flex;
    margin: 18px 0 0;
    width: 100%;
    max-width: 340px;
    font-size: 1.05rem;
    min-height: 54px;
  }

  /* Staggered reveal of items when the menu opens. */
  .nav-panel .nav-links li,
  .nav-panel .nav-cta { opacity: 0; transform: translateY(14px); }
  .site-header.is-open .nav-panel .nav-links li,
  .site-header.is-open .nav-panel .nav-cta {
    animation: menuItemIn 0.4s ease-out forwards;
  }
  .site-header.is-open .nav-panel .nav-links li:nth-child(1) { animation-delay: 0.08s; }
  .site-header.is-open .nav-panel .nav-links li:nth-child(2) { animation-delay: 0.14s; }
  .site-header.is-open .nav-panel .nav-links li:nth-child(3) { animation-delay: 0.20s; }
  .site-header.is-open .nav-panel .nav-links li:nth-child(4) { animation-delay: 0.26s; }
  .site-header.is-open .nav-panel .nav-links li:nth-child(5) { animation-delay: 0.32s; }
  .site-header.is-open .nav-panel .nav-cta { animation-delay: 0.40s; }

  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .step { padding-left: 56px; }

  /* Sub-bar stacks: trust badges centred on top, date centred below. */
  .subbar-inner { flex-direction: column; gap: 5px; text-align: center; padding-block: 8px; }
  .header-subbar .trust-row { justify-content: center; gap: 6px 14px; }

  /* Ranking card stacks into centred blocks on mobile. */
  .rank-card { text-align: center; }
  .rank-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
  .rank-id { flex-direction: column; gap: 12px; width: 100%; }
  .rank-logo { justify-content: center; width: 100%; }
  .rank-rating { align-items: center; text-align: center; }
  .rank-bottom {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .rank-pay { justify-content: center; }
  .rank-action { width: 100%; }
  .rank-action .btn { width: 100%; max-width: 280px; min-width: 0; }
}

@media (max-width: 560px) {
  .rank-card { padding: 24px 18px 20px; }
  .rank-bonus .bonus-amt { font-size: 1.3rem; }
  .trust-row { gap: 14px 22px; }
}

@media (max-width: 400px) {
  /* Drop the least essential badge so the row stays on one line. */
  .header-subbar .trust-item--daily { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
