/* ============================================================
   SACKSPEED — Fantasy Football Social Casino (ES)
   Design system portado del mockup Claude Design.
   Paleta: Bosques verdes + oro mágico + pergamino crema.
   ============================================================ */

/* ---- Fuentes locales (self-hosted, variables) ---- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Mulish';
  src: url('fonts/mulish-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  /* Verdes bosque */
  --ri-forest-950: #1a221a;
  --ri-forest-900: #232c20;
  --ri-forest-800: #2e3a2a;
  --ri-forest-700: #3c4a36;
  --ri-forest-600: #4e5544;
  --ri-moss-500:   #6b7a57;
  --ri-sage-400:   #869678;
  --ri-sage-300:   #a7b09f;
  --ri-mist-200:   #c8cebb;
  --ri-mist-100:   #dfe3d4;
  /* Oro / ámbar */
  --ri-gold-300:   #fed98f;
  --ri-gold-400:   #fec975;
  --ri-gold-500:   #f0b14f;
  --ri-gold-600:   #e2962f;
  --ri-amber-600:  #d97f2e;
  --ri-amber-700:  #bc6a23;
  /* Crema */
  --ri-cream-50:   #faf6ec;
  --ri-cream-100:  #f5efe1;
  --ri-cream-200:  #ebe3d0;
  /* Funcional */
  --ri-success:    #6f9c54;
  --ri-danger:     #c0533b;

  /* Semánticos */
  --surface-page:      var(--ri-forest-800);
  --surface-section:   var(--ri-forest-700);
  --surface-card:      rgba(35, 44, 32, 0.55);
  --surface-card-solid:var(--ri-forest-950);
  --surface-light:     var(--ri-mist-100);
  --surface-overlay:   rgba(26, 34, 26, 0.72);

  --text-on-dark:        var(--ri-cream-100);
  --text-on-dark-muted:  rgba(245, 239, 225, 0.72);
  --text-on-light:       var(--ri-forest-900);
  --text-on-light-muted: var(--ri-forest-600);
  --text-gold:           var(--ri-gold-500);
  --text-heading:        var(--ri-cream-50);

  --accent:            var(--ri-gold-500);
  --cta-gradient:      linear-gradient(180deg, var(--ri-gold-400) 0%, var(--ri-gold-500) 48%, var(--ri-amber-600) 100%);
  --cta-gradient-hover:linear-gradient(180deg, var(--ri-gold-300) 0%, var(--ri-gold-400) 48%, var(--ri-gold-600) 100%);

  --border-soft:   rgba(245, 239, 225, 0.16);
  --border-gold:   rgba(240, 177, 79, 0.55);
  --border-mist:   rgba(168, 176, 159, 0.35);

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'Hoefler Text', Georgia, serif;
  --font-body:    'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radios / sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 28, 18, 0.30);
  --shadow-md: 0 8px 24px rgba(20, 28, 18, 0.32);
  --shadow-lg: 0 20px 50px rgba(15, 22, 14, 0.45);
  --shadow-card: 0 14px 40px rgba(15, 22, 14, 0.38);
  --glow-gold: 0 0 0 1px rgba(255, 217, 143, 0.35), 0 6px 20px rgba(226, 150, 47, 0.35);
  --glow-gold-strong: 0 0 0 1px rgba(255, 217, 143, 0.55), 0 8px 28px rgba(226, 150, 47, 0.50);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --content-max: 1200px;
  --gutter: 24px;
  --cookie-h: 0px;
}

/* ---- Reset ligero ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-on-dark);
  background: var(--surface-page);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-break: break-word; }
a { color: var(--ri-gold-400); text-decoration: none; overflow-wrap: break-word; word-break: break-word; }
a:hover { color: var(--ri-gold-300); text-decoration: underline; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ri-gold-400); outline-offset: 2px; }

/* Evitar selección/tap-highlight en controles */
.btn, .nav-link, .nav-cta, .burger, .badge, .chat-toggle, .cookie__btn, .player-card__btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* ---- Tipos ---- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--text-gold);
  margin: 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-gold);
  line-height: 1;
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: var(--text-heading);
  margin: 0;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text-heading);
  margin: 0;
}
.body-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin: 0 0 1em;
}
.lead {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-on-dark);
  margin: 0;
}

