/* Diseño nuevo · Bingo: GC de OBS (#gc), tablero (#fb), ganador (.bwin), QR grande y bingo en la pantalla de pie.
   Todo bajo «html.t2» (ver tema.css: colores, letras y reglas). */

/* ---------- Piezas comunes del bingo ---------- */
/* Los emojis de las etiquetas no van en el diseño nuevo (el JS los deja en un <span class="t2-emo">) */
html.t2 #fb .t2-emo, html.t2 #gc .t2-emo { display: none; }
/* Bolita: blanca, con un aro del color del local; la letra arriba, chica, y el número grande */
html.t2 #gc .ball.gcball, html.t2 #fb .ball.fbball { position: relative; width: var(--d); height: var(--d); padding: 0; border: 0; align-content: center; line-height: 1; filter: none; opacity: 1;
  background: radial-gradient(circle at 34% 28%, #fff, #e9e4da 58%, #b9b2a4); color: #0c0b12; font-family: var(--t-disp);
  box-shadow: 0 0 0 calc(var(--d) * .055) var(--t-c), 0 calc(var(--d) * .07) calc(var(--d) * .16) rgba(0, 0, 0, .55); }
html.t2 #gc .ball.gcball .l, html.t2 #fb .ball.fbball .l { position: absolute; left: 0; right: 0; top: 11%; font: 700 calc(var(--d) * .13)/1 var(--t-mono); color: #55505f; }
html.t2 #gc .ball.gcball .v, html.t2 #fb .ball.fbball .v { font: 900 calc(var(--d) * .56)/.8 var(--t-disp); }
html.t2 #gc .ball.gcball.text .l, html.t2 #fb .ball.fbball.text .l { top: 14%; }
html.t2 #gc .ball.gcball.text .v, html.t2 #fb .ball.fbball.text .v { padding: 0 12%; font: 800 calc(var(--d) * .12)/1.08 var(--t-txt); }
/* Números anteriores: bolitas chicas y oscuras, solo con el número */
html.t2 #gc .ball.gcprev, html.t2 #fb .ball.fbprev { flex: none; width: var(--d); height: var(--d); padding: 0; border: 0; align-content: center; filter: none; opacity: 1;
  background: var(--t-tarima2); color: var(--t-texto); box-shadow: 0 0 0 calc(var(--d) * .045) var(--t-linea); font-family: var(--t-disp); }
html.t2 #gc .ball.gcprev .l, html.t2 #fb .ball.fbprev .l { display: none; }
html.t2 #gc .ball.gcprev .v, html.t2 #fb .ball.fbprev .v { font: 900 calc(var(--d) * .56)/1 var(--t-disp); }
html.t2 #gc .ball.gcprev.text .v, html.t2 #fb .ball.fbprev.text .v { font: 800 calc(var(--d) * .16)/1 var(--t-txt); }
/* Figura: cuadritos rectos, los de la figura en dorado */
html.t2 #gc .gc-grid i, html.t2 #fb .gc-grid i { border-radius: 0; background: var(--t-linea); box-shadow: none; }
html.t2 #gc .gc-grid i.x, html.t2 #fb .gc-grid i.x { background: var(--t-foco); box-shadow: none; }
@keyframes t2b-bola { 0% { transform: translateY(-9vh) scale(.5); opacity: 0; } 55% { transform: translateY(0) scale(1.07); opacity: 1; } 78% { transform: scale(.98); } 100% { transform: none; } }
@keyframes t2b-izq { from { transform: translateX(-130%); } to { transform: none; } }
@keyframes t2b-der { from { transform: translateX(130%); } to { transform: none; } }
@keyframes t2b-gira { to { transform: rotate(360deg); } }
@keyframes t2b-late { 50% { transform: scale(1.12); } }
@keyframes t2b-baja { from { transform: translateY(140%); } to { transform: none; } }
@keyframes t2b-sale { to { opacity: 0; transform: translateY(140%); visibility: hidden; } }

/* ---------- GC del bingo en OBS (#gc): fondo transparente, cada pieza con su fondo oscuro ---------- */
html.t2 #gc { font-family: var(--t-txt); color: var(--t-texto); }
/* Las neuronas sobre los recuadros del GC no van en el diseño nuevo (las piezas tienen cortes en diagonal) */
html.t2 body.gc-screen #neural-bg.neural-gc { display: none; }
/* Franja inferior: etiqueta del color del local con la figura · franja oscura con el título y la frase · recuadro con
   los participantes y el texto libre. Encima: el QR a la izquierda y la bolita con los últimos números a la derecha */
html.t2 #gc:has(> .gc-top) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 5.4vh 10.6vh; align-content: end; padding: 0 5vh 6vh; }
html.t2 #gc .gc-bunting { display: none; }
html.t2 #gc .gc-figure { grid-area: 1 / 1 / 3 / 2; position: relative; right: auto; bottom: auto; z-index: 2; width: auto; height: auto; min-width: 34vh; padding: 0 6.4vh 0 3vh; overflow: visible;
  display: grid; grid-template-columns: auto auto; grid-template-areas: "g l" "g n"; justify-content: start; align-content: center; justify-items: start; gap: .5vh 2vh; text-align: left;
  background: var(--t-c); color: var(--t-onc); border: 0; border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 3.4vh) 100%, 0 100%); }
