/* ============================================================================
   quickgamefinder — styles.css
   Concept "Gummy Arcade": bright, playful, sticker-card aesthetic.
   Strict BEM. No external CSS libraries. Design tokens via CSS variables.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* palette */
  --paper: #f6f2ff;
  --paper-2: #efe8ff;
  --ink: #1e1b39;
  --muted: #6a6494;
  --card: #ffffff;
  --line: #e7deff;

  --berry: #ff2e88;
  --berry-ink: #c70e60;
  --grape: #7a3cf0;
  --aqua: #17c4e6;
  --lime: #b8f02d;
  --sun: #ffb020;

  /* accent rotation used by sticker cards */
  --accent: var(--grape);

  /* spacing / radius */
  --container: 1180px;
  --pad-inline: clamp(20px, 5vw, 44px);
  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --shadow-hard: 7px 7px 0;
  --shadow-soft: 0 18px 40px -22px rgba(30, 27, 57, .5);

  /* type */
  --f-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --f-logo: "Bungee", "Baloo 2", system-ui, sans-serif;

  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--paper-2); }

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grape);
  background: #fff;
  border: 2px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--berry); }

.section__title { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.01em; }
.section__lead { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

.accent { color: var(--berry); }
.accent--grape { color: var(--grape); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-shadow: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--btn-shadow);
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--btn-shadow); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--btn-shadow); }

.btn--primary { background: var(--berry); color: #fff; --btn-shadow: var(--berry-ink); border-color: var(--berry-ink); }
.btn--grape { background: var(--grape); color: #fff; --btn-shadow: #5620b8; border-color: #5620b8; }
.btn--ghost { background: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 32px; font-size: 1.08rem; }
.btn__icon { width: 20px; height: 20px; flex: none; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.header.has-scroll {
  border-bottom-color: var(--line);
  background: rgba(246, 242, 255, .94);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--f-logo);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.logo__accent { color: var(--berry); }

.header__nav { margin-left: auto; }
.header__menu { display: flex; align-items: center; gap: 4px; }
.header__link {
  display: inline-block;
  font-weight: 800;
  font-size: .96rem;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 999px;
  transition: background-color .18s ease, color .18s ease;
}
.header__link:hover { background: #fff; color: var(--grape); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0;
  place-items: center;
}
.burger__box { display: block; width: 20px; height: 15px; position: relative; }
.burger__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.burger__bar:nth-child(1) { top: 0; }
.burger__bar:nth-child(2) { top: 6px; }
.burger__bar:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(103deg, rgba(19, 15, 44, .95) 0%, rgba(24, 19, 58, .9) 40%, rgba(30, 24, 74, .58) 68%, rgba(122, 60, 240, .32) 100%),
    radial-gradient(130% 140% at 0% 0%, rgba(122, 60, 240, .5), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(23, 196, 230, .28), transparent 55%);
}
.hero__inner {
  position: relative;
  min-height: min(76vh, 640px);
  display: flex;
  align-items: center;
  padding-block: clamp(52px, 9vw, 116px);
}
.hero__content { max-width: 660px; color: #fff; }
.hero__eyebrow { margin-bottom: 22px; }
.hero__title {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(10, 8, 30, .38);
}
.hero__title-line { display: block; }
.hero__title .accent { color: var(--berry); }
.hero__text {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: #dcd8f5;
  max-width: 54ch;
  text-shadow: 0 1px 12px rgba(10, 8, 30, .5);
}
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 46px);
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; color: #fff; }
.hero__stat-label { font-size: .85rem; color: #c3bde6; font-weight: 700; }

/* --------------------------------------------------------------------------
   7. Sticker cards (games + reviews share the aesthetic)
   -------------------------------------------------------------------------- */
.games__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 32px);
}

.card {
  --accent: var(--grape);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-hard) var(--accent);
  padding: 22px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--accent); }
.card:nth-child(6n+1) { --accent: var(--berry); }
.card:nth-child(6n+2) { --accent: var(--aqua); }
.card:nth-child(6n+3) { --accent: var(--grape); }
.card:nth-child(6n+4) { --accent: var(--sun); }
.card:nth-child(6n+5) { --accent: var(--grape); }
.card:nth-child(6n+6) { --accent: var(--aqua); }

