/* SuperGolex · juego.css — lo que la página del juego necesita además de chapas.css (portado de Exclivia). */
html, body.sg-juego { height: 100%; }
body.sg-juego { overflow: hidden; background: #06110a; }
body.sg-juego main { margin: 0; padding: 0; }
/* Hoy los duelos son amistosos: el chip de tickets no tiene nada que decir. */
#cha-pvp-saldo { display: none !important; }
/* Los avisos del sitio por encima del juego */
.sg-toasts { z-index: 5000; }
/* Las monedas todavía no existen: no se enseña el chip de tickets en la ficha */
.cha-chip-tk { display: none !important; }

/* ══ El MENÚ del juego, como la propuesta del diseñador (2026-10-20) ══════════
   Fondo en capas con parallax (js/menu.js escribe --px/--py entre -1 y 1), logo con
   corona, ficha del jugador con laureles y cuatro tarjetas con su arte a la derecha.
   Todo el texto es HTML (se traduce); las láminas solo aportan las ilustraciones. */
#cha-menu { background: #04140a; }
#cha-menu > .cha-barra, #cha-menu > .cha-m { position: relative; z-index: 1; }

.sgm-px { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; --px: 0; --py: 0; }
.sgm-capa { position: absolute; inset: 0; will-change: transform; }
.sgm-fondo { inset: -4%; transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -10px), 0); }
.sgm-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.sgm-luces { transform: translate3d(calc(var(--px) * -28px), calc(var(--py) * -14px), 0); }
.sgm-luces img { position: absolute; left: 50%; top: -3%; width: min(78vw, 1100px); height: auto; translate: -50% 0; mix-blend-mode: screen; opacity: .5; animation: sgm-luz 5s ease-in-out infinite alternate; }
.sgm-medio { transform: translate3d(calc(var(--px) * -40px), calc(var(--py) * -24px), 0); }
.sgm-balon { position: absolute; right: 3vw; top: 12vh; width: clamp(64px, 7vw, 120px); height: auto; animation: sgm-flota 6s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.sgm-frente { transform: translate3d(calc(var(--px) * -70px), calc(var(--py) * -36px), 0); }
.sgm-d1 { position: absolute; left: -5vw; bottom: -9vh; width: clamp(150px, 22vw, 360px); height: auto; filter: blur(2px) brightness(.9) drop-shadow(0 20px 30px rgba(0,0,0,.6)); animation: sgm-flota 9s ease-in-out -2s infinite; }
.sgm-d2 { position: absolute; right: -4vw; bottom: 3vh; width: clamp(120px, 17vw, 280px); height: auto; filter: blur(1.5px) brightness(.85) drop-shadow(0 18px 26px rgba(0,0,0,.6)); animation: sgm-flota 8s ease-in-out -5s infinite; }
.sgm-vineta { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%), linear-gradient(180deg, rgba(0,0,0,.25), transparent 22%, transparent 75%, rgba(0,0,0,.45)); }
@keyframes sgm-flota { 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes sgm-luz { from { opacity: .35; } to { opacity: .6; } }

/* La barra: botones de cristal verde con borde dorado */
#cha-menu .cha-barra .cha-btn, #cha-menu .cha-barra .cha-ib {
  background: linear-gradient(180deg, rgba(14, 70, 36, .88), rgba(4, 32, 16, .92));
  border: 1.5px solid #d9ad47; border-radius: 12px; color: #fff;
  box-shadow: 0 0 14px rgba(217, 173, 71, .28), inset 0 1px 0 rgba(255,255,255,.12);
}
#cha-menu .cha-barra .cha-btn { padding: .5rem 1rem; font-weight: 700; }

/* Logo y lema */
#cha-menu .sgm-logo { width: min(470px, 96%); filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .6)); }
#cha-menu .sgm-lema { display: flex; align-items: center; gap: .7rem; margin-top: .2rem; }
#cha-menu .sgm-lema::before, #cha-menu .sgm-lema::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, #d9ad47); }
#cha-menu .sgm-lema::after { background: linear-gradient(90deg, #d9ad47, transparent); }
#cha-menu .sgm-lema span { padding: .3rem 1rem; border-radius: 999px; border: 1.5px solid #d9ad47; background: rgba(4, 20, 10, .85); color: #ffd56b; font-weight: 600; font-size: .95rem; white-space: nowrap; }

/* La ficha del jugador */
.sgm-yo-marco { position: relative; }
.sgm-laurel { position: absolute; z-index: 2; top: 10px; right: 12px; width: 108px; height: auto; opacity: .55; pointer-events: none; }
#cha-menu .cha-yo {
  position: relative; padding: 1.1rem 1.2rem 1rem; border-radius: 18px;
  background: linear-gradient(135deg, rgba(10, 52, 28, .94), rgba(4, 24, 13, .94));
  border: 1.5px solid #d9ad47;
  box-shadow: 0 0 22px rgba(217, 173, 71, .25), inset 0 0 40px rgba(40, 170, 90, .12), 0 18px 34px rgba(0, 0, 0, .45);
}
#cha-menu .cha-yo-cab { gap: 1rem; padding-right: 96px; }
#cha-menu .cha-yo-cab .cha-av { width: 66px; height: 66px; font-size: 1.6rem; border: 3px solid #d9ad47; box-shadow: 0 0 0 3px rgba(4, 24, 13, .9), 0 0 18px rgba(217, 173, 71, .45); }
#cha-menu .cha-yo-nom { font-size: 1.35rem; }
#cha-menu .cha-yo .cha-pill { background: rgba(0, 0, 0, .35); border: 1.5px solid #d9ad47; color: #fff; padding: .2rem .75rem; font-size: .85rem; }
#cha-menu .cha-yo .cha-pill { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
#cha-menu .cha-yo .cha-pill::before { content: ''; width: 1em; height: .85em; background: #ffd23a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 6l5 4 5-8 5 8 5-4-2 11H4z M4 18h16v2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 6l5 4 5-8 5 8 5-4-2 11H4z M4 18h16v2H4z'/%3E%3C/svg%3E") center / contain no-repeat; }
#cha-menu .cha-xp { height: 11px; margin-top: .9rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .08); }
#cha-menu .cha-xp span { background: linear-gradient(90deg, #1fbf5f, #4dff9a); box-shadow: 0 0 12px rgba(77, 255, 154, .6); }
#cha-menu .cha-invita-mini { color: #e8eef7; font-size: .92rem; }