html.t2 #gc .gc-figure::before { content: "Figura"; grid-area: l; align-self: end; font: 700 1.75vh/1 var(--t-mono); letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
html.t2 #gc .gc-figure.fig-sola::before { content: none; } /* «Figura A»: el rótulo «Figura» no se repite */
html.t2 #gc .gc-figure .gc-grid { grid-area: g; align-self: center; width: 10.4vh; gap: .35vh; padding: .8vh; background: #0c0b12; }
html.t2 #gc .gc-figure b { grid-area: n; align-self: start; font: 900 5.4vh/.95 var(--t-disp); text-transform: uppercase; color: inherit; text-shadow: none; white-space: nowrap; }
html.t2 #gc .gc-figure b.long { max-width: 31vh; font-size: 3.7vh; line-height: .98; white-space: normal; text-wrap: balance; }
html.t2 #gc .gc-top { grid-area: 1 / 2 / 3 / 3; position: relative; top: auto; left: auto; right: auto; z-index: 1; height: auto; min-width: 0; margin-left: -3.4vh; padding: 0 5.4vh 0 6vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: .9vh; white-space: nowrap;
  background: linear-gradient(90deg, rgba(12, 11, 18, .97), rgba(21, 19, 30, .95)); clip-path: polygon(3.4vh 0, 100% 0, calc(100% - 3.4vh) 100%, 0 100%); }
html.t2 #gc .gc-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .5vh; background: linear-gradient(90deg, var(--t-c), var(--t-foco)); }
html.t2 #gc .gc-top::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 22%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-20deg); }
html.t2 #gc .gc-title { flex: none; max-width: none; overflow: visible; font: 900 7.4vh/1.02 var(--t-disp); text-transform: uppercase; letter-spacing: .005em; color: var(--t-texto); text-shadow: none; }
html.t2 #gc .gc-sub { flex: none; overflow: visible; text-align: left; font: 700 2.5vh/1.15 var(--t-txt); color: var(--t-tenue); text-shadow: none; }
html.t2 #gc .gc-bottom { grid-area: 1 / 3 / 3 / 4; position: relative; left: auto; right: auto; bottom: auto; z-index: 0; box-sizing: border-box; width: 42vh; height: auto; min-height: 0; margin-left: -3.4vh; padding: 5.9vh 2.6vh 1.5vh 5.4vh; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: flex-start; background: #1c1828; border: 0; clip-path: polygon(3.4vh 0, 100% 0, 100% 100%, 0 100%); }
html.t2 #gc .gc-msg { min-width: 0; max-width: 100%; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: break-word; text-transform: none; font: 800 2.3vh/1.14 var(--t-txt); color: var(--t-texto); }
html.t2 #gc .gc-msg b { color: var(--t-foco); font-weight: 800; }
html.t2 #gc .gc-people { grid-area: 1 / 3 / 2 / 4; position: relative; top: auto; left: auto; z-index: 1; align-self: end; align-items: baseline; gap: 1vh; margin-left: -3.4vh; padding: 0 2.6vh 0 5.4vh; white-space: nowrap;
  background: none; border: 0; border-radius: 0; box-shadow: none; font: 700 1.6vh/1 var(--t-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--t-foco); }
html.t2 #gc .gc-people b { font: 700 2.5vh/1 var(--t-mono); letter-spacing: .04em; color: var(--t-texto); }
/* sin texto libre: los participantes al centro del recuadro */
html.t2 #gc:has(> .gc-bottom:empty) .gc-people { grid-row: 1 / 3; align-self: center; font-size: 1.9vh; }
html.t2 #gc:has(> .gc-bottom:empty) .gc-people b { font-size: 3.4vh; }
html.t2 #gc .gc-bottom:empty { width: 36vh; }
/* QR para entrar a la sala: recuadro blanco y recto, a la izquierda sobre la franja */
html.t2 #gc .gc-qr { position: absolute; top: auto; right: auto; left: 5vh; bottom: 25vh; box-sizing: border-box; width: 22vh; height: auto; padding: 1.2vh; background: #fff; border: 0; border-radius: 0; }
html.t2 #gc .gc-qr .qr { display: block; width: 100%; height: auto; aspect-ratio: 1; padding: 0; border-radius: 0; }
/* Bolita y últimos números: a la derecha sobre la franja */
html.t2 #gc .gc-draw { position: absolute; left: auto; right: 6.3vh; bottom: 26.3vh; width: auto; height: auto; display: flex; align-items: flex-end; gap: 2.2vh; background: none; border: 0; border-radius: 0; }
html.t2 #gc .gc-ballwrap { order: 2; position: static; left: auto; bottom: auto; transform: none; display: block; line-height: 0; }
html.t2 #gc .gc-ballwrap.pop { animation: t2b-bola .7s cubic-bezier(.2, .9, .2, 1) both; }
html.t2 #gc .ball.gcball { --d: 22vh; }
html.t2 #gc .gc-prev[hidden] { order: 1; display: flex !important; /* styles.css oculta todo [hidden] con !important */ align-items: flex-end; gap: 1.5vh; padding-bottom: .4vh; }
html.t2 #gc .ball.gcprev { --d: 8vh; background: #1c1828; }
/* Antes del primer número */
html.t2 #gc .gc-prev[hidden]:empty { display: none !important; }
html.t2 #gc .gc-soon { order: 2; position: static; inset: auto; display: block; margin: 0 -1.3vh -1.3vh 0; padding: 1.8vh 3vh 1.8vh 2.4vh; text-align: left; background: rgba(12, 11, 18, .96); border-left: .6vh solid var(--t-foco);
  font: 900 4.6vh/1.1 var(--t-disp); text-transform: uppercase; color: var(--t-foco); text-shadow: none; animation: none; }
/* «A continuación» y los logos, arriba */
html.t2 #gc .next-up { position: absolute; left: 5vh; right: auto; top: 5vh; bottom: auto; transform: none; max-width: 100vh; gap: 1.6vh; padding: 1.1vh 2.2vh 1.1vh 1.8vh; border: 0; border-left: .5vh solid var(--t-c); border-radius: 0; clip-path: none;
  background: rgba(12, 11, 18, .95); box-shadow: none; font-family: var(--t-txt); color: var(--t-texto); animation: none; }