.card__top { display: flex; align-items: center; gap: 15px; }
.card__icon {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  flex: none;
  object-fit: cover;
}
.card__id { min-width: 0; }
.card__title { font-size: 1.28rem; }
.card__dev { font-size: .9rem; color: var(--muted); font-weight: 700; }
.card__genre {
  align-self: flex-start;
  margin-top: 14px;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 22%, #fff);
  border: 2px solid var(--ink);
  padding: 4px 11px;
  border-radius: 999px;
}
.card__text { margin-top: 14px; color: #423d63; font-size: .98rem; flex: 1; }
.card__foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card__btn {
  --btn-shadow: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .92rem;
  padding: 11px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 3px 3px 0 var(--accent);
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.card__btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--accent); }
.card__btn svg { width: 16px; height: 16px; }

/* stars — two-layer fractional fill */
.stars { display: inline-flex; align-items: center; gap: 9px; }
.stars__glyphs { position: relative; display: inline-block; line-height: 0; }
.stars__base, .stars__fill { display: inline-flex; gap: 3px; }
.stars__base { color: #ddd6f4; }
.stars__fill { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; color: var(--sun); }
.star { width: 19px; height: 19px; fill: currentColor; flex: none; }
.stars__value { font-family: var(--f-display); font-weight: 800; font-size: 1rem; }
.stars__count { font-size: .82rem; color: var(--muted); font-weight: 700; }

/* --------------------------------------------------------------------------
   8. Money / transparency
   -------------------------------------------------------------------------- */
.money__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.money__list { display: grid; gap: 16px; margin-top: 8px; }
.money__item {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 4px 4px 0 var(--line);
}
.money__num {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: var(--lime);
  font-family: var(--f-display);
  font-weight: 800;
}
.money__item-title { font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; }
.money__item-text { font-size: .95rem; color: var(--muted); margin-top: 2px; }
.money__note { margin-top: 20px; font-size: .92rem; color: var(--muted); }
.money__note a { color: var(--grape); font-weight: 800; border-bottom: 2px solid currentColor; }
.money__media {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-hard) var(--aqua);
}
.money__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --------------------------------------------------------------------------
   9. Trust
   -------------------------------------------------------------------------- */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}
