/* 5-0 — estética: transmisión retro de los 90
   Noche de estadio, dorado France 98, chyrons, marcador de esquina y grano VHS. */

:root {
  /* Superficies en verde para combinar con el fondo verde marmolado
     (antes azul noche). El dorado France 98 sigue siendo el acento. */
  --night: #0c2114;
  --night-2: #143524;
  --night-3: #1c4630;
  --panel: rgba(18, 41, 28, 0.80);
  --line: rgba(176, 200, 178, 0.26);
  --white: #f2f5fb;
  --soft: #9fb1a3;
  --gold: #d8b14a;
  --gold-2: #f3dc8e;
  --gold-3: #9a7322;
  --red: #e0312f;
  --grass: #1d5c38;
  --grass-2: #185432;
  --blue: #4d8fe0;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --mono: "Chivo Mono", Consolas, monospace;
  --body: "Archivo", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: #0d2014; }

body {
  /* EXPERIMENTO: fondo verde marmolado (textura SVG) en vez del azul noche */
  background:
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(150, 220, 170, 0.10), transparent 60%),
    url("bg-marble.svg") center top / cover,
    #163524;
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body:has(#screen-start.active .home-landing.ecuador-promo-active) {
  /* El hero llena la pantalla (min-height + fondo fijo), pero dejamos scroll
     para poder bajar a la tabla de clasificados. ponytail: antes overflow:hidden,
     se quitó porque tapaba el acceso a las standings. */
  min-height: 100vh;
}
body:has(#screen-start.active .home-landing.ecuador-promo-active)::before,
body:has(#screen-start.active .home-landing.ecuador-promo-active)::after {
  content: "";
  position: fixed;
  inset: -14%;
  pointer-events: none;
  z-index: 0;
}
body:has(#screen-start.active .home-landing.ecuador-promo-active)::before {
  background:
    linear-gradient(105deg, transparent 0 12%, rgba(244, 201, 75, 0.30) 14% 18%, transparent 22%),
    linear-gradient(105deg, transparent 0 40%, rgba(22, 61, 134, 0.32) 42% 47%, transparent 52%),
    linear-gradient(105deg, transparent 0 70%, rgba(185, 45, 52, 0.30) 72% 77%, transparent 82%);
  animation: ecuadorSignalDrift 5s ease-in-out infinite alternate;
}
body:has(#screen-start.active .home-landing.ecuador-promo-active)::after {
  background:
    radial-gradient(ellipse 42% 28% at 18% 22%, rgba(244, 201, 75, 0.16), transparent 70%),
    radial-gradient(ellipse 36% 28% at 82% 68%, rgba(185, 45, 52, 0.14), transparent 72%),
    linear-gradient(105deg, transparent 40%, rgba(243, 220, 142, 0.22) 48%, transparent 56%);
  opacity: 0;
  animation: ecuadorBackgroundGlint 4.8s ease-in-out infinite;
}
body:has(#screen-start.active .home-landing.ecuador-promo-active) main,
body:has(#screen-start.active .home-landing.ecuador-promo-active) footer {
  position: relative;
  z-index: 1;
}

/* capa VHS: scanlines + grano + viñeta */
.vhs { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.vhs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}
.vhs::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 60%, rgba(3, 6, 14, 0.55) 100%);
}

/* --- Cabecera --- */

header { text-align: center; padding: 18px 16px 6px; width: 100%; max-width: 560px; }

.tv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.rec { color: var(--white); display: flex; align-items: center; gap: 6px; }
.rec i {
  width: 9px; height: 9px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.live-badge {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  padding: 3px 10px;
  letter-spacing: 3px;
}

h1 {
  font-family: var(--display);
  font-size: 78px;
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-2) 10%, var(--gold) 55%, var(--gold-3) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(216, 177, 74, 0.35));
  position: relative;
}

/* El logo 5—0 es un botón para volver al inicio, pero se muestra limpio:
   sin borde ni caja, solo el texto dorado.
   OJO: el h1 usa `background: linear-gradient` recortado al texto
   (background-clip:text). NO usar `background` aquí o el texto desaparece. */
#home-logo {
  cursor: pointer;
  display: inline-block;
  padding: 2px 18px 5px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
#home-logo:hover { filter: drop-shadow(0 4px 22px rgba(216, 177, 74, 0.55)); }
#home-logo:active { transform: scale(0.94); }
#home-logo:focus-visible { outline: none; border-color: var(--gold); }

/* glitch ocasional de cinta */
.glitch { animation: tape 7s steps(1) infinite; }
@keyframes tape {
  0%, 96.5%, 100% { transform: none; opacity: 1; }
  97% { transform: translateX(2px) skewX(2deg); opacity: 0.85; }
  97.5% { transform: translateX(-3px); }
  98% { transform: none; }
}

.tagline {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--soft);
  margin-top: 10px;
}

