/* La Gran Final — base: gráfica de una transmisión deportiva de TV. Teko (titulares, marcador, cifras) y Barlow Semi
   Condensed (lectura), locales (OFL). Marco de teléfono en computadora, marcador de la esquina con los 5 momentos, "EN VIVO"
   con punto que parpadea, cintillos inferiores con barrido, cortinillas entre datos, la gráfica del título, la previa
   (apertura de la transmisión), pista y manita del gesto, "¡cumple!", resumen del partido y vitrina. Todo cuelga de
   html.gf. Por dentro todo se mide contra el marco (.app es un contenedor de tamaño: cqw/cqh), nunca contra la ventana.
   Contraste ≥ 4.5:1: blanco y gris claro sobre azul noche, azul noche sobre oro, la tinta del equipo la elige main.js. */
.gf {
  --noche: #060B18; --navy: #0A1226; --navy-2: #111C38; --navy-3: #1A2850; --linea: #2A3A66;
  --oro: #FFC83D; --oro-2: #FFE07A; --oro-osc: #8A6300; --vivo: #E3122B; --gris: #B9C4DA; --blanco: #FFFFFF; --wa: #25D366;
  --equipo: #D62828; --equipo-tinta: #FFFFFF; --equipo-2: #FFFFFF;
  --panel: rgba(8, 14, 32, .94);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --f-tv: "Teko", "Arial Narrow", system-ui, sans-serif; --f-texto: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --sesgo: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.gf *, .gf *::before, .gf *::after { box-sizing: border-box; }
.gf body { margin: 0; font-family: var(--f-texto); color: var(--blanco); overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
.gf button { font: inherit; color: inherit; }
.gf :focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; box-shadow: 0 0 0 6px var(--navy); }
.gf .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gf .noscript { margin: 24px; font: 600 18px/1.5 var(--f-texto); color: var(--navy); background: #F4F6FA; padding: 16px; border-radius: 8px; }

/* ---------- marco ---------- */
.gf .fondo { position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(40% 30% at 18% 8%, rgba(255, 244, 220, .35), transparent 70%), radial-gradient(40% 30% at 82% 8%, rgba(255, 244, 220, .35), transparent 70%),
  radial-gradient(70% 40% at 50% 100%, rgba(63, 160, 70, .55), transparent 70%),
  linear-gradient(180deg, #060B18 0%, #101B38 45%, #1B2642 62%, #23432A 82%, #1C3A22 100%); }
.gf .fondo::before { content: ""; position: absolute; left: 0; right: 0; top: 34%; height: 30%; background: repeating-linear-gradient(90deg, rgba(214, 40, 40, .55) 0 6px, rgba(255, 255, 255, .4) 6px 9px, rgba(20, 30, 60, .6) 9px 14px); filter: blur(10px); opacity: .55; }
.gf .app { position: fixed; inset: 0; z-index: 1; overflow: hidden; isolation: isolate; container-type: size; container-name: marco; background: var(--noche); transition: opacity .5s ease; }
/* computadora y tableta: el mismo marco de teléfono que los demás diseños, con la escena difuminada alrededor */
@media (min-width: 560px) and (min-height: 560px) {
  .gf .app { inset: auto; left: 50%; top: 50%; width: min(430px, 100vw - 32px); height: min(932px, 100dvh - 40px); transform: translate(-50%, -50%); border-radius: 36px;
    box-shadow: 0 0 0 3px #2A3550, 0 0 0 8px #0A1020, 0 0 0 10px var(--oro), 0 30px 90px rgba(0, 0, 0, .6); }
}
.gf:not(.is-showcase) .fondo { filter: blur(6px); }
.gf.is-showcase .fondo { display: none; }
.gf.is-showcase .app { inset: 0 !important; width: auto !important; height: auto !important; transform: none !important; border-radius: 0 !important; box-shadow: none !important; }
.gf .stage { position: absolute; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gf .gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.gf .gl.is-on { opacity: 1; }
/* viñeta de cámara (fija: no cuesta nada al dibujar) */
.gf .vineta { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 85% at 50% 45%, transparent 55%, rgba(2, 4, 12, .5) 100%); }
.gf .sin-gl .stage { background: url("../assets/poster/fondo-estadio.webp") center / cover no-repeat, linear-gradient(180deg, #0B1430, #1C3A22 70%); }
.gf .ui { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.gf .ui > * { pointer-events: auto; }
/* (la gráfica no se selecciona al arrastrar el dedo o el mouse para la ola) */
.gf .hud, .gf .pista, .gf .titulo-tv, .gf .cumple, .gf .cortinilla, .gf .accion-btn, .gf .tablero, .gf .repe, .gf .medidor { user-select: none; -webkit-user-select: none; }
.gf .punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: gf-late 1.1s steps(2, jump-none) infinite; }
@keyframes gf-late { 50% { opacity: .15; } }

/* ---------- botones de transmisión ---------- */
.gf .tv-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 4px 18px 0;
  border: 0; border-radius: 4px; color: var(--blanco); text-decoration: none; cursor: pointer; background: var(--navy-3);
  box-shadow: inset 0 0 0 1.5px var(--linea), 0 3px 0 rgba(0, 0, 0, .45);
  font: 600 22px/1 var(--f-tv); letter-spacing: .04em; text-transform: uppercase;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; touch-action: manipulation; user-select: none;
}
.gf .tv-btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px var(--linea), 0 1px 0 rgba(0, 0, 0, .45); }
.gf .tv-btn .bi { display: inline-flex; flex: none; margin-top: -4px; }
.gf .tv-btn .bt { min-width: 0; }
.gf .tv-btn.is-oro { color: var(--navy); background: linear-gradient(180deg, var(--oro-2), var(--oro) 55%, #F2AE10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 0 var(--oro-osc); }
.gf .tv-btn.is-oro:active { box-shadow: 0 1px 0 var(--oro-osc); }
.gf .tv-btn.is-equipo { color: var(--equipo-tinta); background: var(--equipo); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25), 0 3px 0 rgba(0, 0, 0, .45); }
.gf .tv-btn.is-wa { color: #06301A; background: linear-gradient(180deg, #4BE38A, var(--wa)); box-shadow: 0 3px 0 #0E6B35; }
.gf .tv-btn.is-chico { min-height: 44px; padding: 3px 13px 0; font-size: 19px; }
.gf .tv-btn.is-grande { min-height: 58px; font-size: 27px; }
.gf .tv-btn.is-bloque { width: 100%; }
.gf .icono-btn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 4px; cursor: pointer; color: var(--blanco); background: rgba(10, 18, 38, .88); box-shadow: inset 0 0 0 1.5px var(--linea); }
.gf .icono-btn:active { transform: translateY(1px); }
.gf .enlace { border: 0; background: none; padding: 10px 6px; min-height: 44px; font: 700 17px var(--f-texto); color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- HUD: marcador de la esquina y EN VIVO ---------- */
.gf .hud { position: absolute; left: 10px; right: 10px; top: calc(var(--safe-t) + 10px); display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; transition: opacity .4s ease; }
.gf .hud > * { pointer-events: auto; }
.gf .hud-der { display: flex; align-items: center; gap: 6px; }
.gf .bug { display: flex; align-items: stretch; height: 34px; font: 600 21px/1 var(--f-tv); letter-spacing: .04em; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); transform-origin: left center; }
.gf .bug > span { display: flex; align-items: center; gap: 6px; padding: 4px 10px 0; }
.gf .bug-eq { color: var(--equipo-tinta); background: var(--equipo); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); border-radius: 3px 0 0 3px; padding-right: 14px !important; }
.gf .bug-escudo { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: -4px; border-radius: 50%; background: rgba(0, 0, 0, .2); }
.gf .bug-mom { margin-left: -8px; flex-direction: column; align-items: flex-start !important; justify-content: center; gap: 3px !important; color: var(--blanco); background: var(--navy); clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 3px 3px 0; padding: 4px 12px 2px 16px !important; }
.gf .bug-m { font: 600 15px/1 var(--f-tv); letter-spacing: .06em; text-transform: uppercase; color: var(--gris); white-space: nowrap; }
.gf .bug-ps { display: flex; gap: 3px; }
.gf .bug-p { display: block; width: 16px; height: 5px; border-radius: 1px; background: #2A3A66; }
.gf .bug-p.is-hecho { background: var(--oro); }
.gf .bug-p.is-ahora { background: var(--blanco); animation: gf-late 1.1s steps(2, jump-none) infinite; }
.gf .bug-ola small { font: 700 12px/1 var(--f-texto); letter-spacing: .1em; color: var(--gris); margin-top: -3px; }
.gf .bug-n { font-weight: 700; color: var(--oro); min-width: 2.2ch; }
.gf .bug-final { margin-left: -8px; color: var(--navy); background: var(--oro); clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 3px 3px 0; font-size: 17px; }
.gf .bug.is-pop { animation: gf-bug .5s ease; }
@keyframes gf-bug { 30% { transform: scale(1.08); } }
.gf .hud-izq { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.gf .envivo { display: inline-flex; align-items: center; gap: 6px; height: 24px; margin: 0; padding: 3px 8px 0; border-radius: 3px; color: var(--blanco); background: var(--vivo); font: 600 17px/1 var(--f-tv); letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
.gf .envivo-k { margin-left: 2px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .5); }
.gf .envivo .punto { width: 8px; height: 8px; margin-top: -3px; }
.gf .hud.is-previa .bug { display: none; }

/* ---------- PREVIA: apertura de la transmisión ---------- */
.gf .previa { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px calc(var(--safe-b) + 14px); display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center;
  background: linear-gradient(180deg, rgba(6, 11, 24, 0) 0%, rgba(6, 11, 24, .82) 26%, rgba(6, 11, 24, .96) 100%); animation: gf-sube .6s cubic-bezier(.2, .9, .25, 1) both; }
.gf .previa.is-out { animation: gf-baja .45s ease both; }
@keyframes gf-sube { from { opacity: 0; transform: translateY(30px); } }
@keyframes gf-baja { to { opacity: 0; transform: translateY(24px); } }
.gf .previa-k { margin: 0; font: 700 14px/1 var(--f-texto); letter-spacing: .22em; text-transform: uppercase; color: var(--gris); }
.gf .previa-t { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gf .previa-gran { font: 700 min(19cqw, 82px)/.8 var(--f-tv); letter-spacing: .01em; color: var(--oro); text-shadow: 0 4px 0 #6B4B00, 0 0 36px rgba(255, 200, 61, .35); }
.gf .previa-equipo { padding: 8px 20px 5px; color: var(--equipo-tinta); background: var(--equipo); clip-path: var(--sesgo); font: 800 19px/1.1 var(--f-texto); letter-spacing: .06em; text-transform: uppercase; }
.gf .previa-msg { margin: 2px 0 0; font: 600 18px/1.3 var(--f-texto); color: var(--blanco); text-wrap: balance; }
.gf .previa-sub { margin: 0 auto 4px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 5px; border-radius: 3px; background: var(--navy-3); color: var(--gris); font: 700 15px/1.2 var(--f-texto); }
.gf .previa-pasos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 0 6px; padding: 0; list-style: none; }
.gf .previa-pasos li { display: flex; align-items: center; gap: 4px; padding: 5px 7px 3px; background: var(--navy-3); color: var(--gris); font: 600 min(3.9cqw, 16px)/1 var(--f-tv); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.gf .previa-pasos b { color: var(--oro); }
.gf .previa-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; color: var(--blanco); }
.gf .saltar-btn { position: absolute; right: 12px; bottom: calc(var(--safe-b) + 18px); background: rgba(10, 18, 38, .85); }

/* ---------- gráfica del título ---------- */
.gf .titulo-tv { position: absolute; left: 14px; right: 14px; top: 17cqh; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none !important; }
.gf .tt-k { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 12px 2px; border-radius: 3px; color: var(--blanco); background: var(--vivo); font: 600 18px/1 var(--f-tv); letter-spacing: .08em; text-transform: uppercase; animation: gf-wipe .4s .1s cubic-bezier(.3, .9, .3, 1) both; }
.gf .tt-gran { margin: 0; font: 700 min(20cqw, 84px)/.85 var(--f-tv); color: var(--blanco); text-shadow: 0 4px 0 rgba(0, 0, 0, .55), 0 0 40px rgba(255, 200, 61, .4); animation: gf-zoom .55s .2s cubic-bezier(.2, 1.2, .35, 1) both; }
.gf .tt-equipo { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 20px 5px; color: var(--equipo-tinta); background: var(--equipo); clip-path: var(--sesgo); font: 800 20px/1.1 var(--f-texto); letter-spacing: .06em; text-transform: uppercase; animation: gf-wipe .45s .45s cubic-bezier(.3, .9, .3, 1) both; }
.gf .tt-escudo { display: inline-flex; color: var(--oro); }
.gf .titulo-tv.is-out { animation: gf-fuera .5s ease both; }
@keyframes gf-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes gf-zoom { from { opacity: 0; transform: scale(1.35); letter-spacing: .2em; } }
@keyframes gf-fuera { to { opacity: 0; transform: translateY(-14px); } }

/* ---------- cortinilla entre datos ---------- */
.gf .cortinilla { position: absolute; inset: 0; z-index: 40; overflow: hidden; pointer-events: none !important; visibility: hidden; }
.gf .cortinilla.is-on { visibility: visible; animation: gf-oculta 1s linear both; }
@keyframes gf-oculta { 99% { visibility: visible; } 100% { visibility: hidden; } }
.gf .cortinilla i { position: absolute; top: -20%; bottom: -20%; width: 70%; left: -90%; transform: skewX(-18deg); will-change: transform; }
.gf .cr-a { background: var(--equipo); }
.gf .cr-b { background: var(--oro); }
.gf .cr-c { background: var(--navy); }
.gf .cortinilla.is-on i { animation: gf-barre .9s cubic-bezier(.65, 0, .35, 1) both; }
.gf .cortinilla.is-on .cr-b { animation-delay: .07s; }
.gf .cortinilla.is-on .cr-c { animation-delay: .13s; }
@keyframes gf-barre { from { transform: skewX(-18deg) translateX(0); } to { transform: skewX(-18deg) translateX(330%); } }
.gf .cr-insignia { position: absolute; left: 50%; top: 42%; display: flex; align-items: center; gap: 8px; padding: 8px 18px 4px; transform: translate(-50%, -50%); color: var(--navy); background: var(--blanco); font: 700 30px/1 var(--f-tv); letter-spacing: .06em; clip-path: var(--sesgo); opacity: 0; }
.gf .cr-estrella { display: inline-flex; color: var(--equipo); margin-top: -5px; }
.gf .cortinilla.is-on .cr-insignia { animation: gf-insignia .9s ease both; }
@keyframes gf-insignia { 20% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 40%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }

/* ---------- cintillo inferior de cada dato ---------- */
.gf .cintillo { position: absolute; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 84px); display: flex; flex-direction: column; align-items: flex-start; gap: 0; max-height: 58cqh; }
.gf .ci-narra { margin: 0 0 6px; padding: 4px 10px 2px; color: var(--oro); background: rgba(6, 11, 24, .88); border-left: 3px solid var(--oro); font: 600 19px/1 var(--f-tv); letter-spacing: .04em; text-transform: uppercase; opacity: 0; }
.gf .ci-barra { display: flex; align-items: stretch; height: 32px; clip-path: inset(0 100% 0 0); }
.gf .ci-k { display: flex; align-items: center; gap: 6px; padding: 3px 14px 0 10px; color: var(--equipo-tinta); background: var(--equipo); font: 600 19px/1 var(--f-tv); letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.gf .ci-ic { display: inline-flex; margin-top: -4px; }
.gf .ci-que { display: flex; align-items: center; margin-left: -9px; padding: 3px 16px 0 18px; color: var(--navy); background: var(--blanco); font: 600 19px/1 var(--f-tv); letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.gf .ci-panel { position: relative; width: 100%; overflow: hidden auto; overscroll-behavior: contain; padding: 10px 14px 12px 16px; color: var(--blanco); background: var(--panel); border-radius: 0 4px 4px 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(10px); }
.gf .ci-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--equipo), var(--oro)); }
.gf .ci-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .14) 48%, transparent 60%) no-repeat; background-size: 300% 100%; background-position: 100% 0; opacity: 0; }
.gf .ci-t { margin: 0; font: 600 min(11cqw, 44px)/.95 var(--f-tv); letter-spacing: .02em; text-transform: uppercase; color: var(--blanco); outline-offset: 2px; text-wrap: balance; }
.gf .ci-t.is-chico { font-size: min(8.4cqw, 34px); }
.gf .ci-cuerpo { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; font: 600 17px/1.35 var(--f-texto); }
.gf .cintillo.is-in .ci-narra { animation: gf-entra .4s .55s ease both; }
.gf .cintillo.is-in .ci-barra { animation: gf-wipe .38s cubic-bezier(.3, .9, .3, 1) both; }
.gf .cintillo.is-in .ci-panel { animation: gf-panel .45s .18s cubic-bezier(.2, .9, .25, 1) both; }
.gf .cintillo.is-in .ci-panel::after { animation: gf-brillo .9s .5s ease both; }
.gf .cintillo.is-out { animation: gf-sale .4s ease both; }
@keyframes gf-entra { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes gf-panel { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* (el brillo cruza moviendo su fondo, no la caja: nada desborda ni deja barra horizontal) */
@keyframes gf-brillo { from { opacity: 1; background-position: 100% 0; } 90% { opacity: 1; } to { opacity: 0; background-position: 0 0; } }
@keyframes gf-sale { to { opacity: 0; transform: translateX(-30px); } }
/* piezas del cuerpo de un dato (las comparten el cintillo, el final y Todos los datos) */
.gf .dato-sub { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--gris); font: 600 17px/1.3 var(--f-texto); }
.gf .dato-chip { padding: 3px 9px 1px; border-radius: 3px; color: var(--navy); background: var(--oro); font: 600 18px/1.1 var(--f-tv); letter-spacing: .04em; text-transform: uppercase; }
.gf .acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.gf .stats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.gf .stats li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0 4px; border-bottom: 1px solid var(--linea); }
.gf .stats li:last-child { border-bottom: 0; }
.gf .st-k { color: var(--oro); font: 600 19px/1 var(--f-tv); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.gf .st-v { color: var(--blanco); font: 700 17px/1.25 var(--f-texto); text-align: right; }
.gf .cita { margin: 0; padding: 0 0 0 12px; border-left: 3px solid var(--oro); }
.gf .cita p { margin: 0; font: 600 20px/1.32 var(--f-texto); color: var(--blanco); }
.gf .cita footer { margin-top: 4px; color: var(--gris); font: 700 16px var(--f-texto); }
.gf .nota { margin: 0; color: var(--gris); font: 600 16px/1.35 var(--f-texto); }
.gf .nota strong { color: var(--blanco); }
.gf .nota.is-oro { color: var(--oro); font-weight: 700; }
.gf .mapa { overflow: hidden; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--linea); background: #E9EEF5; }
.gf .mapa svg { display: block; width: 100%; height: auto; max-height: 170px; }

/* ---------- gesto: pista, manita y el botón alternativo de cada momento ---------- */
.gf .accion-btn { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 16px); transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); min-height: 54px; padding: 4px 20px 0; font-size: min(6.2cqw, 25px); white-space: nowrap; animation: gf-sube .5s ease both; transition: opacity .25s ease; }
.gf .accion-btn:active { transform: translateX(-50%) translateY(2px); }
.gf .accion-btn.is-fuera { opacity: 0; pointer-events: none; }
.gf .con-cintillo .accion-btn { display: none; }
.gf .pista { position: absolute; left: 50%; top: calc(var(--safe-t) + 86px); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); width: max-content; margin: 0; padding: 8px 14px 6px; transform: translate(-50%, -8px); opacity: 0; color: var(--blanco); background: var(--panel); border-left: 4px solid var(--oro); font: 700 17px/1.25 var(--f-texto); box-shadow: 0 8px 20px rgba(0, 0, 0, .4); transition: opacity .3s ease, transform .3s ease; pointer-events: none !important; }
.gf .pista.is-on { opacity: 1; transform: translate(-50%, 0); }
.gf .pista-ic { display: inline-flex; color: var(--oro); }
.gf .mano { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 120px); width: 64px; height: 170px; margin-left: -32px; pointer-events: none !important; opacity: 0; }
.gf .mano.is-on { opacity: 1; }
.gf .mano-ic { position: absolute; left: 7px; bottom: 0; color: var(--blanco); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.gf .mano-estela { position: absolute; left: 26px; bottom: 30px; width: 12px; height: 130px; border-radius: 8px; background: linear-gradient(0deg, rgba(255, 200, 61, 0), rgba(255, 200, 61, .85)); transform-origin: bottom; transform: scaleY(0); }
.gf .mano.is-on .mano-ic { animation: gf-mano 1.6s .2s ease-in-out 3 both; }
.gf .mano.is-on .mano-estela { animation: gf-estela 1.6s .2s ease-in-out 3 both; }
@keyframes gf-mano { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 60% { transform: translateY(-110px); opacity: 1; } 80%, 100% { transform: translateY(-120px); opacity: 0; } }
@keyframes gf-estela { 0%, 12% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 90%, 100% { transform: scaleY(1); opacity: 0; } }
/* la manita que toca (túnel, anillo): baja, toca con un destello y sube */
.gf .mano.is-toque { left: 50%; top: 46%; bottom: auto; width: 64px; height: 80px; }
.gf .mano.is-toque .mano-estela { left: 6px; bottom: auto; top: 0; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 61, .9), rgba(255, 200, 61, 0) 70%); transform: scale(0); }
.gf .mano.is-toque.is-on .mano-ic { animation: gf-toca 1.1s .1s ease-in-out 4 both; }
.gf .mano.is-toque.is-on .mano-estela { animation: gf-destello 1.1s .1s ease-out 4 both; }
@keyframes gf-toca { 0% { transform: translateY(-26px) scale(1.05); opacity: 0; } 20% { opacity: 1; } 45% { transform: translateY(0) scale(.92); } 70%, 100% { transform: translateY(-20px) scale(1); opacity: 1; } }
@keyframes gf-destello { 0%, 40% { transform: scale(0); opacity: 1; } 75% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
/* la manita que arrastra hacia la derecha (repetición) */
.gf .mano.is-lado { bottom: auto; width: 64px; height: 64px; margin-left: 0; }
.gf .mano.is-lado .mano-estela { left: 20px; bottom: 30px; width: 150px; height: 10px; transform-origin: left; background: linear-gradient(90deg, rgba(255, 200, 61, .85), rgba(255, 200, 61, 0)); transform: scaleX(0); }
.gf .mano.is-lado.is-on .mano-ic { animation: gf-arrastra 2s .1s ease-in-out 3 both; }
.gf .mano.is-lado.is-on .mano-estela { animation: gf-estela-x 2s .1s ease-in-out 3 both; }
@keyframes gf-arrastra { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 55% { transform: translateX(150px); } 75% { transform: translateX(118px); opacity: 1; } 100% { transform: translateX(118px); opacity: 0; } }
@keyframes gf-estela-x { 0%, 10% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 95%, 100% { opacity: 0; } }

/* ---------- 1. tablero de iluminación (4 reflectores) ---------- */
.gf .tablero { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 150px); width: max-content; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 14px 10px; background: rgba(6, 11, 24, .9); border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--linea), 0 8px 22px rgba(0, 0, 0, .5); pointer-events: none !important; animation: gf-panel .45s cubic-bezier(.2, .9, .25, 1) both; transition: opacity .4s ease, transform .4s ease; }
.gf .tablero.is-fuera { opacity: 0; transform: translateY(-12px); }
.gf .tb-t { display: flex; align-items: baseline; gap: 10px; margin: 0; font: 600 17px/1 var(--f-tv); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.gf .tb-n { color: var(--oro); font-size: 20px; }
.gf .tb-focos { display: flex; gap: 10px; }
/* cada reflector: un panel de lámparas (rejilla 3×2) apagado → encendido con resplandor */
.gf .tb-foco { position: relative; width: 50px; height: 34px; border-radius: 3px; background: #10182e; box-shadow: inset 0 0 0 2px #2A3A66; overflow: hidden; }
.gf .tb-foco span { position: absolute; inset: 5px; background: radial-gradient(circle at 25% 30%, #2a3554 26%, transparent 28%) 0 0 / 33.3% 50%; }
.gf .tb-foco.is-on { background: #fff6dc; box-shadow: inset 0 0 0 2px #FFE07A, 0 0 18px 4px rgba(255, 224, 122, .65); animation: gf-foco .55s steps(1, end) both; }
.gf .tb-foco.is-on span { background: radial-gradient(circle at 25% 30%, #ffffff 26%, transparent 30%) 0 0 / 33.3% 50%; }
@keyframes gf-foco { 0% { opacity: 1; } 14% { opacity: .2; } 26% { opacity: .9; } 38% { opacity: .3; } 55%, 100% { opacity: 1; } }
.gf .tablero.is-golpe { animation: gf-golpe .3s ease; }
@keyframes gf-golpe { 40% { transform: scale(1.06); } }

/* ---------- rótulos grandes (¡GOLAZO!, REPETICIÓN) ---------- */
.gf .rotulo { position: absolute; left: 0; right: 0; top: 30cqh; display: flex; justify-content: center; pointer-events: none !important; z-index: 30; }
.gf .rotulo span { padding: 6px 26px 0; font: 700 min(22cqw, 96px)/.95 var(--f-tv); letter-spacing: .02em; color: var(--navy); background: var(--oro); clip-path: var(--sesgo); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: gf-rotulo 2.2s cubic-bezier(.2, 1.1, .3, 1) both; }
.gf .rotulo.is-gol span { color: var(--equipo-tinta); background: var(--equipo); text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.gf .rotulo.is-repe span { font-size: min(14cqw, 60px); color: var(--blanco); background: var(--navy); box-shadow: inset 0 0 0 3px var(--oro), 0 10px 30px rgba(0, 0, 0, .5); }
@keyframes gf-rotulo { 0% { opacity: 0; transform: scale(1.6) skewX(-8deg); } 14% { opacity: 1; transform: scale(1) skewX(-8deg); } 80% { opacity: 1; transform: scale(1.02) skewX(-8deg); } 100% { opacity: 0; transform: translateY(-20px) skewX(-8deg); } }

/* ---------- 3. el anillo del momento justo (sobre el balón) ---------- */
.gf .anillo { --k: 2.7; position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none !important; z-index: 25; opacity: 0; transition: opacity .25s ease; }
.gf .anillo.is-on { opacity: 1; }
.gf .anillo i { position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border-radius: 50%; }
.gf .an-meta { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), inset 0 0 0 3px rgba(10, 18, 38, .6); background: radial-gradient(circle, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .18) 70%); }
.gf .an-aro { border: 6px solid var(--blanco); box-shadow: 0 0 0 2px rgba(10, 18, 38, .6), inset 0 0 0 2px rgba(10, 18, 38, .6); transform: scale(var(--k)); }
.gf .an-t { position: absolute; left: 0; top: 52px; transform: translateX(-50%) scale(.8); padding: 4px 12px 1px; white-space: nowrap; color: var(--navy); background: var(--oro); clip-path: var(--sesgo); font: 700 26px/1 var(--f-tv); letter-spacing: .06em; opacity: 0; transition: opacity .15s, transform .15s; }
.gf .anillo.is-oro .an-aro { border-color: var(--oro); box-shadow: 0 0 0 2px rgba(10, 18, 38, .6), 0 0 22px 6px rgba(255, 200, 61, .75); }
.gf .anillo.is-oro .an-meta { box-shadow: 0 0 0 4px var(--oro-2), 0 0 26px 8px rgba(255, 200, 61, .6); }
.gf .anillo.is-oro .an-t { opacity: 1; transform: translateX(-50%) scale(1); }
.gf .anillo.is-perfecto .an-meta, .gf .anillo.is-bien .an-meta { animation: gf-revienta .6s ease-out both; }
.gf .anillo.is-perfecto .an-t { opacity: 1; }
@keyframes gf-revienta { to { transform: scale(2.6); opacity: 0; } }

/* ---------- 4. la repetición ---------- */
.gf .repe { position: absolute; inset: 0; pointer-events: none !important; }
.gf .repe > * { pointer-events: auto; }
.gf .en-repe .gl { filter: saturate(.82) contrast(1.06); }
.gf .rp-rayas { position: absolute; inset: 0; pointer-events: none !important; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px), radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0, 0, 10, .45) 100%); }
.gf .rp-sello { position: absolute; right: 12px; bottom: calc(var(--safe-b) + 134px); display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 10px 2px; color: var(--blanco); background: rgba(6, 11, 24, .9); box-shadow: inset 3px 0 0 var(--oro); font: 600 19px/1 var(--f-tv); letter-spacing: .1em; pointer-events: none !important; }
.gf .rp-ic { display: inline-flex; color: var(--oro); margin-top: -3px; animation: gf-late 1.1s steps(2, jump-none) infinite; }
.gf .rp-tc { font-weight: 600; color: var(--oro); letter-spacing: .04em; min-width: 6.4ch; }
.gf .rp-control { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 16px); padding: 10px 14px 12px; touch-action: none; cursor: grab; background: rgba(6, 11, 24, .92); border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--linea), 0 10px 26px rgba(0, 0, 0, .5); }
.gf .rp-t { margin: 0 0 8px; font: 700 16px/1.25 var(--f-texto); color: var(--blanco); }
.gf .rp-barra { --u: 0; --marca: .8; position: relative; height: 48px; touch-action: none; cursor: grab; border-radius: 4px; }
.gf .rp-barra:active { cursor: grabbing; }
.gf .rp-riel { position: absolute; left: 0; right: 0; top: 20px; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, #2A3A66 0 2px, #1A2850 2px 9px); }
.gf .rp-lleno { position: absolute; left: 0; top: 20px; height: 8px; width: calc(var(--u) * 100%); border-radius: 4px; background: linear-gradient(90deg, var(--equipo), var(--oro)); }
.gf .rp-marca { position: absolute; top: -2px; left: calc(var(--marca) * 100%); display: grid; place-items: center; width: 26px; height: 22px; margin-left: -13px; color: var(--navy); background: var(--oro); clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); opacity: .85; }
.gf .rp-marca svg { margin-top: -3px; }
.gf .rp-cabeza { position: absolute; top: 10px; left: calc(var(--u) * 100%); width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--blanco); box-shadow: 0 0 0 4px var(--navy), 0 0 0 6px var(--oro), 0 4px 10px rgba(0, 0, 0, .5); }
.gf .repe.is-cerca .rp-marca { opacity: 1; animation: gf-late .5s steps(2, jump-none) infinite; }
.gf .repe.is-cerca .rp-cabeza { box-shadow: 0 0 0 4px var(--navy), 0 0 0 6px var(--oro), 0 0 22px 8px rgba(255, 200, 61, .7); }
.gf .rp-barra:focus-visible { outline-offset: 6px; }
.gf .con-cintillo .rp-control { display: none; }
/* el telestrador: círculo a mano alrededor de la manta, como en el análisis de la transmisión */
.gf .telestrador { position: absolute; inset: 0; pointer-events: none !important; z-index: 18; }
.gf .telestrador svg { position: absolute; inset: 0; overflow: visible; }
.gf .telestrador path { fill: none; stroke: var(--oro); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 200, 61, .8)) drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); stroke-dasharray: 1; stroke-dashoffset: 1; animation: gf-traza .7s .05s cubic-bezier(.5, 0, .3, 1) forwards; }
.gf .telestrador .ts-flecha { animation-delay: .6s; animation-duration: .35s; }
@keyframes gf-traza { to { stroke-dashoffset: 0; } }
.gf .ts-t { position: absolute; transform: translate(-50%, -100%); padding: 5px 12px 2px; white-space: nowrap; color: var(--navy); background: var(--oro); clip-path: var(--sesgo); font: 700 24px/1 var(--f-tv); letter-spacing: .04em; text-transform: uppercase; animation: gf-zoom .45s .75s cubic-bezier(.2, 1.2, .35, 1) both; }

