/* =========================================================
   Guide Ludique — design system
   Cool "indigo" palette: indigo bar header, tomato rank chips,
   saffron ratings, teal positive tags.
   Headings: DM Serif Display · Body: Nunito Sans
   ========================================================= */

:root {
  --paper: #f7f6fd;
  --paper-2: #ecebfa;
  --card: #ffffff;
  --line: #d8d6ee;
  --ink: #1b1932;
  --muted: #57546f;

  --indigo: #3b35c3;
  --indigo-hover: #2e29a8;
  --deep: #241f86;
  --tomato: #e4553b;
  --tomato-ink: #c23a21;   /* tomato darkened for text / white-on-tomato small text (AA) */
  --saffron: #f0ae2e;
  --saffron-soft: #fdf1d8;
  --teal: #1f8a84;
  --teal-ink: #17716c;     /* teal darkened for small text (AA) */
  --teal-soft: #e2f3f1;
  --on-dark: #e6e4fb;
  --on-dark-muted: #c4c1ef;

  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow: 0 24px 60px rgba(36, 31, 134, .16);
  --shadow-sm: 0 6px 22px rgba(36, 31, 134, .08);

  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --header-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--tomato-ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
strong { font-weight: 800; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--pill);
  z-index: 2000;
}
.skip-link:focus { left: 16px; top: 16px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow { max-width: 800px; }

.section { padding: clamp(52px, 8vw, 100px) 0; }
.section--tint { background: var(--paper-2); }
.section--white { background: var(--card); }
.section__head {
  max-width: 740px;
  margin: 0 0 40px;
}
.section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}
.section__head--row > div { max-width: 740px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 14px 6px 10px;
  border-radius: var(--pill);
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tomato);
}
.lead { font-size: 1.15rem; color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  background: var(--indigo);
  color: #fff;
}
.btn:hover {
  background: var(--tomato-ink);
  color: #fff;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn--ghost:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}
.btn--light {
  background: var(--saffron);
  color: var(--ink);
}
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--sm { font-size: .9rem; padding: 9px 18px; }
.btn--block { width: 100%; }

/* ---------- header (indigo bar) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--indigo);
  color: #fff;
  border-bottom: 3px solid var(--tomato);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
}
.brand:hover { color: #fff; }
.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}
.brand__mark svg { width: 28px; height: 28px; display: block; }
.brand__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.05;
}
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--pill);
}
.nav a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.nav a.nav__cta {
  background: var(--saffron);
  color: var(--ink);
  margin-left: 6px;
}
.nav a.nav__cta:hover { background: #fff; color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: var(--pill);
  padding: 8px 14px;
  cursor: pointer;
  font: 800 .9rem/1 var(--sans);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(36, 31, 134, .95) 0%,
      rgba(59, 53, 195, .78) 48%,
      rgba(27, 25, 50, .40) 100%);
}
.hero__inner {
  padding: clamp(76px, 13vw, 140px) 0 clamp(120px, 16vw, 176px);
  max-width: 740px;
}
.hero .kicker {
  color: var(--ink);
  background: var(--saffron);
  border-color: var(--saffron);
}
.hero .kicker::before { background: var(--ink); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #ffd9a0; }
.hero__lead {
  font-size: 1.2rem;
  color: var(--on-dark);
  max-width: 620px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  position: relative;
  margin: -72px auto 0;
  max-width: var(--maxw);
}
.hero-stats__card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-top: 5px solid var(--indigo);
}
.hero-stats__item {
  padding: 26px 24px;
  text-align: center;
  border-right: 1px dashed var(--line);
}
.hero-stats__item:last-child { border-right: 0; }
.hero-stats__num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--indigo);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats__label {
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- generic cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--indigo);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- pills / tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  padding: 5px 11px;
  border-radius: var(--pill);
  background: var(--paper-2);
  color: var(--indigo);
}
.tag--good { background: var(--teal-soft); color: var(--teal-ink); }
.tag--warm { background: var(--saffron-soft); color: #7a4d00; }
.tag--hot  { background: #fde7e2; color: var(--tomato-ink); }

/* ---------- ranking ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.filter-bar[hidden] { display: none; }
.filter-bar__label {
  font-weight: 800;
  font-size: .9rem;
  color: var(--muted);
  align-self: center;
  margin-right: 4px;
}
.chip {
  font: 700 .9rem/1.2 var(--sans);
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--indigo); color: var(--indigo); }
.chip[aria-pressed="true"] {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}
.filter-status { font-size: .9rem; color: var(--muted); margin: -14px 0 22px; min-height: 1.4em; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card[hidden] { display: none; }
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.game-card--featured {
  grid-column: span 2;
  border: 2px solid var(--indigo);
}
.game-card__media {
  position: relative;
  aspect-ratio: 460 / 215;
  background: var(--paper-2);
  overflow: hidden;
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tomato);
  color: #fff;
  font: 800 1.2rem/1 var(--sans);   /* ≥18.66px bold: large text, 3:1 AA */
  box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(27, 25, 50, .3);
}
.featured-flag {
  position: absolute;
  top: 18px;
  right: 14px;
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--pill);
}
.game-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.game-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.game-card__title h3 { margin: 0; }
.game-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: .9rem;
  color: var(--ink);
  background: var(--saffron);
  padding: 4px 11px;
  border-radius: var(--pill);
  white-space: nowrap;
}
.game-rating::before { content: "★"; font-size: .95em; }
.game-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 4px 0 18px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  font-size: .88rem;
}
.game-facts div { min-width: 0; }
.game-facts dt {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.game-facts dd { margin: 1px 0 0; font-weight: 600; }
.game-card--featured .game-facts { grid-template-columns: repeat(3, 1fr); }
.game-verdict {
  border-left: 4px solid var(--tomato);
  padding: 2px 0 2px 12px;
  font-size: .95rem;
  margin-bottom: 18px;
}
.game-verdict strong { color: var(--tomato-ink); }
.game-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.game-card__actions .btn { flex: 1 1 auto; }
.game-card__source { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- top 5 ---------- */
.top5 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.top5__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.top5__rank {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tomato);
  color: #fff;
  font: 800 1.2rem/1 var(--sans);
  margin-bottom: 12px;
}
.top5__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.top5__name a { color: inherit; text-decoration: none; }
.top5__name a:hover { color: var(--indigo); text-decoration: underline; }
.top5__quote { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- news (nouveautés) ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.news-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: .82rem;
  color: var(--ink);
  background: var(--saffron);
  padding: 5px 12px;
  border-radius: var(--pill);
}
.news-card h3 { font-size: 1.3rem; margin-bottom: .35em; }
.news-card__meta { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.news-card p { font-size: .95rem; }
.news-card__link { margin-top: auto; font-weight: 800; font-size: .92rem; }

/* ---------- genres browser ---------- */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.genre {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--g, var(--indigo));
}
.genre--rpg      { --g: var(--indigo); }
.genre--strat    { --g: var(--teal); }
.genre--action   { --g: var(--tomato); }
.genre--sim      { --g: var(--saffron); }
.genre--coop     { --g: var(--deep); }
.genre--browser  { --g: var(--muted); }
.genre__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.genre__icon {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
  color: var(--indigo);
}
.genre__icon svg { width: 22px; height: 22px; }
.genre h3 { margin: 0; font-size: 1.3rem; }
.genre p { font-size: .95rem; color: var(--muted); }
.genre__games {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.genre__games a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  padding: 6px 12px 6px 6px;
  border-radius: var(--pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.genre__games a:hover { border-color: var(--indigo); color: var(--indigo); }
.genre__games b {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tomato-ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}
.genre .btn { margin-top: auto; align-self: flex-start; }

/* ---------- player profiles ---------- */
.profiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.profile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.profile__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tomato-ink);
  margin-bottom: 6px;
}
.profile h3 { margin-bottom: .45em; }
.profile p:last-of-type { margin-bottom: 14px; }
.profile .tags { margin: 0; }
.profile .tags a { text-decoration: none; }
.profile .tags a:hover .tag { background: var(--indigo); color: #fff; }

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.table-wrap + .table-wrap, .table-wrap + h3 { margin-top: 36px; }
table.cmp {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}
table.cmp caption {
  text-align: left;
  padding: 16px 18px 4px;
  color: var(--muted);
  font-size: .92rem;
  caption-side: top;
}
table.cmp th,
table.cmp td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  vertical-align: top;
}
table.cmp thead th {
  background: var(--paper-2);
  color: var(--indigo);
  font-family: var(--sans);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
table.cmp tbody th { font-weight: 800; }
table.cmp tbody tr { transition: background .15s ease; }
table.cmp tbody tr:hover { background: var(--paper); }
table.cmp tbody tr:last-child th,
table.cmp tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--teal-ink); font-weight: 800; }
.no  { color: var(--muted); }

