/* ═══ Tokens (app/theme.css) ═══════════════════════════════ */

/*
 * SkillPlay Guide — design tokens.
 * The only place with raw colour values: every module reads these variables.
 * Cold accents (blue, cyan) carry data and structure, warm accents (gold, amber, flame)
 * carry action and rank — the same split as "Skill / Play" in the logo.
 */
:root {
  /* Backgrounds */
  --bg-base: #061838;
  --bg-elevated: #0b2a5b;
  --bg-surface: #0e3270;
  --bg-card: #0c2c62;
  --bg-card-strong: #103a7c;
  --bg-overlay: rgba(3, 12, 30, 0.78);

  /* Accents */
  --accent-blue: #1677d2;
  --accent-cyan: #21c7e8;
  --accent-gold: #ffc928;
  --accent-amber: #ff9f1c;
  --accent-flame: #ff6b1a;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #d9e3ef;
  --text-muted: #9db5d8;
  --text-inverse: #0b2a5b;
  --text-inverse-muted: #3a5684;

  /* Light surfaces (logo plate, notice panel) */
  --surface-light: #f5f8fc;
  --surface-white: #ffffff;

  /* Borders */
  --border-light: #d9e3ef;
  --border-subtle: rgba(217, 227, 239, 0.12);
  --border-medium: rgba(217, 227, 239, 0.22);
  --border-strong: #123f8c;
  --border-cyan: rgba(33, 199, 232, 0.55);

  /* Gradients */
  --gradient-warm: linear-gradient(100deg, #ffc928 0%, #ff9f1c 48%, #ff6b1a 100%);
  --gradient-cool: linear-gradient(135deg, #21c7e8 0%, #1677d2 100%);
  --gradient-cool-deep: linear-gradient(150deg, #1677d2 0%, #123f8c 58%, #0b2a5b 100%);
  --gradient-stripe: linear-gradient(
    90deg,
    #1677d2 0 34%,
    #21c7e8 34% 58%,
    #ffc928 58% 78%,
    #ff6b1a 78% 100%
  );
  --gradient-card: linear-gradient(160deg, #0e3270 0%, #0b2a5b 100%);

  /* Glows */
  --glow-cool: 0 0 0 1px rgba(33, 199, 232, 0.35), 0 10px 32px -12px rgba(33, 199, 232, 0.45);
  --glow-cool-soft: 0 6px 22px -10px rgba(33, 199, 232, 0.6);
  --glow-warm: 0 0 26px -2px rgba(255, 159, 28, 0.75), 0 0 54px -6px rgba(255, 107, 26, 0.55);
  --glow-warm-soft: 0 0 14px -4px rgba(255, 159, 28, 0.55);
  --shadow-card: 0 18px 40px -26px rgba(0, 0, 0, 0.7);
  --text-glow-warm: 0 0 18px rgba(255, 159, 28, 0.35);

  /* Pattern ink */
  --pattern-line: rgba(217, 227, 239, 0.05);
  --pattern-line-strong: rgba(255, 255, 255, 0.14);
  --shine: rgba(255, 255, 255, 0.4);

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --skew: -12deg;
  --skew-reverse: 12deg;

  /* Layout */
  --page-gutter: 1rem;
  --container-max: 72rem;
  --header-height: 4.25rem;
}

/* ═══ Fonts (app/fonts.ts, next/font variables) ════════════ */

/* Metric-matched fallback generated by next/font for Saira. */
@font-face {
  font-family: 'Saira Fallback';
  src: local(Arial);
  ascent-override: 109.52%;
  descent-override: 42.36%;
  line-gap-override: 0%;
  size-adjust: 103.63%;
}

:root {
  --font-display: 'Saira', 'Saira Fallback';
  --font-body: 'Atkinson Hyperlegible Next', system-ui, Segoe UI, Arial, sans-serif;
}

/* ═══ Reset (app/globals.css) ══════════════════════════════ */

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

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

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 {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  /* Transparent so the fixed SiteBackground (z-index -1) shows over the html background. */
  background: transparent;
  color: var(--text-secondary);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display), var(--font-body), sans-serif;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

/* Angle of the running light around the top-ranked card. */
@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

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

/* Anchor targets of the footer navigation: same ids in both content modes. */
#auswahl,
#vergleich,
#funktionsweise,
#kategorien {
  scroll-margin-top: 1.5rem;
}

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

/* Feature items hidden behind "Mehr anzeigen" are display: grid; keep [hidden] effective. */
[hidden] {
  display: none !important;
}

/* ═══ SiteBackground ═══════════════════════════════════════ */

.bg-root {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg-base);
}

.bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bg-glowCoolStop {
  stop-color: var(--accent-cyan);
  stop-opacity: 0.16;
}

.bg-glowWarmStop {
  stop-color: var(--accent-amber);
  stop-opacity: 0.11;
}

.bg-glowEndStop {
  stop-color: var(--bg-base);
  stop-opacity: 0;
}

.bg-line {
  stroke: var(--pattern-line);
  stroke-width: 1;
}

.bg-fadeStart {
  stop-color: var(--surface-white);
  stop-opacity: 1;
}

.bg-fadeMid {
  stop-color: var(--surface-white);
  stop-opacity: 0.35;
}

.bg-fadeEnd {
  stop-color: var(--surface-white);
  stop-opacity: 0;
}

/* ═══ Header ═══════════════════════════════════════════════ */

.header {
  width: 100%;
}

.header-bar {
  background: var(--bg-elevated);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.6rem var(--page-gutter);
  display: flex;
  align-items: center;
}

/* The wordmark is dark navy on transparent: it always sits on a light slanted plate. */
.header-logoPlate {
  display: inline-flex;
  padding: 0.3rem 1rem;
  background: var(--surface-light);
  transform: skewX(var(--skew));
  box-shadow: 0.35rem 0 0 var(--accent-amber);
  transition: box-shadow 0.2s ease;
}

.header-logoPlate:hover {
  box-shadow: 0.5rem 0 0 var(--accent-flame);
}

.header-logoPlateInner {
  display: inline-flex;
  transform: skewX(var(--skew-reverse));
}

.header-logo {
  width: auto;
  height: 2.5rem;
}

/* Accent line under the bar: the logo's four colours. */
.header-accentLine {
  height: 3px;
  background: var(--gradient-stripe);
}

@media (min-width: 768px) {
  .header-logo {
    height: 3rem;
  }
}

/* ═══ Home page (app/page.module.css) ══════════════════════ */

.page-main {
  flex: 1;
}

.page-adNotice {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.page-adNotice strong {
  color: var(--text-secondary);
}

.page-adNoticeLink {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ═══ Hero ═════════════════════════════════════════════════ */

.hero {
  /* Compact by design: stays under 30dvh on common viewports without clipping content. */
  display: flex;
  align-items: center;
  padding-block: 1rem 0.75rem;
}

.hero-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
  display: grid;
  gap: 0.75rem;
  align-items: end;
}

.hero-copy {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  min-width: 0;
}

/* Slanted plate: the logo's angle, used for every badge on the site. */
.hero-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-cyan);
  transform: skewX(var(--skew));
}

.hero-badgeText {
  display: inline-block;
  transform: skewX(var(--skew-reverse));
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
}

.hero-title {
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.05rem);
  font-style: italic;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.05;
}

