:root{
  /* ERICKMANÍA — Paleta neón (magenta/cyan/violeta) + oro, como las imágenes */
  --paper:#07040f;
  --ink:#ffffff;

  /* neones principales */
  --pink:#ff00a8;      /* magenta */
  --cyan:#00e5ff;      /* cyan eléctrico */
  --purple:#7a00ff;    /* violeta intenso */
  --blue:#2d7bff;      /* azul neón */
  --green:#00ff6a;     /* acento */
  --gold:#ffd24a;      /* dorado */

  /* extras para brillos */
  --hotpink:#ff2bd6;
  --deep:#04010a;

  /* compat con reglas existentes */
  --red: var(--pink);
  --neon: var(--cyan);

  --shadow: rgba(0,0,0,.65);
  --radius: 18px;

  --font-title: "Bangers", system-ui, sans-serif;
  --font-head: "Luckiest Guy", system-ui, sans-serif;
  --font-body: "Oswald", system-ui, sans-serif;
  /* ===== PERFORMANCE TUNING (sin perder look/animación) ===== */
  /* Ajustes por variables: en móvil bajamos blur/blend/ritmo para que no caliente */
  --fx-screenpyro-opacity: .55;
  --fx-screenpyro-blur: .25px;
  --fx-screenpyro-saturate: 1.55;
  --fx-screenpyro-duration: 6.5s;

  --fx-innerpyro-opacity: .35;
  --fx-innerpyro-blur: .25px;
  --fx-innerpyro-saturate: 1.55;
  --fx-innerpyro-duration: 3.2s;

  --fx-vs-duration: 2.8s;
  --fx-cd-pulse: 1.05s;
  --fx-logo-float: 2.8s;
  --fx-logo-glow: 1.6s;

  /* Espacio reservado para que el reproductor no tape el footer (móvil) */
  --player-reserve: 92px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: var(--font-body);
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 18% 10%, rgba(0,229,255,.22), transparent 60%),
    radial-gradient(900px 520px at 82% 10%, rgba(255,0,168,.22), transparent 60%),
    radial-gradient(1100px 720px at 50% 110%, rgba(122,0,255,.22), transparent 58%),
    radial-gradient(1200px 800px at 50% 40%, rgba(255,43,214,.10), transparent 55%),
    linear-gradient(180deg, var(--deep), #0a0716 42%, #030008);
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  position: relative;
  overflow-x: hidden;
}

/* ===== PIROTECNIA EN TODA LA PANTALLA (fondo estilo arena) ===== */
body::before{
  content:"";
  position: fixed;
  inset: -60px;
  pointer-events: none;
  z-index: 0;

  /* WebKit/Safari suele repintar capas fixed+blend+filter en scroll */
  will-change: opacity, transform;
  transform: translateZ(0);

  /* Mucho más cargado: anillos (explosiones) + chispas diagonales */
  background:
    /* Anillos grandes (explosiones) */
    radial-gradient(circle at 6% 16%, rgba(255,210,74,.0) 0 44px, rgba(255,210,74,.65) 46px 48px, transparent 54px),
    radial-gradient(circle at 10% 40%, rgba(0,229,255,.0) 0 46px, rgba(0,229,255,.55) 48px 50px, transparent 58px),
    radial-gradient(circle at 7% 72%, rgba(255,0,168,.0) 0 44px, rgba(255,0,168,.52) 46px 48px, transparent 54px),
    radial-gradient(circle at 12% 90%, rgba(122,0,255,.0) 0 42px, rgba(122,0,255,.48) 44px 46px, transparent 52px),

    radial-gradient(circle at 94% 18%, rgba(255,210,74,.0) 0 44px, rgba(255,210,74,.58) 46px 48px, transparent 54px),
    radial-gradient(circle at 90% 42%, rgba(0,229,255,.0) 0 46px, rgba(0,229,255,.52) 48px 50px, transparent 58px),
    radial-gradient(circle at 93% 70%, rgba(255,0,168,.0) 0 44px, rgba(255,0,168,.48) 46px 48px, transparent 54px),
    radial-gradient(circle at 88% 92%, rgba(0,255,106,.0) 0 42px, rgba(0,255,106,.42) 44px 46px, transparent 52px),

    /* Explosiones medianas repartidas */
    radial-gradient(circle at 28% 10%, rgba(45,123,255,.0) 0 34px, rgba(45,123,255,.42) 36px 38px, transparent 46px),
    radial-gradient(circle at 50% 8%, rgba(255,43,214,.0) 0 34px, rgba(255,43,214,.38) 36px 38px, transparent 46px),
    radial-gradient(circle at 72% 12%, rgba(255,210,74,.0) 0 34px, rgba(255,210,74,.34) 36px 38px, transparent 46px),
    radial-gradient(circle at 34% 88%, rgba(0,229,255,.0) 0 34px, rgba(0,229,255,.34) 36px 38px, transparent 46px),
    radial-gradient(circle at 58% 94%, rgba(255,0,168,.0) 0 34px, rgba(255,0,168,.30) 36px 38px, transparent 46px),

    /* Chispas diagonales (tipo cohetes) */
    repeating-linear-gradient(115deg,
      transparent 0 36px,
      rgba(255,210,74,.10) 36px 38px,
      transparent 38px 90px
    ),
    repeating-linear-gradient(245deg,
      transparent 0 44px,
      rgba(0,229,255,.08) 44px 46px,
      transparent 46px 110px
    ),
    repeating-linear-gradient(65deg,
      transparent 0 52px,
      rgba(255,0,168,.07) 52px 54px,
      transparent 54px 130px
    );

  mix-blend-mode: screen;
  opacity: var(--fx-screenpyro-opacity);
  filter: blur(var(--fx-screenpyro-blur)) saturate(var(--fx-screenpyro-saturate));
  animation: screenPyro var(--fx-screenpyro-duration) ease-in-out infinite;
}
/* Evita tirones: en preload no pintamos el overlay pesado */
body.preload::before{ opacity: 0; animation: none; }
/* Cuando inicia la intro, lo encendemos */
body.intro::before{
  opacity: var(--fx-screenpyro-opacity);
  animation: screenPyro var(--fx-screenpyro-duration) ease-in-out infinite;
}

