/* =============================================================
   gamerankportal — styles.css
   BEM naming · mobile-first · no external CSS libraries
   Light & colorful theme · Unbounded + Space Grotesk
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #f5f3fd;
  --bg-2:      #ece7fb;
  --surface:   #ffffff;
  --surface-2: #faf8ff;
  --line:      rgba(28, 18, 66, .12);
  --line-2:    rgba(28, 18, 66, .20);

  --text:      #1b1242;
  --muted:     #514a7c;
  --muted-2:   #6a6196;

  /* vivid accents (text-legible on light) */
  --cyan:      #0e9fb4;
  --cyan-ink:  #0a7585;
  --violet:    #7c3aed;
  --pink:      #db2777;
  --magenta:   #e11d74;
  --lime:      #5fb01a;
  --teal:      #11a98a;
  --amber:     #ef8a0c;

  --gold-1:    #ffd06a;
  --gold-2:    #f0a017;
  --gold-ink:  #2a1705;
  --star:      #f6a609;

  /* default card accent (overridden by card--* ) */
  --accent:    var(--violet);
  --accent-2:  var(--pink);
  --accent-ink:#6d28d9;

  --grad-cta:   linear-gradient(120deg, #7c3aed 0%, #c026d3 52%, #ec4899 100%);
  --grad-brand: linear-gradient(100deg, #0e9fb4 0%, #7c3aed 48%, #db2777 100%);
  --grad-strong: linear-gradient(100deg, #7c3aed 0%, #db2777 100%);

  --radius-s:  10px;
  --radius:    18px;
  --radius-l:  26px;
  --radius-pill: 999px;

  --shadow:    0 18px 40px -24px rgba(40, 22, 96, .35);
  --shadow-lg: 0 34px 70px -30px rgba(40, 22, 96, .45);

  --pad:       clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --maxw:      1200px;

  --ff-display: "Unbounded", "Trebuchet MS", system-ui, sans-serif;
  --ff-body:    "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(46% 38% at 100% 0%, rgba(124, 58, 237, .12), transparent 70%),
    radial-gradient(42% 34% at 0% 5%, rgba(14, 159, 180, .12), transparent 70%),
    radial-gradient(40% 30% at 90% 60%, rgba(219, 39, 119, .07), transparent 70%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--ff-display);
  line-height: 1.12;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--violet);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-s) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  text-align: center;
}
.btn svg { flex: none; }

.btn--primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(124, 58, 237, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(192, 38, 211, .6); filter: brightness(1.05); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }

/* ---------- Inline accent ---------- */
.ix { color: var(--accent-ink); font-weight: 700; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo__mark { flex: none; filter: drop-shadow(0 4px 12px rgba(240, 160, 23, .4)); }
.logo__text {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -.04em;
  color: var(--text);
}
.logo__text-accent {
  background: var(--grad-strong);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo--footer .logo__text { font-size: 1.05rem; }

/* =============================================================
   HEADER
   ============================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 253, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.header__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__link {
  font-size: .96rem;
  font-weight: 500;
  color: var(--muted);
  padding: .3rem 0;
  position: relative;
  transition: color .18s ease;
}
.header__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--grad-strong);
  border-radius: 2px;
  transition: right .22s ease;
}
.header__link:hover { color: var(--text); }
.header__link:hover::after { right: 0; }

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.header__burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.header__burger.is-open .header__burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open .header__burger-bar:nth-child(2) { opacity: 0; }
.header__burger.is-open .header__burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5rem) var(--section-y);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 46% at 86% 2%, rgba(219, 39, 119, .2), transparent 62%),
    radial-gradient(44% 44% at 98% 42%, rgba(14, 159, 180, .18), transparent 62%),
    radial-gradient(52% 50% at 2% 24%, rgba(124, 58, 237, .2), transparent 64%),
    radial-gradient(40% 40% at 28% 100%, rgba(95, 176, 26, .12), transparent 64%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.2rem;
  padding: .42rem .9rem;
  border: 1px solid rgba(240, 160, 23, .45);
  border-radius: var(--radius-pill);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #b06a00;
  background: rgba(246, 166, 9, .12);
}
.hero__eyebrow svg { color: var(--star); }
.hero__title {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1.2rem;
}
.hero__title-accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 44ch;
  margin: 0 0 1.9rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin: 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__stat { margin: 0; }
.hero__stat-num {
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stat-label {
  margin: 0;
  font-size: .8rem;
  color: var(--muted-2);
  letter-spacing: .02em;
}

/* Hero media collage */
.hero__media {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding-bottom: 2.5rem;
}
.hero__screen {
  position: relative;
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.hero__screen-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__screen-tag {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .8rem 1rem;
  font-size: .82rem;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}
.hero__screen-tag strong { color: var(--text); }
.hero__screen-icon { border-radius: 9px; border: 1px solid var(--line); }

.hero__phone {
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: clamp(96px, 26%, 132px);
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(219, 39, 119, .3);
  transform: rotate(5deg);
}
.hero__phone-img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

.hero__chips {
  position: absolute;
  left: -6px;
  bottom: 6px;
  display: flex;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: .35rem;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.hero__chips img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--violet); }

/* =============================================================
   MEDAL (signature score badge)
   ============================================================= */
.medal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--gold-1), var(--gold-2) 78%);
  color: var(--gold-ink);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 12px 22px -8px rgba(240, 160, 23, .65);
  text-align: center;
  line-height: 1;
}
.medal__star { color: var(--gold-ink); opacity: .7; margin-bottom: 1px; }
.medal__value {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.04em;
}
.medal__label {
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .82;
  margin-top: 1px;
}
.hero__medal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 72px;
  height: 72px;
}
.hero__medal .medal__value { font-size: 1.2rem; }