html.t2 #gc .next-up small { font: 700 1.7vh/1 var(--t-mono); letter-spacing: .18em; color: var(--t-foco); }
html.t2 #gc .next-up b { font: 700 2.4vh/1 var(--t-mono); color: var(--t-c); }
html.t2 #gc .next-up span { font: 900 min(3.2vh, calc(70vh / (var(--n, 8) * .46)))/1 var(--t-disp); overflow: visible; text-overflow: clip; }
html.t2 .venue-mark.vm-obs-bingo { left: auto; right: 5vh; top: 5vh; bottom: auto; transform: none; }
/* Entrada (solo la primera vez que se dibuja): la etiqueta desde la izquierda, la franja se abre, el recuadro desde la
   derecha, el texto sube y cruza un destello */
html.t2 #gc.t2-entra .gc-figure { animation: t2b-izq .55s cubic-bezier(.2, .9, .2, 1) both; }
html.t2 #gc.t2-entra .gc-top { transform-origin: 0 50%; animation: t2abre .6s cubic-bezier(.2, .9, .2, 1) .12s both; }
html.t2 #gc.t2-entra .gc-top::after { animation: t2destello 1.1s ease-out .75s both; }
html.t2 #gc.t2-entra .gc-bottom { animation: t2b-der .55s cubic-bezier(.2, .9, .2, 1) .28s both; }
html.t2 #gc.t2-entra .gc-title { animation: t2sube .5s cubic-bezier(.2, .9, .2, 1) .42s both; }
html.t2 #gc.t2-entra .gc-sub { animation: t2sube .5s cubic-bezier(.2, .9, .2, 1) .54s both; }
html.t2 #gc.t2-entra .gc-people, html.t2 #gc.t2-entra .gc-msg { animation: t2sube .5s cubic-bezier(.2, .9, .2, 1) .7s both; }
html.t2 #gc.t2-entra .gc-qr, html.t2 #gc.t2-entra .gc-draw, html.t2 #gc.t2-entra .next-up { animation: t2sube .5s cubic-bezier(.2, .9, .2, 1) .6s both; }
/* Sin sala abierta: solo el QR con su frase, abajo a la izquierda (la frase no pasa del ancho del QR) */
html.t2 #gc:has(> .gc-idle-label) { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0 5vh 6vh; }
html.t2 #gc:has(> .gc-idle-label) > .gc-qr { position: static; }
html.t2 #gc .gc-idle-label { position: static; top: auto; right: auto; box-sizing: border-box; width: 22vh; padding: 1.3vh 1.4vh 1.5vh; text-align: center; background: rgba(12, 11, 18, .96); border-top: .5vh solid var(--t-foco);
  font: 800 1.75vh/1.25 var(--t-txt); text-transform: none; color: var(--t-texto); text-shadow: none; }

/* Ganador en el GC: cartel dorado en la franja inferior (se queda hasta confirmar; confirmado, se retira a los 15 s) */
html.t2 #gc .gc-winlow { left: 5vh; right: auto; bottom: 6vh; transform: none; box-sizing: border-box; min-width: 0; max-width: calc(100vw - 10vh); height: 16vh; padding: 0;
  display: grid; grid-template-columns: auto auto; grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr); justify-items: start; gap: .7vh 0; text-align: left;
  color: var(--t-texto); background: none; border: 0; border-radius: 0; box-shadow: none; font-family: var(--t-txt);
  animation: t2b-baja .6s cubic-bezier(.2, .9, .2, 1) both, t2b-sale .5s ease-in 14.5s forwards; }
html.t2 #gc .gc-winlow.hold { animation: t2b-baja .6s cubic-bezier(.2, .9, .2, 1) both; }
html.t2 #gc .gc-winlow::before { content: ""; grid-area: 1 / 2 / 3 / 3; align-self: stretch; justify-self: stretch; margin-left: -3.4vh; background: linear-gradient(90deg, rgba(12, 11, 18, .97), rgba(21, 19, 30, .95)); clip-path: polygon(3.4vh 0, 100% 0, calc(100% - 3.4vh) 100%, 0 100%); }
html.t2 #gc .gc-winlow::after { content: ""; grid-area: 1 / 2 / 2 / 3; align-self: start; justify-self: stretch; height: .5vh; background: var(--t-foco); clip-path: polygon(0 0, 100% 0, calc(100% - .11vh) 100%, 0 100%); }
html.t2 #gc .gc-winlow-tag { grid-area: 1 / 1 / 3 / 2; position: relative; top: auto; left: auto; transform: none; z-index: 1; align-self: stretch; display: flex; align-items: center; padding: 0 6.6vh 0 3.2vh; white-space: nowrap;
  background: var(--t-foco); color: var(--t-foco-tinta); border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 3.4vh) 100%, 0 100%); font: 900 5.4vh/.95 var(--t-disp); letter-spacing: .005em; text-transform: uppercase; }
html.t2 #gc .gc-winlow b { grid-area: 1 / 2 / 2 / 3; position: relative; z-index: 1; align-self: end; padding: 0 6.4vh 0 4.6vh; white-space: nowrap; overflow-wrap: normal;
  font: 900 min(8.2vh, calc((100vw - 76vh) / (var(--n, 8) * .47)))/.98 var(--t-disp); text-transform: uppercase; color: var(--t-foco); text-shadow: none; }
html.t2 #gc .gc-winlow.many b { font-size: min(5.2vh, calc((100vw - 82vh) / (var(--n, 8) * .47))); }
html.t2 #gc .gc-winlow small { grid-area: 2 / 2 / 3 / 3; position: relative; z-index: 1; align-self: start; padding: 0 6.4vh 0 4.6vh; white-space: nowrap; font: 700 2vh/1 var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t-tenue); }