/* ---- Layout ---- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding: 96px 0; }
.section--light { background: var(--surface-light); color: var(--text-on-light); }
.section--section { background: var(--surface-section); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.section-head .display, .section-head .section-title { font-size: clamp(28px, 4vw, 46px); }
.section--light .section-head .section-title,
.section--light .section-title { color: var(--text-on-light); }
.section--light .body-text { color: var(--text-on-light-muted); }
.section--light .eyebrow { color: var(--ri-amber-600); }

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; text-align: center;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  border-radius: var(--radius-pill); border: 1px solid transparent; text-decoration: none;
  transition: transform .14s var(--ease-out), box-shadow .24s var(--ease-out), filter .24s var(--ease-out);
  line-height: 1.1;
}
.btn:hover { text-decoration: none; }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--md { padding: 12px 28px; font-size: 16px; }
.btn--lg { padding: 16px 40px; font-size: 20px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--cta-gradient); color: #fff; text-shadow: 0 1px 1px rgba(120,70,10,0.45); box-shadow: var(--glow-gold); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--glow-gold-strong); filter: saturate(1.06); color: #fff; }
.btn--secondary { background: rgba(245,239,225,0.06); color: var(--text-on-dark); border: 1px solid var(--border-soft); }
.btn--secondary:hover { transform: translateY(-1px); background: rgba(245,239,225,0.12); }
.btn--outline { background: transparent; color: var(--ri-gold-400); border: 1px solid var(--border-gold); }
.btn--outline:hover { transform: translateY(-1px); background: rgba(245,239,225,0.12); }
.btn--ghost { background: transparent; color: var(--text-on-dark-muted); }
.btn--ghost:hover { transform: translateY(-1px); background: rgba(245,239,225,0.06); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { transform: none; filter: none; }

/* ============================================================
   Cards
   ============================================================ */
.card { border-radius: var(--radius-lg); }
.card--frame { background: var(--surface-card-solid); border: 1px solid var(--border-gold); box-shadow: var(--shadow-card); }
.card--glass { background: var(--surface-card); backdrop-filter: blur(10px); border: 1px solid var(--border-soft); box-shadow: var(--shadow-md); }
.card--plain { background: rgba(245,239,225,0.04); border: 1px solid var(--border-soft); }
.card--light { color: var(--text-on-light); border: 1px solid rgba(26,34,26,0.10); box-shadow: var(--shadow-md); }
.card--light .body-text { color: var(--text-on-light-muted); }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill); line-height: 1; white-space: nowrap;
}
.badge--gold { background: var(--cta-gradient); color: #fff; text-shadow: 0 1px 1px rgba(120,70,10,0.4); box-shadow: var(--shadow-sm); }
.badge--outline { background: transparent; color: var(--ri-cream-100); border: 1px solid var(--border-soft); }
.badge--sage { background: rgba(134,150,120,0.30); color: var(--ri-cream-50); border: 1px solid var(--border-mist); }
.badge--age { background: transparent; color: var(--ri-cream-100); border: 1.5px solid var(--border-soft); letter-spacing: 0.04em; }

/* ============================================================
   Ribbon de cumplimiento
   ============================================================ */
.compliance-ribbon {
  background: var(--ri-forest-950);
  color: var(--text-on-dark-muted);
  font-size: 12px; text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-soft);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35,44,32,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  max-width: var(--content-max); margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; height: 40px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 40px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--text-on-dark); font-weight: 600; font-size: 14px; }
.nav-link[aria-current="page"] { color: var(--ri-gold-400); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--border-soft);
  background: transparent; border-radius: 12px; cursor: pointer;
  padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ri-cream-100); border-radius: 2px; }