/* ---------- steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.steps li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 24px 82px;
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 44px;
  height: 44px;
  background: var(--tomato);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 1.25rem/1 var(--sans);
}
.steps h3 { margin-bottom: .3em; }
.steps p:last-child { margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 860px; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 20px 64px 20px 22px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  position: relative;
}
.faq__q::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--indigo);
  font-size: 1.3rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease;
}
.faq__q[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--indigo);
  color: #fff;
}
.faq__a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
.faq__a[hidden] { display: block; } /* JS controls max-height */
.faq__q[aria-expanded="true"] + .faq__a { padding: 0 22px 20px; }

/* ---------- contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--deep);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card h3 { color: #fff; }
.contact-card a { color: #fff; font-weight: 800; }
.contact-card a:hover { color: var(--saffron); }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--indigo); }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- page head + prose (content/legal pages) ---------- */
.page-head {
  background: linear-gradient(120deg, var(--deep) 0%, var(--indigo) 100%);
  color: #fff;
  padding: clamp(52px, 7vw, 88px) 0;
}
.page-head h1 { color: #fff; }
.page-head .lead { color: var(--on-dark); }
.page-head .kicker {
  color: var(--ink);
  background: var(--saffron);
  border-color: var(--saffron);
}
.page-head .kicker::before { background: var(--ink); }
.prose { padding: clamp(40px, 7vw, 76px) 0; }
.prose h2 { margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose .facts { list-style: none; padding: 0; }
.prose .facts li {
  display: grid;
  grid-template-columns: minmax(150px, 34%) 1fr;
  gap: 4px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--indigo);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.prose .facts strong { color: var(--ink); }
.prose .facts .pending { color: var(--muted); font-style: italic; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--deep);
  color: var(--on-dark);
  padding: 64px 0 32px;
  border-top: 6px solid var(--tomato);
}
.site-footer h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .95rem; }
.site-footer p { color: var(--on-dark); font-size: .92rem; }
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  padding: 24px 0;
  margin: 8px 0 24px;
  font-size: .88rem;
}
.footer-disclaimer p { color: var(--on-dark-muted); margin-bottom: .8em; }
.footer-disclaimer strong { color: #fff; }
.footer-disclaimer p:last-child { margin: 0; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--on-dark-muted);
}
.sponsored-tag {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--saffron-soft);
  padding: 2px 8px;
  border-radius: var(--pill);
  vertical-align: middle;
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius);
  border-top: 4px solid var(--saffron);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  z-index: 1500;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: .92rem; margin: 0 0 16px; color: var(--on-dark); }
