/* ============================================================
   MobiRift — mobirift.com
   Concept: "Rift" — un varco luminoso verso nuovi mondi di gioco.
   Tema: cosmo-viola profondo, un solo accento violetto, pannelli
   in vetro, motivo diagonale "rift" ricorrente.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0D0B1F;
  --panel: #16132E;
  --panel-2: #1E1A3C;
  --text: #EDEBF7;
  --muted: #9A94C4;
  --accent: #8B5CF6;
  --accent-light: #A78BFA;
  --border: #2A2547;
  --border-soft: #221E3E;
  --star: rgba(167, 139, 250, 0.14);

  --container: 1200px;
  --gap: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font-display: "Sora", system-ui, sans-serif;
  --font-logo: "Rajdhani", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.28);
  --shadow-panel: 0 18px 48px rgba(0, 0, 0, 0.45);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 20% 30%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 20%, var(--star) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 70%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 60%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 85%, var(--star) 50%, transparent 51%),
    radial-gradient(900px 600px at 78% -8%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(700px 500px at 8% 110%, rgba(124, 58, 237, 0.10), transparent 60%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Accessibility helpers ---------- */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 1200;
  background: var(--accent);
  color: #0D0B1F;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

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

.section { padding-block: 84px; position: relative; }
.section--tight { padding-block: 60px; }

.section__head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section__head--center { margin-inline: auto; text-align: center; }

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-logo);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.section__kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: skewX(-30deg);
}

.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
}
.section__subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Rift divider motif (thin diagonal accent line) */
.rift-divider {
  position: relative;
  height: 1px;
  background: var(--border-soft);
  overflow: visible;
}
.rift-divider::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 180px; height: 2px;
  transform: translate(-50%, -50%) skewX(-38deg);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
  opacity: 0.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: #0D0B1F;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.45);
}

.btn--ghost {
  background: rgba(139, 92, 246, 0.06);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

.btn__icon { width: 18px; height: 18px; flex: none; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 11, 31, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.logo:hover { text-decoration: none; }
.logo__accent { color: var(--accent); }

.header__nav { display: flex; align-items: center; gap: 6px; }
.header__list { display: flex; align-items: center; gap: 4px; }
.header__link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.header__link:hover { color: var(--text); background: rgba(139, 92, 246, 0.08); text-decoration: none; }

.header__cta { margin-left: 10px; padding: 10px 18px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.burger svg { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  text-align: center;
  padding-block: 96px 84px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(13, 11, 31, 0.62), rgba(13, 11, 31, 0.94) 78%, var(--bg)),
    url("assets/img/bg/hero-bg.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
/* the signature "rift" — diagonal glowing tear across the hero */
.hero__rift {
  position: absolute;
  z-index: -1;
  left: -20%;
  top: 42%;
  width: 140%;
  height: 3px;
  transform: rotate(-19deg);
  background: linear-gradient(90deg, transparent 4%, rgba(139, 92, 246, 0.15) 22%, var(--accent-light) 50%, rgba(139, 92, 246, 0.15) 78%, transparent 96%);
  box-shadow: 0 0 30px 4px rgba(139, 92, 246, 0.55);
  filter: blur(0.4px);
}
.hero__rift::before,
.hero__rift::after {
  content: "";
  position: absolute;
  inset: -60px 0;
  background: radial-gradient(60% 100% at 50% 50%, rgba(139, 92, 246, 0.16), transparent 70%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: rgba(22, 19, 46, 0.7);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 26px;
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero__title {
  font-size: clamp(2.4rem, 6.4vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-inline: auto;
}
.hero__title-accent {
  color: var(--accent-light);
  position: relative;
}
.hero__subtitle {
  margin: 22px auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__showcase {
  margin: 56px auto 0;
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 640px;
}
.hero__tile {
  width: 76px; height: 76px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero__tile:nth-child(even) { transform: translateY(-14px); }
.hero__tile:hover { transform: translateY(-18px) scale(1.04); box-shadow: var(--shadow-glow); }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   GAMES (masonry)
   ============================================================ */
.games__grid {
  columns: 3;
  column-gap: var(--gap);
}
.game-card {
  break-inside: avoid;
  margin-bottom: var(--gap);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: var(--shadow-glow);
}
.game-card__top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}
.game-card__icon {
  width: 62px; height: 62px;
  border-radius: 14px;
  border: 1px solid var(--border);
  flex: none;
  background: var(--bg);
}
.game-card__heading { min-width: 0; }
.game-card__name {
  font-size: 1.12rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.game-card__dev {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}
.game-card__genre {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-logo);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-light);
  border: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.07);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.game-card__desc {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}
.game-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* star rating (fractional fill via two layers) */
.rating { display: inline-flex; align-items: center; gap: 8px; }
.rating__stars {
  position: relative;
  display: inline-block;
  --fill: 100%;
}
.rating__layer { display: flex; gap: 2px; }
.rating__layer svg { width: 16px; height: 16px; display: block; }
.rating__layer--empty { color: var(--border); }
.rating__layer--full {
  color: var(--accent-light);
  position: absolute;
  top: 0; left: 0;
  width: var(--fill);
  overflow: hidden;
}
.rating__value { font-weight: 700; font-size: 0.9rem; font-family: var(--font-display); }

.game-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.06);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.game-card__link:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.14);
  transform: translateY(-1px);
  text-decoration: none;
}
.game-card__link svg { width: 15px; height: 15px; }

/* ============================================================
   MONETIZATION
   ============================================================ */
.earn { position: relative; }
.earn__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.earn__list { display: grid; gap: 18px; margin-top: 26px; }
.earn__item {
  display: flex;
  gap: 15px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.earn__num {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-light);
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.08);
}
.earn__item-title { font-weight: 700; font-family: var(--font-display); margin-bottom: 4px; }
.earn__item-text { color: var(--muted); font-size: 0.92rem; }
.earn__note { margin-top: 24px; color: var(--muted); font-size: 0.92rem; }

.earn__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
}
.earn__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.earn__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(13, 11, 31, 0.7));
}