.hero-titleAccent {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.hero-description {
  max-width: 60ch;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.hero-cta {
  display: none;
}

.hero-ctaText,
.hero-ctaIcon {
  transform: skewX(var(--skew-reverse));
}

@media (min-width: 768px) {
  .hero {
    padding-block: 1.75rem 1.25rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }

  .hero-badgeText {
    font-size: 0.8rem;
  }

  .hero-description {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--border-cyan);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--font-display), sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1rem;
    transform: skewX(var(--skew));
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .hero-cta:hover {
    background: var(--bg-surface);
    box-shadow: var(--glow-cool-soft);
  }

  .hero-ctaText {
    display: inline-block;
  }

  .hero-ctaIcon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* ═══ Offers ═══════════════════════════════════════════════ */

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

.offers-promoSection {
  padding: 1rem 0 2.5rem;
}

.offers-promoGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  padding-top: 0.75rem;
}

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

.offers-ageNotice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.offers-ageMark {
  flex-shrink: 0;
  padding: 0 0.4rem;
  border: 1px solid var(--border-medium);
  transform: skewX(var(--skew));
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.offers-promoSectionEnd {
  width: 100%;
  height: 1px;
}

/* ═══ Offer card ═══════════════════════════════════════════ */

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

.offer-promoCard:hover {
  border-color: var(--border-medium);
}

/* ── Rank 1: running warm light around the border ─────── */
.offer-promoCardTop1 {
  border: 2px solid transparent;
  background:
    var(--gradient-card) padding-box,
    conic-gradient(
        from var(--spin),
        var(--accent-gold),
        var(--accent-flame) 18%,
        var(--border-strong) 34%,
        var(--accent-cyan) 52%,
        var(--border-strong) 68%,
        var(--accent-amber) 84%,
        var(--accent-gold)
      )
      border-box;
  box-shadow: var(--shadow-card), var(--glow-warm-soft);
  animation: cardSpin 6s linear infinite;
}

.offer-promoCardTop1:hover {
  border-color: transparent;
}

@keyframes cardSpin {
  from {
    --spin: 0deg;
  }
  to {
    --spin: 360deg;
  }
}

/* ── Ranks 2 and 3: identical, moderate, static ──────── */
.offer-promoCardTop23 {
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-card), var(--glow-cool);
}

.offer-promoCardTop23:hover {
  border-color: var(--accent-cyan);
}

/* ── Rank badges: slanted plates ──────────────────────── */
.offer-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  padding: 0.18rem 0.8rem;
  transform: skewX(var(--skew));
  z-index: 0;
  pointer-events: none;
}

