/* ==========================================================================
   Basket Bounty review - "Night orchard"
   Aubergine night sky, golden apples, apple-red sparks.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #160920;
  --bg-2: #1d0c2a;
  --surface: #261232;
  --surface-2: #2f173d;
  --surface-3: #3a1d4a;
  --line: rgba(255, 226, 170, 0.1);
  --line-strong: rgba(255, 226, 170, 0.22);

  --text: #f7eef8;
  --text-soft: #e8dbec;
  --muted: #c2adc9;
  --cream: #fff3d6;
  --gold-line: rgba(245, 194, 74, 0.4);

  --gold: #f5c24a;
  --gold-2: #ffd978;
  --gold-3: #d9971f;
  --gold-ink: #2b1400;
  --red: #e8434f;
  --red-2: #ff7a82;
  --leaf: #79d98e;
  --violet: #8f63e6;

  --grad-gold: linear-gradient(180deg, #ffe395 0%, #f5c24a 48%, #e2a52e 100%);
  --grad-accent: linear-gradient(90deg, #f5c24a, #e8434f);

  --radius: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --gutter: 20px;
  --max: 1200px;
  --header-h: 72px;

  --glow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 40px rgba(245, 194, 74, 0.035);
  --shadow: 0 22px 48px -26px rgba(0, 0, 0, 0.75);
  --focus: 0 0 0 3px #160920, 0 0 0 6px #ffd978;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, Cambria, "Times New Roman", serif;
}

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

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

html:has(.demo-modal[open]) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 110% -10%, rgba(232, 67, 79, 0.08), transparent 60%),
    radial-gradient(900px 600px at -20% 30%, rgba(143, 99, 230, 0.1), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-it { overflow-wrap: break-word; }

img { max-width: 100%; height: auto; }
img,
iframe { display: block; }

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

button { font: inherit; color: inherit; }

h1, h2, h3 { color: #fff; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }

p { text-wrap: pretty; }

::selection { background: rgba(245, 194, 74, 0.35); color: #fff; }

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

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip:focus,
.skip:focus-visible { transform: translateY(0); color: var(--gold-ink); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 9, 32, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
/* Set by app.js once the page has scrolled: opaque bar, hairline and drop shadow */
.topbar[data-scrolled] {
  background: rgba(22, 9, 32, 0.94);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: rgba(245, 194, 74, 0.18);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}
.topbar[data-menu-open] { background: rgba(22, 9, 32, 0.98); border-bottom-color: rgba(245, 194, 74, 0.18); }

.topbar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
}
.logo > span > span { margin-left: 0.22em; color: var(--gold); }
.logo:hover { color: #fff; }
.logo--fruit img {
  box-shadow: 0 0 0 2px rgba(245, 194, 74, 0.55), 0 8px 22px -6px rgba(232, 67, 79, 0.55);
}

.burger {
  display: none;
  position: relative;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.burger > span:not(.visually-hidden) {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-2);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.burger > span:nth-child(2) { top: 16px; }
.burger > span:nth-child(3) { top: 22px; }
.burger > span:nth-child(4) { top: 28px; }
.burger[aria-expanded="true"] { background: rgba(245, 194, 74, 0.12); border-color: rgba(245, 194, 74, 0.5); }
.burger[aria-expanded="true"] > span:nth-child(2) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
.burger[aria-expanded="true"] > span:nth-child(4) { top: 22px; transform: rotate(-45deg); }
.burger:focus-visible { border-radius: 14px; }

.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.menu[hidden] { display: none; }
.menu a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--gold-2); }
.menu a:focus-visible { border-radius: 999px; }