.trust__item {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius-l);
  padding: 26px 24px;
  box-shadow: var(--shadow-hard) var(--line);
}
.trust__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  margin-bottom: 16px;
}
.trust__icon svg { width: 28px; height: 28px; }
.trust__item:nth-child(1) .trust__icon { background: var(--berry); color: #fff; }
.trust__item:nth-child(2) .trust__icon { background: var(--aqua); color: var(--ink); }
.trust__item:nth-child(3) .trust__icon { background: var(--grape); color: #fff; }
.trust__item:nth-child(4) .trust__icon { background: var(--sun); color: var(--ink); }
.trust__title { font-size: 1.2rem; margin-bottom: 8px; }
.trust__text { color: var(--muted); font-size: .97rem; }

/* --------------------------------------------------------------------------
   10. Reviews
   -------------------------------------------------------------------------- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 30px);
}
.reviews__card {
  --accent: var(--grape);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius-l);
  padding: 26px 24px;
  box-shadow: var(--shadow-hard) var(--accent);
  display: flex;
  flex-direction: column;
}
.reviews__card:nth-child(1) { --accent: var(--berry); }
.reviews__card:nth-child(2) { --accent: var(--aqua); }
.reviews__card:nth-child(3) { --accent: var(--sun); }
.reviews__stars { margin-bottom: 14px; }
.reviews__quote { font-size: 1.04rem; color: #2f2a52; flex: 1; }
.reviews__author { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.reviews__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  color: #fff;
  background: var(--accent);
}
.reviews__name { font-family: var(--f-display); font-weight: 700; }
.reviews__role { font-size: .85rem; color: var(--muted); font-weight: 700; }

/* --------------------------------------------------------------------------
   11. Subscribe
   -------------------------------------------------------------------------- */
.subscribe__inner {
  background:
    radial-gradient(100% 120% at 100% 0, rgba(255, 46, 136, .24), transparent 52%),
    linear-gradient(125deg, rgba(20, 17, 44, .92), rgba(28, 22, 66, .84)),
    url("/assets/img/bg/subscribe-bg.webp") center / cover no-repeat,
    var(--ink);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(30px, 5vw, 56px);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard) var(--grape);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}
.subscribe__title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.subscribe__text { color: #c9c3ea; margin-top: 14px; }
.subscribe__form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 800; font-size: .88rem; color: #efecff; }
.field__label span { color: var(--berry); }
.field__input {
  font: inherit;
  padding: 13px 16px;
  border-radius: 14px;
  border: 2.5px solid #3a3560;
  background: #14122b;
  color: #fff;
  transition: border-color .18s ease;
}
.field__input::placeholder { color: #7c77a0; }
.field__input:focus-visible { outline: none; border-color: var(--berry); }
.field--check {
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
}
.field__check { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--berry); flex: none; }
.field__check-label { font-size: .9rem; color: #c9c3ea; }
.field__check-label a { color: #fff; border-bottom: 2px solid var(--berry); }
.subscribe__note { font-size: .82rem; color: #8b86ad; margin-top: 4px; }
.subscribe__success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(184, 240, 45, .14);
  border: 2px solid var(--lime);
  color: #eafcc6;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 700;
}
.subscribe__success.is-visible { display: flex; }
.subscribe__success svg { width: 22px; height: 22px; flex: none; color: var(--lime); }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq__list { display: grid; gap: 14px; }
.faq__item {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--line);
  overflow: hidden;
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 22px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.faq__icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  position: relative;
  transition: background-color .2s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
}
.faq__icon::before { width: 14px; height: 2.6px; }
.faq__icon::after { width: 2.6px; height: 14px; transition: transform .25s ease; }
.faq__item--open .faq__icon { background: var(--berry); }
.faq__item--open .faq__icon::before,
.faq__item--open .faq__icon::after { background: #fff; }
.faq__item--open .faq__icon::after { transform: scaleY(0); }
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq__item--open .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner { overflow: hidden; }
.faq__answer p { padding: 0 22px 22px; color: var(--muted); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: #d9d5f2; padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
}
.footer__logo { color: #fff; margin-bottom: 14px; display: inline-block; }
.footer__logo .logo__accent { color: var(--berry); }
.footer__about { color: #a49fca; max-width: 34ch; font-size: .96rem; }
.footer__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8580b0;
  margin-bottom: 16px;
}
.footer__link { display: inline-block; padding: 5px 0; color: #d9d5f2; font-weight: 700; }
.footer__link:hover { color: var(--berry); }
.footer__contact a { color: #fff; font-weight: 800; border-bottom: 2px solid var(--grape); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #322c55;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: #8580b0;
  font-size: .86rem;
}

/* --------------------------------------------------------------------------
   14. Back to top + cookie banner
   -------------------------------------------------------------------------- */
.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  background: var(--berry);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0;
  transform: translateY(16px) scale(.85);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 90;
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.totop svg { width: 24px; height: 24px; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  max-width: 640px;
  margin-inline: auto;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard) var(--grape);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  transform: translateY(140%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.cookie.is-visible { transform: none; }
.cookie.is-hidden { display: none; }
.cookie__text { flex: 1 1 260px; font-size: .92rem; }
.cookie__text a { color: var(--grape); font-weight: 800; border-bottom: 2px solid currentColor; }
.cookie__actions { display: flex; gap: 10px; }
.cookie .btn { padding: 11px 18px; font-size: .92rem; }

/* --------------------------------------------------------------------------
   15. Legal pages
   -------------------------------------------------------------------------- */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--grape);
  margin-bottom: 22px;
}
.legal__back svg { width: 18px; height: 18px; }
.legal__head {
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 3px dashed var(--line);
}
.legal__title { font-size: clamp(2rem, 5vw, 3rem); }
.legal__updated { margin-top: 12px; color: var(--muted); font-weight: 700; }
.legal__body { max-width: 52rem; }
.legal__body h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-top: 38px;
  margin-bottom: 12px;
}
.legal__body h3 { font-size: 1.1rem; margin-top: 22px; margin-bottom: 8px; }
.legal__body p, .legal__body li { color: #3a3560; }
.legal__body p { margin-bottom: 14px; }
.legal__body ul { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 4px; }
.legal__body li { display: flex; gap: 11px; }
.legal__body li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 3px;
  background: var(--berry);
}
.legal__body a { color: var(--grape); font-weight: 800; border-bottom: 2px solid currentColor; }
.legal__note {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-left-width: 8px;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 26px;
  font-size: .95rem;
}

/* --------------------------------------------------------------------------
   15b. Genres — "Generi che copriamo" (soft image background)
   -------------------------------------------------------------------------- */
.generi { position: relative; overflow: hidden; }
.generi__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(246, 242, 255, .84), rgba(239, 232, 255, .92)),
    url("/assets/img/bg/genres-bg.webp") center / cover no-repeat;
}
.generi > .container { position: relative; z-index: 1; }
.generi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 26px);
}
.genre {
  --accent: var(--grape);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius-l);
  padding: 22px;
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform .16s ease, box-shadow .16s ease;
}
.genre:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--accent); }
.genre:nth-child(6n+1) { --accent: var(--berry); }
.genre:nth-child(6n+2) { --accent: var(--aqua); }
.genre:nth-child(6n+3) { --accent: var(--grape); }
.genre:nth-child(6n+4) { --accent: var(--sun); }
.genre:nth-child(6n+5) { --accent: var(--grape); }
.genre:nth-child(6n+6) { --accent: var(--aqua); }
.genre__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: color-mix(in srgb, var(--accent) 26%, #fff);
  margin-bottom: 14px;
}
.genre__icon svg { width: 26px; height: 26px; }
.genre__title { font-size: 1.16rem; margin-bottom: 6px; }
.genre__text { color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   15c. Method — "Il nostro metodo" (full-bleed dark photo band)
   -------------------------------------------------------------------------- */
.metodo { position: relative; overflow: hidden; color: #fff; }
.metodo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(118deg, rgba(18, 14, 42, .94) 0%, rgba(26, 20, 62, .86) 55%, rgba(122, 60, 240, .42) 100%),
    url("/assets/img/bg/method-bg.webp") center / cover no-repeat;
}
.metodo > .container { position: relative; z-index: 1; }
.metodo .section__title { color: #fff; }
.metodo .section__lead { color: #d6d1f2; }
.metodo__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 22px);
}
.metodo__step {
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(3px);
}
.metodo__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  background: var(--lime);
  border: 2.5px solid #0e0b24;
  margin-bottom: 16px;
}
.metodo__step:nth-child(2) .metodo__num { background: var(--aqua); }
.metodo__step:nth-child(3) .metodo__num { background: var(--berry); color: #fff; }
.metodo__step:nth-child(4) .metodo__num { background: var(--sun); }
.metodo__step-title { font-size: 1.12rem; margin-bottom: 8px; color: #fff; }
.metodo__step-text { color: #ccc7ec; font-size: .95rem; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .money__grid { grid-template-columns: 1fr; }
  .money__media { order: -1; }
  .subscribe__inner { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .metodo__steps { grid-template-columns: repeat(2, 1fr); }
}

/* tighten the (now 7-item) nav on mid widths before the burger kicks in */
@media (max-width: 1120px) and (min-width: 861px) {
  .header__menu { gap: 0; }
  .header__link { padding: 9px 10px; font-size: .9rem; }
}

@media (max-width: 860px) {
  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    padding: 14px var(--pad-inline) 24px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-soft);
    margin-left: 0;
  }
  .header__nav.is-open { transform: none; }
  .header__menu { flex-direction: column; align-items: stretch; gap: 4px; }
  .header__link { padding: 13px 14px; font-size: 1.05rem; border-radius: 12px; }
  .header__link:hover { background: #fff; }
  .burger { display: grid; }
  .games__grid { grid-template-columns: repeat(2, 1fr); }
  .generi__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .games__grid { grid-template-columns: 1fr; }
  .generi__grid { grid-template-columns: 1fr; }
  .metodo__steps { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__foot .card__btn { justify-content: center; }
  .footer__inner { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__actions { justify-content: stretch; }
  .cookie__actions .btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   17. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* scroll reveal — only when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