/* ---------- 5. el medidor del trofeo ---------- */
.gf .medidor { --k: 0; position: absolute; right: 14px; top: 26cqh; width: 46px; height: 36cqh; pointer-events: none !important; opacity: 0; transition: opacity .3s ease; }
.gf .medidor.is-on { opacity: 1; }
.gf .md-riel { position: absolute; left: 13px; top: 0; bottom: 0; width: 20px; border-radius: 10px; background: repeating-linear-gradient(0deg, #2A3A66 0 3px, #111C38 3px 12px); box-shadow: inset 0 0 0 2px var(--linea), 0 6px 16px rgba(0, 0, 0, .5); }
.gf .md-lleno { position: absolute; left: 13px; bottom: 0; width: 20px; height: calc(var(--k) * 100%); border-radius: 10px; background: linear-gradient(0deg, var(--equipo), var(--oro) 70%, #fff5cf); box-shadow: 0 0 16px rgba(255, 200, 61, .6); }
.gf .md-ic { position: absolute; left: 0; bottom: calc(var(--k) * 100% - 23px); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--navy); background: var(--oro); box-shadow: 0 0 0 3px var(--navy), 0 4px 12px rgba(0, 0, 0, .5); }
.gf .md-t { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); padding: 3px 8px 0; white-space: nowrap; color: var(--oro); background: rgba(6, 11, 24, .9); font: 600 18px/1 var(--f-tv); letter-spacing: .06em; text-transform: uppercase; }
.gf .medidor.is-lleno .md-ic { animation: gf-bug .5s ease 2; }

/* ---------- la ficha de jugador (1.er dato) ---------- */
.gf .ficha { display: flex; align-items: stretch; gap: 12px; }
.gf .ficha-num { flex: none; display: grid; place-items: center; min-width: 74px; padding: 6px 8px 0; color: var(--equipo-tinta); background: var(--equipo); box-shadow: inset 0 -6px 0 var(--equipo-2); clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%); font: 700 64px/.8 var(--f-tv); }
.gf .ficha-datos { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.gf .ficha-cumple { margin: 0; align-self: flex-start; padding: 3px 9px 1px; color: var(--navy); background: var(--oro); font: 600 20px/1.05 var(--f-tv); letter-spacing: .05em; text-transform: uppercase; }
.gf .ficha-eq { margin: 0; font: 800 18px/1.2 var(--f-texto); color: var(--blanco); text-transform: uppercase; letter-spacing: .03em; }
.gf .ficha-pos { margin: 0; font: 600 15px/1.25 var(--f-texto); color: var(--gris); }
/* "Siguiente momento": botón con la cuenta regresiva de la transmisión */
.gf .ci-seguir { position: relative; align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; padding: 4px 12px 0; overflow: hidden; border: 0; border-radius: 3px; cursor: pointer; color: var(--navy); background: var(--blanco); font: 600 19px/1 var(--f-tv); letter-spacing: .05em; text-transform: uppercase; }
.gf .ci-seguir-ic { display: inline-flex; margin-top: -4px; color: var(--equipo); }
.gf .ci-cuenta { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--oro); transform-origin: left; animation: gf-cuenta linear both; }
@keyframes gf-cuenta { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gf .ci-panel { display: flex; flex-direction: column; }

/* ---------- ¡cumple! y el final ---------- */
.gf .cumple { position: absolute; left: 12px; right: 12px; top: 20cqh; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; pointer-events: none !important; transition: top .6s cubic-bezier(.2, .9, .25, 1), transform .6s cubic-bezier(.2, .9, .25, 1); }
.gf .cumple-k { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 12px 2px; color: var(--navy); background: var(--oro); font: 600 19px/1 var(--f-tv); letter-spacing: .08em; text-transform: uppercase; clip-path: var(--sesgo); animation: gf-wipe .4s cubic-bezier(.3, .9, .3, 1) both; }
.gf .cumple-t { margin: 0; font: 700 min(17cqw, 74px)/.9 var(--f-tv); color: var(--blanco); text-shadow: 0 4px 0 rgba(0, 0, 0, .6), 0 0 30px rgba(255, 200, 61, .45); text-wrap: balance; animation: gf-zoom .6s .1s cubic-bezier(.2, 1.2, .35, 1) both; }
.gf .cumple-s { margin: 0; padding: 6px 16px 4px; color: var(--equipo-tinta); background: var(--equipo); clip-path: var(--sesgo); font: 800 18px/1.15 var(--f-texto); letter-spacing: .04em; text-transform: uppercase; animation: gf-wipe .45s .4s cubic-bezier(.3, .9, .3, 1) both; }
.gf .cumple.is-arriba { top: calc(var(--safe-t) + 56px); transform: scale(.82); }
.gf .fin { position: absolute; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 10px); max-height: 58cqh; overflow: hidden auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 10px 16px; color: var(--blanco); background: var(--panel); border-radius: 4px; box-shadow: 0 12px 34px rgba(0, 0, 0, .55); animation: gf-panel .5s cubic-bezier(.2, .9, .25, 1) both; }
.gf .fin::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--equipo), var(--oro)); }
.gf .fin-k { display: flex; align-items: center; justify-content: space-between; margin: 0; color: var(--gris); font: 700 13px/1 var(--f-texto); letter-spacing: .2em; text-transform: uppercase; }
.gf .fin-eq { padding: 3px 9px 1px; color: var(--equipo-tinta); background: var(--equipo); font: 600 17px/1 var(--f-tv); letter-spacing: .06em; }
.gf .fin-msg { margin: -4px 0 0; font: 600 16px/1.35 var(--f-texto); color: var(--blanco); }
.gf .fin-msg small { color: var(--gris); font: inherit; }
.gf .fin-t { margin: 0; font: 600 34px/.95 var(--f-tv); text-transform: uppercase; letter-spacing: .02em; }
.gf .fin-lugar summary { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 6px 0 4px; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); cursor: pointer; list-style: none; }
.gf .fin-lugar summary::-webkit-details-marker { display: none; }
.gf .fin-salon { flex: 1; font: 700 17px/1.25 var(--f-texto); }
.gf .fin-vermapa { color: var(--oro); font: 700 15px var(--f-texto); text-decoration: underline; text-underline-offset: 3px; }
.gf .fin-lugar[open] .fin-vermapa { visibility: hidden; }
.gf .fin-lugar > *:not(summary) { margin-top: 8px; }
.gf .fin-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; }