.menu .menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 10px 20px;
  background: var(--grad-gold);
  color: var(--gold-ink);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 20px -10px rgba(245, 194, 74, 0.8);
}
.menu .menu-cta:hover { background: linear-gradient(180deg, #fff0bd, #ffd166 50%, #eab040); color: var(--gold-ink); }
.menu-cta span { font-size: 0.7em; }

.cta-pulse { animation: cta-pulse 3.2s ease-in-out infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 0 rgba(245, 194, 74, 0.45); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 8px rgba(245, 194, 74, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { border-radius: 999px; }
.btn span { font-size: 0.72em; }

.btn--gold {
  background: var(--grad-gold);
  color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 30px -14px rgba(245, 194, 74, 0.85);
}
.btn--gold:hover { color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 34px -12px rgba(245, 194, 74, 0.95); }

.btn--outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(245, 194, 74, 0.55);
  color: #ffe6a8;
}
.btn--outline:hover { background: rgba(245, 194, 74, 0.12); border-color: var(--gold); color: #fff3cf; }

/* ---------- Hero ---------- */
.intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.intro--orchard {
  background:
    radial-gradient(rgba(245, 194, 74, 0.16) 1px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(800px 520px at 85% 15%, rgba(232, 67, 79, 0.22), transparent 62%),
    radial-gradient(700px 520px at 5% 95%, rgba(143, 99, 230, 0.25), transparent 60%),
    linear-gradient(180deg, #1f0b2d 0%, #170823 100%);
}
.intro--orchard::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(22, 9, 32, 0.9));
  z-index: -1;
  pointer-events: none;
}

.intro-halo {
  position: absolute;
  z-index: -1;
  top: -60px;
  right: -80px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 110, 0.34) 0%, rgba(245, 170, 74, 0.12) 40%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: halo-drift 14s ease-in-out infinite alternate;
}
@keyframes halo-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.06); }
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(48px, 7vw, 88px) clamp(72px, 9vw, 112px);
}

.intro-text { min-width: 0; }

.overline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 6px 14px 6px 11px;
  border: 1px solid rgba(245, 194, 74, 0.38);
  border-radius: 999px;
  background: rgba(245, 194, 74, 0.08);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.overline::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 67, 79, 0.25), 0 0 12px rgba(232, 67, 79, 0.9);
}

.intro h1 { margin: 20px 0 18px; }
.headline {
  display: block;
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #ffe3a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.subline {
  display: block;
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--gold);
}

.intro-lead {
  max-width: 34em;
  margin: 0 0 30px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-soft);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Flat rating: cream figure on the surface, hairline, then stars. Gold fills stay reserved for actions. */
.score {
  display: inline-grid;
  grid-template-columns: auto 1px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  margin-top: 28px;
  padding: 9px 20px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(22, 9, 32, 0.45);
}
.score::before {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  margin-block: 4px;
  background: var(--line-strong);
}
.score strong {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--cream);
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.score span,
.score small { grid-column: 3; }
.score span {
  grid-row: 1;
  align-self: end;
  justify-self: start;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--gold) 0 84%, rgba(255, 255, 255, 0.22) 84% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.score small { grid-row: 2; align-self: start; color: var(--muted); font-size: 0.82rem; }

.age-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.age-note span {
  flex: none;
  padding: 2px 8px;
  border: 2px solid var(--red-2);
  border-radius: 999px;
  color: var(--red-2);
  font-size: 0.75rem;
  font-weight: 900;
}

.intro-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  background: var(--surface);
}
.intro-visual--framed {
  padding: 6px;
  background: linear-gradient(140deg, rgba(255, 217, 120, 0.95), rgba(232, 67, 79, 0.8));
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85), 0 0 80px -24px rgba(245, 194, 74, 0.4);
  transform: rotate(0.5deg);
}

/* ---------- Key facts strip ---------- */
.keyfacts {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}
.keyfacts-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--line-strong);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
}
.keyfacts-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.keyfacts-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #2e163c, #251130);
}
.keyfacts-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.keyfacts-grid strong {
  color: var(--gold-2);
  font-size: 1.3rem;
  font-weight: 850;
  line-height: 1.2;
}

/* ---------- Review layout ---------- */
.block { padding-block: 56px 72px; }
.review-shell { position: relative; }

.review-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.sidebar-index {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  padding: 20px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(38, 18, 50, 0.7);
  box-shadow: var(--glow-inner);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 194, 74, 0.35) transparent;
}
.sidebar-index > strong {
  display: block;
  margin: 0 10px 10px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sidebar-index nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}