/* Nav móvil (oculto en desktop) */
.nav-mobile { display: none; }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero-home {
  position: relative; min-height: 760px; display: flex; align-items: center;
  overflow: hidden;
  background: radial-gradient(120% 100% at 78% 30%, var(--ri-forest-700) 0%, var(--ri-forest-900) 60%, var(--ri-forest-950) 100%);
}
.hero-home__img {
  position: absolute; right: 2%; bottom: 0; z-index: 0;
  height: 104%; max-height: 900px; width: auto; object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55)); pointer-events: none;
}
.hero-home__scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--ri-forest-900) 0%, rgba(35,44,32,0.55) 45%, rgba(35,44,32,0) 72%);
}
.hero-home__inner { position: relative; z-index: 1; max-width: var(--content-max); margin: 0 auto; padding: 110px 24px 80px; width: 100%; }
.hero-home__title { font-size: clamp(38px, 6.5vw, 80px); margin: 16px 0 24px; max-width: 820px; }
.hero-home__lead { max-width: 600px; margin: 0 0 32px; }
.hero-home__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-home__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin-bottom: 28px; }
.hero-mini { display: flex; flex-direction: column; gap: 6px; }
.hero-mini p { margin: 0; font-size: 14px; }
.hero-home__fine { font-size: 13px; max-width: 640px; margin: 0; }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { display: flex; flex-direction: column; gap: 16px; }
.about-facts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13px; }
.reasons-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.reason { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.reason h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text-heading); }
.reason p { margin: 0; font-size: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 80px; }
.stack-md { display: flex; flex-direction: column; gap: 32px; }

/* ============================================================
   Juega Ahora — fichajes + campo
   ============================================================ */
.players-grid {
  display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden;
  padding: 28px 4px 36px; margin: 0; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  scrollbar-color: var(--border-gold) rgba(245,239,225,0.06);
}
.players-grid::-webkit-scrollbar { height: 8px; }
.players-grid::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 999px; }
.players-grid::-webkit-scrollbar-track { background: rgba(245,239,225,0.06); border-radius: 999px; }
.player-card { flex: 0 0 220px; scroll-snap-align: start; padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.player-card__photo {
  width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; cursor: grab;
  display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(135deg, var(--ri-forest-600) 0%, var(--ri-forest-950) 100%);
  font-family: var(--font-display); font-weight: 700; font-size: 54px;
  color: var(--ri-gold-400); text-transform: uppercase; letter-spacing: 0.04em;
}
.player-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; display: block; }
.player-card__name { font-weight: 500; font-size: 15px; margin: 0; color: var(--text-on-dark); font-family: var(--font-body); }
.player-card__meta { font-size: 12px; margin: 2px 0 0; color: var(--text-on-dark-muted); }

.play-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 24px; }
.pitch {
  position: relative; width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(180deg, var(--ri-moss-500), var(--ri-forest-700));
  border-radius: var(--radius-lg); border: 2px solid var(--border-mist); overflow: hidden;
}
.pitch__box { position: absolute; inset: 8%; border: 2px solid rgba(245,239,225,0.25); border-radius: 8px; }
.pitch__mid { position: absolute; top: 50%; left: 8%; right: 8%; height: 2px; background: rgba(245,239,225,0.25); }
.slot { position: absolute; transform: translate(-50%, -50%); }
.slot--filled { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.slot__ava-wrap { position: relative; }
.slot__avatar {
  position: relative; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--ri-forest-600), var(--ri-forest-950));
  color: var(--ri-gold-400); border: 2px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.slot__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slot__remove {
  position: absolute; top: -6px; right: -6px; z-index: 3; width: 20px; height: 20px; padding: 0;
  border-radius: 50%; background: var(--ri-danger); color: #fff; border: 2px solid var(--ri-forest-950);
  font-size: 12px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.slot__name {
  font-size: 11px; color: var(--text-on-dark);
  background: rgba(26,34,26,0.7); padding: 2px 6px; border-radius: 6px;
  white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis;
}
.slot__empty {
  width: 56px; height: 56px; border-radius: 50%; border: 2px dashed var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-on-dark-muted); text-align: center;
}
.slot--drop-hover .slot__empty { background: rgba(240,177,79,0.18); border-style: solid; }