.cookie-banner a { color: #ffd9a0; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-banner__actions .btn { font-size: .9rem; padding: 10px 18px; }
.cookie-banner__actions .btn:not(.btn--ghost) { background: var(--saffron); color: var(--ink); }
.cookie-banner__actions .btn:not(.btn--ghost):hover { background: #fff; }
.cookie-banner__actions .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.cookie-banner__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

/* cookie preferences dialog */
.cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  background: rgba(27, 25, 50, .62);
  padding: 20px;
}
.cookie-prefs[hidden] { display: none; }
.cookie-prefs__panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  border-top: 5px solid var(--indigo);
  max-width: 580px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-prefs__panel h2 { margin-top: 0; }
.cookie-prefs__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cookie-prefs__row p { font-size: .9rem; margin: 4px 0 0; color: var(--muted); }
.cookie-prefs__row strong { color: var(--ink); }
.cookie-prefs__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.switch { position: relative; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 48px; height: 28px; margin: 0; cursor: pointer; }
.switch span {
  display: block;
  width: 48px;
  height: 28px;
  background: #b9b6d6;
  border-radius: var(--pill);
  transition: background .18s ease;
  position: relative;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s ease;
}
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.switch input:disabled + span { opacity: .6; cursor: not-allowed; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--deep);
    border-bottom: 3px solid var(--tomato);
    padding: 12px 24px 20px;
    gap: 2px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav a.nav__cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { position: relative; }
}

@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card--featured { grid-column: span 2; }
  .top5 { grid-template-columns: repeat(3, 1fr); }
  .news-grid, .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .profiles, .steps { grid-template-columns: 1fr; }
  .games-grid, .news-grid, .genre-grid { grid-template-columns: 1fr; }
  .game-card--featured { grid-column: span 1; }
  .game-card--featured .game-facts { grid-template-columns: 1fr 1fr; }
  .top5 { grid-template-columns: 1fr 1fr; }
  .hero-stats__card { grid-template-columns: 1fr; }
  .hero-stats__item { border-right: 0; border-bottom: 1px dashed var(--line); padding: 18px; }
  .hero-stats__item:last-child { border-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .prose .facts li { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .top5 { grid-template-columns: 1fr; }
  .game-facts { padding: 12px 14px; gap: 8px 12px; }
  .nav { padding: 12px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Long compound words must never push the page wider than the screen. */
h1,h2,h3,h4,p,li,dt,dd,td,th,a,label{overflow-wrap:break-word}
h1,h2,h3{-webkit-hyphens:auto;hyphens:auto}