/* Las cuatro tarjetas */
#cha-menu .cha-m-der { gap: .85rem; }
#cha-menu .cha-cta {
  position: relative; overflow: hidden; isolation: isolate; min-height: 92px; padding: .9rem 3rem .9rem 1rem; gap: 1rem;
  border: 1.5px solid #d9ad47; border-radius: 16px;
  box-shadow: 0 0 18px rgba(217, 173, 71, .22), 0 12px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .15s ease, box-shadow .2s ease;
}
#cha-menu .cha-cta:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(217, 173, 71, .4), 0 14px 30px rgba(0, 0, 0, .5); }
#cha-menu .cha-cta-uno  { background: linear-gradient(95deg, #06112b 0%, #0a2463 60%, #0d3a9a 100%); box-shadow: 0 0 22px rgba(47, 123, 255, .35), 0 12px 26px rgba(0,0,0,.45); }
#cha-menu .cha-cta-cpu  { background: linear-gradient(95deg, #04180c 0%, #0a3d1d 60%, #0f5a2a 100%); }
#cha-menu .cha-cta-pvp  { background: linear-gradient(95deg, #1a1104 0%, #3a2706 60%, #5a3c08 100%); }
#cha-menu .cha-cta-como { background: linear-gradient(95deg, #0d0f13 0%, #1c1f25 60%, #2a2e35 100%); min-height: 80px; }
#cha-menu .cha-cta-ico { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: none !important; }
#cha-menu .cha-cta-ico img { width: 100%; height: 100%; display: block; }
#cha-menu .cha-cta-tx { position: relative; z-index: 1; }
#cha-menu .cha-cta-tx b { font-size: 1.22rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
#cha-menu .cha-cta-tx small { color: #d8dee9; font-size: .88rem; }
.sgm-art { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 46%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.sgm-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: .9; }
.sgm-flecha { position: absolute; z-index: 2; right: .9rem; top: 50%; translate: 0 -50%; color: #ffd56b; display: grid; }
.sgm-flecha svg { width: 1.7rem !important; height: 1.7rem !important; rotate: 180deg; stroke-width: 2.6; filter: drop-shadow(0 0 6px rgba(255, 213, 107, .6)); }

/* Celular acostado: todo más compacto */
@media (max-height: 520px) {
  #cha-menu .sgm-logo { width: min(250px, 92%); }
  .sgm-laurel { display: none; }
  #cha-menu .cha-yo-cab { padding-right: 0; }
  #cha-menu .cha-yo-cab .cha-av { width: 40px; height: 40px; font-size: 1.05rem; border-width: 2px; }
  #cha-menu .cha-yo-nom { font-size: 1.05rem; }
  #cha-menu .cha-cta { min-height: 52px; padding: .4rem 2.4rem .4rem .7rem; gap: .7rem; border-radius: 12px; }
  #cha-menu .cha-cta-como { min-height: 46px; }
  #cha-menu .cha-cta-ico { width: 40px; height: 40px; }
  #cha-menu .cha-cta-tx b { font-size: 1rem; }
  .sgm-flecha svg { width: 1.3rem !important; height: 1.3rem !important; }
  .sgm-balon { display: none; }
}
@media (max-width: 560px) {
  #cha-menu .cha-cta { min-height: 84px; }
  #cha-menu .cha-cta-ico { width: 56px; height: 56px; }
  .sgm-laurel { width: 84px; }
  #cha-menu .cha-yo-cab { padding-right: 70px; }
  .sgm-art { width: 40%; }
  .sgm-art img { opacity: .55; }
  #cha-menu .cha-cta-tx small { text-shadow: 0 1px 4px rgba(0,0,0,.8); }
}
@media (prefers-reduced-motion: reduce) {
  .sgm-capa { transform: none !important; }
  .sgm-balon, .sgm-d1, .sgm-d2, .sgm-luces img { animation: none !important; }
}

/* ══ «Cómo se juega», como la propuesta del diseñador (2026-10-20) ═══════════
   Números, ilustraciones, botón de cerrar y adornos son piezas de la lámina
   (assets/game/como/); el marco, el título, los textos y «Entendido» son CSS/HTML. */
.sgc { background: rgba(2, 10, 5, .78); }
.sgc .sgc-panel {
  position: relative; width: min(94vw, 760px); max-height: 94%; padding: 1.4rem 1.6rem 1.3rem; text-align: left;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 28px; border: 2px solid #d9ad47;
  background:
    radial-gradient(circle at 0 0, rgba(80, 220, 130, .16) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    radial-gradient(120% 70% at 50% 0%, rgba(40, 160, 80, .28), transparent 60%),
    linear-gradient(180deg, #0c3a1d 0%, #072713 55%, #04180c 100%);
  box-shadow: 0 0 0 4px rgba(4, 24, 13, .9), 0 0 0 5.5px rgba(217, 173, 71, .55), 0 0 40px rgba(217, 173, 71, .3), 0 30px 70px rgba(0, 0, 0, .65), inset 0 0 50px rgba(0, 0, 0, .35);
}
.sgc .sgc-panel::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -2px; height: 3px; border-radius: 3px; background: radial-gradient(closest-side, #b8ffd2, rgba(120, 255, 170, 0)); pointer-events: none; }
.sgc-x { position: absolute; z-index: 3; top: .7rem; right: .7rem; width: 46px; height: 46px; padding: 0; border: 0; background: none; transition: transform .15s; }
.sgc-x:hover { transform: scale(1.08) rotate(90deg); }
.sgc-x img { width: 100%; height: 100%; display: block; }
.sgc-trazo { position: absolute; z-index: 0; top: 1rem; width: 120px; height: auto; opacity: .55; pointer-events: none; }
.sgc-trazo-i { left: 1.2rem; }
.sgc-trazo-d { right: 4rem; width: 110px; }
.sgc .sgc-tit {
  position: relative; z-index: 1; margin: .3rem 0 0; text-align: center; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1;
  background: linear-gradient(180deg, #fff6cf 0%, #ffd56b 45%, #c8901c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(60, 35, 0, .85)) drop-shadow(0 8px 18px rgba(0, 0, 0, .5));
}
.sgc-balon { position: relative; z-index: 1; display: block; width: min(64%, 380px); height: auto; margin: 0 auto .3rem; }
.sgc .sgc-pasos { gap: 0; position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .7rem .2rem .2rem; margin: 0 -.2rem; scrollbar-width: thin; scrollbar-color: #d9ad47 transparent; }
.sgc .sgc-pasos li {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 128px; align-items: center; gap: 1rem;
  padding: .75rem 1rem; border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid rgba(120, 220, 150, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.sgc .sgc-pasos li + li { margin-top: .95rem; }
.sgc .sgc-pasos li + li::before {     /* el separador dorado con su rombo */
  content: ''; position: absolute; left: 12%; right: 12%; top: calc(-.48rem - 1px); height: 2px; translate: 0 -50%;
  background: linear-gradient(90deg, transparent, #d9ad47 20%, #d9ad47 46%, transparent 47% 53%, #d9ad47 54%, #d9ad47 80%, transparent);
}
.sgc .sgc-pasos li + li::after {
  content: ''; position: absolute; left: 50%; top: calc(-.48rem - 1px); width: 8px; height: 8px; translate: -50% -50%; rotate: 45deg; background: #ffd56b; box-shadow: 0 0 8px rgba(255, 213, 107, .8);
}
.sgc-n { width: 64px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.sgc .sgc-tx b { display: block; margin-bottom: .25rem; font-size: 1.35rem; font-weight: 700; line-height: 1.15;
  background: linear-gradient(180deg, #fff3c4, #ffd56b 55%, #e2a52c); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(40, 24, 0, .7)); }
.sgc .sgc-tx p { color: #eef3f7; font-size: .95rem; line-height: 1.4; }
.sgc-i { width: 128px; height: 96px; object-fit: contain; justify-self: end; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.sgc-i4 { -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%); mask-image: linear-gradient(90deg, transparent, #000 25%); }
.sgc .sgc-pie { position: relative; flex: none; margin-top: .9rem; }
.sgc-tit, .sgc-balon { flex: none; }
.sgc .sgc-pie::before, .sgc .sgc-pie::after { content: ''; position: absolute; top: 50%; width: 22%; height: 2px; background: linear-gradient(90deg, transparent, #d9ad47); }
.sgc .sgc-pie::before { left: 2%; }
.sgc .sgc-pie::after { right: 2%; rotate: 180deg; }
.sgc .sgc-ok {
  position: relative; min-width: min(60%, 320px); min-height: 60px; padding: .6rem 2rem; border-radius: 999px;
  font-size: 1.35rem; font-weight: 700; color: #1a1100; cursor: pointer;
  border: 2px solid #fff0b8;
  background:
    linear-gradient(60deg, transparent 47%, rgba(255, 255, 255, .18) 48% 52%, transparent 53%) 0 0 / 46px 40px,
    linear-gradient(180deg, #fff1b0 0%, #ffd25a 35%, #f1b229 65%, #c8860f 100%);
  box-shadow: 0 0 0 3px rgba(120, 80, 0, .6), 0 0 26px rgba(255, 200, 70, .55), 0 10px 22px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(120, 70, 0, .35);
  transition: transform .12s, filter .2s;
}
.sgc .sgc-ok:hover { filter: brightness(1.06); }
.sgc .sgc-ok:active { transform: translateY(2px); }

/* Teléfono de pie: la ilustración baja a la esquina y el texto toma el ancho */
@media (max-width: 600px) {
  .sgc .sgc-panel { padding: 1.1rem .9rem 1rem; border-radius: 22px; }
  .sgc-x { width: 40px; height: 40px; top: .5rem; right: .5rem; }
  .sgc-trazo { display: none; }
  .sgc .sgc-pasos li { grid-template-columns: 46px minmax(0, 1fr); gap: .7rem; padding: .8rem .8rem .8rem .7rem; }
  .sgc-n { width: 46px; align-self: start; }
  .sgc-i { position: absolute; right: 4px; bottom: 4px; width: 88px; height: 66px; opacity: .3; }
  .sgc .sgc-tx { position: relative; z-index: 1; }
  .sgc .sgc-tx b { font-size: 1.2rem; }
  .sgc .sgc-tx p { font-size: .9rem; }
  .sgc .sgc-ok { font-size: 1.15rem; min-height: 52px; }
}
/* Celular acostado: dos columnas de pasos para que quepa sin tanto desplazar */
@media (max-height: 520px) {
  .sgc .sgc-panel { width: min(96vw, 860px); padding: .7rem 1rem .8rem; }
  .sgc .sgc-tit { font-size: 1.6rem; }
  .sgc-balon, .sgc-trazo { display: none; }
  .sgc .sgc-pasos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .3rem; }
  .sgc .sgc-pasos li + li { margin-top: 0; }
  .sgc .sgc-pasos li + li::before, .sgc .sgc-pasos li + li::after { display: none; }
  .sgc .sgc-pasos li { grid-template-columns: 40px minmax(0, 1fr); padding: .55rem .7rem; }
  .sgc-n { width: 40px; align-self: start; }
  .sgc-i { position: absolute; right: 4px; bottom: 4px; width: 76px; height: 56px; opacity: .3; }
  .sgc .sgc-tx { position: relative; z-index: 1; }
  .sgc .sgc-tx b { font-size: 1.05rem; margin-bottom: .15rem; }
  .sgc .sgc-tx p { font-size: .8rem; line-height: 1.3; }
  .sgc .sgc-pie { margin-top: .6rem; }
  .sgc .sgc-ok { min-height: 38px; font-size: .95rem; padding: .3rem 1.6rem; }
  .sgc .sgc-pie { margin-top: .45rem; }
  .sgc-x { width: 36px; height: 36px; }
}

/* ══ ENTRENAMIENTO: los diez rivales como la propuesta (2026-10-20) ══════════
   Fondo con parallax (el mismo de menu.js), banderines, título dorado con balón y
   tarjetas con la ilustración de cada rival (assets/game/niv/). Efectos: entran en
   cascada, se elevan con brillo al pasar, la que toca late, la elegida se hunde y
   la bloqueada se sacude. */
#cha-cpu { background: #04140a; }
#cha-cpu > .cha-barra, #cha-cpu > .cha-sub, #cha-cpu > .cha-niveles { position: relative; z-index: 1; }
.sgn-band { position: absolute; top: -2vh; width: clamp(80px, 9vw, 150px); height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.55)); transform-origin: 50% 0; animation: sgn-ondea 6s ease-in-out infinite; }
.sgn-band-i { left: 2vw; }
.sgn-band-d { right: 2vw; animation-delay: -3s; }
@keyframes sgn-ondea { 50% { transform: rotate(1.6deg) skewX(-1deg); } }

/* Botón Atrás (también el de las demás pantallas del juego) */
.cha .cha-barra .cha-btn-suave {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1f8a3e, #0d5524); border: 1.5px solid #d9ad47; border-radius: 12px; color: #fff; font-weight: 700;
  box-shadow: 0 0 14px rgba(217, 173, 71, .3), inset 0 1px 0 rgba(255,255,255,.25), 0 4px 0 rgba(0,0,0,.35);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.cha .cha-barra .cha-btn-suave:hover { filter: brightness(1.1); box-shadow: 0 0 22px rgba(217, 173, 71, .55), inset 0 1px 0 rgba(255,255,255,.25), 0 4px 0 rgba(0,0,0,.35); }
.cha .cha-barra .cha-btn-suave:active { transform: translateY(2px); box-shadow: 0 0 10px rgba(217, 173, 71, .3), 0 2px 0 rgba(0,0,0,.35); }

/* Título y nota */
.sgn-tit { display: inline-flex; align-items: center; justify-content: center; gap: .1em; }
.sgn-tit span {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 700; font-style: italic; letter-spacing: -.01em; line-height: 1;
  background: linear-gradient(180deg, #fff6cf 0%, #ffd56b 45%, #d39a22 75%, #8a5a08 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(40, 24, 0, .9)) drop-shadow(0 0 14px rgba(255, 200, 80, .35));
}
.sgn-tit img { width: clamp(34px, 4vw, 56px); height: auto; animation: sgn-gira 7s linear infinite; filter: drop-shadow(0 0 10px rgba(255, 210, 90, .55)); }
@keyframes sgn-gira { to { transform: rotate(360deg); } }
.sgn-sub { padding-bottom: .8rem; }
.sgn-sub span { display: inline-block; padding: .35rem 1.1rem; border-radius: 999px; background: rgba(2, 14, 7, .78); border: 1px solid rgba(217, 173, 71, .55); color: #eef3f7; font-weight: 600; font-size: .95rem; }

/* La rejilla: 5 + 5 */
#cha-cpu .cha-niveles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; width: min(1180px, 100%); margin: 0 auto; padding: .4rem 1.2rem 1.6rem; perspective: 1200px; }

/* La tarjeta */
#cha-cpu .sgn {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 0; text-align: left;
  border-radius: 16px; overflow: hidden; isolation: isolate; color: #fff; opacity: 1; filter: none;
  background: linear-gradient(180deg, #1b1f22 0%, #0b0d0f 100%);
  border: 1.5px solid #c9a24a;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 14px rgba(217, 173, 71, .18), 0 14px 26px rgba(0,0,0,.5);
  animation: sgn-entra .5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i) * 45ms);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, filter .2s;
}
@keyframes sgn-entra { from { opacity: 0; transform: translateY(18px) scale(.94) rotateX(12deg); } }
#cha-cpu .sgn:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 28px rgba(217, 173, 71, .45), 0 22px 34px rgba(0,0,0,.55); }
#cha-cpu .sgn:focus-visible { outline: 3px solid #ffd56b; outline-offset: 3px; }
#cha-cpu .sgn::after {          /* el destello que cruza la tarjeta al pasar */
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 245, 210, .28) 48%, transparent 62%); background-size: 260% 100%; background-position: 130% 0;
  transition: background-position .7s ease;
}
#cha-cpu .sgn:hover::after { background-position: -40% 0; }
#cha-cpu .sgn.is-elegido { transform: scale(.95); filter: brightness(1.25); transition-duration: .12s; }
#cha-cpu .sgn.is-niega { animation: sgn-niega .4s ease both; }
@keyframes sgn-niega { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.sgn-cab { position: relative; z-index: 2; display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem .45rem; }
#cha-cpu .sgn-num {
  flex: none; display: grid; place-items: center; width: 44px; height: 48px; font-size: 1.6rem; font-weight: 700; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.6);
  clip-path: polygon(50% 0, 100% 22%, 100% 78%, 50% 100%, 0 78%, 0 22%);
  background: linear-gradient(180deg, #4a4f55, #1d2125); box-shadow: inset 0 0 0 2px #b9bec4;
  position: relative;
}
#cha-cpu .sgn-num::before { content: ''; position: absolute; inset: 0; clip-path: inherit; background: linear-gradient(180deg, #d8dde2, #6e757c); z-index: -1; }
.sgn-nomb { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; }
#cha-cpu .sgn .cha-nivel-nom { font-size: 1.12rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sgn-est { display: flex; gap: .12rem; margin-top: .1rem; }
.sgn-est img { width: 22px; height: 22px; filter: grayscale(1) brightness(.55); }
.sgn-est img.on { filter: drop-shadow(0 0 4px rgba(255, 210, 80, .6)); }

.sgn-foto { position: relative; display: block; aspect-ratio: 180 / 112; overflow: hidden; }
.sgn-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
#cha-cpu .sgn:hover .sgn-foto img { transform: scale(1.08); }
.sgn-brillo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,15,.55), transparent 30%, transparent 70%, rgba(11,13,15,.6)); }

.sgn-pie { position: relative; z-index: 2; display: flex; align-items: center; gap: .55rem; margin: .5rem; padding: .45rem .55rem; border-radius: 10px; background: linear-gradient(180deg, #1c2024, #0e1013); border: 1px solid rgba(255,255,255,.12); min-height: 54px; }
.sgn-candado { width: 30px; height: auto; flex: none; }
.sgn-pie-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sgn-pie-tx b { font-size: .95rem; }
.sgn-pie-tx small { color: #c7ccd2; font-size: .75rem; }

/* Bloqueada: más oscura, sin perder la ilustración */
#cha-cpu .sgn.is-bloq .sgn-foto img { filter: saturate(.55) brightness(.6); }
#cha-cpu .sgn.is-bloq:hover { transform: translateY(-3px); }

/* La que toca: dorada y latiendo, con su pie verde y la recompensa */
#cha-cpu .sgn.is-actual, #cha-cpu .sgn.is-ok { flex-direction: column; }
#cha-cpu .sgn.is-actual {
  border: 2px solid #ffd56b; background: linear-gradient(180deg, #3a2c07 0%, #121008 60%, #0b0d0f 100%);
  animation: sgn-entra .5s cubic-bezier(.2, .9, .3, 1.2) both, sgn-late 2.2s ease-in-out .6s infinite;
}
@keyframes sgn-late { 50% { box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 34px rgba(255, 213, 107, .75), 0 14px 26px rgba(0,0,0,.5); } }
#cha-cpu .sgn.is-actual .sgn-num { background: linear-gradient(180deg, #ffe08a, #c8901c); color: #1d1300; text-shadow: none; box-shadow: inset 0 0 0 2px #fff0b8; }
.sgn-pie:has(.sgn-toca) { flex-direction: column; align-items: stretch; gap: .35rem; padding: .35rem; background: none; border: 0; }
.sgn-toca { display: block; text-align: center; padding: .35rem .5rem; border-radius: 10px; font-weight: 700; font-size: 1.05rem; color: #fff;
  background: linear-gradient(180deg, #43c95f, #168a32); border: 1px solid #a8f5b8; box-shadow: 0 0 14px rgba(67, 201, 95, .45), inset 0 1px 0 rgba(255,255,255,.4); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
#cha-cpu .sgn.is-ok .sgn-toca { background: linear-gradient(180deg, #2b3d31, #17221b); border-color: rgba(120, 220, 150, .45); box-shadow: none; color: #9ff0b9; font-size: .95rem; }
.sgn-rec { display: flex; align-items: center; gap: .4rem; padding: .3rem .45rem; border-radius: 10px; background: rgba(0,0,0,.45); border: 1px solid rgba(255, 213, 107, .35); }
.sgn-rec-e { width: 22px; height: 22px; flex: none; }
.sgn-rec-tx { display: flex; flex-direction: column; line-height: 1.1; flex: 1; min-width: 0; }
.sgn-rec-tx small { font-size: .68rem; color: #e8e2cf; }
.sgn-rec-tx b { font-size: .95rem; color: #ffd56b; }
.sgn-rec-xp { width: 30px; height: auto; flex: none; animation: sgn-xp 2.4s ease-in-out infinite; }
@keyframes sgn-xp { 50% { transform: scale(1.12) rotate(-6deg); filter: drop-shadow(0 0 6px rgba(255, 213, 107, .8)); } }

/* Tamaños */
@media (max-width: 1000px) {
  #cha-cpu .cha-niveles { gap: .7rem; }
  #cha-cpu .sgn-num { width: 36px; height: 40px; font-size: 1.3rem; }
  #cha-cpu .sgn .cha-nivel-nom { font-size: .98rem; }
  .sgn-est img { width: 18px; height: 18px; }
}
@media (max-width: 700px) and (min-height: 521px) {
  #cha-cpu .cha-niveles { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .3rem .8rem 1.4rem; }
  .sgn-band { width: 64px; opacity: .55; }
  .sgn-tit span { font-size: 1.55rem; }
  .sgn-tit img { width: 26px; }
  #cha-cpu .cha-barra .cha-btn-suave span { display: none; }
  .sgn-sub span { font-size: .82rem; padding: .3rem .8rem; }
}
@media (max-height: 520px) {                  /* celular acostado: 5 + 5, compactas */
  #cha-cpu .cha-niveles { gap: .45rem; padding: .2rem .7rem .8rem; }
  .sgn-tit span { font-size: 1.5rem; }
  .sgn-tit img { width: 26px; }
  .sgn-sub span { font-size: .75rem; padding: .2rem .7rem; }
  .sgn-band { display: none; }
  .sgn-cab { padding: .3rem .35rem .2rem; gap: .3rem; }
  #cha-cpu .sgn-num { width: 26px; height: 30px; font-size: .95rem; }
  #cha-cpu .sgn .cha-nivel-nom { font-size: .8rem; }
  .sgn-est img { width: 12px; height: 12px; }
  .sgn-foto { aspect-ratio: 180 / 80; }
  .sgn-pie { margin: .3rem; padding: .25rem .35rem; min-height: 0; gap: .3rem; }
  .sgn-candado { width: 18px; }
  .sgn-pie-tx b { font-size: .72rem; }
  .sgn-pie-tx small { font-size: .6rem; }
  .sgn-toca { font-size: .78rem; padding: .2rem; }
  .sgn-rec { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #cha-cpu .sgn, .sgn-band, .sgn-tit img, .sgn-rec-xp { animation: none !important; }
}

/* El mismo destello al pasar, en las tarjetas del menú principal */
#cha-menu .cha-cta::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 245, 210, .22) 48%, transparent 62%); background-size: 260% 100%; background-position: 130% 0;
  transition: background-position .7s ease;
}
#cha-menu .cha-cta:hover::after { background-position: -40% 0; }
#cha-menu .cha-cta:active { transform: translateY(1px) scale(.985); }
#cha-menu .cha-cta:hover .sgm-flecha { translate: 4px -50%; transition: translate .2s; }

/* ══ CONTRA PERSONAS (2026-10-20) ═════════════════════════════════════════════
   Mismo fondo con parallax, dos balones dorados a los lados, placa de título con
   la cresta, emblema VS y el panel «Necesitas tu cuenta». Piezas de assets/game/pvp/. */
#cha-pvp { background: #04140a; }
#cha-pvp > .cha-barra, #cha-pvp > .sgp-cab, #cha-pvp > .cha-invita, #cha-pvp > .cha-pvp { position: relative; z-index: 1; }
.sgp-balon { position: absolute; width: clamp(110px, 16vw, 260px); height: auto; animation: sgp-flota 7s ease-in-out infinite; }
.sgp-balon-i { left: 2vw; top: 34vh; }
.sgp-balon-d { right: 2vw; top: 22vh; animation-delay: -3.5s; }
@keyframes sgp-flota { 50% { transform: translateY(-16px) rotate(8deg); } }

.sgp-cab { display: flex; flex-direction: column; align-items: center; margin-top: -2.4rem; pointer-events: none; }
.sgp-tit { display: flex; flex-direction: column; align-items: center; flex: none; }
.sgp-cresta { width: 92px; height: auto; margin-bottom: -26px; position: relative; z-index: 2; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); animation: sgp-cresta 3.6s ease-in-out infinite; }
@keyframes sgp-cresta { 50% { filter: drop-shadow(0 0 14px rgba(255, 213, 107, .7)); } }
.sgp-placa {
  position: relative; display: inline-block; padding: .55rem 2.4rem .6rem; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.1; color: #fff;
  clip-path: polygon(4% 0, 96% 0, 100% 50%, 96% 100%, 4% 100%, 0 50%);
  background: linear-gradient(180deg, #d9ad47, #8a6418); text-shadow: 0 3px 0 rgba(0,0,0,.45);
}
.sgp-placa::before { content: ''; position: absolute; inset: 3px; z-index: -1; clip-path: inherit; background: linear-gradient(180deg, #0d4a24, #052512); }
.sgp-placa { isolation: isolate; }
.sgp-vs { width: clamp(220px, 30vw, 330px); height: auto; margin-top: .4rem; animation: sgp-vs 2.8s ease-in-out infinite; }
@keyframes sgp-vs { 50% { transform: scale(1.04); filter: drop-shadow(0 0 16px rgba(80, 255, 140, .45)); } }

/* El panel sin cuenta */
#cha-pvp .sgp-invita {
  width: min(92vw, 560px); margin: .6rem auto 1.4rem; padding: 1.4rem 1.6rem 1.5rem; gap: .5rem;
  border-radius: 20px; border: 1.5px solid #d9ad47;
  background: radial-gradient(120% 80% at 50% 0%, rgba(40, 160, 80, .25), transparent 60%), linear-gradient(180deg, rgba(10, 46, 25, .95), rgba(3, 20, 10, .96));
  box-shadow: 0 0 26px rgba(217, 173, 71, .28), 0 24px 44px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  animation: sgn-entra .5s cubic-bezier(.2, .9, .3, 1.2) both;
}
#cha-pvp .sgp-invita h3 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 700; }
#cha-pvp .sgp-invita p { color: #dfe6ee; font-size: 1rem; max-width: 40ch; }
#cha-pvp .cha-invita-b { gap: .9rem; margin-top: .7rem; }

/* Botones: dorado y oscuro con borde dorado, con brillo y destello */
.sgp-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 54px; padding: .6rem 1.6rem; border-radius: 14px; font-weight: 700; font-size: 1.12rem; text-decoration: none;
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.sgp-btn svg { width: 1.35em; height: 1.35em; stroke-width: 2.2; }
.sgp-btn::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; transition: background-position .7s ease; }
.sgp-btn:hover::after { background-position: -40% 0; }
.sgp-btn:hover { transform: translateY(-2px); }
.sgp-btn:active { transform: translateY(1px) scale(.98); }
.sgp-btn-oro { color: #1d1300 !important; background: linear-gradient(180deg, #fff0b0 0%, #ffd25a 40%, #e9a923 100%); border: 2px solid #fff0b8;
  box-shadow: 0 0 0 2px rgba(120, 80, 0, .55), 0 0 22px rgba(255, 200, 70, .5), 0 8px 18px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.6); }
.sgp-btn-oro:hover { box-shadow: 0 0 0 2px rgba(120, 80, 0, .55), 0 0 34px rgba(255, 200, 70, .8), 0 10px 22px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.6); }
.sgp-btn-osc { color: #fff !important; background: linear-gradient(180deg, #0f3a20, #061a0d); border: 1.5px solid #d9ad47;
  box-shadow: 0 0 14px rgba(217, 173, 71, .25), 0 8px 18px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1); }
.sgp-btn-osc:hover { box-shadow: 0 0 24px rgba(217, 173, 71, .5), 0 10px 22px rgba(0,0,0,.45); }

/* Con cuenta: el cuerpo en paneles verdes con borde dorado */
#cha-pvp .sgp-cuerpo { max-width: 980px; padding-top: .6rem; }
#cha-pvp .sgp-cuerpo.is-solo { grid-template-columns: minmax(0, 560px); justify-content: center; }
#cha-pvp .sgp-bloque { border: 1.5px solid rgba(217, 173, 71, .7); border-radius: 16px; background: linear-gradient(180deg, rgba(10, 46, 25, .93), rgba(3, 20, 10, .95)); box-shadow: 0 0 18px rgba(217, 173, 71, .18), 0 14px 28px rgba(0,0,0,.4); }
#cha-pvp .sgp-bloque h4 { color: #ffd56b; letter-spacing: .08em; }
#cha-pvp .sgp-bloque .sgp-btn { min-height: 44px; font-size: .98rem; padding: .45rem 1.1rem; }
#cha-pvp .cha-in { border: 1.5px solid rgba(217, 173, 71, .55); background: rgba(0, 0, 0, .45); color: #fff; border-radius: 12px; }
#cha-pvp .cha-in:focus { outline: none; border-color: #ffd56b; box-shadow: 0 0 0 3px rgba(255, 213, 107, .25); }
#cha-pvp .sgp-rapida {
  position: relative; overflow: hidden; isolation: isolate; min-height: 92px; padding-right: 3rem; border: 1.5px solid #d9ad47; border-radius: 16px;
  background: linear-gradient(95deg, #06112b 0%, #0a2463 60%, #0d3a9a 100%); box-shadow: 0 0 22px rgba(47, 123, 255, .35), 0 12px 26px rgba(0,0,0,.45);
  animation: sgn-late 2.6s ease-in-out infinite;
}
#cha-pvp .sgp-rapida .cha-cta-ico { width: 64px; height: 64px; border-radius: 50%; background: none; }
#cha-pvp .sgp-rapida .cha-cta-ico img { width: 100%; height: 100%; display: block; }
#cha-pvp .sgp-rapida .cha-cta-tx b { font-size: 1.25rem; }
#cha-pvp .sgp-rapida::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 245, 210, .22) 48%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; transition: background-position .7s ease; }
#cha-pvp .sgp-rapida:hover::after { background-position: -40% 0; }
#cha-pvp .sgp-rapida:hover { transform: translateY(-2px); }

@media (max-width: 600px) {
  .sgp-cab { margin-top: -1rem; }
  .sgp-cresta { width: 70px; margin-bottom: -20px; }
  .sgp-placa { padding: .45rem 1.6rem .5rem; }
  .sgp-balon { width: 90px; opacity: .7; }
  .sgp-balon-i { top: auto; bottom: 6vh; }
  #cha-pvp .cha-invita-b { flex-direction: column; width: 100%; }
  #cha-pvp .cha-invita-b .sgp-btn { width: 100%; }
}
@media (max-height: 520px) {
  .sgp-cab { flex-direction: row; justify-content: center; gap: 1rem; margin-top: -2.8rem; }
  .sgp-cresta { display: none; }
  .sgp-placa { font-size: 1.35rem; padding: .3rem 1.6rem; }
  .sgp-vs { width: 150px; margin: 0; }
  .sgp-balon { width: 90px; }
  #cha-pvp .sgp-invita { padding: .7rem 1.2rem .8rem; margin-top: .3rem; gap: .2rem; }
  #cha-pvp .sgp-invita h3 { font-size: 1.3rem; }
  #cha-pvp .sgp-invita p { font-size: .85rem; }
  #cha-pvp .cha-invita-b { margin-top: .3rem; }
  .sgp-btn { min-height: 42px; font-size: .95rem; padding: .4rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sgp-balon, .sgp-vs, .sgp-cresta, #cha-pvp .sgp-rapida, #cha-pvp .sgp-invita { animation: none !important; }
}
.sgp-placa em, #cha-pvp .sgp-invita h3 em { font-style: normal; background: linear-gradient(180deg, #fff1bf, #ffd56b 50%, #e2a52c); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); }

/* ══ ELEGIR ESTADIO, tipo consola (2026-10-20) ════════════════════════════════
   Carrusel 3D: la tarjeta enfocada al centro y grande, las vecinas giradas y más
   chicas detrás. El fondo de la pantalla es la escena del estadio enfocado (fundido)
   con el mismo parallax. Botón A dorado, flechas de cristal y puntos abajo. */
#cha-estadio { background: #03080e; }
#cha-estadio > .cha-barra, #cha-estadio > .sge-carrusel, #cha-estadio > .sge-pie { position: relative; z-index: 1; }
.sge-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(10px) brightness(.45) saturate(1.2); transform: scale(1.06); opacity: 0; transition: opacity .6s ease; }
.sge-bg img.is-on { opacity: 1; }
.sge-tit { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff6cf, #ffd56b 50%, #d39a22); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.6)); }

.sge-carrusel { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; outline: none; perspective: 1400px; touch-action: pan-y; }
.sge-pista { position: relative; width: min(62vw, 760px); aspect-ratio: 16 / 10.4; max-height: 62vh; transform-style: preserve-3d; }
.sge-card {
  position: absolute; inset: 0; padding: 0; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer; background: #0b0f16; color: #fff; text-align: left;
  transform: translateX(calc(var(--d) * 58%)) translateZ(calc(var(--ad) * -260px)) rotateY(calc(var(--d) * -32deg)) scale(calc(1 - var(--ad) * .1));
  opacity: calc(1 - var(--ad) * .35); filter: brightness(calc(1 - var(--ad) * .35));
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s, filter .4s, box-shadow .3s;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 30px 60px rgba(0,0,0,.6);
}
.sge-card[style*="--ad: 2"], .sge-card[style*="--ad: 3"] { opacity: 0; pointer-events: none; }
.sge-card.is-on { box-shadow: 0 0 0 3px var(--c), 0 0 0 7px rgba(0,0,0,.55), 0 0 50px color-mix(in srgb, var(--c) 60%, transparent), 0 34px 70px rgba(0,0,0,.65); animation: sge-late 2.4s ease-in-out infinite; }
@keyframes sge-late { 50% { box-shadow: 0 0 0 3px var(--c), 0 0 0 7px rgba(0,0,0,.55), 0 0 80px color-mix(in srgb, var(--c) 85%, transparent), 0 34px 70px rgba(0,0,0,.65); } }
.sge-prev { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.sge-card.is-on .sge-prev { transform: scale(1.06); }
.sge-brillo { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255,250,225,.22) 50%, transparent 65%); background-size: 260% 100%; background-position: 140% 0; }
.sge-card.is-on .sge-brillo { animation: sge-barre 3.2s ease-in-out .3s infinite; }
@keyframes sge-barre { 0%, 25% { background-position: 140% 0; } 75%, 100% { background-position: -40% 0; } }
.sge-info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 3.5rem 1.4rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(3,6,12,.82) 45%, rgba(3,6,12,.95)); }
.sge-logo { height: clamp(34px, 6vw, 60px); width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.sge-nom { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.sge-desc { color: #dfe6ee; font-size: clamp(.8rem, 1.3vw, 1rem); max-width: 46ch; }
.sge-nuevo { position: absolute; top: 14px; right: 14px; padding: .3rem .8rem; border-radius: 999px; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: #1d1300; background: linear-gradient(180deg, #fff0b0, #ffcf40); box-shadow: 0 0 16px rgba(255, 210, 70, .7); animation: sgn-xp 2s ease-in-out infinite; }
.sge-card:not(.is-on) .sge-info small, .sge-card:not(.is-on) .sge-nuevo { opacity: 0; }

.sge-flecha { position: absolute; z-index: 20; top: 50%; translate: 0 -50%; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(20, 80, 42, .9), rgba(5, 30, 15, .95)); border: 1.5px solid #d9ad47; color: #ffd56b;
  box-shadow: 0 0 18px rgba(217, 173, 71, .35), 0 8px 18px rgba(0,0,0,.5); transition: transform .15s, box-shadow .2s; }
.sge-flecha svg { width: 30px !important; height: 30px !important; stroke-width: 2.6; }
.sge-flecha:hover { transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 213, 107, .6), 0 8px 18px rgba(0,0,0,.5); }
.sge-flecha:active { transform: scale(.94); }
.sge-flecha-i { left: max(1.5vw, 12px); }
.sge-flecha-d { right: max(1.5vw, 12px); }
.sge-flecha-d svg { rotate: 180deg; }

.sge-pie { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: .4rem 1rem 1.2rem; }
.sge-puntos { display: flex; gap: .5rem; }
.sge-puntos i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: width .3s, background .3s; }
.sge-puntos i.is-on { width: 28px; border-radius: 6px; background: #ffd56b; box-shadow: 0 0 10px rgba(255, 213, 107, .7); }
.sge-jugar { min-width: min(80vw, 300px); min-height: 58px; font-size: 1.25rem; }
.sge-jugar.is-pulsado { transform: scale(.94); }
.sge-tecla { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #1d7a32; color: #fff; font-size: .8em; box-shadow: inset 0 -2px 0 rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.6); }
.sge-ayuda { margin: 0; color: #c4ccd8; font-size: .82rem; }
.sge-ayuda-tac { display: none; }
@media (hover: none) { .sge-ayuda-pc { display: none; } .sge-ayuda-tac { display: inline; } }

@media (max-width: 700px) and (min-height: 521px) {
  .sge-pista { width: 80vw; aspect-ratio: 10 / 13; max-height: 60vh; }
  .sge-card { transform: translateX(calc(var(--d) * 72%)) translateZ(calc(var(--ad) * -260px)) rotateY(calc(var(--d) * -30deg)) scale(calc(1 - var(--ad) * .1)); }
  .sge-flecha { width: 40px; height: 40px; }
  .sge-flecha-i { left: 4px; }
  .sge-flecha-d { right: 4px; }
}
@media (max-height: 520px) {
  .sge-pista { width: min(52vw, 480px); max-height: 62vh; }
  .sge-tit { font-size: 1.3rem; }
  .sge-info { padding: 2rem .9rem .6rem; }
  .sge-desc { display: none; }
  .sge-pie { flex-direction: row; gap: 1rem; padding: .2rem 1rem .5rem; }
  .sge-jugar { min-height: 42px; min-width: 200px; font-size: 1rem; }
  .sge-ayuda { display: none; }
  .sge-flecha { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .sge-card, .sge-card.is-on, .sge-card.is-on .sge-brillo, .sge-nuevo { animation: none !important; transition: none !important; }
}
#cha-estadio > .sge-carrusel { z-index: 2; }
.sge-pie { pointer-events: none; }
.sge-pie > * { pointer-events: auto; }

/* ══ La BARRA DE ARRIBA, compacta, con anuncios tipo LED (2026-10-21) ═══════════════════════════════════
   Como la propone el diseñador: una sola barra baja con el botón de salir, tu avatar con tu nombre y nivel, una pantalla LED de
   anuncio, el marcador con el reloj en medio, otra pantalla LED, el nombre y el avatar del rival y el sonido. Sustituye a los
   paneles inclinados y a los marcadores vestidos por estadio. Con poco ancho (celular) las pantallas LED se apagan primero el
   lema y luego completas, y la barra vuelve a ser la de siempre. */
.cha-hud {
  --cha-hud: 50px; container-type: inline-size;
  display: grid; align-items: center; gap: .5rem; padding: 3px max(10px, env(safe-area-inset-right)) 3px max(10px, env(safe-area-inset-left));
  grid-template-areas: "s l0 a0 m a1 l1 h"; grid-template-columns: auto auto minmax(0, 1fr) auto minmax(0, 1fr) auto auto;
  background: linear-gradient(180deg, #0c1527 0%, #070c18 100%); box-shadow: 0 6px 16px rgba(0, 0, 0, .55);
}
.cha-hud > #cha-h-salir { grid-area: s; }
.cha-hud > .cha-lado-0 { grid-area: l0; }
.cha-hud > .cha-led-0 { grid-area: a0; }
.cha-hud > .cha-marcador { grid-area: m; }
.cha-hud > .cha-led-1 { grid-area: a1; }
.cha-hud > .cha-lado-1 { grid-area: l1; }
.cha-hud > .cha-herr { grid-area: h; }
.cha-hud::after { height: 2px; }
.cha-hud .cha-ib { width: 34px; height: 34px; border-radius: 9px; }
.cha-hud .cha-ib svg { width: 18px; height: 18px; }
.cha-hud-logo { display: none !important; }
.cha-lado { padding: 0; gap: .55rem; }
.cha-lado::before, .cha-lado::after { display: none !important; }
.cha-lado.is-turno { background: none; box-shadow: none; }
.cha-lado.is-turno .cha-nom b { color: #ffd23a; text-shadow: 0 0 12px rgba(255, 210, 58, .55); }
.cha-hud .cha-anillo { margin: 0; padding: 2px; }
.cha-hud .cha-anillo .cha-av { width: 38px; height: 38px; font-size: 1.05rem; border-width: 2px; }
.cha-lado.is-turno .cha-anillo .cha-av { box-shadow: 0 0 0 2px #ffd23a, 0 0 14px rgba(255, 210, 58, .55); }
.cha-nom { flex-direction: row; align-items: center; gap: .5rem; min-width: 0; }
.cha-nom b { font-size: 1rem; max-width: 11ch; }
.cha-nom small { margin: 0; align-self: center; font-size: .6rem; padding: .04rem .5rem; white-space: nowrap; }
.cha-marcador { gap: .55rem; }
.cha-g { font-size: 1.75rem; line-height: 1; min-width: 1.2ch; }
.cha-centro-h { flex-direction: row; background: none; padding: 0; min-width: 0; }
.cha-reloj { font-size: .95rem; font-weight: 800; padding: .18rem .75rem; letter-spacing: .06em; border-width: 1.5px; box-shadow: 0 0 12px rgba(217, 164, 65, .25); }
.cha-sede { display: none; }

/* Las pantallas LED de anuncios */
.cha-led {
  position: relative; display: flex; align-items: center; height: 34px; min-width: 0; overflow: hidden;
  border: 1.5px solid #c8923a; border-radius: 8px; background: linear-gradient(180deg, #0b1122, #04070f);
  box-shadow: inset 0 0 14px rgba(255, 190, 80, .12), 0 0 0 1px rgba(0, 0, 0, .65);
}
.cha-led[hidden] { display: none; }
.cha-led-0 { justify-self: end; } .cha-led-1 { justify-self: start; }
.cha-led { width: 100%; max-width: 430px; }
.cha-led::after {                       /* la rejilla de puntos de una pantalla LED */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(rgba(0, 0, 0, .35) 0.9px, transparent 1.3px) 0 0 / 3px 3px; mix-blend-mode: multiply;
}
.cha-led-tag {
  flex: none; align-self: stretch; display: flex; align-items: center; padding: 0 .45rem; z-index: 1;
  font-size: .43rem; font-weight: 800; letter-spacing: .1em; color: #aab4cc; text-transform: uppercase; background: rgba(255, 255, 255, .06);
  border-right: 1px solid rgba(200, 146, 58, .45);
}
.cha-led-ad { display: flex; align-items: center; gap: .5rem; padding: 0 .6rem; min-width: 0; white-space: nowrap; z-index: 1; animation: led-entra .55s ease-out both; }
.cha-led-ad.is-sale { animation: led-sale .28s ease-in both; }
.cha-led-ad img, .cha-led-ad svg { flex: none; width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .35)); }
.cha-led-ad svg { color: var(--led-ic, #ffd23a); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cha-led-marca { flex: none; font-size: 1.02rem; font-weight: 800; color: #fff; letter-spacing: -.01em; text-shadow: 0 0 10px rgba(255, 255, 255, .45); }
.cha-led-lema { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; font-weight: 600; color: var(--led-c, #5aa8ff); text-shadow: 0 0 9px color-mix(in srgb, var(--led-c, #5aa8ff) 60%, transparent); }
.cha-led-lema::before { content: '•'; margin-right: .5rem; color: #ffd23a; }
@keyframes led-entra { 0% { opacity: 0; transform: translateY(70%); filter: brightness(2.4) blur(2px); } 55% { opacity: 1; filter: brightness(1.6); } 70% { opacity: .55; } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes led-sale { to { opacity: 0; transform: translateY(-70%); filter: brightness(2) blur(2px); } }

/* Poco ancho: sin el lema; menos aún: sin las pantallas y la barra de siempre */
@container (max-width: 1000px) { .cha-led-lema { display: none; } .cha-nom b { max-width: 8ch; } }
@container (max-width: 900px) {
  .cha-hud { grid-template-areas: "s l0 m l1 h"; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  .cha-led { display: none !important; }
}
@media (max-height: 520px) {
  .cha-hud { --cha-hud: 40px; }
  .cha-hud .cha-anillo .cha-av { width: 30px; height: 30px; font-size: .85rem; }
  .cha-hud .cha-ib { width: 30px; height: 30px; }
  .cha-g { font-size: 1.4rem; }
  .cha-nom small { font-size: .5rem; padding: 0 .35rem; }
  .cha-led { height: 28px; }
  .cha-reloj { font-size: .8rem; padding: .1rem .55rem; }
}
.cha-stage.is-girada .cha-hud { --cha-hud: 40px; }
@media (prefers-reduced-motion: reduce) { .cha-led-ad, .cha-led-ad.is-sale { animation: none; } }

/* Los colores de cada lado por estadio (el resto de la barra es igual en todos). Donut: tú en rojo. */
.cha[data-estadio="donut"] #cha-g-0 { color: #ff6a76; text-shadow: 0 0 14px rgba(255, 106, 118, .6), 0 2px 0 rgba(0,0,0,.5); }
.cha[data-estadio="donut"] #cha-g-1 { color: #6aa8ff; text-shadow: 0 0 14px rgba(106, 168, 255, .6), 0 2px 0 rgba(0,0,0,.5); }
.cha[data-estadio="donut"] .cha-hud::after { background: linear-gradient(90deg, #ff3a4a 0%, #ff3a4a 38%, #ffd23a 50%, #3a8aff 62%, #3a8aff 100%); }
.cha[data-estadio="sanmy"] #cha-g-1 { color: #ff6fb5; text-shadow: 0 0 14px rgba(255, 111, 181, .6), 0 2px 0 rgba(0,0,0,.5); }
.cha[data-estadio="sanmy"] .cha-hud::after { background: linear-gradient(90deg, #3aa0ff 0%, #3aa0ff 35%, #fff 50%, #ff4fa3 65%, #ff4fa3 100%); }
/* Boing!: tus fichas son verdes y las del rival rojas, así que tus goles también (2026-10-21). */
.cha[data-estadio="boing"] #cha-g-0 { color: #5dff8a; text-shadow: 0 0 14px rgba(77, 255, 122, .6), 0 2px 0 rgba(0,0,0,.5); }
.cha[data-estadio="boing"] #cha-g-1 { color: #ff5260; text-shadow: 0 0 14px rgba(255, 82, 96, .6), 0 2px 0 rgba(0,0,0,.5); }
.cha[data-estadio="boing"] .cha-hud::after { background: linear-gradient(90deg, #2fbf4a 0%, #2fbf4a 38%, #ffd23a 50%, #ff2a3a 62%, #ff2a3a 100%); }

/* ══ Elegir AVATAR (2026-10-21) ═══════════════════════════════════════════════════════════════════════════
   El avatar del menú es un botón: con cuenta abre la rejilla de los 16 avatares del juego; sin cuenta lleva a registrarse. */
.cha-av-btn { position: relative; padding: 0; cursor: pointer; font: inherit; color: inherit; overflow: visible; }
.cha-av-btn img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.cha-av-lapiz svg { display: block; width: 12px; height: 12px; stroke-width: 2.4; margin: 0; }
.cha-av-btn:hover { filter: brightness(1.12); }
.cha-av-btn:focus-visible { outline: 3px solid #ffd23a; outline-offset: 3px; }
.cha-av-lapiz {
  position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; display: grid; place-items: center; font-style: normal;
  border-radius: 50%; background: #ffd23a; color: #1a1305; border: 2px solid #06101e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.cha-av-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgba(2, 6, 14, .78); backdrop-filter: blur(4px); }
.cha-av-modal[hidden] { display: none; }
.cha-av-caja {
  position: relative; width: min(760px, 100%); max-height: 92dvh; overflow: auto; padding: 1.2rem 1.2rem 1.4rem; border-radius: 18px;
  background: linear-gradient(180deg, #101c34, #07101f); border: 1.5px solid rgba(217, 173, 71, .55); box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
}
.cha-av-caja h2 { margin: 0 2.5rem .15rem 0; font-size: 1.3rem; color: #fff; }
.cha-av-caja p { margin: 0 0 1rem; color: #aab4cc; font-size: .9rem; }
.cha-av-x { position: absolute; right: .7rem; top: .7rem; }
.cha-av-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .7rem; }
.cha-av-op {
  display: grid; gap: .35rem; justify-items: center; padding: .45rem .35rem .5rem; border-radius: 14px; cursor: pointer; font: inherit; color: #dfe7f7;
  background: rgba(255, 255, 255, .05); border: 2px solid transparent; transition: transform .15s, border-color .15s, background .15s;
}
.cha-av-op img { width: 100%; max-width: 104px; height: auto; aspect-ratio: 1; border-radius: 16px; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.cha-av-op small { font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.cha-av-op:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); }
.cha-av-op:focus-visible { outline: 3px solid #ffd23a; outline-offset: 2px; }
.cha-av-op.is-on { border-color: #ffd23a; background: rgba(255, 210, 58, .12); box-shadow: 0 0 18px rgba(255, 210, 58, .35); }
.cha-av-op:disabled { opacity: .6; cursor: wait; }
@media (max-height: 520px) { .cha-av-rejilla { grid-template-columns: repeat(8, 1fr); } .cha-av-op small { display: none; } }
@media (prefers-reduced-motion: reduce) { .cha-av-op { transition: none; } }

/* ══ BUSCANDO RIVAL, como la propuesta del diseñador (2026-10-21) ═══════════════════════════════════════
   Estadio de noche con parallax en dos planos (las gradas se mueven poco, el pasto y las fichas del frente más), focos con un respirar de
   luz, y al centro tu tarjeta (con tu avatar del juego) contra la del rival (silueta con «?»), con el VS en medio. */
.sgb { position: relative; overflow: hidden; height: 100%; min-height: 100dvh; align-items: stretch; justify-content: flex-start; flex-direction: column; background: #04070f; }
.sgb-px { position: absolute; z-index: 0; }
.sgb-capa { position: absolute; inset: -4%; }
.sgb-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgb-lejos { transform: translate3d(calc(var(--px) * -9px), calc(var(--py) * -6px), 0) scale(1.06); }
.sgb-cerca {
  transform-origin: 50% 100%; transform: translate3d(calc(var(--px) * -30px), calc(var(--py) * -16px), 0) scale(1.14);
  -webkit-mask-image: linear-gradient(180deg, transparent 56%, #000 70%); mask-image: linear-gradient(180deg, transparent 56%, #000 70%);
}
.sgb-luces { pointer-events: none; mix-blend-mode: screen; transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -9px), 0); }
.sgb-foco { position: absolute; top: 4%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .5), rgba(255, 190, 70, .16) 38%, transparent 68%); animation: sgb-foco 4.2s ease-in-out infinite; }
.sgb-foco-i { left: -1%; } .sgb-foco-d { right: -1%; animation-delay: -2.1s; }
@keyframes sgb-foco { 50% { opacity: .55; transform: scale(1.08); } }
.sgb-vineta { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 46%, rgba(2, 5, 12, .12) 28%, rgba(2, 5, 12, .66) 100%), linear-gradient(180deg, rgba(2, 5, 12, .5), transparent 22%, transparent 70%, rgba(2, 5, 12, .62)); }

.sgb-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: clamp(10px, 2.6vh, 26px) clamp(14px, 3vw, 40px) 0; }
.sgb-logo { height: clamp(26px, 5vh, 46px); width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.sgb-cont { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: .4rem 1rem 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.3rem, 1.4vh, .8rem); text-align: center; }
.sgb-etq { padding: .38rem 1.4rem; border-radius: 999px; border: 1.5px solid #d9a441; background: rgba(8, 12, 22, .6); color: #ffd47a; font-weight: 800; font-size: clamp(.68rem, 1.6vh, .85rem); letter-spacing: .16em; }
.sgb-cont h2 { margin: 0; font-size: clamp(1.8rem, 6.6vh, 3.7rem); font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); line-height: 1.05; }
.sgb-sub { margin: 0; color: #b7c0d4; font-size: clamp(.85rem, 2.2vh, 1.25rem); }
.sgb-cont .cha-bote { margin: 0; color: #aab4cc; font-size: clamp(.72rem, 1.7vh, .9rem); }

.sgb-vs { display: grid; grid-template-columns: auto minmax(110px, 190px) auto; align-items: center; gap: clamp(.4rem, 2vw, 1.4rem); margin: clamp(.3rem, 1.6vh, 1rem) 0; }
.sgb-card {
  --w: clamp(150px, 31vh, 300px); position: relative; width: var(--w); aspect-ratio: 366 / 404; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 .6rem clamp(.5rem, 1.8vh, 1rem); transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -6px), 0);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .65)); animation: sgb-flota 5.5s ease-in-out infinite;
}
.sgb-rojo { animation-delay: -2.7s; transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -8px), 0); }
@keyframes sgb-flota { 50% { margin-top: -6px; margin-bottom: 6px; } }
.sgb-marco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.sgb-foto { position: absolute; z-index: 1; left: 12%; right: 12%; top: 7%; bottom: 33%; display: grid; place-items: center; }
.sgb-foto .cha-av { width: 100%; height: auto; aspect-ratio: 1; max-height: 100%; border-radius: 22px; border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 255, 255, .12); font-size: 3rem; overflow: hidden; }
.sgb-foto .cha-av img { width: 100%; height: 100%; object-fit: cover; }
.sgb-foto-sombra { left: 4%; right: 4%; top: 4%; bottom: 26%; place-items: end center; }
.sgb-foto-sombra img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: .96; }
.sgb-rojo.is-hallado .sgb-foto-sombra { display: none; }
.sgb-chip { position: relative; z-index: 2; padding: .16rem 1.1rem; border-radius: 8px; font-size: clamp(.58rem, 1.4vh, .78rem); font-weight: 800; letter-spacing: .08em; color: #fff; }
.sgb-chip-az { background: linear-gradient(180deg, #2f7bff, #1c4fc4); box-shadow: 0 0 14px rgba(47, 123, 255, .5); }
.sgb-chip-ro { background: linear-gradient(180deg, #e8352f, #a8211d); box-shadow: 0 0 14px rgba(255, 70, 60, .5); }
.sgb-nom { position: relative; z-index: 2; max-width: 100%; margin-top: .25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(.95rem, 2.8vh, 1.7rem); font-weight: 800; color: #fff; text-shadow: 0 2px 8px #000; }
.sgb-niv { position: relative; z-index: 2; color: #ffc54a; font-weight: 800; letter-spacing: .1em; font-size: clamp(.6rem, 1.5vh, .8rem); }

.sgb-medio { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 0; }
.sgb-vsimg { width: clamp(70px, 15vh, 150px); height: auto; filter: drop-shadow(0 0 20px rgba(255, 200, 80, .5)); animation: sgb-vs 2.8s ease-in-out infinite; }
@keyframes sgb-vs { 50% { transform: scale(1.06) rotate(-1.5deg); filter: drop-shadow(0 0 30px rgba(255, 210, 90, .8)); } }
.sgb-puntos { display: flex; gap: .55rem; }
.sgb-puntos i { width: 11px; height: 11px; border-radius: 50%; background: #d9a441; opacity: .35; animation: sgb-punto 1.2s ease-in-out infinite; }
.sgb-puntos i:nth-child(2) { animation-delay: .2s; } .sgb-puntos i:nth-child(3) { animation-delay: .4s; }
@keyframes sgb-punto { 40% { opacity: 1; transform: scale(1.25); } }
.sgb-medio .cha-seg { margin: 0; color: #c4cbdc; font-size: clamp(.72rem, 1.8vh, .95rem); white-space: nowrap; }
.sgb-medio .cha-seg b { color: #ffd23a; font-size: 1.1em; margin-left: .2rem; }

.sgb-consejo { position: relative; display: flex; align-items: center; gap: .9rem; width: min(560px, 92%); min-height: clamp(48px, 9vh, 78px); padding: .3rem 1.2rem .3rem .9rem; text-align: left; }
.sgb-consejo-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.sgb-consejo-ico { position: relative; z-index: 1; width: clamp(34px, 7vh, 56px); height: auto; flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.sgb-consejo-tx { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .1rem; padding-left: .9rem; border-left: 1px solid rgba(217, 164, 65, .55); min-width: 0; }
.sgb-consejo-tx small { color: #ffd47a; font-weight: 800; letter-spacing: .16em; font-size: clamp(.55rem, 1.3vh, .72rem); }
.sgb-consejo-tx b { color: #e8edf8; font-weight: 600; font-size: clamp(.74rem, 1.9vh, 1rem); line-height: 1.25; }
.sgb-consejo-tx b.is-cambia { animation: sgb-tip .5s ease-out; }
@keyframes sgb-tip { from { opacity: 0; transform: translateY(6px); } }
.sgb-cont .cha-sala { background: rgba(8, 12, 22, .72); }
.sgb-cont .cha-espera-b { margin-top: .2rem; }
.sgb-cancelar { padding: .6rem 2.4rem; border-radius: 12px; border: 1.5px solid #d9a441; background: rgba(8, 12, 22, .72); color: #fff; font-weight: 700; }
.sgb-cancelar:hover { background: rgba(217, 164, 65, .18); }
.sgb-pie { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: .9rem; padding: .3rem 1rem clamp(8px, 2vh, 20px); }
.sgb-pie img { height: clamp(16px, 3.4vh, 30px); width: auto; }
.sgb-pie b { color: #ffd47a; font-weight: 600; letter-spacing: .34em; font-size: clamp(.6rem, 1.5vh, .78rem); text-transform: uppercase; }
.sgb-pie i { flex: 0 1 clamp(40px, 12vw, 190px); height: 1px; background: linear-gradient(90deg, transparent, #d9a441); }
.sgb-pie i:last-child { background: linear-gradient(270deg, transparent, #d9a441); }

@media (max-width: 680px) {
  .sgb-vs { grid-template-columns: auto auto auto; gap: .2rem; }
  .sgb-card { --w: clamp(112px, 26vw, 200px); }
  .sgb-medio { min-width: 70px; }
  .sgb-medio .cha-seg { display: none; }
  .sgb-pie i { display: none; }
}
@media (max-height: 520px) {
  .sgb-top { padding-top: 6px; } .sgb-logo { height: 20px; }
  .sgb-sub, .sgb-cont .cha-bote { display: none; }
  .sgb-cont { gap: .15rem; } .sgb-cont h2 { font-size: 1.5rem; }
  .sgb-card { --w: clamp(104px, 36vh, 170px); }
  .sgb-consejo { min-height: 36px; padding-block: .1rem; } .sgb-consejo-ico { width: 26px; }
  .sgb-cancelar { padding: .3rem 1.4rem; font-size: .8rem; }
  .sgb-pie { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sgb-foco, .sgb-card, .sgb-vsimg, .sgb-puntos i, .sgb-consejo-tx b.is-cambia { animation: none !important; } }

/* ══ La TIENDA de fichas, como la propuesta del diseñador (2026-10-21) ═════════════════════════════════════
   Estadio de fondo; a la izquierda «TU EQUIPO» sobre su podio y, a la derecha, las cinco mejoras en tarjetas con marco dorado: icono de
   su color, nivel, barra, lo que vale ahora → lo que valdrá (+n %) y un botón ancho con el precio y MEJORAR. Cada tarjeta tiene el color de su barra. */
.sgt { position: relative; overflow: hidden; height: 100%; min-height: 100dvh; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
.sgt > .cha-barra, .sgt > .cha-sub, .sgt-cuerpo { position: relative; z-index: 2; }
.sgt-saldo { font-size: 1.05rem; padding: .35rem .9rem; }
.sgt-saldo svg { width: 20px; height: 20px; color: #ffd23a; }
.sgt-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: clamp(.6rem, 1.6vw, 1.2rem); padding: .4rem clamp(.8rem, 2.4vw, 2rem) 1rem; overflow: auto; align-items: start; }
.sgt-equipo, .sgt-card {
  position: relative; border-radius: 14px; border: 2px solid #c8923a;
  background: radial-gradient(ellipse at 50% 0, rgba(60, 70, 110, .35), transparent 60%), linear-gradient(180deg, #0c1322, #070b15);
  box-shadow: 0 0 0 1px #4a3410, 0 0 0 4px rgba(0, 0, 0, .35), 0 10px 26px rgba(0, 0, 0, .6), inset 0 0 18px rgba(255, 190, 80, .07);
}
.sgt-equipo::before, .sgt-equipo::after, .sgt-card::before, .sgt-card::after {         /* las esquinas doradas */
  content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 3;
  border: 3.5px solid #ffd878; filter: drop-shadow(0 0 4px rgba(255, 200, 80, .6));
}
.sgt-equipo::before, .sgt-card::before { left: -5px; top: -5px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.sgt-equipo::after, .sgt-card::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.sgt-equipo { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .9rem .6rem 1rem; text-align: center; position: sticky; top: 0; }
.sgt-tag { padding: .25rem 1.3rem; border-radius: 999px; background: linear-gradient(180deg, #ffd23a, #d89a12); color: #1a1305; font-weight: 900; font-size: .78rem; letter-spacing: .06em; box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
.sgt-pila { width: 100%; height: auto; max-height: 34vh; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); }
.sgt-equipo b { color: #ffd23a; font-size: 1.5rem; font-weight: 900; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.sgt-equipo small { color: #c4cbdc; font-size: .8rem; line-height: 1.3; }
.sgt-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: clamp(.6rem, 1.4vw, 1.1rem); }
.sgt-card { --ac: #ffc23a; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; padding: .85rem .9rem .8rem; transition: transform .2s, box-shadow .2s; }
.sgt-card::before { }
.sgt-b-fuerza { --ac: #ffc23a; } .sgt-b-efecto { --ac: #b46bff; } .sgt-b-movilidad { --ac: #2fe0f0; } .sgt-b-peso { --ac: #4f8dff; } .sgt-b-punteria { --ac: #ff7a2f; }
.sgt-card { box-shadow: 0 0 0 1px #4a3410, 0 0 0 4px rgba(0, 0, 0, .35), 0 10px 26px rgba(0, 0, 0, .6), inset 0 14px 26px -18px var(--ac); }
.sgt-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #4a3410, 0 0 0 4px rgba(0, 0, 0, .35), 0 14px 30px rgba(0, 0, 0, .6), 0 0 22px -4px var(--ac), inset 0 14px 26px -18px var(--ac); }
.sgt-card.is-max { border-color: #6dff8a; }
.sgt-card.is-sube { animation: sgt-sube .8s ease-out; }
@keyframes sgt-sube { 0% { box-shadow: 0 0 0 0 var(--ac); } 40% { transform: scale(1.03); box-shadow: 0 0 40px 8px var(--ac); } 100% { transform: none; } }
.sgt-cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .7rem; }
.sgt-ico { width: clamp(46px, 5.2vw, 64px); height: auto; aspect-ratio: 1; border-radius: 16px; object-fit: cover; clip-path: inset(7% round 14px); transform: scale(1.12); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .55)); }
.sgt-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.18; padding-top: .1rem; }
.sgt-tx b { color: #fff; font-size: clamp(.95rem, 1.5vw, 1.2rem); font-weight: 800; }
.sgt-tx small { color: #aab4cc; font-size: clamp(.66rem, .95vw, .78rem); line-height: 1.25; }
.sgt-niv { font-style: normal; font-weight: 800; font-size: .72rem; color: #ffe27a; padding: .18rem .6rem; border: 1.5px solid #c8923a; border-radius: 999px; white-space: nowrap; background: rgba(0, 0, 0, .45); }
.sgt-card .cha-t-seg { gap: 3px; padding: 3px; background: rgba(0, 0, 0, .6); border-radius: 5px; }
.sgt-card .cha-t-seg i { height: 11px; border-radius: 2px; background: #1a2238; }
.sgt-card .cha-t-seg i.on { background: linear-gradient(180deg, #ffe27a, #e0a020); box-shadow: 0 0 8px rgba(255, 200, 60, .6); }
.sgt-fila { display: flex; align-items: center; gap: .55rem; min-height: 2.2rem; }
.sgt-ahora { color: #fff; font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 800; }
.sgt-flecha { color: #aab4cc; font-size: 1.15rem; }
.sgt-sig { color: #34e8a0; font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 800; }
.sgt-mas { margin-left: auto; padding: .2rem .7rem; border-radius: 8px; border: 1.5px solid #c8923a; background: rgba(0, 0, 0, .5); color: #ffe27a; font-weight: 800; font-size: .85rem; }
.sgt-btn {
  display: flex; align-items: center; justify-content: center; gap: 0; width: 100%; min-height: 44px; padding: 0; border-radius: 9px; border: 0; cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, #ffe07a 0%, #f0b32a 52%, #d89412 100%); color: #1a1305; box-shadow: 0 3px 0 #8a5d0a, 0 6px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.sgt-precio { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; flex: 0 0 38%; padding: 0 .6rem; border-right: 1.5px solid rgba(90, 60, 8, .45); }
.sgt-precio svg { width: 20px; height: 20px; stroke-width: 2.2; }
.sgt-precio b { font-size: 1.2rem; font-weight: 900; }
.sgt-mej { flex: 1; font-weight: 900; font-size: 1.02rem; letter-spacing: .04em; }
.sgt-btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.sgt-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #8a5d0a; }
.sgt-btn:disabled { cursor: not-allowed; background: linear-gradient(180deg, #4a5160, #353b47); color: #aeb6c4; box-shadow: none; }
.sgt-btn.is-falta { opacity: .85; }
@media (max-width: 1100px) { .sgt-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sgt-cuerpo { grid-template-columns: 1fr; } .sgt-equipo { display: none; } .sgt-lista { grid-template-columns: 1fr; } }
@media (max-height: 520px) {
  .sgt-cuerpo { grid-template-columns: 1fr; padding-top: .1rem; } .sgt-equipo { display: none; }
  .sgt-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .sgt-card { padding: .4rem .5rem; gap: .25rem; } .sgt-tx small { display: none; } .sgt-ico { width: 32px; }
  .sgt-card .cha-t-seg i { height: 7px; } .sgt-fila { min-height: 1.5rem; } .sgt-ahora, .sgt-sig { font-size: .85rem; } .sgt-mas { font-size: .65rem; padding: .05rem .4rem; }
  .sgt-btn { min-height: 30px; } .sgt-precio b { font-size: .9rem; } .sgt-mej { font-size: .72rem; } .sgt-niv { font-size: .6rem; padding: .08rem .4rem; }
}
@media (prefers-reduced-motion: reduce) { .sgt-card, .sgt-card.is-sube { animation: none; transition: none; } }

/* El botón «Tienda» del menú y las monedas (2026-10-21) */
.cha-chip-mo { background: rgba(255, 210, 58, .14); border: 1px solid rgba(255, 210, 58, .55); color: #ffe27a; }
.cha-chip-mo svg { color: #ffd23a; }
#cha-menu .cha-cta-tienda { border: 1.5px solid #d9a441; background: linear-gradient(90deg, rgba(60, 44, 8, .92), rgba(24, 18, 4, .9)); }
#cha-menu .cha-cta-par { grid-template-columns: minmax(0, 1fr); }
@media (max-height: 520px) { #cha-menu .cha-cta-par { grid-template-columns: repeat(2, minmax(0, 1fr)); } }          /* celular acostado: Tienda y Torneos comparten renglón para que el menú siga cabiendo sin scroll */
#cha-menu .cha-cta-tienda .cha-cta-ico { display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe27a, #d89a12 70%) !important; color: #1a1305; box-shadow: 0 0 16px rgba(255, 200, 60, .5); }
#cha-menu .cha-cta-tienda .cha-cta-ico svg { width: 55%; height: 55%; stroke-width: 2.1; }

/* ══ La presentación del duelo: las CARDS del diseñador (2026-10-21) ═══════════════════════════════════════
   Marco azul (tú) y rojo (el rival) con su ventana para el avatar, el nombre y el nivel debajo y la píldora «TÚ». Solo las cards: lo demás de la
   presentación sigue igual. */
.sgp-card { --w: clamp(130px, 38vh, 250px); position: relative; width: var(--w); aspect-ratio: 434 / 526; padding: 0; gap: 0; justify-content: flex-start; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .6)); }
.sgp-marco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sgp-foto { position: absolute; z-index: 1; left: 6.6%; right: 6.6%; top: 4.4%; height: 62%; display: grid; place-items: center; overflow: hidden;
  clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%, 0 8%); background: #050b18; }
.sgp-ro .sgp-foto { background: radial-gradient(circle at 50% 40%, #3a0a12, #14040a); }
.sgp-foto .cha-av { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; font-size: clamp(2rem, 8vh, 4rem); background: transparent; }
.sgp-foto .cha-av img { width: 100%; height: 100%; object-fit: cover; }
.sgp-card > b { position: absolute; z-index: 2; left: 8%; right: 8%; top: 70%; font-size: clamp(.95rem, 3.1vh, 1.55rem); font-weight: 800; color: #fff; text-shadow: 0 2px 8px #000; }
.sgp-card > small { position: absolute; z-index: 2; left: 0; right: 0; top: 82.5%; color: #ffc54a; letter-spacing: .1em; font-size: clamp(.6rem, 1.7vh, .85rem); text-transform: uppercase; }
.sgp-pill { position: absolute; z-index: 2; left: 50%; bottom: 3.4%; transform: translateX(-50%); min-width: 34%; padding: .02rem .6rem; text-align: center; font-weight: 900; letter-spacing: .08em; color: #fff; font-size: clamp(.62rem, 1.8vh, .9rem); text-shadow: 0 1px 3px #000; }
@media (max-height: 520px) { .sgp-card { --w: clamp(100px, 40vh, 170px); } }
.cha-pres-c { width: min(920px, 100%); gap: 1.4rem; }
.cha-pres-mid { min-width: 13rem; max-width: 16rem; }
.cha-pres-mid small { line-height: 1.35; }
.cha-pres-der .sgp-pill { display: none; }

/* Elegir con qué fichas se juega en un estadio temático: las del estadio o las de siempre, cada una con su ficha de muestra. */
.sge-fichas { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.sge-fichas[hidden] { display: none; }
.sge-fichas-q { margin: 0; color: #f3e6bd; font-weight: 600; font-size: .9rem; }
.sge-fichas-op { display: flex; gap: .6rem; }
.sge-fichas-op button { appearance: none; display: flex; align-items: center; gap: .6rem; text-align: left; cursor: pointer; font-family: inherit; color: #f3e6bd; background: rgba(8,12,20,.7); border: 2px solid rgba(217,173,71,.3); border-radius: 14px; padding: .4rem .9rem .4rem .5rem; min-height: 56px; opacity: .75; }
.sge-fichas-op button span { display: flex; flex-direction: column; gap: .15rem; }
.sge-fichas-op button b { font-size: .9rem; }
.sge-fichas-op button small { font-size: .72rem; opacity: .8; }
.sge-fichas-op button.is-on { opacity: 1; border-color: #f0c75a; background: rgba(60,44,10,.85); box-shadow: 0 0 14px rgba(240,199,90,.35); }
.sge-fichas-op button.is-on b::after { content: " ✓"; color: #f0c75a; }
.sge-fch { flex: none; width: 44px; height: 44px; background-size: 500% 400%; background-position: 25% 33.333%; background-repeat: no-repeat; }
@media (max-width: 480px) { .sge-fichas-op { flex-direction: column; } }

/* Dónde juega cada quien: bandera y ciudad o país, en el menú, la búsqueda y la presentación. */
.sgl-lug { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: #e8eef7; margin-top: .25rem; }
.sgl-lug[hidden] { display: none; }
.sgl-ban { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.sgl-lug em { font-style: normal; }
.sgl-lug-btn { appearance: none; background: transparent; border: 0; padding: .15rem .3rem; border-radius: 8px; cursor: pointer; font-family: inherit; }
.sgl-lug-btn:hover, .sgl-lug-btn:focus-visible { background: rgba(255,255,255,.12); }
.sgl-lug-btn em { text-decoration: underline; text-underline-offset: 3px; }
.sgl-caja { display: flex; flex-direction: column; gap: .8rem; max-width: 420px; }
.sgl-campo { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .85rem; color: #f3e6bd; }
.sgl-campo[hidden] { display: none; }
.sgl-campo select { font: inherit; font-size: 1rem; padding: .7rem .8rem; border-radius: 10px; border: 1px solid rgba(217,173,71,.5); background: #0b1220; color: #fff; min-height: 46px; }
.cha-pres-j .sgl-lug { position: absolute; top: 8%; left: 50%; transform: translateX(-50%); margin: 0; padding: .2rem .6rem; border-radius: 999px; background: rgba(4, 8, 16, .78); white-space: nowrap; }

/* El modal de la ciudad: campo, «mi ubicación», mapa con marcador. */
.sgl-input { font: inherit; font-size: 1rem; padding: .7rem .8rem; border-radius: 10px; border: 1px solid rgba(217,173,71,.5); background: #0b1220; color: #fff; min-height: 46px; width: 100%; box-sizing: border-box; }
.sgl-gps { align-self: flex-start; }
.sgl-mapa { width: 100%; height: 190px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.sgl-mapa[hidden], .sgl-gps[hidden] { display: none; }
.sgl-est { min-height: 1.2em; font-size: .82rem; color: #f3e6bd; }
.sgl-est.is-ok { color: #6ee7a8; font-weight: 700; }

/* La bandera y el lugar de cada jugador en la barra de la cancha (duelos de ciudades e internacional). */
.cha-nom .sgl-hud { margin-top: .1rem; font-size: .72rem; color: #ffe9a8; max-width: 22vw; }
.cha-nom .sgl-hud .sgl-ban { width: 28px; height: 19px; }
.cha-nom .sgl-hud em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cha-lado-1 .sgl-hud { justify-content: flex-end; flex-direction: row-reverse; }
@media (max-height: 480px) { .cha-nom .sgl-hud em { display: none; } .cha-nom .sgl-hud .sgl-ban { width: 24px; height: 16px; } }

/* El icono de ciudad es redondo y más alto que la bandera. */
.sgl-ban.sgl-ico { width: 22px; height: 22px; border-radius: 50%; box-shadow: none; object-fit: contain; }
.cha-nom .sgl-hud .sgl-ban.sgl-ico { width: 28px; height: 28px; }
@media (max-height: 480px) { .cha-nom .sgl-hud .sgl-ban.sgl-ico { width: 24px; height: 24px; } }

/* El duelo internacional se presenta con las banderas GRANDES de cada país y su nombre bien visible. */
.cha-pres[data-bando="mundo"] .cha-pres-j .sgl-lug { top: 6%; padding: .3rem .8rem .3rem .4rem; font-size: .95rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 0 18px rgba(255, 210, 90, .45); border: 1px solid rgba(255, 210, 90, .55); }
.cha-pres[data-bando="mundo"] .cha-pres-j .sgl-ban { width: 44px; height: 30px; border-radius: 4px; }
.cha-pres[data-bando="ciudades"] .cha-pres-j .sgl-lug { top: 6%; font-size: .9rem; font-weight: 800; }

/* ── La presentación del DUELO DE ESTADOS (jugadores de México) ──────────────────────────────────────────────────────────
   Cada tarjeta lleva el paisaje del estado en gris teñido de azul (yo) o rojo (rival), la silueta dorada y el nombre del estado. */
.sgd { --h: clamp(160px, 47vh, 400px); gap: calc(var(--h) * .06); }
.sgd-tit { text-align: center; }
.sgd-tit small { display: inline-flex; align-items: center; gap: .8em; color: #f0c75a; font-weight: 800; letter-spacing: .38em; font-size: calc(var(--h) * .052); text-transform: uppercase; }
.sgd-tit small::before, .sgd-tit small::after { content: ''; width: 2.6em; height: 2px; background: linear-gradient(90deg, transparent, #f0c75a); }
.sgd-tit small::after { transform: scaleX(-1); }
.sgd-tit h2 { margin: .1em 0 0; color: #f8ecd2; font-size: calc(var(--h) * .13); font-weight: 800; letter-spacing: -.01em; text-shadow: 0 3px 14px rgba(0, 0, 0, .7); }
.sgd-fila { display: flex; align-items: center; justify-content: center; gap: calc(var(--h) * .1); }
.sgd-card { --tinte: #2f6bff; --oscuro: #0a1a55; --luz: rgba(60, 130, 255, .55); position: relative; isolation: isolate; width: calc(var(--h) * .98); height: var(--h); flex: none; border-radius: calc(var(--h) * .045);
  border: 2px solid #e0b24a; overflow: hidden; box-shadow: 0 0 calc(var(--h) * .09) var(--luz), 0 10px 30px rgba(0, 0, 0, .6); color: #fff; text-align: center; }
.sgd-ro { --tinte: #e8344a; --oscuro: #4a0612; --luz: rgba(255, 70, 80, .55); }
.sgd-izq, .sgd-card.sgd-az { animation: cha-pres-izq .5s cubic-bezier(.2, .9, .3, 1.15) both; }
.sgd-card.sgd-ro { animation: cha-pres-der .5s cubic-bezier(.2, .9, .3, 1.15) both; }
.sgd-fondo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.15) brightness(.85); }
.sgd-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--tinte); mix-blend-mode: color; }
.sgd-card::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, var(--oscuro) 140%), radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0, 0, 0, .55)); mix-blend-mode: multiply; }
.sgd-cab { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 24%; display: flex; align-items: center; gap: 3%; padding: 0 5% 0 4%;
  background: linear-gradient(90deg, rgba(4, 10, 30, .55), rgba(4, 10, 30, .25)); border-bottom: 1px solid rgba(240, 199, 90, .45); text-align: left; }
.sgd-ro .sgd-cab { background: linear-gradient(90deg, rgba(40, 4, 10, .55), rgba(40, 4, 10, .25)); }
.sgd-mapa { height: 86%; width: auto; max-width: 30%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255, 200, 60, .6)); flex: none; }
.sgd-mapa[hidden] { display: none; }
.sgd-edo { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.05; }
.sgd-edo b { font-size: calc(var(--h) * .095); font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.sgd-edo b.is-l { font-size: calc(var(--h) * .078); }
.sgd-edo b.is-xl { font-size: calc(var(--h) * .062); }
.sgd-edo b.is-xxl { font-size: calc(var(--h) * .05); }
.sgd-edo small { margin-top: .25em; color: #f3dfae; font-size: calc(var(--h) * .042); font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgd-foto { position: absolute; z-index: 3; left: 21%; right: 21%; top: 28%; height: 42%; border-radius: calc(var(--h) * .035); overflow: hidden; border: 2px solid rgba(255, 255, 255, .5); box-shadow: 0 6px 18px rgba(0, 0, 0, .55); display: grid; place-items: center; background: #0a1020; }
.sgd-foto .cha-av { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; background: transparent; font-size: calc(var(--h) * .2); }
.sgd-foto .cha-av img { width: 100%; height: 100%; object-fit: cover; }
.sgd-nom { position: absolute; z-index: 3; left: 6%; right: 6%; top: 71.5%; font-size: calc(var(--h) * .08); line-height: 1.15; font-weight: 800; text-shadow: 0 2px 8px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgd-niv { position: absolute; z-index: 3; left: 0; right: 0; top: 82%; color: #ffc54a; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: calc(var(--h) * .042); line-height: 1.1; }
.sgd-pill { position: absolute; z-index: 3; left: 50%; bottom: 2.5%; transform: translateX(-50%); padding: 0 calc(var(--h) * .07); border-radius: 999px; background: linear-gradient(#ffd75a, #e0a020); color: #3a2400; font-weight: 900; letter-spacing: .08em; font-size: calc(var(--h) * .04); line-height: 1.45; }
.sgd-mid { display: flex; flex-direction: column; align-items: center; gap: calc(var(--h) * .02); min-width: calc(var(--h) * .5); text-align: center; }
.sgd-vs { font-size: calc(var(--h) * .27); font-weight: 900; font-style: italic; line-height: 1; color: #f0c75a; text-shadow: 0 4px 0 rgba(90, 50, 0, .6), 0 0 28px rgba(255, 200, 60, .55); animation: cha-pres-vs .55s .25s cubic-bezier(.2, 1.6, .4, 1) both; }
.sgd-mid p { margin: 0; color: #d6e0ee; font-weight: 700; font-size: calc(var(--h) * .042); line-height: 1.4; }
.sgd-raya { width: 60%; height: 1px; background: rgba(255, 255, 255, .3); margin: calc(var(--h) * .02) 0; }
.sgd-mid small { color: #cdd5e2; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: calc(var(--h) * .036); }
.sgd-cuenta { display: grid; place-items: center; width: calc(var(--h) * .2); height: calc(var(--h) * .2); border-radius: calc(var(--h) * .04); border: 2px solid #e0b24a; background: rgba(8, 14, 28, .8); color: #f0c75a; font-size: calc(var(--h) * .13); font-weight: 900; box-shadow: 0 0 18px rgba(255, 200, 60, .35); }
.sgd-cuenta.is-pop { animation: sgd-pop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sgd-pop { from { transform: scale(1.35); } to { transform: scale(1); } }
@media (max-height: 520px) { .sgd { --h: clamp(130px, 46vh, 400px); } .sgd-tip { display: none; } .sgd-tit h2 { font-size: calc(var(--h) * .12); } }
@media (max-width: 700px) and (orientation: portrait) { .sgd { --h: min(36vh, 56vw); } .sgd-fila { gap: calc(var(--h) * .04); } .sgd-mid { min-width: calc(var(--h) * .34); } .sgd-mid p, .sgd-raya { display: none; } }
@media (prefers-reduced-motion: reduce) { .sgd-card, .sgd-vs, .sgd-cuenta.is-pop { animation-duration: .01s; } }

/* La silueta dorada del estado junto al nombre (duelo de ciudades): sin círculo, con su forma. */
.sgl-ban.sgl-edo { width: auto; max-width: 34px; height: 24px; border-radius: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255, 200, 60, .55)); }
.cha-nom .sgl-hud .sgl-ban.sgl-edo { height: 30px; max-width: 38px; }
@media (max-height: 480px) { .cha-nom .sgl-hud .sgl-ban.sgl-edo { height: 26px; max-width: 32px; } }

/* ══ RESULTADO — el diseño de la victoria (2026-10-22) ══════════════════════════════════════════════════════════════════
   Panel verde con borde dorado: a la izquierda quién ganó (trofeo, «¡Ganaste!», avatares con anillo de oro o plata, bandera y lugar de
   cada quien) y a la derecha lo que se ganó (XP, nivel) y los botones. Piezas recortadas del atlas en assets/game/res/. */
#cha-fin .cha-res.sgr { width: min(960px, 96vw); border: 2px solid #d9a441; border-radius: 30px; background: radial-gradient(ellipse at 20% 0%, #1a4a30, #0d2a1b 70%);
  box-shadow: 0 0 0 1px rgba(255, 210, 90, .25), 0 0 50px rgba(255, 200, 60, .16), 0 26px 70px rgba(0, 0, 0, .7); }
#cha-fin.is-pierde .cha-res.sgr, #cha-fin.is-empata .cha-res.sgr { border-color: #b98f3e; box-shadow: 0 26px 70px rgba(0, 0, 0, .7); }
.sgr .cha-res-izq { padding: 1.1rem 1rem 1rem; gap: .25rem; border-right: 1px solid rgba(130, 200, 160, .28); background: radial-gradient(ellipse at 50% 0%, rgba(255, 210, 90, .14), transparent 62%); }
.sgr .cha-res-der { padding: 1.4rem 1.6rem; gap: .9rem; text-align: center; }
.sgr-tag { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem 1.1rem .3rem .45rem; border-radius: 999px; background: rgba(6, 18, 12, .85); border: 2px solid #c79a3c; color: #f6e7b6; }
.sgr-tag[hidden] { display: none; }
.sgr-tag img { width: 30px; height: 30px; object-fit: contain; }
.sgr-tag img[hidden] { display: none; }
.sgr-tag b { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sgr-hero { display: block; line-height: 0; margin-top: .1rem; }
.sgr-hero[hidden] { display: none; }
.sgr-hero img { height: clamp(66px, 13vh, 112px); width: auto; filter: drop-shadow(0 0 16px rgba(255, 200, 60, .5)); animation: cha-res-corona .55s .1s cubic-bezier(.2, 1.5, .4, 1) both; }
.sgr .cha-res-ico { display: none; }
#cha-fin.is-empata .sgr .cha-res-ico:not([hidden]) { display: grid; }
#cha-fin .sgr h2 { line-height: 1; margin: 0; }
.sgr-ganaste { display: block; height: clamp(44px, 9.5vh, 80px); width: auto; margin: 0 auto; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .4)); }
#cha-fin.is-pierde .sgr h2, #cha-fin.is-empata .sgr h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.sgr-sub2 { margin: .15rem 0 0; color: #f3efe0; font-weight: 700; font-size: clamp(.9rem, 2.1vw, 1.2rem); text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.sgr-sub2[hidden], .sgr-msg[hidden], .sgr-pie[hidden] { display: none; }
#cha-fin .sgr .cha-fin-vs { margin-top: .6rem; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .3rem; align-items: start; }
.sgr .cha-vs-j { gap: .15rem; min-width: 0; }
.sgr-av { --av: clamp(84px, 17vh, 128px); position: relative; width: var(--av); height: var(--av); margin: 0 auto; }
.sgr-av .cha-av { position: absolute; inset: 9%; width: 82%; height: 82%; border: 0; border-radius: 50%; box-shadow: none; overflow: hidden; font-size: 2.2rem; }
.sgr-av .cha-av img { width: 100%; height: 100%; object-fit: cover; }
.sgr-anillo { position: absolute; inset: -7%; width: 114%; height: 114%; max-width: none; pointer-events: none; }
.sgr .cha-corona.sgr-corona { position: absolute; top: -26%; left: 50%; width: 36% !important; height: auto !important; transform: translateX(-50%) rotate(-6deg); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.sgr-bandera { position: absolute; left: 50%; bottom: -9%; width: 40%; height: auto; transform: translateX(-50%); border-radius: 6px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 3px 10px rgba(0, 0, 0, .55); z-index: 2; }
.sgr-bandera.is-edo { width: 30%; border-radius: 0; box-shadow: none; filter: drop-shadow(0 0 6px rgba(255, 200, 60, .7)); }
#cha-fin .sgr .cha-vs-j.is-pierde { opacity: 1; filter: none; }
#cha-fin .sgr .cha-vs-j.is-pierde .sgr-av { filter: saturate(.8); }
.sgr-lugar { margin-top: calc(var(--av) * .22); font-size: clamp(1rem, 2.6vw, 1.55rem); font-weight: 900; letter-spacing: .01em; color: #fff; line-height: 1.05; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
.sgr-ciudad { color: #b7cbe0; font-weight: 600; font-size: clamp(.75rem, 1.8vw, 1.05rem); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sgr-jug { font-style: normal; font-weight: 800; font-size: clamp(.85rem, 2vw, 1.15rem); color: #fff; margin-top: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#cha-fin .sgr .cha-vs-score { margin-top: calc(var(--av, 110px) * .2); color: #fff; font-size: clamp(2.4rem, 7vw, 4.4rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.sgr .cha-fin-s { text-transform: uppercase; letter-spacing: .12em; font-size: .88rem; color: #a9c0d6; font-weight: 600; }
.sgr-msg { margin: 0; font-size: clamp(1.25rem, 3vw, 1.9rem); font-weight: 800; color: #f2efe3; line-height: 1.15; }
#cha-fin .sgr .cha-fin-chips { justify-content: center; }
#cha-fin .sgr .cha-chip-xp { padding: .45rem 1.8rem; font-size: clamp(1.1rem, 2.6vw, 1.6rem); font-weight: 800; color: #fff; border: 2px solid #2f7bff; border-radius: 999px; background: linear-gradient(180deg, #0f4690, #0a2d63); box-shadow: 0 0 18px rgba(47, 123, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .2); }
#cha-fin .sgr .cha-chip-xp svg { color: #6fc8ff; width: 1.2em; height: 1.2em; }
.sgr .cha-res-xp { text-align: left; gap: .5rem; }
.sgr .cha-res-xp-t b { font-size: 1.15rem; font-weight: 800; }
.sgr .cha-res-xp-t span { font-size: .95rem; color: #b7cbe0; }
.sgr .cha-res-barra { height: 16px; background: #2b3b38; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.sgr .cha-res-barra i { background: linear-gradient(90deg, #14a8ff, #4fe0ff); box-shadow: 0 0 10px rgba(80, 210, 255, .6); }
.sgr .cha-fin-b { flex-wrap: nowrap; gap: .8rem; margin-top: .3rem; }
.sgr .cha-fin-b .cha-btn { flex: 1; min-height: 56px; font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 800; border-radius: 16px; }
.sgr .cha-btn-pri { background: linear-gradient(180deg, #ffd55a, #f0ac1c); color: #2b1a00; border: 0; box-shadow: 0 4px 0 #a8700a, 0 8px 18px rgba(0, 0, 0, .4); flex: 1.35; }
.sgr .cha-btn-suave { background: linear-gradient(180deg, #153b2b, #0e2a1f); color: #fff; border: 1px solid rgba(120, 200, 160, .35); }
.sgr-pie { display: flex; align-items: center; gap: .8rem; margin: .1rem 0 0; color: #bcd0e0; font-size: .95rem; }
.sgr-pie::before, .sgr-pie::after { content: ''; flex: 1; height: 1px; background: rgba(190, 210, 230, .3); }
@media (max-width: 720px) and (orientation: portrait) { #cha-fin .cha-res.sgr { grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; } .sgr .cha-res-izq { border-right: 0; border-bottom: 1px solid rgba(130, 200, 160, .28); } }
@media (max-height: 520px) {
  .sgr .cha-res-izq { padding: .5rem .6rem; gap: .1rem; } .sgr .cha-res-der { padding: .6rem 1rem; gap: .45rem; }
  .sgr-hero { display: none; } .sgr-tag { padding: .15rem .7rem .15rem .3rem; } .sgr-tag img { width: 22px; height: 22px; } .sgr-tag b { font-size: .68rem; }
  .sgr-ganaste { height: 38px; } .sgr-sub2 { font-size: .8rem; margin: 0; }
  .sgr-av { --av: 74px; } .sgr-ciudad { display: none; } .sgr-lugar { font-size: .85rem; } .sgr-jug { font-size: .75rem; margin-top: 0; }
  #cha-fin .sgr .cha-fin-vs { margin-top: .3rem; } #cha-fin .sgr .cha-vs-score { font-size: 2rem; }
  .sgr-msg { font-size: 1.05rem; } .sgr .cha-fin-s { font-size: .7rem; } .sgr .cha-fin-b .cha-btn { min-height: 40px; font-size: .95rem; } .sgr-pie { font-size: .72rem; } .sgr .cha-res-barra { height: 10px; }
  #cha-fin .sgr .cha-chip-xp { padding: .2rem 1rem; font-size: .95rem; }
}
.sgr-bandera.is-edo { width: 28%; bottom: -14%; }
.sgr-av:has(.is-edo) + .sgr-lugar { margin-top: calc(var(--av) * .3); }
@media (max-height: 520px) { .sgr-lugar { margin-top: 14px; } .sgr-av:has(.is-edo) + .sgr-lugar { margin-top: 20px; } }

/* ══ LABORATORIO (prototipo, solo admin) ═══════════════════════════════════════════════════════════════════════════════ */
#cha-menu .cha-cta-lab { border: 1.5px dashed #9b7bff; background: linear-gradient(90deg, rgba(40, 24, 90, .9), rgba(16, 10, 40, .9)); }
#cha-menu .cha-cta-lab .cha-cta-ico { display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #c7b3ff, #6a43d8 70%) !important; color: #190a45; }
#cha-menu .cha-cta-lab .cha-cta-ico svg { width: 55%; height: 55%; }
.cha-lab { position: absolute; z-index: 6; left: 50%; top: calc(var(--cha-hud, 54px) + 6px); transform: translateX(-50%); display: flex; align-items: center; gap: .9rem; padding: .25rem 1rem; border-radius: 999px;
  background: rgba(8, 12, 30, .82); border: 1px solid rgba(155, 123, 255, .6); color: #e6dcff; font-weight: 800; font-size: .95rem; letter-spacing: .04em; pointer-events: none; font-variant-numeric: tabular-nums; }
.cha-lab[hidden] { display: none; }
.cha-lab.is-urge { border-color: #ff6a6a; color: #ffb3b3; }
.cha-lab-fila { display: inline-flex; gap: .25rem; }
.cha-lab-fila i { width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); }
.cha-lab-fila i.is-gol { background: #3ddc84; border-color: #3ddc84; }
.cha-lab-fila i.is-fallo { background: #ff5a6a; border-color: #ff5a6a; }
.cha-lab-fila-1 { margin-left: .2rem; }
.cha-labm { gap: .5rem; text-align: center; }
.cha-labm small { color: #c7b3ff; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(.8rem, 2.4vh, 1.1rem); }
.cha-labm h2 { margin: 0; font-size: clamp(2rem, 9vh, 4.4rem); font-weight: 900; color: #fff3b0; text-shadow: 0 4px 18px rgba(0, 0, 0, .7); }
.cha-labm-m { font-size: clamp(2.6rem, 12vh, 6rem); font-weight: 900; color: #fff; line-height: 1; }
.cha-labm p { margin: 0; color: #cfe0f5; font-size: clamp(.9rem, 2.6vh, 1.3rem); }
.cha-labm-c { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .8rem; border: 2px solid #e0b24a; background: rgba(8, 14, 28, .8); color: #f0c75a; font-style: normal; font-size: 1.6rem; font-weight: 900; }

.cha-lab-caja { display: flex; flex-direction: column; gap: .7rem; max-width: 460px; }
.cha-lab-op { appearance: none; text-align: left; cursor: pointer; font-family: inherit; color: #fff; display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1.1rem; border-radius: 14px; border: 1.5px dashed #9b7bff; background: rgba(40, 24, 90, .55); }
.cha-lab-op b { font-size: 1.05rem; } .cha-lab-op small { color: #cdbfff; font-size: .82rem; }
.cha-lab-op:hover, .cha-lab-op:focus-visible { background: rgba(70, 44, 150, .75); outline: none; border-style: solid; }

/* ── Laboratorio: «Estadio con porteros» — elegir el nivel (2026-10-25) ─────────────────────────────────────────── */
.cha-lab-niv[hidden] { display: none; }
.cha-lab-niv { display: flex; flex-direction: column; gap: .8rem; }
.cha-lab-niv-t { margin: 0; color: #fff; font-weight: 800; font-size: 1.15rem; }
.cha-lab-niv-g { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.cha-lab-n { appearance: none; cursor: pointer; font-family: inherit; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 4.4rem; padding: .4rem .2rem; border-radius: 14px; border: 1.5px dashed #9b7bff; background: rgba(40, 24, 90, .55); }
.cha-lab-n b { font-size: 1.7rem; line-height: 1; }
.cha-lab-n small { color: #cdbfff; font-size: .7rem; line-height: 1.15; text-align: center; }
.cha-lab-n:hover, .cha-lab-n:focus-visible { background: rgba(70, 44, 150, .75); outline: none; border-style: solid; }
.cha-lab-atras { appearance: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 1rem; color: #fff; padding: .7rem 1rem; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; }
.cha-lab-atras:hover, .cha-lab-atras:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
@media (max-width: 480px) { .cha-lab-niv-g { grid-template-columns: repeat(2, 1fr); } .cha-lab-n { flex-direction: row; gap: .6rem; min-height: 3.4rem; } }

/* ══ Las pantallas de CARGA y de ENTRADA (diseño del dueño, 2026-11-01) ══════════════════════════════════════════════════════════════
   Una sola pieza —`#cha-carga`— que tapa el juego mientras carga.js baja y decodifica las interfaces (y, a media sesión, mientras una partida espera su
   estadio y a sus jugadores) y después pide el toque de entrada a pantalla completa. El fondo es la escena del diseñador (assets/game/carga/fondo.webp, hecha por
   app/bin/carga_recortes.php: estadio, logo SuperGolex, ficha y balón, sin los textos pintados) con el MISMO parallax del menú (js/menu.js escribe --px y --py): el
   fondo, las luces y la interfaz se mueven distinto. Lo de encima (título, barra, botones, pie) es HTML: se traduce y se mueve. Mientras el arte no está entero la pantalla
   es verde liso con la barra; el arte aparece de una vez (`is-arte`). Si carga.js no corriera, `data-arranque` la retira sola a los 25 s. */
.sgl-carga { position: fixed; inset: 0; z-index: 4500; overflow: hidden; color: #fff; text-align: center;   /* por encima del juego (.cha: 4000) y por debajo de los avisos (5000) */
  background: radial-gradient(120% 90% at 50% 38%, #0d3a1c 0%, #04140a 62%, #020a05 100%); transition: opacity .35s ease, visibility .35s; }
.sgl-carga[hidden] { display: none; }
.sgl-carga.is-fuera { opacity: 0; visibility: hidden; pointer-events: none; }
.sgl-carga[data-arranque] { animation: sgl-salva .01s linear 25s forwards; }
@keyframes sgl-salva { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* NADA SE VE A PEDAZOS: el arte, el nombre, la barra, los textos y el pie están ocultos y aparecen JUNTOS (`is-arte`) cuando el fondo, las luces y las fuentes están enteros;
   mientras tanto, solo el verde liso. Si tardan más de 4 s (internet muy lenta) sale lo que haya, con el nombre en letras (`is-sin-arte`). Sin JS, el CSS lo enseña a los 6 s. */
.sgl-carga .sgm-px, .sgl-carga .sgl-centro, .sgl-carga .sgl-pie, .sgl-carga .sgl-marca { opacity: 0; transition: opacity .4s ease; }
.sgl-carga.is-arte .sgm-px, .sgl-carga.is-arte .sgl-centro, .sgl-carga.is-arte .sgl-pie,
.sgl-carga.is-sin-arte .sgl-centro, .sgl-carga.is-sin-arte .sgl-pie, .sgl-carga.is-sin-arte:not(.is-arte) .sgl-marca { opacity: 1; }
.sgl-carga[data-arranque] .sgl-centro, .sgl-carga[data-arranque] .sgl-pie, .sgl-carga[data-arranque] .sgl-marca { animation: sgl-aparece .3s 6s forwards; }
.sgl-carga .sgm-fondo img { position: absolute; inset: 0; }
.sgl-atras { filter: blur(16px) brightness(.55) saturate(1.15); transform: scale(1.12); }          /* relleno cuando la pantalla es más angosta que la escena */
/* El encuadre de la escena según la proporción de la pantalla: la escena mide 1024 × 690 (1,48 : 1). Su borde se funde con el relleno borroso (máscara) para no marcar
   un recuadro. (El selector es largo a propósito: tiene que ganarle a `.sgm-fondo img` del menú.) */
.sgl-carga .sgm-fondo .sgl-hero { object-fit: cover; object-position: 50% 4%; transform-origin: 50% 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1);
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 76%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); mask-composite: intersect; }
.sgl-carga .sgm-luces img { top: 8%; opacity: .42; }
@media (min-aspect-ratio: 19/10) { .sgl-carga .sgm-fondo .sgl-hero { object-fit: contain; object-position: 50% 0; } }                  /* muy anchas (celular acostado): la escena entera */
@media (max-aspect-ratio: 5/4) { .sgl-carga .sgm-fondo .sgl-hero { inset: auto; top: 5vh; left: -37.5%; width: 175%; height: auto; max-width: none; object-fit: fill; } }      /* verticales: más ancha que la pantalla, el logo cabe */
/* Con la entrada puesta, la escena se achica hacia arriba (como en el diseño) para dejar sitio a los botones. */
.sgl-carga.is-listo .sgm-fondo .sgl-hero { transform: scale(.86); }
@media (max-aspect-ratio: 5/4) { .sgl-carga .sgl-centro { bottom: 20vh; } .sgl-atras { filter: blur(18px) brightness(.42) saturate(1.1); } }          /* verticales: la barra y los botones suben, pegados a la escena */

/* Hasta que llega el arte, el nombre en letras (por si no llega: sin internet). */
.sgl-marca { position: absolute; z-index: 2; left: 0; right: 0; top: 22vh; margin: 0; font-weight: 800; font-size: clamp(2rem, 8vw, 3.4rem); letter-spacing: .02em; color: #ffd56b;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .6), 0 0 28px rgba(217, 173, 71, .35); }
.sgl-marca span { color: #fff; }
.sgl-carga.is-arte .sgl-marca { display: none; }          /* el nombre en letras solo si el arte no llegó */
@keyframes sgl-aparece { to { opacity: 1; } }

/* Lo de encima: título, barra y leyenda; los botones de entrada y el aviso de fallo ocupan el mismo sitio */
.sgl-centro { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(46px, 9vh, 100px); display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 0 1rem;
  transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -4px), 0); }
.sgl-titulo { margin: 0; font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.6rem); text-shadow: 0 2px 12px rgba(0, 0, 0, .85); }
.sgl-fila { display: flex; align-items: center; gap: .8rem; width: min(520px, 88vw); }
.sgl-barra { flex: 1; height: 16px; padding: 2px; box-sizing: border-box; border-radius: 999px; overflow: hidden; background: rgba(2, 10, 5, .78); border: 2px solid #d9ad47;
  box-shadow: 0 0 16px rgba(217, 173, 71, .35), inset 0 2px 5px rgba(0, 0, 0, .6); }
.sgl-barra i { display: block; width: 100%; height: 100%; border-radius: 999px; transform: scaleX(0); transform-origin: left center; transition: transform .2s ease-out;
  background: linear-gradient(180deg, #ffe38a, #f0b429 55%, #c98a14); box-shadow: 0 0 12px rgba(255, 200, 70, .7); }
.sgl-pct { margin: 0; min-width: 3.6ch; text-align: left; font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 2px 8px rgba(0, 0, 0, .85); }
.sgl-sub { margin: 0; font-size: .82rem; color: #cfe0f5; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.sgl-carga.is-listo .sgl-prog { display: none; }

/* El pie «EXCLIVIA» */
.sgl-pie { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 0;
  color: #e0b24a; font-size: .72rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.sgl-pie svg { width: 18px; height: 18px; stroke-width: 1.8; }
.sgl-pie::before, .sgl-pie::after { content: ''; width: clamp(36px, 9vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, #d9ad47); }
.sgl-pie::after { transform: scaleX(-1); }

/* La ENTRADA: el toque que abre la pantalla completa (carga.js, `entrada`) */
.sgl-entrar { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.sgl-entrar[hidden] { display: none; }
.sgl-jugar { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-width: min(380px, 90vw); min-height: 56px; padding: .8rem 1.4rem; font-size: clamp(.98rem, 4.2vw, 1.12rem); white-space: nowrap; animation: sgl-late 1.8s ease-in-out infinite; }
.sgl-jugar svg { width: 1.4em; height: 1.4em; }
@keyframes sgl-late { 50% { transform: scale(1.035); box-shadow: 0 0 34px rgba(255, 200, 70, .85), 0 10px 22px rgba(0, 0, 0, .45); } }
.sgl-ventana { appearance: none; background: none; border: 0; padding: .35rem .8rem; font: inherit; font-size: .95rem; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); cursor: pointer; }
.sgl-ventana:hover, .sgl-ventana:focus-visible { color: #ffd56b; outline: none; }
.sgl-instalar { display: inline-flex; align-items: center; gap: .6rem; min-width: min(300px, 80vw); justify-content: center; }
.sgl-instalar[hidden] { display: none; }
.sgl-instalar svg { width: 1.25em; height: 1.25em; }
.sgl-ios { margin: 0; max-width: 30ch; color: #e8eef7; font-size: .92rem; line-height: 1.35; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.sgl-ios[hidden] { display: none; }

/* Si no se pudo cargar */
.sgl-fallo { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: .3rem; padding: .9rem 1.1rem; border-radius: 14px; background: rgba(4, 12, 7, .78); border: 1px solid rgba(217, 173, 71, .45); }
.sgl-fallo[hidden] { display: none; }
.sgl-fallo p { margin: 0; color: #ffd8d0; font-size: .95rem; max-width: 34ch; }
.sgl-botones { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* Pantallas bajas (celular acostado): todo más compacto */
@media (max-height: 520px) {
  .sgl-centro { bottom: 34px; gap: .3rem; }
  .sgl-titulo { font-size: 1.05rem; }
  .sgl-sub, .sgl-pie { display: none; }
  .sgl-barra { height: 12px; }
  .sgl-jugar { min-height: 44px; padding: .5rem 1.4rem; font-size: 1rem; }
  .sgl-entrar { gap: .3rem; }
  .sgl-instalar { min-height: 36px; padding: .3rem 1rem; }
  .sgl-marca { top: 12vh; }
}
@media (prefers-reduced-motion: reduce) { .sgl-jugar { animation: none; } .sgl-carga, .sgl-hero, .sgl-carga .sgm-px { transition: none; } }
.cha-lab-oro { color: #ffd56b; font-size: .85em; letter-spacing: .06em; text-transform: uppercase; }

/* El marcador de la tanda de penales, chico y debajo del marcador del partido (resultado). */
#cha-fin .cha-vs-score .sgr-pen { display: block; margin-top: .25em; font-size: .36em; font-weight: 800; letter-spacing: .08em; line-height: 1; color: #ffd56b; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }

/* ══ Reloj del partido en la barra, anillo de turno en el avatar y siglas del estado (2026-11-01) ═══════════════════════════════════════ */
/* El reloj del PARTIDO ocupa el lugar del reloj del turno, al centro de la barra: ya no es una tira sobre la cancha. */
.cha-reloj.cha-tiempo { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; padding: .16rem .8rem; letter-spacing: .04em; }
.cha-reloj.cha-tiempo[hidden] { display: none; }
.cha-tiempo small { font-size: .62rem; font-weight: 800; color: #aab4cc; letter-spacing: .12em; }
.cha-tiempo b { font-size: 1rem; font-weight: 800; color: #ffd47a; font-variant-numeric: tabular-nums; }
.cha-tiempo b:empty { display: none; }
.cha-tiempo.is-urge { border-color: #ff4a5c; background: linear-gradient(180deg, #5a0f1a, #2a0710); animation: cha-pulso .5s ease-in-out infinite alternate; }
.cha-tiempo.is-urge b { color: #fff; }
.cha-tiempo.is-oro { border-color: #ffd23a; box-shadow: 0 0 14px rgba(255, 210, 58, .5); }
.cha-tiempo.is-oro small::after { content: ' \2605'; color: #ffd23a; }
.cha-tiempo-pen { display: flex; flex-direction: column; gap: 3px; }
.cha-tiempo-pen:empty { display: none; }
.cha-tiempo-pen .cha-lab-fila { gap: .2rem; }
.cha-tiempo-pen .cha-lab-fila-1 { margin-left: 0; }
.cha-tiempo-pen .cha-lab-fila i { width: .5rem; height: .5rem; border-width: 1.5px; }
.cha-hud.has-tiempo #cha-reloj { display: none; }
@media (prefers-reduced-motion: reduce) { .cha-tiempo.is-urge { animation: none; } }

/* El tiempo de cada jugador: un anillo grueso alrededor de su avatar que se va consumiendo (verde, ámbar a la mitad, rojo en los últimos segundos),
   con los segundos que le quedan en una insignia. Solo lo lleva quien tiene el turno. */
.cha-hud .cha-anillo { position: relative; padding: 4px; background: rgba(255, 255, 255, .12); }
.cha-hud .cha-anillo .cha-av { width: 34px; height: 34px; font-size: 1rem; }
.cha-hud .cha-anillo.is-on { background: conic-gradient(var(--ac) calc(var(--r) * 1turn), rgba(255, 255, 255, .14) 0); box-shadow: 0 0 14px color-mix(in srgb, var(--ac) 65%, transparent); }
.cha-lado.is-turno .cha-anillo .cha-av { box-shadow: none; }
.cha-an-n { display: none; position: absolute; right: -6px; bottom: -6px; z-index: 2; min-width: 1.5em; height: 1.5em; padding: 0 .3em; place-items: center; border-radius: 999px;
  background: #0a1224; border: 2px solid var(--ac); color: #fff; font-size: .62rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cha-anillo.is-on .cha-an-n:not(:empty) { display: grid; }
@media (max-height: 520px) {
  .cha-hud .cha-anillo { padding: 3px; }
  .cha-hud .cha-anillo .cha-av { width: 28px; height: 28px; font-size: .8rem; }
  .cha-an-n { font-size: .55rem; right: -5px; bottom: -5px; }
}

/* Las SIGLAS del estado (JAL, NL, CDMX…) en lugar de su mapa: junto al nombre de cada jugador, en la tarjeta del duelo de estados y en el resultado. */
.sgl-sig { display: inline-grid; place-items: center; padding: .1rem .5rem; border-radius: 6px; border: 1.5px solid #e0b24a; background: rgba(8, 14, 26, .78); color: #ffd56b;
  font-size: .72em; font-weight: 800; letter-spacing: .06em; line-height: 1.1; text-shadow: 0 0 8px rgba(255, 200, 60, .45); }
.cha-nom .sgl-hud .sgl-sig { font-size: .78rem; }
.sgd-sig { flex: none; display: grid; place-items: center; height: 78%; min-width: 26%; padding: 0 .5em; border-radius: calc(var(--h) * .02); border: 2px solid #f0c75a; background: rgba(4, 10, 30, .55);
  color: #ffd56b; font-size: calc(var(--h) * .105); font-weight: 900; letter-spacing: .04em; line-height: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .8), 0 0 10px rgba(255, 200, 60, .5);
  box-shadow: 0 0 calc(var(--h) * .03) rgba(255, 200, 60, .45), inset 0 0 8px rgba(0, 0, 0, .5); }
.sgd-sig[hidden] { display: none; }
.sgr-sig { position: absolute; left: 50%; bottom: -9%; z-index: 2; transform: translateX(-50%); padding: .1rem .65rem; border-radius: 8px; border: 2px solid #f0c75a; background: rgba(6, 18, 12, .92);
  color: #ffd56b; font-size: calc(var(--av, 110px) * .17); font-weight: 900; letter-spacing: .05em; line-height: 1.15; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .55); }
.sgr-av:has(.sgr-sig) + .sgr-lugar { margin-top: clamp(26px, 5vh, 40px); }          /* (--av no existe en el hermano: se usa un valor propio) */
@media (max-height: 520px) { .sgr-av:has(.sgr-sig) + .sgr-lugar { margin-top: 22px; } .sgr-sig { font-size: .7rem; padding: .05rem .45rem; } }
.sgr-sig-tag { font-style: normal; padding: .1rem .5rem; border-radius: 6px; border: 1.5px solid #e0b24a; color: #ffd56b; font-size: .82rem; font-weight: 900; letter-spacing: .06em; }
.sgr-sig-tag[hidden] { display: none; }



/* ══ La app instalable y la pantalla completa que no se pierde (2026-11-01) ═══════════════════════════════════════════════════════════ */
/* Con el juego a pantalla completa o instalado como app, «Inicio» (que sale a la portada y cierra la pantalla completa) se esconde. */
body.sg-app [data-cha-inicio], body.sg-completa [data-cha-inicio] { display: none !important; }
#cha-menu .cha-barra .cha-herr { margin-left: auto; }
body.sg-app [data-cha-pantalla] { display: none !important; }       /* instalada, la ventana ya es completa */
/* Botón «Instalar app» de la barra del menú: icono y texto, compacto. */
.cha-instalar { display: inline-flex; align-items: center; gap: .45rem; height: 34px; padding: 0 .8rem; border-radius: 9px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.cha-instalar[hidden] { display: none; }
.cha-instalar svg { width: 18px; height: 18px; flex: none; }
@media (max-height: 520px) { .cha-instalar { height: 30px; padding: 0 .55rem; font-size: .72rem; } .cha-instalar span { display: none; } }
/* Lo mismo en la pantalla de entrada. */
.sgl-instalar { display: inline-flex; align-items: center; gap: .5rem; }
.sgl-instalar[hidden] { display: none; }
.sgl-instalar svg { width: 1.2em; height: 1.2em; }
/* La pastilla que sale al volver a cargar la página (la pantalla completa se cierra al salir de la página): el primer toque, donde sea, la abre. */
.sgl-reentrar { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 4400; transform: translateX(-50%); appearance: none; cursor: pointer;
  padding: .55rem 1.2rem; border-radius: 999px; border: 2px solid #e0b24a; background: rgba(6, 18, 12, .92); color: #ffd56b; font: 700 .85rem/1.2 inherit; font-family: inherit; letter-spacing: .02em;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .55), 0 0 18px rgba(217, 173, 71, .35); animation: sgl-late 1.8s ease-in-out infinite; max-width: calc(100vw - 24px); }
@media (prefers-reduced-motion: reduce) { .sgl-reentrar { animation: none; } }
/* El diálogo de acceso (de la portada) dentro del juego: por encima de todo, en el idioma del juego. */
#sg-acceso { z-index: 5200; }

/* ── El VOLADO de moneda (moneda.js, 2026-11-01) ─────────────────────────────────────────────────────────────────────────────────────────
   La moneda es 3D de verdad: diez discos de oro apilados dan el canto y las dos caras van a los lados (`backface-visibility`), así que al girar se ve el grosor.
   Tamaño: `--d` sale de la altura de la pantalla para que el vuelo (más de una vez su diámetro hacia arriba) quepa también en un celular acostado. */
.cha-mon { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: .5rem; color: #fff;
  background: radial-gradient(120% 90% at 50% 38%, rgba(18, 30, 54, .93), rgba(3, 6, 12, .97)); }
.cha-mon[hidden] { display: none; }
.cha-mon.is-on .cha-mon-c { animation: cha-mon-entra .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cha-mon-entra { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.cha-mon-c { --d: clamp(86px, 22vh, 176px); display: grid; justify-items: center; gap: clamp(.15rem, 1.2vh, .6rem); width: min(640px, 100%); text-align: center; }
.cha-mon-k { font-weight: 800; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(.62rem, 1.9vh, .9rem); color: #ffd36b; }
.cha-mon-t { margin: 0; font-size: clamp(1.5rem, 6.4vh, 3rem); font-weight: 900; line-height: 1; color: #fff3b0; text-shadow: 0 4px 18px rgba(0, 0, 0, .7); }
.cha-mon-sub { margin: 0; min-height: 1.3em; font-weight: 700; font-size: clamp(.8rem, 2.5vh, 1.15rem); color: #d3e2f7; }
.cha-mon-escena { position: relative; width: var(--d); height: calc(var(--d) * 2.15); perspective: 900px; margin: 0 auto; }
.cha-mon-sombra { position: absolute; left: 50%; bottom: 0; width: var(--d); height: calc(var(--d) * .2); transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 70%); pointer-events: none; }
.cha-mon-m { position: absolute; left: 0; bottom: calc(var(--d) * .08); width: var(--d); height: var(--d); transform-style: preserve-3d; will-change: transform; }
.cha-mon-m i { position: absolute; inset: 0; border-radius: 50%; display: block; }
.cha-mon-m .cm-g { background: linear-gradient(90deg, #7a560f, #f3cc5a 40%, #fff1b0 52%, #b3801f); }
.cha-mon-m .cm-f, .cha-mon-m .cm-b { background-size: 100% 100%; background-repeat: no-repeat; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 0 6px rgba(255, 200, 70, .35)); }
.cha-mon-m .cm-f { transform: translateZ(4.6px); }
.cha-mon-m .cm-b { transform: rotateX(180deg) translateZ(4.6px); }
.cha-mon-caras { display: flex; gap: clamp(.6rem, 3vw, 1.4rem); justify-content: center; }
.cha-mon-caras[hidden] { display: none; }
.cha-mon-caras button { display: grid; justify-items: center; gap: .25rem; padding: .45rem .9rem .55rem; border-radius: 16px; cursor: pointer; font: inherit; color: #fff;
  background: linear-gradient(180deg, #1b2740, #0d1424); border: 2px solid rgba(255, 210, 100, .45); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); transition: transform .15s, border-color .15s, box-shadow .15s; }
.cha-mon-caras button:hover:not(:disabled), .cha-mon-caras button:focus-visible { transform: translateY(-3px); border-color: #ffd36b; box-shadow: 0 0 22px rgba(255, 200, 70, .5); outline: none; }
.cha-mon-caras button img { width: clamp(44px, 11vh, 84px); height: auto; aspect-ratio: 1; }
.cha-mon-caras button b { font-size: clamp(.8rem, 2.4vh, 1.05rem); letter-spacing: .04em; }
.cha-mon-caras button.is-sel { border-color: #ffd36b; box-shadow: 0 0 26px rgba(255, 200, 70, .65); }
.cha-mon-caras button:disabled:not(.is-sel) { opacity: .45; }
.cha-mon-cuenta { margin: 0; min-height: 1.2em; font-weight: 800; font-size: clamp(.78rem, 2.2vh, 1rem); color: #9fb7d6; letter-spacing: .06em; }
.cha-mon-res { display: grid; gap: .2rem; justify-items: center; animation: cha-mon-res .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.cha-mon-res[hidden] { display: none; }
@keyframes cha-mon-res { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.cha-mon-res b { font-size: clamp(1.3rem, 5.6vh, 2.6rem); font-weight: 900; line-height: 1.05; }
.cha-mon-res span { font-weight: 700; font-size: clamp(.82rem, 2.5vh, 1.2rem); color: #e6eefb; }
.cha-mon-res em { font-style: normal; font-size: clamp(.74rem, 2.1vh, 1rem); color: #bcd0ea; max-width: 34em; }
.cha-mon.is-local .cha-mon-res b { color: #ffd36b; text-shadow: 0 0 22px rgba(255, 200, 70, .6); }
.cha-mon.is-visita .cha-mon-res b { color: #ff7a6b; text-shadow: 0 0 22px rgba(255, 80, 60, .55); }
.cha-mon.is-local { background: radial-gradient(120% 90% at 50% 38%, rgba(60, 46, 10, .9), rgba(3, 6, 12, .97)); }
.cha-mon.is-visita { background: radial-gradient(120% 90% at 50% 38%, rgba(64, 18, 16, .9), rgba(3, 6, 12, .97)); }
@media (max-height: 430px) {
  .cha-mon-c { --d: clamp(70px, 24vh, 110px); gap: .1rem; }
  .cha-mon-escena { height: calc(var(--d) * 1.75); }
  .cha-mon-res em { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cha-mon.is-on .cha-mon-c, .cha-mon-res { animation: none; } }

/* ── El estadio de LOCAL (2026-11-01): el aviso del selector y el botón del menú para cambiarlo ─────────────────────────────────────────── */
.sge-local { margin: 0 auto; max-width: min(640px, 92%); text-align: center; font-weight: 700; font-size: clamp(.78rem, 2.2vh, 1rem); line-height: 1.35; color: #ffe9a8; padding: .35rem .8rem; border-radius: 12px;
  background: rgba(60, 46, 10, .55); border: 1px solid rgba(255, 210, 100, .45); position: relative; z-index: 1; }
.sge-local[hidden] { display: none; }
.cha-local { align-self: center; margin-top: .2rem; padding: .4rem .9rem; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: clamp(.72rem, 2vh, .9rem); color: #ffe9a8;
  background: rgba(8, 14, 28, .72); border: 1px solid rgba(255, 210, 100, .5); }
.cha-local:hover, .cha-local:focus-visible { border-color: #ffd36b; box-shadow: 0 0 16px rgba(255, 200, 70, .4); outline: none; }
.cha-local[hidden] { display: none; }