.team-panel { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.team-panel__bar { width: 100%; height: 8px; background: rgba(245,239,225,0.16); border-radius: 999px; overflow: hidden; }
.team-panel__fill { height: 100%; background: var(--cta-gradient); border-radius: 999px; width: 0; transition: width .3s var(--ease-out); }

/* ============================================================
   Predicciones
   ============================================================ */
.predict-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.predict-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.predict-card__label { color: var(--ri-amber-600); }
.predict-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-on-light-muted); }

/* ============================================================
   Formularios
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-on-dark); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 14px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--border-soft);
  background: rgba(250,246,236,0.06); color: var(--text-on-dark); width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245,239,225,0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--border-gold); }
.field textarea { resize: none; min-height: 120px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: flex; gap: 12px; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--text-on-dark-muted); line-height: 1.5; font-weight: 400;
}
.consent input[type="checkbox"] {
  width: 18px; height: 18px; flex: 0 0 18px; aspect-ratio: 1 / 1;
  margin: 2px 0 0; accent-color: var(--ri-gold-500); cursor: pointer;
}

/* ============================================================
   Modales / overlays
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 250;
  background: var(--surface-overlay); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal { max-width: 440px; width: 100%; padding: 40px; }
.modal--wide { max-width: 480px; }
.modal__title { font-size: 24px; margin: 0; }
.modal-center { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* Age gate */
.age-gate {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(20,26,18,0.9); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.age-gate__box { max-width: 480px; width: 100%; padding: 40px; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.age-gate__box h2 { font-size: 28px; margin: 0; }
.age-gate__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; width: 100%; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 0);
  z-index: 500; background: var(--ri-forest-950); color: var(--text-on-dark);
  border: 1px solid var(--border-gold); padding: 12px 22px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lg); white-space: nowrap;
  animation: toastIn .24s var(--ease-out);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ri-forest-950); padding: 80px 0 32px; color: var(--text-on-dark-muted); }
.site-footer__inner { max-width: var(--content-max); margin: 0 auto; padding-inline: 24px; display: flex; flex-direction: column; gap: 48px; }
.footer-intro { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 14px; }
.footer-col--company { gap: 6px; font-size: 13px; }
.footer-map { border-radius: 16px; overflow: hidden; aspect-ratio: 16/5; border: 1px solid var(--border-soft); }
.footer-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.footer-help { padding: 24px; border: 1px solid var(--border-gold); border-radius: 16px; background: rgba(240,177,79,0.06); display: flex; flex-direction: column; gap: 10px; }
.footer-help__lines { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.footer-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer-disclaimer { font-size: 13px; margin: 0; line-height: 1.7; max-width: 840px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--border-soft); padding-top: 24px; font-size: 12px; }

/* ============================================================
   Chat de soporte — "Curro"
   ============================================================ */
.chat-toggle {
  position: fixed; right: 22px; bottom: calc(22px + var(--cookie-h)); z-index: 300;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--cta-gradient); color: var(--ri-forest-950);
  box-shadow: var(--glow-gold-strong);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.chat-toggle:hover { transform: scale(1.06); box-shadow: var(--glow-gold-strong), var(--shadow-lg); }
.chat-toggle svg { width: 28px; height: 28px; }
.chat-panel {
  position: fixed; right: 22px; bottom: calc(94px + var(--cookie-h)); z-index: 300;
  width: 360px; max-width: calc(100vw - 32px); height: 460px; max-height: calc(100vh - 140px);
  background: var(--ri-forest-900); border: 1px solid var(--border-gold);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ri-forest-950); border-bottom: 1px solid var(--border-soft); }
