:root {
  color-scheme: dark;
  --bg: #12101f; --surface: #1c1933; --raised: #2a2650; --ink: #f2effc; --muted: #a8a3cc; --line: #3a3566;
  --primary: #6f5df0; --primary-ink: #fff; --link: #b3a9ff; --mark: #f08a1c; --win: #22a862; --danger: #ff7b6b;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.top { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ink); }
.top a { color: #fff; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .95rem; }
.top nav a { opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: transform .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--primary); }
.tile b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 0; list-style: none; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 6px; }

button, .btn { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 16px; border-radius: 999px; text-decoration: none; display: inline-block; }
/* solo con ratón: en celular el «hover» se queda pegado tras tocar y parece una marca */
@media (hover: hover) { button:not(.cell):hover, .btn:hover { border-color: var(--primary); } }
button.primary, .btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
button.big { font-size: 1.15rem; padding: 14px 26px; }
button.danger { color: var(--danger); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.on { background: var(--primary); color: #fff; border-color: var(--primary); }

form.fields, .fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label.f { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
label.f span.hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=number], input[type=password], select, textarea { font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
textarea { min-height: 160px; resize: vertical; }
.wide { grid-column: 1 / -1; }
label.check { display: flex; gap: 8px; align-items: center; font-size: .95rem; }

table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.scroll-x { overflow-x: auto; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; background: var(--raised); color: var(--link); font-weight: 600; }
.tag.live { background: #153d2a; color: #5fe0a0; }
.panel.winners { border: 2px solid var(--win); }
.panel.winners h2 { font-size: 1.4rem; }
.validated { text-decoration: line-through; color: var(--muted); }

/* Bolas */
.ball { display: inline-grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 32% 26%, #fff8dc 0, #ffd76a 42%, #f0a81c 100%); color: #1d1a2b; font-weight: 800; text-align: center; line-height: 1.05; box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 12px; overflow: hidden; }
.ball .l { font-size: 1.3rem; display: block; }
.ball .v { font-size: 3rem; display: block; }
.ball.text .v { font-size: 1.05rem; }
.ball.prev { width: 96px; height: 96px; filter: grayscale(.6); }
.ball.prev .l { font-size: .9rem; } .ball.prev .v { font-size: 1.8rem; } .ball.prev.text .v { font-size: .7rem; }
.ball.sm { width: 30px; height: 30px; padding: 0; font-size: .95rem; box-shadow: none; }
.draws { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; }
.draws figure { margin: 0; text-align: center; }
.draws figcaption { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Tablero de números */
.board { display: grid; gap: 4px; }
.board-row { display: grid; grid-template-columns: 34px 1fr; gap: 4px; align-items: stretch; }
.board-row > b { display: grid; place-items: center; background: var(--primary); color: #fff; border-radius: 6px; }
.board-cells { display: grid; gap: 4px; grid-template-columns: repeat(var(--per, 15), minmax(0, 1fr)); }
.board.text .board-cells { display: flex; flex-wrap: wrap; }
.bn { border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 5px 2px; text-align: center; font-size: clamp(.65rem, 1.6vw, 1rem); font-weight: 600; color: #5d588c; min-width: 0; }
.board.text .bn { padding: 4px 8px; font-size: .8rem; }
.bn.hit { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bn.last { background: var(--mark); border-color: var(--mark); color: #fff; }
.board.pick .bn { cursor: pointer; }
.board.pick .bn:not(.hit):hover { border-color: var(--primary); color: var(--primary); }
.history { display: flex; flex-wrap: wrap; gap: 6px; }
.history span { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .85rem; }

/* Cartones */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 2px solid #5a54a0; border-radius: 10px; padding: 8px; max-width: 460px; width: 100%; margin: 0 auto; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .85rem; font-weight: 700; padding: 0 2px 6px; }
.card-top .left { color: #ffc46b; font-size: .95rem; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.grid5.head span { background: var(--primary); color: #fff; text-align: center; font-weight: 800; font-size: 1.3rem; border-radius: 6px; padding: 2px 0; }
.grid5.cells { margin-top: 4px; }
.cell { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 6px; background: #25213f; padding: 2px; display: grid; place-items: center; align-content: center; text-align: center; font-weight: 700; font-size: clamp(1rem, 4.5vw, 1.5rem); color: var(--ink); overflow: hidden; line-height: 1.1; min-width: 0; }
.cell.txt { font-size: clamp(.55rem, 2.2vw, .78rem); font-weight: 600; overflow-wrap: anywhere; }
.cell .emo { font-size: clamp(1.3rem, 6vw, 2rem); line-height: 1; }
.cell small { font-size: .55rem; font-weight: 600; display: block; margin-top: 3px; }
.cell.free { background: var(--line); font-size: .7rem; letter-spacing: .05em; }
/* sombra suave de la figura que se está llenando */
/* fantasma: apenas más claro que una casilla normal */
.cell.hint { background: #302b59; }
.cell.free.hint { background: #453f78; }
.cell.marked { background: var(--mark); color: #fff; border-color: var(--mark); }
.cell.green, .cell.free.green { background: var(--win); color: #fff; border-color: var(--win); }
.cell.nope { animation: nope .3s; }
.cell:focus { outline: none; }
@keyframes nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.back { margin: 0 0 10px; font-size: .9rem; }
button.cell { cursor: pointer; }
.bingo-banner { background: var(--win); color: #fff; text-align: center; font-weight: 900; font-size: 2rem; letter-spacing: .2em; border-radius: var(--radius); padding: 14px; margin-bottom: 16px; animation: pop .5s; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* Mini patrones */
.patterns { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.pat { display: grid; justify-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; font-size: .8rem; text-align: center; cursor: pointer; background: var(--surface); }
.pat:has(input:checked) { border-color: #a79bff; background: #332d6b; }
.pat input { position: absolute; opacity: 0; }
.mini { display: grid; grid-template-columns: repeat(5, 9px); gap: 2px; }
.mini i { width: 9px; height: 9px; background: var(--line); border-radius: 2px; }
.mini i.x { background: #a79bff; }
.pat-inline { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; font-size: .9rem; }

.qr { width: 140px; height: 140px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.link { font-family: ui-monospace, monospace; font-size: .85rem; word-break: break-all; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; }

/* Tablero para TV */
body.tv { background: #14122a; color: #fff; }
body.tv .top { display: none; }
body.tv main { max-width: none; padding: 2vw; }
body.tv .panel { background: #1f1c3d; border-color: #2e2a55; }
body.tv .bn { background: #1f1c3d; border-color: #2e2a55; color: #4b4780; font-size: clamp(.8rem, 2.4vw, 2.2rem); padding: .6vw 0; }
body.tv .bn.hit { background: #fff; color: #14122a; border-color: #fff; }
body.tv .bn.last { background: var(--mark); border-color: var(--mark); color: #fff; }
body.tv .board-row { grid-template-columns: 5vw 1fr; }
body.tv .board-row > b { font-size: clamp(1rem, 2.6vw, 2.4rem); }
body.tv .muted, body.tv .draws figcaption { color: #a9a5d6; }
body.tv .ball { width: 20vw; height: 20vw; max-width: 260px; max-height: 260px; }
body.tv .ball .v { font-size: clamp(2.5rem, 8vw, 6.5rem); } body.tv .ball .l { font-size: clamp(1.2rem, 3vw, 2.4rem); }
body.tv .ball.text .v { font-size: clamp(1rem, 2vw, 1.6rem); }
body.tv .mini i { background: #2e2a55; } body.tv .mini i.x { background: #ffd76a; }

/* Vista del participante en celular */
.now { position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; align-items: center; background: var(--raised); color: var(--ink); border: 1px solid #5a54a0; border-radius: var(--radius); padding: 8px 14px; margin-bottom: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.now .history span { border-color: #6d67a8; }
.ball.mid, body .ball.mid { width: 76px; height: 76px; flex: none; padding: 6px; box-shadow: none; }
.ball.mid .l { font-size: .8rem; } body .ball.mid .v { font-size: 1.7rem; } .ball.mid.text .v { font-size: .6rem; }
button, .btn, .cell, .bn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 600px) {
  main { padding: 16px 12px 48px; }
  .panel { padding: 14px; }
  .ball { width: 120px; height: 120px; } .ball .v { font-size: 2.4rem; }
  .ball.prev { width: 80px; height: 80px; } .ball.prev .v { font-size: 1.5rem; }
  .board-row { grid-template-columns: 24px 1fr; } .board-cells, .board { gap: 2px; } .bn { padding: 4px 0; border-radius: 4px; }
  button.big { width: 100%; }
  table.list th, table.list td { padding: 8px 6px; font-size: .9rem; }
}

/* Portada de juegos */
.tile { background: var(--surface); border-color: var(--line); display: grid; gap: 4px; }
.tile:hover { border-color: #a79bff; }
.tile-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 6px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Rueda de palabras */
.wheels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: center; }
.wheel-box { min-width: 0; transition: opacity .3s; }
.wheel-box.off { opacity: .5; }
.wheel { display: block; width: 100%; max-width: min(92vh, 720px); margin: 0 auto; color: var(--ink); font-family: inherit; }
.wheel g.cur circle { animation: wpulse 1s ease-in-out infinite; }
@keyframes wpulse { 50% { stroke-width: 2.4; } }
.wheel g.pick { cursor: pointer; }
.w-letter { width: 84px; height: 84px; border-radius: 50%; background: #2f55d4; color: #fff; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; flex: none; }
.w-question { margin: 16px 0; padding: 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); font-size: 1.1rem; min-height: 76px; }
.w-answer { margin-top: 8px; color: #5fe0a0; }
.w-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.w-keys button { padding: 18px 8px; font-size: 1.1rem; font-weight: 700; border-radius: 14px; color: #fff; border: 0; }
.w-keys kbd { display: block; font: 600 .7rem ui-monospace, monospace; opacity: .75; margin-top: 4px; }
.w-hit { background: #22a862; } .w-miss { background: #d64545; } .w-pass { background: #b9820f; }
body.wheel-screen main { max-width: none; padding: 12px; }
.pw-title { text-align: center; margin: 4px 0 10px; }
body.wheel-screen .wheels.n1 .wheel { max-width: min(88vh, 96vw); }
/* Fuente de navegador en OBS: sin fondo, solo la rueda */
html:has(body.obs), body.obs { background: transparent; }
body.obs .wheel { color: #fff; }
body.obs .wheel text { paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: .6px; }
@media (prefers-reduced-motion: reduce) { .wheel g.cur circle { animation: none; } }
/* En celular, la rueda del concursante en turno va primero */
@media (max-width: 700px) { body.wheel-screen .wheel-box.on { order: -1; } }
/* El atributo hidden manda siempre, aunque el elemento tenga display propio */
[hidden] { display: none !important; }

/* OBS: rueda a pantalla completa con el centro vacío y reloj en la esquina */
body.obs main { padding: 0; }
body.obs #pw { position: fixed; inset: 0; display: grid; place-items: center; }
.obs-wheel { width: min(99vh, 99vw); }
.obs-wheel .wheel { max-width: none; }
.obs-corner { position: fixed; top: 2vh; left: 2vh; display: grid; gap: 1.2vh; z-index: 2; }
.obs-player { display: grid; grid-template-columns: auto auto; column-gap: 1.6vh; align-items: center; background: rgba(12, 10, 28, .72); color: #fff; border-radius: 1.6vh; padding: 1vh 2vh; opacity: .6; }
.obs-player.on { opacity: 1; outline: .4vh solid #fff; }
.obs-clock { grid-row: span 2; font-size: 8vh; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center; }
.obs-player:not(.on) .obs-clock { font-size: 4.5vh; }
.obs-name { font-size: 2.6vh; font-weight: 700; }
.obs-score { font-size: 2.6vh; } .obs-score .ok { color: #4fe39a; } .obs-score .ko { color: #ff8b8b; }

/* Pregunta en pantalla */
.pw-question { max-width: 720px; margin: 0 auto 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--raised); border: 1px solid #5a54a0; text-align: center; font-size: 1.15rem; font-weight: 600; }
body.obs #pw { grid-template-rows: 1fr auto; padding-bottom: 2vh; }
.obs-wheel { width: min(82vh, 99vw); }
.obs-question { max-width: 92vw; margin: 0 auto; padding: 1.6vh 3vh; border-radius: 2vh; background: rgba(12, 10, 28, .82); color: #fff; text-align: center; font-size: 4vh; font-weight: 700; line-height: 1.2; text-wrap: balance; }

/* ---------- Rueda: aspecto alegre ---------- */
.wheel, .obs-corner, .obs-question, .pw-question, .pw-title { font-family: Fredoka, "Baloo 2", "Trebuchet MS", system-ui, sans-serif; }
.wheel { overflow: visible; }
.wheel g.cur circle { animation: wpulse .9s ease-in-out infinite; }
@keyframes wpulse { 50% { stroke-width: 2.6; } }
body.obs .wheel text { paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: .5px; }

/* OBS: rueda al máximo y centrada (la cámara queda dentro), reloj arriba a la izquierda, pregunta a la derecha */
body.obs #pw { grid-template-rows: none; padding: 0; }
.obs-wheel { width: min(94vh, 94vw); }
.obs-corner { top: 2.5vh; left: 2.5vh; gap: 1.4vh; }
.obs-player { background: linear-gradient(135deg, #ff8a00, #e52e71); border-radius: 2.4vh; padding: 1.2vh 2.4vh 1.2vh 2vh; box-shadow: 0 .8vh 2.4vh rgba(0,0,0,.35); opacity: .75; }
.obs-player.on { outline: .5vh solid #fff; opacity: 1; }
.obs-clock { font-size: 9vh; font-weight: 700; text-shadow: 0 .3vh 0 rgba(0,0,0,.25); }
.obs-name { font-size: 2.8vh; font-weight: 600; }
.obs-score b { display: inline-block; background: rgba(255,255,255,.92); border-radius: 99px; padding: 0 1.2vh; font-size: 2.6vh; }
.obs-score .ok { color: #0f9d58; } .obs-score .ko { color: #d01f3c; }
.obs-question { position: fixed; right: 2.5vh; top: 50%; transform: translateY(-50%); width: calc((100vw - 94vh) / 2 - 4.5vh); max-width: none; margin: 0; padding: 7vh 2.4vh 3vh; border-radius: 3vh; display: grid; gap: 1.2vh; justify-items: center;
  background: linear-gradient(160deg, #7b2ff7, #f107a3); border: .5vh solid #fff; box-shadow: 0 1vh 3vh rgba(0,0,0,.4); color: #fff; text-align: center; }
.obs-badge { position: absolute; top: -5.5vh; left: 50%; transform: translateX(-50%); width: 11vh; height: 11vh; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff7b0, #ffc400); color: #4a2c00; font-size: 7vh; font-weight: 700; border: .5vh solid #fff; box-shadow: 0 .6vh 1.6vh rgba(0,0,0,.35); }
.obs-head { font-size: 2.6vh; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.2); border-radius: 99px; padding: .3vh 1.8vh; }
.obs-text { font-size: 4.2vh; font-weight: 600; line-height: 1.18; text-wrap: balance; overflow-wrap: anywhere; }
.obs-question.pop { animation: qpop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes qpop { from { transform: translateY(-50%) scale(.7); opacity: 0; } }
/* Lienzos angostos o verticales: no cabe al costado, la pregunta va abajo */
@media (max-aspect-ratio: 3/2) {
  body.obs #pw { grid-template-rows: 1fr auto; padding-bottom: 3vh; }
  .obs-wheel { width: min(74vh, 96vw); }
  .obs-question { position: static; transform: none; width: auto; max-width: 92vw; margin: 6vh auto 0; }
  @keyframes qpop { from { transform: scale(.7); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .obs-question.pop, .wheel g.cur circle { animation: none; } }
.pw-question { background: linear-gradient(160deg, #7b2ff7, #f107a3); border: 2px solid #fff; color: #fff; }

/* Respuesta acertada en pantalla */
.obs-reveal, .pw-reveal { font-family: Fredoka, "Baloo 2", "Trebuchet MS", system-ui, sans-serif; display: grid; justify-items: center; text-align: center; color: #fff; background: linear-gradient(160deg, #12b866, #06884a); border: .5vh solid #fff; box-shadow: 0 1vh 3vh rgba(0,0,0,.4); }
.obs-reveal { position: fixed; left: 2.5vh; top: 50%; transform: translateY(-50%); width: calc((100vw - 94vh) / 2 - 4.5vh); padding: 2.4vh; border-radius: 3vh; gap: 1vh; }
.obs-reveal .rv-head { font-size: 3vh; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.22); border-radius: 99px; padding: .3vh 1.8vh; }
.obs-reveal .rv-answer { font-size: 5.4vh; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; text-wrap: balance; }
.obs-reveal.pop { animation: qpop .45s cubic-bezier(.2, 1.4, .4, 1); }
.pw-reveal { max-width: 720px; margin: 0 auto 12px; padding: 10px 16px; border-radius: var(--radius); border-width: 2px; gap: 2px; }
.pw-reveal .rv-head { font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pw-reveal .rv-answer { font-size: 1.6rem; font-weight: 700; }
@media (max-aspect-ratio: 3/2) { .obs-reveal { position: static; transform: none; width: auto; max-width: 92vw; margin: 2vh auto 0; } }
@media (prefers-reduced-motion: reduce) { .obs-reveal.pop { animation: none; } }

/* Columna derecha de OBS: la pregunta y, debajo, la respuesta acertada */
.obs-side { position: fixed; right: 2.5vh; top: 50%; transform: translateY(-50%); width: calc((100vw - 94vh) / 2 - 4.5vh); display: grid; gap: 2.4vh; }
.obs-side .obs-question, .obs-side .obs-reveal { position: relative; inset: auto; transform: none; width: auto; margin: 0; }
.obs-side .obs-question.pop, .obs-side .obs-reveal.pop { animation: sidepop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes sidepop { from { transform: scale(.7); opacity: 0; } }
@media (max-aspect-ratio: 3/2) { .obs-side { position: static; transform: none; width: auto; max-width: 92vw; margin: 6vh auto 0; } }
@media (prefers-reduced-motion: reduce) { .obs-side .obs-question.pop, .obs-side .obs-reveal.pop { animation: none; } }

/* Pantalla de rosco completo */
.win-screen { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; font-family: Fredoka, "Baloo 2", "Trebuchet MS", system-ui, sans-serif; }
.win-card { position: relative; display: grid; justify-items: center; gap: 1.5vh; text-align: center; color: #fff; max-width: 92vw; padding: 5vh 7vh; border-radius: 5vh; border: .8vh solid #fff;
  background: linear-gradient(150deg, #ff8a00, #e52e71 55%, #7b2ff7); box-shadow: 0 2vh 6vh rgba(0,0,0,.5); animation: winpop .7s cubic-bezier(.2, 1.5, .4, 1); }
.win-trophy { font-size: 14vh; line-height: 1; }
.win-name { font-size: 15vh; font-weight: 700; line-height: 1; text-transform: uppercase; text-shadow: 0 .6vh 0 rgba(0,0,0,.25); overflow-wrap: anywhere; }
.win-text { font-size: 8vh; font-weight: 700; line-height: 1.05; }
.win-sub { font-size: 6vh; font-weight: 600; background: rgba(255,255,255,.22); border-radius: 99px; padding: .5vh 4vh; }
@keyframes winpop { from { transform: scale(.4); opacity: 0; } }
.confetti i { position: absolute; top: -4vh; width: 1.6vh; height: 3vh; border-radius: .4vh; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (max-width: 700px) { .win-trophy { font-size: 18vw; } .win-name { font-size: 15vw; } .win-text { font-size: 9vw; } .win-sub { font-size: 6vw; } .win-card { padding: 6vw; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .win-card { animation: none; } }

/* ---------- Gráfica del bingo para OBS (GC) ---------- */
/* Medidas en vh: el diseño está pensado para un lienzo de 1920×1080 (1vh = 10,8 px) */
body.gc-screen main { padding: 0; max-width: none; }
#gc { position: fixed; inset: 0; color: #fff; font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --gc-pink: #c4175e; --gc-yellow: #ffc400; --gc-line: .37vh;
  --gc-dots: radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 0 0 / 4.2vh 4.2vh, radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 2.1vh 2.1vh / 4.2vh 4.2vh; }
.gc-top, .gc-bottom, .gc-qr, .gc-draw, .gc-figure { background: var(--gc-dots), var(--gc-pink); }

.gc-top { position: absolute; top: 0; left: 0; right: 0; height: 8.15vh; display: flex; align-items: center; gap: 5vh; padding: 0 38vh 0 4vh; white-space: nowrap; }
.gc-title { font-size: 6vh; font-weight: 900; text-transform: uppercase; line-height: 1; color: var(--gc-yellow); text-shadow: .28vh .28vh 0 var(--gc-shade, rgba(60, 0, 30, .55)); overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 62%; }
.gc-sub { flex: 1; text-align: center; font-size: 4vh; font-weight: 700; text-shadow: .2vh .2vh 0 var(--gc-shade, rgba(60, 0, 30, .55)); overflow: hidden; text-overflow: ellipsis; }

/* Guirnalda de banderines bajo la franja superior */
.gc-bunting { position: absolute; top: 8.15vh; left: 0; right: 35.4vh; height: 3.5vh; display: flex; gap: .65vh; padding: 0 .4vh; border-top: var(--gc-line) solid var(--gc-yellow); }
.gc-bunting i { flex: 1; position: relative; clip-path: polygon(0 0, 100% 0, 100% 78%, 84% 100%, 67% 80%, 50% 100%, 33% 80%, 16% 100%, 0 78%); }
.gc-bunting i::after { content: ""; position: absolute; left: 50%; top: 42%; width: 1vh; height: 1vh; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }

.gc-qr { position: absolute; top: 0; right: 0; width: 35.4vh; height: 35.9vh; padding: .8vh 0 0 1.2vh; border-left: var(--gc-line) solid var(--gc-yellow); border-bottom: var(--gc-line) solid var(--gc-yellow); border-bottom-left-radius: 3vh; }
.gc-qr .qr { display: block; width: 33.4vh; height: 33.4vh; background: #fff; border: 0; border-radius: 1.8vh; padding: 2vh; }

.gc-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 8.5vh; display: flex; align-items: center; justify-content: center; padding: 0 26vh 0 33vh; border-top: var(--gc-line) solid var(--gc-yellow); }
.gc-msg { font-size: 3.7vh; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-msg b { color: var(--gc-yellow); font-weight: 700; }

.gc-draw { position: absolute; left: 0; bottom: 0; width: 31.3vh; height: 22vh; border-top: var(--gc-line) solid var(--gc-yellow); border-right: var(--gc-line) solid var(--gc-yellow); border-top-right-radius: 3vh; }
.gc-label { position: absolute; left: 1.8vh; top: 1.2vh; font-size: 3vh; font-weight: 900; text-transform: uppercase; color: var(--gc-yellow); text-shadow: .2vh .2vh 0 var(--gc-shade, rgba(60, 0, 30, .55)); }
.gc-ballwrap { position: absolute; left: 50%; bottom: 1.1vh; transform: translateX(-50%); }
.ball.gcball { width: 15.6vh; height: 15.6vh; padding: 1vh; border: .5vh solid #fff; box-shadow: 0 .6vh 1.6vh rgba(0,0,0,.45); font-family: inherit; }
.ball.gcball .l { font-size: 3vh; font-weight: 900; line-height: 1; } .ball.gcball .v { font-size: 7.6vh; font-weight: 900; line-height: 1; }
.ball.gcball.text .v { font-size: 2.2vh; }
.gc-ballwrap.pop { animation: gcpop .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes gcpop { from { transform: translateX(-50%) scale(.3) rotate(-25deg); opacity: 0; } }

.gc-figure { position: absolute; right: 0; bottom: 0; width: 23.9vh; height: 29.2vh; padding: 2vh 2.2vh 0; display: grid; align-content: start; justify-items: center; gap: 1.2vh; text-align: center; border-top: var(--gc-line) solid var(--gc-yellow); border-left: var(--gc-line) solid var(--gc-yellow); border-top-left-radius: 3vh; }
.gc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55vh; width: 100%; }
.gc-grid i { aspect-ratio: 1; border-radius: .6vh; background: var(--gc-shade, rgba(60, 0, 30, .55)); }
.gc-grid i.x { background: var(--gc-yellow); box-shadow: inset 0 -.5vh 0 rgba(0,0,0,.18); }
.gc-figure b { font-size: 3vh; font-weight: 900; text-transform: uppercase; color: var(--gc-yellow); line-height: 1; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .gc-ballwrap.pop { animation: none; } }

/* ---------- Sorteo de concursantes (OBS) ---------- */
body.raffle-screen main { padding: 0; max-width: none; }
#rf { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; padding: 4vh; overflow: hidden; color: #fff; font-family: Fredoka, "Baloo 2", "Trebuchet MS", system-ui, sans-serif; }
.rf-title { font-size: 5vh; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1vh 4vh; border-radius: 99px; border: .5vh solid #fff; background: linear-gradient(90deg, #7b2ff7, #f107a3); box-shadow: 0 1vh 3vh rgba(0,0,0,.4); }
.rf-stage { display: grid; place-items: center; width: 100%; }
.rf-card { position: relative; display: grid; justify-items: center; gap: 2vh; text-align: center; min-width: 60vw; max-width: 92vw; padding: 5vh 7vh; border-radius: 5vh; border: .8vh solid #fff; background: rgba(12, 10, 28, .86); box-shadow: 0 2vh 6vh rgba(0,0,0,.5); }
.rf-card.rolling { background: linear-gradient(150deg, #2f2bd0, #7b2ff7); }
.rf-card.win { background: linear-gradient(150deg, #ff8a00, #e52e71 55%, #7b2ff7); }
.rf-card.pop { animation: winpop .7s cubic-bezier(.2, 1.5, .4, 1); }
.rf-kicker { font-size: 4.4vh; font-weight: 600; background: rgba(255,255,255,.2); border-radius: 99px; padding: .4vh 3vh; }
.rf-name { font-size: 15vh; font-weight: 700; line-height: 1; text-transform: uppercase; text-shadow: 0 .6vh 0 rgba(0,0,0,.25); overflow-wrap: anywhere; min-height: 15vh; }
.rf-name.small { font-size: 8vh; min-height: 0; text-transform: none; }
.rf-picked { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6vh; min-height: 7vh; }
.rf-picked span { display: flex; align-items: center; gap: 1.2vh; font-size: 4vh; font-weight: 600; padding: .6vh 2.6vh .6vh .8vh; border-radius: 99px; background: rgba(12, 10, 28, .86); border: .4vh solid #fff; }
.rf-picked b { display: grid; place-items: center; width: 5vh; height: 5vh; border-radius: 50%; background: #ffc400; color: #4a2c00; font-size: 3.2vh; }
@media (prefers-reduced-motion: reduce) { .rf-card.pop { animation: none; } }

.rf-row { padding: 8px 0; border-bottom: 1px solid var(--line); gap: 8px; }
.rf-row > span:first-child { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.rf-row button { padding: 6px 12px; font-size: .85rem; }

/* ---------- Celebración de bingo a pantalla completa ---------- */
.bwin { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: hidden; color: #fff; font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; }
body.tv .bwin { background: rgba(10, 8, 24, .92); }
.bwin-card { position: relative; display: grid; justify-items: center; gap: 2.2vh; text-align: center; min-width: 56vw; max-width: 94vw; padding: 4vh 7vh 5vh; border-radius: 5vh; border: .8vh solid #ffc400;
  background: radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 0 0 / 4.2vh 4.2vh, var(--gc-pink, #c4175e); box-shadow: 0 2vh 6vh rgba(0,0,0,.55); animation: winpop .7s cubic-bezier(.2, 1.5, .4, 1); }
.bwin-title { font-size: 24vh; font-weight: 900; line-height: .95; color: #ffc400; letter-spacing: .04em; text-shadow: .8vh .8vh 0 var(--gc-shade, rgba(60, 0, 30, .55)); animation: bwinbeat 1s ease-in-out infinite; }
@keyframes bwinbeat { 50% { transform: scale(1.06); } }
.bwin-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 2vh 5vh; max-width: 90vw; }
.bwin-names span { display: grid; justify-items: center; }
.bwin-names b { font-size: 11vh; font-weight: 900; line-height: 1; text-transform: uppercase; text-shadow: .5vh .5vh 0 var(--gc-shade, rgba(60, 0, 30, .55)); overflow-wrap: anywhere; }
.bwin-names small { font-size: 3.4vh; font-weight: 700; opacity: .9; }
.bwin.many .bwin-title { font-size: 17vh; } .bwin.many .bwin-names b { font-size: 6.4vh; } .bwin.many .bwin-names small { font-size: 2.6vh; }
.bwin-more { font-size: 4vh; font-weight: 700; }
.bwin-sub { font-size: 5vh; font-weight: 700; background: var(--gc-shade, rgba(60, 0, 30, .55)); border-radius: 99px; padding: .5vh 4vh; }
@media (prefers-reduced-motion: reduce) { .bwin-card, .bwin-title { animation: none; } }

/* GC del bingo: bolita más grande y sin rótulo, figura más clara y a la misma altura */
.gc-draw { width: 25.5vh; height: 23.5vh; }
.gc-ballwrap { bottom: 1.4vh; }
.ball.gcball { width: 20.4vh; height: 20.4vh; border-width: .6vh; }
.ball.gcball .l { font-size: 4vh; } .ball.gcball .v { font-size: 10vh; }
.ball.gcball.text .v { font-size: 2.8vh; }
.gc-bottom { padding-left: 27.5vh; }
.gc-figure { height: 23.5vh; padding: 0 2vh; align-content: center; gap: 1vh; }
.gc-grid { width: 15.6vh; }
.gc-grid i { background: rgba(255, 255, 255, .3); }
.gc-grid i.x { background: #ffd21f; box-shadow: inset 0 -.5vh 0 rgba(0,0,0,.15), 0 0 1.2vh rgba(255, 210, 31, .7); }
/* Cada número nuevo cae desde arriba y rebota */
.gc-ballwrap.pop { animation: gcdrop .95s cubic-bezier(.3, 0, .7, 1); }
@keyframes gcdrop {
  0% { transform: translate(-50%, -75vh) rotate(-200deg); }
  42% { transform: translate(-50%, 0) rotate(0) scale(1.08, .9); }
  58% { transform: translate(-50%, -9vh) scale(.97, 1.04); }
  72% { transform: translate(-50%, 0) scale(1.05, .94); }
  84% { transform: translate(-50%, -3vh); }
  100% { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) { .gc-ballwrap.pop { animation: none; } }

/* ---------- Colores de la gráfica según el local ---------- */
#gc.th-frida, .bwin.th-frida { --gc-pink: #c4175e; --gc-shade: rgba(60, 0, 30, .55); }
#gc.th-tobalaba, .bwin.th-tobalaba { --gc-pink: #c81e1e; --gc-shade: rgba(70, 0, 0, .55); }
#gc.th-kennedy, .bwin.th-kennedy { --gc-pink: #1487cf; --gc-shade: rgba(0, 32, 78, .55); }

/* Nombres de figura largos: en dos líneas y letra más chica, para que quepan en el recuadro */
.gc-figure { overflow: hidden; }
.gc-figure b.long { white-space: normal; font-size: 2.1vh; line-height: 1.05; text-wrap: balance; }
.gc-figure:has(b.long) .gc-grid { width: 14vh; }

/* Pestañas para elegir el local al crear el bingo */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.seg button[data-venue="frida"].on { background: #c4175e; border-color: #c4175e; }
.seg button[data-venue="tobalaba"].on { background: #c81e1e; border-color: #c81e1e; }
.seg button[data-venue="kennedy"].on { background: #1487cf; border-color: #1487cf; }

/* ---------- Inicio del moderador: paso a paso ---------- */
.home { max-width: 560px; margin: 0 auto; display: grid; gap: 18px; text-align: center; }
.home h1 { margin: 6px 0 0; }
.home-create { display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border-radius: 22px; text-decoration: none; color: #fff; font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, #ff8a00, #e52e71 55%, #7b2ff7); box-shadow: 0 10px 28px rgba(229, 46, 113, .35); }
.home-create span { font-size: 3rem; line-height: 1; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-steps a { position: relative; display: grid; justify-items: center; gap: 4px; padding: 20px 6px 14px; border-radius: 18px; text-decoration: none; color: #fff; font-size: 1.05rem; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.home-steps a span { font-size: 2.4rem; line-height: 1; }
.home-steps a i { position: absolute; top: -10px; left: -6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ffc400; color: #3b2500; font-style: normal; font-weight: 800; border: 2px solid var(--bg); }
.home-steps .s1 { background: linear-gradient(160deg, #e52e71, #b0124f); }
.home-steps .s2 { background: linear-gradient(160deg, #ff9a1f, #e06400); }
.home-steps .s3 { background: linear-gradient(160deg, #6f5df0, #3a2bd0); }
.home-create:active, .home-steps a:active, .home-control:active { transform: scale(.98); }
.home-control { display: block; padding: 16px; border-radius: 16px; text-decoration: none; color: var(--ink); font-size: 1.2rem; font-weight: 700; background: var(--raised); border: 2px solid #5a54a0; }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.control-grid button { display: grid; justify-items: center; gap: 4px; padding: 18px 8px; border-radius: 16px; font-size: 1.1rem; font-weight: 700; }
.control-grid button span { font-size: 2rem; line-height: 1; pointer-events: none; }
.control-grid button.on { background: var(--win); border-color: #fff; color: #fff; }

/* Enlaces con aspecto de botón grande (pasos del animador) */
a.btn.big { display: block; text-align: center; font-size: 1.15rem; font-weight: 700; padding: 15px 20px; }

/* Aviso de ganadores junto al botón de sortear */
.win-alert { margin-top: 16px; padding: 14px; border-radius: var(--radius); border: 2px solid #5a54a0; background: var(--bg); text-align: center; }
.win-alert h2 { font-size: 1.1rem; margin: 0 0 8px; }
.win-alert.won { border: 3px solid #fff; background: linear-gradient(160deg, #1fb86a, #0a8a4c); color: #fff; animation: winpop .5s cubic-bezier(.2, 1.5, .4, 1); }
.win-alert.won h2 { font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.win-names { display: grid; gap: 8px; }
.win-names span { display: grid; background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 8px 10px; }
.win-names b { font-size: 1.6rem; line-height: 1.15; overflow-wrap: anywhere; }
.win-names small { font-size: .9rem; opacity: .9; }
.win-pending { margin: 8px 0 0; font-size: .9rem; opacity: .85; }
.win-alert #hidewin { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .win-alert.won { animation: none; } }

/* Cartel con el QR en grande, para antes de empezar el bingo */
.gc-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2.2vh; text-align: center; padding: 4vh 6vh; border-radius: 5vh;
  border: .8vh solid var(--gc-yellow); background: var(--gc-dots), var(--gc-pink); box-shadow: 0 2vh 6vh rgba(0,0,0,.55); animation: winpop .6s cubic-bezier(.2, 1.4, .4, 1); }
.gc-big-title { font-size: 8vh; font-weight: 900; line-height: 1; text-transform: uppercase; color: var(--gc-yellow); text-shadow: .4vh .4vh 0 var(--gc-shade, rgba(60, 0, 30, .55)); white-space: nowrap; }
.gc-big-qr .qr { display: block; width: 50vh; height: 50vh; background: #fff; border: 0; border-radius: 3vh; padding: 2.5vh; }
.gc-big-text { font-size: 4.2vh; font-weight: 700; max-width: 110vh; line-height: 1.15; }
.gc-big-count { font-size: 3.4vh; font-weight: 700; background: var(--gc-shade, rgba(60, 0, 30, .55)); border-radius: 99px; padding: .5vh 3vh; }
.rf-row.off > span:first-child { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .gc-big { animation: none; } }

/* El cartel del QR se centra con una rejilla (no con transform) para que la animación de entrada no lo desplace */
.gc-big-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.gc-big { position: static; left: auto; top: auto; transform: none; }

/* Total de personas que han entrado al bingo, bajo la guirnalda */
.gc-people { position: absolute; top: 13vh; left: 2.5vh; display: flex; align-items: baseline; gap: 1vh; padding: .6vh 2.4vh; border-radius: 99px; font-size: 3.2vh; font-weight: 700; text-transform: uppercase;
  background: var(--gc-dots), var(--gc-pink); border: var(--gc-line) solid var(--gc-yellow); box-shadow: 0 .6vh 1.8vh rgba(0,0,0,.4); }
.gc-people b { font-size: 4.2vh; font-weight: 900; color: var(--gc-yellow); }

/* Desempate por sorteo, en el aviso de ganadores */
.win-alert #tiebreak { margin-top: 12px; width: 100%; background: #fff; border-color: #fff; color: #0a6b3c; font-weight: 800; }
.tie-won { margin: 12px 0 0; padding: 10px; border-radius: 12px; background: #ffc400; color: #3b2500; display: grid; font-weight: 700; }
.tie-won b { font-size: 1.7rem; line-height: 1.15; } .tie-won small { font-size: .9rem; }

/* Sorteo y desempate: el cuadro va abajo al centro, para no tapar al animador en cámara */
#rf { grid-template-rows: auto auto 1fr auto; padding: 3vh 4vh 3.5vh; }
#rf .rf-title { grid-row: 1; font-size: 4vh; }
#rf .rf-picked { grid-row: 2; margin-top: 1.6vh; min-height: 0; }
#rf .rf-picked span { font-size: 3vh; } #rf .rf-picked b { width: 4vh; height: 4vh; font-size: 2.6vh; }
#rf .rf-stage { grid-row: 4; align-self: end; }
#rf .rf-card { gap: 1.2vh; min-width: 44vw; max-width: 80vw; padding: 2.4vh 6vh 3vh; border-radius: 4vh; border-width: .6vh; }
#rf .rf-kicker { font-size: 3vh; }
#rf .rf-name { font-size: 10vh; min-height: 10vh; white-space: nowrap; }
#rf .rf-name.small { font-size: 5.5vh; min-height: 0; }

/* ---------- Tablero del DJ: pantalla completa con fondo propio ---------- */
html:has(body.full), body.full { background: #1b0f3a; }
body.full { overflow: hidden; }
body.full main { padding: 0; max-width: none; }
body.full::before { content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 25%, rgba(255, 79, 163, .55), transparent 38%), radial-gradient(circle at 80% 20%, rgba(53, 198, 255, .45), transparent 36%),
    radial-gradient(circle at 70% 85%, rgba(255, 154, 61, .5), transparent 40%), radial-gradient(circle at 15% 85%, rgba(155, 92, 255, .55), transparent 38%);
  animation: fullglow 16s ease-in-out infinite alternate; }
@keyframes fullglow { to { transform: rotate(12deg) scale(1.12); } }
body.full #app { position: relative; z-index: 1; }
body.full .bwin { background: none; }
body.full.wheel-screen .wheel, body.full .pw-title { color: #fff; }
body.full.wheel-screen main { padding: 2vh; }
body.full.wheel-screen .wheels .wheel { max-width: min(80vh, 94vw); }
body.full .pw-title { font-size: 6vh; margin: 1vh 0; }
body.full .pw-question { font-size: 3.6vh; max-width: 120vh; padding: 1.6vh 3vh; border-radius: 2.4vh; }
body.full .pw-reveal { max-width: 120vh; } body.full .pw-reveal .rv-answer { font-size: 5vh; }

#fb { position: fixed; inset: 0; color: #fff; font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; display: grid; grid-template-columns: 40vh 1fr 30vh; grid-template-rows: auto 1fr; gap: 2.5vh 3vh; padding: 3vh 4vh;
  --gc-pink: #c4175e; --gc-yellow: #ffc400; --gc-line: .5vh; --gc-shade: rgba(60, 0, 30, .55);
  --gc-dots: radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 0 0 / 4.2vh 4.2vh, radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 2.1vh 2.1vh / 4.2vh 4.2vh; }
#fb.th-tobalaba { --gc-pink: #c81e1e; --gc-shade: rgba(70, 0, 0, .55); }
#fb.th-kennedy { --gc-pink: #1487cf; --gc-shade: rgba(0, 32, 78, .55); }
.fb-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 2.4vh; padding: 1.6vh 3.5vh; border-radius: 3vh; background: var(--gc-dots), var(--gc-pink); border: var(--gc-line) solid var(--gc-yellow); box-shadow: 0 1vh 3vh rgba(0,0,0,.4); white-space: nowrap; }
.fb-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 7.5vh; font-weight: 900; line-height: 1; text-transform: uppercase; color: var(--gc-yellow); text-shadow: .4vh .4vh 0 var(--gc-shade); }
.fb-pill { font-size: 3.2vh; font-weight: 700; text-transform: uppercase; background: var(--gc-shade); border-radius: 99px; padding: .6vh 2.4vh; }
.fb-pill b { font-size: 4.2vh; font-weight: 900; color: var(--gc-yellow); }
.fb-left { display: grid; align-content: center; justify-items: center; gap: 3vh; }
.ball.fbball { width: 38vh; height: 38vh; padding: 2vh; border: 1vh solid #fff; box-shadow: 0 2vh 5vh rgba(0,0,0,.5), 0 0 6vh rgba(255, 210, 31, .6); font-family: inherit; }
.ball.fbball .l { font-size: 8vh; font-weight: 900; line-height: 1; } .ball.fbball .v { font-size: 19vh; font-weight: 900; line-height: .95; }
.fb-ballwrap.pop { animation: fbdrop 1s cubic-bezier(.3, 0, .7, 1); }
@keyframes fbdrop { 0% { transform: translateY(-90vh) rotate(-240deg); } 42% { transform: translateY(0) rotate(0) scale(1.08, .9); } 58% { transform: translateY(-11vh) scale(.97, 1.04); } 72% { transform: translateY(0) scale(1.05, .94); } 84% { transform: translateY(-3.5vh); } 100% { transform: none; } }
.fb-prev { display: flex; gap: 1.2vh; min-height: 8vh; }
.ball.fbprev { width: 7.4vh; height: 7.4vh; padding: .4vh; border: .3vh solid #fff; box-shadow: none; filter: none; opacity: .92; font-family: inherit; }
.ball.fbprev .l { font-size: 1.6vh; font-weight: 900; line-height: 1; } .ball.fbprev .v { font-size: 3.4vh; font-weight: 900; line-height: 1; }
.fb-board { display: grid; grid-template-rows: repeat(5, 1fr); gap: 1.2vh; align-self: center; padding: 2.4vh; border-radius: 3vh; background: rgba(12, 10, 28, .55); border: .4vh solid rgba(255,255,255,.35); }
.fb-row { display: grid; grid-template-columns: 9vh repeat(15, 1fr); gap: 1vh; align-items: center; }
.fb-row > b { display: grid; place-items: center; height: 11.5vh; border-radius: 1.8vh; font-size: 7.5vh; font-weight: 900; background: var(--gc-pink); color: var(--gc-yellow); border: .4vh solid var(--gc-yellow); }
.fb-row > span { display: grid; place-items: center; height: 11.5vh; border-radius: 50%; aspect-ratio: 1; justify-self: center; font-size: 4.6vh; font-weight: 900; color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.fb-row > span.hit { color: #3b2500; background: radial-gradient(circle at 35% 30%, #fff7b0, #ffc400 70%); box-shadow: 0 .5vh 1.2vh rgba(0,0,0,.35); }
.fb-row > span.last { color: #fff; background: radial-gradient(circle at 35% 30%, #ff9ac2, var(--gc-pink) 70%); outline: .6vh solid #fff; animation: fbpulse 1s ease-in-out infinite; }
@keyframes fbpulse { 50% { transform: scale(1.14); } }
.fb-side { display: grid; align-content: center; gap: 3vh; }
.fb-figure, .fb-qr { display: grid; justify-items: center; gap: 1.2vh; padding: 2vh; border-radius: 3vh; background: var(--gc-dots), var(--gc-pink); border: var(--gc-line) solid var(--gc-yellow); text-align: center; box-shadow: 0 1vh 3vh rgba(0,0,0,.4); }
.fb-figure > span, .fb-qr > span { font-size: 2.8vh; font-weight: 900; text-transform: uppercase; }
.fb-figure .gc-grid { width: 20vh; } .fb-figure b { font-size: 3.2vh; font-weight: 900; text-transform: uppercase; color: var(--gc-yellow); line-height: 1.05; text-wrap: balance; }
.fb-qr .qr { display: block; width: 22vh; height: 22vh; background: #fff; border: 0; border-radius: 1.6vh; padding: 1.2vh; }
.fb-idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.5vh; text-align: center; }
.fb-idle span { font-size: 18vh; line-height: 1; animation: fbpulse 2.4s ease-in-out infinite; } .fb-idle b { font-size: 12vh; font-weight: 900; line-height: 1; } .fb-idle small { font-size: 4.5vh; font-weight: 700; opacity: .85; }
#fb .gc-big-wrap { grid-column: 1 / -1; grid-row: 1 / -1; position: static; }
@media (prefers-reduced-motion: reduce) { body.full::before, .fb-ballwrap.pop, .fb-row > span.last, .fb-idle span { animation: none; } }

/* Tablero del DJ: ajustes para que todo quepa en 16:9 */
#fb { grid-template-columns: 36vh minmax(0, 1fr) 25vh; }
.fb-board { min-width: 0; }
.fb-row { grid-template-columns: 7.5vh repeat(15, minmax(0, 1fr)); gap: .8vh; }
.fb-row > b { height: 12.4vh; font-size: 7vh; }
.fb-row > span { width: 100%; height: 12.4vh; aspect-ratio: auto; border-radius: 1.6vh; font-size: 4.2vh; }
.ball.fbball { width: 34vh; height: 34vh; } .ball.fbball .v { font-size: 17vh; } .ball.fbball .l { font-size: 7vh; }
.ball.fbprev { width: 6.4vh; height: 6.4vh; } .ball.fbprev .v { font-size: 3vh; }
.fb-figure .gc-grid { width: 17vh; } .fb-qr .qr { width: 19vh; height: 19vh; }
body.full.wheel-screen .wheels .wheel { max-width: min(70vh, 94vw); }
body.full.wheel-screen .wheels.n2 .wheel, body.full.wheel-screen .wheels.n3 .wheel, body.full.wheel-screen .wheels.n4 .wheel { max-width: min(66vh, 46vw); }

/* Sin nada en juego: QR visible */
.fb-idle { gap: 3vh; }
.fb-idle b { font-size: 11vh; text-transform: uppercase; color: #ffc400; text-shadow: .5vh .5vh 0 rgba(0,0,0,.35); }
.fb-idle-qr { padding: 2.5vh; background: #fff; border-radius: 4vh; border: 1vh solid #ffc400; box-shadow: 0 2vh 6vh rgba(0,0,0,.5); animation: fbpulse 3s ease-in-out infinite; }
.fb-idle-qr .qr { display: block; width: 48vh; height: 48vh; border: 0; padding: 0; border-radius: 0; }
.fb-idle small { font-size: 4.6vh; max-width: 120vh; }
.gc-idle-label { position: absolute; top: 37vh; right: 0; width: 35.4vh; text-align: center; font-size: 3vh; font-weight: 900; text-transform: uppercase; color: #fff; text-shadow: 0 .3vh .8vh rgba(0,0,0,.8); }
@media (prefers-reduced-motion: reduce) { .fb-idle-qr { animation: none; } }

.fb-idle b { font-size: 9.5vh; white-space: nowrap; }
.fb-idle b i { font-style: normal; color: #fff; }
.fb-idle small { max-width: none; white-space: nowrap; }
.fb-idle small.soon { margin-top: -1.5vh; color: #ffc400; opacity: 1; }
.fb-idle small:not(.soon) { font-size: 7vh; font-weight: 900; opacity: 1; }
.fb-idle-qr .qr { width: 44vh; height: 44vh; }
.fb-idle { gap: 2.4vh; }

/* ---------- Sorteo y desempate en el tablero del DJ: a pantalla completa ---------- */
.rf-reel, .rf-rays, .rf-dice { display: none; }
body.full #rf { grid-template-rows: auto 1fr auto; padding: 3.5vh 4vh 4vh; }
body.full #rf > * { position: relative; z-index: 1; }
body.full #rf .rf-rays { display: block; position: fixed; z-index: 0; left: 50%; top: 50%; width: 260vh; height: 260vh; margin: -130vh 0 0 -130vh; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .09) 0 9deg, transparent 9deg 18deg); animation: rfspin 50s linear infinite; }
@keyframes rfspin { to { transform: rotate(360deg); } }
body.full #rf .rf-title { grid-row: 1; font-size: 7.5vh; padding: 1.4vh 6vh; border-width: .8vh; }
body.full #rf .rf-stage { grid-row: 2; align-self: center; }
body.full #rf .rf-picked { grid-row: 3; margin: 0; gap: 2.4vh; min-height: 8vh; }
body.full #rf .rf-picked span { font-size: 5vh; padding: .8vh 3.4vh .8vh 1vh; border-width: .5vh; }
body.full #rf .rf-picked b { width: 6.4vh; height: 6.4vh; font-size: 4.2vh; }
body.full #rf .rf-card { min-width: 82vw; max-width: 94vw; gap: 1.6vh; padding: 4vh 6vh 5vh; border-radius: 6vh; border-width: 1.2vh; box-shadow: 0 3vh 9vh rgba(0,0,0,.55), 0 0 12vh rgba(255, 255, 255, .25); }
body.full #rf .rf-kicker { font-size: 5.4vh; padding: .6vh 4vh; }
body.full #rf .rf-name { font-size: 19vh; min-height: 19vh; line-height: 1; white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }
body.full #rf .rf-name.small { font-size: 10vh; min-height: 0; white-space: normal; }
body.full #rf .rf-reel { display: block; font-size: 8vh; font-weight: 700; line-height: 1; text-transform: uppercase; white-space: nowrap; opacity: .32; min-height: 8vh; max-width: 88vw; overflow: hidden; text-overflow: ellipsis; }
body.full #rf .rf-card.rolling { background: linear-gradient(150deg, #2f2bd0, #7b2ff7 55%, #f107a3); }
body.full #rf .rf-card.rolling .rf-name { text-shadow: 0 0 4vh rgba(255, 255, 255, .7), 0 .8vh 0 rgba(0,0,0,.25); animation: rfshake .12s linear infinite; }
@keyframes rfshake { 50% { transform: translateY(.5vh); } }
body.full #rf .rf-card.win { animation: winpop .7s cubic-bezier(.2, 1.5, .4, 1), rfglow 1.4s ease-in-out .7s infinite; }
@keyframes rfglow { 50% { box-shadow: 0 3vh 9vh rgba(0,0,0,.55), 0 0 22vh rgba(255, 225, 77, .95); transform: scale(1.02); } }
body.full #rf .rf-card.win .rf-name { font-size: 21vh; min-height: 21vh; }
body.full #rf .rf-dice { display: block; font-size: 22vh; line-height: 1; animation: rfdice 2.2s ease-in-out infinite; }
@keyframes rfdice { 25% { transform: rotate(-14deg) translateY(-2vh); } 75% { transform: rotate(14deg) translateY(-2vh); } }
@media (prefers-reduced-motion: reduce) { body.full #rf .rf-rays, body.full #rf .rf-card.rolling .rf-name, body.full #rf .rf-card.win, body.full #rf .rf-dice { animation: none; } }

/* El confeti del sorteo cae por toda la pantalla, no desde el borde del cuadro */
#rf .confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }

/* Ante un ganador: confirmar o seguir jugando */
.win-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.win-actions button { padding: 16px 8px; border-radius: 14px; font-size: 1.05rem; font-weight: 800; border: 2px solid #fff; }
#confirmwin { background: #fff; color: #0a6b3c; }
#keepplaying { background: #14122a; color: #fff; }
#win-confirmed { margin-top: 14px; display: grid; gap: 10px; }
#win-confirmed p { margin: 0; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: 1.2rem; font-weight: 800; }
#win-confirmed a.btn.big { background: #fff; color: #0a6b3c; border-color: #fff; }
@media (max-width: 360px) { .win-actions { grid-template-columns: 1fr; } }

/* Empate: primero el sorteo, después la confirmación */
.tie-hint { margin: 12px 0 0; font-weight: 700; font-size: 1rem; }
.win-actions.single { grid-template-columns: 1fr; }
.win-actions.single #keepplaying { padding: 10px 8px; font-size: .95rem; font-weight: 600; border-width: 1px; }

/* Ganador confirmado en el GC: cartel abajo al centro, sin tapar la cámara */
.gc-winlow { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); display: grid; justify-items: center; gap: .6vh; text-align: center; min-width: 60vh; max-width: 150vh; padding: 3.4vh 6vh 2.2vh;
  color: #fff; background: var(--gc-dots), var(--gc-pink); border: var(--gc-line) solid var(--gc-yellow); border-radius: 3vh; box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .45); animation: winlow .6s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes winlow { from { transform: translate(-50%, 130%); } }
.gc-winlow-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%); white-space: nowrap; background: var(--gc-yellow); color: #2a1030; font-size: 3vh; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; padding: .4vh 3vh; border-radius: 99px; }
.gc-winlow b { font-size: 8vh; font-weight: 900; line-height: 1; text-transform: uppercase; text-shadow: .4vh .4vh 0 var(--gc-shade); overflow-wrap: anywhere; }
.gc-winlow.many b { font-size: 5vh; }
.gc-winlow small { font-size: 3vh; font-weight: 700; color: var(--gc-yellow); text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .gc-winlow { animation: none; } }

/* El Rosco: aceptar ganador y cartel inferior en OBS */
.w-accept { width: 100%; margin-top: 12px; background: #1fae63; border-color: #1fae63; color: #fff; }
.w-accepted { margin: 12px 0 0; padding: 10px; border-radius: 12px; background: rgba(31, 174, 99, .2); font-weight: 800; text-align: center; }
.rosco-winlow { position: fixed; left: 50%; bottom: 4vh; transform: translateX(-50%); display: grid; justify-items: center; gap: .6vh; text-align: center; min-width: 60vh; max-width: 150vh; padding: 3.6vh 6vh 2.2vh; color: #fff;
  font-family: "Fredoka", "Source Sans 3", system-ui, sans-serif; background: linear-gradient(135deg, #5b2bd6, #2a6df4); border: .5vh solid #ffe14d; border-radius: 3vh; box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .45); animation: winlow .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.rosco-winlow-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%); white-space: nowrap; background: #ffe14d; color: #2a1060; font-size: 3vh; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .4vh 3vh; border-radius: 99px; }
.rosco-winlow b { font-size: 8vh; font-weight: 700; line-height: 1; text-transform: uppercase; text-shadow: .4vh .4vh 0 rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.rosco-winlow small { font-size: 3.2vh; font-weight: 600; color: #ffe14d; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .rosco-winlow { animation: none; } }

/* El cartel del ganador se retira solo a los 15 segundos */
.gc-winlow, .rosco-winlow { animation: winlow .6s cubic-bezier(.2, 1.3, .4, 1) both, winlowout .5s ease-in 14.5s forwards; }
@keyframes winlowout { to { opacity: 0; transform: translate(-50%, 130%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .gc-winlow, .rosco-winlow { animation: winlowout .01s linear 15s forwards; } }
.w-accept { margin-bottom: 12px; }

.control-grid button.wide { grid-column: 1 / -1; padding: 12px 8px; }

.w-back { width: 100%; margin: 10px 0 12px; }

/* Transmisión en vivo bajo el cartón: oculta (sin alto) hasta que el canal esté en vivo */
.live { width: 100%; max-width: 460px; margin: 0 auto; height: 0; overflow: hidden; border-radius: 14px; background: #000; }
.live.on { height: auto; aspect-ratio: 16 / 9; margin-top: 14px; border: 1px solid rgba(255, 255, 255, .15); }
.live #live-player, .live iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; pointer-events: none; }

/* Transmisión: botones de audio y pantalla completa */
.live.on { aspect-ratio: auto; }
.live-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: #14121f; }
.live-bar button { padding: 9px 6px; font-size: .92rem; font-weight: 700; border-radius: 10px; }
/* Vista ampliada: ocupa toda la pantalla; con el celular en vertical el video se gira para aprovecharla */
body.live-open { overflow: hidden; }
.live.full { position: fixed; inset: 0; z-index: 1000; max-width: none; height: auto; margin: 0; border: 0; border-radius: 0; display: grid; place-items: center; }
.live.full #live-player { width: min(100vw, calc(100vh * 16 / 9)); }
.live.full .live-bar { position: absolute; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(0, 0, 0, .55); border-radius: 14px; width: min(92vw, 420px); }
@media (orientation: portrait) {
  .live.full #live-player { width: min(100vh, calc(100vw * 16 / 9)); transform: rotate(90deg); }
  .live.full .live-bar { left: 10px; bottom: 50%; transform: translateY(50%) rotate(90deg); transform-origin: center; width: min(80vh, 420px); left: calc(10px - min(80vh, 420px) / 2 + 28px); }
}
/* Vista ampliada: el video va centrado de forma absoluta para que el giro no lo desplace */
.live.full #live-player { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (orientation: portrait) {
  .live.full #live-player { transform: translate(-50%, -50%) rotate(90deg); }
  .live.full .live-bar { left: 34px; top: 50%; bottom: auto; transform: translate(-50%, -50%) rotate(90deg); width: min(80vh, 420px); }
}

/* El Rosco en el celular del público: video arriba y, debajo, la pregunta en juego */
.prosco { max-width: 460px; margin: 14px auto 0; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, #2b1f6b, #1b2a6e); border: 1px solid rgba(255, 255, 255, .16); }
.prosco-head { display: flex; align-items: center; gap: 10px; }
.prosco-head b { font-size: 1.15rem; color: #ffe14d; }
.prosco-head span { flex: 1; font-weight: 600; }
.prosco-clock { flex: 0 0 auto !important; font-variant-numeric: tabular-nums; font-size: 1.3rem; font-weight: 800; background: rgba(0, 0, 0, .35); padding: 2px 10px; border-radius: 10px; }
.prosco-q { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.prosco-letter { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #2f7bff; color: #fff; font-size: 1.8rem; font-weight: 800; border: 3px solid #fff; }
.prosco-q p { margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 600; }
.prosco-reveal { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #1fae63; font-weight: 600; }
.prosco-win { margin-top: 12px; text-align: center; font-size: 1.5rem; font-weight: 800; }
.prosco-win small { display: block; font-size: 1rem; font-weight: 600; color: #ffe14d; }
.prosco-wait { margin-top: 12px; text-align: center; font-weight: 600; }
.prosco-score { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .92rem; opacity: .95; }
.prosco-score span.on { font-weight: 800; }
.prosco-score .ok { color: #58e39a; } .prosco-score .ko { color: #ff8b8b; }

.open-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }

.home-create.open { background: linear-gradient(135deg, #1fae63, #0f8a8a); font-size: 1.35rem; text-align: center; }
.home-note { margin: 8px 0 0; text-align: center; }

/* Tablero del DJ: botón para activar los efectos de sonido */
.sound-btn { position: fixed; right: 2vh; bottom: 2vh; z-index: 50; padding: 1.4vh 2.6vh; font-size: 2.4vh; font-weight: 800; border-radius: 99px; background: #ffc400; color: #2a1030; border: .3vh solid #fff; box-shadow: 0 .8vh 2vh rgba(0, 0, 0, .4); animation: soundpulse 1.6s ease-in-out infinite; }
@keyframes soundpulse { 50% { transform: scale(1.06); } }

.live-bar button.wide { grid-column: 1 / -1; font-weight: 600; opacity: .9; }
.live.full .live-bar button.wide { display: none; }

/* Tablero del DJ · El Rosco: tres franjas de alto fijo (título, textos, ruedas). La pregunta y la
   respuesta ocupan siempre el mismo espacio, así el rosco no se mueve ni se corta, sea corto o largo el texto. */
body.full.wheel-screen { overflow: hidden; }
body.full.wheel-screen #pw { position: fixed; inset: 0; display: grid; grid-template-rows: 8vh 24vh minmax(0, 1fr); padding: 0 2vw 2vh; overflow: hidden; }
body.full.wheel-screen #pw:has(.win-screen), body.full.wheel-screen #pw:has(#fb) { display: block; padding: 0; }
body.full .pw-title { margin: 0; align-self: center; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.full .pw-text { display: flex; flex-direction: column; justify-content: center; gap: 1vh; min-height: 0; overflow: hidden; }
body.full .pw-question { margin: 0 auto; width: min(150vh, 94vw); max-width: none; font-size: 3.3vh; line-height: 1.2; padding: 1.2vh 3vh; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; flex: 0 0 auto; }
body.full .pw-reveal { margin: 0 auto; width: min(150vh, 94vw); max-width: none; padding: .8vh 3vh; display: flex; align-items: baseline; justify-content: center; gap: 2vh; flex: 0 0 auto; }
body.full .pw-reveal .rv-head { font-size: 2.2vh; } body.full .pw-reveal .rv-answer { font-size: 4.2vh; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.full.wheel-screen .wheels { min-height: 0; height: 100%; align-content: center; justify-items: center; gap: 2vh 2vw; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
body.full.wheel-screen .wheel-box { display: grid; place-items: center; height: 100%; min-height: 0; width: 100%; }
body.full.wheel-screen .wheels .wheel { display: block; width: auto; height: auto; max-width: min(64vh, 94vw); max-height: 64vh; aspect-ratio: 1; width: min(64vh, 94vw); }
body.full.wheel-screen .wheels.n2 .wheel { width: min(64vh, 46vw); max-width: min(64vh, 46vw); }
body.full.wheel-screen .wheels.n3 .wheel { width: min(64vh, 31vw); max-width: min(64vh, 31vw); }
body.full.wheel-screen .wheels.n4 .wheel { width: min(64vh, 23vw); max-width: min(64vh, 23vw); }

/* Cartel del ganador sin confirmar todavía: entra y se queda (no cuenta los 15 s hasta que se confirme) */
.gc-winlow.hold, .rosco-winlow.hold { animation: winlow .6s cubic-bezier(.2, 1.3, .4, 1) both; }

/* Nombres siempre completos: la letra se achica según el largo del nombre (--n = cantidad de letras),
   en vez de cortarse o partirse en dos líneas. */
#rf .rf-name:not(.small) { font-size: min(10vh, calc(68vw / (var(--n, 8) * .63))); overflow: visible; text-overflow: clip; display: flex; align-items: center; justify-content: center; }
body.full #rf .rf-name:not(.small) { font-size: min(19vh, calc(84vw / (var(--n, 8) * .63))); overflow: visible; text-overflow: clip; max-width: none; }
body.full #rf .rf-card.win .rf-name:not(.small) { font-size: min(21vh, calc(84vw / (var(--n, 8) * .63))); }
.win-name { font-size: min(15vh, calc(80vw / (var(--n, 8) * .63))); white-space: nowrap; overflow-wrap: normal; }
.bwin-names b { font-size: min(11vh, calc(80vw / (var(--n, 8) * .59))); white-space: nowrap; overflow-wrap: normal; }
.bwin.many .bwin-names b { font-size: min(6.4vh, calc(42vw / (var(--n, 8) * .59))); }
.gc-winlow b { font-size: min(8vh, calc(138vh / (var(--n, 8) * .59))); white-space: nowrap; overflow-wrap: normal; }
.gc-winlow.many b { font-size: min(5vh, calc(138vh / (var(--n, 8) * .59))); }
.rosco-winlow b { font-size: min(8vh, calc(138vh / (var(--n, 8) * .63))); white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 700px) { .win-name { font-size: min(15vw, calc(80vw / (var(--n, 8) * .63))); } }

/* Antes de la primera bolita: aviso en el lugar de la bolita */
.gc-soon { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1vh; font-size: 3.3vh; font-weight: 900; line-height: 1.1; text-transform: uppercase; color: var(--gc-yellow); text-shadow: .3vh .3vh 0 var(--gc-shade, rgba(60, 0, 30, .55)); animation: soonbeat 1.4s ease-in-out infinite; }
.fb-soon { display: grid; place-items: center; text-align: center; font-size: 6vh; font-weight: 900; line-height: 1.1; text-transform: uppercase; color: #ffc400; text-shadow: .5vh .5vh 0 rgba(0, 0, 0, .35); animation: soonbeat 1.4s ease-in-out infinite; min-height: 22vh; }
@keyframes soonbeat { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .gc-soon, .fb-soon { animation: none; } }

/* Panel del animador de El Rosco: la pregunta en letra grande y de alto contraste, para leerla de corrido */
.w-question { padding: 16px 16px 18px; background: #0b0a16; border: 2px solid #5a54a0; }
.w-qtext { font-size: 1.75rem; font-weight: 700; line-height: 1.32; color: #fff; letter-spacing: .005em; word-spacing: .06em; text-wrap: pretty; }
.w-answer { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #5a54a0; display: grid; gap: 2px; color: #5fe0a0; }
.w-answer small { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.w-answer b { font-size: 1.75rem; line-height: 1.2; }
@media (min-width: 900px) { .w-qtext, .w-answer b { font-size: 2.1rem; } }

/* ---------- Karaoke ---------- */
#kg, #kf { --gc-pink: #c4175e; --gc-shade: rgba(60, 0, 30, .55); --gc-yellow: #ffc400; --gc-line: .5vh;
  --gc-dots: radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 0 0 / 4.2vh 4.2vh, radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 2.1vh 2.1vh / 4.2vh 4.2vh;
  color: #fff; font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; }
#kg.th-tobalaba, #kf.th-tobalaba { --gc-pink: #c81e1e; --gc-shade: rgba(70, 0, 0, .55); }
#kg.th-kennedy, #kf.th-kennedy { --gc-pink: #1487cf; --gc-shade: rgba(0, 32, 78, .55); }
/* GC de OBS: zócalo abajo y QR arriba a la derecha; entra y sale deslizándose */
#kg { position: fixed; inset: 0; overflow: hidden; }
.kg-bar { position: absolute; left: 3vw; right: 3vw; bottom: 4vh; height: 20vh; display: flex; align-items: stretch; border-radius: 3vh; overflow: hidden;
  background: var(--gc-dots), rgba(14, 12, 30, .94); border: var(--gc-line) solid var(--gc-yellow); box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .5); transform: translateY(160%); transition: transform .6s cubic-bezier(.3, .9, .3, 1); }
#kg.on .kg-bar { transform: none; }
.kg-tag { flex: 0 0 auto; display: grid; align-content: center; justify-items: center; gap: .6vh; padding: 0 3vh; text-align: center; white-space: nowrap; }
.kg-tag small { font-size: 2.3vh; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gc-yellow); }
.kg-tag b { font-size: 3.6vh; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.kg-now, .kg-next { min-width: 0; display: grid; align-content: center; justify-items: center; gap: .3vh; padding: 1.4vh 3vh; text-align: center; overflow: hidden; }
.kg-now { flex: 1.25 1 0; background: var(--gc-dots), var(--gc-pink); border-left: var(--gc-line) solid var(--gc-yellow); }
.kg-next { flex: 1 1 0; border-left: var(--gc-line) solid var(--gc-yellow); }
.kg-now > *, .kg-next > * { max-width: 100%; white-space: nowrap; line-height: 1.12; }
.kg-now b { font-size: min(7.2vh, calc(48vw / (var(--n, 8) * .59))); font-weight: 900; color: var(--gc-yellow); text-transform: uppercase; text-shadow: .3vh .3vh 0 var(--gc-shade); }
.kg-now span { font-size: min(4.4vh, calc(48vw / (var(--n, 8) * .52))); font-weight: 700; }
.kg-now i { font-size: min(3.5vh, calc(48vw / (var(--n, 8) * .52))); font-weight: 700; font-style: normal; opacity: .9; }
.kg-next small { font-size: 2.4vh; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--gc-yellow); }
.kg-next b { font-size: min(4.4vh, calc(36vw / (var(--n, 8) * .59))); font-weight: 900; text-transform: uppercase; }
.kg-next span { font-size: min(3.3vh, calc(36vw / (var(--n, 8) * .52))); font-weight: 700; }
.kg-next i { font-size: min(2.8vh, calc(36vw / (var(--n, 8) * .52))); font-weight: 700; font-style: normal; opacity: .85; }
.kg-qr { position: absolute; right: 3vw; bottom: 27vh; display: grid; justify-items: center; gap: .8vh; padding: 1.4vh 1.4vh 1vh; border-radius: 2.4vh; background: #fff; border: var(--gc-line) solid var(--gc-yellow); box-shadow: 0 1vh 3vh rgba(0, 0, 0, .45);
  transform: translateX(160%); transition: transform .6s cubic-bezier(.3, .9, .3, 1); }
#kg.on .kg-qr { transform: none; }
.kg-qr .qr { display: block; width: 22vh; height: 22vh; border: 0; padding: 0; border-radius: 0; }
.kg-qr b { font-size: 2.4vh; font-weight: 900; text-transform: uppercase; color: var(--gc-pink); }
@media (prefers-reduced-motion: reduce) { .kg-bar, .kg-qr { transition: none; } }
/* Tablero del DJ: cantante actual en grande, QR y los que siguen */
#kf { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: 13vh minmax(0, 1fr); gap: 3vh; padding: 3vh 2.4vw; overflow: hidden; }
.kf-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 3vh; padding: 0 4vh; border-radius: 3vh; background: var(--gc-dots), var(--gc-pink); border: var(--gc-line) solid var(--gc-yellow); }
.kf-top b { font-size: 7vh; font-weight: 900; text-transform: uppercase; color: var(--gc-yellow); text-shadow: .4vh .4vh 0 var(--gc-shade); white-space: nowrap; }
.kf-top span { font-size: 3.4vh; font-weight: 700; background: var(--gc-shade); padding: .6vh 3vh; border-radius: 99px; white-space: nowrap; }
.kf-now { min-width: 0; display: grid; align-content: center; justify-items: center; gap: 1.4vh; padding: 3vh; text-align: center; border-radius: 4vh; background: var(--gc-dots), var(--gc-pink); border: .8vh solid var(--gc-yellow); box-shadow: 0 2vh 6vh rgba(0, 0, 0, .45); overflow: hidden; }
.kf-now > * { max-width: 100%; white-space: nowrap; line-height: 1.1; }
.kf-now small { font-size: 5vh; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; background: var(--gc-shade); padding: .6vh 4vh; border-radius: 99px; }
.kf-now b { font-size: min(17vh, calc(52vw / (var(--n, 8) * .59))); font-weight: 900; text-transform: uppercase; color: var(--gc-yellow); text-shadow: .6vh .6vh 0 var(--gc-shade); }
.kf-now span { font-size: min(8vh, calc(52vw / (var(--n, 8) * .52))); font-weight: 700; }
.kf-now i { font-size: min(6vh, calc(52vw / (var(--n, 8) * .52))); font-weight: 700; font-style: normal; opacity: .9; }
.kf-side { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 3vh; }
.kf-qr { justify-self: center; display: grid; justify-items: center; gap: 1vh; padding: 2vh 2vh 1.4vh; border-radius: 3vh; background: #fff; border: .8vh solid var(--gc-yellow); }
.kf-qr .qr { display: block; width: 25vh; height: 25vh; border: 0; padding: 0; border-radius: 0; }
.kf-qr b { font-size: 3.4vh; font-weight: 900; text-transform: uppercase; color: var(--gc-pink); }
.kf-next { min-height: 0; display: grid; align-content: start; gap: 1.2vh; padding: 2vh 2.4vh; border-radius: 3vh; background: rgba(14, 12, 30, .8); border: var(--gc-line) solid var(--gc-yellow); overflow: hidden; }
.kf-next > small { font-size: 3vh; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--gc-yellow); }
.kf-next > div { display: flex; align-items: center; gap: 1.6vh; min-width: 0; }
.kf-next em { flex: 0 0 auto; width: 5.4vh; height: 5.4vh; display: grid; place-items: center; border-radius: 50%; background: var(--gc-yellow); color: #2a1030; font-size: 3vh; font-weight: 900; font-style: normal; }
.kf-next p { margin: 0; min-width: 0; display: grid; }
.kf-next p > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kf-next p b { font-size: 3.6vh; font-weight: 900; text-transform: uppercase; line-height: 1.15; }
.kf-next p span { font-size: 2.7vh; font-weight: 700; opacity: .9; line-height: 1.15; }
/* Centro de control: selector de local del karaoke */
#kar-venue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
#kar-venue button { padding: 12px 6px; border-radius: 12px; font-weight: 700; }
#kar-venue button.on { background: var(--win); border-color: #fff; color: #fff; }

/* ---------- Programación: aviso «A continuación» y vista del show ---------- */
.next-up { position: absolute; left: 50%; bottom: 10.5vh; transform: translateX(-50%); display: flex; align-items: center; gap: 1.6vh; max-width: 110vh; padding: .8vh 3vh; border-radius: 99px; white-space: nowrap;
  background: rgba(14, 12, 30, .92); border: .35vh solid var(--gc-yellow, #ffc400); color: #fff; font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; box-shadow: 0 .8vh 2vh rgba(0, 0, 0, .4); }
.next-up small { font-size: 2.1vh; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--gc-yellow, #ffc400); }
.next-up b { font-size: 2.9vh; font-weight: 900; }
.next-up span { font-size: min(2.9vh, calc(70vh / (var(--n, 8) * .52))); font-weight: 700; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.next-up.kg-up { bottom: 25.5vh; left: 3vw; transform: none; }
.ag-b { display: inline-block; margin: 2px 2px 2px 0; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); white-space: nowrap; }
.ag-b.on { background: var(--win); color: #fff; font-weight: 700; }
#sg, #sf { --gc-pink: #c4175e; --gc-shade: rgba(60, 0, 30, .55); --gc-yellow: #ffc400; --gc-line: .5vh;
  --gc-dots: radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 0 0 / 4.2vh 4.2vh, radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 2.1vh 2.1vh / 4.2vh 4.2vh;
  position: fixed; inset: 0; overflow: hidden; color: #fff; font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; }
#sg.th-tobalaba, #sf.th-tobalaba { --gc-pink: #c81e1e; --gc-shade: rgba(70, 0, 0, .55); }
#sg.th-kennedy, #sf.th-kennedy { --gc-pink: #1487cf; --gc-shade: rgba(0, 32, 78, .55); }
/* GC del show: zócalo abajo a la izquierda, deja libre el escenario */
.sg-bar { position: absolute; left: 3vw; bottom: 5vh; max-width: 62vw; display: flex; align-items: stretch; border-radius: 3vh; overflow: hidden; border: var(--gc-line) solid var(--gc-yellow); box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .5); animation: sgin .7s cubic-bezier(.3, .9, .3, 1) both; }
@keyframes sgin { from { transform: translateX(-120%); } }
.sg-tag { display: grid; align-content: center; justify-items: center; gap: .4vh; padding: 0 3vh; background: var(--gc-dots), rgba(14, 12, 30, .94); text-align: center; white-space: nowrap; }
.sg-tag small { font-size: 2.2vh; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gc-yellow); }
.sg-tag b { font-size: 4vh; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sg-main { min-width: 0; display: grid; align-content: center; gap: .2vh; padding: 1.8vh 4vh 2vh; background: var(--gc-dots), var(--gc-pink); border-left: var(--gc-line) solid var(--gc-yellow); }
.sg-main small { font-size: 3vh; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sg-main b { font-size: min(8vh, calc(44vw / (var(--n, 8) * .59))); font-weight: 900; line-height: 1.05; text-transform: uppercase; color: var(--gc-yellow); text-shadow: .35vh .35vh 0 var(--gc-shade); white-space: nowrap; }
/* Tablero del DJ: el show en grande */
#sf { display: grid; place-items: center; }
.sf-card { display: grid; justify-items: center; gap: 2vh; max-width: 92vw; padding: 6vh 8vh 7vh; text-align: center; border-radius: 6vh; background: var(--gc-dots), var(--gc-pink); border: 1vh solid var(--gc-yellow); box-shadow: 0 3vh 9vh rgba(0, 0, 0, .5); }
.sf-card > small { font-size: 4.4vh; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; background: var(--gc-shade); padding: .8vh 4vh; border-radius: 99px; white-space: nowrap; }
.sf-card > i { font-size: 6.5vh; font-weight: 700; font-style: normal; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.sf-card > b { font-size: min(22vh, calc(80vw / (var(--n, 8) * .59))); font-weight: 900; line-height: 1; text-transform: uppercase; color: var(--gc-yellow); text-shadow: .7vh .7vh 0 var(--gc-shade); white-space: nowrap; }
.sf-card > span { font-size: 4.4vh; font-weight: 700; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .sg-bar { animation: none; } }

/* ---------- Guiño a la estética propia de cada local ----------
   Frida: magenta con franja verde petróleo (papel picado). Kennedy: azul rey con dorado.
   Tobalaba: morado de muro de ladrillo, con frambuesa y dorado. */
#kg, #kf, #sg, #sf { --k-tag: rgba(14, 12, 30, .94); --k-next: rgba(14, 12, 30, .94); }
#kg.th-frida, #kf.th-frida, #sg.th-frida, #sf.th-frida { --gc-pink: #c4175e; --k-tag: #05686e; --k-next: #7d1040; --gc-yellow: #ffc400; }
#kg.th-kennedy, #kf.th-kennedy, #sg.th-kennedy, #sf.th-kennedy { --gc-pink: #1a3fb8; --gc-shade: rgba(3, 12, 60, .65); --k-tag: #0a1238; --k-next: #0f1d5c; --gc-yellow: #e6b445; }
#kg.th-tobalaba, #kf.th-tobalaba, #sg.th-tobalaba, #sf.th-tobalaba { --gc-pink: #5b2a86; --gc-shade: rgba(30, 6, 50, .65); --k-tag: #d1345b; --k-next: #2a1440; --gc-yellow: #f0c14b; }
.kg-bar { background: var(--k-next); }
.kg-tag, .sg-tag { background: var(--gc-dots), var(--k-tag); }
.kg-next { background: var(--gc-dots), var(--k-next); }
.kf-next { background: var(--k-next); }
.kf-top { background: var(--gc-dots), var(--k-tag); }
/* Tobalaba: muro de ladrillo en los bloques principales */
#kg.th-tobalaba .kg-now, #kf.th-tobalaba .kf-now, #sg.th-tobalaba .sg-main, #sf.th-tobalaba .sf-card {
  background: repeating-linear-gradient(0deg, transparent 0 5.6vh, rgba(0, 0, 0, .22) 5.6vh 6vh), repeating-linear-gradient(90deg, transparent 0 13vh, rgba(0, 0, 0, .18) 13vh 13.4vh), linear-gradient(135deg, #5b2a86, #7a2350); }
#kg.th-tobalaba .kg-tag small, #sg.th-tobalaba .sg-tag small, #kf.th-tobalaba .kf-top b { color: #fff; }
/* Kennedy: telón azul con líneas verticales y dorado */
#kg.th-kennedy .kg-now, #kf.th-kennedy .kf-now, #sg.th-kennedy .sg-main, #sf.th-kennedy .sf-card {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 .5vh, transparent .5vh 1.6vh), linear-gradient(180deg, #2350d8, #0f2c96); }
#kg.th-kennedy .kg-now b, #kf.th-kennedy .kf-now b, #sg.th-kennedy .sg-main b, #sf.th-kennedy .sf-card > b, #kf.th-kennedy .kf-top b {
  background: linear-gradient(180deg, #f3d27a, #c98f2b); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(.3vh .3vh 0 rgba(3, 12, 60, .7)); }
/* Frida: guirnalda de papel picado sobre el zócalo */
#kg.th-frida .kg-bar::before, #sg.th-frida .sg-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.1vh; z-index: 1;
  background: repeating-linear-gradient(90deg, #ffc400 0 6vh, #0a9a94 6vh 12vh, #ff7a1a 12vh 18vh, #2338a8 18vh 24vh, #56b04c 24vh 30vh, #e8262e 30vh 36vh); }
.kg-bar, .sg-bar { position: absolute; }

.sg-tag b { font-size: 3.3vh; }

/* Zócalos simétricos: el bloque principal al centro y los dos laterales del mismo ancho */
.kg-tag { flex: 1 1 0; min-width: 0; padding: 0 2vh; }
.kg-now { flex: 1.35 1 0; }
.kg-next { flex: 1 1 0; }
.kg-tag b { font-size: min(3.6vh, 1.75vw); }
.kg-tag small { font-size: min(2.3vh, 1.15vw); }
.sg-bar { left: 0; right: 0; margin: 0 auto; width: fit-content; max-width: 86vw; animation-name: sgup; }
@keyframes sgup { from { transform: translateY(160%); } }
.sg-bar::after { content: ""; flex: 0 0 auto; width: var(--sg-side, 0px); background: var(--gc-dots), var(--k-tag); border-left: var(--gc-line) solid var(--gc-yellow); }
.sg-main { text-align: center; justify-items: center; }
.next-up.kg-up { left: 50%; transform: translateX(-50%); }

.sg-bar::after { content: none; }
.sg-bar { min-height: 15vh; }
.sg-side { border-left: var(--gc-line) solid var(--gc-yellow); }
/* Karaoke en el celular del público: quién canta, mi lugar en la lista y el formulario para pedir */
.pkar { max-width: 460px; margin: 14px auto 0; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, #3a1560, #7a1650); border: 1px solid rgba(255, 255, 255, .18); }
.pkar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pkar-head b { font-size: 1.15rem; color: #ffe14d; }
.pkar-head span { font-size: .85rem; font-weight: 700; background: rgba(0, 0, 0, .3); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pkar-now { display: grid; gap: 1px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .28); }
.pkar-now small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffe14d; }
.pkar-now b { font-size: 1.2rem; line-height: 1.2; overflow-wrap: anywhere; }
.pkar-now span { font-size: .95rem; opacity: .92; overflow-wrap: anywhere; }
.pkar-turn { margin-top: 12px; padding: 12px; border-radius: 12px; background: #1fae63; font-weight: 700; text-align: center; }
.pkar-turn.now { background: #ffc400; color: #2a1030; font-size: 1.15rem; }
.pkar form { display: grid; gap: 10px; margin-top: 14px; }
.pkar form h3 { margin: 0; font-size: 1.25rem; }
.pkar form p { margin: 0; }
.pkar form .f { display: grid; gap: 4px; font-weight: 600; }
.pkar form input { font-size: 16px; }
.pkar form button { width: 100%; margin-top: 4px; }

.pkar-qr { margin: 14px 0 2px; font-weight: 700; text-align: center; }

.pkar form select, form select[name=place] { font-size: 16px; width: 100%; padding: 10px; border-radius: 10px; background: #12101f; color: #fff; border: 1px solid #5a54a0; }

/* Karaoke como cuarto bloque del flujo */
.home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-steps .s4 { background: linear-gradient(160deg, #12b8a6, #0a7d8c); }
#win-confirmed #win-karaoke { background: #fff; color: #0a6b3c; border-color: #fff; }
.kc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.kc-row em { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); font-style: normal; font-weight: 800; }
.kc-row.now em { background: #ffc400; }
.kc-row p { margin: 0; min-width: 0; display: grid; }
.kc-row small { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffc400; }
.kc-row b { font-size: 1.15rem; overflow-wrap: anywhere; }
.kc-row span { opacity: .9; overflow-wrap: anywhere; }
#kar-venue button:disabled { opacity: .55; }

/* Sugerencias de canciones bajo el campo */
.sug { display: grid; gap: 6px; margin-top: -4px; }
.sug:empty { display: none; }
.sug button { display: grid; gap: 1px; text-align: left; width: 100%; padding: 9px 12px; border-radius: 10px; background: #12101f; border: 1px solid #5a54a0; color: #fff; font-size: 1rem; }
.sug button b { font-weight: 700; overflow-wrap: anywhere; }
.sug button span { font-size: .88rem; opacity: .85; overflow-wrap: anywhere; }

.pkar-limit { margin: 12px 0 2px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .28); text-align: center; line-height: 1.35; }

/* ---------- Votación del público ---------- */
.home-steps .s5 { grid-column: 1 / -1; background: linear-gradient(160deg, #f0b400, #d97a00); }
/* Panel del animador */
.vc-list { display: grid; gap: 8px; margin-top: 12px; }
.vc-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #12101f; border: 1px solid #3d3870; }
.vc-row.on { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255, 196, 0, .35); }
.vc-row p { flex: 1; min-width: 0; margin: 0; display: grid; }
.vc-row p b { font-size: 1.1rem; overflow-wrap: anywhere; }
.vc-row p small { opacity: .8; }
.vc-row button { flex: 0 0 auto; }
.vc-x { padding: 8px 12px; opacity: .7; }
.vc-next { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: rgba(255, 196, 0, .12); border: 1px dashed #ffc400; line-height: 1.4; }
.vc-next small { display: block; opacity: .75; }
/* Celular */
.pvote { max-width: 460px; margin: 14px auto 0; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, #3a1560, #7a1650); border: 1px solid rgba(255, 255, 255, .18); }
.pvote-head b { font-size: 1.15rem; color: #ffe14d; }
.pvote-ask { margin: 12px 0; text-align: center; font-size: 1rem; }
.pvote-ask b { display: block; font-size: 1.7rem; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.pvote-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pvote-keys button { padding: 0; height: 64px; border-radius: 14px; font-size: 1.6rem; font-weight: 800; background: #12101f; border: 2px solid #5a54a0; color: #fff; }
.pvote-keys button.on, .pvote-duel button.on { background: #ffc400; border-color: #fff; color: #2a1030; }
.pvote-duel { display: grid; gap: 10px; }
.pvote-duel button { padding: 22px 10px; border-radius: 16px; font-size: 1.5rem; font-weight: 800; background: #12101f; border: 2px solid #5a54a0; color: #fff; overflow-wrap: anywhere; }
.pvote-ok { margin: 12px 0 2px; text-align: center; font-weight: 700; color: #5fe0a0; }
.pvote-wait { margin: 14px 0 6px; text-align: center; font-size: 1.1rem; line-height: 1.4; }
.pvote-win { margin: 14px 0 6px; text-align: center; font-size: 2rem; font-weight: 900; color: #ffe14d; overflow-wrap: anywhere; }
.pvote-win small { display: block; font-size: 1rem; font-weight: 700; color: #fff; }
.pvote-place { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-top: 6px; border-radius: 10px; background: rgba(0, 0, 0, .28); }
.pvote-place b { color: #ffe14d; white-space: nowrap; }
.pvote-place span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.pvote-place i { font-style: normal; font-weight: 800; }
/* Pantallas: mismos colores y guiños por local que el karaoke */
#vg, #vf { --gc-pink: #c4175e; --gc-shade: rgba(60, 0, 30, .55); --gc-yellow: #ffc400; --gc-line: .5vh; --k-tag: #05686e; --k-next: #7d1040;
  --gc-dots: radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 0 0 / 4.2vh 4.2vh, radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 2.1vh 2.1vh / 4.2vh 4.2vh;
  color: #fff; font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; }
#vg.th-kennedy, #vf.th-kennedy { --gc-pink: #1a3fb8; --gc-shade: rgba(3, 12, 60, .65); --k-tag: #0a1238; --k-next: #0f1d5c; --gc-yellow: #e6b445; }
#vg.th-tobalaba, #vf.th-tobalaba { --gc-pink: #5b2a86; --gc-shade: rgba(30, 6, 50, .65); --k-tag: #d1345b; --k-next: #2a1440; --gc-yellow: #f0c14b; }
#vg { position: fixed; inset: 0; overflow: hidden; }
.vg-bar { position: absolute; left: 3vw; right: 3vw; bottom: 4vh; height: 20vh; display: flex; align-items: stretch; border-radius: 3vh; overflow: hidden; background: var(--k-next);
  border: var(--gc-line) solid var(--gc-yellow); box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .45); transform: translateY(140%); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
#vg.on .vg-bar { transform: none; }
.vg-tag, .vg-main, .vg-side { min-width: 0; display: grid; align-content: center; justify-items: center; gap: .4vh; padding: 1.4vh 2.4vh; text-align: center; overflow: hidden; }
.vg-tag > *, .vg-main > *, .vg-side > * { max-width: 100%; white-space: nowrap; line-height: 1.12; }
.vg-tag { flex: 1 1 0; background: var(--gc-dots), var(--k-tag); }
.vg-tag small { font-size: min(2.3vh, 1.15vw); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gc-yellow); overflow: hidden; text-overflow: ellipsis; }
.vg-tag b { font-size: min(3.6vh, 1.75vw); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.vg-main { flex: 1.35 1 0; background: var(--gc-dots), var(--gc-pink); border-left: var(--gc-line) solid var(--gc-yellow); border-right: var(--gc-line) solid var(--gc-yellow); }
.vg-main b { font-size: min(7.2vh, calc(48vw / (var(--n, 8) * .59))); font-weight: 900; color: var(--gc-yellow); text-transform: uppercase; text-shadow: .3vh .3vh 0 var(--gc-shade); }
.vg-main span { font-size: min(3.6vh, calc(48vw / (var(--n, 8) * .5))); font-weight: 700; }
.vg-duel em { font-style: normal; font-size: .55em; color: #fff; margin: 0 .5em; vertical-align: middle; }
.vg-side { flex: 1 1 0; background: var(--gc-dots), var(--k-next); }
.vg-side small { font-size: min(3.4vh, calc(30vw / (var(--n, 8) * .6))); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--gc-yellow); }
.vg-side b { font-size: min(3.6vh, calc(30vw / (var(--n, 8) * .56))); font-weight: 900; text-transform: uppercase; }
.vg-side.score small { font-size: 2.6vh; }
.vg-side.score b { font-size: 11vh; line-height: 1; color: var(--gc-yellow); text-shadow: .4vh .4vh 0 var(--gc-shade); }
.vg-qr { position: absolute; right: 3vw; bottom: 27vh; display: grid; justify-items: center; gap: .8vh; padding: 1.4vh 1.4vh 1vh; border-radius: 2.4vh; background: #fff; border: var(--gc-line) solid var(--gc-yellow);
  box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .45); transform: translateX(160%); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
#vg.on .vg-qr { transform: none; }
.vg-qr .qr { display: block; width: 22vh; height: 22vh; border: 0; padding: 0; border-radius: 0; }
.vg-qr b { font-size: 2.4vh; font-weight: 900; text-transform: uppercase; color: var(--gc-pink); }
.vwin-cup { font-size: 18vh; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .vg-bar, .vg-qr { transition: none; } }
/* Tablero del DJ */
#vf { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: 13vh minmax(0, 1fr); gap: 3vh; padding: 3vh 2.4vw; overflow: hidden; }
.vf-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 3vh; padding: 0 4vh; border-radius: 3vh; background: var(--gc-dots), var(--k-tag); border: var(--gc-line) solid var(--gc-yellow); overflow: hidden; }
.vf-top b { min-width: 0; font-size: 6.4vh; font-weight: 900; text-transform: uppercase; color: var(--gc-yellow); text-shadow: .4vh .4vh 0 var(--gc-shade); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-top span { font-size: 3.4vh; font-weight: 700; background: var(--gc-shade); padding: .6vh 3vh; border-radius: 99px; white-space: nowrap; }
.vf-main { min-width: 0; display: grid; align-content: center; justify-items: center; gap: 2vh; padding: 3vh; text-align: center; border-radius: 4vh; background: var(--gc-dots), var(--gc-pink); border: .8vh solid var(--gc-yellow); overflow: hidden; }
.vf-main > * { max-width: 100%; white-space: nowrap; line-height: 1.1; }
.vf-main small { font-size: min(4.4vh, 2.3vw); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: var(--gc-shade); padding: .8vh 3vh; border-radius: 99px; }
.vf-main b { font-size: min(17vh, calc(52vw / (var(--n, 8) * .59))); font-weight: 900; text-transform: uppercase; color: var(--gc-yellow); text-shadow: .6vh .6vh 0 var(--gc-shade); }
.vf-main span { font-size: min(6vh, calc(52vw / (var(--n, 8) * .52))); font-weight: 700; }
.vf-main i { font-size: 12vh; font-weight: 900; font-style: normal; }
.vf-side { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 3vh; }
.vf-qr { justify-self: center; display: grid; justify-items: center; gap: 1vh; padding: 2vh 2vh 1.4vh; border-radius: 3vh; background: #fff; border: .8vh solid var(--gc-yellow); }
.vf-qr .qr { display: block; width: 25vh; height: 25vh; border: 0; padding: 0; border-radius: 0; }
.vf-qr b { font-size: 3.4vh; font-weight: 900; text-transform: uppercase; color: var(--gc-pink); }
.vf-list { min-height: 0; display: grid; align-content: start; gap: 1.1vh; padding: 2vh 2.4vh; border-radius: 3vh; background: var(--k-next); border: var(--gc-line) solid var(--gc-yellow); overflow: hidden; }
.vf-list > small { font-size: 3vh; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--gc-yellow); }
.vf-list > div { display: flex; align-items: center; gap: 1.6vh; min-width: 0; }
.vf-list > div.on b { color: var(--gc-yellow); }
.vf-list em { flex: 0 0 auto; width: 5vh; height: 5vh; display: grid; place-items: center; border-radius: 50%; background: var(--gc-yellow); color: #2a1030; font-size: 2.8vh; font-weight: 900; font-style: normal; }
.vf-list p { margin: 0; min-width: 0; display: grid; }
.vf-list p > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-list p b { font-size: 3.4vh; font-weight: 900; text-transform: uppercase; line-height: 1.15; }
.vf-list p span { font-size: 2.6vh; font-weight: 700; opacity: .9; line-height: 1.15; }

/* Objeto que presenta cada participante (opcional) */
.v-thing { display: block; font-style: normal; font-weight: 600; font-size: .92em; opacity: .9; overflow-wrap: anywhere; }
.pvote-ask .v-thing { font-size: 1.15rem; color: #ffe14d; margin-top: 2px; }
.pvote-duel .v-thing { font-size: 1rem; font-weight: 600; margin-top: 4px; }
.pvote-win .v-thing { font-size: 1.1rem; color: #fff; }
#vc-add { flex-wrap: wrap; }
#vc-add #vc-name { flex: 1 1 100% !important; }
#vc-add #vc-thing { flex: 1 1 0 !important; }

/* Número del participante */
.v-no { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .3em; margin-right: .4em; border-radius: 99px; background: #fff; color: #2a1030; font-size: .62em; font-weight: 900; line-height: 1; text-decoration: none; text-shadow: none; vertical-align: .22em; box-sizing: border-box; }
.vc-row .v-no, .pvote .v-no { background: #ffc400; }

/* Inscripción desde el celular */
.vc-signup { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 14px; border-radius: 12px; background: #12101f; border: 1px dashed #5a54a0; }
.vc-signup.on { border: 2px solid #5fe0a0; }
.vc-signup p { flex: 1; min-width: 0; margin: 0; display: grid; gap: 2px; }
.vc-signup small { opacity: .8; line-height: 1.3; }
.vc-signup button { flex: 0 0 auto; }
.pvote-in { margin: 14px 0 6px; text-align: center; font-weight: 700; color: #5fe0a0; }
.pvote-in b { display: block; margin: 8px 0; font-size: 1.5rem; color: #fff; overflow-wrap: anywhere; }
.pvote-in small { display: block; color: #fff; opacity: .9; font-weight: 600; }

/* Reloj del llamado a participar */
.v-clock { font-variant-numeric: tabular-nums; }
.pvote-clock { margin: 10px 0 0; text-align: center; font-weight: 700; }
.pvote-clock b { font-size: 1.4rem; color: #ffe14d; }
.vc-signup .v-clock { color: #5fe0a0; }

.vf-main small { white-space: normal; line-height: 1.25; }
.vf-main b { font-size: min(17vh, calc(46vw / (var(--n, 8) * .64))); }
.vf-main b.vf-clock { font-size: 34vh; line-height: 1; }

/* Inscritos en pantalla (OBS): arriba del zócalo, a la izquierda */
.vg-list { position: absolute; left: 3vw; bottom: 27vh; width: 30vw; display: grid; gap: .7vh; padding: 1.6vh 2vh 1.8vh; border-radius: 2.4vh; background: var(--k-next); border: var(--gc-line) solid var(--gc-yellow);
  box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .45); transform: translateX(-130%); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
#vg.on .vg-list { transform: none; }
.vg-list > small { font-size: 2.3vh; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--gc-yellow); }
.vg-list > small b { color: #fff; margin-left: .6em; }
.vg-list p { margin: 0; min-width: 0; display: flex; align-items: baseline; gap: 1.2vh; }
.vg-list p > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-list p b { flex: 0 1 auto; font-size: 3vh; font-weight: 900; text-transform: uppercase; line-height: 1.25; }
.vg-list p span { flex: 1 1 0; font-size: 2.3vh; font-weight: 700; opacity: .9; }
.vg-list .v-no { background: var(--gc-yellow); }
@media (prefers-reduced-motion: reduce) { .vg-list { transition: none; } }
/* Listas con hasta 8 participantes: una línea por persona, sin cortarse */
.vg-list > div { min-width: 0; overflow: hidden; }
.vf-qr .qr { width: 19vh; height: 19vh; }
.vf-qr b { font-size: 2.8vh; }
.vf-qr { padding: 1.4vh 1.4vh 1vh; }
.vf-side { gap: 2vh; }
.vf-list { gap: .5vh; padding: 1.6vh 2.2vh; }
.vf-list > small { font-size: 2.5vh; }
.vf-list > div { gap: 1.2vh; overflow: hidden; }
.vf-list em { width: 3.8vh; height: 3.8vh; font-size: 2.2vh; }
.vf-list p { display: flex; align-items: baseline; gap: 1.2vh; flex: 1 1 0; }
.vf-list p b { flex: 0 1 auto; font-size: 3vh; line-height: 1.3; }
.vf-list p span { flex: 1 1 0; font-size: 2.3vh; line-height: 1.3; }

/* Leyenda del QR de la votación: es para quien todavía no entra a la sala */
.vg-qr b, .vf-qr b { max-width: 22vh; white-space: normal; text-align: center; text-transform: none; font-size: 1.9vh; line-height: 1.2; font-weight: 800; }
.vf-qr b { max-width: 19vh; font-size: 1.8vh; }

/* El objeto que se está evaluando va grande y destacado, junto al nombre */
.vg-main.featured { gap: .8vh; }
.vg-main.featured b { font-size: min(5.4vh, calc(44vw / (var(--n, 8) * .62))); }
.vg-main.featured span { font-size: min(5.6vh, calc(44vw / (var(--n, 8) * .5))); font-weight: 900; color: #2a1030; background: var(--gc-yellow); padding: .2vh 2.4vh .5vh; border-radius: 99px; line-height: 1.15; box-shadow: .3vh .3vh 0 var(--gc-shade); }
.vf-main.featured small { font-size: min(8.5vh, calc(46vw / (var(--n, 8) * .62))); letter-spacing: .02em; text-transform: none; color: #2a1030; background: var(--gc-yellow); padding: 1vh 4vh 1.4vh; box-shadow: .5vh .5vh 0 var(--gc-shade); }
.vf-main.featured b { font-size: min(12vh, calc(46vw / (var(--n, 8) * .64))); }
.pvote-ask .v-thing { display: inline-block; margin-top: 8px; padding: 4px 16px 6px; border-radius: 99px; background: #ffc400; color: #2a1030; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }

/* Lo que el animador lee en voz alta: letra grande y destacada, como las preguntas de El Rosco */
.vc-read { display: grid; gap: 4px; margin: 0 0 14px; padding: 16px 14px 18px; border-radius: 16px; background: #0d0b1a; border: 2px solid #ffc400; text-align: center; }
.vc-read small { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.vc-read em { font-style: normal; font-size: 1.9rem; font-weight: 900; color: #ffc400; line-height: 1.15; }
.vc-read em.vs { font-size: 1.2rem; color: #fff; opacity: .7; margin: 4px 0; }
.vc-read b { font-size: 2.2rem; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.vc-read span { font-size: 1.7rem; font-weight: 700; line-height: 1.2; color: #5fe0a0; overflow-wrap: anywhere; }
.vc-read i { font-style: normal; font-size: 1.7rem; font-weight: 800; margin-top: 4px; }
.vc-read .v-no { background: #ffc400; }
/* Participante con la votación abierta, y finalistas: también en grande */
.vc-row.on { flex-wrap: wrap; }
.vc-row.on p { flex: 1 1 100%; }
.vc-row.on p b { font-size: 1.9rem; line-height: 1.15; }
.vc-row.on p .v-thing { font-size: 1.5rem; font-weight: 700; color: #5fe0a0; opacity: 1; line-height: 1.2; }
.vc-row.on p small { font-size: 1.05rem; opacity: 1; margin-top: 4px; }
.vc-row.on button { flex: 1 1 auto; padding-top: 14px; padding-bottom: 14px; font-size: 1.1rem; }
@media (min-width: 900px) { .vc-read b { font-size: 2.8rem; } .vc-read span, .vc-read i { font-size: 2.1rem; } }

/* Inicio: Votación y Show comparten la última fila */
.home-steps .s5 { grid-column: auto; }
.home-steps .s6 { background: linear-gradient(160deg, #8a5cf6, #5b21b6); }

/* Ir a otra actividad: los mismos botones al terminar cualquiera */
.act-nav { margin-top: 20px; }
.act-nav > small { display: block; margin-bottom: 8px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; text-align: center; }
.act-nav > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.act-nav > div > * { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 84px; padding: 12px 8px; border-radius: 16px; font-size: 1.05rem; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.2; margin: 0; width: auto; }
.act-nav span { font-size: 1.8rem; line-height: 1; pointer-events: none; }

/* ---------- Síguenos en Instagram ---------- */
.home-steps .s7 { grid-column: 1 / -1; background: linear-gradient(135deg, #f9a825, #e1306c 45%, #833ab4); }
.pinsta-head { font-size: 1.15rem; font-weight: 800; color: #ffe14d; }
.pinsta-go { display: grid; justify-items: center; gap: 4px; margin: 12px 0; padding: 18px 12px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #f9a825, #e1306c 45%, #833ab4); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.pinsta-go b { font-size: 1.7rem; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; text-align: center; }
.pinsta-go span { font-size: 1.1rem; font-weight: 700; }
.pinsta-frame { display: block; width: 100%; height: 430px; border: 0; border-radius: 12px; background: #fff; }
.vf-qr.insta { align-self: center; }
.vf-qr.insta .qr { width: 34vh; height: 34vh; }
.vf-qr.insta b { max-width: 34vh; font-size: 3vh; }

.pinsta-go i { font-style: normal; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.pinsta-go span { background: rgba(0, 0, 0, .28); padding: 6px 16px; border-radius: 99px; }
#vg .vg-tag b { white-space: nowrap; }

/* Instagram en el tablero: sin QR, la cuenta ocupa todo el ancho */
#vf.solo { grid-template-columns: minmax(0, 1fr); }
#vf.solo .vf-main b { font-size: min(22vh, calc(80vw / (var(--n, 8) * .64))); }

/* Centro de control: los tres enlaces del sistema */
.ctl-links { display: grid; gap: 10px; margin-top: 16px; }
.ctl-links p { display: grid; gap: 2px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #12101f; border: 1px solid #3d3870; }
.ctl-links b { font-size: 1.05rem; }
.ctl-links small { opacity: .75; }
.ctl-links a { overflow-wrap: anywhere; margin-top: 4px; }

/* QR para entrar a la sala en las gráficas que no traen el suyo */
.join-qr { position: fixed; z-index: 5; display: grid; justify-items: center; gap: .6vh; padding: 1.2vh 1.2vh .8vh; border-radius: 2.2vh; background: #fff; border: .5vh solid #ffc400; box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .45);
  font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; }
.join-qr .qr { display: block; width: 17vh; height: 17vh; border: 0; padding: 0; border-radius: 0; }
.join-qr b { font-size: 2vh; font-weight: 900; text-transform: uppercase; color: #c4175e; white-space: nowrap; }
.join-qr.br { right: 2vw; bottom: 3.5vh; }
.join-qr.tr { right: 2vw; top: 3vh; }
.join-qr.above { right: 3vw; bottom: 27vh; }
body.full .join-qr.br { bottom: 11vh; } /* en el tablero, sobre el botón «Activar sonido» */
.join-qr.bl { left: 2vw; bottom: 3.5vh; } /* rosco en OBS: abajo a la izquierda, lejos de la pregunta y la respuesta */

/* ---------- Rosco en línea (el público juega desde el celular) ---------- */
.pcrowd { display: grid; gap: 8px; margin-top: 12px; }
.pcrowd small { font-weight: 700; color: #ffe14d; text-align: center; }
.pcrowd button { padding: 16px 12px; border-radius: 14px; font-size: 1.2rem; font-weight: 800; background: #12101f; border: 2px solid #5a54a0; color: #fff; overflow-wrap: anywhere; }
.pcrowd button:active { background: #ffc400; color: #2a1030; }
.pcrowd-sent { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); text-align: center; font-weight: 600; }
.pcrowd-sent b { display: block; font-size: 1.3rem; color: #ffe14d; }
.pcrowd-sent small { display: block; margin-top: 4px; opacity: .8; font-weight: 500; }
.pcrowd-res { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; text-align: center; }
.pcrowd-res.ok { background: #1fae63; }
.pcrowd-res.ko { background: #b3323c; }
.pcrowd-score { margin-top: 10px; padding: 8px 12px; border-radius: 99px; background: rgba(0, 0, 0, .3); text-align: center; font-size: .95rem; }
.pcrowd-score b { color: #ffe14d; }
.pcrowd-win { color: #fff; }
#w-crowd-res i { font-style: normal; }

/* Rosco en línea: la alternativa tocada se pone verde (correcta) o roja (incorrecta) */
.pcrowd button:disabled { opacity: .45; }
.pcrowd button.ok, .pcrowd button.ko, .pcrowd button.wait { opacity: 1; color: #fff; }
.pcrowd button.ok { background: #1fae63; border-color: #fff; }
.pcrowd button.ko { background: #b3323c; border-color: #fff; }
.pcrowd button.wait { background: #5a54a0; border-color: #fff; }

/* Rosco en línea: título grande y los 10 primeros con su puntaje */
.prosco-head.big b { font-size: 1.6rem; line-height: 1.1; }
.pcrowd-top { display: grid; gap: 4px; margin-top: 14px; }
.pcrowd-top > small { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffe14d; }
.pcrowd-top > div { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.pcrowd-top > div.me { background: rgba(255, 196, 0, .22); outline: 1px solid #ffc400; }
.pcrowd-top em { flex: 0 0 auto; width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 50%; background: #ffc400; color: #2a1030; font-style: normal; font-weight: 900; font-size: .85rem; }
.pcrowd-top span { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcrowd-top b { font-variant-numeric: tabular-nums; }

/* Top 5 y, en otra fila de otro color, el puesto propio */
.pcrowd-top > div.you { margin-top: 6px; background: #2f7bff; }
.pcrowd-top > div.you em { width: auto; min-width: 1.7em; padding: 0 .5em; border-radius: 99px; background: #fff; color: #12306b; }

/* ---------- Tablero vertical girado ---------- */
/* El marco mide lo que la pantalla de pie (ancho = alto de la señal) y se gira 90° a la derecha */
body.rot-screen { overflow: hidden; background: #000; }
body.rot-screen main { padding: 0; max-width: none; }
.rot-frame { position: fixed; left: 50%; top: 50%; width: 100vh; height: 100vw; border: 0; transform: translate(-50%, -50%) rotate(90deg); }

/* Diseños en formato alto y angosto (pantalla grande de pie; no cambia nada en los celulares) */
@media (orientation: portrait) and (min-width: 300px) {
  /* Bingo: arriba el título, al medio la bolita con la figura y el QR, abajo el tablero con B-I-N-G-O en columnas */
  #fb { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "top top" "left side" "board board"; gap: 1.4vh 3vw; padding: 2vh 3vw; }
  #fb .fb-top { grid-area: top; flex-wrap: wrap; justify-content: center; gap: 1vh 2vw; padding: 1.4vh 3vw; border-radius: 3vw; }
  #fb .fb-title { flex: 1 1 100%; text-align: center; font-size: 7vw; }
  #fb .fb-pill { font-size: 2.6vw; padding: .5vh 2.4vw; }
  #fb .fb-pill b { font-size: 3.4vw; }
  #fb .fb-left { grid-area: left; gap: 1.2vh; }
  #fb .fb-side { grid-area: side; grid-template-columns: 1fr 1fr; gap: 2vw; align-items: stretch; }
  #fb .fb-board { grid-area: board; }
  #fb .ball.fbball { width: 40vw; height: 40vw; padding: 2vw; border-width: 1vw; }
  #fb .ball.fbball .l { font-size: 8vw; } #fb .ball.fbball .v { font-size: 20vw; }
  #fb .ball.fbprev { width: 7.6vw; height: 7.6vw; } #fb .ball.fbprev .v { font-size: 3.6vw; } #fb .ball.fbprev .l { font-size: 1.8vw; }
  #fb .fb-prev { gap: 1vw; min-height: 7.6vw; }
  #fb .fb-soon { font-size: 6vw; min-height: 30vw; }
  #fb .fb-figure, #fb .fb-qr { padding: 1.6vw; border-radius: 3vw; gap: .8vh; align-content: center; }
  #fb .fb-figure > span, #fb .fb-qr > span { font-size: 2.4vw; }
  #fb .fb-figure .gc-grid { width: 15vw; } #fb .fb-figure b { font-size: 2.6vw; }
  #fb .fb-qr .qr { width: 16vw; height: 16vw; padding: 1vw; border-radius: 1.4vw; }
  #fb .fb-board { grid-template-rows: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4vw; padding: 1.6vw; align-self: stretch; border-radius: 3vw; }
  #fb .fb-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto repeat(15, minmax(0, 1fr)); gap: .45vh; align-items: stretch; height: 100%; }
  #fb .fb-row > b { height: auto; padding: .6vh 0; font-size: 6.5vw; border-radius: 1.6vw; }
  #fb .fb-row > span { height: auto; min-height: 0; width: 100%; border-radius: 1.2vw; font-size: min(3.1vh, 5.2vw); }
  #fb .fb-idle b { font-size: 9vw; white-space: normal; } #fb .fb-idle small:not(.soon) { font-size: 5.4vw; white-space: normal; } #fb .fb-idle small { font-size: 4vw; white-space: normal; }
  #fb .fb-idle-qr .qr, .fb-idle-qr .qr { width: 62vw; height: 62vw; }
  /* Karaoke: título, «Ahora canta» en grande, los que siguen y el QR */
  #kf { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 2vh; padding: 2vh 3vw; }
  #kf .kf-top { flex-direction: column; gap: 1vh; padding: 1.6vh 3vw; border-radius: 3vw; }
  #kf .kf-top b { font-size: 7vw; white-space: normal; text-align: center; }
  #kf .kf-top span { font-size: 3.2vw; padding: .5vh 3vw; }
  #kf .kf-now { padding: 3vh 3vw; gap: 2vh; border-radius: 4vw; }
  #kf .kf-now small { font-size: 5vw; padding: .8vh 4vw; }
  #kf .kf-now b { font-size: min(11vh, calc(86vw / (var(--n, 8) * .6))); }
  #kf .kf-now span { font-size: min(6vh, calc(86vw / (var(--n, 8) * .52))); }
  #kf .kf-now i { font-size: min(4.6vh, calc(86vw / (var(--n, 8) * .52))); }
  #kf .kf-side { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) auto; gap: 3vw; align-items: stretch; }
  #kf .kf-next { order: -1; padding: 1.6vh 3vw; gap: 1vh; border-radius: 3vw; }
  #kf .kf-next > small { font-size: 3vw; }
  #kf .kf-next em { width: 5.4vw; height: 5.4vw; font-size: 3vw; }
  #kf .kf-next p b { font-size: 3.8vw; } #kf .kf-next p span { font-size: 2.8vw; }
  #kf .kf-qr { align-self: center; padding: 2vw 2vw 1.4vw; border-radius: 3vw; }
  #kf .kf-qr .qr { width: 24vw; height: 24vw; } #kf .kf-qr b { font-size: 2.8vw; }
}
@media (orientation: portrait) and (min-width: 300px) {
  /* Ajuste de medidas: que los 75 números entren completos bajo la bolita */
  #fb { grid-template-rows: auto auto auto; align-content: space-between; }
  #fb > * { min-width: 0; }
  #fb .ball.fbball { width: 34vw; height: 34vw; } #fb .ball.fbball .v { font-size: 17vw; } #fb .ball.fbball .l { font-size: 6.6vw; }
  #fb .fb-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-self: center; }
  #fb .fb-figure .gc-grid { width: 13vw; } #fb .fb-qr .qr { width: 14vw; height: 14vw; }
  #fb .fb-figure > span, #fb .fb-qr > span { font-size: 2.1vw; } #fb .fb-figure b { font-size: 2.2vw; }
  #fb .fb-board { align-self: end; }
  #fb .fb-row { grid-template-rows: none; grid-auto-rows: auto; height: auto; gap: .4vh; }
  #fb .fb-row > b { height: 4.4vh; padding: 0; font-size: 3.6vh; }
  #fb .fb-row > span { height: 2.75vh; font-size: 2.3vh; }
}
@media (orientation: portrait) and (min-width: 300px) { #fb .fb-row > b { line-height: 1; font-size: 3.2vh; } }

/* Tablero vertical: las demás actividades en formato alto y angosto */
@media (orientation: portrait) and (min-width: 300px) {
  /* QR para entrar a la sala: siempre abajo al centro, en tamaño de pantalla de pie */
  body.full .join-qr { top: auto; right: auto; left: 50%; transform: translateX(-50%); bottom: 2vh; padding: 1.4vw 1.4vw 1vw; border-radius: 2.4vw; border-width: .6vw; gap: .6vw; }
  body.full .join-qr.br { bottom: 2vh; }
  body.full .join-qr .qr { width: 17vw; height: 17vw; }
  body.full .join-qr b { font-size: 2.1vw; }
  /* Sorteo */
  body.full #rf { padding: 3vh 4vw 4vh; }
  body.full #rf .rf-title { font-size: 6vw; padding: 1.2vh 5vw; border-width: .8vw; text-align: center; }
  body.full #rf .rf-card { min-width: 0; width: 92vw; max-width: 92vw; padding: 4vh 4vw 5vh; border-radius: 6vw; border-width: 1.2vw; gap: 2vh; }
  body.full #rf .rf-kicker { font-size: 4.4vw; padding: .6vh 4vw; }
  body.full #rf .rf-dice { font-size: 30vw; }
  body.full #rf .rf-name:not(.small), body.full #rf .rf-card.win .rf-name:not(.small) { font-size: min(13vh, calc(82vw / (var(--n, 8) * .63))); min-height: 0; }
  body.full #rf .rf-name.small { font-size: 8vw; white-space: normal; line-height: 1.1; }
  body.full #rf .rf-reel { font-size: 6vw; min-height: 6vw; max-width: 84vw; }
  body.full #rf .rf-picked { flex-wrap: wrap; justify-content: center; gap: 1.2vh 2vw; min-height: 0; padding-right: 24vw; }
  body.full #rf .rf-picked span { font-size: 3.6vw; padding: .6vh 3vw .6vh .8vw; border-width: .4vw; }
  body.full #rf .rf-picked b { width: 5.4vw; height: 5.4vw; font-size: 3.4vw; }
  /* El Rosco: título, pregunta y las ruedas; con 3 o 4 concursantes van de a dos por fila */
  body.full.wheel-screen #pw { grid-template-rows: 5vh 15vh minmax(0, 1fr); padding: 1vh 3vw 15vh; }
  body.full .pw-title { font-size: 4.4vh; }
  body.full .pw-question { width: 94vw; font-size: 2.9vh; -webkit-line-clamp: 4; padding: 1.2vh 3vw; border-radius: 3vw; }
  body.full .pw-reveal { width: 94vw; flex-wrap: wrap; } body.full .pw-reveal .rv-answer { font-size: 3.6vh; }
  body.full.wheel-screen .wheels { grid-template-columns: minmax(0, 1fr); gap: 1.5vh 2vw; align-content: center; height: 100%; }
  body.full.wheel-screen .wheels.n3, body.full.wheel-screen .wheels.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.full.wheel-screen .wheel-box { height: auto; }
  body.full.wheel-screen .wheels .wheel { width: 88vw; max-width: 88vw; max-height: none; }
  body.full.wheel-screen .wheels.n2 .wheel { width: 60vw; max-width: 60vw; }
  body.full.wheel-screen .wheels.n3 .wheel, body.full.wheel-screen .wheels.n4 .wheel { width: 45vw; max-width: 45vw; }
  /* Show */
  #sf .sf-card { width: 92vw; max-width: 92vw; padding: 5vh 4vw 6vh; border-radius: 6vw; border-width: 1.2vw; gap: 2.4vh; }
  #sf .sf-card > small { font-size: 3.4vw; padding: .8vh 3vw; white-space: normal; line-height: 1.3; }
  #sf .sf-card > i { font-size: 6vw; }
  #sf .sf-card > b { font-size: min(14vh, calc(82vw / (var(--n, 8) * .6))); }
  #sf .sf-card > span { font-size: 5vw; }
  /* Votación e Instagram: título, bloque principal y, abajo, la lista con el QR */
  #vf { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 2vh; padding: 2vh 3vw; }
  #vf .vf-top { flex-direction: column; gap: 1vh; padding: 1.6vh 3vw; border-radius: 3vw; }
  #vf .vf-top b { font-size: 6.4vw; white-space: normal; text-align: center; line-height: 1.05; }
  #vf .vf-top span { font-size: 3.2vw; padding: .5vh 3vw; }
  #vf .vf-main { padding: 3vh 3vw; gap: 2.4vh; border-radius: 4vw; }
  #vf .vf-main small { font-size: 4vw; padding: .8vh 3vw; }
  #vf .vf-main b { font-size: min(11vh, calc(84vw / (var(--n, 8) * .64))); }
  #vf .vf-main b.vf-clock { font-size: 34vw; }
  #vf .vf-main span { font-size: min(5vh, calc(84vw / (var(--n, 8) * .52))); }
  #vf .vf-main i { font-size: 12vw; }
  #vf .vf-main.featured small { font-size: min(6vh, calc(80vw / (var(--n, 8) * .6))); padding: 1vh 4vw 1.4vh; }
  #vf .vf-main.featured b { font-size: min(9vh, calc(84vw / (var(--n, 8) * .64))); }
  #vf .vf-side { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) auto; gap: 3vw; align-items: stretch; }
  #vf .vf-side:has(.vf-qr:only-child) { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  #vf .vf-list { order: -1; padding: 1.6vh 3vw; gap: .7vh; border-radius: 3vw; }
  #vf .vf-list > small { font-size: 2.8vw; }
  #vf .vf-list em { width: 4.6vw; height: 4.6vw; font-size: 2.6vw; }
  #vf .vf-list p b { font-size: 3.4vw; } #vf .vf-list p span { font-size: 2.6vw; }
  #vf .vf-qr { align-self: center; padding: 2vw 2vw 1.4vw; border-radius: 3vw; }
  #vf .vf-qr .qr, #vf .vf-qr.insta .qr { width: 22vw; height: 22vw; }
  #vf .vf-qr b, #vf .vf-qr.insta b { max-width: 22vw; font-size: 2.2vw; }
}

/* Karaoke, panel del animador: «Ya cantó», Subir y Bajar en cada pedido */
.kc-row p { flex: 1 1 auto; }
.kc-act { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.kc-act button { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; font-weight: 800; font-size: 1rem; }
.kc-act .kc-done { background: #ffc400; color: #1a1a1a; padding: 0 14px; }
.kc-act button:disabled { opacity: .35; }
.kc-act button.wait { opacity: .7; }
@media (max-width: 520px) { .kc-row { flex-wrap: wrap; } .kc-act { width: 100%; justify-content: flex-end; padding-left: 50px; } }

/* Karaoke, panel del animador: «Ya cantaron» para revisar y deshacer */
.kc-sung-btn { margin-top: 14px; width: 100%; }
#kc-sung { margin-top: 6px; }
.kc-sung-row em { background: rgba(86, 176, 76, .35); }
.kc-act .kc-back { padding: 0 14px; }
@media (max-width: 520px) { .kc-row p { flex: 1 1 0; } }

/* ---------- Sala light ---------- */
.lp-open { display: block; margin: 0 0 14px; text-align: center; }
.lp-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lp-stages button { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; font-weight: 800; font-size: 1.05rem; }
.lp-stages button span { font-size: 1.6rem; }
.lp-stages button.on { background: #ffc400; color: #1a1a1a; }
.lp-links { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.lp-links .qr { width: 150px; height: 150px; }
.lp-links a { overflow-wrap: anywhere; }
/* GC de la sala light (OBS, fondo transparente) */
#lg { position: fixed; inset: 0; overflow: hidden; --gc-pink: #1487cf; --gc-yellow: #ffc400; --gc-line: .37vh; --gc-shade: rgba(0, 32, 78, .55); color: #fff; }
#lg.th-frida { --gc-pink: #c4175e; --gc-shade: rgba(60, 0, 30, .55); }
#lg.th-tobalaba { --gc-pink: #c81e1e; --gc-shade: rgba(70, 0, 0, .55); }
.lg-card { position: absolute; background: rgba(14, 12, 30, .94); border: var(--gc-line) solid var(--gc-yellow); border-radius: 3vh; box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .5); overflow: hidden; }
.lg-bottom { left: 3vw; right: 3vw; bottom: 4vh; height: 20vh; display: flex; }
.lg-tag { flex: 0 0 auto; display: grid; align-content: center; justify-items: center; gap: .6vh; padding: 0 3vh; text-align: center; white-space: nowrap; }
.lg-tag small, .lg-head small, .lg-list > small { font-size: 2.3vh; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gc-yellow); }
.lg-tag b { font-size: 3.6vh; font-weight: 900; text-transform: uppercase; }
.lg-main { flex: 1 1 0; min-width: 0; display: grid; align-content: center; justify-items: center; gap: .8vh; padding: 1.4vh 3vh; text-align: center; background: var(--gc-pink); border-left: var(--gc-line) solid var(--gc-yellow); }
.lg-main b { max-width: 100%; font-size: min(6.6vh, calc(70vw / (var(--n, 10) * .6))); font-weight: 900; line-height: 1.1; color: var(--gc-yellow); text-transform: uppercase; text-shadow: .3vh .3vh 0 var(--gc-shade); }
.lg-main span { font-size: 3vh; font-weight: 700; }
.lg-main em { font-style: normal; font-weight: 900; color: var(--gc-yellow); }
.lg-week { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 150vh); max-height: 90vh; padding: 3vh 4vh; display: grid; gap: 1.4vh; }
.lg-head { display: grid; justify-items: center; gap: .4vh; margin-bottom: 1vh; }
.lg-head b { font-size: 5vh; font-weight: 900; text-transform: uppercase; }
.lg-day { display: grid; grid-template-columns: 24vh 1fr; column-gap: 3vh; row-gap: .3vh; align-items: baseline; padding: 1.2vh 2vh; border-radius: 1.6vh; background: rgba(255, 255, 255, .06); }
.lg-day.today { background: var(--gc-pink); }
.lg-day b { grid-row: span 2; font-size: 3.6vh; font-weight: 900; text-transform: uppercase; color: var(--gc-yellow); }
.lg-show { font-size: 3.3vh; font-weight: 900; }
.lg-hours { font-size: 2.3vh; font-weight: 600; opacity: .9; }
.lg-empty { margin: 0; font-size: 3vh; font-weight: 700; opacity: .85; text-align: center; }
.lg-qr { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(94vw, 160vh); height: min(84vh, 90vw); display: grid; grid-template-columns: auto 1fr; gap: 5vh; align-items: center; padding: 5vh; }
.lg-qrbox { display: grid; justify-items: center; gap: 1.2vh; padding: 3vh; border-radius: 3vh; background: #fff; border: .8vh solid var(--gc-yellow); color: var(--gc-pink); text-align: center; }
.lg-qrbox .qr { width: 52vh; height: 52vh; border: 0; padding: 0; border-radius: 0; display: block; }
.lg-qrbox b { font-size: 4.4vh; font-weight: 900; text-transform: uppercase; }
.lg-qrbox span { font-size: 2.8vh; font-weight: 800; color: #333; }
.lg-list { min-width: 0; display: grid; gap: 1.4vh; align-content: center; }
.lg-list > div { display: flex; align-items: center; gap: 2vh; min-width: 0; padding: 1.2vh 2vh; border-radius: 1.6vh; background: rgba(255, 255, 255, .07); }
.lg-list > div:first-of-type { background: var(--gc-pink); }
.lg-list em { flex: 0 0 auto; width: 6vh; height: 6vh; display: grid; place-items: center; border-radius: 50%; background: var(--gc-yellow); color: #1a1a1a; font-style: normal; font-weight: 900; font-size: 3vh; }
.lg-list p { margin: 0; min-width: 0; display: grid; }
.lg-list b { font-size: 3.6vh; font-weight: 900; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-list span { font-size: 2.6vh; font-weight: 600; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Celular del público en la sala light */
.lm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.lm-tabs button { padding: 12px 6px; font-weight: 800; }
.lm-tabs button.on { background: #ffc400; color: #1a1a1a; }
.lm-today { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(255, 196, 0, .14); margin-bottom: 10px; }
.lm-today small { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffc400; }
.lm-today b { font-size: 1.3rem; }
.lm-next { margin: 0 0 10px; }
.lm-day { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lm-day.today b { color: #ffc400; }
.lm-day small { opacity: .85; }
.lm-insta { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 16px 0; }
.lm-insta b { font-size: 1.5rem; }
#lg { font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; }
.lg-bottom, .lg-week, .lg-qr { background: var(--gc-dots, none), rgba(14, 12, 30, .94); }
.lg-main, .lg-day.today, .lg-list > div:first-of-type { background: var(--gc-dots, none), var(--gc-pink); }
#lg { --gc-dots: radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 0 0 / 4.2vh 4.2vh, radial-gradient(circle, rgba(255,255,255,.13) 0 .42vh, transparent .46vh) 2.1vh 2.1vh / 4.2vh 4.2vh; }

/* GC del karaoke: «Ahora canta» y «Sigue» con la misma estructura y tamaño (nombre y artista del mismo color,
   canción en blanco); si un texto es muy largo, se achica y, como último recurso, termina en «…» */
.kg-now, .kg-next { flex: 1 1 0; gap: .4vh; padding: 1.2vh 2.6vh; }
.kg-now small, .kg-next small { font-size: 2.2vh; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: .85; }
.kg-now b, .kg-next b { font-size: min(5.4vh, calc(34vw / (var(--n, 8) * .6))); font-weight: 900; color: var(--gc-yellow); text-transform: uppercase; text-shadow: .3vh .3vh 0 var(--gc-shade, rgba(0, 0, 0, .4)); }
.kg-now span, .kg-next span { font-size: min(3.8vh, calc(34vw / (var(--n, 8) * .52))); font-weight: 700; color: #fff; }
.kg-now i, .kg-next i { font-size: min(3.2vh, calc(34vw / (var(--n, 8) * .52))); font-weight: 800; font-style: normal; color: var(--gc-yellow); opacity: 1; }
.kg-now > *, .kg-next > * { overflow: hidden; text-overflow: ellipsis; }
/* Nombres del mismo tamaño en las dos columnas; un nombre largo pasa a dos líneas en vez de achicarse */
.kg-now, .kg-next { gap: .2vh; padding: 1vh 2.4vh; }
.kg-now small, .kg-next small { font-size: 2vh; }
.kg-now b, .kg-next b { font-size: 3.9vh; line-height: 1.04; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kg-now span, .kg-next span { font-size: min(3.4vh, calc(34vw / (var(--n, 8) * .52))); }
.kg-now i, .kg-next i { font-size: min(2.9vh, calc(34vw / (var(--n, 8) * .52))); }

/* Marca de agua KRB Stage: chica, abajo a la izquierda, en todas las pantallas; no se puede tocar ni tapa botones */
.krb-mark { position: fixed; left: max(8px, .8vw); bottom: max(4px, .5vh); z-index: 50; height: clamp(16px, 3vh, 34px); width: auto; opacity: .55; pointer-events: none; user-select: none; }
/* En el tablero vertical la pantalla de afuera solo gira la de adentro, que ya trae su propia marca */
body.rot-screen .krb-mark { display: none; }
/* Logo KRB Stage dentro del cuadro rosado de «Ahora canta» (karaoke en OBS, tablero y sala light) */
.kg-now, .kf-now { position: relative; }
.kg-logo { position: absolute; top: 1.2vh; right: 1.4vh; height: 5.4vh; width: auto; opacity: .9; pointer-events: none; filter: drop-shadow(0 .3vh .5vh rgba(0, 0, 0, .35)); }
.kf-now .kg-logo { top: auto; bottom: 2.4vh; right: 2.4vh; height: 9vh; }
body.logo-in-box .krb-mark { display: none; }
/* En OBS el cuadro es bajo: el texto deja libre a ambos lados el ancho del logo (queda centrado y no se cruzan) */
.kg-now { padding-left: 9vh; padding-right: 9vh; }
.kg-now .kg-logo { top: 50%; right: 1.6vh; transform: translateY(-50%); height: 5vh; }
.kg-next { padding-left: 9vh; padding-right: 9vh; }
/* GC: el logo va en el cuadro de la izquierda, al lado de «Local / Karaoke»; las columnas de nombres quedan libres */
.kg-tag { display: flex; align-items: center; gap: 2.2vh; }
.kg-tag > div { display: grid; justify-items: center; gap: .6vh; }
.kg-tag .kg-logo { position: static; transform: none; height: 8vh; opacity: .95; }
.kg-now, .kg-next { padding-left: 2.4vh; padding-right: 2.4vh; }
/* GC: logo más chico y, junto a «Local / Karaoke», centrado en su cuadro */
.kg-tag { justify-content: center; gap: 1.6vh; }
.kg-tag .kg-logo { height: 5.4vh; }

/* ---------- KRB Kids ---------- */
.kids-entry { display: grid; justify-items: center; gap: 2px; max-width: 460px; margin: 14px auto 0; padding: 14px; text-align: center; background: linear-gradient(135deg, #ffb703, #fb5607); color: #1a1a1a; border: 0; }
.kids-entry b { font-size: 1.15rem; }
.kids-entry span { font-size: .9rem; font-weight: 600; }
body.kids { background: linear-gradient(160deg, #6ec6ff 0%, #b388ff 55%, #ff8fab 100%) fixed; }
body.kids main { max-width: 640px; }
.kz { min-height: calc(100vh - 32px); display: grid; align-content: start; gap: 14px; color: #fff; font-family: Fredoka, "Baloo 2", "Trebuchet MS", system-ui, sans-serif; user-select: none; -webkit-user-select: none; }
.kz-top { display: flex; align-items: center; gap: 12px; }
.kz-back { padding: 10px 18px; border-radius: 99px; background: rgba(255, 255, 255, .9); color: #4a2c8a; font-weight: 700; font-size: 1.1rem; border: 0; }
.kz-name { font-size: 1.3rem; font-weight: 700; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.kz-title { margin: 6px 0 0; text-align: center; font-size: 2.6rem; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.kz-sub { margin: 0; text-align: center; font-size: 1.1rem; font-weight: 600; }
.kz-menu { display: grid; gap: 14px; margin-top: 8px; }
.kz-game { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 28px; background: #fff; color: #4a2c8a; font-size: 1.5rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 0 rgba(74, 44, 138, .25); }
.kz-game span { font-size: 3rem; }
.kz-game:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(74, 44, 138, .25); }
.kz-stage { display: grid; justify-items: center; gap: 14px; }
.kz-q { margin: 6px 0 0; text-align: center; font-size: 1.9rem; font-weight: 700; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.kz-q b { padding: 0 10px; border-radius: 14px; background: #fff; text-shadow: none; }
.kz-hear { padding: 10px 18px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .85); color: #4a2c8a; font-weight: 700; font-size: 1.05rem; }
.kz-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.kz-card { aspect-ratio: 1; border: 0; border-radius: 28px; background: #fff; font-size: clamp(3.4rem, 18vw, 5.4rem); box-shadow: 0 6px 0 rgba(74, 44, 138, .25); }
.kz-balloons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 26px; width: min(100%, 420px); }
.kz-balloon { position: relative; aspect-ratio: 4 / 5; border: 0; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%; background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .7) 0 9%, transparent 10%), var(--c); box-shadow: inset -10px -14px 0 rgba(0, 0, 0, .12); animation: kz-float 3s ease-in-out infinite; }
.kz-balloon:nth-child(2n) { animation-delay: -1.5s; }
.kz-balloon::after { content: ''; position: absolute; left: 50%; bottom: -26px; width: 2px; height: 26px; background: rgba(255, 255, 255, .8); }
.kz-pop { animation: kz-pop .45s forwards; }
.kz-memo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; width: min(100%, 380px); }
.kz-memo.six { grid-template-columns: repeat(3, 1fr); width: 100%; }
.kz-mcard { aspect-ratio: 3 / 4; border: 0; border-radius: 22px; background: repeating-linear-gradient(45deg, #ffffff 0 12px, #ffe6f0 12px 24px); box-shadow: 0 6px 0 rgba(74, 44, 138, .25); font-size: clamp(3rem, 16vw, 4.6rem); }
.kz-mcard span { visibility: hidden; }
.kz-mcard.up { background: #fff; }
.kz-mcard.up span { visibility: visible; }
.kz-yes { outline: 6px solid #2bb24c; animation: kz-bounce .5s; }
.kz-no { animation: kz-shake .45s; }
.kz-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.kz-confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation: kz-fall 1.8s ease-in forwards; }
@keyframes kz-fall { to { transform: translateY(110vh) rotate(540deg); } }
@keyframes kz-float { 50% { transform: translateY(-10px); } }
@keyframes kz-pop { 40% { transform: scale(1.25); } 100% { transform: scale(0); opacity: 0; } }
@keyframes kz-bounce { 50% { transform: scale(1.12); } }
@keyframes kz-shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.kz-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kz-card, .kz-mcard, .kz-balloon { min-width: 0; padding: 0; }
/* KRB Kids sin texto: menú de íconos grandes y juegos para tocar */
.kz-menu { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kz-game { justify-content: center; aspect-ratio: 1; padding: 0; font-size: clamp(4rem, 26vw, 7rem); border-radius: 32px; }
.kz-icon { font-size: 2.4rem; }
.kz-stage { width: 100%; }
.kz-sky { position: relative; width: 100%; height: calc(100vh - 110px); overflow: hidden; border-radius: 28px; background: rgba(255, 255, 255, .18); touch-action: none; }
.kz-sky .kz-balloon { position: absolute; bottom: -30%; width: 26%; max-width: 130px; animation-iteration-count: 1; }
.kz-rise { animation-name: kz-rise; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes kz-rise { from { transform: translateY(0); } to { transform: translateY(calc(-100vh - 40%)); } }
.kz-sky .kz-balloon.kz-pop { animation: kz-pop .4s forwards; }
.kz-peek { width: 84px; height: 84px; border-radius: 18px; background-size: cover; border: 4px solid #fff; opacity: .9; }
.kz-puzzle { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; width: min(100%, 380px); padding: 6px; border-radius: 26px; background: rgba(255, 255, 255, .6); }
.kz-piece { aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 18px; background-size: 200% 200%; box-shadow: 0 4px 0 rgba(74, 44, 138, .25); }
.kz-piece.sel { outline: 6px solid #ffc400; transform: scale(.94); }
.kz-well { display: grid; grid-template-columns: repeat(var(--w), 1fr); gap: 4px; width: min(100%, 360px); padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .25); }
.kz-well i { aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, .25); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.kz-flash { animation: kz-bounce .5s; }
.kz-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(100%, 360px); }
.kz-pad button { padding: 18px 0; border: 0; border-radius: 22px; background: #fff; color: #4a2c8a; font-size: 2rem; box-shadow: 0 5px 0 rgba(74, 44, 138, .25); touch-action: manipulation; }
.kz-pad button:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(74, 44, 138, .25); }
.kids-entry { margin-top: 22px; margin-bottom: 8px; }
/* KRB Kids, memoria por niveles: las cartas se acomodan según el nivel (hasta 16 = 4 x 4) */
.kz-memo { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); width: 100%; max-width: calc(var(--cols, 2) * 120px); gap: 10px; }
.kz-memo .kz-mcard { font-size: calc(min(92vw, var(--cols, 2) * 120px) / var(--cols, 2) * .55); border-radius: 16px; }
.kz-stars { display: flex; justify-content: center; gap: 6px; font-size: 1.6rem; }
.kz-stars i { font-style: normal; color: rgba(255, 255, 255, .35); }
.kz-stars i.on { color: #ffd23f; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
/* El fondo cambia de color en cada nivel, para que se note que avanza */
body.kids { transition: background .8s; }
body.kids[data-kz-level="1"] { background: linear-gradient(160deg, #4cc9f0 0%, #4361ee 100%) fixed; }
body.kids[data-kz-level="2"] { background: linear-gradient(160deg, #80ed99 0%, #22a06b 100%) fixed; }
body.kids[data-kz-level="3"] { background: linear-gradient(160deg, #ffd166 0%, #f77f00 100%) fixed; }
body.kids[data-kz-level="4"] { background: linear-gradient(160deg, #ff8fab 0%, #d6336c 100%) fixed; }
body.kids[data-kz-level="5"] { background: linear-gradient(160deg, #b388ff 0%, #5a189a 100%) fixed; }
body.kids[data-kz-level="6"] { background: radial-gradient(circle at 50% 30%, #fff3b0 0%, #ffb703 40%, #fb5607 100%) fixed; }
/* Desenlace final */
.kz-final { display: grid; justify-items: center; gap: 18px; margin-top: 4vh; }
.kz-trophy { font-size: clamp(8rem, 50vw, 14rem); line-height: 1; animation: kz-win 1.4s ease-in-out infinite; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .15)); }
.kz-final-stars { font-size: 3rem; letter-spacing: .3rem; animation: kz-bounce 1s infinite; }
.kz-again { width: 96px; height: 96px; border: 0; border-radius: 50%; background: #fff; font-size: 3rem; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
@keyframes kz-win { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.08); } }
/* KRB Kids, puzzle por niveles: puntos de progreso y piezas que caben en la pantalla */
.kz-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.kz-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.kz-dots i.on { background: #ffd23f; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.kz-puzzle { gap: 4px; padding: 4px; max-width: none; justify-content: center; }
.kz-piece { aspect-ratio: 1; border-radius: 10px; }
/* KRB Kids: barra de progreso común (se llena hasta el trofeo) */
.kz-bar { position: relative; width: min(100%, 420px); height: 22px; margin: 0 auto; border-radius: 99px; background: rgba(255, 255, 255, .35); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .1); }
.kz-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffd23f, #ff9f1c); box-shadow: 0 2px 0 rgba(0, 0, 0, .15); transition: width .6s ease; }
.kz-bar span { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-size: 1.7rem; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2)); }
.kz-stage { gap: 12px; }
.kz-sky { height: calc(100vh - 150px); }
/* KRB Kids, inicio: animales estampados como con timbre (siluetas blancas, semitransparentes) */
.kz-stamps { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.kz-stamps i { position: absolute; font-style: normal; line-height: 1; filter: brightness(0) invert(1); opacity: .22; }
.kz-stamps ~ .kz { position: relative; z-index: 1; }
/* En KRB Kids el logo de KRB Stage va abajo al centro */
body.kids .krb-mark { left: 50%; transform: translateX(-50%); height: clamp(22px, 4vh, 40px); opacity: .7; }
/* KRB Kids: caritas de animales a color, como estampitas con borde blanco */
.kz-stamps i { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 3px 2px rgba(0, 0, 0, .15)); opacity: .5; }
/* Íconos ilustrados de los juegos */
.kz-game svg { width: 72%; height: 72%; filter: drop-shadow(0 4px 0 rgba(74, 44, 138, .18)); }
.kz-icon { display: inline-flex; width: 52px; height: 52px; }
.kz-icon svg { width: 100%; height: 100%; }
/* KRB Kids, Pintar */
.kz-canvas { width: min(100%, 360px); padding: 10px; border-radius: 26px; background: #fff; box-shadow: 0 6px 0 rgba(74, 44, 138, .2); }
.kz-canvas svg { display: block; width: 100%; height: auto; }
.kz-paint [data-r] { cursor: pointer; transition: fill .25s; transform-box: fill-box; transform-origin: center; }
.kz-paint .kz-no { animation: kz-shake .45s; }
.kz-model { width: 96px; padding: 6px; border-radius: 16px; background: #fff; border: 4px solid #ffd23f; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.kz-model svg { display: block; width: 100%; height: auto; }
.kz-palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; width: min(100%, 380px); }
.kz-palette button { aspect-ratio: 1; min-width: 0; padding: 0; border: 4px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.kz-palette button.on { transform: scale(1.18); border-color: #3b2a4d; }
/* KRB Kids: nombre de colores con logo de globos (título del inicio y botón de la sala) */
.kz-name { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 .35em; font-family: Fredoka, "Baloo 2", "Trebuchet MS", system-ui, sans-serif; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.kz-name i { font-style: normal; display: inline-block; text-shadow: -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 3px 3px 0 #fff, 0 6px 0 rgba(74, 44, 138, .35); }
.kz-name i:nth-child(odd) { transform: rotate(-6deg); }
.kz-name i:nth-child(even) { transform: rotate(5deg) translateY(2px); }
.kz-title { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; font-size: clamp(3rem, 15vw, 4.6rem); }
.kz-title .kz-logo { width: clamp(90px, 28vw, 130px); height: auto; animation: kz-float 3s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .12)); }
.kids-entry2 { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 18px; background: linear-gradient(135deg, #ff5fa2 0%, #ffbe0b 35%, #2bb24c 65%, #3a86ff 100%); border: 4px solid #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.kids-entry2 .kz-logo { flex: 0 0 auto; width: 72px; height: 72px; animation: kz-float 3s ease-in-out infinite; }
.kz-entry-text { display: grid; justify-items: start; gap: 6px; text-align: left; }
.kids-entry2 .kz-name { font-size: 2.2rem; justify-content: flex-start; }
.kids-entry2 .kz-entry-text > span { font-size: .95rem; font-weight: 800; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
/* Tamaño del nombre de colores (otros estilos de la sala lo achicaban) */
.kz-title .kz-name { font-size: inherit; text-shadow: none; }
.kids-entry2 .kz-name { font-size: 2.3rem; }
.kz-name .kz-name-word { font-size: inherit; }
.kids-entry2 .kz-entry-text > .kz-tag { font-size: .95rem; }
/* KRB Kids: nombre más redondo, gordito y grande, con borde blanco suave (sin letras chuecas) */
.kz-name { font-family: "Baloo 2", Fredoka, "Trebuchet MS", system-ui, sans-serif; font-weight: 800; letter-spacing: .01em; }
.kz-name i { transform: none !important; text-shadow: none; -webkit-text-stroke: .16em #fff; paint-order: stroke fill; filter: drop-shadow(0 .08em 0 rgba(74, 44, 138, .28)); }
.kz-title { font-size: clamp(3.6rem, 19vw, 5.6rem); }
.kz-title .kz-name { line-height: .95; }
.kids-entry2 .kz-name { font-size: 2.7rem; line-height: .95; }
.kids-entry2 .kz-entry-text > .kz-tag { font-size: 1.1rem; }
/* Final de un juego: repetir o pasar al siguiente */
.kz-final-row { display: flex; align-items: center; gap: 18px; }
.kz-next { position: relative; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 32px; background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); animation: kz-bounce 1.2s ease-in-out infinite; }
.kz-next svg { width: 78%; height: 78%; }
.kz-next-arrow { position: absolute; right: -10px; bottom: -10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #2bb24c; color: #fff; font-size: 1.5rem; font-weight: 800; border: 3px solid #fff; }
.lp-open-list { display: grid; gap: 10px; }

/* ---------- Consola general ---------- */
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cs-card { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 2px solid var(--cs, #555); }
.cs-card.th-frida { --cs: #c4175e; } .cs-card.th-kennedy { --cs: #1487cf; } .cs-card.th-tobalaba { --cs: #c81e1e; }
.cs-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cs-card header b { font-size: 1.3rem; }
.cs-badge { padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 800; background: rgba(255, 255, 255, .1); }
.cs-badge.on { background: var(--cs); color: #fff; }
.cs-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: repeating-conic-gradient(#1b1930 0 25%, #222038 0 50%) 0 0 / 24px 24px; }
.cs-screen iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; pointer-events: none; }
.cs-off { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: rgba(255, 255, 255, .6); font-weight: 700; }
.cs-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .95rem; }
.cs-card dt { color: rgba(255, 255, 255, .6); font-weight: 700; }
.cs-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lp-key { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.lp-key-row { display: flex; gap: 8px; margin-top: 8px; }
.lp-key-row input { flex: 1 1 auto; min-width: 0; }
/* KRB Kids, Pintar: modelo grande arriba, total de estrellas, estrellas al terminar, paleta de 10 colores */
.kz-paint-top { display: flex; align-items: center; gap: 12px; width: min(100%, 420px); }
.kz-paint-top .kz-bar { flex: 1 1 auto; }
.kz-total { flex: 0 0 auto; padding: 4px 12px; border-radius: 99px; background: #fff; color: #4a2c8a; font-weight: 800; font-size: 1.15rem; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.kz-model { width: 150px; }
.kz-canvas { width: min(100%, 330px); }
.kz-palette { grid-template-columns: repeat(5, 1fr); width: min(100%, 300px); gap: 8px; }
.kz-stars-pop { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 70; display: flex; gap: 6px; padding: 14px 20px; border-radius: 26px; background: rgba(255, 255, 255, .95); box-shadow: 0 8px 0 rgba(0, 0, 0, .15); }
.kz-stars-pop i { font-style: normal; font-size: 3.2rem; line-height: 1; color: #d9d2ea; animation: kz-bounce .5s backwards; }
.kz-stars-pop i.on { color: #ffc400; text-shadow: 0 3px 0 #e09b00; }
/* KRB Kids: La Víbora (tablero cuadrado, víbora verde, frutas, piedras) y menú con 5 juegos */
.kz-snake { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; width: min(100%, 360px); padding: 6px; border-radius: 22px; background: rgba(255, 255, 255, .25); touch-action: none; }
.kz-snake.walls { box-shadow: inset 0 0 0 5px #4a2c8a; }
.kz-snake i { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .18); font-style: normal; font-size: min(5.5vw, 22px); line-height: 1; }
.kz-snake i.body { background: hsl(calc(130 + var(--k) * 12) 60% 45%); border-radius: 40%; }
.kz-snake i.head { border-radius: 45%; transform: rotate(var(--r)); background: radial-gradient(circle at 70% 28%, #3b2a4d 0 9%, #fff 10% 19%, transparent 20%), radial-gradient(circle at 70% 72%, #3b2a4d 0 9%, #fff 10% 19%, transparent 20%), #1f8a3a; }
.kz-snake i.rock { background: #8d6e63; border-radius: 30%; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.kz-snake i.fruit { background: transparent; animation: kz-bounce 1s infinite; }
.kz-shake { animation: kz-shake .5s; }
@keyframes kz-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.kz-pad4 { grid-template-columns: repeat(3, 1fr); width: min(100%, 300px); gap: 8px; }
.kz-pad4 button { padding: 12px 0; }
.kz-menu .kz-game:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
/* KRB Kids: al acertar, el fondo cambia de color un momento; sin zoom ni movimiento (pedido de Cote: marea a los niños) */
body.kids::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at 50% 40%, #d8ffb0 0%, #5fd068 55%, #1f9d55 100%); }
body.kids.kz-acierto::before { opacity: 1; }
body.kids .kz, body.kids .kz-stamps { position: relative; z-index: 1; }
body.kids .kz-stamps { position: fixed; }
.kz-yes, .kz-flash, .kz-stars-pop i, .kz-snake i.fruit, .kz-final-stars, .kz-trophy, .kz-next { animation: none; }
/* La Víbora: en los tableros grandes (13 y 14 casillas) las casillas no deben salirse del marco */
.kz-snake { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); box-sizing: border-box; }
.kz-snake.walls { padding: 8px; }
.kz-snake i { min-width: 0; overflow: hidden; font-size: calc(min(100vw, 360px) / var(--n) * .7); }
/* Pantalla vertical: video de la cartelera a pantalla completa o la actividad del local */
body.vert-in { margin: 0; overflow: hidden; background: #000; }
body.vert-in .krb-mark { display: none; }
.vt { position: fixed; inset: 0; background: #000; }
.vt-video, .vt-act { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.vt-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.vt-empty img { width: 50%; opacity: .8; }
.vt-locales { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-now { display: grid; gap: 4px; text-align: center; }
.vt-now b { font-size: 1.6rem; }
.vt-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.vt-modes button { display: grid; gap: 4px; justify-items: center; padding: 14px 10px; font-size: 1.05rem; font-weight: 700; }
.vt-modes button span { font-size: 1.8rem; }
.vt-modes button small { font-weight: 400; font-size: .8rem; opacity: .8; }
.vt-modes button.on { outline: 3px solid var(--accent, #ff2e88); }
.vt-prev { display: block; height: 260px; max-width: 100%; margin: 6px 0; border-radius: 10px; background: #000; }
.vt-up { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vt-prog { position: relative; height: 26px; margin-top: 10px; border-radius: 13px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.vt-prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: #2bb24c; }
.vt-prog span { position: relative; display: block; text-align: center; line-height: 26px; font-size: .85rem; font-weight: 700; }
.vt-link { width: min(100%, 420px); }
button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
/* Pantalla vertical: el video y la actividad van solos, encima de todo, sin el fondo animado (en el iPhone se veía solo el fondo) */
html:has(body.vert-in), body.vert-in { background: #000; }
body.vert-in main { padding: 0; max-width: none; }
.vt { z-index: 5; }
/* QR grande del bingo en pantallas de pie (pantalla vertical y tablero vertical): medidas según el ancho, para que no se salga */
@media (orientation: portrait) {
  #fb .fb-bigqr { width: 90vw; box-sizing: border-box; gap: 3vw; padding: 6vw 5vw; border-radius: 5vw; }
  #fb .fb-bigqr .gc-big-title { font-size: 8.5vw; white-space: normal; text-wrap: balance; }
  #fb .fb-bigqr .gc-big-qr .qr { width: 66vw; height: 66vw; padding: 3.5vw; border-radius: 4vw; }
  #fb .fb-bigqr .gc-big-text { font-size: 5vw; max-width: 80vw; }
  #fb .fb-bigqr .gc-big-count { font-size: 4vw; padding: .8vw 4vw; }
}
/* Ganador de El Rosco (y de la Trivia del Rosco) en pantallas de pie: todo según el ancho, sin salirse, y sobre el QR de abajo */
@media (orientation: portrait) and (min-width: 300px) {
  body.full .win-screen { box-sizing: border-box; padding-bottom: 24vw; }
  body.full .win-card { box-sizing: border-box; width: 88vw; max-width: 88vw; gap: 2vw; padding: 6vw 5vw; border-radius: 5vw; border-width: 1vw; }
  body.full .win-trophy { font-size: 22vw; }
  body.full .win-name { font-size: min(13vw, calc(78vw / (var(--n, 8) * .63))); }
  body.full .win-text { font-size: 8vw; }
  body.full .win-sub { font-size: 6vw; padding: 1vw 5vw; }
}
/* Pantallas de pie: celebración del bingo (uno o varios ganadores) según el ancho, y el sorteo con espacio para el QR de abajo */
@media (orientation: portrait) and (min-width: 300px) {
  .bwin-card { box-sizing: border-box; min-width: 0; width: 90vw; max-width: 90vw; gap: 2.4vw; padding: 5vw 4vw 6vw; border-radius: 5vw; border-width: 1vw; }
  .bwin-title { font-size: 21vw; }
  .bwin-names { max-width: 82vw; gap: 2vw 4vw; }
  .bwin-names b { font-size: min(11vw, calc(78vw / (var(--n, 8) * .59))); }
  .bwin-names small { font-size: 3.6vw; }
  .bwin-more { font-size: 4vw; }
  .bwin-sub { font-size: 5vw; padding: 1vw 5vw; }
  .bwin.many .bwin-title { font-size: 16vw; }
  .bwin.many .bwin-names { flex-direction: column; align-items: center; }
  .bwin.many .bwin-names b { font-size: min(7.5vw, calc(78vw / (var(--n, 8) * .59))); }
  .bwin.many .bwin-names small { font-size: 3vw; }
  body.full #rf { padding-bottom: 32vw; }
}
/* El Rosco en pantallas de pie: más alto para la respuesta y la pregunta, y ruedas que caben en lo que queda (no se montan) */
@media (orientation: portrait) and (min-width: 300px) {
  body.full.wheel-screen #pw { grid-template-rows: 5vh 19vh minmax(0, 1fr); }
  body.full.wheel-screen .wheels .wheel { width: min(88vw, 58vh); max-width: min(88vw, 58vh); }
  body.full.wheel-screen .wheels.n2 .wheel { width: min(60vw, 29vh); max-width: min(60vw, 29vh); }
  body.full.wheel-screen .wheels.n3 .wheel, body.full.wheel-screen .wheels.n4 .wheel { width: min(45vw, 29vh); max-width: min(45vw, 29vh); }
}
/* Botón de KRB Kids a la mitad de su tamaño (pedido de Cote) */
.kids-entry2 { width: fit-content; max-width: 260px; gap: 8px; padding: 8px 16px; border-width: 3px; border-radius: 99px; box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.kids-entry2 .kz-logo { width: 38px; height: 38px; }
.kids-entry2 .kz-entry-text { gap: 2px; }
.kids-entry2 .kz-name { font-size: 1.25rem; }
.kids-entry2 .kz-entry-text > .kz-tag, .kids-entry2 .kz-entry-text > span { font-size: .72rem; }
/* OBS · El Rosco: recuadros de los jugadores más chicos, para que no toquen las letras del rosco */
.obs-corner { top: 2vh; left: 2vh; gap: 1vh; max-width: 36vh; }
.obs-player { column-gap: 1.2vh; padding: .8vh 1.6vh .8vh 1.4vh; border-radius: 1.8vh; min-width: 0; }
.obs-clock { font-size: 6vh; }
.obs-player:not(.on) .obs-clock { font-size: 3.4vh; }
.obs-name { font-size: 2vh; min-width: 0; max-width: 24vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obs-score b { font-size: 1.9vh; padding: 0 1vh; }
/* Logos de KRB Stage y del local (Mercado Kennedy) juntos, centrados y al mismo alto, como parte del diseño:
   en el tablero, en una franja abajo que las pantallas dejan libre; en OBS, arriba al centro */
.venue-mark { position: fixed; z-index: 49; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 1.6vh; pointer-events: none; user-select: none; filter: drop-shadow(0 .3vh .6vh rgba(0, 0, 0, .55)); }
.venue-mark img { display: block; height: 4.2vh; width: auto; }
.venue-mark i { display: block; width: .25vh; height: 3.6vh; border-radius: 1vh; background: rgba(255, 255, 255, .7); }
body.has-vm .krb-mark { display: none; }
.venue-mark.vm-full { bottom: 1.3vh; }
@media (orientation: landscape) {
  body.full.has-vm #fb, body.full.has-vm #kf, body.full.has-vm #vf, body.full.has-vm #rf { padding-bottom: 7.5vh; }
  body.full.has-vm.wheel-screen #pw { padding-bottom: 7.5vh; }
  body.full.has-vm .win-screen, body.full.has-vm .bwin, body.full.has-vm #sf, body.full.has-vm .gc-big-wrap { bottom: 6.5vh; }
}
/* De pie: los logos abajo al centro y el QR para entrar sube sobre ellos */
@media (orientation: portrait) {
  .venue-mark img { height: 3vh; } .venue-mark i { height: 2.6vh; } .venue-mark { gap: 1.2vh; }
  .venue-mark.vm-full { bottom: 1.1vh; }
  body.full.has-vm .join-qr, body.full.has-vm .join-qr.br { bottom: 5.4vh; }
  body.full.has-vm #fb, body.full.has-vm #kf, body.full.has-vm #vf { padding-bottom: 5.5vh; }
  body.full.has-vm.wheel-screen #pw { padding-bottom: 19vh; }
  body.full.has-vm #rf { padding-bottom: calc(32vw + 4vh); }
  body.full.has-vm .win-screen { padding-bottom: calc(24vw + 4vh); }
  body.full.has-vm .bwin, body.full.has-vm .gc-big-wrap { bottom: 5vh; }
}
/* OBS (sobre la cámara): arriba a la derecha; en el bingo, a la izquierda sobre el recuadro de la bolita */
.venue-mark.vm-obs { left: auto; right: 2.4vh; top: 2.4vh; transform: none; }
.venue-mark.vm-obs-bingo { left: 2.4vh; bottom: 26vh; transform: none; }
/* Con los dos logos juntos (KRB Stage | local), el logo de KRB dentro de las gráficas del karaoke no se repite */
body.has-vm .kg-logo { display: none; }
/* Fondo de neuronas (como en krbstage.cl) en las pantallas de las actividades: sobre el fondo de colores, bajo todo lo demás */
#neural-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: .9; }
/* Fondo vertical de la sala light (pantallas de pie de Kennedy y Frida): esta noche, recuadro que cambia y QR grande */
#lv { --lv-main: #c4175e; --lv-tag: #05686e; --lv-gold: #ffc400; --lv-shade: rgba(60, 0, 30, .55);
  --lv-dots: radial-gradient(circle, rgba(255,255,255,.13) 0 .4vh, transparent .44vh) 0 0 / 4vh 4vh, radial-gradient(circle, rgba(255,255,255,.13) 0 .4vh, transparent .44vh) 2vh 2vh / 4vh 4vh;
  position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 2.4vh; padding: 3vh 5vw 2vh; color: #fff; font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; }
#lv.th-kennedy { --lv-main: #1a3fb8; --lv-tag: #0a1238; --lv-gold: #e6b445; --lv-shade: rgba(3, 12, 60, .65); }
body.full.has-vm #lv { padding-bottom: 7vh; }
.lv-top { display: grid; justify-items: center; gap: .6vh; padding: 2.2vh 4vw; border-radius: 3vh; text-align: center; background: var(--lv-dots), var(--lv-tag); border: .5vh solid var(--lv-gold); box-shadow: 0 1.5vh 4vh rgba(0, 0, 0, .4); }
.lv-top small { font-size: 2.4vh; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.lv-top b { font-size: 6.4vh; font-weight: 900; line-height: 1; text-transform: uppercase; color: var(--lv-gold); text-shadow: .4vh .4vh 0 var(--lv-shade); }
.lv-show { font-size: 3vh; font-weight: 800; padding: .5vh 2.6vh; border-radius: 99px; background: var(--lv-shade); max-width: 100%; }
.lv-card { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1.4vh; padding: 3vh 5vw 2vh; border-radius: 4vh; background: var(--lv-dots), var(--lv-main); border: .7vh solid var(--lv-gold); box-shadow: 0 2vh 6vh rgba(0, 0, 0, .45); overflow: hidden; }
.lv-slide { min-height: 0; display: grid; align-content: center; gap: 2.2vh; animation: lv-in .6s ease; }
@keyframes lv-in { from { opacity: 0; } to { opacity: 1; } }
.lv-slide h2 { margin: 0; justify-self: center; font-size: 3.6vh; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: .6vh 3.4vh; border-radius: 99px; background: var(--lv-shade); }
.lv-now { display: grid; justify-items: center; gap: .6vh; text-align: center; }
.lv-now small { font-size: 2.6vh; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.lv-now b { font-size: 6vh; font-weight: 900; line-height: 1.05; color: var(--lv-gold); text-shadow: .4vh .4vh 0 var(--lv-shade); overflow-wrap: anywhere; }
.lv-now span { font-size: 3.2vh; font-weight: 700; }
.lv-next b { font-size: 4.6vh; color: #fff; }
.lv-list, .lv-hours, .lv-week { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.1vh; }
.lv-list { counter-reset: n 1; }
.lv-list li, .lv-hours li, .lv-week li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2vh; padding: 1vh 2vh; border-radius: 1.6vh; background: var(--lv-shade); }
.lv-list li { grid-template-columns: minmax(0, 1fr); gap: .2vh; }
.lv-list b, .lv-hours b, .lv-week b { font-size: 2.9vh; font-weight: 800; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-list span { font-size: 2.3vh; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-hours em, .lv-week em { font-style: normal; font-size: 2.5vh; font-weight: 900; color: var(--lv-gold); white-space: nowrap; }
.lv-hours li.on, .lv-week li.on { outline: .4vh solid var(--lv-gold); }
.lv-dots { display: flex; justify-content: center; gap: 1.2vh; }
.lv-dots i { width: 1.3vh; height: 1.3vh; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.lv-dots i.on { background: var(--lv-gold); }
.lv-qr { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3vh; padding: 2vh 3vh; border-radius: 3vh; background: #fff; color: #1b1240; border: .6vh solid var(--lv-gold); box-shadow: 0 1.5vh 4vh rgba(0, 0, 0, .4); }
.lv-qrbox .qr { display: block; width: 19vh; height: 19vh; border: 0; padding: 0; border-radius: 0; }
.lv-qrtext { display: grid; gap: 1vh; }
.lv-qrtext b { font-size: 4.2vh; font-weight: 900; line-height: 1.05; text-transform: uppercase; color: var(--lv-main); }
.lv-qrtext span { font-size: 2.6vh; font-weight: 700; line-height: 1.2; }
/* Fondo vertical de la sala light: más espacio para el recuadro del medio y textos que caben */
#lv { gap: 1.8vh; padding-top: 2.4vh; }
.lv-top { padding: 1.6vh 4vw; }
.lv-top b { font-size: 5.6vh; }
.lv-card { padding: 2.4vh 4vw 1.6vh; }
.lv-slide { gap: 1.6vh; overflow: hidden; }
.lv-slide h2 { font-size: 3vh; white-space: nowrap; }
.lv-now b { font-size: 5vh; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lv-next b { font-size: 4vh; }
.lv-list b, .lv-hours b, .lv-week b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 2.6vh; }
.lv-list li, .lv-hours li, .lv-week li { padding: .9vh 1.8vh; }
.lv-qr { gap: 2.4vh; padding: 1.6vh 2.4vh; }
.lv-qrbox .qr { width: 15vh; height: 15vh; }
.lv-qrtext b { font-size: 3.4vh; }
.lv-qrtext span { font-size: 2.2vh; }
/* Fondo vertical de la sala light: los textos se acomodan al ancho completos (sin cortes ni «…»); si no caben, se achica el recuadro entero */
.lv-now b, .lv-list b, .lv-hours b, .lv-week b, .lv-list span, .lv-show { display: block; -webkit-line-clamp: unset; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
.lv-slide h2 { white-space: normal; text-align: center; }
/* Fondo vertical de Tobalaba: sus colores (rojo) */
#lv.th-tobalaba { --lv-main: #c81e1e; --lv-tag: #3d0a0a; --lv-gold: #ffc400; --lv-shade: rgba(70, 0, 0, .55); }
/* Información del local en una pantalla horizontal (Tobalaba): arriba el local, abajo el recuadro que cambia y el QR al lado */
@media (orientation: landscape) {
  #lv { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); gap: 3vh 2.4vw; padding: 3vh 3vw; }
  body.full.has-vm #lv { padding-bottom: 8vh; }
  .lv-top { grid-column: 1 / -1; grid-template-columns: auto auto auto; align-items: center; justify-content: center; gap: 2vw; padding: 1.6vh 3vw; }
  .lv-top b { font-size: 7vh; }
  .lv-top small { font-size: 2.8vh; }
  .lv-card { padding: 3vh 3vw 2vh; }
  .lv-slide h2 { font-size: 3.6vh; }
  .lv-now b { font-size: 6vh; }
  .lv-list b, .lv-hours b, .lv-week b { font-size: 3.2vh; }
  .lv-hours em, .lv-week em { font-size: 3vh; }
  .lv-hours, .lv-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-qr { grid-template-columns: 1fr; justify-items: center; align-self: stretch; align-content: center; text-align: center; width: 30vw; padding: 3vh 2vw; }
  .lv-qrbox .qr { width: 32vh; height: 32vh; }
  .lv-qrtext b { font-size: 4.6vh; }
  .lv-qrtext span { font-size: 2.8vh; }
}
/* Pantalla horizontal: textos más grandes, que llenen el recuadro (si no caben, se achican solos) */
@media (orientation: landscape) {
  .lv-slide { gap: 2.4vh; }
  .lv-slide h2 { font-size: 4.6vh; }
  .lv-now small { font-size: 3.2vh; }
  .lv-now b { font-size: 8vh; }
  .lv-now span { font-size: 4vh; }
  .lv-next b { font-size: 6vh; }
  .lv-list b, .lv-hours b, .lv-week b { font-size: 4.2vh; }
  .lv-list span { font-size: 3.2vh; }
  .lv-hours em, .lv-week em { font-size: 4vh; }
  .lv-list li, .lv-hours li, .lv-week li { padding: 1.4vh 2.4vh; gap: 2.4vh; }
  .lv-week { grid-template-columns: minmax(0, 1fr); }
}
/* Fondo de la sala light en modo «QR grande y lista»: el QR va al centro, grande, con los próximos en cantar */
#lv.lv-qrmode .lv-qr { display: none; }
#lv.lv-qrmode { grid-template-rows: auto minmax(0, 1fr); }
.lv-bigqr { justify-self: center; padding: 2vh; border-radius: 3vh; background: #fff; border: .6vh solid var(--lv-gold); }
.lv-bigqr .qr { display: block; width: min(34vh, 70vw); height: min(34vh, 70vw); border: 0; padding: 0; border-radius: 0; }
.lv-bigqr-text { margin: 0; text-align: center; font-size: 3vh; font-weight: 800; }
@media (orientation: landscape) { #lv.lv-qrmode { grid-template-columns: minmax(0, 1fr); } .lv-bigqr .qr { width: 40vh; height: 40vh; } }
/* Shows con artista: el título y, abajo, «por» y el artista en grande y en color */
.lv-sh, .lv-by { display: block; }
.lv-by { margin-top: .3em; font-size: 1.25em; font-weight: 900; line-height: 1.05; color: var(--lv-gold); text-shadow: .3vh .3vh 0 var(--lv-shade); }
.lv-by small { font-size: .6em; font-weight: 700; color: #fff; opacity: .85; text-shadow: none; }
.lv-now .lv-by { font-size: 1.1em; }
.lv-next .lv-sh { color: #fff; }
.lv-show .lv-sh, .lv-show .lv-by { display: inline; }
.lv-show .lv-by { font-size: 1em; margin-left: .4em; }
.lv-by small { text-transform: none; letter-spacing: 0; }
/* KRB Kids, inicio: título más arriba e íconos más chicos, todo dentro de la pantalla y simétrico (3 arriba, 2 abajo centrados) */
body.kids main { padding-top: 10px; padding-bottom: 20px; }
.kz:has(.kz-home-body) { min-height: calc(100dvh - 30px); align-content: start; gap: 10px; }
.kz:has(.kz-home-body) .kz-top { justify-content: center; }
.kz-title { margin: 0; gap: 0; font-size: clamp(2.8rem, 14vw, 4.4rem); }
.kz-title .kz-logo { width: clamp(70px, 20vw, 110px); margin-bottom: -6px; }
.kz-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 6px auto 0; max-width: 560px; }
.kz-menu .kz-game, .kz-menu .kz-game:last-child:nth-child(odd) { flex: 0 0 auto; width: min(28vw, 160px); aspect-ratio: 1; grid-column: auto; justify-self: auto; border-radius: 26px; padding: 0; }
.kz-game svg { width: 70%; height: 70%; }
/* KRB Kids, inicio: el conjunto (globos, título e íconos) centrado en el alto de la pantalla; «Volver» arriba */
.kz:has(.kz-home-body) { grid-template-rows: auto 1fr; align-content: stretch; }
.kz:has(.kz-home-body) > .kz-title, .kz:has(.kz-home-body) > .kz-menu { grid-row: auto; }
.kz-home-body { display: grid; align-content: center; justify-items: center; gap: 14px; padding-bottom: 6vh; }
.kz-title { font-size: clamp(3rem, 15vw, 4.8rem); }
.kz-title .kz-logo { width: clamp(80px, 22vw, 120px); }
.kz-menu .kz-game, .kz-menu .kz-game:last-child:nth-child(odd) { width: min(29vw, 170px); }

/* iPhone (Safari): el fondo animado (#neural-bg y el degradado) quedaba encima de la información del local en las
   pantallas incrustadas en la página web. El fondo va detrás de todo (z-index negativo, con el color en <html>) y la
   información de la pantalla en su propia capa. */
body.full { background: transparent; }
body.full::before, #neural-bg { z-index: -1; }
#lv { z-index: 1; }

/* Pantalla incrustada en otra página y vista en un celular (clase emb-cel, en app.js): el degradado de fondo queda
   quieto (en el iPhone, al girar, se dibujaba encima de la información del local) */
html.emb-cel body.full::before { animation: none; transform: none; }

/* iPhone (Safari): #app con z-index formaba una capa sin alto (la información va fija encima) y Safari no dibujaba la
   información del local. El fondo ya va detrás (z-index negativo), así que #app no necesita capa propia. */
body.full #app { z-index: auto; }

/* Pantallas de los locales: cada local con sus dos espacios, vertical y horizontal, lado a lado (pedido de Cote) */
.vt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; align-items: start; }
.vt-col { display: grid; gap: 12px; min-width: 0; }
.vt-col .panel { margin: 0; }
.vt-col-title { margin: 0; }
.vt-col h3 { margin: 0 0 10px; }
.vt-col .vt-modes { grid-template-columns: 1fr; }
.vt-col .vt-link { width: 100%; max-width: 100%; }
.vt-col .vt-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vt-col .vt-modes button { padding: 10px 6px; font-size: .92rem; border-radius: 16px; }
.vt-col .vt-modes button span { font-size: 1.4rem; }
.vt-col .vt-modes button small { font-size: .72rem; font-weight: 500; }
.vt-col .vt-now b { font-size: 1.25rem; }
.vt-both { margin-bottom: 18px; }
.vt-both h2 small { font-size: .8rem; font-weight: 500; }
.vt-both .vt-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vt-opt { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.vt-links { margin-bottom: 18px; }
.vt-linkrow { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.vt-linkrow:first-of-type { border-top: 0; }
.vt-linkrow > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vt-linkrow .vt-link { flex: 1 1 260px; min-width: 0; }

/* GC de la sala light, «Información que va cambiando» (pedido de Cote: por defecto) */
.lg-info .lg-main .lg-line { font-size: 3.4vh; font-weight: 800; line-height: 1.35; }
.lg-info .lg-main .lg-line em { margin-left: .2em; }
.lg-info .lg-tag { width: 34vh; white-space: normal; }

/* Panel de El Rosco (pedido de Cote): «Rosco en pantalla», «Iniciar pregunta» y abajo Correcta / Incorrecta / Pasa,
   grandes y fáciles de ver */
.w-flow { display: grid; gap: 10px; margin: 14px 0 10px; }
.w-flow button { padding: 16px 10px; font-size: 1.15rem; font-weight: 800; border-radius: 16px; }
.w-show { background: rgba(255, 255, 255, .08); color: #fff; border: 2px solid rgba(255, 255, 255, .25); }
.w-show.on { background: #0a9a94; border-color: #0a9a94; }
.w-go { padding: 22px 10px !important; font-size: 1.5rem !important; background: #ffc400; color: #1a1a1a; border: 0; }
.w-go.on { background: #ff7a1a; color: #fff; }
.w-keys button { padding: 26px 8px; font-size: 1.35rem; font-weight: 900; }

/* Ranking de la Trivia del Rosco desplegado (pedido de Cote): panel, GC (a un costado) y pantalla del local */
.w-rankbtn { width: 100%; margin-top: 14px; padding: 16px 10px; font-size: 1.15rem; font-weight: 800; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff; border: 2px solid rgba(255, 196, 0, .6); }
.w-rankbtn.on { background: #ffc400; color: #1a1a1a; border-color: #ffc400; }
.w-ranklist { margin-top: 10px; }
.w-rk-head, .obs-rank-head, .pw-rank-head { display: grid; justify-items: center; gap: 2px; text-align: center; }
.w-rk-head small, .obs-rank-head small, .pw-rank-head small { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffc400; }
.w-rk ol, .obs-rank ol, .pw-rank ol { margin: 0; padding: 0; list-style: none; counter-reset: rk; display: grid; }
.w-rk li, .obs-rank li, .pw-rank li { counter-increment: rk; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.w-rk li::before, .obs-rank li::before, .pw-rank li::before { content: counter(rk); display: grid; place-items: center; border-radius: 50%; background: #ffc400; color: #1a1a1a; font-weight: 900; }
.w-rk li b, .obs-rank li b, .pw-rank li b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.w-rk li em, .obs-rank li em, .pw-rank li em { font-style: normal; font-weight: 900; color: #ffc400; }
.w-rk li:first-child, .obs-rank li:first-child, .pw-rank li:first-child { background: linear-gradient(90deg, rgba(255, 196, 0, .35), rgba(255, 196, 0, .08)); }
/* panel */
.w-rk { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.w-rk-head b { font-size: 1.2rem; } .w-rk-head span { font-size: .85rem; opacity: .8; }
.w-rk ol { gap: 4px; }
.w-rk li { gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 1rem; }
.w-rk li::before { width: 26px; height: 26px; font-size: .85rem; }
/* GC: tarjeta a la derecha */
.obs-rankside .obs-rank { animation: sidepop .45s cubic-bezier(.2, 1.4, .4, 1); }
.obs-rank { display: grid; gap: 1.2vh; padding: 2.4vh 2vh; border-radius: 3vh; background: linear-gradient(160deg, #7b2ff7, #e0338f); border: .5vh solid #ffc400; color: #fff; box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .5); }
.obs-rank-head small { font-size: 1.8vh; } .obs-rank-head b { font-size: 3.6vh; font-weight: 900; } .obs-rank-head span { font-size: 1.8vh; font-weight: 700; opacity: .9; }
.obs-rank ol { gap: .6vh; }
.obs-rank li { gap: 1.2vh; padding: .7vh 1.2vh; border-radius: 1.4vh; background: rgba(0, 0, 0, .28); font-size: 2.4vh; font-weight: 800; }
.obs-rank li::before { width: 3.4vh; height: 3.4vh; font-size: 1.9vh; }
.obs-rank p { margin: 0; text-align: center; font-size: 2.4vh; font-weight: 700; }
/* pantalla del local: la lista completa, encima del rosco */
.pw-rankwrap { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(10, 6, 30, .72); }
.pw-rank { width: min(92vw, 110vh); display: grid; gap: 1.6vh; padding: 3vh 4vh; border-radius: 4vh; background: linear-gradient(160deg, #7b2ff7, #e0338f); border: .8vh solid #ffc400; color: #fff; box-shadow: 0 3vh 9vh rgba(0, 0, 0, .55); animation: sidepop .5s cubic-bezier(.2, 1.4, .4, 1); }
.pw-rank-head small { font-size: 2.6vh; } .pw-rank-head b { font-size: 6vh; font-weight: 900; } .pw-rank-head span { font-size: 2.6vh; font-weight: 700; opacity: .9; }
.pw-rank ol { gap: 1vh; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 2.4vh; }
.pw-rank li { gap: 1.6vh; padding: 1.1vh 1.8vh; border-radius: 1.8vh; background: rgba(0, 0, 0, .28); font-size: 3.4vh; font-weight: 800; }
.pw-rank li::before { width: 5vh; height: 5vh; font-size: 2.8vh; }
.pw-rank p { margin: 0; text-align: center; font-size: 3.4vh; font-weight: 700; }
@media (orientation: portrait) { .pw-rank ol { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; } .pw-rank li { font-size: 2.6vh; } }
.obs-rank li b, .pw-rank li b { white-space: normal; overflow: hidden; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.1; overflow-wrap: anywhere; }
.obs-rank li { font-size: 2.1vh; }
.pw-rank li { font-size: 3vh; }
/* Ranking: nombre y apellido completos, sin cortar (pedido de Cote) */
.w-rk li b, .obs-rank li b, .pw-rank li b { display: block; white-space: normal; overflow: visible; text-overflow: clip; -webkit-line-clamp: unset; overflow-wrap: anywhere; line-height: 1.15; }
.obs-rankside.wide { width: min(46vw, 82vh); }
.obs-rank-head b { font-size: 3.2vh; }
.pw-rank-head b { font-size: 5.4vh; }
/* «Poner rosco en pantalla»: morado claro (pedido de Cote) */
.w-show { background: #c4b5fd; color: #2e1065; border-color: #c4b5fd; }
.w-show.on { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }
.pw-rank { width: min(94vw, 150vh); }
/* Pregunta paso a paso: los botones que no corresponden quedan bloqueados en blanco y negro (pedido de Cote) */
.w-flow button:disabled, .w-keys button:disabled { filter: grayscale(1); opacity: .35; cursor: not-allowed; }

/* Compatibilidad con navegadores antiguos (el Chrome de los decodificadores no conoce «inset»): las mismas posiciones,
   escritas a la antigua, para que el video, la actividad y la información de las pantallas ocupen toda la pantalla */
.vt, .vt-video, .vt-act, .vt-empty, #lv, #neural-bg, .pw-rankwrap { top: 0; right: 0; bottom: 0; left: 0; }
body.full::before { top: -20%; right: -20%; bottom: -20%; left: -20%; }
/* Enlace corto de cada pantalla (pedido de Cote) */
.vt-short { font-weight: 800; color: #ffc400; }
/* QR del tablero del bingo: la frase «Escanea el código QR con tu celular y juega» completa (pedido de Cote) */
.fb-qr > span { font-size: 1.9vh; line-height: 1.15; }
#fb .fb-qr > span { font-size: min(1.9vh, 1.7vw); line-height: 1.15; }

/* Fondo de las pantallas con los colores de cada local (pedido de Cote: el GC y la pantalla vertical combinan).
   Tobalaba: rojos; Kennedy: celestes y azules; Frida: magenta y morado (el de siempre). */
body.full[data-venue="tobalaba"]::before {
  background: radial-gradient(circle at 20% 25%, rgba(232, 38, 46, .55), transparent 38%), radial-gradient(circle at 80% 20%, rgba(255, 122, 26, .38), transparent 36%),
    radial-gradient(circle at 70% 85%, rgba(200, 30, 30, .5), transparent 40%), radial-gradient(circle at 15% 85%, rgba(130, 10, 40, .6), transparent 38%); }
body.full[data-venue="kennedy"]::before {
  background: radial-gradient(circle at 20% 25%, rgba(20, 135, 207, .55), transparent 38%), radial-gradient(circle at 80% 20%, rgba(53, 198, 255, .45), transparent 36%),
    radial-gradient(circle at 70% 85%, rgba(26, 63, 184, .55), transparent 40%), radial-gradient(circle at 15% 85%, rgba(10, 40, 110, .6), transparent 38%); }
#fb.th-tobalaba .fb-board { background: rgba(45, 4, 10, .55); border-color: rgba(255, 140, 140, .18); }
#fb.th-kennedy .fb-board { background: rgba(2, 18, 50, .55); border-color: rgba(140, 200, 255, .18); }

/* El Rosco en el GC: aviso al centro con «Incorrecto» y la respuesta, o «<concursante> pasa» (1,5 s, pedido de Cote) */
.obs-flash { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20; display: grid; justify-items: center; gap: 1vh;
  min-width: 44vw; max-width: 80vw; padding: 3vh 6vh; border-radius: 4vh; border: .7vh solid #fff; color: #fff; text-align: center;
  box-shadow: 0 2vh 6vh rgba(0, 0, 0, .55); animation: flashpop .25s cubic-bezier(.2, 1.5, .4, 1); }
.obs-flash.miss { background: linear-gradient(160deg, #e8262e, #8a0f14); }
.obs-flash.pass { background: linear-gradient(160deg, #ff9a1a, #b85c00); }
.obs-flash b { font-size: 8vh; font-weight: 900; line-height: 1.05; text-transform: uppercase; text-shadow: .4vh .4vh 0 rgba(0, 0, 0, .3); }
.obs-flash span { font-size: 3.4vh; font-weight: 700; opacity: .95; }
.obs-flash em { font-style: normal; font-size: 6.4vh; font-weight: 900; line-height: 1.05; color: #ffe14d; text-transform: uppercase; text-shadow: .4vh .4vh 0 rgba(0, 0, 0, .3); overflow-wrap: anywhere; }
@keyframes flashpop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .obs-flash { animation: none; } }

/* Neuronas en el GC de OBS (pedido de Cote): encima de los recuadros, solo dentro de ellos, aclarando el color (no tapa
   el texto ni la cámara: fuera de los recuadros el lienzo queda transparente) */
#neural-bg.neural-gc { z-index: 30; mix-blend-mode: screen; opacity: .55; }
#neural-bg.neural-gc { opacity: .8; }
/* QR de la esquina: el ancho es el del QR; «Escanea el código QR» / «con tu celular» en dos líneas centradas (pedido de Cote) */
.join-qr { width: min-content; }
.join-qr b { display: grid; justify-items: center; line-height: 1.15; white-space: nowrap; text-align: center; }
.join-qr b span { display: block; }
.join-qr b { justify-self: stretch; }

/* Pantalla vertical de El Rosco: ranking completo de la Trivia del Rosco (pedido de Cote) */
.rv-rank { position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 1.6vh; padding: 3vh 4vw 2.4vh; color: #fff; }
.rv-head { display: grid; justify-items: center; gap: .4vh; padding: 2vh 3vw; border-radius: 3vh; text-align: center; background: var(--gc-dots, none), linear-gradient(160deg, #7b2ff7, #e0338f); border: .6vh solid #ffc400; box-shadow: 0 1.5vh 4vh rgba(0, 0, 0, .4); }
.rv-head b { font-size: 7.5vh; font-weight: 900; line-height: 1; text-transform: uppercase; color: #ffc400; text-shadow: .4vh .4vh 0 rgba(0, 0, 0, .3); }
.rv-head span { font-size: 3.6vh; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.rv-head small { font-size: 2vh; font-weight: 700; opacity: .9; }
.rv-top { margin: 0; padding: 0; list-style: none; display: grid; gap: 1vh; }
.rv-top li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2vw; padding: 1.2vh 2.4vw; border-radius: 2vh; background: rgba(0, 0, 0, .35); border: .3vh solid rgba(255, 255, 255, .15); }
.rv-top li:first-child { background: linear-gradient(90deg, rgba(255, 196, 0, .45), rgba(255, 196, 0, .12)); border-color: #ffc400; }
.rv-top em { width: 5.4vh; height: 5.4vh; display: grid; place-items: center; border-radius: 50%; background: #ffc400; color: #1a1a1a; font-style: normal; font-weight: 900; font-size: 3vh; }
.rv-top b { font-size: 3.4vh; font-weight: 900; line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.rv-top i { font-style: normal; font-size: 3vh; font-weight: 900; color: #ffc400; white-space: nowrap; }
.rv-rest { min-height: 0; overflow: hidden; padding: 1.4vh 2vw; border-radius: 2vh; background: rgba(0, 0, 0, .3); }
.rv-rest ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); grid-auto-rows: min-content; gap: .5vh 2vw; }
.rv-rest li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: .8vw; font-size: 1.8vh; font-weight: 700; line-height: 1.25; }
.rv-rest em { font-style: normal; font-weight: 900; color: #ffc400; }
.rv-rest b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.rv-rest i { font-style: normal; font-weight: 900; color: #ffc400; }
.rv-pages { text-align: center; font-size: 1.9vh; font-weight: 800; opacity: .9; }
.rv-empty { margin: 0; text-align: center; font-size: 3vh; font-weight: 800; }
body[data-venue="tobalaba"] .rv-head { background: var(--gc-dots, none), linear-gradient(160deg, #e8262e, #7a0f14); }
body[data-venue="kennedy"] .rv-head { background: var(--gc-dots, none), linear-gradient(160deg, #1487cf, #1a3fb8); }

/* Ranking vertical, ajustes: el QR va dentro del encabezado (el de la esquina se oculta), los 5 primeros más compactos */
body.rv-on .join-qr { display: none; }
.rv-rank { gap: 1.2vh; padding: 2.4vh 4vw 1.6vh; }
.rv-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3vw; padding: 1.6vh 3vw; }
.rv-title { display: grid; justify-items: center; gap: .3vh; text-align: center; }
.rv-head b { font-size: 6.4vh; }
.rv-head span { font-size: 3vh; }
.rv-qr { display: grid; justify-items: center; gap: .5vh; padding: 1vh; border-radius: 1.6vh; background: #fff; }
.rv-qr .qr { display: block; width: 13vh; height: 13vh; border: 0; padding: 0; border-radius: 0; }
.rv-qr small { font-size: 1.15vh; font-weight: 900; line-height: 1.15; text-align: center; text-transform: uppercase; color: #c4175e; }
.rv-top { gap: .7vh; }
.rv-top li { padding: .8vh 2.4vw; border-radius: 1.6vh; gap: 2vw; }
.rv-top em { width: 4.4vh; height: 4.4vh; font-size: 2.5vh; }
.rv-top b { font-size: 2.8vh; }
.rv-top i { font-size: 2.6vh; }
.rv-rest li { font-size: 1.75vh; }
.rv-pages { min-height: 2.4vh; }
.rv-head b { font-size: min(5.4vh, 9.4vw); }
.rv-head span { font-size: min(2.8vh, 4.6vw); }
.rv-rest li { align-items: start; }
.rv-rest b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; overflow-wrap: anywhere; }
.rv-head b { font-size: min(4.9vh, 8.2vw); }

/* Pantalla vertical (pedido de Cote): sin QR (ni en el ranking de El Rosco ni junto a la figura del bingo); el ranking se
   lee por columnas: 6, 7, 8… hacia abajo y sigue en la columna de la derecha */
.rv-head { grid-template-columns: minmax(0, 1fr); }
.rv-head b { font-size: min(7vh, 13vw); }
.rv-head span { font-size: min(3.4vh, 6vw); }
.rv-rest ol { grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 1), min-content); }
@media (orientation: portrait) { #fb .fb-qr { display: none; } #fb .fb-side { grid-template-columns: minmax(0, 1fr); } }

/* Ranking vertical: cada nombre en una sola línea (se achica si es largo; pedido de Cote) */
.rv-top b, .rv-rest b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; line-height: 1.2; }
.rv-top li { align-items: center; }
.rv-rest li { align-items: center; font-size: 1.6vh; }

/* Ranking vertical (pedido de Cote): cada columna en su recuadro; el puntaje en el color del local; «¡Pronto! Ya comenzamos» */
.rv-rank { --rv-score: #7fdcff; }
body[data-venue="tobalaba"] .rv-rank { --rv-score: #ffb27a; }
body[data-venue="frida"] .rv-rank, body:not([data-venue]) .rv-rank { --rv-score: #ff8fc8; }
.rv-rest { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 1.4vw; padding: 0; background: none; align-items: start; }
.rv-col { margin: 0; padding: 1.2vh 1.6vw; list-style: none; display: grid; gap: .6vh; border-radius: 1.8vh; background: rgba(0, 0, 0, .38); border: .25vh solid rgba(255, 255, 255, .14); }
.rv-col:empty { display: none; }
.rv-col li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8vw; font-size: 1.6vh; font-weight: 700; line-height: 1.25; }
.rv-col em { font-style: normal; font-weight: 900; color: #ffc400; }
.rv-col b { font-weight: 800; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.rv-col i, .rv-top i { font-style: normal; font-weight: 900; color: var(--rv-score); }
.rv-soon { grid-row: 2 / -1; align-self: center; display: grid; justify-items: center; gap: 1vh; text-align: center; }
.rv-soon b { font-size: min(11vh, 20vw); font-weight: 900; line-height: 1; text-transform: uppercase; color: #ffc400; text-shadow: .5vh .5vh 0 rgba(0, 0, 0, .3); }
.rv-soon span { font-size: min(5.5vh, 10vw); font-weight: 900; text-transform: uppercase; }
.rv-rest .rv-col { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); align-content: start; }
.rv-rank { grid-template-columns: minmax(0, 1fr); }
.rv-soon { min-width: 0; }
.rv-soon b { font-size: min(10vh, 15vw); }
.rv-soon span { font-size: min(5vh, 8vw); }
.rv-rest .rv-col { margin: 0; padding: 1.2vh 1.8vw; gap: .55vh 0; }

/* El Rosco en la pantalla horizontal (pedido de Cote): sin pregunta, el título ocupa todo el espacio de arriba, grande,
   con cada letra de un color y moviéndose como ola; con pregunta vuelve a su tamaño */
.pw-title .pw-fun { display: none; }
@media (orientation: landscape) {
  body.full.wheel-screen #pw.pw-idle { grid-template-rows: 30vh minmax(0, 1fr); }
  body.full.wheel-screen #pw.pw-idle .pw-text { display: none; }
  body.full.wheel-screen #pw.pw-idle .pw-title { align-self: center; overflow: visible; font-size: 19vh; line-height: 1; padding-top: 1vh; }
  body.full.wheel-screen #pw.pw-idle .pw-plain { display: none; }
  body.full.wheel-screen #pw.pw-idle .pw-fun { display: inline-flex; }
  .pw-fun i { display: inline-block; font-style: normal; font-weight: 700; text-transform: uppercase; animation: rosco-wave 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .12s);
    -webkit-text-stroke: .5vh rgba(0, 0, 0, .25); text-shadow: 0 .8vh 0 rgba(0, 0, 0, .28), 0 0 4vh rgba(255, 255, 255, .25); }
  .pw-fun i.sp { width: .35em; animation: none; }
  .pw-fun i:nth-child(6n+1) { color: #ffe14d; } .pw-fun i:nth-child(6n+2) { color: #ff4fa3; } .pw-fun i:nth-child(6n+3) { color: #35c6ff; }
  .pw-fun i:nth-child(6n+4) { color: #3fe08f; } .pw-fun i:nth-child(6n+5) { color: #ff9a3d; } .pw-fun i:nth-child(6n) { color: #b98bff; }
}
@keyframes rosco-wave { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-2.4vh) rotate(-4deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(1vh) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .pw-fun i { animation: none; } }

/* Ranking vertical antes de empezar (pedido de Cote): «Ya comenzamos» más chico y todos los participantes de la sala */
.rv-soon.small { grid-row: auto; gap: .3vh; }
.rv-soon.small b { font-size: min(5.5vh, 10vw); }
.rv-soon.small span { font-size: min(3vh, 5.4vw); }
.rv-people { min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1vh; padding: 1.4vh 2vw; border-radius: 2vh; background: rgba(0, 0, 0, .35); border: .25vh solid rgba(255, 255, 255, .14); }
.rv-people small { text-align: center; font-size: 2vh; font-weight: 900; text-transform: uppercase; color: #ffc400; }
.rv-people ul { margin: 0; padding: 0; list-style: none; columns: 3; column-gap: 2vw; }
.rv-people li { font-size: 1.5vh; font-weight: 800; line-height: 1.45; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; break-inside: avoid; }
.rv-rank:has(.rv-people) { grid-template-rows: auto auto minmax(0, 1fr); }
.rv-people ul { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 1), min-content); column-gap: 1.6vw; }
.rv-people li { min-width: 0; }
.rv-people li { font-size: 1.32vh; line-height: 1.5; }

/* Celular: KRB Kids un poco más grande, debajo del video (pedido de Cote) */
.kids-entry2 { max-width: 340px; gap: 12px; padding: 11px 22px; margin-top: 18px; }
.kids-entry2 .kz-logo { width: 54px; height: 54px; }
.kids-entry2 .kz-name { font-size: 1.75rem; }
.kids-entry2 .kz-entry-text > .kz-tag, .kids-entry2 .kz-entry-text > span { font-size: .9rem; }
/* Nombres completos: los largos se achican, no se cortan */
.rv-people li { text-overflow: clip; }

/* Lista de participantes antes de empezar: el tamaño y las columnas los calcula layoutPeople() para que quepan todos */
.rv-people ul { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 1), min-content); column-gap: 3%; align-content: center; min-height: 0; overflow: hidden; }
.rv-people li { font-size: 1em; line-height: 1.3; white-space: nowrap; overflow: visible; text-overflow: clip; }
.rv-people ul { justify-items: center; justify-content: center; }
.rv-people li { text-align: center; }

/* Concurso de karaoke (modo de la votación, pedido de Cote) */
.vc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.vc-modes button { padding: 14px 8px; font-weight: 800; border-radius: 14px; }
.vc-max { max-width: 260px; margin-bottom: 12px; }
.vc-notes, .vk-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vc-notes i, .vk-notes i { font-style: normal; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #ffc400; color: #1a1a1a; font-weight: 900; font-size: 1.3rem; }
.vk-notes i { width: 7vh; height: 7vh; font-size: 3.6vh; box-shadow: 0 .6vh 0 rgba(0, 0, 0, .3); animation: vk-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i, 0) * .35s); }
.vk-notes.big { margin-top: 2vh; gap: 2vw; }
.vk-notes.big i { width: 13vh; height: 13vh; font-size: 7vh; }
.vk-side { display: grid; place-items: center; }
@keyframes vk-pop { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.vk-score { font-size: 5vh; font-weight: 900; color: #ffc400; }
.vk-score b { font-size: 7vh; }
.vk-second { font-size: 3vh; font-weight: 800; opacity: .95; }
@media (prefers-reduced-motion: reduce) { .vk-notes i { animation: none; } }

/* El Festival: las 5 notas juntas, cada una con el nombre de quien la puso (8 s en pantalla) */
.vk-notes { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: 2vw; }
.vk-notes span { display: grid; justify-items: center; gap: .8vh; min-width: 0; max-width: 16vw; }
.vk-notes span i { animation: none; }
.vk-notes small { font-size: 2.2vh; font-weight: 800; text-align: center; line-height: 1.1; text-transform: uppercase; color: #fff; text-shadow: .2vh .2vh 0 rgba(0, 0, 0, .4); overflow-wrap: anywhere; }
.vk-notes.big small { font-size: 2.8vh; }
.vk-card { position: fixed; left: 50%; bottom: 27vh; transform: translateX(-50%); z-index: 6; padding: 2.4vh 3vw; border-radius: 3vh; background: rgba(14, 12, 30, .92); border: .5vh solid #ffc400; box-shadow: 0 1.5vh 4vh rgba(0, 0, 0, .5); }
.vk-card .vk-notes i { width: 10vh; height: 10vh; font-size: 5.6vh; }
.vc-notes span { display: grid; justify-items: center; gap: 4px; }
.vc-notes small { font-size: .75rem; font-weight: 700; text-align: center; max-width: 90px; }

/* El Rosco: instrucciones antes de empezar */
.pw-howto { display: none; }
@media (orientation: landscape) {
  body.full.wheel-screen #pw.pw-idle .pw-title { display: grid; justify-items: center; gap: 1.6vh; }
  body.full.wheel-screen #pw.pw-idle .pw-howto { display: block; font-size: 3.6vh; font-weight: 700; line-height: 1.2; color: #fff; text-shadow: .3vh .3vh 0 rgba(0, 0, 0, .35); white-space: normal; }
  body.full.wheel-screen #pw.pw-idle.pw-howto-on { grid-template-rows: 38vh minmax(0, 1fr); }
}
.rv-howto { display: block; margin-top: .6vh; font-size: min(2.2vh, 4vw); font-weight: 800; text-align: center; opacity: .95; }
.vk-notes span { max-width: none; }
.vk-notes small { white-space: nowrap; overflow-wrap: normal; }
.vk-notes.big small { font-size: 2.3vh; }
body.full.wheel-screen #pw.pw-idle .pw-howto { font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; letter-spacing: 0; -webkit-text-stroke: 0; font-weight: 800; }
.vk-notes.big { flex-wrap: wrap; gap: 1.6vh 1.6vw; max-width: 100%; }
.vk-notes.big i { width: 10vh; height: 10vh; font-size: 5.4vh; }
.vk-notes.big small { font-size: 2vh; }
#vf .vf-main { min-width: 0; overflow: hidden; }
/* Listas de participantes: un nombre por línea, ordenados (pedido de Cote) */
.vk-list { margin: 1.4vh 0 0; padding: 0; list-style: none; display: grid; gap: .6vh; justify-items: center; }
.vk-list li { font-size: 3.4vh; font-weight: 900; line-height: 1.15; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: .25vh .25vh 0 rgba(0, 0, 0, .35); }
.vk-card .vk-list { margin: 0; }
.vk-card .vk-list li { font-size: 3vh; }

/* Aviso de KRB Kids en las pantallas del local (pedido de Cote) */
#kids-ad { position: fixed; left: 2vw; bottom: 3vh; z-index: 40; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 1.4vh; align-items: center;
  padding: 1.2vh 2.4vh; border-radius: 99px; background: #fff; border: .5vh solid #ffbe0b; box-shadow: 0 1vh 3vh rgba(0, 0, 0, .45);
  transform: translateY(160%); opacity: 0; transition: transform .6s cubic-bezier(.2, 1.4, .4, 1), opacity .4s; pointer-events: none; }
#kids-ad.on { transform: none; opacity: 1; }
#kids-ad .ka-balloons { grid-row: 1 / 3; font-size: 4.6vh; line-height: 1; }
#kids-ad b { font-family: Fredoka, "Baloo 2", system-ui, sans-serif; font-size: 4vh; font-weight: 700; line-height: 1; letter-spacing: .02em; }
#kids-ad b i { font-style: normal; text-shadow: 0 .3vh 0 rgba(0, 0, 0, .15); }
#kids-ad small { font-size: 2vh; font-weight: 800; color: #333; line-height: 1.1; }
@media (prefers-reduced-motion: reduce) { #kids-ad { transition: none; } }

/* «Para leer»: instrucciones y criterios en el panel del animador, al partir cada juego */
.howto { border: 2px solid #ffc400; background: linear-gradient(180deg, rgba(255, 196, 0, .12), rgba(255, 196, 0, .03)); }
.howto summary { cursor: pointer; font-size: 1.15rem; font-weight: 900; color: #ffc400; }
.howto ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.howto li { font-size: 1.12rem; line-height: 1.35; }
.howto b { color: #ffc400; }

/* Menú de abajo: «Sortear juego», los juegos y las demás actividades (pedido de Cote) */
.games-nav .g-draw { width: 100%; margin-bottom: 14px; font-size: 1.3rem; }
.games-nav small { display: block; margin: 10px 0 8px; }
.games-nav .g-played { opacity: .55; }
.games-nav .g-played::after { content: '✔ ya salió'; display: block; font-size: .72rem; font-weight: 700; color: #3fe08f; }
/* Sorteo del siguiente juego en pantalla */
#jd { position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; z-index: 3; }
.jd-card { display: grid; justify-items: center; gap: 2.4vh; padding: 4vh 6vw; border-radius: 4vh; text-align: center; color: #fff; background: rgba(14, 12, 30, .9); border: .7vh solid #ffc400; box-shadow: 0 2vh 6vh rgba(0, 0, 0, .55); }
.jd-card small { font-size: 3.4vh; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #ffc400; }
.jd-roll, .jd-win { font-family: Fredoka, "Baloo 2", system-ui, sans-serif; font-size: 9vh; font-weight: 700; line-height: 1.05; white-space: nowrap; }
.jd-win { animation: jd-pop .6s cubic-bezier(.2, 1.6, .4, 1); color: #ffe14d; text-shadow: 0 .6vh 0 rgba(0, 0, 0, .3); }
@keyframes jd-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.jd-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2vh 1.4vw; max-width: 80vw; }
.jd-list span { padding: 1vh 2vw; border-radius: 99px; font-size: 2.8vh; font-weight: 800; background: rgba(255, 255, 255, .1); border: .3vh solid rgba(255, 255, 255, .2); }
.jd-list span.on { background: #ffc400; color: #1a1a1a; border-color: #ffc400; }
.jd-list span.done { opacity: .45; text-decoration: line-through; }
.jd-list span.bingo { border-style: dashed; }
/* en el GC: abajo, sin tapar la cámara */
#jd.jd-gc { place-items: end center; padding-bottom: 5vh; }
.jd-gc .jd-card { padding: 2.4vh 4vw; gap: 1vh; }
.jd-gc .jd-roll, .jd-gc .jd-win { font-size: 7vh; }
@media (prefers-reduced-motion: reduce) { .jd-win { animation: none; } }
.jd-gc .jd-list span { font-size: 2.2vh; padding: .6vh 1.4vw; }
.games-nav .g-played::after { content: '⏸ fuera del próximo sorteo'; }
/* El Festival: la pregunta de cuántos cantan, destacada al empezar */
.vc-max.ask { max-width: none; padding: 14px 16px; border-radius: 14px; border: 2px solid #ffc400; background: rgba(255, 196, 0, .1); font-size: 1.15rem; font-weight: 900; color: #ffc400; }
.vc-max.ask input { margin-top: 8px; max-width: 160px; font-size: 1.6rem; font-weight: 900; text-align: center; }

/* Juegos de la noche: cuántos se sortean y sus casilleros (pedido de Cote) */
.g-plan { display: grid; gap: 10px; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; border: 2px solid #ffc400; background: rgba(255, 196, 0, .08); }
.g-plan label { font-weight: 900; color: #ffc400; }
.g-plan input { width: 80px; margin-left: 8px; font-size: 1.2rem; font-weight: 900; text-align: center; }
.g-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.g-slots span { padding: 6px 10px; border-radius: 99px; font-size: .9rem; font-weight: 800; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .3); }
.g-slots span.done { background: rgba(63, 224, 143, .18); border: 1px solid #3fe08f; }
.jd-slots span { display: grid; justify-items: center; gap: .3vh; min-width: 14vw; padding: 1vh 1.6vw; border-radius: 2vh; }
.jd-slots span small { font-size: 1.8vh; font-weight: 900; color: #ffc400; text-transform: uppercase; letter-spacing: .04em; }
.jd-slots span.done { opacity: 1; text-decoration: none; background: rgba(63, 224, 143, .18); border-color: #3fe08f; }
.jd-slots span.now { border-color: #ffc400; animation: jd-blink .6s ease-in-out infinite alternate; }
.jd-slots span.on { background: #ffc400; color: #1a1a1a; border-color: #ffc400; }
.jd-slots span.on small { color: #1a1a1a; }
.jd-slots span.todo { opacity: .55; }
@keyframes jd-blink { to { background: rgba(255, 196, 0, .25); } }
.games-nav .g-plan { display: grid; grid-template-columns: 1fr; justify-items: start; }
.games-nav .g-slots { justify-content: flex-start; }

/* Aviso de KRB Kids en el lugar libre de la pantalla: tamaño (--ka-s), en columna para los costados y, si queda arriba,
   entra desde arriba */
#kids-ad { transform-origin: 0 0; transform: translateY(160%) scale(var(--ka-s, 1)); }
#kids-ad.ka-top { transform: translateY(-160%) scale(var(--ka-s, 1)); }
#kids-ad.on, #kids-ad.ka-top.on { transform: scale(var(--ka-s, 1)); }
#kids-ad.ka-tall { grid-template-columns: auto; grid-template-rows: auto auto auto; justify-items: center; text-align: center; row-gap: .6vh; border-radius: 3vh; padding: 1.6vh 2vh; }
#kids-ad.ka-tall .ka-balloons { grid-row: auto; }
#kids-ad.ka-tall small { max-width: 11em; }

/* Juegos de la noche en dos columnas (pedido de Cote): a la izquierda los números de juego, a la derecha cuántos se sortean */
.g-plan { grid-template-columns: 1fr auto; align-items: start; }
.g-plan .g-slots { flex-direction: column; flex-wrap: nowrap; }
.g-plan .g-slots span { border-radius: 10px; }
.g-plan label { display: grid; justify-items: center; gap: 8px; text-align: center; max-width: 170px; }
.g-plan label input { margin: 0; width: 110px; font-size: 2rem; padding: 8px; }
.games-nav [aria-current="true"] { outline: 3px solid #ffc400; outline-offset: 2px; }
/* Portada: el Centro de control más chico */
.home-control.home-control-sm { display: inline-block; justify-self: center; font-size: .95rem; padding: 10px 18px; margin-top: 18px; }
.g-plan .g-slots { align-items: stretch; }
.g-plan .g-slots span { text-align: left; }
.games-nav .g-plan .g-slots { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.games-nav .g-plan .g-slots span { display: block; text-align: left; }
.games-nav .g-plan { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }

/* Sorteo de juegos en dos pasos: juegos que pueden salir (pantalla) y aviso de elección directa (panel) */
.jd-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6vh 2vw; margin: 2vh 0 1vh; }
.jd-opts span { padding: 1.4vh 2.4vw; border-radius: 2vh; font-size: 4.2vh; font-weight: 900; background: rgba(255, 196, 0, .12); border: .4vh solid #ffc400; }
.g-direct { margin: 0; text-align: center; font-weight: 800; color: #ffc400; }
.games-nav.g-ready [data-game] { border-color: #ffc400; }
.games-nav.g-ready .g-draw { background: #ffc400; color: #1a1a1a; }

/* Sorteo de juegos: los juegos que pueden salir en una sola línea, ajustados al ancho de la pantalla (pedido de Cote) */
#jd .jd-opts { flex-wrap: nowrap; width: 100%; max-width: 100%; overflow: hidden; gap: 1.2vw; font-size: 4.2vh; }
#jd .jd-opts span { flex: 0 1 auto; white-space: nowrap; font-size: 1em; padding: .35em .6em; }
#jd .jd-card { max-width: 94vw; box-sizing: border-box; min-width: 0; }
@media (orientation: portrait) { #jd .jd-card { width: 94vw; } }

/* Instrucciones del juego en el celular, 5 segundos al empezar cada juego (pedido de Cote) */
#phone-howto { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 20, .72); animation: ph-in .25s ease-out; }
#phone-howto .ph-card { position: relative; overflow: hidden; width: min(440px, 100%); padding: 20px 20px 26px; border-radius: 18px; background: var(--raised, #221d44); border: 3px solid #ffc400; color: var(--ink, #fff); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
#phone-howto small { display: block; color: #ffc400; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
#phone-howto b { display: block; margin: 4px 0 10px; font-size: 1.5rem; line-height: 1.15; }
#phone-howto ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 1.1rem; line-height: 1.3; }
#phone-howto li b { display: inline; margin: 0; font-size: inherit; color: #ffc400; }
#phone-howto .ph-bar { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: #ffc400; transform-origin: left; animation: ph-bar 3s linear forwards; }
@keyframes ph-bar { to { transform: scaleX(0); } }
@keyframes ph-in { from { opacity: 0; } }

/* Sorteo de juegos: todo centrado y dentro del cuadro, con márgenes que siempre se respetan (pedido de Cote) */
#jd { place-items: center; padding: 3vh 3vw; box-sizing: border-box; }
#jd .jd-card { width: auto; max-width: 92vw; max-height: 92vh; overflow: hidden; }
@media (orientation: portrait) { #jd .jd-card { width: 92vw; } }
#jd .jd-card > * { max-width: 100%; box-sizing: border-box; }
#jd .jd-roll, #jd .jd-win { display: block; max-width: 100%; overflow: hidden; text-align: center; }
#jd .jd-slots { max-width: 100%; justify-content: center; }
#jd .jd-slots span { max-width: 100%; box-sizing: border-box; overflow: hidden; white-space: nowrap; }
@media (orientation: portrait) { #jd .jd-slots span { min-width: 26vw; } #jd .jd-roll, #jd .jd-win { font-size: 7vh; } }
/* Botón Deshacer, debajo de «Sortear juego» */
.games-nav .g-undo { display: block; margin: 8px auto 4px; padding: 8px 18px; font-weight: 800; }
.games-nav .g-undo:disabled { opacity: .4; cursor: default; }

/* El objeto más extraño: el botón de inscripciones solo, grande (sin explicación) */
.vc-signup.vc-obj:not(.on) { border: 0; padding: 0; background: none; }
.vc-signup.vc-obj:not(.on) p { display: none; }
.vc-signup.vc-obj:not(.on) button { width: 100%; padding: 14px; font-size: 1.15rem; font-weight: 800; }

/* Panel del bingo sin tablero (solo con «Selección manual»): «Orden de salida» arriba del recuadro */
#count[style*="none"] + #board + .ord-title { margin-top: 0; }
.ord-title { margin-top: 16px; }

/* Bingo con ganador aceptado: solo queda lo que viene (menú de juegos y sorteo) */
#host-bingo.bingo-done > .panel, #host-bingo.bingo-done > .howto, #host-bingo.bingo-done > .cols, #host-bingo.bingo-done > p.small { display: none; }

/* Centro de control: botoncito «Refrescar página» (para la aplicación instalada) */
.ctl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ctl-reload { padding: 5px 12px; font-size: .85rem; }

/* Votaciones: panel con un solo botón que avanza (pedido de Cote) */
.vc-step { display: grid; gap: 10px; margin: 6px 0 14px; }
.vc-step > button { width: 100%; padding: 16px; font-size: 1.25rem; font-weight: 900; }
.vc-now { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 196, 0, .1); border: 2px solid #ffc400; }
.vc-now small { color: #ffc400; font-weight: 900; font-size: .9rem; }
.vc-now b { font-size: 1.5rem; line-height: 1.15; }
.vc-now span { color: var(--muted, #aaa); font-weight: 700; }
.vc-again { display: block; margin: -4px auto 14px; padding: 6px 14px; font-size: .9rem; }
.vc-mini .vc-row { padding: 8px 12px; }
.vc-mini .vc-row em { font-style: normal; font-weight: 800; color: #3fe08f; white-space: nowrap; }

/* Instrucciones en pantalla: cada una en su línea, sin pasarse para abajo; si no cabe, se achica (fitOneLine) */
#vf .vf-main > small, #vf .vf-main > b, #vf .vf-main > span, #vf .vf-main > i, .pw-howto, .rv-howto { white-space: nowrap; max-width: 100%; box-sizing: border-box; overflow: hidden; }
#vf .vf-main > small, #vf .vf-main > span, #vf .vf-main > i { display: inline-block; }
.pw-howto, .rv-howto { display: block; }
.games-nav .g-plan[hidden] { display: none; }

/* Menú de juegos plegado mientras hay un juego en curso (pedido de Cote) */
.games-nav .g-unfold { display: none; }
.games-nav.g-folded > *:not(.g-unfold) { display: none !important; }
.games-nav.g-folded .g-unfold { display: block; width: 100%; margin: 8px 0; padding: 12px; font-weight: 800; }
/* Bingo: las instrucciones se ocultan con el primer número */
#host-bingo.bingo-started > .howto { display: none; }
/* Votaciones: con el ganador anunciado queda solo el menú; «Nuevo concurso» dentro de «Más opciones» */
#vc-panel[hidden] { display: none; }
.vc-more { margin-top: 18px; }
.vc-more summary { cursor: pointer; color: var(--muted, #aaa); font-size: .9rem; }
.vc-more button { margin-top: 10px; }
/* El Rosco: instrucciones fuera al empezar; con el ganador aceptado queda solo lo que viene */
#rosco-ctl.rosco-started > .howto, #rosco-ctl.rosco-done > .howto { display: none; }
#rosco-ctl.rosco-done > .cols { grid-template-columns: 1fr; }
#rosco-ctl.rosco-done > .cols > .panel:nth-child(2), #rosco-ctl.rosco-done > .panel, #rosco-ctl.rosco-done > .games-nav, #rosco-ctl.rosco-done > p.small,
#rosco-ctl.rosco-done #w-question, #rosco-ctl.rosco-done .w-flow, #rosco-ctl.rosco-done .w-keys, #rosco-ctl.rosco-done .cols > .panel:first-child > .row, #rosco-ctl.rosco-done .cols > .panel:first-child > p.muted { display: none !important; }
/* Sorteo de concursantes: un botón grande; la lista de conectados plegada */
.rf-main { width: 100%; padding: 16px; font-size: 1.2rem; }
.rf-more summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; }
/* Figuras del bingo agrupadas */
.patterns .pat-group { grid-column: 1 / -1; margin: 12px 0 2px; font-size: 1rem; color: #ffc400; }
.patterns .pat-group:first-child { margin-top: 0; }
/* «Refrescar» en todos los paneles */
#ctl-reload-fixed { position: fixed; top: 8px; right: 8px; z-index: 60; padding: 4px 10px; font-size: .8rem; opacity: .85; }

/* Figuras del bingo: las letras en una pestaña plegada */
.patterns .pat-letters { grid-column: 1 / -1; margin-top: 12px; }
.patterns .pat-letters summary { cursor: pointer; font-weight: 800; color: #ffc400; padding: 8px 0; }
.patterns .pat-letters .patterns { margin-top: 8px; }
/* Resultados: el lugar en el círculo (3.º) en vez del número del participante */
.v-no { white-space: nowrap; }

/* Enlace al Centro de control abajo de cada panel */
#ctl-home-link { text-align: center; margin: 24px auto 40px; }
#ctl-reload-fixed { position: absolute; }

/* KRB Kids: juegos con movimiento (Salto, Carrera, Fruta) */
.kz-canvas { display: block; width: min(100%, 720px); aspect-ratio: 8 / 5; border-radius: 22px; box-shadow: 0 6px 0 rgba(74, 44, 138, .25); touch-action: none; background: #c9f2ff; }
.kz-canvas.kz-tall { width: min(100%, 420px); aspect-ratio: 600 / 760; }
.kz-pad3 { grid-template-columns: 1fr 1.3fr 1fr; width: min(100%, 420px); }
.kz-pad2 { grid-template-columns: 1fr 1fr; width: min(100%, 360px); }
.kz-pad1 { grid-template-columns: 1fr; width: min(100%, 300px); }
.kz-pad .kz-jump { background: #ffc400; color: #4a2c8a; font-size: 2.4rem; }
.kz-canvas.kz-tall { width: auto; height: min(56vh, 532px); max-width: 100%; }

/* KRB Kids: Laberinto (cuadrado) y Topos (hoyos) */
.kz-canvas.kz-square { width: auto; height: min(52vh, 560px); max-width: 100%; aspect-ratio: 1; background: #fff3c4; }
.kz-holes { display: grid; grid-template-columns: repeat(var(--c), 1fr); gap: 14px; width: min(100%, 420px); }
.kz-hole { position: relative; aspect-ratio: 1; border: 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 70%, #5a3d1e 0 45%, #2bb24c 46%); overflow: hidden; box-shadow: 0 5px 0 rgba(74, 44, 138, .25); touch-action: manipulation; padding: 0; }
.kz-hole span { position: absolute; left: 0; right: 0; bottom: -70%; font-size: clamp(2.6rem, 14vw, 4.4rem); line-height: 1; transition: bottom .18s ease-out; }
.kz-hole.up span { bottom: 18%; }
.kz-hole.hit { background: radial-gradient(ellipse at 50% 70%, #ffc400 0 45%, #2bb24c 46%); }
/* KRB Kids: fondos de los niveles 6 a 8 (Carrera tiene 8 niveles) */
body.kids[data-kz-level="6"] { background: linear-gradient(160deg, #ffadad 0%, #e63946 100%) fixed; }
body.kids[data-kz-level="7"] { background: linear-gradient(160deg, #a0c4ff 0%, #1d3557 100%) fixed; }
body.kids[data-kz-level="8"] { background: linear-gradient(160deg, #fdffb6 0%, #ff8c1a 100%) fixed; }

/* Menú de juegos: pestañas «Sortear juegos» / «Elegir libremente» (pedido de Cote) */
.games-nav .g-tabs { display: flex; gap: 0; margin: 4px 0 12px; border-radius: 14px; overflow: hidden; border: 2px solid #5a54a0; }
.games-nav .g-tabs button { flex: 1 1 0; margin: 0; border: 0; border-radius: 0; padding: 14px 6px; font-weight: 900; font-size: 1.05rem; background: var(--surface, #1d1838); color: var(--muted, #b9b4dc); }
.games-nav .g-tabs button.on { background: #ffc400; color: #1a1a1a; }
.games-nav .g-free-title { display: none; margin: 0 0 6px; text-align: center; font-weight: 900; color: #ffc400; font-size: 1.1rem; }
.games-nav.g-free .g-free-title { display: block; }
.games-nav.g-free .g-plan, .games-nav.g-free .g-draw, .games-nav.g-free .g-undo, .games-nav.g-free .g-direct { display: none !important; }
.games-nav.g-free [data-game] { min-height: 110px; font-size: 1.15rem; border: 2px solid #ffc400; }
.games-nav.g-free [data-game] .g-played-note, .games-nav.g-free [data-game].g-played { opacity: 1; }
.games-nav.g-free .g-played::after { content: none; }

/* Pestañas del menú de juegos: sin el alto de los botones de juego (regla .act-nav > div > *) */
.games-nav .g-tabs button { display: block; min-height: 0; }

/* Centro de control: botón grande para ir a la sala en juego o crear una */
.home-create.ctl-go { margin: 6px 0 14px; padding: 16px 14px; font-size: 1.2rem; }
.home-create.ctl-go span { font-size: 1.6rem; }

/* ---------- Elegir el juego: pestañas «Manual» / «Por sorteo» / «Por votación» (pedido de Cote, 21 nov) ---------- */
.games-nav .g-tabs button { line-height: 1.2; }
.games-nav .g-vote { display: none; }
.games-nav.g-vmode .g-vote { display: block; margin-bottom: 12px; }
.games-nav.g-vmode [data-game-draw], .games-nav.g-vmode [data-game-undo], .games-nav.g-vmode .g-plan, .games-nav.g-vmode .g-direct, .games-nav.g-vmode .g-free-title { display: none !important; }
.g-vote .gvp-help { margin: 0 0 10px; text-align: center; font-weight: 700; color: var(--muted, #b9b4dc); line-height: 1.35; }
.g-vote .gvp-now { margin: 0 0 10px; text-align: center; font-weight: 900; font-size: 1.1rem; color: #ffc400; }
.g-vote .gvp-now b { font-variant-numeric: tabular-nums; }
.g-vote .gvp-win { margin: 0 0 10px; text-align: center; font-weight: 900; font-size: 1.35rem; color: #ffc400; }
.g-vote .gvp-rows, .pgvote .pgv-rows { display: grid; gap: 6px; margin: 0 0 12px; }
.g-vote .gvp-row, .pgvote .pgv-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; font-weight: 800;
  background: linear-gradient(90deg, rgba(255, 196, 0, .32) var(--p), rgba(255, 255, 255, .06) var(--p)); /* navegadores antiguos */
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent) var(--p), rgba(255, 255, 255, .06) var(--p)); border: 1px solid rgba(255, 255, 255, .14); }
.g-vote .gvp-row b, .pgvote .pgv-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-vote .gvp-row.dim, .pgvote .pgv-row.dim { opacity: .45; }
.g-vote .gvp-row.win, .g-vote .gvp-row.sel, .pgvote .pgv-row.win, .pgvote .pgv-row.sel { border-color: #ffc400; }
.g-vote .g-draw { width: 100%; margin-bottom: 6px; }
.g-vote span { font-size: inherit; line-height: inherit; pointer-events: auto; } /* sin el tamaño de los íconos del menú */
.g-vote .gvp-row span { overflow-wrap: anywhere; }

/* Celular: los juegos para votar */
.pgvote .pgv-opts { grid-template-columns: 1fr 1fr; }
.pgvote .pgv-opts button { border-left: 8px solid var(--c); font-size: 1.2rem; padding: 18px 8px; }
.pgvote .pvote-win { margin: 12px 0; }

/* Tablero y GC: un gráfico en círculo por juego, con su porcentaje y sus votos */
#gv { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; padding: 3vh 3vw; box-sizing: border-box; z-index: 3; }
#gv .gv-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; grid-gap: 3vw; gap: 3vw; max-width: 94vw; padding: 3.5vh 3.5vw; box-sizing: border-box; overflow: hidden;
  border-radius: 4vh; text-align: center; color: #fff; background: rgba(14, 12, 30, .92); border: .7vh solid #ffc400; box-shadow: 0 2vh 6vh rgba(0, 0, 0, .55); }
#gv .gv-main { display: grid; justify-items: center; grid-gap: 1.8vh; gap: 1.8vh; min-width: 0; }
#gv .gv-main > * { max-width: 100%; box-sizing: border-box; }
#gv .gv-top { font-size: 3.4vh; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #ffc400; }
#gv .gv-big { display: block; font-size: 7vh; font-weight: 900; line-height: 1.1; white-space: nowrap; overflow: hidden; }
#gv .gv-line { margin: 0; font-size: 3.6vh; font-weight: 800; white-space: nowrap; overflow: hidden; }
#gv .gv-line b { color: #ffc400; font-variant-numeric: tabular-nums; }
#gv .gv-rings { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); justify-content: center; justify-items: center; grid-gap: 3vw; gap: 3vw; width: 100%; margin-top: 1vh; }
#gv .gv-opt { display: grid; justify-items: center; grid-gap: 1.2vh; gap: 1.2vh; min-width: 0; transition: opacity .4s; }
#gv .gv-ring { position: relative; width: 14vw; width: min(25vh, 14vw); }
#gv .gv-ring svg { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
#gv .gv-track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 12; }
#gv .gv-arc { fill: none; stroke: var(--c); stroke-width: 12; transition: stroke-dasharray .6s ease; }
#gv .gv-in { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#gv .gv-in b { font-size: 3.4vw; font-size: min(6vh, 3.4vw); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
#gv .gv-in small { margin-top: .6vh; font-size: 1.4vw; font-size: min(2.4vh, 1.4vw); font-weight: 800; color: #d8d3ff; }
#gv .gv-name { display: block; max-width: 16vw; font-size: 2.8vh; font-weight: 900; line-height: 1.15; white-space: normal; text-align: center; }
#gv .gv-rings.n2 .gv-ring { width: 20vw; width: min(30vh, 20vw); }
#gv .gv-rings.n2 .gv-name { max-width: 22vw; }
#gv .gv-opt.dim { opacity: .35; }
#gv .gv-opt.win .gv-ring, #gv .gv-opt.sel .gv-ring { filter: drop-shadow(0 0 1.6vh var(--c)); }
#gv .gv-opt.win .gv-name, #gv .gv-opt.sel .gv-name { color: #ffc400; }
#gv .gv-total { font-size: 2.6vh; font-weight: 800; color: #d8d3ff; min-height: 1em; }
#gv .gv-qr { display: grid; justify-items: center; gap: 1vh; width: 20vh; padding: 1.4vh; border-radius: 2.2vh; background: #fff; }
#gv .gv-qr .qr { display: block; width: 100%; height: auto; border: 0; padding: 0; border-radius: 0; }
#gv .gv-qr b { font-size: 1.9vh; font-weight: 900; line-height: 1.15; text-transform: uppercase; color: #c4175e; }
/* GC de OBS: cuadro abajo al centro, más chico y sin tapar el QR de la esquina */
#gv.gv-gc { place-items: end center; padding: 0 0 4vh; }
#gv.gv-gc .gv-card { grid-template-columns: 1fr; max-width: 72vw; padding: 2vh 2.6vw; gap: 1vh; }
#gv.gv-gc .gv-main { gap: 1vh; }
#gv.gv-gc .gv-top { font-size: 2.4vh; }
#gv.gv-gc .gv-big { font-size: 4.6vh; }
#gv.gv-gc .gv-line { font-size: 2.6vh; }
#gv.gv-gc .gv-ring { width: 12vw; width: min(15vh, 12vw); }
#gv.gv-gc .gv-name { max-width: 14vw; font-size: 2vh; }
#gv.gv-gc .gv-in b { font-size: 2.6vw; font-size: min(3.8vh, 2.6vw); }
#gv.gv-gc .gv-in small { font-size: 1.2vw; font-size: min(1.7vh, 1.2vw); }
#gv.gv-gc .gv-rings.n2 .gv-ring { width: 14vw; width: min(17vh, 14vw); }
#gv.gv-gc .gv-total { font-size: 2vh; }
/* Pantalla de pie: los círculos de a dos y el QR abajo */
@media (orientation: portrait) {
  #gv { padding: 2.5vh 3vw 8vh; } /* abajo queda libre la franja de los logos del local */
  #gv .gv-card { grid-template-columns: 1fr; width: 92vw; max-height: none; grid-gap: 1.6vh; gap: 1.6vh; padding: 2.4vh 4vw; }
  #gv .gv-main { grid-gap: 1.2vh; gap: 1.2vh; }
  #gv .gv-top { font-size: 2.4vh; }
  #gv .gv-big { font-size: 4.4vh; }
  #gv .gv-line { font-size: 2.6vh; }
  #gv .gv-rings { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 2.2vh 4vw; gap: 2.2vh 4vw; justify-items: center; }
  #gv .gv-ring, #gv .gv-rings.n2 .gv-ring { width: 28vw; width: min(28vw, 16vh); }
  #gv .gv-name, #gv .gv-rings.n2 .gv-name { width: auto; max-width: 42vw; font-size: 2.1vh; }
  #gv .gv-in b { font-size: 5.4vw; font-size: min(5.4vw, 3.4vh); }
  #gv .gv-in small { font-size: 2.4vw; font-size: min(2.4vw, 1.5vh); }
  #gv .gv-total { font-size: 2vh; }
  #gv .gv-qr { width: 22vw; justify-self: center; }
  #gv .gv-qr b { font-size: 1.7vw; }
  #gv.gv-gc .gv-card { max-width: 94vw; }
}

/* Menú de juegos con tres botones (pedido de Cote, 21 nov): «Manual», «Por sorteo» y «Por votación», y nada más;
   al tocar uno se despliega lo suyo. En el lobby, los tres botones grandes */
.games-nav > .g-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.games-nav > .g-modes > button { min-height: 96px; font-size: 1.1rem; font-weight: 900; border: 2px solid #5a54a0; }
.games-nav > .g-modes > button.on { background: #ffc400; color: #1a1a1a; border-color: #ffc400; }
.games-nav.g-lobby { margin-top: 28px; }
.games-nav.g-lobby > .g-modes { gap: 16px; }
.games-nav.g-lobby > .g-modes > button { min-height: 150px; font-size: 1.5rem; border-radius: 22px; }
.games-nav.g-lobby > .g-modes > button span { font-size: 2.8rem; }
@media (max-width: 700px) {
  .games-nav.g-lobby > .g-modes { grid-template-columns: 1fr; }
  .games-nav.g-lobby > .g-modes > button { min-height: 116px; }
}
.games-nav .g-body { display: none; }
.games-nav.g-open .g-body { display: block; }
.games-nav .g-games { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.games-nav.g-free .g-games, .games-nav.g-smode.g-ready .g-games { display: grid; }
.games-nav .g-games > * { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 84px; padding: 12px 8px; border-radius: 16px; font-size: 1.05rem; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.2; margin: 0; width: auto; }
.games-nav:not(.g-smode) .g-plan, .games-nav:not(.g-smode) [data-game-draw], .games-nav:not(.g-smode) [data-game-undo], .games-nav:not(.g-smode) .g-direct { display: none !important; }

/* Presentación antes de votar (pedido de Cote, 21 nov): reglas para el público y cada juego con un dibujo de cómo funciona */
#gv .gv-intro .gv-main { min-width: 60vw; }
#gv .gv-introbody { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: center; grid-gap: 3vw; gap: 3vw; width: 100%; text-align: left; }
#gv .gv-art svg { display: block; width: 100%; height: auto; }
#gv .gv-lines { margin: 0; padding: 0 0 0 1.1em; font-size: 3.4vh; font-weight: 700; line-height: 1.3; }
#gv .gv-lines li { margin: 0 0 1.4vh; }
#gv .gv-dots { margin-top: .6vh; }
#gv .gv-dots i { display: inline-block; width: 1.5vh; height: 1.5vh; margin: 0 .5vh; border-radius: 50%; background: rgba(255, 255, 255, .3); }
#gv .gv-dots i.on { background: #ffc400; }
#gv.gv-gc .gv-intro .gv-main { min-width: 0; }
#gv.gv-gc .gv-introbody { grid-template-columns: 26vh minmax(0, 1fr); }
#gv.gv-gc .gv-lines { font-size: 2.3vh; }
@media (orientation: portrait) {
  #gv .gv-intro .gv-main { min-width: 0; }
  #gv .gv-introbody { grid-template-columns: 1fr; justify-items: center; }
  #gv .gv-art { width: 66vw; }
  #gv .gv-lines { font-size: 2.4vh; }
}
@keyframes giPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes giRing { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes giFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes giUp { 0% { transform: translateY(12px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-16px); opacity: 0; } }
@keyframes giBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes giBar { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
@keyframes giGrow { from { stroke-dasharray: 0 252; } to { stroke-dasharray: 151 252; } }
.gi .gi-pulse, .gi .gi-ring, .gi .gi-up, .gi .gi-bounce, .gi .gi-bar { transform-box: fill-box; transform-origin: center; }
.gi .gi-pulse { animation: giPulse 1.2s ease-in-out infinite; }
.gi .gi-ring { animation: giRing 1.4s ease-out infinite; }
.gi .gi-mark { opacity: 0; animation: giFade .35s ease forwards; }
.gi .gi-up { animation: giUp 2.2s ease-in infinite; }
.gi .gi-bounce { animation: giBounce 1.4s ease-in-out infinite; }
.gi .gi-bar { transform-origin: bottom; animation: giBar 1.4s ease-out infinite alternate; }
.gi .gi-grow { animation: giGrow 1.6s ease-out forwards; }
.pgvote .pgv-step { margin: 8px 0 4px; text-align: center; font-weight: 700; color: #ffd76a; }
.pgvote .pgv-intro { text-align: center; }
.pgvote .pgv-intro > b { display: block; font-size: 1.5rem; margin: 4px 0 8px; }
.pgvote .pgv-intro .gi svg { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.pgvote .pgv-intro ul { text-align: left; margin: 10px 0; padding-left: 20px; font-size: 1.05rem; line-height: 1.35; }
.g-vote .gvp-help { font-size: .95rem; }

/* Recuadro «📣 Para anunciar» (pedido de Cote, 21 nov): ganador, premio o información, grande en el panel del animador */
.ann { text-align: center; border: 3px solid #ffc400; background: rgba(255, 196, 0, .08); }
.ann small { display: block; font-weight: 900; color: #ffc400; letter-spacing: .08em; text-transform: uppercase; }
.ann .ann-t { display: block; margin-top: 6px; font-size: 1.25rem; font-weight: 900; }
.ann .ann-n { display: block; margin: 8px 0; font-size: 2.2rem; font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.ann .ann-l { display: block; margin-top: 4px; font-size: 1.1rem; font-weight: 700; color: var(--muted, #b9b4dc); }
.w-accepted.w-ann { padding: 0; background: none; }
.w-accepted .ann { margin: 0; }
/* Celular: nombre de la actividad y lo que viene (sorteos, QR, show, espera entre juegos) */
.pact .pact-list { margin: 12px 0; }
.pact .pact-list small { display: block; text-align: center; font-weight: 800; color: #ffd76a; margin-bottom: 6px; }
.pact .pact-list p { margin: 0 0 6px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: 1.15rem; font-weight: 800; }
.pact .pact-list em { font-style: normal; color: #ffc400; margin-right: 8px; }
.pact .pact-next { margin: 12px 0 4px; text-align: center; font-weight: 700; color: #d8d3ff; }
/* Ranking de la Trivia en los celulares (pedido de Cote, 21 nov): sale cuando el animador lo despliega */
.pcrowd-rank { margin: 12px 0; padding: 12px; border-radius: 14px; border: 2px solid #ffc400; background: rgba(255, 196, 0, .1); }
.pcrowd-rank small { display: block; text-align: center; font-weight: 900; color: #ffc400; letter-spacing: .04em; }
.pcrowd-rank > b { display: block; text-align: center; font-size: 1.15rem; margin: 2px 0 8px; }
.pcrowd-rank > div { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px; font-weight: 800; }
.pcrowd-rank > div em { font-style: normal; color: #ffc400; min-width: 2.4em; }
.pcrowd-rank > div span { flex: 1; overflow-wrap: anywhere; }
.pcrowd-rank > div.me, .pcrowd-rank > div.you { background: #ffc400; color: #1a1a1a; }
.pcrowd-rank > div.me em, .pcrowd-rank > div.you em { color: #1a1a1a; }
/* Ranking obligatorio cada 2 rondas en El Rosco (pedido de Cote, 21 nov) */
.w-rankbtn.due { background: #ffc400; color: #1a1a1a; border-color: #ffc400; font-weight: 900; animation: giPulse 1.2s ease-in-out infinite; }
/* Confirmación de quien sale sorteado (pedido de Cote, 21 nov) */
.pact .pact-yesno { display: grid; gap: 10px; margin: 8px 0 12px; }
.pact .pact-yesno button { width: 100%; margin: 0; }
.pact .pact-list p i { float: right; font-style: normal; }
.rf-st { display: block; font-weight: 700; color: var(--muted, #b9b4dc); }
.rf-st.ok { color: #5fe0a0; }
.rf-dec { margin: 8px 0 0; text-align: center; font-weight: 700; color: var(--muted, #b9b4dc); }
/* El Rosco: «Es el turno de» y el nombre grande arriba a la derecha (pedido de Cote, 21 nov) */
.w-topright { display: flex; align-items: center; gap: 12px; }
.w-who { padding: 8px 14px; border-radius: 14px; border: 3px solid #4fd1ff; background: rgba(79, 209, 255, .12); text-align: right; max-width: 360px; }
.w-who small { display: block; font-size: .85rem; font-weight: 700; color: #a9d8ea; }
.w-who b { display: block; font-size: 2rem; line-height: 1.1; font-weight: 900; color: #4fd1ff; overflow-wrap: anywhere; }
.w-who.flash { animation: whoFlash 1.8s ease-out 1; }
.w-who.flash b { animation: whoFlashTxt 1.8s ease-out 1; }
@keyframes whoFlash { 0% { background: #4fd1ff; transform: scale(1.08); } 100% { background: rgba(79, 209, 255, .12); transform: scale(1); } }
@keyframes whoFlashTxt { 0% { color: #0d2633; } 100% { color: #4fd1ff; } }
/* Ranking de la Trivia desplegado: también grande en el panel (pedido de Cote, 21 nov) */
.rank-ann .rank-ann-list { margin: 10px 0 4px; padding: 0; list-style: none; text-align: left; }
.rank-ann .rank-ann-list li { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); font-size: 1.25rem; font-weight: 800; }
.rank-ann .rank-ann-list li.top { font-size: 1.5rem; background: rgba(255, 196, 0, .18); }
.rank-ann .rank-ann-list em { font-style: normal; color: #ffc400; min-width: 2.4em; }
.rank-ann .rank-ann-list b { flex: 1; overflow-wrap: anywhere; }
.rank-ann .rank-ann-list i { font-style: normal; color: #ffc400; white-space: nowrap; }

/* Lista «Ya salieron» del celular: el ✅/⏳ queda dentro de la fila aunque el nombre sea largo (revisión 21 nov) */
.pact .pact-list p { display: flex; align-items: center; gap: 8px; }
.pact .pact-list p span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pact .pact-list p i { float: none; flex: none; }
/* «📣 Para anunciar» del ganador del bingo: fuera de las columnas, que se ocultan al confirmar el ganador (revisión 21 nov) */
#host-bingo > #win-ann:not(:empty) { margin: 14px 0; }

/* Instrucciones en el celular (pedido de Cote, 21 nov): 2 segundos, o se cierran al tocar cualquier parte de la pantalla */
#phone-howto { cursor: pointer; }
#phone-howto .ph-bar { animation-duration: 2s; }

/* Pantalla vertical de Kennedy (pedido de Cote, 21 nov): el QR solo con los botones del karaoke de la sala light; con los
   demás no hay QR y el recuadro ocupa ese espacio */
#lv.lv-noqr .lv-qr { display: none; }
#lv.lv-noqr { grid-template-rows: auto minmax(0, 1fr); }
@media (orientation: landscape) { #lv.lv-noqr { grid-template-columns: minmax(0, 1fr); } }

/* Sala light: switch «Video cartelera» (pedido de Cote, 21 nov) debajo de los botones del GC */
.lp-switch { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line, #3a3360); background: rgba(255, 255, 255, .04); cursor: pointer; user-select: none; }
.lp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lp-switch i { flex: none; position: relative; width: 58px; height: 32px; border-radius: 99px; background: #5b557a; transition: background .2s; }
.lp-switch i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.lp-switch.on { border-color: #ffc400; background: rgba(255, 196, 0, .1); }
.lp-switch.on i { background: #1fa45a; }
.lp-switch.on i::after { transform: translateX(26px); }
.lp-switch span { display: grid; gap: 2px; }
.lp-switch b { font-size: 1.1rem; }
.lp-switch small { opacity: .8; }
/* El nombre del local entero en una línea («Mercado Kennedy»): la columna no se estira con el texto, se achica la letra */
@media (orientation: portrait) { #lv { grid-template-columns: minmax(0, 1fr); } }
.lv-top { min-width: 0; }
.lv-top b { max-width: 100%; overflow: hidden; }

/* Celular de la sala light (pedido de Cote, 21 nov): siempre al final, dónde ver las transmisiones */
.lm-web { margin: 18px 4px 8px; text-align: center; font-size: 1.05rem; font-weight: 700; line-height: 1.35; opacity: .92; }
.lm-web a { color: #ffc400; text-decoration: none; }
.lm-web a b { font-weight: 900; }

/* GC del karaoke (pedido de Cote, 21 nov): el QR va a la izquierda, sobre el GC, más chico y en un recuadro cuadrado;
   el texto no pasa del ancho del QR: «Escanea el código QR» y, abajo, «con tu celular» */
.kg-qr { right: auto; left: 3vw; bottom: 26.5vh; box-sizing: border-box; width: 19vh; height: 19vh; align-content: center; gap: .5vh; padding: 0; border-radius: 2vh; }
.kg-qr .qr { width: 13vh; height: 13vh; }
.kg-qr b { display: grid; justify-items: center; width: 13vh; font-size: 1.2vh; line-height: 1.25; letter-spacing: 0; text-align: center; }
.kg-qr b span { display: block; white-space: nowrap; }
.next-up.kg-up { left: 50%; }

/* Sala light: GC personalizable (pedido de Cote, 21 nov): espacio para escribir y botón, debajo de los botones del GC */
.lp-custom { display: flex; gap: 10px; margin-top: 12px; }
.lp-custom input { flex: 1; min-width: 0; font-size: 1.1rem; padding: 12px 14px; }
.lp-custom button { flex: none; font-weight: 800; font-size: 1.05rem; padding: 12px 16px; white-space: nowrap; }
.lp-custom button.on { background: #ffc400; color: #1a1a1a; }
@media (max-width: 560px) { .lp-custom { flex-direction: column; } }
.lg-custom .lg-main .lg-line { font-size: 4vh; }

/* Nombres largos («El Bingo/El Festival de Mercado Kennedy»): nunca «…»; la letra se achica hasta que quepan */
.fb-title, .gc-title, .vf-top b { text-overflow: clip; }
#jd .jd-card { grid-template-columns: minmax(0, 1fr); }

/* Flyers del Instagram del local en la pantalla vertical (pedido de Cote, 21 nov): dentro del mismo recuadro, un poco más chicos */
.lv-flyer { display: grid; place-items: center; min-height: 0; }
.lv-flyer img { display: block; max-width: 90%; border-radius: 2vh; border: .5vh solid var(--lv-gold); box-shadow: 0 1vh 3vh rgba(0, 0, 0, .4); }

/* GC Master (pedido de Cote, 21 nov): centro de control de transmisión. Una página por local con 3 pantallas (video en vivo
   o GC, tablero y vertical) y botones tipo TV; y una página con los 3 locales juntos */
body.gm-on main { max-width: none; padding: 10px 14px 40px; }
.gm-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.gm-nav > b { font-size: 1.3rem; margin: 0 10px 0 6px; }
.gm-tab { padding: 8px 14px; border-radius: 10px; border: 2px solid #3a3360; background: #1c1836; color: #fff; text-decoration: none; font-weight: 800; }
.gm-tab.on { background: #ffc400; border-color: #ffc400; color: #1a1a1a; }
.gm-grid { display: grid; gap: 14px; }
.gm-all .gm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gm-venue { --gm: #1487cf; min-width: 0; padding: 12px; border-radius: 16px; background: #100e22; border: 3px solid var(--gm); }
.gm-venue.th-frida { --gm: #c4175e; } .gm-venue.th-kennedy { --gm: #1487cf; } .gm-venue.th-tobalaba { --gm: #c81e1e; }
.gm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.gm-head > b { font-size: 1.4rem; }
.gm-live { padding: 3px 10px; border-radius: 99px; background: #2a2744; font-size: .85rem; font-weight: 800; color: #b9b4d8; }
.gm-live.on { background: #d21f2b; color: #fff; }
.gm-sala { font-size: .85rem; opacity: .8; }
/* Las tres pantallas a la misma altura: dos horizontales (16:9) y la vertical (9:16) */
.gm-screens { display: grid; grid-template-columns: minmax(0, 256fr) minmax(0, 256fr) minmax(0, 81fr); gap: 10px; align-items: start; }
.gm-scr { min-width: 0; display: grid; gap: 6px; }
.gm-scr > small { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; color: #ffd76a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-box { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; border: 2px solid #2c2850; }
.gm-tall .gm-box { aspect-ratio: 9 / 16; }
.gm-box.gm-check { background: repeating-conic-gradient(#1b1930 0 25%, #222038 0 50%) 0 0 / 24px 24px; }
.gm-box iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; pointer-events: none; }
.gm-tall .gm-box iframe { width: 720px; height: 1280px; }
.gm-box iframe[data-full] { width: 100%; height: 100%; transform: none; pointer-events: auto; }
.gm-p1 { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-p1 button { padding: 5px 10px; font-size: .82rem; font-weight: 800; border-radius: 8px; }
.gm-p1 button.on { background: #ffc400; color: #1a1a1a; border-color: #ffc400; }
/* Botones tipo TV: teclas cuadradas con su luz; la que está al aire queda encendida en rojo */
.gm-keys { display: grid; gap: 10px; margin-top: 12px; }
.gm-row > small { display: block; margin-bottom: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; color: #b9b4d8; }
.gm-keyrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.gm-key { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 74px; padding: 10px 6px 8px; border-radius: 10px; border: 2px solid #3d3966; background: linear-gradient(#2c2850, #1b1836); color: #fff; box-shadow: 0 4px 0 #0a0818; cursor: pointer; }
.gm-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #0a0818; }
.gm-key i { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #4a4670; }
.gm-key span { font-size: 1.5rem; line-height: 1; }
.gm-key b { font-size: .8rem; line-height: 1.1; text-align: center; }
.gm-key.on { background: linear-gradient(#e0252f, #a3121b); border-color: #ff6b73; box-shadow: 0 4px 0 #5c0a10, 0 0 16px rgba(224, 37, 47, .6); }
.gm-key.on i { background: #fff; box-shadow: 0 0 8px #fff; }
.gm-custom { display: flex; gap: 8px; margin-top: 8px; }
.gm-custom input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 1rem; }
.gm-key.gm-wide { min-height: 0; padding: 10px 14px; flex: none; }
.gm-all .gm-head > b { font-size: 1.15rem; }
.gm-all .gm-keyrow { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.gm-all .gm-key { min-height: 60px; padding: 8px 4px 6px; }
.gm-all .gm-key span { font-size: 1.2rem; } .gm-all .gm-key b { font-size: .7rem; }
.gm-all .gm-custom { flex-direction: column; }
@media (max-width: 1100px) { .gm-all .gm-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .gm-screens { grid-template-columns: minmax(0, 1fr); } .gm-tall .gm-box { max-width: 300px; } }
/* GC Master, los 3 locales juntos: la pantalla 1 arriba a todo el ancho; abajo el tablero y la vertical a la misma altura */
.gm-all .gm-screens { grid-template-columns: minmax(0, 256fr) minmax(0, 81fr); }
.gm-all .gm-screens > .gm-scr:first-child { grid-column: 1 / -1; }
.gm-scr > small { white-space: normal; overflow: visible; text-overflow: clip; }
/* GC Master, orden del dibujo de Cote (22 nov): a la izquierda la 1 (vivo o GC con un fondo) y debajo la 2 (tablero);
   a la derecha la 3 (pantalla vertical) a todo el alto. Todo cabe en el alto de la ventana */
.gm-screens, .gm-all .gm-screens { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); max-width: max(520px, calc((100vh - 330px) * 1.38)); margin: 0 auto; }
.gm-all .gm-screens { max-width: none; }
.gm-all .gm-screens > .gm-scr:first-child { grid-column: auto; }
.gm-left { min-width: 0; display: grid; gap: 10px; align-content: start; }
.gm-box.gm-bg { background: radial-gradient(circle at 50% 35%, var(--gm), #0b0a18 120%); }
@media (max-width: 700px) { .gm-screens, .gm-all .gm-screens { grid-template-columns: minmax(0, 1fr); } }
/* GC Master: botones cuadrados en filas de 5, debajo de las pantallas y a todo su ancho (dibujo de Cote, 22 nov) */
.gm-screens, .gm-keys { max-width: max(520px, calc((100vh - 500px) * 1.38)); margin-left: auto; margin-right: auto; }
.gm-all .gm-screens, .gm-all .gm-keys { max-width: none; }
.gm-keyrow, .gm-all .gm-keyrow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gm-key, .gm-all .gm-key { min-height: 0; height: 96px; padding: 8px 6px; }
.gm-all .gm-key { height: 78px; }
.gm-key span { font-size: 1.9rem; } .gm-key b { font-size: .9rem; }
.gm-custom { display: block; margin-top: 0; }
.gm-custom input { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; font-size: 1rem; }
.gm-row + .gm-row { margin-top: 4px; }
/* GC Master: las 3 pantallas pegadas, formando un solo bloque (pedido de Cote, 22 nov): sin separación entre ellas; la
   vertical mide justo el alto de las dos horizontales; el nombre de cada pantalla va dentro, en su esquina */
.gm-screens, .gm-all .gm-screens { grid-template-columns: minmax(0, 1fr) minmax(0, .6328fr); gap: 0; align-items: start; }
.gm-screens, .gm-keys { max-width: max(520px, calc((100vh - 470px) * 1.45)); }
.gm-all .gm-screens, .gm-all .gm-keys { max-width: none; }
.gm-left { gap: 0; }
.gm-scr { position: relative; display: block; }
.gm-scr > small { position: absolute; left: 0; top: 0; z-index: 2; padding: 3px 8px; border-radius: 0 0 8px 0; background: rgba(0, 0, 0, .72); color: #ffd76a; font-size: .72rem; white-space: nowrap; pointer-events: none; }
.gm-box { border-radius: 0; border: 1px solid #000; }
.gm-keys { margin-top: 14px; }
/* GC Master en el teléfono (pedido de Cote, 22 nov): de pie y todo en una sola plana, sin bajar la página: arriba los
   locales, el bloque de las 3 pantallas pegadas, los botones en 2 filas de 5 y el texto del GC personalizable */
@media (max-width: 700px) {
  body.gm-on main { padding: 6px 6px 8px; }
  .gm-nav { flex-wrap: nowrap; gap: 4px; margin-bottom: 6px; }
  .gm-nav > a:first-child { flex: none; width: 30px; overflow: hidden; white-space: nowrap; text-decoration: none; font-size: 1.2rem; line-height: 1.6; }
  .gm-nav > b { display: none; }
  .gm-tab { flex: 1; min-width: 0; padding: 7px 2px; border-width: 1px; border-radius: 8px; font-size: .72rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .gm-venue { padding: 6px; border-width: 2px; border-radius: 12px; }
  .gm-head { flex-wrap: nowrap; gap: 6px; margin-bottom: 6px; }
  .gm-head > b, .gm-all .gm-head > b { font-size: 1rem; white-space: nowrap; }
  .gm-live { flex: none; padding: 2px 8px; font-size: .68rem; white-space: nowrap; }
  .gm-sala { font-size: .66rem; min-width: 0; white-space: nowrap; overflow: hidden; }
  .gm-screens, .gm-all .gm-screens { grid-template-columns: minmax(0, 1fr) minmax(0, .6328fr); }
  .gm-one .gm-screens, .gm-one .gm-keys { max-width: min(100%, calc((100vh - 318px) * 1.45)); max-width: min(100%, calc((100dvh - 318px) * 1.45)); }
  .gm-one .gm-keys { max-width: 100%; }
  .gm-tall .gm-box { max-width: none; }
  .gm-scr > small { padding: 2px 5px; font-size: .56rem; }
  .gm-keys { margin-top: 8px; gap: 6px; }
  .gm-row > small { margin-bottom: 4px; font-size: .62rem; }
  .gm-keyrow, .gm-all .gm-keyrow { gap: 5px; }
  .gm-key, .gm-all .gm-key { height: 58px; padding: 4px 2px; border-radius: 8px; border-width: 1px; box-shadow: 0 3px 0 #0a0818; }
  .gm-key i { top: 4px; right: 4px; width: 6px; height: 6px; }
  .gm-key span { font-size: 1.25rem; } .gm-key b { font-size: .58rem; line-height: 1.05; }
  .gm-custom input { margin-top: 6px; padding: 8px 10px; font-size: 16px; }
}
@media (max-width: 700px) {
  /* nombres de los locales enteros (en dos líneas si hace falta) y botones más altos, que caben igual en una plana */
  .gm-tab { display: flex; align-items: center; justify-content: center; white-space: normal; overflow: visible; line-height: 1.1; padding: 5px 3px; min-height: 36px; }
  .gm-nav { align-items: stretch; }
  .gm-key, .gm-all .gm-key { height: 66px; }
  .gm-key span { font-size: 1.4rem; } .gm-key b { font-size: .62rem; }
}
.gm-scr > small { max-width: 100%; overflow: hidden; }
.gm-key b { max-width: 100%; }
@media (max-width: 700px) {
  .gm-back span, .gm-sala { display: none; }
  .gm-nav > a.gm-back { width: auto; padding: 0 6px; display: flex; align-items: center; }
  .gm-key.gm-long b { font-size: .5rem; letter-spacing: -.01em; }
}
/* GC Master, señal 1: la transmisión nuestra (video propio) llena la pantalla 1; debajo, Twitch o el GC */
.gm-own { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.gm-p1in { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.gm-own[hidden], .gm-p1in[hidden] { display: none; }

/* Logos del local en el GC de OBS (pedido de Cote, 21 nov: en la transmisión de Mercado Kennedy se veían cortados arriba):
   van más adentro, con margen de seguridad, para que no los corte el borde de la transmisión ni el de los televisores */
.venue-mark.vm-obs { right: 6vh; top: 6vh; }
.venue-mark.vm-obs-bingo { left: 5vh; }
/* Logos del GC de OBS: más adentro y más abajo (pedido de Cote, 21 nov) */
.venue-mark.vm-obs { right: 10vh; top: 10vh; }
/* GC Master, audio (pedido de Cote, 22 nov): en «Los 3 locales», abajo, 3 botones para elegir qué local se escucha (uno
   a la vez); en la página de un local, un botón «Escuchar» junto al nombre */
.gm-listen { margin-left: auto; padding: 5px 12px; border-radius: 99px; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.gm-listen.on { background: #1fa45a; border-color: #1fa45a; color: #fff; }
.gm-all .gm-listen { display: none; }
.gm-audio { margin-top: 14px; }
.gm-audio > small { display: block; margin-bottom: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; color: #b9b4d8; }
.gm-audiorow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gm-audio .gm-key { height: 64px; grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px; }
.gm-audio .gm-key span { font-size: 1.6rem; } .gm-audio .gm-key b { font-size: 1rem; }
.gm-audio .gm-key.on { background: linear-gradient(#27b866, #15803f); border-color: #7be3a6; box-shadow: 0 4px 0 #0a4a22, 0 0 16px rgba(39, 184, 102, .6); }
@media (max-width: 700px) {
  .gm-listen { padding: 3px 8px; font-size: .68rem; }
  .gm-audiorow { gap: 6px; } .gm-audio .gm-key { height: 52px; gap: 4px; } .gm-audio .gm-key b { font-size: .62rem; } .gm-audio .gm-key span { font-size: 1.1rem; }
}

/* GC Master, versión horizontal de cada local (pedido de Cote, 22 nov): la señal 1 más grande; el tablero a 3/5 de su
   tamaño; la pantalla vertical también a 3/5; y los botones debajo del tablero, para aprovechar el ancho de la pantalla.
   --w1 es el ancho de la pantalla 1: lo más grande que cabe a lo ancho y a lo alto sin bajar la página */
@media (min-width: 900px) {
  .gm-one .gm-venue { --w1: max(360px, min(calc((100vw - 102px) / 1.9375), calc((100vh - 400px) * 2.963), calc((100vh - 160px) * 1.7778)));
    display: grid; grid-template-columns: var(--w1) calc(var(--w1) * .6) calc(var(--w1) * .3375); grid-template-rows: auto auto auto;
    grid-template-areas: "head head head" "p1 p2 p3" "p1 keys p3"; gap: 12px 13px; justify-content: center; align-items: start; }
  .gm-one .gm-head { grid-area: head; margin-bottom: 0; }
  .gm-one .gm-screens, .gm-one .gm-left { display: contents; }
  .gm-one .gm-left > .gm-scr:first-child { grid-area: p1; }
  .gm-one .gm-left > .gm-scr:last-child { grid-area: p2; }
  .gm-one .gm-screens > .gm-tall { grid-area: p3; }
  .gm-one .gm-box { border-radius: 8px; border: 2px solid #2c2850; }
  .gm-one .gm-scr > small { border-radius: 6px 0 8px 0; }
  .gm-one .gm-keys { grid-area: keys; max-width: none; margin: 0; gap: 8px; }
  .gm-one .gm-row > small { margin-bottom: 6px; }
  .gm-one .gm-keyrow { gap: 8px; }
  .gm-one .gm-key { height: 62px; padding: 4px 3px; }
  /* el texto de los botones se achica con la pantalla, para que siempre quepa entero */
  .gm-one .gm-key span { font-size: min(1.35rem, calc(var(--w1) * .033)); } .gm-one .gm-key b { font-size: min(.7rem, calc(var(--w1) * .0148)); line-height: 1.05; }
  .gm-one .gm-key.gm-long b { font-size: min(.6rem, calc(var(--w1) * .0118)); }
  .gm-one .gm-key { padding: 4px 1px; }
  .gm-one .gm-custom input { margin-top: 8px; padding: 8px 10px; }
}
/* GC Master: arriba a la derecha, la fecha con el año y la hora local (pedido de Cote, 22 nov) */
.gm-clock { margin-left: auto; display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.gm-clock b { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; color: #ffc400; }
.gm-clock i { font-style: normal; font-weight: 700; font-size: .95rem; color: #d8d3ff; }
@media (max-width: 1100px) { .gm-clock { gap: 8px; } .gm-clock b { font-size: 1.2rem; } .gm-clock i { font-size: .8rem; } }
@media (max-width: 700px) {
  /* en el teléfono va en su propia línea, bajo los locales */
  .gm-nav { flex-wrap: wrap; }
  .gm-clock { flex: 1 0 100%; margin: 0; justify-content: center; gap: 8px; }
  .gm-clock b { font-size: 1rem; } .gm-clock i { font-size: .72rem; }
  .gm-one .gm-screens, .gm-one .gm-keys { max-width: min(100%, calc((100vh - 344px) * 1.45)); max-width: min(100%, calc((100dvh - 344px) * 1.45)); }
  .gm-one .gm-keys { max-width: 100%; }
}
/* la hora grande y la fecha debajo, para que la barra de arriba no pase a dos líneas en pantallas más chicas */
@media (min-width: 701px) {
  .gm-nav { flex-wrap: nowrap; }
  .gm-clock { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.15; }
  .gm-clock b { font-size: 1.35rem; } .gm-clock i { font-size: .8rem; }
}
@media (min-width: 701px) and (max-width: 1250px) { .gm-back span { display: none; } .gm-tab { padding: 8px 10px; } }

/* GC Master: el texto del GC personalizable va aparte de los botones (debajo de ellos en el teléfono y en «Los 3 locales») */
.gm-text { display: block; width: 100%; margin: 10px auto 0; padding: 10px 12px; font-size: 1rem; max-width: max(520px, calc((100vh - 470px) * 1.45)); }
.gm-all .gm-text { max-width: none; }
@media (max-width: 700px) { .gm-text { max-width: 100%; margin-top: 6px; padding: 8px 10px; font-size: 16px; } }

/* GC Master, versión horizontal de cada local: la señal 1 MÁS GRANDE (pedido de Cote, 22 nov). La señal 1 ocupa todo el
   alto disponible a la izquierda; a la derecha, una columna angosta (--r) con el tablero arriba y, debajo, la pantalla
   vertical junto a los botones (en 2 columnas de 5); el texto del GC personalizable va arriba, sobre esa columna */
@media (min-width: 900px) {
  body.gm-on main { padding-bottom: 12px; }
  .gm-one .gm-venue { --H: calc(100vh - 168px); --W: calc(100vw - 76px); --r: max(360px, calc(var(--W) * .3));
    --w1: max(420px, min(calc(var(--H) * 1.7778), calc(var(--W) - 10px - var(--r)))); --h2: calc(var(--r) * .5625);
    --h3: max(190px, calc(var(--H) - var(--h2) - 12px)); --w3: calc(var(--h3) * .5625);
    grid-template-columns: var(--w1) var(--w3) calc(var(--r) - var(--w3) - 10px); grid-template-rows: auto var(--h2) var(--h3);
    grid-template-areas: "head txt txt" "p1 p2 p2" "p1 p3 keys"; gap: 12px 10px; }
  .gm-one .gm-text { grid-area: txt; align-self: center; margin: 0; max-width: none; padding: 7px 10px; }
  .gm-one .gm-keys { display: block; height: var(--h3); overflow-y: auto; }
  .gm-one .gm-row > small { margin-bottom: 4px; white-space: nowrap; overflow: hidden; }
  .gm-one .gm-keyrow { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((var(--h3) - 22px - 4 * 6px) / 5); gap: 6px; }
  .gm-one .gm-key { height: auto; min-height: 0; grid-auto-flow: column; grid-auto-columns: auto; justify-content: start; justify-items: start; align-items: center; gap: 6px; padding: 2px 16px 2px 8px; box-shadow: 0 3px 0 #0a0818; }
  .gm-one .gm-key span { font-size: min(1.25rem, calc(var(--h3) * .065)); }
  .gm-one .gm-key b, .gm-one .gm-key.gm-long b { text-align: left; font-size: min(.82rem, calc(var(--r) * .0285), calc(var(--h3) * .05)); line-height: 1.05; }
  .gm-one .gm-key i { top: 5px; right: 5px; width: 7px; height: 7px; }
}
@media (min-width: 900px) {
  /* botones: ícono arriba y texto abajo, con la letra según el ancho y el alto de cada botón, para que siempre quepa entero */
  .gm-one .gm-venue { --kw: calc((var(--r) - var(--w3) - 16px) / 2); --kh: calc((var(--h3) - 22px - 24px) / 5); }
  .gm-one .gm-keyrow { grid-auto-rows: var(--kh); }
  .gm-one .gm-key { grid-auto-flow: row; justify-content: center; justify-items: center; align-content: center; gap: 1px; padding: 2px; }
  .gm-one .gm-key span { font-size: min(1.3rem, calc(var(--kh) * .34)); }
  .gm-one .gm-key b, .gm-one .gm-key.gm-long b { text-align: center; font-size: min(.8rem, calc(var(--kw) * .112), calc(var(--kh) * .225)); line-height: 1.05; }
}
@media (min-width: 900px) {
  /* la fila del nombre siempre en una línea (si no, la página crecía y había que bajar) */
  .gm-one .gm-head { flex-wrap: nowrap; min-width: 0; }
  .gm-one .gm-head > b, .gm-one .gm-live, .gm-one .gm-listen { flex: none; white-space: nowrap; }
  .gm-one .gm-sala { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* GC Master, versión horizontal de cada local: la pantalla vertical SIEMPRE PEGADA a la 1 (pedido de Cote, 22 nov). La
   señal 1 y, pegada a su derecha y del mismo alto, la pantalla vertical forman un solo bloque, lo más grande que cabe;
   a la derecha queda una columna angosta (--r) con el tablero arriba y los botones debajo (2 columnas de 5) */
@media (min-width: 900px) {
  .gm-one .gm-venue { --r: max(200px, calc(var(--W) * .14));
    --h1: max(236px, min(var(--H), calc((var(--W) - 10px - var(--r)) / 2.3403)));
    --w1: calc(var(--h1) * 1.7778); --w3: calc(var(--h1) * .5625); --h2: calc(var(--r) * .5625);
    --h3: calc(max(var(--H), var(--h1)) - var(--h2) - 10px); --kw: calc((var(--r) - 6px) / 2); --kh: calc((var(--h3) - 22px - 24px) / 5);
    grid-template-columns: var(--w1) var(--w3) calc(var(--r) + 10px); grid-template-rows: auto var(--h2) var(--h3);
    grid-template-areas: "head txt txt" "p1 p3 p2" "p1 p3 keys"; gap: 10px 0; }
  .gm-one .gm-text, .gm-one .gm-left > .gm-scr:last-child, .gm-one .gm-keys { margin-left: 10px; }
  .gm-one .gm-left > .gm-scr:first-child .gm-box { border-radius: 8px 0 0 8px; border-right-width: 1px; }
  .gm-one .gm-screens > .gm-tall .gm-box { border-radius: 0 8px 8px 0; border-left-width: 1px; }
  .gm-one .gm-screens > .gm-tall > small { border-radius: 0 0 8px 0; }
}

/* Capa gráfica sobre la cámara (pedido de Cote, 21 nov): capa transparente encima del GC de OBS; las piezas entran y
   salen solas. --cp es el color del local */
#capa { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 9500; pointer-events: none; overflow: hidden; }
#capa .cp { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* Cortina: franjas que cruzan, el logo al centro y se abre */
#capa .cp-cur i { position: absolute; left: -30%; width: 160%; height: 21%; transform: translateX(-110%) skewX(-18deg); animation: cpCur 3.4s cubic-bezier(.7, 0, .2, 1) both; }
#capa .cp-cur i:nth-child(1) { top: -1%; background: #ffc400; } #capa .cp-cur i:nth-child(2) { top: 20%; background: var(--cp); animation-delay: .07s; }
#capa .cp-cur i:nth-child(3) { top: 40%; background: #100e22; animation-delay: .14s; } #capa .cp-cur i:nth-child(4) { top: 60%; background: var(--cp); animation-delay: .21s; }
#capa .cp-cur i:nth-child(5) { top: 80%; background: #ffc400; animation-delay: .28s; }
@keyframes cpCur { 0% { transform: translateX(-110%) skewX(-18deg); } 24%, 66% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(110%) skewX(-18deg); } }
#capa .cp-cur img { position: absolute; left: 50%; top: 50%; width: 46vh; opacity: 0; transform: translate(-50%, -50%) scale(.2); filter: drop-shadow(0 .8vh 2vh rgba(0, 0, 0, .5)); animation: cpLogo 3.4s ease both; }
@keyframes cpLogo { 0%, 20% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 32% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } 38%, 62% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 74%, 100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } }
/* Celebración (video con fondo transparente) y texto en 3D real */
#capa .cp-vid video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
#capa .cp-gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* si el navegador no tiene 3D, el mismo texto plano */
#capa .cp-flat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; text-align: center; animation: cpFlat 9s ease both; }
#capa .cp-flat b { font: 900 16vh/1 "Source Sans 3", sans-serif; color: #ffc400; text-shadow: .5vh .5vh 0 var(--cp), 1vh 1vh 2vh rgba(0, 0, 0, .5); padding: 0 4vw; }
#capa .cp-flat b.s { font-size: 8vh; color: #fff; }
@keyframes cpFlat { 0% { opacity: 0; transform: scale(.6); } 8%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }

/* GC Master: junto al espacio de texto, los botones de la capa gráfica (cortina, texto 3D, celebración, quitar) */
.gm-txtrow { max-width: max(520px, calc((100vh - 470px) * 1.45)); margin: 10px auto 0; }
.gm-all .gm-txtrow { max-width: none; }
.gm-txtrow .gm-text { margin: 0; max-width: none; }
.gm-capa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: 6px; margin-top: 6px; }
.gm-ckey { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 34px; padding: 0 4px; border-radius: 9px; border: 2px solid #5a4a12; background: linear-gradient(#3a3110, #221c08); color: #fff; font-weight: 800; cursor: pointer; white-space: nowrap; }
.gm-ckey span { font-size: 1rem; line-height: 1; } .gm-ckey b { font-size: .78rem; overflow: hidden; }
.gm-ckey.on { background: linear-gradient(#ffc400, #c99700); border-color: #fff1b0; color: #1a1a1a; }
@media (max-width: 700px) {
  .gm-txtrow { max-width: 100%; margin-top: 6px; }
  .gm-capa { gap: 4px; margin-top: 5px; } .gm-ckey { height: 30px; gap: 3px; border-width: 1px; } .gm-ckey span { font-size: .8rem; } .gm-ckey b { font-size: .6rem; }
}
@media (min-width: 900px) {
  /* versión horizontal de un local: el texto sigue arriba a la derecha y los botones de la capa van abajo de la columna
     derecha, en 2 filas de 2 (a los botones de arriba se les descuenta ese alto, para que todo siga cabiendo) */
  .gm-one .gm-venue { --h3: calc(max(var(--H), var(--h1)) - var(--h2) - 10px - 72px);
    grid-template-rows: auto var(--h2) var(--h3) 62px; grid-template-areas: "head txt txt" "p1 p3 p2" "p1 p3 keys" "p1 p3 capa"; }
  .gm-one .gm-txtrow { display: contents; }
  .gm-one .gm-txtrow .gm-text { grid-area: txt; align-self: center; margin: 0 0 0 10px; }
  .gm-one .gm-capa { grid-area: capa; margin: 0 0 0 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gm-one .gm-ckey { height: 28px; padding: 0 3px; gap: 4px; }
  .gm-one .gm-ckey span { font-size: .85rem; } .gm-one .gm-ckey b { font-size: min(.74rem, calc(var(--r) * .054)); }
}
/* «Los 3 locales»: el texto «GC personalizable» entero dentro de su botón */
@media (min-width: 701px) { .gm-all .gm-key.gm-long b { font-size: .58rem; letter-spacing: -.01em; } }

/* Capa gráfica: 4 efectos más (pedido de Cote, 22 nov): fuegos artificiales, lluvia de confeti y corazones (dibujados en un
   lienzo transparente que se estira) y luces de escenario (haces de luz que barren desde arriba), todos en el mismo lienzo */
#capa .cp-fx { animation: cpFx 7s linear both; }
#capa .cp-fx canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
@keyframes cpFx { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* GC Master: ahora son 8 botones de la capa (2 filas de 4); en la versión horizontal de un local van solo con su dibujo
   (el nombre sale al pasar el mouse y en el aviso al apretar), para no quitarle espacio a la señal 1 ni a los botones */
@media (min-width: 900px) {
  .gm-one .gm-capa { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gm-one .gm-ckey b { display: none; }
  .gm-one .gm-ckey span { font-size: 1.05rem; }
}
@media (max-width: 700px) and (max-height: 640px) {
  /* teléfonos bajos: botones un poco más bajos, para que la segunda fila de la capa quepa en la misma plana */
  .gm-one .gm-key { height: 54px; } .gm-ckey { height: 26px; }
}

/* GC Master · «Sala de juegos» (pedido de Cote, 22 nov): a la izquierda las pantallas y botones de la sala abierta; a la
   derecha, el panel real de la sala (crear sala, elegir y manejar cada juego), que queda a la vista al bajar */
.gm-jg .gm-grid { grid-template-columns: minmax(340px, 36%) minmax(0, 1fr); align-items: start; }
.gm-panel { position: sticky; top: 8px; height: calc(100vh - 74px); min-height: 420px; border: 2px solid #2c2850; border-radius: 12px; overflow: hidden; background: #12101f; }
.gm-panel iframe { display: block; width: 100%; height: 100%; border: 0; }
.gm-none p { margin: 0; color: #b9b4d8; line-height: 1.45; }
.gm-jg .gm-head > b { white-space: nowrap; }
@media (max-width: 900px) {
  .gm-jg .gm-grid { grid-template-columns: minmax(0, 1fr); }
  .gm-panel { position: static; height: 86vh; }
}
/* la barra de arriba con una pestaña más: en pantallas medianas las pestañas van más justas para que quepa en una línea */
@media (min-width: 701px) and (max-width: 1500px) { .gm-nav { gap: 6px; } .gm-nav > b { margin: 0 4px 0 2px; font-size: 1.15rem; } .gm-tab { padding: 8px 9px; font-size: .92rem; white-space: nowrap; } .gm-back span { display: none; } }
@media (min-width: 701px) and (max-width: 1150px) { .gm-nav > b { display: none; } .gm-tab { padding: 7px 7px; font-size: .84rem; } }

/* Empate en la gran final del objeto (pedido de Cote, 22 nov): en la pantalla del ganador se dice por qué ganó */
.vwin-tie { display: block; max-width: 86vw; margin: 1.6vh auto 0; font-size: 3.2vh; font-weight: 800; line-height: 1.25; text-align: center; color: #fff; }
.vwin-tie b { display: block; margin-bottom: .4vh; font-size: 3.6vh; color: #ffc400; }
.vc-tie { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 196, 0, .12); border: 1px solid #ffc400; }
.pvote-tie { display: block; margin-top: 8px; opacity: .9; }
.vk-tie { max-width: 84vw; text-align: center; }
.vk-tie b { display: block; margin-bottom: .6vh; font-size: 3vh; color: #ffc400; }
.vk-tie span { display: block; font-size: 2.7vh; font-weight: 800; line-height: 1.25; color: #fff; }
#vf .vf-main > .vf-tie { max-width: 100%; margin-top: 1.6vh; text-align: center; white-space: normal; font-size: 2.8vh; font-weight: 800; line-height: 1.25; color: #fff; }
.vf-tie .t { margin-bottom: .4vh; color: #ffc400; }

/* GC Master · «Sala de juegos»: el panel de la derecha va achicado (lo calcula master-ui.js) para que todo quepa */
.gm-panel iframe { transform-origin: 0 0; }

/* «Sala KRB»: la sala de juegos en el teléfono (pedido de Cote, 22 nov). Pantalla completa y sin bajar la página: fila de
   arriba, 3 monitores chicos, la zona del medio (panel del juego o botones del GC y efectos) y las 2 teclas de abajo.
   Respeta la muesca y la barra de inicio del iPhone (safe-area) */
.gm-movil { display: none; }
@media (max-width: 900px) { .gm-movil { display: block; margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: #ffc400; color: #1a1a1a; font-weight: 800; text-align: center; text-decoration: none; } }
body.gmm-on { overflow: hidden; overscroll-behavior: none; }
body.gmm-on main { padding: 0; max-width: none; }
body.gmm-on .krb-mark { display: none; }
.gm-m { position: fixed; left: 0; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: calc(env(safe-area-inset-top, 0px) + 6px) calc(env(safe-area-inset-right, 0px) + 8px) 0 calc(env(safe-area-inset-left, 0px) + 8px); background: #12101f; }
.gmm-top { flex: none; display: flex; align-items: baseline; gap: 8px; min-height: 24px; }
.gmm-top > b { flex: none; font-size: 1.05rem; white-space: nowrap; }
.gmm-top > span:not(.gm-clock) { flex: 1; min-width: 0; font-size: .74rem; opacity: .8; white-space: nowrap; overflow: hidden; }
.gm-m .gm-clock { flex: none; margin: 0; } .gm-m .gm-clock i { display: none; } .gm-m .gm-clock b { font-size: 1rem; }
.gmm-mon { flex: none; display: grid; grid-template-columns: 16fr 16fr 5.0625fr; gap: 4px; align-items: start; }
.gmm-mon .gm-scr > small { padding: 1px 4px; font-size: .52rem; }
.gmm-mon .gm-tall .gm-box { max-width: none; }
.gmm-none { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border: 1px dashed #3a3360; border-radius: 8px; font-size: .85rem; line-height: 1.35; color: #b9b4d8; }
.gmm-body { flex: 1; min-height: 0; position: relative; }
.gmm-pane { position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; }
.gmm-pane[hidden] { display: none; }
.gm-m .gm-panel { position: absolute; height: auto; min-height: 0; border-width: 1px; border-radius: 8px; }
.gmm-gc { overflow-y: auto; }
.gmm-gc .gm-venue { padding: 2px 0 0; border: 0; border-radius: 0; background: none; }
.gmm-gc .gm-row + .gm-row { margin-top: 12px; }
.gm-m .gm-keyrow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.gm-m .gm-key { height: 70px; padding: 4px 2px; }
.gm-m .gm-key span { font-size: 1.5rem; } .gm-m .gm-key b { font-size: .66rem; line-height: 1.05; }
.gm-m .gm-text { display: block; width: 100%; max-width: none; margin: 0 0 8px; padding: 10px 12px; font-size: 16px; }
.gm-m .gm-capa { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.gm-m .gm-ckey { height: 58px; flex-direction: column; gap: 2px; padding: 2px; white-space: normal; }
.gm-m .gm-ckey span { font-size: 1.3rem; } .gm-m .gm-ckey b { font-size: .64rem; line-height: 1.05; }
.gmm-tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 6px); }
.gmm-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 6px; border-radius: 10px; font-weight: 800; font-size: 1rem; }
.gmm-tabs button span { font-size: 1.2rem; line-height: 1; }
.gmm-tabs button.on { background: #ffc400; border-color: #ffc400; color: #1a1a1a; }
/* «Sala KRB»: el monitor principal (GC) más grande (pedido de Cote, 22 nov: «que el video principal quede más grande»):
   ocupa 3/4 del ancho; a su derecha, en una columna, el tablero arriba y la pantalla de pie abajo, del mismo alto total */
.gmm-mon { grid-template-columns: minmax(0, 1fr) var(--r); grid-template-rows: auto auto; --W: calc(100vw - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); --r: calc(var(--W) * .25);
  --h1: calc((var(--W) - var(--r) - 4px) * .5625); --h3: calc(var(--h1) - var(--r) * .5625 - 4px); }
.gmm-mon > .gm-scr:first-child { grid-row: 1 / 3; }
.gmm-mon > .gm-tall { justify-self: center; width: calc(var(--h3) * .5625); }
.gmm-mon > .gmm-none { grid-row: auto; }
.gmm-mon > .gm-scr:not(:first-child) > small { padding: 1px 3px; font-size: .42rem; letter-spacing: 0; }

/* Pantallas fluidas en cualquier equipo (pedido de Cote, 22 nov). En los monitores del GC Master (html.mon, ?mon=1) y en
   los equipos que no dan abasto (html.lento, lo pone solo el vigilante de app.js) el fondo de las pantallas queda quieto:
   se ve igual, pero el navegador deja de redibujar toda la pantalla sin parar. */
html.mon body.full::before, html.lento body.full::before { animation: none !important; }
/* y los rayos que giran detrás del sorteo de concursantes y de los ganadores (son capas enormes: pesan mucho en un equipo
   modesto) quedan quietos en esos mismos dos casos; en un equipo normal siguen girando como siempre */
html.mon body.full #rf .rf-rays, html.lento body.full #rf .rf-rays, html.mon #fb .bwin::before, html.lento #fb .bwin::before,
html.mon body.full .win-screen::before, html.lento body.full .win-screen::before { animation: none !important; }
