/* =========================================================================
 * Tokens — app/theme.css
 * ========================================================================= */

/*
 * Design tokens. The only place with raw colour values (besides global-error, which renders
 * without the layout). Concept: a club games table — teal baize, brass fittings, a lamp of mint
 * light over the featured pick. Warm brass carries structure, ranks and everyday actions;
 * cool mint is the spotlight (top pick, focus, links).
 */
:root {
  /* Backgrounds */
  --bg-base: #061f20;
  --bg-elevated: #073b38;
  --bg-surface: #0a302f;
  --bg-card: #082a2a;
  --bg-card-strong: #0b3634;
  --bg-overlay: rgba(6, 31, 32, 0.86);

  /* Accents: teal–mint (cool) */
  --accent-teal: #006b61;
  --accent-jade: #00a995;
  --accent-mint: #42d9b0;
  --accent-mint-light: #8ef0c5;

  /* Accents: brass–gold (warm) */
  --accent-bronze: #b87919;
  --accent-amber: #e9a52a;
  --accent-gold: #ffc94f;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #d5e3dd;
  --text-muted: #9bb8ae;
  --text-inverse: #061f20;
  --text-inverse-soft: #073b38;

  /* Light surfaces */
  --surface-light: #f4f8f4;
  --surface-light-edge: #d5e3dd;

  /* Borders */
  --border-subtle: rgba(213, 227, 221, 0.1);
  --border-medium: rgba(213, 227, 221, 0.2);
  --border-brass: rgba(233, 165, 42, 0.55);
  --border-brass-soft: rgba(233, 165, 42, 0.28);
  --border-mint: rgba(66, 217, 176, 0.6);

  /* Gradients */
  --gradient-brass: linear-gradient(135deg, #b87919 0%, #e9a52a 45%, #ffc94f 100%);
  --gradient-brass-text: linear-gradient(100deg, #ffc94f 0%, #e9a52a 55%, #ffc94f 100%);
  --gradient-mint: linear-gradient(135deg, #00a995 0%, #42d9b0 50%, #8ef0c5 100%);
  --gradient-rule: linear-gradient(90deg, #b87919 0%, #e9a52a 30%, #42d9b0 70%, #00a995 100%);
  --gradient-rule-mirror: linear-gradient(
    90deg,
    rgba(184, 121, 25, 0) 0%,
    #e9a52a 22%,
    #42d9b0 50%,
    #e9a52a 78%,
    rgba(184, 121, 25, 0) 100%
  );
  --gradient-rim: linear-gradient(110deg, #42d9b0 0%, #ffc94f 25%, #8ef0c5 50%, #e9a52a 75%, #42d9b0 100%);
  --gradient-card: linear-gradient(165deg, #0b3634 0%, #072726 100%);
  --gradient-card-top: linear-gradient(165deg, #0d413d 0%, #082d2c 100%);
  --gradient-baize: radial-gradient(circle at 50% 30%, #0f4d47 0%, #073b38 55%, #052625 100%);
  --gradient-panel: linear-gradient(180deg, #0a3331 0%, #072827 100%);
  /* Logo ground: jade in the centre under the wordmark (dark teal and gold both read), deep teal at the edges. */
  --gradient-header: linear-gradient(90deg, #006b61 0%, #008f80 30%, #00a995 50%, #008f80 70%, #006b61 100%);

  /* Glows and shadows */
  --shadow-card: 0 18px 40px -26px rgba(0, 0, 0, 0.75);
  --glow-brass-soft: 0 10px 28px -14px rgba(233, 165, 42, 0.55);
  --glow-brass: 0 0 0 1px rgba(255, 201, 79, 0.35), 0 12px 30px -12px rgba(233, 165, 42, 0.6);
  --glow-mint: 0 0 0 1px rgba(142, 240, 197, 0.55), 0 0 24px rgba(66, 217, 176, 0.35);
  --glow-mint-strong: 0 0 0 1px rgba(142, 240, 197, 0.9), 0 0 44px rgba(66, 217, 176, 0.65);
  --halo-mint-from: 0 0 0 1px rgba(66, 217, 176, 0.25), 0 0 22px -6px rgba(66, 217, 176, 0.25);
  --halo-mint-to: 0 0 0 1px rgba(142, 240, 197, 0.5), 0 0 48px 2px rgba(66, 217, 176, 0.42);
  --text-glow-gold: 0 0 18px rgba(255, 201, 79, 0.35);

  /* Pattern and effects */
  --pattern-dot: rgba(142, 240, 197, 0.07);
  --pattern-dot-strong: rgba(142, 240, 197, 0.16);
  --shine: rgba(255, 255, 255, 0.5);
  --mask-fill: #000000;

  /* Radius (by hierarchy) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-icon: 22%;

  /* Layout */
  --page-gutter: 1.25rem;
  --container-max: 70rem;
}

/* Font families — app/fonts.ts (next/font set these variables on <html>; Google Fonts loads the faces). */
:root {
  --font-display: 'Unbounded';
  --font-body: 'Figtree';
}

/* =========================================================================
 * Reset — app/globals.css
 * ========================================================================= */

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

html {
  font-family: var(--font-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  background: var(--bg-base);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: transparent;
  color: var(--text-secondary);
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--font-display), system-ui, sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--accent-mint);
  color: var(--text-inverse);
}

:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 3px;
}

#top-picks,
#compare,
#how-it-works,
#categories {
  scroll-margin-top: 1.5rem;
}

.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;
}

@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;
  }
}

/* Hidden feature items carry `display: grid` from their class. */
[hidden] {
  display: none !important;
}

/* =========================================================================
 * Shell — app/page.module.css, SiteBackground, Header, Ball
 * ========================================================================= */

.page__main {
  flex: 1;
}

/* SiteBackground */
.siteBackground__root {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.siteBackground__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.siteBackground__lampStrong {
  stop-color: var(--accent-mint);
  stop-opacity: 0.2;
}

.siteBackground__lampSoft {
  stop-color: var(--accent-jade);
  stop-opacity: 0.06;
}

.siteBackground__lampNone {
  stop-color: var(--accent-jade);
  stop-opacity: 0;
}

.siteBackground__brassStrong {
  stop-color: var(--accent-amber);
  stop-opacity: 0.1;
}

.siteBackground__brassNone {
  stop-color: var(--accent-amber);
  stop-opacity: 0;
}

.siteBackground__dot {
  fill: var(--pattern-dot-strong);
}

.siteBackground__fadeFull {
  stop-color: var(--surface-light);
  stop-opacity: 1;
}

.siteBackground__fadeHalf {
  stop-color: var(--surface-light);
  stop-opacity: 0.4;
}

.siteBackground__fadeNone {
  stop-color: var(--surface-light);
  stop-opacity: 0;
}

/* Header */
/* The wordmark is dark teal and gold on transparency: a jade ground keeps both readable. */
.header__header {
  width: 100%;
  position: relative;
  background: var(--gradient-header);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.55rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__homeLink {
  display: inline-flex;
  align-items: center;
}

.header__logo {
  width: auto;
  height: 2.45rem;
}

.header__accentLine {
  height: 3px;
  background: var(--gradient-rule);
}

@media (min-width: 768px) {
  .header__inner {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .header__logo {
    height: 2.95rem;
  }
}

/* Ball */
.ball__ball {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  overflow: visible;
}

.ball__shell {
  stroke-width: 1;
}

.ball__shine {
  fill: var(--shine);
  opacity: 0.55;
}

.ball__disc {
  fill: var(--surface-light);
}

.ball__label {
  font-family: var(--font-display), system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  fill: var(--text-inverse);
}

.ball__labelSmall {
  font-size: 10px;
  letter-spacing: -0.03em;
}

.ball__brass .ball__shell {
  fill: var(--accent-amber);
  stroke: var(--accent-gold);
}

.ball__mint .ball__shell {
  fill: var(--accent-jade);
  stroke: var(--accent-mint-light);
}

.ball__outline .ball__shell {
  fill: var(--bg-elevated);
  stroke: var(--border-brass);
  stroke-width: 1.5;
}

.ball__outline .ball__disc {
  fill: transparent;
}

.ball__outline .ball__label {
  fill: var(--accent-gold);
}

/* =========================================================================
 * Page blocks — Hero, Offers, Offer, BonusDisplay, Rating, Sections, ImportantNotice
 * ========================================================================= */

/* Hero */
.hero__hero {
  /* Kept compact by content (target: under 30dvh); offers follow straight after. */
  padding: 1.25rem var(--page-gutter) 0.75rem;
  display: flex;
  align-items: center;
}

.hero__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero__badgeBall {
  width: 1.75rem;
  height: 1.75rem;
}

.hero__title {
  font-size: clamp(1.45rem, 1.05rem + 1.9vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  max-width: 22ch;
}

.hero__accent {
  background: var(--gradient-brass-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__description {
  max-width: 58ch;
  font-size: clamp(0.92rem, 0.86rem + 0.3vw, 1.05rem);
  line-height: 1.5;
  color: var(--text-secondary);
}

.hero__cta {
  display: none;
}

.hero__ctaIcon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 768px) {
  .hero__hero {
    padding-top: 1.6rem;
    padding-bottom: 0.9rem;
  }

  .hero__inner {
    gap: 0.7rem;
  }

  .hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-mint-light);
    border-bottom: 1px solid var(--border-mint);
    padding-bottom: 0.1rem;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .hero__cta:hover {
    color: var(--text-primary);
    border-color: var(--accent-mint-light);
  }
}

/* Offers */
.offers__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.offers__promoSection {
  padding: 1.25rem 0 1.5rem;
}

.offers__promoGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
}

.offers__ageNote {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.offers__ageBall {
  width: 1.75rem;
  height: 1.75rem;
}

.offers__promoSectionEnd {
  width: 100%;
  height: 1px;
}

/* Offer */
/* ── Base card ─────────────────────────────────────────── */
.offer__promoCard {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}

.offer__promoCard:not(.offer__rank1):hover {
  border-color: var(--border-brass);
}

/* ── Rank 1: breathing mint halo + drifting brass–mint rim ── */
.offer__rank1 {
  border: 1.5px solid transparent;
  background:
    var(--gradient-card-top) padding-box,
    var(--gradient-rim) border-box;
  background-size:
    100% 100%,
    300% 100%;
  animation:
    rimDrift 5s ease-in-out infinite alternate,
    haloBreath 2.2s ease-in-out infinite alternate;
}

@keyframes rimDrift {
  from {
    background-position:
      0 0,
      0 50%;
  }
  to {
    background-position:
      0 0,
      100% 50%;
  }
}

@keyframes haloBreath {
  from {
    box-shadow: var(--halo-mint-from);
  }
  to {
    box-shadow: var(--halo-mint-to);
  }
}

/* ── Ranks 2 and 3: identical, static brass rim ─────────── */
.offer__rank23 {
  border-color: var(--border-brass);
  box-shadow: var(--shadow-card), var(--glow-brass-soft);
}

/* ── Rank badge: a tag hanging from the top edge ─────────── */
.offer__badge {
  position: absolute;
  top: -0.8rem;
  right: 1rem;
  z-index: 3;
  pointer-events: none;
  padding: 0.32rem 0.75rem 0.32rem 1.35rem;
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: var(--radius-xs) var(--radius-xs) var(--radius-sm) var(--radius-sm);
}

/* Punched hole of the tag. */
.offer__badge::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.21rem;
  border-radius: 50%;
  background: var(--bg-base);
}

.offer__badgeTop1 {
  background: var(--gradient-brass);
  color: var(--text-inverse);
  box-shadow: var(--glow-brass);
  transform-origin: 50% -0.6rem;
  animation: tagSwing 1.6s ease-in-out infinite alternate;
}

@keyframes tagSwing {
  from {
    transform: rotate(-3deg);
  }
  to {
    transform: rotate(3deg);
  }
}

.offer__badgeTop23 {
  background: var(--bg-elevated);
  color: var(--accent-gold);
  border: 1px solid var(--border-brass);
}

/* ── Card overlay link ─────────────────────────────────── */
.offer__cardLink {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* ── Card inner grid container ─────────────────────────── */
.offer__cardInner {
  display: grid;
  column-gap: 0.9rem;
  row-gap: 0.75rem;
  padding: 1.2rem 1rem 1rem;
  position: relative;
  pointer-events: none;
}

.offer__modeGames .offer__cardInner {
  grid-template-columns: 4.5rem minmax(0, 1fr);
  grid-template-areas:
    'logo main'
    'logo rating'
    'bonus bonus'
    'details details'
    'cta cta';
}

/* ── Logo cell: baize gradient with a dot texture ──────── */
.offer__logoArea {
  grid-area: logo;
  position: relative;
  align-self: start;
}

.offer__logoCell {
  display: grid;
  place-items: center;
  border: 1px solid var(--border-brass-soft);
  background:
    radial-gradient(var(--pattern-dot-strong) 0.9px, transparent 1.3px) 0 0 / 7px 7px,
    var(--gradient-baize);
}

.offer__modeGames .offer__logoCell {
  width: 4.5rem;
  aspect-ratio: 1;
  padding: 0.3rem;
  border-radius: var(--radius-icon);
}

.offer__modeGames .offer__logo {
  width: 100%;
  height: auto;
  border-radius: 18%;
}

.offer__rankBall {
  position: absolute;
  top: -0.6rem;
  left: -0.6rem;
  width: 1.9rem;
  height: 1.9rem;
  filter: drop-shadow(0 3px 6px var(--bg-base));
}

/* ── Name and tags (games) ─────────────────────────────── */
.offer__mainArea {
  grid-area: main;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-width: 0;
}

.offer__name {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

.offer__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Ticket stubs: side notches cut with a mask, small radius. */
.offer__tag {
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent-mint-light);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent 3.5px, var(--mask-fill) 4px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 3.5px, var(--mask-fill) 4px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 50%, transparent 3.5px, var(--mask-fill) 4px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 3.5px, var(--mask-fill) 4px) right / 51% 100% no-repeat;
}

.offer__tagSkill {
  color: var(--accent-gold);
  border-color: var(--border-brass-soft);
}

/* ── Bonus / description ───────────────────────────────── */
.offer__bonusArea {
  grid-area: bonus;
  display: flex;
  align-items: center;
  min-width: 0;
}

.offer__ratingArea {
  grid-area: rating;
  align-self: start;
}

/* ── Features and facts / payments: side by side on mobile ── */
.offer__detailsArea {
  grid-area: details;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.offer__featuresArea,
.offer__extraArea {
  min-width: 0;
}

.offer__featureList {
  display: grid;
  gap: 0.4rem;
}

.offer__features {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.offer__featureItem {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.4rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.offer__featureIcon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--accent-mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offer__featureToggle {
  justify-self: start;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-mint-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

.offer__facts {
  display: grid;
  gap: 0.55rem;
}

.offer__fact {
  padding-left: 0.65rem;
  border-left: 2px solid var(--border-brass-soft);
}

.offer__fact dt {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.offer__fact dd {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* ── CTA: styled div, the overlay link takes the click ─── */
.offer__ctaArea {
  grid-area: cta;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--gradient-brass);
  color: var(--text-inverse);
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--glow-brass-soft);
  transition: filter 0.2s ease;
}

.offer__ctaArea::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, var(--shine) 50%, transparent 70%);
  background-size: 250% 100%;
  opacity: 0.6;
  animation: ctaSheen 2.8s ease-in-out infinite alternate;
}

@keyframes ctaSheen {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -30% 0;
  }
}

.offer__ctaIcon {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentColor;
}

.offer__promoCard:hover .offer__ctaArea {
  filter: brightness(1.07);
}

.offer__rank1 .offer__ctaArea {
  background: var(--gradient-mint);
  box-shadow: var(--glow-mint);
  animation: ctaPulse 1.4s ease-in-out infinite alternate;
}

@keyframes ctaPulse {
  from {
    box-shadow: var(--glow-mint);
  }
  to {
    box-shadow: var(--glow-mint-strong);
  }
}

/* ── Desktop: one horizontal row ───────────────────────── */
@media (min-width: 900px) {
  .offer__cardInner {
    column-gap: 1.4rem;
    row-gap: 0.55rem;
    padding: 1.4rem 1.5rem;
    align-items: center;
  }

  .offer__modeGames .offer__cardInner {
    grid-template-columns: 6rem minmax(0, 1.3fr) minmax(0, 1.15fr) minmax(0, 1fr) 11rem;
    grid-template-areas:
      'logo main features extra rating'
      'logo bonus features extra cta';
  }

  .offer__logoArea {
    align-self: center;
  }

  .offer__modeGames .offer__logoCell {
    width: 6rem;
  }

  .offer__mainArea {
    align-self: end;
  }

  .offer__modeGames .offer__bonusArea {
    align-self: start;
  }

  .offer__name {
    font-size: 1.12rem;
  }

  .offer__ratingArea {
    align-self: end;
    justify-self: center;
  }

  .offer__detailsArea {
    display: contents;
  }

  .offer__featuresArea {
    grid-area: features;
    padding-left: 1.4rem;
    border-left: 1px solid var(--border-subtle);
  }

  .offer__extraArea {
    grid-area: extra;
  }

  .offer__modeGames .offer__ctaArea {
    align-self: start;
  }

  .offer__rankBall {
    width: 2.1rem;
    height: 2.1rem;
  }
}

/* BonusDisplay */
.bonusDisplay__description {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Rating */
.rating__rating {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    'stars value'
    'label label';
  align-items: center;
  justify-content: start;
  column-gap: 0.5rem;
  row-gap: 0.1rem;
}

.rating__stars {
  grid-area: stars;
  position: relative;
  display: inline-block;
  line-height: 0;
}

.rating__empty,
.rating__filled {
  display: inline-flex;
  gap: 0.12rem;
}

.rating__fillClip {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  white-space: nowrap;
}

.rating__star {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.rating__empty .rating__star path {
  fill: var(--bg-elevated);
  stroke: var(--border-brass);
  stroke-width: 1;
}

.rating__filled .rating__star path {
  fill: var(--accent-gold);
  stroke: var(--accent-amber);
  stroke-width: 0.8;
}

.rating__value {
  grid-area: value;
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rating__label {
  grid-area: label;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.rating__compact .rating__star {
  width: 0.8rem;
  height: 0.8rem;
}

.rating__compact .rating__value {
  font-size: 0.85rem;
}

/* Sections */
/* Shared by GameSections and CasinoSections: same ids, same layout, different copy. */

.sections__section {
  padding: 2.75rem 0;
}

.sections__sectionTinted {
  background: linear-gradient(180deg, transparent 0%, var(--bg-surface) 18%, var(--bg-surface) 82%, transparent 100%);
}

.sections__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.sections__head {
  display: grid;
  gap: 0.65rem;
  max-width: 46rem;
  margin-bottom: 1.6rem;
}

.sections__title {
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
}

.sections__lead {
  max-width: 64ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Comparison table: a ledger with a pinned first column ── */
.sections__swipeHint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sections__swipeIcon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent-amber);
}

.sections__tableShell {
  position: relative;
  border: 1px solid var(--border-brass-soft);
  border-radius: var(--radius-lg);
  background: var(--gradient-panel);
  overflow: hidden;
}

/* Edge fade hints that the table scrolls sideways. */
.sections__tableShell::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2rem;
  background: linear-gradient(90deg, transparent, var(--bg-card));
  pointer-events: none;
}

.sections__tableScroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--border-brass) transparent;
  scrollbar-width: thin;
}

.sections__table {
  width: 100%;
  min-width: 56rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.sections__caption {
  caption-side: bottom;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.sections__table thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-gold);
  white-space: nowrap;
  background: var(--bg-card-strong);
  border-bottom: 1px solid var(--border-brass-soft);
}

.sections__table tbody th,
.sections__table tbody td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: middle;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.sections__table tbody tr:last-child th,
.sections__table tbody tr:last-child td {
  border-bottom: 0;
}

.sections__table thead th:first-child,
.sections__table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 0 var(--border-subtle);
}

.sections__table tbody th {
  background: var(--bg-card);
  min-width: 12.5rem;
}

.sections__rowTop th,
.sections__rowTop td {
  background: var(--bg-card-strong);
}

.sections__table tbody .sections__rowTop th {
  background: var(--bg-card-strong);
  box-shadow:
    inset 3px 0 0 var(--accent-mint),
    1px 0 0 var(--border-subtle);
}

.sections__gameLink {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sections__gameLink:hover span:last-child {
  color: var(--accent-mint-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sections__gameThumb {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: var(--radius-icon);
}

/* ── Steps: numbered balls on a dotted brass run ────────── */
.sections__track {
  list-style: none;
  position: relative;
  display: grid;
  gap: 1.4rem;
}

.sections__step {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

/* Vertical run between balls on mobile. */
.sections__step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: calc(1.375rem - 1px);
  top: 3rem;
  bottom: -1.3rem;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--accent-amber) 0 4px, transparent 4px 10px);
  opacity: 0.7;
}

.sections__stepBall {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
}

.sections__stepBody {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.35rem;
}

.sections__stepTitle {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sections__stepText {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ── Mosaic of tiles plus an aside panel ────────────────── */
.sections__mosaic {
  display: grid;
  gap: 1rem;
}

.sections__tile {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(var(--pattern-dot) 1px, transparent 1.4px) 0 0 / 10px 10px,
    var(--bg-card);
}

.sections__tileIcon {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--accent-amber);
}

.sections__tileTitle {
  font-size: 1.02rem;
  font-weight: 700;
}

.sections__tileText {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.sections__tileGames {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.sections__tileGame {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-mint-light);
  text-decoration: underline;
  text-decoration-color: var(--border-mint);
  text-underline-offset: 3px;
}

.sections__tileGame:hover {
  color: var(--text-primary);
}

.sections__aside {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-brass-soft);
  border-top: 3px solid var(--accent-amber);
  background: var(--gradient-panel);
}

.sections__asideIcon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--accent-mint);
}

.sections__asideTitle {
  font-size: 1.05rem;
  font-weight: 700;
}

.sections__asideText {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sections__asideList {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.sections__asideList li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.sections__asideList li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--accent-amber);
  transform: rotate(45deg);
}

@media (min-width: 640px) {
  .sections__mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sections__aside {
    grid-column: span var(--aside-span-2, 1);
  }
}

@media (min-width: 900px) {
  .sections__section {
    padding: 3.5rem 0;
  }

  .sections__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  /* One horizontal run behind the balls, from the first centre to the last. */
  .sections__track::before {
    content: '';
    position: absolute;
    top: calc(1.6rem - 1px);
    left: 1.6rem;
    right: calc((100% - 4.5rem) / 4 - 1.6rem);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-amber) 0 4px, transparent 4px 10px);
    opacity: 0.7;
  }

  .sections__step {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .sections__step:not(:last-child)::before {
    content: none;
  }

  .sections__stepBall {
    width: 3.2rem;
    height: 3.2rem;
  }

  .sections__stepBody {
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .sections__mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sections__aside {
    grid-column: span var(--aside-span-3, 1);
  }
}

@media (min-width: 960px) {
  .sections__swipeHint {
    display: none;
  }

  .sections__tableShell::after {
    content: none;
  }
}

/* ImportantNotice */
.importantNotice__section {
  padding: 1rem 0 2.5rem;
}

.importantNotice__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

/* A notice board in a double brass frame. */
.importantNotice__board {
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-lg);
  background: var(--gradient-panel);
  box-shadow:
    0 0 0 5px var(--bg-base),
    0 0 0 6px var(--border-brass-soft),
    var(--shadow-card);
}

.importantNotice__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.importantNotice__icon {
  width: 2.4rem;
  height: 2.4rem;
}

.importantNotice__title {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
}

.importantNotice__body {
  display: grid;
  gap: 0.75rem;
}

.importantNotice__text {
  max-width: 78ch;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.importantNotice__age {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  line-height: 1.45;
}

.importantNotice__age strong {
  font-weight: 600;
  color: var(--text-primary);
}

.importantNotice__ageBall {
  width: 2.1rem;
  height: 2.1rem;
}

@media (min-width: 768px) {
  .importantNotice__board {
    padding: 2rem 2.25rem;
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: 2.5rem;
    align-items: start;
  }

  .importantNotice__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .importantNotice__icon {
    width: 3rem;
    height: 3rem;
  }

  .importantNotice__age {
    grid-column: 2;
  }
}

/* =========================================================================
 * Footer
 * ========================================================================= */

.footer__footer {
  margin-top: auto;
  padding-top: 2.5rem;
  color: var(--text-secondary);
}

/* Brass–mint ribbon with a glow and a brass ball in the middle. */
.footer__divider {
  position: relative;
  height: 3px;
  background: var(--gradient-rule-mirror);
  box-shadow: 0 0 18px var(--border-brass-soft);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__dividerBall {
  width: 1.25rem;
  height: 1.25rem;
  overflow: visible;
}

.footer__dividerBall circle {
  fill: var(--accent-amber);
  stroke: var(--accent-gold);
  stroke-width: 1;
}

.footer__dividerBall ellipse {
  fill: var(--shine);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.25rem var(--page-gutter) 1.5rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__brand {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  align-content: start;
}

.footer__logoTab {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  background: var(--gradient-header);
  border-radius: var(--radius-md);
  box-shadow: inset 0 -3px 0 var(--accent-amber);
}

.footer__logo {
  width: auto;
  height: 2.1rem;
}

.footer__description {
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer__email {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-mint-light);
  border-bottom: 1px solid var(--border-mint);
  overflow-wrap: anywhere;
}

.footer__email:hover {
  color: var(--text-primary);
}

.footer__column {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.footer__columnTitle {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-gold);
}

.footer__list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer__link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--accent-mint-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  display: grid;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer__disclosure strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer__copy {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer__bottom {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 2rem;
  }
}

/* =========================================================================
 * Legal pages — LegalPage
 * ========================================================================= */

.legalPage__page {
  flex: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem var(--page-gutter) 3.5rem;
}

.legalPage__article {
  max-width: 46rem;
}

.legalPage__article h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
}

.legalPage__intro {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-amber);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.legalPage__article h2 {
  margin: 2.1rem 0 0.65rem;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.legalPage__article p,
.legalPage__article li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legalPage__article p + p {
  margin-top: 0.75rem;
}

.legalPage__article ul {
  display: grid;
  gap: 0.4rem;
  margin: 0.6rem 0;
  padding-left: 1.25rem;
}

.legalPage__article li::marker {
  color: var(--accent-amber);
}

.legalPage__article a {
  color: var(--accent-mint-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legalPage__article a:hover {
  color: var(--text-primary);
}

.legalPage__article strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* =========================================================================
 * 404 — app/not-found.module.css
 * ========================================================================= */

.notFound__page {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 4rem var(--page-gutter);
  text-align: center;
}

.notFound__code {
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brass-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notFound__title {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
}

.notFound__text {
  max-width: 42ch;
  color: var(--text-secondary);
}

.notFound__link {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--gradient-brass);
  color: var(--text-inverse);
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}