main { width: 100%; max-width: 560px; padding: 16px; flex: 1; }
body:has(#screen-start.active) main { max-width: 1040px; }
body:has(#screen-start.active .home-landing.ecuador-promo-active) main {
  max-width: 1180px;
  padding-block: clamp(8px, 1.2vh, 14px);
}
/* Pantalla Jugar a lo ancho en escritorio (como 7a0): controles + cancha en
   dos columnas que entran en la pantalla sin scroll. En móvil se apila. */
/* Pantalla Jugar a lo ancho (escritorio), estilo 7a0: 3 columnas que entran en
   el viewport sin scroll de página — controles (izq) · cancha grande (centro) ·
   alineación/box-score (der). Solo la lista de jugadores scrollea dentro. */
body:has(#screen-config.active) main { max-width: 1280px; }
#play-multi { max-width: 560px; margin: 0 auto; }
/* segmentado Solo/Con amigos: compacto y centrado (no una barra a todo el ancho) */
#play-header { display: flex; justify-content: center; }
#play-seg { width: 100%; max-width: 480px; }
/* por debajo del layout de 3 columnas (1024px) la pantalla Jugar se apila angosta */
@media (max-width: 1023px) { body:has(#screen-config.active) main { max-width: 560px; } }

@media (min-width: 1024px) {
  /* las 3 columnas comparten una altura acotada al viewport: nada desborda la pantalla */
  #play-solo {
    display: grid;
    grid-template-columns: clamp(300px, 27vw, 360px) minmax(0, 1fr) clamp(228px, 20vw, 260px);
    gap: 22px;
    align-items: stretch;
    height: calc(100vh - 150px);
  }
  /* controles: scrollean por dentro si hace falta */
  #solo-main { height: 100%; overflow-y: auto; padding-right: 6px; }
  /* cancha: centrada y dimensionada por la dimensión limitante (mantiene proporción),
     lo más grande posible que entre en el alto disponible */
  #solo-pitch-col { height: 100%; display: flex; align-items: center; justify-content: center; }
  #solo-pitch-col .pitch {
    height: auto;
    width: min(100%, calc((100vh - 168px) * 10 / 11));
    aspect-ratio: 10 / 11;
    max-height: 100%;
    margin: 0;
  }
  #lineup-box { height: 100%; overflow-y: auto; }
  /* en la pantalla Jugar de escritorio, sin footer: todo cabe en el viewport */
  body:has(#screen-config.active) footer { display: none; }

  /* config compacta (como 7a0): botones pequeños y uniformes, sin descripciones */
  #solo-config h2 { font-size: 12px; margin: 12px 0 6px; }
  #solo-config h2:first-child { margin-top: 0; }
  #solo-config h2 .step { width: 18px; height: 18px; font-size: 11px; }
  #solo-config .option-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  #solo-config .option-grid.styles { grid-template-columns: repeat(3, 1fr); }
  #solo-config .option-card { padding: 8px 6px; min-height: 0; text-align: center; }
  #solo-config .option-card strong { font-size: 12px; }
  #solo-config .option-card span { display: none; }   /* ocultar descripciones largas */
  #solo-config .option-card strong { letter-spacing: 0; }
  #solo-config .chip-grid { gap: 6px; }
  #solo-config .chip { padding: 6px 8px; font-size: 12px; }
  /* botones de estilo: mínimo ancho generoso -> envuelven a 2 filas (como 7a0)
     en vez de apretarse en 3 y recortar el texto */
  #solo-config .option-grid.styles { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  #solo-config .option-card strong { font-size: 11px; white-space: nowrap; }
  /* lista de jugadores en 2 columnas: entran (casi) todos sin scroll.
     minmax(0,1fr) evita que los nombres largos desborden (se truncan con … ) */
  #solo-main .squad-players { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  #solo-main .player-btn { padding: 8px 9px; font-size: 12.5px; }
}

/* "Volver" pequeño arriba a la izquierda (ya no un botón grande abajo) */
.play-back { background: none; border: none; color: var(--soft); font-family: var(--mono); font-size: 13px; letter-spacing: 1px; cursor: pointer; padding: 2px 4px; margin-bottom: 4px; }
.play-back:hover { color: var(--gold-2); }

/* Box score / alineación (columna derecha) */
#lineup-box { display: none; } /* solo visible en el grid de escritorio */
@media (min-width: 1024px) { #lineup-box { display: block; } }
.lineup-head { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--soft); display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.lu-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 5px 4px; border-bottom: 1px solid rgba(141,154,184,.14); font-size: 13px; }
.lu-row.filled .lu-name { color: var(--white); }
.lu-pos { font-family: var(--mono); font-size: 10px; font-weight: 600; text-align: center; padding: 2px 0; border-radius: 4px; color: var(--night); }
.lu-pos.pos-POR { background: var(--gold-2); } .lu-pos.pos-DEF { background: var(--blue); } .lu-pos.pos-MED { background: #6bbf7a; } .lu-pos.pos-DEL { background: #e7a14a; }
.lu-name { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-empty { color: var(--soft); opacity: .4; }
.lu-r { font-family: var(--mono); font-weight: 600; color: var(--gold-2); }
body.hide-ratings .lu-r { display: none; }

h2 {
  font-family: var(--display);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
h2 .step {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--gold);
  color: var(--night);
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hidden { display: none !important; }

/* --- Pantallas --- */

.screen { display: none; }
.screen.active { display: block; }
.screen.active > * { animation: rise 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.screen.active > *:nth-child(1) { animation-delay: 0.02s; }
.screen.active > *:nth-child(2) { animation-delay: 0.07s; }
.screen.active > *:nth-child(3) { animation-delay: 0.12s; }
.screen.active > *:nth-child(4) { animation-delay: 0.17s; }
.screen.active > *:nth-child(5) { animation-delay: 0.22s; }
.screen.active > *:nth-child(6) { animation-delay: 0.27s; }
.screen.active > *:nth-child(7) { animation-delay: 0.32s; }
.screen.active > *:nth-child(8) { animation-delay: 0.37s; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --- Inicio: cómo se juega --- */

.how { margin-top: 6px; display: flex; justify-content: flex-end; }
.how-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.how-title {
  font-family: var(--condensed, var(--mono));
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--soft);
}
.how-link {
  background: none;
  border: none;
  color: var(--gold-2);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.how-link:hover { text-decoration: underline; }

.how-steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.how-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 14px 10px 12px;
  text-align: center;
  position: relative;
}
.how-step .how-icon { font-size: 30px; display: block; line-height: 1; }
.how-step .how-n {
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--display);
  font-size: 12px;
  color: var(--gold);
  opacity: 0.6;
}
.how-step strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  margin: 8px 0 5px;
  letter-spacing: 0.3px;
}
.how-step span:last-child { font-size: 11.5px; color: var(--soft); line-height: 1.35; }

/* --- Inicio: landing --- */

.home-landing { display: grid; gap: 14px; }
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
  align-items: center;
  gap: clamp(18px, 2.4vw, 28px);
  min-height: min(500px, calc(100vh - 150px));
}
.landing-copy { min-width: 0; }
.landing-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 10px;
}
.landing-mark {
  font-family: var(--display);
  font-size: clamp(68px, 12vw, 132px);
  line-height: 0.85;
  color: var(--gold);
  text-shadow: 0 10px 34px rgba(216, 177, 74, 0.28);
}
.landing-mark span {
  color: var(--gold-2);
  font-size: 0.36em;       /* guion normal, no una barra enorme */
  vertical-align: middle;
  margin: 0 0.08em;
  position: relative;
  top: -0.12em;            /* lo sube para centrarlo con los dígitos */
}
.home-landing.ecuador-promo-active .landing-hero {
  position: relative;
}
.home-landing.ecuador-promo-active .landing-copy,
.home-landing.ecuador-promo-active .landing-preview {
  position: relative;
  z-index: 1;
}
.ecuador-promo {
  position: relative;
  margin: 0 0 clamp(10px, 1.2vw, 14px);
  padding: 10px 12px 10px 15px;
  background:
    linear-gradient(90deg, rgba(244, 201, 75, 0.12), transparent 30%),
    rgba(9, 24, 15, 0.86);
  border: 1px solid rgba(243, 220, 142, 0.22);
  border-left: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.ecuador-promo[hidden] { display: none; }
.ecuador-promo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(to bottom, #f4c94b 0 50%, #163d86 50% 75%, #b92d34 75% 100%);
  box-shadow: 0 0 18px rgba(244, 201, 75, 0.24);
}
.ecuador-promo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  left: -50%;
  background: linear-gradient(105deg, transparent, rgba(243, 220, 142, 0.2), transparent);
  animation: ecuadorCardSweep 3.4s ease-in-out infinite;
}
.ecuador-promo-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f4c94b;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ecuador-promo-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4c94b;
  box-shadow: 0 0 0 0 rgba(244, 201, 75, 0.24);
  animation: ecuadorLivePulse 1.8s ease-in-out infinite;
}
.ecuador-promo-title {
  position: relative;
  z-index: 1;
  margin-top: 3px;
  color: var(--gold-2);
  font-family: var(--display);
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1;
  text-transform: uppercase;
}
.ecuador-promo-meta {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.ecuador-promo-meta strong { color: var(--gold); }

@keyframes ecuadorSignalDrift {
  from { transform: translateX(-22px); }
  to { transform: translateX(16px); }
}
@keyframes ecuadorBackgroundGlint {
  0%, 30% { transform: translateX(-45%); opacity: 0; }
  48% { opacity: 1; }
  68%, 100% { transform: translateX(45%); opacity: 0; }
}
@keyframes ecuadorCardSweep {
  0%, 24% { transform: translateX(0); opacity: 0; }
  45% { opacity: 1; }
  72%, 100% { transform: translateX(360%); opacity: 0; }
}
@keyframes ecuadorLivePulse {
  50% { box-shadow: 0 0 0 7px rgba(244, 201, 75, 0.12); }
}
@media (prefers-reduced-motion: reduce) {
  body:has(#screen-start.active .home-landing.ecuador-promo-active)::before,
  body:has(#screen-start.active .home-landing.ecuador-promo-active)::after,
  .ecuador-promo::after,
  .ecuador-promo-kicker i {
    animation: none;
  }
}
.landing-headline {
  display: block;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 0.9;
  letter-spacing: 0;
  margin: clamp(10px, 1.4vw, 16px) 0 clamp(12px, 1.6vw, 18px);
  max-width: 680px;
}
.landing-sub {
  max-width: 560px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.5;
}
.landing-ctas {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 220px);
  gap: 12px;
  margin-top: 0;
}
.landing-ctas .btn-primary, .landing-ctas .btn-secondary { margin-top: 0; }
.landing-links { display: flex; gap: 18px; margin-top: 14px; }

/* Banderas del día dentro del botón "Reto del día" */
.daily-cta-flags { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-left: 8px; vertical-align: middle; }
.daily-cta-flags .cta-flag { font-size: 15px; line-height: 1; }
/* Selector (overlay) de equipo del día */
#daily-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); z-index: 60; padding: 20px; }
#daily-overlay[hidden] { display: none; }
.daily-pick-card { position: relative; max-width: 420px; width: 100%; box-sizing: border-box; max-height: 85vh; overflow: auto; }
.daily-pick-card h3 { margin-bottom: 14px; }
.daily-flags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.daily-team {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(11, 30, 19, 0.7); border: 1px solid var(--line); border-radius: 999px;
  color: var(--white); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer;
  transition: border-color .2s, transform .1s;
}
.daily-team:hover { border-color: var(--gold); }
.daily-team:active { transform: scale(.96); }
.daily-team .df-flag { font-size: 16px; }
.daily-team.played { opacity: .7; }
.daily-team .df-check { color: var(--gold); font-weight: 800; }

.landing-preview { display: flex; justify-content: center; }
.landing-pitch {
  position: relative;
  width: min(100%, 380px);
  max-height: min(500px, calc(100vh - 230px));
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 18px, transparent 18px 36px),
    linear-gradient(180deg, var(--grass), var(--grass-2));
  border: 1px solid rgba(243, 220, 142, 0.55);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), inset 0 0 0 8px rgba(255, 255, 255, 0.045);
}
.pitch-line, .pitch-circle, .pitch-box { position: absolute; pointer-events: none; border-color: rgba(242, 245, 251, 0.42); }
.pitch-line.center { left: 0; right: 0; top: 50%; border-top: 1px solid rgba(242, 245, 251, 0.42); }
.pitch-circle {
  left: 50%;
  top: 50%;
  width: 28%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(242, 245, 251, 0.42);
  border-radius: 50%;
}
.pitch-box { left: 22%; width: 56%; height: 15%; border: 1px solid rgba(242, 245, 251, 0.42); }
.pitch-box.top { top: -1px; }
.pitch-box.bottom { bottom: -1px; }
.lp-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 58px;
  color: var(--white);
  text-align: center;
}
.lp-chip b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--night);
  font-family: var(--mono);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.lp-chip span {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.home-utility { margin-top: 10px; }

@media (max-width: 760px) {
  body:has(#screen-start.active) main { max-width: 560px; }
  body:has(#screen-start.active .home-landing.ecuador-promo-active) main { padding-block: 8px 0; }
  .landing-hero { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .landing-preview { order: 2; }
  body:has(#screen-start.active .home-landing.ecuador-promo-active) .landing-preview { display: none; }
  .landing-pitch { width: min(100%, 330px); }
  .landing-ctas { grid-template-columns: 1fr; }
  .landing-links { justify-content: space-between; }
  .landing-mark { font-size: clamp(58px, 22vw, 92px); }
  .landing-headline {
    font-size: clamp(31px, 10.6vw, 46px);
    line-height: 0.9;
    margin: 10px 0 14px;
  }
  .ecuador-promo {
    padding: 9px 10px 9px 14px;
  }
  .ecuador-promo-title {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  /* Pantalla Jugar: en móvil vuelve a una sola columna apilada */
  body:has(#screen-config.active) main { max-width: 560px; }
}
@media (min-width: 761px) and (max-height: 820px) {
  body:has(#screen-start.active .home-landing.ecuador-promo-active) footer,
  body:has(#screen-start.active .home-landing.ecuador-promo-active) .standings-cta {
    display: none;
  }
  .home-landing.ecuador-promo-active .landing-hero {
    min-height: calc(100vh - 132px);
  }
  .home-landing.ecuador-promo-active .landing-eyebrow { margin-bottom: 6px; }
  .home-landing.ecuador-promo-active .landing-mark {
    font-size: clamp(62px, 9.6vw, 104px);
  }
  .home-landing.ecuador-promo-active .landing-headline {
    font-size: clamp(34px, 4.2vw, 52px);
    margin: 8px 0 12px;
  }
  .home-landing.ecuador-promo-active .landing-pitch {
    width: min(100%, 320px);
    max-height: calc(100vh - 210px);
  }
}
@media (max-width: 760px), (max-height: 700px) {
  body:has(#screen-start.active .home-landing.ecuador-promo-active) footer,
  body:has(#screen-start.active .home-landing.ecuador-promo-active) .standings-cta {
    display: none;
  }
}

/* --- Onboarding overlay --- */

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 18, 11, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: rise 0.3s ease;
}
.onboarding-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--night-3), var(--night));
  border: 1px solid var(--gold);
  box-shadow: 0 0 50px rgba(216, 177, 74, 0.2);
  padding: 28px 24px 22px;
  text-align: center;
}
.ob-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  color: var(--soft);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.ob-close:hover { color: var(--white); }
.ob-slide.slide-in { animation: obslide 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes obslide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.ob-icon { font-size: 56px; line-height: 1; margin-bottom: 10px; }
.ob-num {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
}
.ob-title {
  font-family: var(--display);
  font-size: 22px;
  margin: 8px 0 10px;
}
.ob-text { font-size: 14.5px; line-height: 1.55; color: var(--white); min-height: 88px; }
.ob-dots { display: flex; justify-content: center; gap: 7px; margin: 6px 0 16px; }
.ob-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(141, 154, 184, 0.35); transition: background 0.2s, transform 0.2s; }
.ob-dot.on { background: var(--gold); transform: scale(1.25); }
.ob-skip {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 10px;
}
.ob-skip:hover { color: var(--white); }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn-secondary { flex: 1; min-width: 0; white-space: nowrap; font-size: 13px; letter-spacing: 0.2px; padding-left: 10px; padding-right: 10px; }

/* --- Perfil --- */

.optional { color: var(--soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 16px 0; }
#btn-profile-load { margin-top: 10px; }
.account-box {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: rgba(11, 30, 19, 0.58);
}
.account-box .stage { margin-bottom: 8px; }
.account-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0 12px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}
.account-check input { margin-top: 2px; accent-color: var(--gold); }
.account-box .btn-secondary { margin-top: 10px; }
.account-box .danger { border-color: rgba(224, 49, 47, 0.55); color: #ffb0aa; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 12px 4px 9px;
  text-align: center;
}
.stat span { display: block; font-family: var(--mono); font-weight: 600; font-size: 24px; color: var(--gold-2); }
.stat label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* --- Botones (barras de gráfica de TV, levemente anguladas) --- */

.btn-primary, .btn-secondary {
  display: block;
  width: 100%;
  padding: 15px;
  margin-top: 14px;
  border: none;
  font-family: var(--display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  color: var(--night);
}
.btn-secondary {
  background: var(--panel);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), inset 4px 0 0 var(--gold);
}
.btn-primary:hover, .btn-secondary:hover { transform: translateX(3px); filter: brightness(1.12); }
.btn-primary:active, .btn-secondary:active { transform: translateX(6px); }

.btn-secondary .badge { font-family: var(--mono); color: var(--gold); margin-left: 6px; }
/* reto temático: #N y la bandera del país en la misma línea */
.btn-secondary .daily-flag { margin-left: 3px; font-size: 0.95em; line-height: 1; vertical-align: middle; }

/* --- Configuración --- */

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.option-grid.styles { grid-template-columns: 1fr 1fr 1fr; }

.option-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 13px 12px;
  cursor: pointer;
  text-align: left;
  color: var(--white);
  font-family: var(--body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.option-card strong {
  display: block;
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.option-card span { font-size: 12.5px; color: var(--soft); line-height: 1.35; display: block; }
.option-card:hover { border-color: var(--gold); }
.option-card.selected {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold), 0 0 22px rgba(216, 177, 74, 0.18);
}
.option-card.selected strong { color: var(--gold-2); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.selected { border-color: var(--gold); color: var(--night); background: var(--gold); }

/* --- Draft --- */

.progress {
  font-family: var(--mono);
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2.5px;
  min-height: 15px;
}

.squad-row { display: flex; gap: 8px; align-items: stretch; margin: 12px 0; }

/* lower-third de la selección sorteada */
.squad-header {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 5px 0 0 var(--gold);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.squad-header .flag { font-size: 30px; line-height: 1; }
.squad-header strong {
  font-family: var(--display);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}
.squad-header .year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-2);
  text-transform: uppercase;
}
.squad-header.pop { animation: chyron 0.4s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes chyron {
  0% { transform: translateX(-24px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.btn-wildcard {
  background: transparent;
  border: 1px dashed var(--gold);
  color: var(--gold-2);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-wildcard:hover:not(:disabled) { background: rgba(216, 177, 74, 0.15); }
.btn-wildcard:disabled { opacity: 0.3; cursor: not-allowed; }

.hint { color: var(--soft); font-size: 13.5px; margin-bottom: 10px; }

.squad-players { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.player-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 9px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.player-btn:hover:not(.disabled) { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.player-btn.disabled { opacity: 0.28; cursor: not-allowed; }
.player-btn.selected { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold), 0 0 16px rgba(216, 177, 74, 0.25); }
.player-btn .pname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pos {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 6px;
  color: var(--night);
  flex-shrink: 0;
}
.pos-POR { background: var(--gold); }
.pos-DEF { background: var(--blue); }
.pos-MED { background: #58c08a; }
.pos-DEL { background: #e0654d; }

.rating { font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--gold-2); }
.hide-ratings .rating, .hide-ratings .crating { display: none; }

.avg-badge {
  margin-left: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--gold-2);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 10px;
}

/* --- Cancha (vista de cámara nocturna) --- */

.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 11;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(243, 220, 142, 0.10), transparent 65%),
    repeating-linear-gradient(0deg, var(--grass) 0 12%, var(--grass-2) 12% 24%);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(6, 11, 26, 0.8), 0 12px 36px rgba(0, 0, 0, 0.45);
  margin: 10px 0 16px;
  overflow: hidden;
}
/* marcas de cancha completas (áreas, arcos, puntos, córners) como SVG escalable */
.pitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("pitch-lines.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.pitch.small { aspect-ratio: 10 / 9; }

.pchip {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 88px;
  text-align: center;
  z-index: 1;
}
.pchip .cdot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  margin: 0 auto 3px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-size: 19px;
}
.pchip .cdot.empty {
  background: rgba(6, 11, 26, 0.45);
  border: 2px dashed rgba(242, 245, 251, 0.55);
  box-shadow: none;
  color: rgba(242, 245, 251, 0.8);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
}
.pchip .cname {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  background: rgba(6, 11, 26, 0.85);
  border-left: 2px solid var(--gold);
  padding: 1px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
}
.pchip .crating {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  color: var(--gold-2);
  background: rgba(6, 11, 26, 0.85);
  padding: 0 5px;
  margin-top: 2px;
}

.pchip.fresh { animation: zoomin 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes zoomin {
  0% { transform: translate(-50%, -50%) scale(1.7); filter: brightness(2); }
  100% { transform: translate(-50%, -50%) scale(1); filter: none; }
}

.pchip.target { cursor: pointer; }
.pchip.target .cdot.empty {
  border-color: var(--gold);
  border-style: solid;
  color: var(--gold-2);
  animation: pulse 0.85s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(216, 177, 74, 0.55); }
  50% { transform: scale(1.16); box-shadow: 0 0 0 10px rgba(216, 177, 74, 0); }
}

.challenge-record {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold-2);
  margin-top: 6px;
}

/* --- Revisión --- */

.strength {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 14px;
  margin: 4px 0 12px;
}
.strength-row { display: flex; align-items: center; gap: 12px; margin: 7px 0; }
.strength-row label {
  width: 120px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--soft);
}
.strength-row strong { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--gold-2); margin-left: 4px; }
.bar { flex: 1; height: 10px; background: rgba(10, 26, 16, 0.7); border: 1px solid var(--line); overflow: hidden; }
.bar-fill { height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.bar-fill.atk { background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
.bar-fill.def { background: linear-gradient(90deg, #2c5a96, var(--blue)); }

.origins { margin: 10px 0; }
.origins summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--soft);
}
.origin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.origin-row .pname { flex: 1; font-weight: 600; }
.origin-row .origin { color: var(--soft); font-size: 12.5px; }
.origin-row .rank { font-family: var(--mono); color: var(--gold); min-width: 26px; }

/* --- Simulación --- */

.sim-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.btn-skip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--soft);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 12px;
  cursor: pointer;
}
.btn-skip:hover { border-color: var(--gold); color: var(--gold-2); }

.sim-results { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }

.match {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px;
  position: relative;
}
.match .stage {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 4px;
}
.match.live { border-color: var(--gold); box-shadow: 0 0 26px rgba(216, 177, 74, 0.16); }
.match.live .stage::after {
  content: "EN VIVO";
  background: var(--red);
  color: var(--white);
  margin-left: 10px;
  padding: 1px 7px;
  letter-spacing: 2px;
  animation: blink 1.4s steps(1) infinite;
}
.match.won { box-shadow: inset 5px 0 0 var(--gold); }
.match.lost { box-shadow: inset 5px 0 0 var(--red); }

/* marcador de esquina */
.scoreboard {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(180deg, rgba(9, 26, 16, 0.95), rgba(16, 40, 26, 0.95));
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--gold);
  padding: 9px 12px;
  margin-top: 4px;
}
.scoreboard .sb-team {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
}
.scoreboard .sb-team.away { text-align: right; }
.scoreboard .sb-score {
  font-family: var(--display);
  font-size: 21px;
  color: var(--gold-2);
  white-space: nowrap;
}
.scoreboard .sb-min {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
  border: 1px solid var(--line);
  padding: 2px 6px;
}

/* eventos como lower-thirds */
.events { width: 100%; margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.event {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--soft);
  padding: 3px 8px;
  animation: chyron 0.3s ease both;
}
.event.big {
  color: var(--white);
  font-weight: 600;
  background: rgba(10, 28, 18, 0.78);
  box-shadow: inset 3px 0 0 var(--gold);
  padding: 6px 10px;
}
.event .emin {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--gold);
  min-width: 30px;
  flex-shrink: 0;
}

/* --- Desafíos y reto diario --- */

.challenge-banner, .daily-panel {
  background: var(--panel);
  border: 1px solid var(--gold);
  box-shadow: 0 0 30px rgba(216, 177, 74, 0.15);
  padding: 14px;
  margin-bottom: 18px;
}
.challenge-banner .stage, .daily-panel .stage {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 6px;
}
.challenge-banner p, .daily-panel p { font-size: 14px; line-height: 1.5; }
.daily-panel { margin-top: 16px; margin-bottom: 0; }
.daily-panel p { font-family: var(--mono); font-size: 14px; }

.match.duel { margin-bottom: 16px; }
.duel-verdict {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 1.5px;
  margin-top: 8px;
}
.duel-verdict.win { color: var(--gold-2); }
.duel-verdict.loss { color: var(--red); }
.duel-compare { font-family: var(--mono); font-size: 12.5px; color: var(--soft); margin-top: 4px; }

/* --- Multijugador --- */

.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--soft);
  margin: 14px 0 6px;
}

.field {
  width: 100%;
  background: rgba(10, 26, 16, 0.7);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--mono);
  font-size: 15px;
  padding: 11px 12px;
  outline: none;
}
.field:focus { border-color: var(--gold); }
.field.code {
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 20px;
  text-align: center;
}

.mode-card { display: block; width: 100%; margin-top: 10px; }
.mode-card .num { font-family: var(--mono); color: var(--gold); margin-right: 8px; }
.mode-card.disabled { opacity: 0.35; cursor: not-allowed; }

.local-setup { margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.local-setup .btn-primary { margin-top: 4px; }

.join-row { display: flex; gap: 10px; align-items: stretch; }
.join-row .field { flex: 1; }
.join-row .btn-primary { width: auto; margin-top: 0; padding: 0 22px; }

.pass-text { font-size: 16px; line-height: 1.6; margin: 14px 0; }

.room-code-box {
  background: var(--panel);
  border: 1px solid var(--gold);
  box-shadow: 0 0 30px rgba(216, 177, 74, 0.15);
  text-align: center;
  padding: 16px;
  margin-bottom: 12px;
}
.room-code-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--soft);
}
.room-code {
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 10px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cpu-slot { color: var(--soft); font-style: italic; }

.versus-verdict {
  text-align: center;
  font-family: var(--display);
  font-size: 20px;
  margin: 16px 0;
}
.champion-name {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(216, 177, 74, 0.4));
}

.round-box {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px;
  margin-top: 12px;
}
.round-box .stage {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 6px;
}
.bracket-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(141, 154, 184, 0.12);
}
.bracket-row .bteam { flex: 1; color: var(--soft); }
.bracket-row .bteam.away { text-align: right; }
.bracket-row .bteam.bwin { color: var(--white); font-weight: 800; }
.bracket-row .bscore {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--gold-2);
  white-space: nowrap;
}