/* Same numbering as the section tags in the article (see .review counter) */
.sidebar-index a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 12px 7px 9px;
  border-left: 3px solid transparent;
  border-radius: 3px 10px 10px 3px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  counter-increment: toc;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sidebar-index a::before {
  content: counter(toc, decimal-leading-zero);
  content: counter(toc, decimal-leading-zero) / "";
  flex: none;
  min-width: 2.1ch;
  color: rgba(245, 194, 74, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.sidebar-index a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
/* Current section: tinted row + gold bar. The outline ring stays reserved for keyboard focus. */
.sidebar-index a[aria-current] {
  border-left-color: var(--gold);
  background: rgba(245, 194, 74, 0.1);
  color: var(--gold);
}
.sidebar-index a[aria-current]::before { color: var(--gold); }

.review {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  counter-reset: chapter;
}

/* Prose inside the review */
.review--prose p { margin: 0 0 1em; color: var(--text-soft); }
.review--prose strong { color: #fff; }
.review--prose h3 { margin: 28px 0 12px; font-size: 1.2rem; }
.review--prose ul:not([class]) {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}
.review--prose ul:not([class]) li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
  color: var(--text-soft);
}
.review--prose ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff9aa0, var(--red) 60%);
  box-shadow: 0 0 10px rgba(232, 67, 79, 0.6);
}

/* ---------- Panels ---------- */
.panel {
  position: relative;
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(47, 23, 61, 0.92), rgba(38, 18, 50, 0.92));
  box-shadow: var(--glow-inner), var(--shadow);
}
.panel > :last-child { margin-bottom: 0; }
.panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

/* Section rhythm: every panel listed in the TOC carries a number tag that matches it (01-16).
   Panels outside the numbering get a word tag instead. */
.review > .panel { counter-increment: chapter; }
.review > #player-feedback,
.review > .about-review,
.review > .safe-play { counter-increment: none; }

.review > .panel > h2:first-child::before,
.demo-text > .tagline::before,
#verdict > .tagline {
  display: block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 3px 8px 2px;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: rgba(245, 194, 74, 0.06);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.review > .panel > h2:first-child::before {
  content: counter(chapter, decimal-leading-zero);
  content: counter(chapter, decimal-leading-zero) / "";
}
/* Demo panel: number tag sits inline in front of its kicker line */
.demo-text > .tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.demo-text > .tagline::before {
  content: counter(chapter, decimal-leading-zero);
  content: counter(chapter, decimal-leading-zero) / "";
  margin-bottom: 0;
}
/* Verdict keeps its place in the count (TOC 15) but shows its own kicker as a word tag */
#verdict > .tagline { margin-bottom: 14px; }
.review > #player-feedback > h2:first-child::before {
  content: "OPINIONI";
  content: "OPINIONI" / "";
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}
.review > .about-review > h2:first-child::before {
  content: "REDAZIONE";
  content: "REDAZIONE" / "";
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}
.review > .safe-play > h2:first-child::before {
  content: "18+";
  content: "18+" / "";
  border-color: rgba(255, 122, 130, 0.55);
  background: rgba(232, 67, 79, 0.1);
  color: var(--red-2);
}

.panel--lead {
  border-color: rgba(245, 194, 74, 0.3);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(232, 67, 79, 0.16), transparent 52%),
    radial-gradient(80% 90% at 0% 0%, rgba(245, 194, 74, 0.13), transparent 55%),
    linear-gradient(180deg, #321842, #271233);
}
.panel--lead h2 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); }