/* ---------- Ganador del bingo a pantalla completa (.bwin): rayos dorados, «¡BINGO!», el nombre entero y su cartón ---------- */
html.t2 #fb .bwin, html.t2 #gc .bwin { font-family: var(--t-txt); color: var(--t-texto); }
html.t2 #fb .bwin .confetti, html.t2 #gc .bwin .confetti { display: none; }
html.t2 #fb .bwin-card, html.t2 #gc .bwin-card { box-sizing: border-box; min-width: 0; gap: 1.8vh; border: 0; border-radius: 0; box-shadow: none; animation: t2sube .6s cubic-bezier(.2, .9, .2, 1) both; }
html.t2 #fb .bwin-title, html.t2 #gc .bwin-title { padding: .04em .06em 0; font: 900 30vh/.84 var(--t-disp); letter-spacing: 0; text-transform: uppercase; text-shadow: none; animation: none;
  background: linear-gradient(180deg, #fff3cf, var(--t-foco) 55%, #b9812a); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.t2 #fb .bwin-names, html.t2 #gc .bwin-names { gap: 2vh 5vh; max-width: 90vw; }
html.t2 #fb .bwin-names span, html.t2 #gc .bwin-names span { min-width: 0; max-width: 90vw; gap: 1vh; }
html.t2 #fb .bwin-names b, html.t2 #gc .bwin-names b { font: 900 min(11vh, calc(86vw / (var(--n, 8) * .47)))/.98 var(--t-disp); text-transform: uppercase; color: var(--t-texto); text-shadow: none; white-space: nowrap; overflow-wrap: normal; }
html.t2 #fb .bwin-names small, html.t2 #gc .bwin-names small { font: 700 2.6vh/1 var(--t-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--t-foco); opacity: 1; }
html.t2 #fb .bwin-sub, html.t2 #gc .bwin-sub { padding: .8vh 2.6vh .8vh 1.8vh; background: var(--t-c); color: var(--t-onc); border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 1.1vh) 100%, 0 100%); font: 700 2.1vh/1 var(--t-mono); letter-spacing: .18em; text-transform: uppercase; }
html.t2 #fb .bwin-more, html.t2 #gc .bwin-more { font: 700 2.4vh/1 var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t-tenue); }
/* Dos o más ganadores: el título más chico para que quepan todos los nombres enteros */
html.t2 #fb .bwin:not(.many) .bwin-card:has(.bwin-names span:nth-child(2)) .bwin-title, html.t2 #gc .bwin:not(.many) .bwin-card:has(.bwin-names span:nth-child(2)) .bwin-title { font-size: 21vh; }
html.t2 #fb .bwin:not(.many) .bwin-card:has(.bwin-names span:nth-child(2)) .bwin-names b, html.t2 #gc .bwin:not(.many) .bwin-card:has(.bwin-names span:nth-child(2)) .bwin-names b { font-size: min(8.4vh, calc(86vw / (var(--n, 8) * .47))); }
html.t2 #fb .bwin.many .bwin-title, html.t2 #gc .bwin.many .bwin-title { font-size: 17vh; }
html.t2 #fb .bwin.many .bwin-names b, html.t2 #gc .bwin.many .bwin-names b { font-size: min(6vh, calc(42vw / (var(--n, 8) * .47))); }
html.t2 #fb .bwin.many .bwin-names span, html.t2 #gc .bwin.many .bwin-names span { max-width: 44vw; gap: .6vh; }
html.t2 #fb .bwin.many .bwin-names small, html.t2 #gc .bwin.many .bwin-names small { font-size: 2vh; }
/* En el tablero: sin recuadro, sobre los rayos que giran lento */
html.t2 #fb .bwin { background: none; }
html.t2 #fb .bwin::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; pointer-events: none;
  background: repeating-conic-gradient(color-mix(in srgb, var(--t-foco) 22%, transparent) 0 6deg, transparent 6deg 15deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 68%); mask: radial-gradient(circle, #000 0, transparent 68%); animation: t2b-gira 40s linear infinite; }
html.t2 #fb .bwin-card { max-width: 94vw; padding: 0; background: none; }
/* En el GC (sobre la cámara, 6 s): un recuadro oscuro con cortes en diagonal y los rayos quietos adentro */
html.t2 #gc .bwin-card { max-width: 92vw; padding: 4.6vh 9vh 5vh; overflow: hidden; background: rgba(12, 11, 18, .96); clip-path: polygon(3.4vh 0, 100% 0, calc(100% - 3.4vh) 100%, 0 100%); }
html.t2 #gc .bwin-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .6vh; background: linear-gradient(90deg, var(--t-c), var(--t-foco)); }
html.t2 #gc .bwin-card::after { content: ""; position: absolute; left: 50%; top: 50%; width: 180vh; height: 180vh; margin: -90vh 0 0 -90vh; pointer-events: none;
  background: repeating-conic-gradient(color-mix(in srgb, var(--t-foco) 16%, transparent) 0 6deg, transparent 6deg 15deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 62%); mask: radial-gradient(circle, #000 0, transparent 62%); }
html.t2 #gc .bwin-card > * { position: relative; z-index: 1; }
html.t2 #gc .bwin-title { font-size: 24vh; }
html.t2 #gc .bwin-names b { font-size: min(10vh, calc(74vw / (var(--n, 8) * .47))); }
html.t2 #gc .bwin:not(.many) .bwin-card:has(.bwin-names span:nth-child(2)) .bwin-title { font-size: 18vh; }
html.t2 #gc .bwin:not(.many) .bwin-card:has(.bwin-names span:nth-child(2)) .bwin-names b { font-size: min(7.6vh, calc(74vw / (var(--n, 8) * .47))); }
html.t2 #gc .bwin.many .bwin-title { font-size: 15vh; }
html.t2 #gc .bwin.many .bwin-names b { font-size: min(5.4vh, calc(36vw / (var(--n, 8) * .47))); }
html.t2 #gc .bwin.many .bwin-names span { max-width: 38vw; }

/* ---------- Cartel con el QR grande (al abrir la sala, y «QR en pantalla»): QR blanco y recto a la izquierda, texto a la derecha ---------- */
html.t2 #gc .gc-big, html.t2 #fb .gc-big { box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; grid-template-areas: "qr ." "qr title" "qr text" "qr count" "qr ."; align-content: center; justify-items: start; gap: 2.6vh 5.5vh;
  max-width: min(164vh, 92vw); padding: 4vh 7vh 4vh 4vh; text-align: left; font-family: var(--t-txt); color: var(--t-texto); background: rgba(12, 11, 18, .96); border: 0; border-left: .8vh solid var(--t-foco); border-radius: 0; box-shadow: none;
  animation: t2sube .6s cubic-bezier(.2, .9, .2, 1) both; }
html.t2 #fb .gc-big { background: rgba(21, 19, 30, .92); outline: .2vh solid var(--t-linea); outline-offset: -.2vh; }
html.t2 #gc .gc-big-qr, html.t2 #fb .gc-big-qr { grid-area: qr; align-self: center; }
html.t2 #gc .gc-big-qr .qr, html.t2 #fb .gc-big-qr .qr { display: block; width: 52vh; height: 52vh; padding: 2.2vh; border-radius: 0; background: #fff; }
html.t2 #gc .gc-big-title, html.t2 #fb .gc-big-title { grid-area: title; align-self: end; max-width: 92vh; padding-bottom: 2.2vh; white-space: normal; text-wrap: balance; font: 900 10.5vh/.94 var(--t-disp); text-transform: uppercase; color: var(--t-texto); text-shadow: none;
  border-bottom: .4vh solid; border-image: linear-gradient(90deg, var(--t-c), var(--t-foco) 60%, transparent) 1; }
html.t2 #gc .gc-big-text, html.t2 #fb .gc-big-text { grid-area: text; max-width: 84vh; font: 800 4.1vh/1.2 var(--t-txt); color: var(--t-texto); }
html.t2 #gc .gc-big-count, html.t2 #fb .gc-big-count { grid-area: count; align-self: start; padding: 1vh 3vh 1vh 2vh; background: var(--t-c); color: var(--t-onc); border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 1.2vh) 100%, 0 100%); font: 700 2.2vh/1 var(--t-mono); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Tablero del bingo (#fb), pantalla horizontal del local ---------- */
html.t2 #fb { font-family: var(--t-txt); color: var(--t-texto); grid-template-columns: 40vh minmax(0, 1fr) auto auto; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: none; align-content: normal; gap: 3vh 3.4vh; padding: 4.2vh 5vh 4vh; }
/* mientras se ve el botón «Activar sonido» (abajo a la derecha) se le deja su espacio, para que no tape el QR */
html.t2 body.full:has(> .sound-btn:not([hidden])) #fb { padding-bottom: 9.4vh; }
html.t2 body.full.has-vm #fb { padding-bottom: 7.5vh; }
html.t2 body.full.has-vm:has(> .sound-btn:not([hidden])) #fb { padding-bottom: 9.4vh; }
/* Encabezado: el título grande a la izquierda, participantes y ronda a la derecha, y una línea fina debajo */
html.t2 #fb .fb-top, html.t2 #fb .fb-side { display: contents; }
html.t2 #fb:has(> .fb-top)::before { content: ""; grid-area: 1 / 1 / 2 / -1; align-self: end; height: .3vh; margin-bottom: -1.5vh; background: linear-gradient(90deg, var(--t-c), var(--t-foco) 45%, transparent); }
html.t2 #fb .fb-title { grid-area: 1 / 1 / 2 / 3; align-self: end; flex: none; min-width: 0; overflow: visible; text-align: left; white-space: nowrap; font: 900 7.8vh/.9 var(--t-disp); letter-spacing: .005em; text-transform: uppercase; color: var(--t-texto); text-shadow: none; }
html.t2 #fb .fb-pill { align-self: end; padding: 0 0 .5vh; background: none; border-radius: 0; white-space: nowrap; font: 700 1.9vh/1 var(--t-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--t-tenue); }
html.t2 #fb .fb-pill b { font: 700 3vh/1 var(--t-mono); letter-spacing: .04em; color: var(--t-foco); }
html.t2 #fb .fb-pill:nth-of-type(1) { grid-area: 1 / 3 / 2 / 4; }
html.t2 #fb .fb-pill:nth-of-type(2) { grid-area: 1 / 4 / 2 / 5; padding-left: 3.4vh; border-left: .2vh solid var(--t-linea); }
/* «Van N de 75», bajo la grilla */
html.t2 #fb .fb-pill:nth-of-type(3) { grid-area: 3 / 2 / 4 / -1; justify-self: start; align-self: center; padding: 0; font-size: 2.3vh; }
html.t2 #fb .fb-pill:nth-of-type(3)::before { content: "Van "; }
html.t2 #fb .fb-pill:nth-of-type(3) b { font-size: 3.4vh; }
/* Izquierda: «Último número», la bolita grande y los cinco anteriores; abajo, la figura */
html.t2 #fb .fb-left { grid-area: 2 / 1 / 3 / 2; align-content: center; justify-items: center; gap: 3vh; min-width: 0; }
html.t2 #fb .fb-left:has(.fb-ballwrap)::before { content: "Último número"; padding: .8vh 2.6vh .8vh 1.7vh; background: var(--t-c); color: var(--t-onc); clip-path: polygon(0 0, 100% 0, calc(100% - 1.1vh) 100%, 0 100%); font: 700 1.9vh/1 var(--t-mono); letter-spacing: .18em; text-transform: uppercase; }
html.t2 #fb .ball.fbball { --d: 30vh; }
html.t2 #fb .fb-ballwrap { line-height: 0; }
html.t2 #fb .fb-ballwrap.pop { animation: t2b-bola .8s cubic-bezier(.2, .9, .2, 1) both; }
html.t2 #fb .fb-prev { gap: 1.4vh; min-height: 6.8vh; margin-top: .6vh; }
html.t2 #fb .ball.fbprev { --d: 6.8vh; }
html.t2 #fb .fb-soon { box-sizing: border-box; width: 30vh; height: 30vh; min-height: 0; border: .3vh dashed color-mix(in srgb, var(--t-foco) 45%, transparent); border-radius: 50%; font: 900 5.2vh/1.06 var(--t-disp); text-transform: uppercase; color: var(--t-foco); text-shadow: none; animation: none; }
html.t2 #fb .fb-figure { grid-area: 3 / 1 / 4 / 2; justify-self: center; align-self: center; max-width: 100%; padding: 0; display: grid; grid-template-columns: auto minmax(0, auto); grid-template-areas: "g l" "g n"; align-content: center; justify-items: start; gap: .8vh 2vh; text-align: left;
  background: none; border: 0; border-radius: 0; box-shadow: none; }