.offer-badgeText {
  display: inline-block;
  transform: skewX(var(--skew-reverse));
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.35;
}

.offer-badgeTop1 {
  background-image:
    linear-gradient(100deg, transparent 35%, var(--shine) 50%, transparent 65%),
    var(--gradient-warm);
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  color: var(--text-inverse);
  box-shadow: var(--glow-warm-soft);
  animation: badgeShine 2.6s ease-in-out infinite alternate;
}

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

.offer-badgeTop23 {
  background: var(--accent-cyan);
  color: var(--text-inverse);
}

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

.offer-cardLink:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* ── Card inner grid (mobile first) ────────────────────── */
.offer-cardInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    'head     head'
    'features extra'
    'cta      cta'
    'terms    terms';
  gap: 0.85rem 0.9rem;
  padding: 1.35rem 1rem 1rem;
  position: relative;
  pointer-events: none;
}

.offer-modeGames .offer-cardInner {
  grid-template-areas:
    'head     head'
    'features extra'
    'cta      cta';
}

.offer-head {
  grid-area: head;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    'logo main'
    'logo rating';
  column-gap: 0.85rem;
  row-gap: 0.4rem;
  align-items: start;
}

/* ── Rank numeral ──────────────────────────────────────── */
.offer-rankArea {
  grid-area: logo;
  position: relative;
  z-index: 0;
  align-self: start;
  justify-self: start;
  margin: -0.35rem 0 0 -0.35rem;
  pointer-events: none;
}

.offer-rank {
  display: inline-block;
  min-width: 1.6rem;
  padding: 0 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  transform: skewX(var(--skew));
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  color: var(--text-primary);
}

.offer-promoCardTop1 .offer-rank {
  background: var(--accent-amber);
  border-color: var(--accent-gold);
  color: var(--text-inverse);
}

.offer-promoCardTop23 .offer-rank {
  border-color: var(--accent-cyan);
}

/* ── Logo cell: gradient with a fine diagonal hatch ────── */
.offer-logoArea {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  aspect-ratio: 1;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(
      -12deg,
      transparent 0 7px,
      var(--pattern-line) 7px 8px
    ),
    var(--gradient-cool-deep);
  border: 1px solid var(--border-subtle);
}

.offer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.offer-modeGames .offer-logo {
  border-radius: var(--radius-md);
}

/* ── Main column ───────────────────────────────────────── */
.offer-mainArea {
  grid-area: main;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.offer-name {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  list-style: none;
}

.offer-tag {
  padding: 0.05rem 0.5rem;
  background: var(--bg-elevated);
  border-left: 2px solid var(--accent-cyan);
  transform: skewX(var(--skew));
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-secondary);
}

.offer-tag > span {
  display: inline-block;
  transform: skewX(var(--skew-reverse));
}

.offer-tagSkill {
  border-left-color: var(--accent-gold);
}

.offer-bonusArea {
  display: flex;
  align-items: center;
  min-width: 0;
}

.offer-ratingArea {
  grid-area: rating;
  display: flex;
  align-items: center;
}