.bestfor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 18px 14px 14px;
  border: 1px solid rgba(245, 194, 74, 0.28);
  border-radius: var(--radius-md);
  background: rgba(245, 194, 74, 0.07);
}
.bestfor strong {
  flex: none;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: var(--gold-ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bestfor span { color: var(--text-soft); font-weight: 500; }

.tagline {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.review--prose .tagline { color: var(--gold); }

.footnote {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  font-size: 0.88rem;
  font-style: italic;
}
.review--prose .footnote { color: var(--muted); }

/* ---------- Operators ---------- */
.operators {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  counter-reset: operator;
  container: operators / inline-size;
}
.operator {
  position: relative;
  display: grid;
  grid-template-columns: 48px 172px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px 16px 14px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(58, 29, 74, 0.85), rgba(47, 23, 61, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  counter-increment: operator;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
/* Rank numeral lives in its own grid column */
.operator::before {
  content: counter(operator, decimal-leading-zero);
  content: counter(operator, decimal-leading-zero) / "";
  justify-self: center;
  color: rgba(245, 194, 74, 0.78);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.operator:hover {
  border-color: rgba(245, 194, 74, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 30px -20px rgba(245, 194, 74, 0.5);
}
/* Top pick stands out in the scan */
.operator:first-child,
.operator:first-child:hover {
  border-color: rgba(245, 194, 74, 0.55);
  background:
    radial-gradient(90% 140% at 0% 50%, rgba(245, 194, 74, 0.1), transparent 60%),
    linear-gradient(90deg, rgba(74, 39, 92, 0.95), rgba(58, 29, 74, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(245, 194, 74, 0.14), 0 12px 30px -18px rgba(245, 194, 74, 0.75);
}
.operator:first-child::before {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(245, 194, 74, 0.55);
}

.operator-badge { min-width: 0; }
.operator-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f4ecf6);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.operator-plate--dark {
  background: linear-gradient(180deg, #1a0a22, #0f0515);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 170, 0.16);
}
.operator-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

.operator-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.review--prose .operator-name,
.operator-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 850;
  color: #fff;
}
.operator-offer {
  color: var(--gold-2);
  font-weight: 650;
  font-size: 0.97rem;
  line-height: 1.4;
}

.operator-links {
  display: flex;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill:focus-visible { border-radius: 999px; }
.pill--go {
  background: var(--grad-gold);
  color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 22px -12px rgba(245, 194, 74, 0.9);
}
.pill--go:hover { color: var(--gold-ink); }
.pill--info {
  border-color: var(--line-strong);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
}
.pill--info:hover { border-color: rgba(245, 194, 74, 0.55); color: var(--gold-2); }

/* ---------- Tables ---------- */
.table-scroll {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(22, 9, 32, 0.45);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 194, 74, 0.35) transparent;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.datasheet th,
.datasheet td {
  padding: 13px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.datasheet tr:last-child th,
.datasheet tr:last-child td { border-bottom: 0; }
.datasheet tr:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.datasheet th {
  width: 42%;
  color: var(--muted);
  font-weight: 600;
}
.datasheet td { color: #fff; font-weight: 750; }
.datasheet tr:hover { background: rgba(245, 194, 74, 0.06); }

.paytable th,
.paytable td {
  padding: 12px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.paytable thead th {
  background: rgba(245, 194, 74, 0.09);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.paytable tbody tr:last-child td { border-bottom: 0; }
.paytable td { color: var(--text-soft); }
.paytable-icon { width: 108px; }
.paytable-icon img {
  width: 72px;
  height: 62px;
  padding: 4px;
  object-fit: contain;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(245, 194, 74, 0.22), rgba(58, 29, 74, 0.6) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.paytable-name {
  width: 30%;
  color: #fff;
  font-weight: 800;
}
.paytable td.paytable-name { color: #fff; }

/* ---------- Pros / cons ---------- */
.verdict-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.plus-col,
.minus-col {
  padding: 22px 22px 8px;
  border: 1px solid;
  border-radius: 18px;
}
.plus-col {
  border-color: rgba(121, 217, 142, 0.3);
  background: linear-gradient(180deg, rgba(121, 217, 142, 0.1), rgba(121, 217, 142, 0.02));
}
.minus-col {
  border-color: rgba(255, 122, 130, 0.3);
  background: linear-gradient(180deg, rgba(232, 67, 79, 0.12), rgba(232, 67, 79, 0.02));
}
.review--prose .plus-col h3,
.review--prose .minus-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.plus-col h3 span,
.minus-col h3 span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
}
.plus-col h3 span { background: var(--leaf); color: #0b2613; }
.minus-col h3 span { background: var(--red-2); color: #2a0509; }

.point-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.point-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.point-list li:first-child { border-top: 0; }
.point-list strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-weight: 800;
}
.point-list span {
  display: block;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}
.plus-col .point-list strong::before { content: "+ "; color: var(--leaf); }
.minus-col .point-list strong::before { content: "\2212  "; color: var(--red-2); }

/* ---------- Metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.metrics > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(245, 194, 74, 0.12), transparent 60%),
    rgba(22, 9, 32, 0.45);
  box-shadow: var(--glow-inner);
}
.metrics span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.metrics strong {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.metrics small { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }

/* ---------- Feature cards ---------- */
.mechanics {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.mechanics--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mechanics article {
  position: relative;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(58, 29, 74, 0.7), rgba(38, 18, 50, 0.5));
  box-shadow: var(--glow-inner);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mechanics article:hover { border-color: rgba(245, 194, 74, 0.35); transform: translateY(-2px); }
.mechanics article > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 217, 120, 0.35), rgba(232, 67, 79, 0.25) 75%);
  box-shadow: inset 0 0 0 1px rgba(245, 194, 74, 0.35);
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}
.review--prose .mechanics h3 { margin: 0 0 6px; font-size: 1.12rem; }
.review--prose .mechanics p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Figures ---------- */
.wide-shot,
.shots figure { margin: 0; }
.wide-shot { margin-top: 26px; }
.wide-shot img,
.shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--surface-3);
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 40px -26px rgba(0, 0, 0, 0.9);
}
.wide-shot figcaption,
.shots figcaption {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.wide-shot figcaption::before,
.shots figcaption::before {
  content: "";
  flex: none;
  width: 18px;
  height: 2px;
  margin-top: 0.7em;
  background: var(--gold);
}

/* ---------- Jackpots ---------- */
.jackpots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
/* Dark tiles: tier colour only in the top bar, the label and a faint glow */
.jackpots li {
  --tier: 245, 194, 74;
  --tier-label: var(--gold);
  --tier-glow: 0.18;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 12px 18px;
  overflow: hidden;
  border: 1px solid rgba(var(--tier), 0.3);
  border-radius: 18px;
  background:
    radial-gradient(110% 85% at 50% 0%, rgba(var(--tier), var(--tier-glow)), transparent 70%),
    var(--surface-2);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 30px -22px rgba(0, 0, 0, 0.9);
}
.jackpots li::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: rgb(var(--tier));
  pointer-events: none;
}
.jackpots span {
  color: var(--tier-label);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.jackpots strong {
  color: var(--cream);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.jackpots .jp-grand { --tier: 245, 194, 74; --tier-label: var(--gold); --tier-glow: 0.2; }
.jackpots .jp-major { --tier: 232, 67, 79; --tier-label: var(--red-2); }
.jackpots .jp-minor { --tier: 143, 99, 230; --tier-label: #c3a8ff; }
.jackpots .jp-mini { --tier: 121, 217, 142; --tier-label: #9bd9a8; --tier-glow: 0.1; border-color: rgba(121, 217, 142, 0.25); }
.jackpots .jp-mini::after { opacity: 0.6; }

/* ---------- Callouts ---------- */
.callout {
  position: relative;
  margin: 22px 0;
  padding: 16px 20px 16px 54px;
  border: 1px solid rgba(245, 194, 74, 0.32);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(245, 194, 74, 0.11), rgba(245, 194, 74, 0.03));
  color: var(--text-soft);
  font-size: 0.98rem;
}
.callout::before {
  content: "!";
  content: "!" / "";
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 12px -2px rgba(245, 194, 74, 0.7);
}
.review--prose .callout strong { color: var(--gold-2); }

/* ---------- How to play ---------- */
.howto {
  margin: 22px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.howto li {
  position: relative;
  max-width: calc(68ch + 58px);
  min-height: 40px;
  padding: 7px 0 20px 58px;
  color: var(--text-soft);
  counter-increment: step;
}
.howto li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--gold-ink);
  font-weight: 900;
  box-shadow: 0 0 0 5px rgba(245, 194, 74, 0.12);
}
.howto li::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: rgba(245, 194, 74, 0.35);
}
.howto li:last-child { padding-bottom: 6px; }
.howto li:last-child::after { display: none; }

/* ---------- Demo panel ---------- */
.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border-color: rgba(245, 194, 74, 0.32);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(232, 67, 79, 0.24), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(245, 194, 74, 0.14), transparent 60%),
    linear-gradient(180deg, #34184a, #261232);
}
.demo-text { min-width: 0; }
.demo-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.demo-text .btn { margin-top: 8px; }
.demo-panel > img {
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 650;
  object-fit: cover;
  border-radius: 26px;
  border: 5px solid #120617;
  background: var(--surface-3);
  box-shadow: 0 0 0 1px rgba(245, 194, 74, 0.4), 0 30px 50px -24px rgba(0, 0, 0, 0.9), 0 0 60px -10px rgba(245, 194, 74, 0.35);
  transform: rotate(3deg);
}

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 24px 0 8px;
}
.shots-main { grid-column: 1 / -1; }
.shots .shots-main img { border-radius: 18px; }

/* ---------- About / FAQ / responsible ---------- */
.about-review {
  border-style: dashed;
  border-color: rgba(245, 194, 74, 0.3);
  background: linear-gradient(180deg, rgba(38, 18, 50, 0.85), rgba(30, 13, 40, 0.85));
}
.about-review::after {
  content: "\2713";
  position: absolute;
  top: clamp(20px, 3vw, 32px);
  right: clamp(20px, 3vw, 32px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 194, 74, 0.5);
  color: var(--gold);
  font-weight: 900;
}
.about-review h2 { padding-right: 44px; }

.faq-block h2 { margin-bottom: 20px; }
.faq-item {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(22, 9, 32, 0.4);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] {
  border-color: rgba(245, 194, 74, 0.35);
  background: rgba(245, 194, 74, 0.05);
}
.faq-item summary {
  position: relative;
  padding: 17px 60px 17px 20px;
  border-radius: 16px;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: rgba(245, 194, 74, 0.12);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--gold-ink);
}
.faq-item summary:hover { color: var(--gold-2); }
.faq-item > div { padding: 0 20px 18px; }
.review--prose .faq-item p { margin: 0; color: var(--text-soft); }

.safe-play {
  border-color: rgba(255, 122, 130, 0.38);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(232, 67, 79, 0.2), transparent 60%),
    linear-gradient(180deg, #33162f, #281128);
}
.safe-play a {
  color: #fff;
  font-weight: 800;
  text-decoration-color: var(--red-2);
  text-decoration-thickness: 2px;
}
.safe-play a:hover { color: var(--red-2); }

/* ---------- Footer ---------- */
.bottombar {
  margin-top: 8px;
  padding-top: 56px;
  border-top: 1px solid rgba(245, 194, 74, 0.16);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(245, 194, 74, 0.07), transparent 70%),
    #110618;
  color: var(--muted);
  font-size: 0.95rem;
}
.bottombar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.bottombar-about p { max-width: 36ch; margin: 16px 0 0; }
.bottombar nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.bottombar nav strong {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bottombar nav a,
.bottombar nav button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.bottombar nav a:hover,
.bottombar nav button:hover { color: var(--gold-2); text-decoration: underline; }

.bottombar-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 44px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.bottombar-legal p { margin: 0; }
.bottombar-legal p:first-child { margin-right: auto; }
.bottombar-legal strong {
  padding: 1px 7px;
  margin-right: 4px;
  border: 1.5px solid var(--red-2);
  border-radius: 999px;
  color: var(--red-2);
  font-size: 0.75rem;
}

.lang-flag {
  display: inline-flex;
  border-radius: 5px;
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lang-flag img { width: 30px; height: 20px; border-radius: 5px; }
.lang-flag:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold); }
.lang-flag:focus-visible { border-radius: 5px; }

/* ---------- Demo dialog ---------- */
.demo-modal {
  width: min(1120px, 100% - 48px);
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid rgba(245, 194, 74, 0.32);
  border-radius: 22px;
  background: linear-gradient(180deg, #2c1439, #1d0c27);
  color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.demo-modal::backdrop {
  background: radial-gradient(circle at 50% 30%, rgba(46, 16, 60, 0.75), rgba(8, 2, 12, 0.92));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.demo-modal[open] { animation: modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.demo-modal-box {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
.demo-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 22px;
  border-bottom: 1px solid var(--line);
}
.demo-modal-head div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.demo-modal-head span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.demo-modal-head strong {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.3;
}
.demo-modal-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.demo-modal-x:hover { background: var(--gold); color: var(--gold-ink); transform: rotate(90deg); }
.demo-modal-x:focus-visible { border-radius: 50%; }

.demo-modal-screen {
  position: relative;
  flex: none;
  height: min(630px, calc((100vw - 48px) * 0.5625), calc(100vh - 190px));
  min-height: 220px;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 194, 74, 0.12), transparent 55%),
    #0b030f;
}
.demo-modal-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-modal-wait {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  color: var(--text-soft);
  font-weight: 650;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 194, 74, 0.14), transparent 55%),
    #0b030f;
}
.demo-modal-wait[hidden] { display: none; }
.demo-modal-wait span {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(245, 194, 74, 0.2);
  border-top-color: var(--gold);
  border-right-color: var(--red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.demo-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px 16px 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.demo-modal-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: var(--gold-ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.demo-modal-foot a:hover { color: var(--gold-ink); filter: brightness(1.06); }
.demo-modal-foot a:focus-visible { border-radius: 999px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Casino rows adapt to the width of their own list, not the viewport */
@container operators (max-width: 760px) {
  .operator { grid-template-columns: 150px minmax(0, 1fr); gap: 14px 18px; padding: 14px; }
  .operator-links { grid-column: 1 / -1; }
  .operator-links .pill { flex: 1 1 0; }
  /* Rank moves inline, in front of the casino name */
  .operator::before { display: none; }
  .operator-name::before {
    content: counter(operator, decimal-leading-zero);
    content: counter(operator, decimal-leading-zero) / "";
    margin-right: 0.45em;
    color: rgba(245, 194, 74, 0.78);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }
  .operator:first-child .operator-name::before { color: var(--gold); }
}
@container operators (max-width: 440px) {
  .operator {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 12px;
  }
  .operator-plate { height: 58px; padding: 8px 10px; border-radius: 12px; }
  .operator-logo { max-height: 34px; }
  .review--prose .operator-name,
  .operator-name { font-size: 1.04rem; }
  .operator-offer { font-size: 0.88rem; }
}
@container operators (max-width: 300px) {
  .operator { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .review-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sidebar-index {
    position: relative;
    top: auto;
    max-height: none;
    overflow: hidden;
    padding: 14px 0 14px 14px;
    background: rgba(38, 18, 50, 0.85);
  }
  .sidebar-index > strong { margin: 0 0 8px 4px; }
  .sidebar-index nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 14px 4px 2px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .sidebar-index nav::-webkit-scrollbar { display: none; }
  .sidebar-index a {
    flex: none;
    gap: 8px;
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.88rem;
  }
  .sidebar-index a[aria-current] { border-color: rgba(245, 194, 74, 0.5); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .burger { display: block; }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 10px var(--gutter) 22px;
    border-bottom: 1px solid rgba(245, 194, 74, 0.2);
    background: #14081d;
    /* dims the page under the open panel; clipped so the bar itself stays bright */
    box-shadow: 0 0 0 100vmax rgba(8, 2, 12, 0.6);
    clip-path: inset(0 -100vmax -100vmax -100vmax);
  }
  .burger[aria-expanded="true"] + .menu {
    display: flex;
    animation: menu-in 0.22s ease-out;
  }
  /* Page behind the open menu does not scroll */
  html:has(.burger[aria-expanded="true"] + [data-menu-panel]:not([hidden])) { overflow: hidden; }
  .menu a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 1.05rem;
  }
  .menu a:not(.menu-cta) { border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu a:not(.menu-cta):hover { border-radius: 14px; }
  .menu .menu-cta {
    justify-content: center;
    margin: 14px 0 0;
    padding: 15px 20px;
  }

  .keyfacts-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-visual--framed { transform: none; }
  .intro-halo { width: 520px; height: 520px; top: -160px; right: -200px; opacity: 0.8; }
  .intro-text { max-width: 640px; }

  .demo-panel { grid-template-columns: minmax(0, 1fr) 190px; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .verdict-split,
  .metrics,
  .mechanics--4 { grid-template-columns: minmax(0, 1fr); }
  .jackpots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  /* Metrics: one compact row each, label left, value right */
  .metrics { gap: 10px; }
  .metrics > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 2px;
    padding: 14px 18px;
  }
  .metrics span { grid-column: 1; grid-row: 1; }
  .metrics small { grid-column: 1; grid-row: 2; }
  .metrics strong { grid-column: 2; grid-row: 1 / span 2; font-size: 1.6rem; }

  /* Feature cards: icon and title share the first row */
  .mechanics article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    padding: 18px 18px 16px;
  }
  .mechanics article > span { width: 48px; height: 48px; margin: 0; border-radius: 14px; font-size: 1.4rem; }
  .review--prose .mechanics h3 { margin: 0; }
  .review--prose .mechanics p { grid-column: 1 / -1; margin-top: 10px; }

  .demo-panel { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .demo-panel > img {
    width: 100%;
    max-width: 190px;
    justify-self: center;
    transform: none;
  }

  .bottombar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .bottombar-about { grid-column: 1 / -1; }
  .bottombar-legal p:first-child { flex-basis: 100%; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --radius: 18px; }
  body { font-size: 1rem; }

  .logo { font-size: 1.05rem; gap: 10px; }
  .logo img { width: 38px; height: 38px; border-radius: 11px; }

  .intro-grid { padding-block: 36px 76px; gap: 32px; }
  .intro h1 { margin: 16px 0 14px; }
  .intro-lead { margin-bottom: 24px; }
  .intro-actions .btn { flex: 1 1 100%; }
  .score { margin-top: 22px; }
  .intro-halo { width: 420px; height: 420px; top: -140px; right: -200px; }

  .keyfacts { margin-top: -40px; }
  .keyfacts-grid > div { padding: 14px 12px; }
  .keyfacts-grid span { font-size: 0.66rem; letter-spacing: 0.08em; }
  .keyfacts-grid strong { font-size: 1.08rem; }

  .block { padding-block: 32px 48px; }
  .review { gap: 18px; }
  .panel { padding: 24px 18px; }

  .bestfor { flex-direction: column; align-items: flex-start; gap: 10px; }

  .datasheet th,
  .datasheet td { padding: 11px 14px; }
  .datasheet th { width: 46%; }

  /* Paytable becomes stacked rows */
  .paytable thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .paytable tbody tr {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }
  .paytable tbody tr:last-child { border-bottom: 0; }
  .paytable td { padding: 0; border: 0; }
  .paytable-icon { grid-row: span 2; width: auto; }
  .paytable-icon img { width: 72px; height: 64px; }
  .paytable-name { width: auto; margin-bottom: 4px; }
  .paytable td:last-child { font-size: 0.93rem; color: var(--muted); }

  .plus-col,
  .minus-col { padding: 18px 16px 6px; }

  .jackpots li { padding: 16px 8px 14px; }

  .howto li { padding-left: 52px; }

  .about-review::after { width: 30px; height: 30px; }

  .faq-item summary { padding: 15px 54px 15px 16px; }
  .faq-item > div { padding: 0 16px 16px; }

  /* Full-screen game on phones */
  .demo-modal {
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .demo-modal-box { height: 100%; }
  .demo-modal-head { padding: 10px 12px 10px 16px; }
  /* No backdrop to tap on a phone, and Escape is lost once the game has focus:
     give the close control a visible word and a full 44px target. */
  .demo-modal-x {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-width: 44px;
    height: 44px;
    padding: 0 16px 2px 12px;
    border-color: rgba(245, 194, 74, 0.45);
    border-radius: 999px;
    font-size: 1.5rem;
  }
  .demo-modal-x::after {
    content: "Chiudi";
    content: "Chiudi" / "";
    padding-top: 2px;
    font-size: 0.95rem;
    font-weight: 800;
  }
  .demo-modal-x:hover { transform: none; }
  .demo-modal-x:focus-visible { border-radius: 999px; }
  .demo-modal-screen { flex: 1 1 auto; height: auto; min-height: 0; }
  .demo-modal-foot { padding: 10px 12px 12px 16px; font-size: 0.8rem; }
  .demo-modal-foot a { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 359px) {
  .keyfacts-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cta-pulse,
  .intro-halo { animation: none !important; }
  .demo-modal-wait span { animation: spin 1.6s linear infinite !important; }
}

@media (forced-colors: active) {
  .headline,
  .metrics strong,
  .score span { -webkit-text-fill-color: currentColor; color: CanvasText; background: none; }
  .btn,
  .pill { border: 1px solid ButtonText; }
}

@media print {
  .topbar,
  .sidebar-index,
  .demo-modal,
  .intro-halo { display: none !important; }
  body { background: #fff; color: #000; }
}