html.t2 #fb .fb-figure > span { grid-area: l; align-self: end; font: 700 1.8vh/1 var(--t-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--t-foco); }
html.t2 #fb .fb-figure.fig-sola > span { display: none; } /* «Figura A»: el rótulo «Figura» no se repite */
html.t2 #fb .fb-figure.fig-sola b { grid-row: 1 / 3; align-self: center; }
html.t2 #gc .gc-figure.fig-sola b { grid-row: 1 / 3; align-self: center; }
html.t2 #fb .fb-figure .gc-grid { grid-area: g; align-self: center; width: 11.2vh; gap: .4vh; }
html.t2 #fb .fb-figure b { grid-area: n; align-self: start; max-width: 25vh; font: 900 3.7vh/.98 var(--t-disp); text-transform: uppercase; color: var(--t-texto); text-wrap: balance; }
/* Grilla B-I-N-G-O de los 75: cantados en dorado, el último en el color del local */
html.t2 #fb .fb-board { grid-area: 2 / 2 / 3 / -1; align-self: stretch; min-width: 0; grid-template-columns: none; grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 1vh; padding: 0; background: none; border: 0; border-radius: 0; }
html.t2 #fb .fb-row { grid-template-columns: 6.6vh repeat(15, minmax(0, 1fr)); grid-template-rows: none; gap: .8vh; align-items: stretch; height: auto; }
html.t2 #fb .fb-row > b { height: auto; padding: 0; background: var(--t-c); color: var(--t-onc); border: 0; border-radius: 0; font: 900 6.4vh/1 var(--t-disp); }
html.t2 #fb .fb-row > span { width: auto; height: auto; min-height: 0; justify-self: stretch; aspect-ratio: auto; border-radius: 0; background: rgba(21, 19, 30, .85); border: .15vh solid var(--t-linea); box-shadow: none; outline: 0; font: 900 5.2vh/1 var(--t-disp); color: #5d5869; }
html.t2 #fb .fb-row > span.hit { background: var(--t-foco); border-color: var(--t-foco); color: var(--t-foco-tinta); box-shadow: none; }
html.t2 #fb .fb-row > span.last { position: relative; z-index: 1; background: var(--t-c); border-color: #fff; color: var(--t-onc); outline: 0; animation: t2b-late 1s ease-in-out infinite; }
/* QR con su frase, bajo la grilla a la derecha */
html.t2 #fb .fb-qr { grid-area: 3 / 2 / 4 / -1; justify-self: end; align-self: center; display: flex; align-items: center; gap: 2.4vh; padding: 1.2vh 2.8vh 1.2vh 1.2vh; text-align: left; background: var(--t-tarima); border: .2vh solid var(--t-linea); border-left: .6vh solid var(--t-foco); border-radius: 0; box-shadow: none; }
html.t2 #fb .fb-qr .qr { flex: none; width: 11vh; height: 11vh; padding: .6vh; border-radius: 0; background: #fff; }
html.t2 #fb .fb-qr > span { max-width: 36vh; font: 900 3.1vh/.98 var(--t-disp); text-transform: uppercase; text-wrap: balance; }
/* Entrada, solo la primera vez que se dibuja */
html.t2 #fb.t2-entra .fb-title, html.t2 #fb.t2-entra .fb-pill { animation: t2sube .5s cubic-bezier(.2, .9, .2, 1) both; }
html.t2 #fb.t2-entra .fb-left { animation: t2sube .6s cubic-bezier(.2, .9, .2, 1) .1s both; }
html.t2 #fb.t2-entra .fb-board { animation: t2sube .6s cubic-bezier(.2, .9, .2, 1) .2s both; }
html.t2 #fb.t2-entra .fb-figure, html.t2 #fb.t2-entra .fb-qr { animation: t2sube .6s cubic-bezier(.2, .9, .2, 1) .32s both; }
html.t2 #fb.t2-entra::before { transform-origin: 0 50%; animation: t2abre .7s cubic-bezier(.2, .9, .2, 1) both; }