@keyframes screenPyro{
  0%,100%{ opacity: .42; transform: translateZ(0) scale(1); }
  50%{ opacity: .70; transform: translateZ(0) scale(1.01); }
}

.wrap{
  width:min(980px, 100%);
  display:grid;
  gap:14px;
  position: relative;
  z-index: 1;
}

.toolbar{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  letter-spacing:.2px;
  backdrop-filter: blur(6px);
  transition: transform .08s ease, background .2s ease;
  display:flex;
  align-items:center;
  gap:8px;
  user-select:none;
  font-family: var(--font-head);
}
.btn:hover{ background: rgba(255,255,255,.12); }
.btn:active{ transform: translateY(1px) scale(.99); }

.btn small{ opacity:.85; font-weight:600; font-family: var(--font-body); }

/* ===== REPRODUCTOR FLOTANTE ===== */
.hidden{ display:none !important; }

.player{
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 9999;

  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 10px;
  align-items: center;

  width: min(520px, calc(100vw - 36px));
  padding: 12px 12px;
  border-radius: 16px;

  background:
    radial-gradient(1200px 200px at 20% 0%, rgba(0,229,255,.25), transparent 60%),
    radial-gradient(900px 240px at 80% 120%, rgba(255,0,106,.25), transparent 60%),
    rgba(0,0,0,.72);

  border: 1px solid rgba(0,229,255,.25);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 18px 60px rgba(0,0,0,.55),
    0 0 30px rgba(0,229,255,.12);

  backdrop-filter: blur(10px);
}

.pbtn{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
}
.pbtn:hover{ background: rgba(255,255,255,.12); }
.pbtn:active{ transform: translateY(1px) scale(.99); }

.pmeta{ min-width: 0; }