/* =============================================================
   SECTIONS (generic)
   ============================================================= */
.section { padding-block: var(--section-y); }
.section--alt {
  position: relative;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(124, 58, 237, .1), transparent 70%);
  pointer-events: none;
}

.section__head { position: relative; max-width: 60ch; margin: 0 0 2.6rem; }
.section__eyebrow {
  margin: 0 0 .7rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
}
.section__title {
  font-size: clamp(1.55rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.section__lead {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0;
}

/* =============================================================
   GAMES GRID + CARD
   ============================================================= */
.games__grid {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 3;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 22px 44px -26px var(--accent);
}

/* per-card vivid accents */
.card--cyan   { --accent: #12b6cc; --accent-2: #3b82f6; --accent-ink: #0a7585; }
.card--pink   { --accent: #f43f8e; --accent-2: #fb7185; --accent-ink: #c01563; }
.card--violet { --accent: #8b5cf6; --accent-2: #6366f1; --accent-ink: #6d28d9; }
.card--lime   { --accent: #84cc16; --accent-2: #10b981; --accent-ink: #4a8a14; }

.card__banner {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #efeafb;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__banner--portrait .card__img { object-position: center 24%; }

.card__medal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 60px;
  height: 60px;
  z-index: 2;
}
.card__medal .medal__value { font-size: 1rem; }

.card__icon {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent), 0 8px 18px -8px rgba(40, 22, 96, .45);
  z-index: 2;
}

.card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
}
.card__genre {
  align-self: flex-start;
  margin: 0 0 .55rem;
  padding: .22rem .7rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.card__title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: .2rem; }
.card__dev { margin: 0 0 .85rem; font-size: .92rem; color: var(--muted-2); }

.card__rating {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.card__rating-num {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}
.card__rating-src { font-weight: 500; color: var(--muted-2); }

.card__desc {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  max-width: 56ch;
  color: var(--muted);
}
.card__btn { align-self: flex-start; }

/* ---------- Stars (inline SVG rating) ---------- */
.stars {
  position: relative;
  display: inline-block;
  line-height: 0;
  flex: none;
}
.stars__base, .stars__fill {
  display: flex;
  gap: 2px;
}
.stars__base svg, .stars__fill svg { width: 17px; height: 17px; }
.stars__base { color: rgba(28, 18, 66, .16); }
.stars__base svg path { fill: currentColor; }
.stars__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--star);
  white-space: nowrap;
}
.stars__fill svg path { fill: currentColor; }

/* =============================================================
   MONEY / TRANSPARENCY
   ============================================================= */
.money {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  counter-reset: money;
}
.money__item {
  position: relative;
  padding: 1.7rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.money__item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink));
}
.money__item::before {
  counter-increment: money;
  content: counter(money, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 800;
  color: rgba(124, 58, 237, .28);
}
.money__step {
  display: inline-block;
  margin-bottom: .9rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
}
.money__title { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
.money__text { margin: 0; color: var(--muted); font-size: .96rem; }

.money__pledge {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin: 1.6rem 0 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(120deg, rgba(14, 159, 180, .1), rgba(219, 39, 119, .1));
  border: 1px solid rgba(14, 159, 180, .32);
  border-radius: var(--radius);
  font-size: .98rem;
  color: var(--text);
}
.money__pledge svg { flex: none; color: var(--cyan-ink); margin-top: 2px; }
.money__pledge a { color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   TRUST
   ============================================================= */
.trust {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust__item {
  padding: 1.7rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.trust__item:hover { transform: translateY(-4px); border-color: var(--line-2); }
.trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 10px 22px -12px rgba(124, 58, 237, .7);
}
.trust__title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .45rem; }
.trust__text { margin: 0; color: var(--muted); font-size: .94rem; }

/* =============================================================
   FAQ
   ============================================================= */
.faq {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .2s ease;
}
.faq__item--open { border-color: var(--violet); }
.faq__heading { margin: 0; font-family: var(--ff-body); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.3rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: left;
  cursor: pointer;
}
.faq__chevron { flex: none; color: var(--violet); transition: transform .25s ease; }
.faq__item--open .faq__chevron { transform: rotate(180deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__answer p {
  margin: 0;
  padding: 0 1.3rem 1.25rem;
  color: var(--muted);
  font-size: .98rem;
}

/* =============================================================
   SUBSCRIBE
   ============================================================= */
.subscribe__card {
  display: grid;
  gap: 1.8rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background:
    radial-gradient(70% 110% at 100% 0%, rgba(219, 39, 119, .14), transparent 55%),
    radial-gradient(70% 110% at 0% 100%, rgba(14, 159, 180, .12), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lg);
}
.subscribe .section__head { margin: 0; }
.subscribe__form { display: grid; gap: 1rem; }

.field { display: grid; gap: .35rem; }
.field__label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}
.field__input {
  width: 100%;
  padding: .82rem .9rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field__input::placeholder { color: var(--muted-2); }
.field__input:focus-visible {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .22);
}
.field__consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: var(--muted);
}
.field__consent input { margin-top: .25rem; accent-color: var(--violet); flex: none; width: 17px; height: 17px; }
.field__consent a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }

.subscribe__btn { justify-self: start; }
.subscribe__success {
  display: none;
  margin: 0;
  padding: .8rem 1rem;
  border-radius: var(--radius-s);
  background: rgba(17, 169, 138, .12);
  border: 1px solid rgba(17, 169, 138, .42);
  color: #0a6b57;
  font-size: .92rem;
  font-weight: 600;
}
.subscribe__success.show { display: block; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
.footer__brand { max-width: 34ch; }
.footer__tagline { margin: 1rem 0 0; color: var(--muted-2); font-size: .92rem; }
.footer__title {
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 1rem;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__link { color: var(--muted); font-size: .96rem; transition: color .18s ease; }
.footer__link:hover { color: var(--violet); }
.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .94rem;
  transition: color .18s ease;
}
.footer__contact:hover { color: var(--violet); }
.footer__contact svg { flex: none; color: var(--violet); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}
.footer__copy { margin: 0; font-weight: 600; color: var(--text); font-size: .9rem; }
.footer__disclaimer { margin: 0; color: var(--muted-2); font-size: .8rem; max-width: 60ch; }

/* =============================================================
   COOKIE BANNER
   ============================================================= */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid transparent;
  border-image: var(--grad-brand) 1;
  box-shadow: 0 -16px 40px -22px rgba(40, 22, 96, .35);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.cookie.is-visible { transform: translateY(0); }
.cookie__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 1rem;
}
.cookie__text { margin: 0; font-size: .9rem; color: var(--muted); flex: 1 1 280px; }
.cookie__link { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: .6rem; flex: none; }
.cookie__btn { padding-inline: 1.1rem; }

/* =============================================================
   TO-TOP
   ============================================================= */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: 0 12px 26px -12px rgba(124, 58, 237, .6);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, filter .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* =============================================================
   LEGAL PAGES
   ============================================================= */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem) var(--section-y); }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.6rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .18s ease;
}
.legal__back:hover { color: var(--violet); }
.legal__title {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .6rem;
}
.legal__updated {
  margin: 0 0 2.4rem;
  font-size: .88rem;
  color: var(--muted-2);
}
.legal__content { max-width: 760px; }
.legal__content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 2.2rem 0 .7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.legal__content h3 { font-size: 1.05rem; font-weight: 700; margin: 1.4rem 0 .5rem; color: var(--violet); }
.legal__content p { color: var(--muted); margin: 0 0 1rem; }
.legal__content ul { color: var(--muted); margin: 0 0 1rem; padding-left: 1.2rem; }
.legal__content li { margin-bottom: .5rem; }
.legal__content a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.legal__content strong { color: var(--text); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (min-width: 600px) {
  .money { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .subscribe__card { grid-template-columns: 1fr 1fr; align-items: center; }

  /* Game cards become full-width alternating feature rows */
  .card { grid-template-columns: 1.04fr 1fr; align-items: stretch; }
  .card__banner {
    aspect-ratio: auto;
    height: 100%;
    min-height: 360px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .card--reverse .card__banner {
    order: 2;
    border-right: 0;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .hero__media { max-width: 100%; }
}

/* ---------- Mobile nav (burger) ---------- */
@media (max-width: 900px) {
  .header__burger { display: flex; }
  .header__nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    padding: 1.6rem var(--pad) 2rem;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .3s ease;
    visibility: hidden;
  }
  .header__nav.is-open { transform: translateY(0); visibility: visible; }
  .header__list { flex-direction: column; gap: 0; }
  .header__link { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header__link::after { display: none; }
  .header__cta { width: 100%; }
}

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