/* ---------- vitrina y diagnóstico ---------- */
.gf .is-vitrina .vineta { background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(2, 4, 12, .45) 100%); }
.gf .vitrina-t { position: absolute; left: 0; right: 0; bottom: 8%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.gf .vitrina-t span { font: 700 min(9vw, 96px)/.85 var(--f-tv); color: var(--oro); text-shadow: 0 4px 0 #6B4B00, 0 0 30px rgba(0, 0, 0, .6); }
.gf .vitrina-t small { padding: 6px 18px 3px; color: var(--equipo-tinta); background: var(--equipo); clip-path: var(--sesgo); font: 800 min(3vw, 30px)/1.1 var(--f-texto); text-transform: uppercase; }
.gf .dbg-fps { position: absolute; left: 8px; bottom: 4px; margin: 0; padding: 2px 6px; font: 600 11px/1.3 ui-monospace, monospace; color: #9F9; background: rgba(0, 0, 0, .6); pointer-events: none !important; z-index: 90; }

/* ---------- movimiento reducido ---------- */
.gf.rm *, .gf.rm *::before, .gf.rm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.gf.rm .mano.is-on .mano-ic { transform: translateY(-60px); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .gf *, .gf *::before, .gf *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .gf .mano.is-on .mano-ic { transform: translateY(-60px); opacity: 1; }
}