.ptitle{
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 12px;
  opacity: .95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.prow{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.ptime{
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  opacity: .9;
}

.pseek{ width: 100%; accent-color: rgba(0,229,255,.95); }
.pvol{ width: 90px; accent-color: rgba(255,0,106,.95); }

@media (max-width: 520px){
  .player{
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "toggle meta close"
      "mute   vol  close";
  }
  #playerToggle{ grid-area: toggle; }
  .pmeta{ grid-area: meta; }
  #playerClose{ grid-area: close; }
  #playerMute{ grid-area: mute; }
  #pVol{ grid-area: vol; width: 100%; }
}

/* ===== Evitar que el reproductor tape el final de la invitación (móvil) ===== */
@media (hover: none) and (pointer: coarse){
  /* sumamos espacio extra al padding existente del body (24px) */
  body{
    padding-bottom: calc(24px + var(--player-reserve) + env(safe-area-inset-bottom));
  }
}

.poster{
  position:relative;
    /* Aísla el póster para que la entrada no fuerce repaints en toda la página */
  contain: layout paint;
  border-radius: var(--radius);
  background:
    radial-gradient(1200px 700px at 50% 20%, rgba(255,255,255,.07), transparent 60%),
    radial-gradient(900px 520px at 75% 18%, rgba(255,0,168,.16), transparent 60%),
    radial-gradient(900px 520px at 25% 18%, rgba(0,229,255,.14), transparent 60%),
    linear-gradient(180deg, #120a1f, #07040f);
  overflow:hidden;
  box-shadow:
    0 30px 90px rgba(0,0,0,.70),
    0 0 0 2px rgba(255,210,74,.18) inset,
    0 0 0 10px rgba(0,0,0,.65) inset,
    0 0 34px rgba(0,229,255,.14),
    0 0 42px rgba(255,0,168,.10);
}

/* textura papel viejo */
  .poster::before{
  content:"";
  position:absolute; inset:0;
  z-index: 0;
  filter: saturate(1.8) contrast(1.15);
  background:
    /* Rayos tipo show (arcoíris) */
    conic-gradient(from 230deg at 68% 32%,
      rgba(0,0,0,0) 0deg,
      rgba(0,229,255,.22) 18deg,
      rgba(45,123,255,.18) 40deg,
      rgba(122,0,255,.20) 64deg,
      rgba(255,0,168,.20) 92deg,
      rgba(0,255,106,.16) 128deg,
      rgba(255,210,74,.16) 156deg,
      rgba(0,0,0,0) 200deg,
      rgba(0,0,0,0) 360deg
    ),
    radial-gradient(900px 520px at 75% 20%, rgba(255,0,168,.14), transparent 60%),
    radial-gradient(900px 520px at 55% 10%, rgba(0,229,255,.12), transparent 60%),
    /* Lucecitas por TODO el fondo (tipo arena) */
    radial-gradient(26px 26px at 12% 18%, rgba(255,210,74,.90), transparent 64%),
    radial-gradient(22px 22px at 26% 34%, rgba(0,229,255,.86), transparent 64%),
    radial-gradient(24px 24px at 72% 22%, rgba(255,0,168,.82), transparent 64%),
    radial-gradient(20px 20px at 86% 30%, rgba(255,210,74,.78), transparent 64%),
    radial-gradient(22px 22px at 18% 62%, rgba(122,0,255,.78), transparent 64%),
    radial-gradient(20px 20px at 36% 78%, rgba(0,255,106,.70), transparent 64%),
    radial-gradient(24px 24px at 78% 70%, rgba(0,229,255,.72), transparent 64%),
    radial-gradient(20px 20px at 90% 86%, rgba(255,0,168,.70), transparent 64%),

    radial-gradient(5px 5px at 10% 40%, rgba(255,255,255,.70), transparent 70%),
    radial-gradient(5px 5px at 22% 12%, rgba(255,255,255,.62), transparent 70%),
    radial-gradient(5px 5px at 34% 52%, rgba(255,255,255,.62), transparent 70%),
    radial-gradient(5px 5px at 46% 18%, rgba(255,255,255,.58), transparent 70%),
    radial-gradient(5px 5px at 58% 46%, rgba(255,255,255,.64), transparent 70%),
    radial-gradient(5px 5px at 66% 10%, rgba(255,255,255,.58), transparent 70%),
    radial-gradient(5px 5px at 74% 56%, rgba(255,255,255,.64), transparent 70%),
    radial-gradient(5px 5px at 88% 52%, rgba(255,255,255,.58), transparent 70%),
    radial-gradient(5px 5px at 92% 18%, rgba(255,255,255,.58), transparent 70%),
    radial-gradient(5px 5px at 16% 88%, rgba(255,255,255,.58), transparent 70%),
    radial-gradient(5px 5px at 44% 84%, rgba(255,255,255,.58), transparent 70%),
    radial-gradient(5px 5px at 62% 92%, rgba(255,255,255,.58), transparent 70%),
    radial-gradient(5px 5px at 82% 88%, rgba(255,255,255,.58), transparent 70%),

    radial-gradient(4px 4px at 12% 66%, rgba(0,229,255,.70), transparent 70%),
    radial-gradient(4px 4px at 28% 24%, rgba(255,0,168,.62), transparent 70%),
    radial-gradient(4px 4px at 54% 30%, rgba(255,210,74,.70), transparent 70%),
    radial-gradient(4px 4px at 76% 34%, rgba(122,0,255,.62), transparent 70%),
    radial-gradient(4px 4px at 70% 78%, rgba(0,255,106,.58), transparent 70%),
    radial-gradient(4px 4px at 38% 70%, rgba(255,0,168,.55), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 7px);
  mix-blend-mode: normal;
  opacity:1;
  pointer-events:none;
}

/* viñeta */
  .poster::after{
  content:"";
  position:absolute; inset:-2px;
  z-index: 1;
  background: radial-gradient(120% 90% at 50% 40%, transparent 52%, rgba(0,0,0,.55) 100%);
  opacity: .22;
  pointer-events:none;
}

.inner{
  position:relative;
  z-index: 2;
  isolation: isolate;
  padding:20px 18px 18px;
  display:grid;
  gap:14px;
}

/* Pirotecnia / fuegos artificiales (overlay estilo AAA, visible en TODO el póster) */
.inner::before{
  content:"";
  position:absolute;
  inset:-26px;
  pointer-events:none;
  z-index:4;

  /* Explosiones y chispas (más en laterales) */
  background:
    /* LEFT bursts */
    radial-gradient(140px 140px at 0% 18%, rgba(255,210,74,.85) 0 12px, transparent 62%),
    radial-gradient(160px 160px at 4% 40%, rgba(0,229,255,.78) 0 10px, transparent 62%),
    radial-gradient(150px 150px at 2% 66%, rgba(255,0,168,.72) 0 11px, transparent 62%),
    radial-gradient(170px 170px at 6% 86%, rgba(122,0,255,.70) 0 10px, transparent 62%),

    /* RIGHT bursts */
    radial-gradient(150px 150px at 100% 22%, rgba(255,210,74,.80) 0 11px, transparent 62%),
    radial-gradient(170px 170px at 96% 44%, rgba(0,229,255,.74) 0 10px, transparent 62%),
    radial-gradient(160px 160px at 98% 70%, rgba(255,0,168,.68) 0 11px, transparent 62%),
    radial-gradient(180px 180px at 94% 90%, rgba(0,255,106,.62) 0 10px, transparent 62%),

    /* TOP/BOTTOM accents */
    radial-gradient(190px 190px at 22% 0%, rgba(255,43,214,.55) 0 10px, transparent 62%),
    radial-gradient(210px 210px at 78% 0%, rgba(45,123,255,.50) 0 10px, transparent 62%),
    radial-gradient(210px 210px at 50% 100%, rgba(255,210,74,.40) 0 10px, transparent 62%),

    /* Spark trails (streaks) */
    linear-gradient(110deg, transparent 0 40%, rgba(255,210,74,.22) 52%, transparent 64%),
    linear-gradient(250deg, transparent 0 44%, rgba(0,229,255,.18) 55%, transparent 66%),
    linear-gradient(70deg,  transparent 0 46%, rgba(255,0,168,.16) 58%, transparent 70%),

    /* Confetti glints (tiny rectangles, not dots) */
    repeating-linear-gradient(90deg,
      transparent 0 22px,
      rgba(255,255,255,.10) 22px 24px,
      transparent 24px 56px
    ),
    repeating-linear-gradient(0deg,
      transparent 0 34px,
      rgba(0,229,255,.08) 34px 36px,
      transparent 36px 74px
    );

  mix-blend-mode: screen;
 
    opacity: var(--fx-innerpyro-opacity);
  filter: blur(var(--fx-innerpyro-blur)) saturate(var(--fx-innerpyro-saturate));
    animation: pyroPulse var(--fx-innerpyro-duration) ease-in-out infinite;
}

@keyframes pyroPulse{
  0%,100%{ opacity: .40; transform: translateZ(0) scale(1); }
  50%{ opacity: .70; transform: translateZ(0) scale(1.005); }
}

/* ===== TEXTURA DE MÁSCARAS (fantasma, sutil) ===== */
/* Se pinta encima del póster pero debajo del contenido (por eso va en .inner) */
.inner::after{
  content:"";
  position:absolute;
  inset:-10px;
  pointer-events:none;
  z-index:2;

  /* Patrón SVG de máscaras en baja opacidad */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.55' stroke-width='4'%3E%3Cpath d='M64 76c10-18 26-28 46-28s36 10 46 28c7 13 8 34 2 53-7 22-22 39-48 39S69 151 62 129c-6-19-5-40 2-53Z'/%3E%3Cpath d='M84 108c6-7 14-11 26-11s20 4 26 11'/%3E%3Cpath d='M78 92c8-8 17-12 32-12s24 4 32 12'/%3E%3Cpath d='M82 120c10 7 19 10 28 10s18-3 28-10'/%3E%3Cpath d='M96 96c-6 6-10 13-12 23'/%3E%3Cpath d='M124 96c6 6 10 13 12 23'/%3E%3C/g%3E%3Cg fill='none' stroke='%2300e5ff' stroke-opacity='.38' stroke-width='3'%3E%3Cpath d='M156 150c7-12 18-19 32-19s25 7 32 19c5 9 5 24 1 37-5 16-15 28-33 28s-28-12-33-28c-4-13-4-28 1-37Z'/%3E%3Cpath d='M170 178c5-5 11-8 18-8s13 3 18 8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-repeat: repeat;

  opacity: .07;
  mix-blend-mode: screen;
  /* Blur en texturas + scroll en Safari = jank */
  filter: none;
  transform: rotate(-6deg) scale(1.06);
}
/* ===== PERF MODE: Safari / iOS (scroll suave, menos calentamiento) ===== */
@supports (-webkit-touch-callout: none){
  /* iOS Safari: fixed + mix-blend-mode + filter se repinta al hacer scroll */
  body::before{
    position: absolute;
    inset: 0;
    /* reduce el área de rasterizado */
    filter: none;
    mix-blend-mode: normal;
    animation: screenPyro 14s ease-in-out infinite;
  }

  .inner::before,
  .inner::after{
    filter: none;
    mix-blend-mode: normal;
  }

  /* Backdrop blur es carísimo en WebKit (botones, player, countdown, modal) */
  .btn,
  .player,
  .timeBox,
  .lightbox,
  .fighter img{
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* A cambio, subimos un poco opacidad para mantener la estética */
  .btn{ background: rgba(255,255,255,.10); }
  .player{ background: rgba(0,0,0,.78); }
  .timeBox{ background: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.52)); }

  body{
    padding-bottom: calc(24px + var(--player-reserve) + env(safe-area-inset-bottom));
  }
}


/* Asegura que el contenido quede por encima de las texturas */
.inner > *{ position: relative; z-index: 5; }

.topline{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  padding:10px 12px;
  background:
    radial-gradient(700px 90px at 18% 0%, rgba(0,229,255,.16), transparent 70%),
    radial-gradient(700px 90px at 82% 0%, rgba(255,0,168,.14), transparent 70%),
    linear-gradient(90deg, rgba(0,0,0,.92), rgba(122,0,255,.22), rgba(25,25,25,.72));
  color:#fff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  text-transform: uppercase;
  letter-spacing:.8px;
  font-weight:900;
  font-family: var(--font-head);
  border: 1px solid rgba(255,210,74,.14);
}
.topline .star{ color: var(--gold); filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
.topline .small{ font-weight:800; opacity:.95; font-size: .95rem; font-family: var(--font-head); }

.hero{
  display:grid;
  gap:10px;
  padding:18px 16px;
  border-radius: 16px;
  background:
    radial-gradient(900px 240px at 50% 0%, rgba(0,229,255,.24), transparent 62%),
    radial-gradient(900px 240px at 78% 0%, rgba(255,0,168,.20), transparent 62%),
    radial-gradient(900px 240px at 22% 0%, rgba(122,0,255,.18), transparent 62%),
    linear-gradient(90deg, rgba(122,0,255,.62), rgba(0,0,0,.38));
  box-shadow: 0 16px 38px rgba(0,0,0,.45);
  border: 2px solid rgba(255,210,74,.28);
  align-items: center;
  text-align: center;
}

.heroLogo{
  width: min(300px, 90%);
  height: auto;
  display: block;
  margin: 0 auto;

  /* Se ve más grande sin cambiar el tamaño del contenedor (transform no afecta el layout) */
  transform: scale(1.35);
  transform-origin: 50% 60%;

  /* Glow + sombra (base) */
  filter:
    drop-shadow(0 18px 34px rgba(0,0,0,.62))
    drop-shadow(0 0 20px rgba(0,229,255,.22))
    drop-shadow(0 0 18px rgba(255,0,168,.16));

  /* Efecto: flotación + pulso de glow */
 animation:
  heroLogoFloat var(--fx-logo-float) ease-in-out infinite,
  heroLogoGlow  var(--fx-logo-glow) ease-in-out infinite;

  will-change: transform;
}

.hero h1{
  margin:0;
  display:block;
}

.hero .sub{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:baseline;
  color:#fff;
  font-weight:900;
  letter-spacing:.6px;
  text-transform: uppercase;
  justify-content: center;
  text-align: center;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  font-size: .95rem;
  font-family: var(--font-body);
}
.pill b{ color: var(--gold); }
.pill .dot{
  width:10px;height:10px;border-radius:99px;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(0,0,0,.35);
  flex: 0 0 auto;
}

.card{
  border-radius: 16px;
  border: 2px solid rgba(0,0,0,.25);
  overflow:hidden;
  box-shadow: 0 10px 18px rgba(0,0,0,.15);
  background: rgba(255,255,255,.35);
  width: 100%;
}

.bar{
  position: relative;
  padding:10px 12px;
  background:
    radial-gradient(700px 90px at 15% 0%, rgba(0,229,255,.16), transparent 70%),
    radial-gradient(700px 90px at 85% 0%, rgba(255,0,168,.14), transparent 70%),
    linear-gradient(90deg, rgba(0,0,0,.92), rgba(255,0,168,.18), rgba(25,25,25,.72));
  color:#fff;
  font-weight:1000;
  text-transform: uppercase;
  letter-spacing:.8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-family: var(--font-head);
  border-bottom: 1px solid rgba(255,210,74,.16);
}
.bar .badge{
  background: linear-gradient(180deg, #ffe28b, #ffd24a, #b38300);
  color:#111;
  padding:6px 10px;
  border-radius: 999px;
  font-weight:1000;
  letter-spacing:.6px;
  border: 1px solid rgba(0,0,0,.22);
  box-shadow:
    0 10px 22px rgba(0,0,0,.35),
    0 0 16px rgba(255,210,74,.18);
  white-space:nowrap;
  font-family: var(--font-head);
}


/* ===== SEPARADOR TIPO CUERDA DEL RING ===== */
/* Línea/cordón debajo del encabezado de cada lucha */
.bar::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: -10px;
  height: 14px;
  pointer-events:none;

  /* Cordón: línea + brillo */
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0)),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.12) 0 8px,
      rgba(0,0,0,0) 8px 16px
    ),
    linear-gradient(90deg,
      rgba(255,0,168,.55),
      rgba(0,229,255,.55),
      rgba(255,210,74,.55)
    );

  border-radius: 999px;
  box-shadow:
    0 10px 18px rgba(0,0,0,.22),
    0 0 22px rgba(0,229,255,.18),
    0 0 22px rgba(255,0,168,.14);
  opacity: .9;
}