/* --- Resultado --- */

#result-title {
  font-family: var(--display);
  font-size: 24px;
  text-align: center;
  justify-content: center;
  margin-top: 12px;
  letter-spacing: 0.5px;
}
#result-title.champion {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(216, 177, 74, 0.45));
}
#result-title.eliminated { color: var(--red); }

.record {
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--soft);
  margin: 10px 0 16px;
}

.final-card {
  background: var(--panel);
  border: 1px solid var(--gold);
  box-shadow: 0 0 36px rgba(216, 177, 74, 0.12), inset 0 2px 0 var(--gold);
  padding: 18px 16px;
}
.card-title {
  font-family: var(--display);
  font-size: 28px;
  text-align: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--soft);
  margin: 8px 0 4px;
}
.card-matches { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.card-match {
  font-family: var(--mono);
  font-size: 12.5px;
  margin-top: 6px;
  padding: 5px 8px;
  background: rgba(10, 26, 16, 0.6);
}
.card-match.w { box-shadow: inset 3px 0 0 var(--gold); }
.card-match.l { box-shadow: inset 3px 0 0 var(--red); }

.actions { display: flex; gap: 10px; }
.actions button { font-size: 13px; padding: 12px 6px; letter-spacing: 2px; }

.feedback {
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold-2);
  margin-top: 12px;
  min-height: 20px;
}