/* ── Features & facts ──────────────────────────────────── */
.offer-featuresArea {
  grid-area: features;
  min-width: 0;
}

.offer-extraArea {
  grid-area: extra;
  min-width: 0;
}

.offer-featureBlock {
  display: grid;
  gap: 0.4rem;
}

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

.offer-featureItem {
  display: grid;
  grid-template-columns: 0.95rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.offer-featureIcon {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.offer-facts {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.offer-fact {
  display: grid;
  gap: 0.05rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--border-strong);
}

.offer-fact dt {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.offer-fact dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

/* ── CTA: slanted, animated, styled div ────────────────── */
.offer-ctaArea {
  grid-area: cta;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.6rem 1.25rem;
  background-image:
    linear-gradient(100deg, transparent 35%, var(--shine) 50%, transparent 65%),
    linear-gradient(var(--accent-cyan), var(--accent-cyan));
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  color: var(--text-inverse);
  transform: skewX(var(--skew));
  box-shadow: var(--glow-cool-soft);
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  white-space: nowrap;
  animation: ctaShine 2.8s ease-in-out infinite alternate;
  transition: filter 0.2s ease;
}

.offer-ctaText {
  display: inline-block;
  transform: skewX(var(--skew-reverse));
}

.offer-promoCard:hover .offer-ctaArea {
  filter: brightness(1.08);
}

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

/* Rank 1 CTA: the other accent temperature and a stronger pulsing glow. */
.offer-promoCardTop1 .offer-ctaArea {
  background-image:
    linear-gradient(100deg, transparent 35%, var(--shine) 50%, transparent 65%),
    var(--gradient-warm);
  box-shadow: var(--glow-warm-soft);
  animation:
    ctaShine 2.2s ease-in-out infinite alternate,
    ctaPulse 1.4s ease-in-out infinite alternate;
}

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

/* ── Desktop: one horizontal row ───────────────────────── */
@media (min-width: 900px) {
  .offer-cardInner {
    grid-template-columns: 2.75rem 6rem minmax(0, 1.35fr) minmax(0, 1.15fr) 11.5rem;
    grid-template-areas:
      'rank  logo  main  features rating'
      'rank  logo  extra features cta'
      'terms terms terms terms    terms';
    gap: 0.6rem 1.35rem;
    align-items: center;
    padding: 1.4rem 1.5rem 1.2rem 1.1rem;
  }

  .offer-modeGames .offer-cardInner {
    grid-template-areas:
      'rank  logo  main  features rating'
      'rank  logo  extra features cta';
  }

  .offer-head {
    display: contents;
  }

  .offer-rankArea {
    grid-area: rank;
    align-self: stretch;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .offer-rank {
    min-width: 2.4rem;
    padding: 0.15rem 0.3rem;
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .offer-logoArea {
    width: 6rem;
    align-self: center;
  }

  .offer-mainArea {
    align-self: end;
  }

  .offer-extraArea {
    align-self: start;
  }

  .offer-featuresArea {
    align-self: center;
    padding-left: 1.1rem;
    border-left: 1px solid var(--border-subtle);
  }

  .offer-ratingArea {
    justify-content: center;
    align-self: end;
  }

  .offer-ctaArea {
    align-self: start;
  }

  .offer-name {
    font-size: 1.35rem;
  }
}

/* ═══ BonusDisplay (descriptive variant) ═══════════════════ */

/* Fallback games: a short descriptive line, smaller and allowed to wrap. */
.bonus-description {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* ═══ Rating ═══════════════════════════════════════════════ */

.rating {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.45rem;
  row-gap: 0.1rem;
}

.rating-stars {
  display: inline-flex;
  gap: 0.1rem;
}

.rating-star {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.rating-sm .rating-star {
  width: 0.85rem;
  height: 0.85rem;
}

.rating-starOutline {
  stroke: var(--accent-gold);
  stroke-width: 0.9;
  stroke-linejoin: round;
}

.rating-stopFilled {
  stop-color: var(--accent-gold);
}

.rating-stopEmpty {
  stop-color: var(--bg-elevated);
}

.rating-value {
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text-primary);
}

.rating-sm .rating-value {
  font-size: 0.9rem;
}

.rating-label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ═══ Sections (GameSections) ══════════════════════════════ */

.sections-section {
  padding: 3rem 0;
}

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

.sections-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  margin-bottom: 0.75rem;
}

.sections-title {
  font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.2rem);
  font-style: italic;
  font-weight: 800;
  font-stretch: 90%;
}

.sections-stand {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sections-lead {
  max-width: 68ch;
  margin-bottom: 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

/* ── 1. Comparison: scoreboard table ───────────────────── */
.sections-tableWrap {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent-cyan);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--bg-elevated);
}

.sections-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Mobile: rows become stacked "label: value" blocks, no horizontal scroll. */
.sections-table,
.sections-table tbody {
  display: block;
}

.sections-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sections-table tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sections-table tbody tr:last-child {
  border-bottom: 0;
}

.sections-table th,
.sections-table td {
  display: grid;
  gap: 0.1rem;
  padding: 0;
  text-align: left;
  vertical-align: middle;
  color: var(--text-secondary);
}

.sections-table tbody th {
  grid-column: 1 / -1;
}

.sections-table td::before {
  content: attr(data-label);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sections-rowName {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sections-rowRank {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0 0.3rem;
  background: var(--bg-surface);
  transform: skewX(var(--skew));
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-primary);
}

.sections-rowTop .sections-rowRank {
  background: var(--accent-amber);
  color: var(--text-inverse);
}

.sections-gameLink {
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-cyan);
  text-underline-offset: 4px;
}

.sections-gameLink:hover {
  color: var(--accent-cyan);
}

@media (min-width: 1024px) {
  .sections-table {
    display: table;
  }

  .sections-table tbody {
    display: table-row-group;
  }

  .sections-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .sections-table tr {
    display: table-row;
    padding: 0;
  }

  .sections-table th,
  .sections-table td {
    display: table-cell;
    padding: 0.85rem 1rem;
    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 td::before {
    content: none;
  }

  .sections-table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
  }

  .sections-table tbody tr:nth-child(even) {
    background: var(--bg-card);
  }

  .sections-table tbody tr:hover {
    background: var(--bg-surface);
  }
}

/* ── 2. How it works: slanted track of three steps ─────── */
.sections-track {
  display: grid;
  gap: 1rem;
  list-style: none;
  counter-reset: none;
}

.sections-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.35rem;
  padding: 1.1rem 1.1rem 1.2rem;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-cyan);
}

.sections-stepNo {
  grid-row: span 2;
  align-self: start;
  display: inline-block;
  min-width: 2.6rem;
  padding: 0.05rem 0.4rem;
  background: var(--gradient-cool);
  color: var(--text-inverse);
  transform: skewX(var(--skew));
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.2;
  text-align: center;
}

.sections-step:last-child .sections-stepNo {
  background: var(--gradient-warm);
}

.sections-stepTitle {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 700;
}

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

.sections-trackNote {
  max-width: 68ch;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .sections-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .sections-step {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.4rem 2rem 1.6rem 1.6rem;
    border-left: 0;
    border-top: 3px solid var(--accent-cyan);
    clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 100%, 0 100%);
  }

  .sections-step + .sections-step {
    margin-left: -0.6rem;
    padding-left: 2.2rem;
    clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 100%, 1.25rem 100%);
  }

  .sections-step:nth-child(2) {
    background: var(--bg-surface);
  }

  .sections-step:last-child {
    border-top-color: var(--accent-amber);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 1.25rem 100%);
  }

  .sections-stepNo {
    grid-row: auto;
    justify-self: start;
    margin-bottom: 0.4rem;
  }
}