/* “Tensores” (bolitas) en los extremos del cordón */
.bar::before{
  content:"";
  position:absolute;
  left: 6px;
  right: 6px;
  bottom: -14px;
  height: 22px;
  pointer-events:none;

  background:
    radial-gradient(8px 8px at 0% 50%, rgba(255,210,74,.95), rgba(255,210,74,0) 65%),
    radial-gradient(8px 8px at 100% 50%, rgba(255,210,74,.95), rgba(255,210,74,0) 65%);
  opacity: .95;
}

/* Un poco de aire para que el cordón no se encime con el contenido */
.match{ padding-top: 22px; }
.match{
  padding:14px 14px 16px;
  display:grid;
  gap:8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.25), transparent 55%),
    linear-gradient(90deg, rgba(255,255,255,.2), rgba(0,0,0,.02));
  min-height: 420px;
}

.vs{
  font-weight:1200;
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.85);
  color: var(--gold);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
  font-family: var(--font-head);
  align-self:center;
  justify-self:center;
}

/* ✅ Tagline (código de vestimenta) – mejor legibilidad */
.tagline{
  text-align:center;
  font-weight:1000;
  text-transform: uppercase;
  letter-spacing:.9px;
  color: rgba(5, 2, 10, .92);
  opacity:1;
  font-family: var(--font-head);
  text-shadow:
    0 1px 0 rgba(255,255,255,.30),
    0 0 10px rgba(0,229,255,.18);
}
.tagline b{
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255,210,74,.28);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr; /* <- mismas columnas */
  gap:14px;
  align-items: stretch;
  justify-items: stretch;
}