/* Sin nada en juego, y «QR en pantalla»: el QR grande a la izquierda y el texto a la derecha */
html.t2 #fb .fb-idle { grid-template-columns: auto minmax(0, auto); grid-template-rows: 1fr auto auto auto 1fr; grid-template-areas: "qr ." "qr b" "qr s" "qr z" "qr ."; place-content: center; justify-items: start; gap: 2.6vh 6vh; padding: 0 5vh; text-align: left; }
html.t2 #fb .fb-idle-qr { grid-area: qr; align-self: center; padding: 2.2vh; background: #fff; border: 0; border-radius: 0; box-shadow: none; animation: none; }
html.t2 #fb .fb-idle-qr .qr { width: 52vh; height: 52vh; }
html.t2 #fb .fb-idle b { grid-area: b; align-self: end; max-width: 84vh; padding-bottom: 2.2vh; white-space: normal; font: 900 12vh/.92 var(--t-disp); text-transform: uppercase; color: var(--t-texto); text-shadow: none;
  border-bottom: .4vh solid; border-image: linear-gradient(90deg, var(--t-c), var(--t-foco) 60%, transparent) 1; }
html.t2 #fb .fb-idle b i { display: block; margin-bottom: 1.6vh; font: 700 2.3vh/1 var(--t-mono); letter-spacing: .22em; color: var(--t-foco); }
html.t2 #fb .fb-idle small:not(.soon) { grid-area: s; max-width: 84vh; white-space: normal; font: 800 4.3vh/1.2 var(--t-txt); color: var(--t-texto); opacity: 1; }
html.t2 #fb .fb-idle small.soon { grid-area: z; align-self: start; margin: 0; padding: 1vh 3vh 1vh 2vh; white-space: nowrap; background: var(--t-foco); color: var(--t-foco-tinta); clip-path: polygon(0 0, 100% 0, calc(100% - 1.2vh) 100%, 0 100%); font: 700 2.2vh/1 var(--t-mono); letter-spacing: .16em; text-transform: uppercase; opacity: 1; }
html.t2 #fb .fb-idle > * { animation: t2sube .6s cubic-bezier(.2, .9, .2, 1) both; }