/* ── 3. Categories: asymmetric mosaic + side panel ─────── */
.sections-categoryLayout {
  display: grid;
  gap: 1rem;
}

.sections-mosaic {
  display: grid;
  gap: 1rem;
}

.sections-tile {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(-12deg, transparent 0 11px, var(--pattern-line) 11px 12px),
    var(--bg-elevated);
}

.sections-tileFeature {
  background:
    repeating-linear-gradient(-12deg, transparent 0 11px, var(--pattern-line) 11px 12px),
    var(--gradient-cool-deep);
  border-color: var(--border-cyan);
}

.sections-tileIcon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent-cyan);
}

.sections-tileFeature .sections-tileIcon {
  width: 3.25rem;
  height: 3.25rem;
  color: var(--accent-gold);
}

.sections-tileTitle {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 700;
}

.sections-tileFeature .sections-tileTitle {
  font-size: 1.55rem;
}

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

.sections-tileGames {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin-top: 0.25rem;
  list-style: none;
}

.sections-tileGame {
  padding: 0.05rem 0.5rem;
  border-left: 2px solid var(--accent-cyan);
  background: var(--bg-card);
  transform: skewX(var(--skew));
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sections-tileGame > span {
  display: inline-block;
  transform: skewX(var(--skew-reverse));
}

.sections-panel {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  border-top: 3px solid var(--accent-amber);
  background: var(--bg-card);
}

.sections-panelTitle {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 800;
}

.sections-panelList {
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

.sections-panelItem {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.sections-panelMark {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.4rem;
  background: var(--accent-amber);
  transform: skewX(var(--skew));
}

.sections-panelNote {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (min-width: 700px) {
  .sections-mosaic {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .sections-tileFeature {
    grid-row: span 2;
    padding: 1.75rem;
  }

  .sections-tile:nth-child(4) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .sections-categoryLayout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.25rem;
  }
}

/* ═══ ImportantNotice ══════════════════════════════════════ */

.notice-section {
  padding: 1rem 0 3rem;
}

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

/* Inverted "paper" panel: the most serious block on the page reads in dark ink on light. */
.notice-panel {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface-light);
  color: var(--text-inverse);
  border-left: 0.4rem solid var(--accent-amber);
  border-radius: var(--radius-sm);
}

.notice-headRow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.notice-icon {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent-flame);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.notice-title {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-style: italic;
  font-weight: 800;
  color: var(--text-inverse);
}

.notice-body {
  display: grid;
  gap: 0.75rem;
  max-width: 78ch;
}

.notice-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-inverse-muted);
}

.notice-age {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-inverse);
}