.info{
  padding:14px 14px 16px;
  display:grid;
  gap:10px;
}

.infoRow{
  display:grid;
  gap:6px;
  padding:12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.22);
  box-shadow: 0 8px 14px rgba(0,0,0,.1);
}
.label{
  text-transform: uppercase;
  font-weight:1000;
  letter-spacing:.8px;
  font-size:.85rem;
  font-family: var(--font-head);
  opacity:1;
  /* Mejor lectura sobre el fondo claro, manteniendo glow neón */
  color: rgba(10, 6, 18, .90);
  text-shadow:
    0 1px 0 rgba(255,255,255,.35),
    0 0 10px rgba(0,229,255,.22);
}
.value{
  font-weight:900;
  font-size: 1.05rem;
  font-family: var(--font-body);
  /* Mejor contraste sobre el fondo claro */
  color: rgba(5, 2, 10, .95);
  text-shadow:
    0 1px 0 rgba(255,255,255,.22),
    0 0 12px rgba(255,0,168,.14);
}
.valueText{
  display:block;
  line-height: 1.18;
}

.actions{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.whatsSelect{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 14px;
  border-radius: 999px;

  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 1000;
  letter-spacing: .8px;
  text-transform: uppercase;

  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    radial-gradient(120px 60px at 20% 0%, rgba(0,229,255,.18), transparent 60%),
    radial-gradient(120px 60px at 80% 100%, rgba(255,0,168,.16), transparent 60%),
    rgba(0,0,0,.72);

  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 10px 18px rgba(0,0,0,.22),
    0 0 18px rgba(0,229,255,.16);

  cursor: pointer;
  transition: transform .08s ease, filter .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.whatsSelect:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  border-color: rgba(0,229,255,.40);
  box-shadow:
    0 10px 18px rgba(0,0,0,.22),
    0 0 22px rgba(0,229,255,.22);
}

.whatsSelect:active{
  transform: translateY(1px) scale(.99);
}

.whatsSelect:focus-visible{
  outline: 2px solid rgba(0,229,255,.55);
  outline-offset: 3px;
}

.whatsSelect option{
  color: #fff;
  background: #120a1f;
}

.selectWrap{
  position: relative;
  width: 100%;
  max-width: 320px;
}

.selectWrap::after{
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-52%);
  pointer-events: none;

  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(255,210,74,.28);
}

.actionBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:1000;
  letter-spacing:.9px;
  text-transform: uppercase;
  font-family: var(--font-head);

  color:#fff;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 10px 18px rgba(0,0,0,.22),
    0 0 16px rgba(255,255,255,.06);

  transition: transform .08s ease, filter .2s ease, box-shadow .2s ease;
}
.actionBtn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.actionBtn:active{
  transform: translateY(1px) scale(.99);
}
.actionBtn:focus-visible{
  outline: 2px solid rgba(0,229,255,.55);
  outline-offset: 3px;
}
/* Botón Agregar al calendario — mismo estilo que MAPA */
.actionBtn.calendar{
  border-color: rgba(0,229,255,.40);
  box-shadow:
    0 10px 18px rgba(0,0,0,.22),
    0 0 18px rgba(0,229,255,.20);
}

/* Variantes neón */
.actionBtn.map{
  border-color: rgba(0,229,255,.40);
  box-shadow:
    0 10px 18px rgba(0,0,0,.22),
    0 0 18px rgba(0,229,255,.20);
}

.actionBtn.gifts{
  border-color: rgba(255,210,74,.45);
  box-shadow:
    0 10px 18px rgba(0,0,0,.22),
    0 0 18px rgba(255,210,74,.20);
}

/* ✅ Footer (Referee + código de vestimenta) */
.footerBar{
  margin-top:2px;
  padding:12px 12px;
  border-radius: 16px;
  background:
    radial-gradient(700px 90px at 15% 0%, rgba(0,229,255,.14), transparent 70%),
    radial-gradient(700px 90px at 85% 0%, rgba(255,0,168,.12), transparent 70%),
    linear-gradient(90deg, rgba(255,0,168,.22), rgba(122,0,255,.62), rgba(0,0,0,.72));
  color:#fff;
  border: 2px solid rgba(0,0,0,.25);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  text-transform: uppercase;
  font-weight:1000;
  letter-spacing:.8px;
  font-family: var(--font-head);
}

.footerBar .refTag{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius: 999px;
  font-weight:1000;
  letter-spacing:.6px;
  background: linear-gradient(180deg, #ffe28b, #ffd24a, #b38300);
  color:#111;
  border: 1px solid rgba(0,0,0,.22);
  box-shadow:
    0 10px 22px rgba(0,0,0,.28),
    0 0 16px rgba(255,210,74,.18);
}

.maskCode{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 16px rgba(0,0,0,.18);
}
.maskCode b{
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,210,74,.28);
}

/* ===== FIGHTER SLOTS ===== */
/* Layout del VS y equipos */
.versus.fighters{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap:10px;
}

.versus.fighters[data-match="segunda"]{
  min-height: 220px;   /* ajusta: 200–240 */
}

.versus.fighters[data-match="segunda"]{
  min-height: 220px;   /* ajusta: 200–240 */
}

.team{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
}

.fighterGrid{
  width:100%;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  justify-items: center;
}

.fighter.left{
  background: linear-gradient(90deg, rgba(180,31,31,.20), rgba(255,255,255,.62));
}

.fighter.right{
  background: linear-gradient(90deg, rgba(28,79,184,.20), rgba(255,255,255,.62));
}

.fighter{
  display:grid;
  gap:8px;
  justify-items:center;
  text-align:center;
  padding:10px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.22);
  background: rgba(255,255,255,.58);
  box-shadow: 0 7px 14px rgba(0,0,0,.1);
  min-height: 260px;
  align-content: start;
  width: 100%;
  max-width: 260px;   /* ajusta: 220–260 */
  margin: 0 auto;
}

.fighter img{
  width: 100%;
  padding: 6px; /* marco interno para fotos verticales */
  aspect-ratio: 3 / 4; /* formato póster para que no se corte */
  object-fit: contain; /* evita recortes */
  border-radius: 16px;
  border: 2px solid rgba(0,0,0,.28);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
  backdrop-filter: blur(2px);
  background: radial-gradient(220px 220px at 50% 25%, rgba(0,229,255,.10), transparent 60%), rgba(0,0,0,.10);
  max-width: 100%;
}

.fighter .name{
  font-weight: 1000;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: 1.05rem;
  font-family: var(--font-head);

  color: var(--gold);
  -webkit-text-stroke: 1px rgba(0,0,0,.55);
  text-shadow:
    0 0 14px rgba(255,210,74,.55),
    0 0 26px rgba(255,210,74,.25),
    0 6px 0 rgba(0,0,0,.55);

  /* mismo efecto de los números del countdown */
animation: cdPulse var(--fx-cd-pulse) ease-in-out infinite;}

/* responsive */
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
  .versus.fighters{ grid-template-columns: 1fr; }
  .fighterGrid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .fighterGrid{ grid-template-columns: 1fr; }

  .selectWrap{
    max-width: 100%;
  }

  .whatsSelect{
    font-size: .88rem;
    padding-inline: 12px 40px;
  }
}

/* ===== ANIMACIÓN DE ENTRADA (INVITACIÓN) ===== */
/* Flujo: el póster entra primero, luego elementos internos en "stagger" */

/* Estado inicial (antes de activar) */
body.preload .poster{
  opacity: 0;
  /* Solo transform/opacity (GPU-friendly). El blur inicial causaba jank en móviles */
  transform: translate3d(0,18px,0) scale(.985);
  filter: none;
 
}

/* Cuando inicia la intro */
body.intro .poster{
  /* Un solo shorthand evita sobreescrituras y reduce recalculos */
  animation: posterIn 700ms cubic-bezier(.2,.9,.2,1) forwards,
             neonGlowLite 520ms ease-out 80ms both;
  will-change: transform, opacity;
}

/* Stagger: entra por partes */
body.preload .topline,
body.preload .hero,
body.preload .card,
body.preload .footerBar{
  opacity: 0;
  transform: translate3d(0,10px,0);
 
}