/* ============================================================
   TRUST / ABOUT
   ============================================================ */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.trust__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.trust__card:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-3px); }
.trust__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  color: var(--accent-light);
  margin-bottom: 18px;
}
.trust__icon svg { width: 24px; height: 24px; }
.trust__title { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.trust__text { color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.review {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review__stars { display: inline-flex; gap: 3px; color: var(--accent-light); }
.review__stars svg { width: 17px; height: 17px; }
.review__quote { color: var(--text); font-size: 0.98rem; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid var(--border);
  color: var(--accent-light);
  font-weight: 700;
  font-family: var(--font-display);
}
.review__name { font-weight: 700; font-size: 0.95rem; }
.review__role { color: var(--muted); font-size: 0.84rem; }

/* ============================================================
   SUBSCRIBE FORM
   ============================================================ */
.subscribe { position: relative; }
.subscribe__panel {
  background:
    radial-gradient(600px 300px at 80% -20%, rgba(139, 92, 246, 0.16), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 48px;
  box-shadow: var(--shadow-panel);
  position: relative;
  overflow: hidden;
}
.subscribe__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.subscribe__title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.subscribe__text { color: var(--muted); margin-top: 14px; }
.subscribe__points { margin-top: 20px; display: grid; gap: 10px; }
.subscribe__point { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.92rem; }
.subscribe__point svg { width: 18px; height: 18px; color: var(--accent-light); flex: none; margin-top: 2px; }

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__field { display: grid; gap: 6px; }
.form__label { font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.form__input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form__input::placeholder { color: #6b6595; }
.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22);
}
.form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
}
.form__checkbox {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
}
.form__success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}
.form__success.is-visible { display: flex; }
.form__success svg { width: 20px; height: 20px; color: var(--accent-light); flex: none; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq__item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item--open { border-color: rgba(139, 92, 246, 0.45); }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 20px 22px;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.faq__icon {
  width: 22px; height: 22px;
  flex: none;
  color: var(--accent-light);
  transition: transform 0.25s ease;
}
.faq__item--open .faq__icon { transform: rotate(45deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq__answer-inner {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 9, 26, 0.6);
  padding-block: 56px 30px;
  margin-top: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand-text { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 42ch; }
.footer__col-title {
  font-family: var(--font-logo);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.footer__list { display: grid; gap: 10px; }
.footer__link { color: var(--muted); font-size: 0.92rem; }
.footer__link:hover { color: var(--accent-light); }
.footer__contact { color: var(--muted); font-size: 0.92rem; }
.footer__contact a { color: var(--accent-light); }
.footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 1100;
  max-width: 720px;
  margin-inline: auto;
  background: rgba(22, 19, 46, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-panel);
  display: none;
  gap: 18px;
  align-items: center;
}
.cookie.is-visible { display: flex; }
.cookie__text { color: var(--muted); font-size: 0.9rem; flex: 1; min-width: 220px; }
.cookie__text a { color: var(--accent-light); }
.cookie__actions { display: flex; gap: 10px; flex: none; }
.cookie__btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-display);
  border: 1px solid var(--border);
}
.cookie__btn--accept { background: var(--accent); color: #0D0B1F; border-color: var(--accent); }
.cookie__btn--accept:hover { background: var(--accent-light); }
.cookie__btn--decline { background: transparent; color: var(--text); }
.cookie__btn--decline:hover { border-color: var(--accent); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 900;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #0D0B1F;
  border: none;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-light); }
.to-top svg { width: 22px; height: 22px; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { padding-block: 64px 40px; }
.legal__header { max-width: 820px; margin-bottom: 32px; }
.legal__title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.legal__updated { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.92rem;
}
.legal__back svg { width: 16px; height: 16px; }
.legal__body { max-width: 820px; }
.legal__body h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-top: 8px;
}
.legal__body h3 { font-size: 1.08rem; margin-top: 24px; margin-bottom: 10px; }
.legal__body p { color: var(--muted); margin-bottom: 14px; }
.legal__body ul { display: grid; gap: 8px; margin-bottom: 16px; padding-left: 4px; }
.legal__body li { color: var(--muted); padding-left: 22px; position: relative; }
.legal__body li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 9px; height: 2px;
  background: var(--accent);
  transform: skewX(-30deg);
}
.legal__body a { color: var(--accent-light); }
.legal__body strong { color: var(--text); }

/* ============================================================
   MOBILE NAV PANEL
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  background: rgba(13, 11, 31, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: none;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__list { display: grid; gap: 6px; }
.mobile-nav__link {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 15px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav__link:hover { background: rgba(139, 92, 246, 0.08); text-decoration: none; }
.mobile-nav__cta { margin-top: 22px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .games__grid { columns: 2; }
  .earn__layout { grid-template-columns: 1fr; gap: 32px; }
  .earn__media img { aspect-ratio: 16 / 9; }
  .subscribe__layout { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header__nav { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: block; }
  .trust__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .subscribe__panel { padding: 32px 26px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .games__grid { columns: 1; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__tile { width: 62px; height: 62px; }
  .cookie { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; }
  .cookie__actions { justify-content: flex-end; }
  .hero { padding-block: 64px 60px; }
}

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