footer {
  padding: 22px 16px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  max-width: 560px;
}

@media (max-width: 420px) {
  .squad-players { grid-template-columns: 1fr; }
  h1 { font-size: 58px; }
  .option-grid.styles { grid-template-columns: 1fr; }
  .pchip { width: 72px; }
  .actions { flex-direction: column; gap: 0; }
}

#sim-2d { display:flex; flex-direction:column; align-items:center; gap:8px; }
#sim-2d[hidden] { display:none; }
#sim-2d canvas { max-width:100%; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.4); background:#0a3d1f; }
.sb2d { display:flex; align-items:center; gap:14px; font-weight:700; }
.sb2d b { font-size:24px; font-variant-numeric:tabular-nums; }
.sb2d span { color:var(--muted, #8a97a8); }
.muted-note { font-size:.7em; font-weight:400; color:var(--muted, #8a97a8); }
#km-overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.55); z-index:50; }
#km-overlay[hidden] { display:none; }
.km-card { background:#151b27; border:1px solid #26303f; border-radius:14px; padding:20px 24px; text-align:center; max-width:420px; }
.km-card h3 { margin:0 0 14px; color:#ffd24a; }
.km-opts { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
/* overlay del nombre (reemplaza el prompt nativo) */
#name-overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.6); z-index:60; padding:20px; }
#name-overlay[hidden] { display:none; }
.name-card { max-width:340px; width:100%; box-sizing:border-box; }
.name-card h3 { margin:0 0 6px; }
.name-hint { color:#8a97a8; font-size:13px; margin:0 0 14px; }
#name-input { width:100%; box-sizing:border-box; padding:12px; border-radius:10px; border:1px solid #26303f; background:#1b2230; color:#fff; font-size:16px; text-align:center; margin-bottom:14px; }
#name-input:focus { outline:none; border-color:#ffd24a; }
.name-card .btn-primary { margin-top:0; }
#ht-overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.55); z-index:50; }
#ht-overlay[hidden] { display:none; }
.ht-dial { display:flex; gap:6px; justify-content:center; margin:6px 0 12px; }
.ht-dial button { flex:1; padding:10px 6px; border-radius:10px; border:1px solid #26303f; background:#1b2230; color:#cdd6e3; font-weight:700; cursor:pointer; }
.ht-dial button.selected { background:#ffd24a; color:#151b27; border-color:#ffd24a; }
.ht-hint { color:#8a97a8; font-size:13px; margin:0 0 14px; }
.km-opts button { background:#26303f; color:#e7edf5; border:1px solid #3a4659; border-radius:10px; padding:12px 16px; font:inherit; font-weight:600; cursor:pointer; }
.km-opts button:hover { border-color:#ffd24a; }
.wc-scores {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 0;
}
.wc-scores.hidden { display: none; }
.wc-ticker-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  background: rgba(11, 30, 19, 0.92);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  box-shadow: inset 0 -1px 0 rgba(216, 177, 74, 0.18);
  min-height: 42px;
  overflow: hidden;
}
.wc-ticker-label {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--night);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.wc-ticker-window {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.wc-ticker-window::before,
.wc-ticker-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 34px;
  pointer-events: none;
}
.wc-ticker-window::before {
  left: 0;
  background: linear-gradient(90deg, rgba(11, 30, 19, 0.96), rgba(11, 30, 19, 0));
}
.wc-ticker-window::after {
  right: 0;
  background: linear-gradient(270deg, rgba(11, 30, 19, 0.96), rgba(11, 30, 19, 0));
}
.wc-ticker-track {
  display: flex;
  width: max-content;
  animation: wc-ticker var(--ticker-duration, 36s) linear infinite;
}
.wc-ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
  white-space: nowrap;
}
.wc-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-right: 1px solid rgba(242, 245, 251, 0.14);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
}
.wc-ticker-status {
  color: var(--soft);
  font-weight: 800;
  text-transform: uppercase;
}
.wc-ticker-live .wc-ticker-status {
  color: #ff6c5f;
  text-shadow: 0 0 12px rgba(255, 108, 95, 0.35);
}
.wc-ticker-final .wc-ticker-status { color: var(--gold); }
.wc-ticker-score {
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .4px;
}
.wc-ticker-team {
  color: var(--white);
  font-weight: 700;
}
@keyframes wc-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wc-ticker-window { overflow-x: auto; }
  .wc-ticker-track {
    width: auto;
    animation: none;
  }
  .wc-ticker-group[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) {
  .wc-ticker-shell {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 38px;
  }
  .wc-ticker-label {
    height: 100%;
    gap: 5px;
    padding: 0 9px;
    font-size: 10px;
    letter-spacing: .4px;
  }
  .wc-ticker-item {
    min-height: 38px;
    padding: 0 10px;
    font-size: 11px;
  }
}
.daily-toggle { display:flex; align-items:center; gap:12px; justify-content:space-between;
  padding:12px 14px; margin:0 0 14px; border:1px solid var(--line,#2a2a2a); border-radius:12px;
  background:rgba(255,255,255,.02); cursor:pointer; }
.daily-toggle-text { display:flex; flex-direction:column; gap:2px; }
.daily-toggle-sub { font-size:.78rem; color:var(--muted,#8a97a8); }
.daily-toggle input { position:absolute; opacity:0; pointer-events:none; }
.daily-toggle-switch { flex:none; width:44px; height:24px; border-radius:999px; background:#39424f;
  position:relative; transition:background .2s; }
.daily-toggle-switch::after { content:""; position:absolute; top:2px; left:2px; width:20px; height:20px;
  border-radius:50%; background:#fff; transition:transform .2s; }
.daily-toggle input:checked ~ .daily-toggle-switch { background:var(--gold,#d8b14a); }
.daily-toggle input:checked ~ .daily-toggle-switch::after { transform:translateX(20px); }

/* --- Desplegables (marcadores / clasificación) --- */
.collapsible { width: 100%; max-width: 740px; margin: 14px auto 0; }
.collapsible[hidden] { display: none; }
.collapsible-bar {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  color: var(--white);
  font: inherit;
  padding: 12px 16px;
  cursor: pointer;
}
.collapsible-bar:hover { border-color: var(--gold); }
.collapsible-title {
  font-family: var(--condensed, var(--mono));
  text-transform: uppercase; letter-spacing: 1px;
  font-size: .92rem; font-weight: 700;
}
.collapsible-chevron { transition: transform .2s; opacity: .7; }
.collapsible-bar[aria-expanded="true"] .collapsible-chevron { transform: rotate(180deg); }
.collapsible-panel { padding: 6px 0 2px; }
.collapsible-panel[hidden] { display: none; }

/* Perfil arriba (estilo 7a0) */
.home-topbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 6px;
}
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 30, 19, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.profile-chip:hover { border-color: var(--gold); color: var(--gold-2); }

/* Clasificados como botoncito de novedad */
.standings-cta { width: auto; max-width: none; display: flex; flex-direction: column; align-items: center; }
.standings-pill {
  width: auto;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(216, 177, 74, 0.08);
}
.standings-pill .collapsible-title { font-size: .82rem; letter-spacing: .6px; }
.standings-pill .collapsible-chevron { font-size: .8rem; }
.novedad-badge {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--night);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}
.standings-cta .collapsible-panel { width: 100%; max-width: 740px; }

/* --- Clasificación: carrusel de tablas --- */
.wc-standings.hidden { display: none; }
.wc-st-letters {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center; margin: 4px 0 10px;
}
.wc-st-letter {
  min-width: 30px; padding: 4px 8px;
  background: var(--panel); color: var(--soft);
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-weight: 700; cursor: pointer;
}
.wc-st-letter.active { color: var(--ink, #0b0b0b); background: var(--gold); border-color: var(--gold); }
.wc-st-carousel { display: flex; align-items: stretch; gap: 6px; }
.wc-st-arrow {
  flex: 0 0 auto; width: 34px;
  background: var(--panel); color: var(--white);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.wc-st-arrow:hover { border-color: var(--gold); }
.wc-st-track {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 4px;
}
.wc-st-track::-webkit-scrollbar { display: none; }
.wc-st-table {
  flex: 0 0 48%; scroll-snap-align: start;
  background: var(--panel); border: 1px solid var(--line);
  border-top: 2px solid var(--gold); padding: 10px 12px;
}
.wc-st-gtitle {
  margin: 0 0 8px; font-family: var(--mono); font-size: .9rem;
  text-transform: uppercase; letter-spacing: 1px; color: var(--gold-2);
}
.wc-st-grid { width: 100%; border-collapse: collapse; font-size: .86rem; }
.wc-st-grid th {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  color: var(--soft); text-align: center; padding: 0 4px 6px; text-transform: uppercase;
}
.wc-st-grid td { padding: 5px 4px; text-align: center; border-top: 1px solid var(--line); }
.wc-st-team { text-align: left !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.wc-st-pts { font-weight: 800; color: var(--gold-2); }
.wc-st-row.wc-st-clasificado .wc-st-pos { box-shadow: inset 3px 0 0 #2ec27e; }
.wc-st-row.wc-st-eliminado { opacity: .55; }
.wc-st-livedot { font-size: .7rem; }

@media (max-width: 640px) {
  .wc-st-table { flex-basis: 86%; }
  .wc-st-arrow { display: none; }
}

/* Pantalla Jugar: cabecera + control segmentado */
#play-header { margin-bottom: 14px; }
#play-header .field-label { display:block; margin: 6px 0 4px; }
.play-seg {
  display: flex;
  gap: 4px;
  margin: 12px 0 4px;
  background: rgba(11, 30, 19, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.play-seg-btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--soft);
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.play-seg-btn.active {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--night);
}

/* Pantalla Jugar todo-en-uno: al elegir el primer jugador, la config (modo/
   formación/estilo) se oculta y queda fija para ese torneo. */
#play-solo.picking #solo-config { display: none; }

/* --- Animación de gol (overlay breve) + pausa entre partidos --- */
.goal-flash[hidden] { display: none; }
.goal-flash {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(4,7,16,.78), rgba(4,7,16,.55));
  opacity: 0;
}
.goal-flash.show { animation: goalFlash 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes goalFlash {
  0% { opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; }
}
.goal-flash .gf-inner { text-align: center; transform: scale(0.8); }
.goal-flash.show .gf-inner { animation: goalPop 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes goalPop {
  0% { transform: scale(0.8); }
  14% { transform: scale(1.06); }
  30% { transform: scale(1); }
  100% { transform: scale(1); }
}
.goal-flash .gf-word {
  font-family: var(--display);
  font-size: clamp(48px, 12vw, 110px);
  line-height: 1;
  letter-spacing: 2px;
}
.goal-flash.mine .gf-word { color: var(--gold-2); text-shadow: 0 0 30px rgba(216,177,74,.5); }
.goal-flash.theirs .gf-word { color: #ff5252; text-shadow: 0 0 30px rgba(224,49,47,.4); opacity: .92; }
.goal-flash .gf-scorer { font-family: var(--display); font-size: clamp(20px, 4vw, 30px); color: var(--white); margin-top: 10px; }
.goal-flash .gf-min { font-family: var(--mono); font-size: 15px; letter-spacing: 2px; color: var(--soft); margin-top: 4px; }
.goal-flash.theirs .gf-scorer::before { content: "Gol de "; color: var(--soft); }

.next-match {
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--night-3), var(--night));
  box-shadow: 0 0 40px rgba(216,177,74,.16);
  padding: 18px 16px;
  text-align: center;
  margin-top: 14px;
}
.next-match .nm-result { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.next-match .nm-next { font-size: 15px; color: var(--soft); margin-bottom: 14px; line-height: 1.5; }
.next-match .nm-next strong { font-family: var(--display); font-size: 22px; color: var(--white); letter-spacing: 0.5px; }
.next-match .nm-stage { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; }

/* --- FX de recompensa estilo casino: monedas $ que escalan con el avance --- */
.reward-fx[hidden] { display: none; }
.reward-fx {
  position: fixed; inset: 0; z-index: 95;
  pointer-events: none; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0;
}
.reward-fx.show { animation: rewardBg 1.2s ease forwards; }
.reward-fx.win.show, .reward-fx.champion.show {
  background: radial-gradient(ellipse 85% 65% at 50% 42%, rgba(216,177,74,0.22), rgba(4,8,4,0.55) 75%);
}
.reward-fx.champion.show {
  background: radial-gradient(ellipse 95% 75% at 50% 42%, rgba(243,220,142,0.30), rgba(6,10,6,0.62) 78%);
}
.reward-fx.eliminated.show {
  background: radial-gradient(ellipse 85% 65% at 50% 42%, rgba(40,30,20,0.36), rgba(2,4,2,0.78) 80%);
}
@keyframes rewardBg { 0% { opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }

/* monedas */
.reward-fx .coin {
  position: absolute; top: -8%; left: var(--x);
  width: clamp(28px, 5vw, 52px);
  opacity: 0;
  /* brillo crece con el nivel de la victoria */
  filter: drop-shadow(0 3px calc(6px + var(--lvl, 1) * 3px) rgba(243, 220, 142, calc(0.3 + var(--lvl, 1) * 0.08)));
  animation: coinRain 1.6s cubic-bezier(0.45, 0, 0.85, 0.5) var(--d) forwards; /* acelera al caer (gravedad) */
}
.reward-fx.champion .coin { width: clamp(34px, 6vw, 64px); }
.reward-fx .coin svg { width: 100%; height: auto; display: block; }
@keyframes coinRain {
  0%   { transform: translateY(0) scale(var(--sc)) rotate(0deg); opacity: 0; }
  9%   { opacity: 1; }
  100% { transform: translateY(120vh) scale(var(--sc)) rotate(var(--spin)); opacity: 0.92; }
}
/* eliminado: las monedas caen apagadas en gris (deflación) */
.reward-fx.eliminated .coin {
  filter: grayscale(1) brightness(0.5) drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  animation-name: coinFall;
}
@keyframes coinFall {
  0%   { transform: translateY(0) scale(var(--sc)); opacity: 0; }
  10%  { opacity: 0.85; }
  100% { transform: translateY(118vh) scale(calc(var(--sc) * 0.7)) rotate(var(--spin)); opacity: 0; }
}

/* sello de texto */
.reward-fx .reward-stamp {
  position: relative; z-index: 2;
  font-family: var(--display);
  font-size: clamp(34px, 9vw, 86px); line-height: 1; letter-spacing: 1px; text-align: center;
  color: var(--gold-2);
  text-shadow: 0 0 30px rgba(216,177,74,0.55), 0 4px 14px rgba(0,0,0,0.5);
  transform: scale(0.6); opacity: 0;
}
.reward-fx.show .reward-stamp { animation: stampPop 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards; } /* ease-out-quint */
@keyframes stampPop {
  0% { transform: scale(0.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.reward-fx.champion .reward-stamp { font-size: clamp(30px, 7.5vw, 70px); }
.reward-fx.eliminated .reward-stamp { color: #c9a98f; text-shadow: 0 0 20px rgba(0,0,0,0.6); }

/* suma de signos $ — crece con cada victoria (1 → 5), el indicador incremental visible */
.reward-fx .reward-amount {
  position: relative; z-index: 2; margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(46px, 14vw, 150px); line-height: 1; letter-spacing: 6px;
  background: linear-gradient(180deg, #fff6d0 6%, #f3dc8e 40%, #d8b14a 70%, #9a7322 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 32px rgba(216,177,74,0.65)) drop-shadow(0 4px 14px rgba(0,0,0,0.5));
  transform: scale(0.35); opacity: 0;
}
.reward-fx.show .reward-amount { animation: amountPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards; } /* ease-out-expo */
@keyframes amountPop {
  0% { transform: scale(0.55); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; } /* micro-acento "ka-ching", no rebote */
  100% { transform: scale(1); opacity: 1; }
}
.reward-fx.eliminated .reward-amount {
  background: none; color: #9a8674; -webkit-text-fill-color: #9a8674;
  filter: drop-shadow(0 0 14px rgba(0,0,0,0.6));
}

/* Copa del Mundo (solo campeón) */
.reward-fx .reward-trophy {
  position: relative; z-index: 2;
  width: clamp(120px, 26vw, 220px); margin-bottom: 12px;
  filter: drop-shadow(0 8px 30px rgba(216,177,74,0.6));
  transform: scale(0.3) rotate(-8deg); opacity: 0;
}
.reward-fx .reward-trophy svg { width: 100%; height: auto; display: block; }
.reward-fx.champion.show .reward-trophy {
  animation: trophyIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards; /* ease-out-expo, entrada potente y limpia */
}
@keyframes trophyIn {
  0% { transform: scale(0.5) rotate(-6deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .reward-fx .coin { display: none; }
  .reward-fx.show { animation: none; opacity: 1; }
  .reward-fx .reward-stamp, .reward-fx .reward-trophy { animation: none !important; opacity: 1; transform: none; }
}