body.intro .topline{   animation: itemIn 420ms ease-out 120ms forwards; will-change: transform, opacity; }
body.intro .hero{      animation: itemIn 420ms ease-out 320ms forwards; will-change: transform, opacity; }
body.intro .card{      animation: itemIn 420ms ease-out 520ms forwards; will-change: transform, opacity; }
body.intro .footerBar{ animation: itemIn 420ms ease-out 720ms forwards; will-change: transform, opacity; }

/* ===== (4) VS con “IMPACT” cada pocos segundos ===== */
.vs{
animation: vsImpact var(--fx-vs-duration) ease-in-out infinite;
  transform-origin: 50% 50%;
}

/* ===== (5) Header del countdown con shimmer/pulse ===== */
.countdownCard .bar > span:first-child{
  position: relative;
  display: inline-block;
  animation: cdHeaderPulse 1.35s ease-in-out infinite;
}

.countdownCard .bar > span:first-child::after{
  content:"";
  position:absolute;
  inset:-6px -10px;
  pointer-events:none;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,.28) 48%,
    rgba(255,255,255,0) 62%,
    transparent 100%
  );
  transform: translateX(-70%) skewX(-12deg);
  mix-blend-mode: screen;
  opacity: .25;
  filter: blur(1px);
  animation: cdHeaderShimmer 2.6s ease-in-out infinite;
}

@keyframes cdHeaderPulse{
  0%,100%{ text-shadow: 0 0 10px rgba(0,229,255,.22), 0 0 12px rgba(255,0,168,.16); }
  50%{ text-shadow: 0 0 18px rgba(0,229,255,.36), 0 0 20px rgba(255,0,168,.26); }
}

@keyframes cdHeaderShimmer{
  0%{ transform: translateX(-70%) skewX(-12deg); opacity: .10; }
  55%{ opacity: .30; }
  100%{ transform: translateX(80%) skewX(-12deg); opacity: .10; }
}

@keyframes vsImpact{
  0%, 82%, 100%{
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
  }
  86%{
    transform: scale(1.10) rotate(-1deg);
    filter:
      drop-shadow(0 0 18px rgba(255,210,74,.35))
      drop-shadow(0 0 22px rgba(0,229,255,.22));
  }
  92%{ transform: scale(.98) rotate(.6deg); }
}
@keyframes heroLogoFloat{
  0%,100%{ transform: translateY(0) scale(1.55); }
  50%{ transform: translateY(-6px) scale(1.38); }
}

@keyframes heroLogoGlow{
  0%,100%{
    filter:
      drop-shadow(0 18px 34px rgba(0,0,0,.62))
      drop-shadow(0 0 18px rgba(0,229,255,.18))
      drop-shadow(0 0 16px rgba(255,0,168,.12));
  }
  50%{
    filter:
      drop-shadow(0 18px 34px rgba(0,0,0,.62))
      drop-shadow(0 0 34px rgba(0,229,255,.38))
      drop-shadow(0 0 28px rgba(255,0,168,.26));
  }
}

@keyframes posterIn{
  0%   { opacity:0; transform: translate3d(0,18px,0) scale(.985); }
  65%  { opacity:1; transform: translate3d(0,-2px,0) scale(1.01); }
  100% { opacity:1; transform: translate3d(0,0,0) scale(1); }
}

@keyframes itemIn{
  0%   { opacity:0; transform: translate3d(0,10px,0); }
  100% { opacity:1; transform: translate3d(0,0,0); }
}

@keyframes neonGlowLite{
  0%{
    box-shadow:
      0 30px 90px rgba(0,0,0,.70),
      0 0 0 2px rgba(255,210,74,.18) inset,
      0 0 0 10px rgba(0,0,0,.65) inset,
      0 0 28px rgba(0,229,255,.10),
      0 0 32px rgba(255,0,168,.08);
  }
  55%{
    box-shadow:
      0 30px 90px rgba(0,0,0,.70),
      0 0 0 2px rgba(255,210,74,.20) inset,
      0 0 0 10px rgba(0,0,0,.65) inset,
      0 0 40px rgba(0,229,255,.18),
      0 0 46px rgba(255,0,168,.14);
  }
  100%{
    box-shadow:
      0 30px 90px rgba(0,0,0,.70),
      0 0 0 2px rgba(255,210,74,.18) inset,
      0 0 0 10px rgba(0,0,0,.65) inset,
      0 0 28px rgba(0,229,255,.10),
      0 0 32px rgba(255,0,168,.08);
  }
}

