/* ==========================================================================
   BlackJack AU — main stylesheet
   Dark "casino felt" theme. No inline styles anywhere in the markup.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0c1a14;
  --bg-2: #10231b;
  --felt: #145236;
  --felt-2: #0f3d28;
  --surface: #162c23;
  --surface-2: #1d3a2e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #ebe7db;
  --muted: #a8b3aa;
  --ink: #111a15;

  --gold: #d9b45a;
  --gold-2: #f1cf7b;
  --gold-dark: #b48f3a;
  --green: #2fb874;
  --green-dark: #1f8a55;
  --red: #d2524f;
  --blue: #4b8fd8;

  --card: #fbf8f1;
  --card-2: #f1ebdd;
  --card-text: #1a211d;
  --card-muted: #5f6a63;
  --card-line: #e2dccb;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);

  --max: 1280px;
  --content-max: 1060px;
  --gutter: 16px;
  --header-h: 68px;
  --section-nav-h: 48px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--section-nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

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

[hidden] { display: none !important; }

a { color: var(--gold-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 0; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-top: 2em; }

p { margin: 0 0 1.1em; }
strong { color: #fff; font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

.btn--primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(217, 180, 90, 0.3);
}
.btn--primary:hover { background: linear-gradient(180deg, #fbe09a, var(--gold-2)); color: var(--ink); }

.btn--outline { background: transparent; color: var(--gold-2); border-color: var(--gold); }
.btn--outline:hover { background: rgba(217, 180, 90, 0.12); color: #fff; }

.btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--sm { padding: 8px 16px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(12, 26, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.logo__icon { width: 28px; height: 28px; fill: var(--gold); }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; }
.logo__accent { color: var(--gold); margin-left: 4px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav__link {
  display: block; padding: 8px 11px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.main-nav__link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.main-nav__link.is-current { color: var(--gold-2); }

/* ---------- Hero (compact: ranking must start on the first screen) ---------- */
.hero {
  position: relative;
  padding: 24px 0 20px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(47, 184, 116, 0.18), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(217, 180, 90, 0.14), transparent 50%),
    linear-gradient(180deg, var(--felt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: var(--content-max); }
.hero__eyebrow {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px;
  border: 1px solid rgba(217, 180, 90, 0.5); border-radius: 999px;
  color: var(--gold-2); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 10px; }
.hero__lead { font-size: 1rem; color: #d7d3c7; max-width: 920px; margin-bottom: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 10px; }
.hero__actions .btn--lg { padding: 12px 26px; font-size: 1rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0;
  color: var(--muted); font-size: 0.88rem;
}
.hero__facts strong { color: var(--gold-2); margin-right: 4px; font-size: 1rem; }

/* ---------- Sticky section nav ---------- */
.section-nav {
  position: sticky; top: var(--header-h); z-index: 150;
  height: var(--section-nav-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.section-nav .container { display: flex; align-items: center; gap: 14px; height: 100%; }
.section-nav__label { flex: 0 0 auto; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.section-nav__list {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; white-space: nowrap;
}
.section-nav__list::-webkit-scrollbar { display: none; }
.section-nav__list a {
  display: block; padding: 6px 11px; border-radius: 999px;
  color: var(--text); font-size: 0.88rem; font-weight: 500; text-decoration: none;
}
.section-nav__list a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.section-nav__list a.is-active { background: var(--gold); color: var(--ink); }

/* ---------- Content layout ---------- */
.content { padding-top: 20px; padding-bottom: 60px; }
.section { max-width: var(--content-max); margin: 0 auto 56px; }
.section h2 {
  padding-bottom: 8px; margin-bottom: 14px;
  border-bottom: 2px solid rgba(217, 180, 90, 0.35);
}
.section--closing { padding-top: 10px; }

/* Lists */
.list { margin: 0 0 1.3em; padding-left: 1.3em; }
.list li { margin-bottom: 0.5em; padding-left: 0.2em; }
.list li::marker { color: var(--gold); }
.list--numbered { counter-reset: item; list-style: none; padding-left: 0; }
.list--numbered li { counter-increment: item; position: relative; padding-left: 2.4em; }
.list--numbered li::before {
  content: counter(item);
  position: absolute; left: 0; top: 0.1em;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  font-weight: 700; font-size: 0.85em; display: flex; align-items: center; justify-content: center;
}
.list--check { list-style: none; padding-left: 0; }
.list--check li { position: relative; padding-left: 1.9em; }
.list--check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); -webkit-overflow-scrolling: touch; max-width: 100%; }
.table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.93rem; }
.table th, .table td { padding: 11px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--surface-2); color: var(--gold-2); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.table td:first-child { font-weight: 600; color: #fff; }
.table--compact { min-width: 460px; }

/* ---------- Ranking block ---------- */
.ranking {
  margin: 0 0 24px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--felt-2), var(--bg-2));
  border: 1px solid rgba(217, 180, 90, 0.25);
  box-shadow: var(--shadow);
}
.ranking__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ranking__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font-size: 0.82rem; font-weight: 500; cursor: pointer; font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chip:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

.ranking__view { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.view-btn {
  padding: 6px 14px; border: 0; background: transparent; color: var(--text);
  font-size: 0.82rem; font-weight: 500; cursor: pointer; font-family: inherit;
}
.view-btn.is-active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.ranking__count { margin: 6px 0 8px; color: var(--muted); font-size: 0.8rem; }
.ranking__empty { padding: 20px; text-align: center; color: var(--muted); }

.ranking__cards { display: grid; gap: 10px; }

/* Casino row: compact toplist row, details expand below */
.casino-row {
  position: relative;
  background: var(--card);
  color: var(--card-text);
  border-radius: 12px;
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease;
}
.casino-row:hover { box-shadow: var(--shadow); }
.casino-row.is-top { border: 2px solid var(--gold); background: linear-gradient(180deg, #fffdf6, var(--card)); }
.casino-row.is-top::after {
  content: "Top pick";
  position: absolute; top: -10px; right: 16px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.casino-row strong { color: var(--card-text); }
.casino-row a:not(.btn) { color: var(--green-dark); }

.casino-row__main {
  display: grid;
  grid-template-columns: 26px 56px minmax(150px, 1.25fr) minmax(170px, 1.35fr) minmax(230px, 1.7fr) auto;
  grid-template-areas: "rank logo name bonus stats cta";
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}
.casino-row__rank {
  grid-area: rank;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--felt); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.casino-row.is-top .casino-row__rank { background: var(--gold); color: var(--ink); }

.casino-logo {
  grid-area: logo;
  flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em;
  background: #1f2a33;
}
.casino-logo--sm { width: 40px; height: 40px; border-radius: 8px; font-size: 0.9rem; }
/* Placeholder colours per brand; replace the div with <img> when logos arrive */
.casino-logo[data-logo="wildtokyo"]   { background: linear-gradient(135deg, #e0435a, #7b1532); }
.casino-logo[data-logo="skycrown"]    { background: linear-gradient(135deg, #3f7fe0, #1a2d6b); }
.casino-logo[data-logo="spinsup"]     { background: linear-gradient(135deg, #f08a2c, #a43d0c); }
.casino-logo[data-logo="crownslots"]  { background: linear-gradient(135deg, #8e59e0, #3b1d7a); }
.casino-logo[data-logo="slotsgem"]    { background: linear-gradient(135deg, #22b8a0, #0b5f52); }
.casino-logo[data-logo="neospin"]     { background: linear-gradient(135deg, #e64b8b, #6e1240); }
.casino-logo[data-logo="rickycasino"] { background: linear-gradient(135deg, #f2c53d, #8a6500); color: var(--ink); }
.casino-logo[data-logo="rocketplay"]  { background: linear-gradient(135deg, #5a6cf0, #22276e); }

.casino-row__name { grid-area: name; min-width: 0; }
.casino-row__name h3 { margin: 0 0 4px; font-size: 1.12rem; color: var(--card-text); display: flex; flex-direction: column; line-height: 1.15; }
.casino-row__sub { font-family: var(--font-body); font-weight: 500; font-size: 0.76rem; color: var(--card-muted); margin-top: 2px; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--felt); color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
}
.badge--gold { background: var(--gold); color: var(--ink); }
.badge--xs { padding: 1px 7px; font-size: 0.62rem; vertical-align: middle; }

.casino-row__bonus { grid-area: bonus; min-width: 0; padding-left: 10px; border-left: 3px solid var(--gold); display: flex; flex-direction: column; }
.casino-row__bonus span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--card-muted); }
.casino-row__bonus strong { font-size: 0.95rem; line-height: 1.3; }

.casino-row__stats {
  grid-area: stats; min-width: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px;
  list-style: none; margin: 0; padding: 0;
}
.casino-row__stats li { display: flex; flex-direction: column; min-width: 0; }
.casino-row__stats span { color: var(--card-muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.casino-row__stats strong { font-size: 0.88rem; line-height: 1.3; }

.casino-row__cta { grid-area: cta; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.casino-row__cta .btn { padding: 10px 24px; min-width: 128px; }
.casino-row__cta small { font-size: 0.66rem; color: var(--card-muted); white-space: nowrap; }
.link-toggle {
  background: none; border: 0; padding: 2px 4px; cursor: pointer; font-family: inherit;
  color: var(--green-dark); font-weight: 600; font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px;
}
.link-toggle[aria-expanded="true"]::after { content: " ▲"; font-size: 0.7em; }
.link-toggle[aria-expanded="false"]::after { content: " ▼"; font-size: 0.7em; }

.casino-row__details { margin: 0 16px; padding: 14px 0 16px; border-top: 1px dashed var(--card-line); font-size: 0.92rem; }
.casino-row__details-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px 22px; }
.casino-row__details .list { margin: 0; }
.casino-row__details .list li { margin-bottom: 0.35em; }
.casino-row__details .list--check li::before { color: var(--green-dark); }
.casino-row__details p { margin: 12px 0 0; color: #333d37; }
.casino-row__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; }

.spec { margin: 0; display: grid; gap: 6px; align-content: start; }
.spec div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.spec dt { font-weight: 600; color: var(--card-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.spec dd { margin: 0; }

.table--ranking .btn { white-space: nowrap; }
.ranking__table { margin-bottom: 0; }

/* ---------- Demo embed ---------- */
.demo-embed { margin: 22px 0 26px; }
.demo-embed__felt {
  position: relative; overflow: hidden;
  padding: 36px 24px; text-align: center;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #1a6a45, #0f4a2f);
  border: 6px solid #3a2a1a;
  box-shadow: inset 0 0 0 2px rgba(217, 180, 90, 0.4), var(--shadow);
}
.demo-embed__cards { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.playing-card {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 78px; border-radius: 7px;
  background: #fff; color: #111; font-weight: 700; font-size: 1.4rem; line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.playing-card small { font-size: 1rem; }
.playing-card--red { color: #c8242a; }
.playing-card:first-child { transform: rotate(-8deg); }
.playing-card:last-child { transform: rotate(8deg); }
.demo-embed__title { font-family: var(--font-head); font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.demo-embed__text { color: #d7e5dc; margin-bottom: 18px; }

/* ---------- Strategy tool ---------- */
.strategy-tool {
  margin: 22px 0 18px; padding: 18px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(217, 180, 90, 0.35);
  scroll-margin-top: calc(var(--header-h) + var(--section-nav-h) + 16px);
}
.strategy-tool__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0; }
.field select {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-2); color: #fff; border: 1px solid var(--line-strong);
  font-family: inherit; font-size: 0.95rem;
}
.dealer-cards { grid-column: 1 / -1; }
.dealer-cards__row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.dealer-cards__row button {
  padding: 10px 0; border-radius: var(--radius-sm);
  background: #fff; color: #111; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit;
  transition: transform 0.1s, border-color 0.15s;
}
.dealer-cards__row button:hover { transform: translateY(-2px); }
.dealer-cards__row button.is-active { border-color: var(--gold); background: var(--gold-2); }
.strategy-tool__result {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px dashed var(--line-strong);
}
.strategy-tool__result p { margin: 0; }
.strategy-tool__hint { color: var(--muted); }
.result-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius-sm);
  font-weight: 800; font-size: 1.1rem; color: #fff;
}
.result-text strong { font-size: 1.05rem; }
.result-text small { display: block; color: var(--muted); }

/* Strategy chart table */
.strategy-chart { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 2px; font-size: 0.85rem; }
.strategy-chart th { padding: 6px 8px; text-align: left; color: var(--gold-2); font-weight: 600; white-space: nowrap; }
.strategy-chart thead th { text-align: center; background: var(--surface-2); border-radius: 4px; }
.strategy-chart tbody th { background: var(--surface-2); border-radius: 4px; }
.strategy-chart td {
  text-align: center; font-weight: 700; color: #fff; border-radius: 4px; padding: 6px 0;
  transition: transform 0.12s, box-shadow 0.12s;
}
.strategy-chart tr.is-hit th { box-shadow: 0 0 0 2px var(--gold-2); }
.strategy-chart td.is-hit { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(255, 255, 255, 0.6); z-index: 2; position: relative; }
.strategy-chart thead th.is-hit { box-shadow: 0 0 0 2px var(--gold-2); }

.a-h { background: #c84848; }
.a-s { background: #c9a227; color: #1a1500 !important; }
.a-d { background: #2e9e63; }
.a-p { background: #3f7fd0; }
.a-r { background: #7a7a7a; }
.a-none { background: rgba(255, 255, 255, 0.05); color: var(--muted) !important; font-weight: 400; }

.chart-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; font-size: 0.85rem; color: var(--muted); }
.chart-legend span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 4px; margin-right: 6px; font-weight: 700; color: #fff; font-size: 0.8rem;
}
.chart-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Callouts ---------- */
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 18px 0; padding: 16px 18px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.callout p { margin: 0; }
.callout--rg { border-color: rgba(217, 180, 90, 0.45); }
.callout__badge, .rg-badge {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold-2); font-weight: 800; font-size: 0.85rem;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin: 18px 0 8px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 14px 44px 14px 18px; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--gold-2); font-weight: 600;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item[open] summary h3 { color: var(--gold-2); }
.faq__body { padding: 0 18px 16px; color: #d7d3c7; }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 22px; padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--felt), var(--felt-2));
  border: 1px solid rgba(217, 180, 90, 0.45);
  box-shadow: var(--shadow);
}
.final-cta p { margin: 0; }
.final-cta__title { font-family: var(--font-head); font-size: 1.4rem; color: #fff; margin-bottom: 4px !important; }
.final-cta__text { max-width: 620px; color: #d7e5dc; }

/* ---------- Footer ---------- */
.site-footer { background: #081009; border-top: 1px solid var(--line); padding: 46px 0 28px; font-size: 0.92rem; color: var(--muted); }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 28px; }
.site-footer__brand p { margin-top: 14px; }
.site-footer__disclosure { font-size: 0.8rem; }
.site-footer__heading { margin: 0 0 10px; color: #fff; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 7px; }
.site-footer__col a { color: var(--muted); text-decoration: none; }
.site-footer__col a:hover { color: var(--gold-2); }
.site-footer__rg {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 34px; padding: 18px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.site-footer__rg p { margin: 0; font-size: 0.86rem; }
.site-footer__rg a { color: var(--gold-2); }
.site-footer__copy { margin: 22px 0 0; font-size: 0.8rem; text-align: center; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 16, 9, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(217, 180, 90, 0.4);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  animation: slide-up 0.25s ease-out;
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sticky-cta__brand { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.sticky-cta__brand > div { min-width: 0; }
.sticky-cta p { margin: 0; line-height: 1.25; }
.sticky-cta__name { color: #fff; font-weight: 600; font-size: 0.92rem; }
.sticky-cta__offer { color: var(--gold-2); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__close {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); color: var(--muted); font-size: 1.1rem; cursor: pointer; line-height: 1;
}
body.has-sticky-cta { padding-bottom: 76px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 16px; bottom: 90px; z-index: 250;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); color: #fff; border: 1px solid var(--line-strong);
  font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-sm);
}
.back-to-top:hover { background: var(--gold); color: var(--ink); }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body.has-sticky-cta { padding-bottom: 0; }
  .back-to-top { bottom: 24px; }
}

/* Tablet: row wraps into two lines */
@media (max-width: 1099px) {
  .casino-row__main {
    grid-template-columns: 26px 56px 1fr auto;
    grid-template-areas:
      "rank logo name cta"
      ". . bonus cta"
      ". . stats cta";
    row-gap: 8px;
  }
  .casino-row__bonus { border-left: 0; padding-left: 0; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 12px var(--gutter) 18px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__link { padding: 11px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav__cta { align-self: flex-start; }
}

@media (max-width: 899px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 719px) {
  body { font-size: 16px; }
  .hero { padding: 24px 0 22px; }
  .hero__actions { margin: 14px 0 10px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { gap: 4px 14px; font-size: 0.82rem; }
  .section-nav__label { display: none; }
  .content { padding-top: 20px; }
  .section { margin-bottom: 44px; }

  .ranking { padding: 10px; }
  .ranking__cards { gap: 10px; }
  .casino-row__main {
    grid-template-columns: 24px 48px 1fr;
    grid-template-areas:
      "rank logo name"
      "bonus bonus bonus"
      "stats stats stats"
      "cta cta cta";
    gap: 10px;
    padding: 12px 12px 12px;
  }
  .casino-row__rank { width: 24px; height: 24px; font-size: 0.78rem; }
  .casino-logo { width: 48px; height: 48px; font-size: 0.95rem; }
  .casino-row__name h3 { font-size: 1.05rem; }
  .casino-row__bonus { border-left: 3px solid var(--gold); padding: 6px 10px; background: var(--card-2); border-radius: 6px; }
  .casino-row__stats { gap: 6px; }
  .casino-row__cta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
  .casino-row__cta .btn { flex: 1 1 100%; }
  .casino-row__cta small { order: 3; }
  .casino-row.is-top::after { right: 10px; }
  .casino-row__details { margin: 0 12px; }
  .casino-row__details-grid { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }

  .strategy-tool { padding: 14px; }
  .strategy-tool__controls { grid-template-columns: 1fr; }
  .dealer-cards__row { grid-template-columns: repeat(5, 1fr); }
  .final-cta { padding: 20px 18px; }
  .final-cta .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .chart-footer { flex-direction: column; align-items: flex-start; }
  .callout { flex-direction: column; gap: 10px; }
}

@media (max-width: 379px) {
  .casino-row__stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .section-nav, .sticky-cta, .back-to-top, .hero__actions, .chart-actions, .ranking__toolbar, .site-footer__grid { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  h1, h2, h3, strong { color: #000; }
  .table-wrap { border: 0; background: none; overflow: visible; }
  .strategy-chart td { color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .casino-row { box-shadow: none; break-inside: avoid; }
}