/* ---------- El bingo en la pantalla de pie (#/tablero-v y las pantallas verticales): todo en una columna ---------- */
@media (orientation: portrait) and (min-width: 300px) {
  html.t2 #fb { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; align-content: space-between; gap: 1.3vh 3.4vw; padding: 2.4vh 5.4vw 2.2vh; }
  html.t2 body.full:has(> .sound-btn:not([hidden])) #fb, html.t2 body.full.has-vm:has(> .sound-btn:not([hidden])) #fb { padding-bottom: 2.2vh; }
  html.t2 body.full.has-vm #fb, html.t2 body.full.has-vm:has(> .sound-btn:not([hidden])) #fb { padding-bottom: 5.6vh; }
  html.t2 #fb:has(> .fb-top)::before { grid-area: 1 / 1 / 2 / -1; margin-bottom: -.6vh; height: .22vh; background: linear-gradient(90deg, transparent, var(--t-c), var(--t-foco), transparent); }
  html.t2 #fb .fb-title { grid-area: 1 / 1 / 2 / -1; text-align: center; font-size: min(6.4vh, 12.4vw); line-height: .92; }
  html.t2 #fb .fb-pill { align-self: center; padding: 0; font-size: min(1.35vh, 2.5vw); }
  html.t2 #fb .fb-pill b { font-size: min(2vh, 3.7vw); }
  html.t2 #fb .fb-pill:nth-of-type(1) { grid-area: 2 / 1 / 3 / 2; justify-self: end; }
  html.t2 #fb .fb-pill:nth-of-type(2) { grid-area: 2 / 2 / 3 / 3; padding: 0 3.4vw; border-left: .15vh solid var(--t-linea); border-right: .15vh solid var(--t-linea); }
  html.t2 #fb .fb-pill:nth-of-type(3) { grid-area: 2 / 3 / 3 / 4; justify-self: start; font-size: min(1.35vh, 2.5vw); }
  html.t2 #fb .fb-pill:nth-of-type(3) b { font-size: min(2vh, 3.7vw); }
  html.t2 #fb .fb-left { grid-area: 3 / 1 / 4 / -1; gap: 1.5vh; }
  html.t2 #fb .fb-left:has(.fb-ballwrap)::before { padding: .55vh 1.9vh .55vh 1.2vh; font-size: 1.25vh; }
  html.t2 #fb .ball.fbball { --d: min(15.6vh, 40vw); }
  html.t2 #fb .ball.fbball .l { font-size: calc(var(--d) * .13); } html.t2 #fb .ball.fbball .v { font-size: calc(var(--d) * .56); }
  html.t2 #fb .ball.fbprev { --d: min(4.4vh, 11vw); }
  html.t2 #fb .ball.fbprev .v { font-size: calc(var(--d) * .56); }
  html.t2 #fb .fb-prev { gap: 1vh; min-height: min(4.4vh, 11vw); margin-top: .5vh; }
  html.t2 #fb .fb-soon { width: min(15.6vh, 40vw); height: min(15.6vh, 40vw); font-size: min(2.7vh, 7vw); }
  html.t2 #fb .fb-figure { grid-area: 4 / 1 / 5 / -1; grid-template-areas: "g l" "g n"; gap: .4vh 1.6vh; padding: 0; }
  html.t2 #fb .fb-figure > span { font-size: 1.2vh; }
  html.t2 #fb .fb-figure .gc-grid { width: 6.4vh; gap: .25vh; }
  html.t2 #fb .fb-figure b { max-width: 60vw; font-size: 2.7vh; }
  html.t2 #fb .fb-qr { display: none; } /* de pie, sin QR junto a la figura (pedido de Cote) */
  html.t2 #fb .fb-board { grid-area: 5 / 1 / 6 / -1; align-self: end; grid-template-rows: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8vw; padding: 0; }
  html.t2 #fb .fb-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; gap: .36vh; height: auto; }
  html.t2 #fb .fb-row > b { height: 3.1vh; padding: 0; font-size: 2.9vh; line-height: 1; }
  html.t2 #fb .fb-row > span { height: 2.16vh; border-width: .1vh; font-size: 2vh; }
  html.t2 #fb .fb-row > span.last { animation: none; }
  /* Portada con el QR y cartel del QR grande: en una columna, medidos según el ancho */
  html.t2 #fb .fb-idle { grid-template-columns: minmax(0, auto); grid-template-rows: none; grid-template-areas: "b" "qr" "s" "z"; justify-items: center; gap: 4vw; padding: 0 6vw; text-align: center; }
  html.t2 #fb .fb-idle b { max-width: 86vw; padding-bottom: 3vw; font-size: 15vw; white-space: normal; }
  html.t2 #fb .fb-idle b i { margin-bottom: 2.4vw; font-size: 3.2vw; }
  html.t2 #fb .fb-idle-qr { padding: 3.4vw; }
  html.t2 #fb .fb-idle-qr .qr { width: 62vw; height: 62vw; }
  html.t2 #fb .fb-idle small:not(.soon) { max-width: 84vw; font-size: 5.2vw; white-space: normal; }
  html.t2 #fb .fb-idle small.soon { padding: 1.4vw 4.6vw 1.4vw 3vw; font-size: 3vw; white-space: nowrap; }
  html.t2 #fb .fb-bigqr { width: 90vw; max-width: 90vw; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "title" "qr" "text" "count"; justify-items: center; gap: 4vw; padding: 6vw 5vw; border-left: 0; border-top: 1.2vw solid var(--t-foco); border-radius: 0; text-align: center; }
  html.t2 #fb .fb-bigqr .gc-big-title { max-width: 80vw; padding-bottom: 3vw; font-size: 13vw; white-space: normal; border-image: linear-gradient(90deg, transparent, var(--t-c), var(--t-foco), transparent) 1; }
  html.t2 #fb .fb-bigqr .gc-big-qr .qr { width: 66vw; height: 66vw; padding: 3.4vw; border-radius: 0; }
  html.t2 #fb .fb-bigqr .gc-big-text { max-width: 80vw; font-size: 5vw; }
  html.t2 #fb .fb-bigqr .gc-big-count { align-self: center; padding: 1.4vw 4.6vw 1.4vw 3vw; font-size: 3vw; }
  /* Ganador, de pie: medido según el ancho */
  html.t2 #fb .bwin-card { width: 92vw; max-width: 92vw; gap: 3vw; padding: 0; }
  html.t2 #fb .bwin-title, html.t2 #fb .bwin:not(.many) .bwin-card:has(.bwin-names span:nth-child(2)) .bwin-title { font-size: 33vw; }
  html.t2 #fb .bwin-names { flex-direction: column; align-items: center; max-width: 90vw; gap: 4vw; }
  html.t2 #fb .bwin-names span { max-width: 90vw; gap: 1.4vw; }
  html.t2 #fb .bwin-names b, html.t2 #fb .bwin:not(.many) .bwin-card:has(.bwin-names span:nth-child(2)) .bwin-names b { font-size: min(16vw, calc(86vw / (var(--n, 8) * .47))); }
  html.t2 #fb .bwin-names small { font-size: 3.6vw; }
  html.t2 #fb .bwin-sub { padding: 1.2vw 4vw 1.2vw 2.8vw; font-size: 3.2vw; }
  html.t2 #fb .bwin-more { font-size: 3.4vw; }
  html.t2 #fb .bwin.many .bwin-title { font-size: 24vw; }
  html.t2 #fb .bwin.many .bwin-names { gap: 2.4vw; }
  html.t2 #fb .bwin.many .bwin-names span { max-width: 90vw; }
  html.t2 #fb .bwin.many .bwin-names b { font-size: min(8.4vw, calc(86vw / (var(--n, 8) * .47))); }
  html.t2 #fb .bwin.many .bwin-names small { font-size: 2.8vw; }
}