/* Respeta a usuarios con "reducir movimiento" */
@media (prefers-reduced-motion: reduce){
  body.preload .poster,
  body.preload .topline,
  body.preload .hero,
  body.preload .card,
  body.preload .footerBar{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
  .fighter .name{ animation: none !important; }
    .heroLogo{ animation: none !important; }
}

/* ===== ANIMACIÓN TÍTULO: ERICKMANÍA XXVII (brillo + movimiento) ===== */
/* Nota: tu .hero h1 ya tiene gradiente + stroke; aquí solo animamos y sumamos glow */

.hero h1.titleNeon{
  position: relative;
  display: inline-block;
}


@media (prefers-reduced-motion: reduce){
  .hero h1.titleNeon,
  .hero h1.titleNeon::after{
    animation: none !important;
  }
}

/* ===== (7) LEGAL / REGLAS DE LA ARENA ===== */
.legalStrip{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;

  background:
    radial-gradient(700px 90px at 15% 0%, rgba(0,229,255,.10), transparent 70%),
    radial-gradient(700px 90px at 85% 0%, rgba(255,0,168,.08), transparent 70%),
    rgba(0,0,0,.55);

  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 18px rgba(0,0,0,.22);

  font-family: var(--font-body);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.legalStrip b{ color: var(--gold); text-shadow: 0 0 10px rgba(255,210,74,.20); }
.legalStrip ul{ margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.legalStrip li{ line-height: 1.2; opacity: .95; }

@media (max-width: 520px){
  .legalStrip{ font-size: 11px; }
}

/* ===== CUENTA REGRESIVA (DISEÑO) ===== */
.countdownCard{
  text-align:center;

  /* Si la tarjeta está dentro de .grid (2 columnas), que abarque TODO el ancho */
  grid-column: 1 / -1;
}

.countdown{
  margin-top: 14px;
  width: 100%;

  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  box-sizing: border-box;
}

.timeBox{
   flex: 1 1 0;
  min-width: 0;
  padding: 12px 10px;
  border-radius: 16px;

  background:
    radial-gradient(140px 60px at 50% 0%, rgba(0,229,255,.30), transparent 60%),
    radial-gradient(140px 60px at 50% 100%, rgba(255,0,168,.22), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.46));

  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 14px 30px rgba(0,0,0,.40),
    0 0 28px rgba(0,229,255,.16),
    0 0 20px rgba(255,0,168,.10);

  backdrop-filter: blur(8px);
}

.timeBox .num{
  display:block;
  font-family: var(--font-head);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 1px;

  color: var(--gold);
  -webkit-text-stroke: 1px rgba(0,0,0,.55);
  text-shadow:
    0 0 14px rgba(255,210,74,.55),
    0 0 26px rgba(255,210,74,.25),
    0 8px 0 rgba(0,0,0,.55);

animation: cdPulse var(--fx-cd-pulse) ease-in-out infinite;
}

.timeBox .lbl{
  display:block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: .92;
}

.sep{
  flex: 0 0 auto; 
  font-family: var(--font-title);
  font-size: 30px;
  opacity: .8;
  transform: translateY(-7px);
  text-shadow:
    0 0 10px rgba(0,229,255,.20),
    0 0 10px rgba(255,0,168,.16);
}

.countdownNote{
  margin-top: 12px;
  font-family: var(--font-head);
  letter-spacing: .5px;
  font-size: 12px;
  opacity: .9;
  text-shadow:
    0 1px 0 rgba(0,0,0,.55),
    0 0 10px rgba(0,229,255,.14);
}

@keyframes cdPulse{
  0%,100%{ transform: translateY(0) scale(1); filter: saturate(1); }
  50%{ transform: translateY(-1px) scale(1.08); filter: saturate(1.15); }
}

@media (max-width: 520px){
  .timeBox{ min-width: 72px; padding: 10px 8px; }
  .timeBox .num{ font-size: 30px; }
  .sep{ font-size: 26px; transform: translateY(-6px); }
    .countdown{ flex-wrap: wrap; justify-content: center; }

}

/* ===== LIGHTBOX / MODAL PARA FOTOS ===== */

/* que se note que es clickeable */
.fighter img{
  cursor: zoom-in;
  transition: transform .12s ease, filter .12s ease;
}
.fighter img:hover{
  transform: translateY(-1px) scale(1.01);
  filter: saturate(1.08);
}

/* bloquear scroll cuando modal está abierto */
body.modalOpen{
  overflow: hidden;
}

/* overlay */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.lightbox.open{
  opacity: 1;
  pointer-events: auto;
}

/* contenedor */
.lightbox .lbCard{
  position: relative;
  width: min(920px, 96vw);
  max-height: 92vh;
  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(1200px 280px at 20% 0%, rgba(0,229,255,.20), transparent 60%),
    radial-gradient(900px 260px at 80% 120%, rgba(255,0,168,.16), transparent 60%),
    rgba(0,0,0,.65);

  box-shadow: 0 22px 80px rgba(0,0,0,.65);
  transform: scale(.96);
  transition: transform .18s ease;
}

.lightbox.open .lbCard{
  transform: scale(1);
}

/* imagen grande */
.lightbox img{
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,.25);
}

/* botón cerrar */
.lightbox .lbClose{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.95);
  cursor: pointer;

  display: grid;
  place-items: center;
  font-size: 20px;
}
.lightbox .lbClose:hover{ background: rgba(255,255,255,.14); }
.lightbox .lbClose:active{ transform: translateY(1px) scale(.99); }

/* texto opcional */
.lightbox .lbCaption{
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.14);
  font-family: var(--font-head);
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255,210,74,.25);
}

/* print */
@media print{
  body{ background:#fff; padding:0; }
  .toolbar{ display:none; }
  .wrap{ width:100%; }
  .poster{ box-shadow:none; }
}
/* ===== PERF MODE: móviles / táctil ===== */
@media (hover: none) and (pointer: coarse){
  :root{
    --fx-screenpyro-opacity: .32;
    --fx-screenpyro-blur: 0px;
    --fx-screenpyro-saturate: 1.25;
    --fx-screenpyro-duration: 12s;

    --fx-innerpyro-opacity: .22;
    --fx-innerpyro-blur: 0px;
    --fx-innerpyro-saturate: 1.25;
    --fx-innerpyro-duration: 6s;

    --fx-vs-duration: 3.8s;
    --fx-cd-pulse: 1.35s;
    --fx-logo-float: 3.6s;
    --fx-logo-glow: 3.2s;
  }

  /* blend modes son caros en móviles; mantenemos look pero más ligero */
  body::before,
  .inner::before,
  .inner::after{
    mix-blend-mode: normal;
  }
}

/* Reduce-motion: además de lo que ya tienes, baja overlays pesados */
@media (prefers-reduced-motion: reduce){
  body::before,
  .inner::before{
    animation: none !important;
    opacity: .18 !important;
    filter: none !important;
  }
}