.chat-head__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--cta-gradient); color: var(--ri-forest-950); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.chat-head__name { font-weight: 700; font-size: 14px; color: var(--text-on-dark); }
.chat-head__status { font-size: 11px; color: var(--ri-success); }
.chat-head__close { margin-left: auto; background: transparent; border: none; color: var(--text-on-dark-muted); cursor: pointer; line-height: 1; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; }
.chat-head__close svg { width: 20px; height: 20px; display: block; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.chat-msg--bot { align-self: flex-start; background: var(--ri-forest-700); color: var(--text-on-dark); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; background: var(--cta-gradient); color: var(--ri-forest-950); border-bottom-right-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border-soft); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--border-soft); background: rgba(250,246,236,0.06); color: var(--text-on-dark); font-family: var(--font-body); font-size: 13px; }
.chat-form input:focus { outline: none; border-color: var(--border-gold); }
.chat-form button { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--cta-gradient); color: var(--ri-forest-950); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-form button svg { width: 18px; height: 18px; }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 320;
  max-width: 720px; margin: 0 auto;
  background: var(--ri-forest-950); border: 1px solid var(--border-gold);
  border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie[hidden] { display: none !important; }
.cookie__text { flex: 1; min-width: 220px; font-size: 13px; color: var(--text-on-dark-muted); margin: 0; line-height: 1.5; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__btn { border: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; padding: 10px 18px; border-radius: 999px; }
.cookie__btn--accept { background: var(--cta-gradient); color: var(--ri-forest-950); }
.cookie__btn--reject { background: transparent; color: var(--text-on-dark-muted); box-shadow: inset 0 0 0 1px var(--border-soft); }

/* ============================================================
   Legal
   ============================================================ */
.legal-main { max-width: 840px; margin: 0 auto; padding: 64px 24px 96px; display: flex; flex-direction: column; gap: 32px; }
.legal-content { display: flex; flex-direction: column; gap: 12px; }
.legal-content h2 { font-size: 22px; margin: 0; }
.legal-notice { padding: 24px; }
.legal-notice p { margin: 0; font-size: 13px; }
.legal-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.page-head { padding-top: 64px; display: flex; flex-direction: column; gap: 14px; }
.page-head .display { font-size: clamp(30px, 5vw, 52px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1220px) {
  .main-nav, .header-actions .nav-cta { display: none; }
  .burger { display: flex; }
  .nav-mobile {
    display: block; position: fixed; inset: 0; z-index: 200;
    background: var(--ri-forest-950); padding: 24px;
    transform: translateX(100%); transition: transform .28s var(--ease-out);
  }
  .nav-mobile.is-open { transform: translateX(0); }
  .nav-mobile__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
  .nav-mobile__close { width: 44px; height: 44px; border: 1px solid var(--border-soft); background: transparent; border-radius: 12px; color: var(--ri-cream-100); cursor: pointer; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
  .nav-mobile__close svg { width: 24px; height: 24px; display: block; }
  .nav-mobile__links { display: flex; flex-direction: column; gap: 4px; }
  .nav-mobile__links a { color: var(--text-on-dark); font-weight: 600; font-size: 18px; padding: 14px 8px; border-bottom: 1px solid var(--border-soft); }
  .nav-mobile__cta { margin-top: 24px; }
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .play-layout { grid-template-columns: 1fr; gap: 32px; }
  .pitch { max-width: 460px; margin: 0 auto; width: 100%; }
  .reasons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-home__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .predict-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .hero-home { min-height: 0; flex-direction: column-reverse; }
  .hero-home__img { position: relative; right: auto; width: auto; height: auto; max-height: 340px; margin: 0 auto; display: block; }
  .hero-home__scrim { display: none; }
  .hero-home__inner { padding: 56px 24px 48px; display: flex; flex-direction: column; width: 100%; }
  .hero-home__cards { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .stack-lg { gap: 56px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header__inner { padding: 12px 16px; gap: 12px; }
  .brand__logo { height: 30px; }
  .container { --gutter: 16px; }
  .modal { padding: 28px 22px; }
  .age-gate__box { padding: 28px 22px; }
  .form__row { flex-direction: column; }
  .chat-panel { right: 12px; left: 12px; width: auto; }
  .chat-toggle { right: 16px; }
  .players-grid { gap: 14px; }
}


@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