/* ---------- QR chico de la esquina (joinQr): recuadro blanco y recto; la frase en dos líneas, nunca más ancha que el QR ---------- */
html.t2 .join-qr { gap: .7vh; padding: 1.2vh 1.2vh 1vh; background: #fff; border: 0; border-radius: 0; box-shadow: 0 1vh 2.4vh rgba(0, 0, 0, .4); font-family: var(--t-txt); }
html.t2 .join-qr b { font: 800 1.55vh/1.2 var(--t-txt); letter-spacing: 0; text-transform: none; color: #0c0b12; }
@media (orientation: portrait) and (min-width: 300px) {
  html.t2 body.full .join-qr { gap: .7vw; padding: 1.4vw 1.4vw 1.1vw; border: 0; border-radius: 0; }
  html.t2 body.full .join-qr b { font-size: 1.62vw; }
}

@media (prefers-reduced-motion: reduce) {
  html.t2 #gc.t2-entra *, html.t2 #gc.t2-entra .gc-top::after, html.t2 #fb.t2-entra *, html.t2 #fb.t2-entra::before, html.t2 #fb .fb-idle > *, html.t2 #gc .gc-big, html.t2 #fb .gc-big, html.t2 #fb .bwin-card, html.t2 #gc .bwin-card,
  html.t2 #fb .bwin::before, html.t2 #fb .fb-row > span.last, html.t2 #gc .gc-ballwrap.pop, html.t2 #fb .fb-ballwrap.pop { animation: none; }
  html.t2 #gc .gc-winlow { animation: t2b-sale .01s linear 15s forwards; }
  html.t2 #gc .gc-winlow.hold { animation: none; }
}