.notice-ageMark {
  flex-shrink: 0;
  padding: 0.1rem 0.55rem;
  background: var(--text-inverse);
  color: var(--surface-light);
  transform: skewX(var(--skew));
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1rem;
}

.notice-ageMark > span {
  display: inline-block;
  transform: skewX(var(--skew-reverse));
}

@media (min-width: 768px) {
  .notice-panel {
    padding: 2rem 2.25rem;
  }
}

/* ═══ Footer ═══════════════════════════════════════════════ */

.footer {
  margin-top: auto;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

/* Expressive divider: the logo's four colours on a slanted band. */
.footer-divider {
  height: 0.4rem;
  background: var(--gradient-stripe);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0.75rem 100%);
}

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

.footer-columns {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  max-width: 24rem;
}

.footer-logoPlate {
  display: inline-flex;
  padding: 0.3rem 0.9rem;
  background: var(--surface-light);
  transform: skewX(var(--skew));
  height: fit-content;
}

.footer-logoPlateInner {
  display: inline-flex;
  transform: skewX(var(--skew-reverse));
}

.footer-logo {
  width: auto;
  height: 2.5rem;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.footer-email {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

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

.footer-columnTitle {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  color: var(--text-primary);
}

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

.footer-link {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--text-primary);
  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);
}

.footer-disclosure,
.footer-copy {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-disclosure strong {
  color: var(--text-secondary);
}

.footer-copy {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 2rem;
  }
}

/* ═══ Legal pages ══════════════════════════════════════════ */

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

.legal-article {
  max-width: 70ch;
}

.legal-page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  font-style: italic;
  font-weight: 800;
}

.legal-intro {
  margin-bottom: 1.5rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent-cyan);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.legal-page h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 700;
}

.legal-page h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

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

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

.legal-page ul {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.legal-page a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

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

.legal-page strong {
  color: var(--text-primary);
}

/* ═══ 404 ══════════════════════════════════════════════════ */

.notFound-page {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 4rem var(--page-gutter);
}

.notFound-code {
  display: inline-block;
  padding: 0 0.6rem;
  background: var(--gradient-warm);
  color: var(--text-inverse);
  transform: skewX(var(--skew));
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.4rem;
}

.notFound-title {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  font-style: italic;
  font-weight: 800;
}

.notFound-text {
  max-width: 52ch;
  color: var(--text-secondary);
}

.notFound-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent-cyan);
  color: var(--text-inverse);
  transform: skewX(var(--skew));
  font-family: var(--font-display), sans-serif;
  font-style: italic;
  font-weight: 800;
}

.notFound-linkText {
  display: inline-block;
  transform: skewX(var(--skew-reverse));
}
