/* Tele de «Última emisión»: pensada para verse desde el sofá en 1280x720 y 1920x1080.
   1rem = 24 px a 1280x720 y 36 px a 1920x1080 (se adapta al ancho y al alto). Sin scroll en ninguna fase. */
/* Capas (z-index), de abajo arriba: 0 fondo · 1 pantalla y cabecera · 40 prólogo y lectura de dedicatorias · 45 avisos (hitos, medianoche) ·
   50 capa de resultado (tarjeta, golpes, «enseñar»); 46 globos de sugerencias · 70 tinte de medianoche · 80 cortinilla de acto · 90 fusible y cierre.
   La ayuda de Tomás NO flota: es una ficha dentro de la columna derecha. Con una capa abierta, body.conCapa limpia lo que la escena
   pone encima de sí misma (tarjeta del punto, pie) y esconde los avisos; así nada se solapa. */
html { font-size: 1.875vw; }
@media (min-aspect-ratio: 16/9) { html { font-size: 3.3333vh; } }
@media (max-width: 747px) { html { font-size: 14px; } }
html, body { height: 100vh; height: 100vh; overflow: hidden; }
body { padding: .3rem 1.1rem .4rem; min-height: 0; display: flex; flex-direction: column; font-size: 1rem; }
main#pantalla { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }
header.barra { flex: none; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;  margin-bottom: .3rem; }
header.barra > * + * { margin-left: .8rem; }
.marca { display: flex; align-items: center;  }
.marca > * + * { margin-left: .7rem; }
.marca h1 { font-size: .7rem; color: var(--azul); font-family: var(--mano); line-height: 1.1; }
.marca small { color: var(--tinta2); font-size: .5rem; }
.derecha { display: flex; align-items: center;  }
.derecha > * + * { margin-left: .6rem; }
.btn.voz { font-size: .5rem; padding: .3em .7em; min-height: 0; }
.btn.voz[aria-pressed="true"] { border-color: var(--tinta); color: var(--azul); }
.volumen { display: flex; align-items: center;  font-size: .45rem; color: var(--tinta2); font-family: var(--mano); }
.volumen > * + * { margin-left: .3rem; }
.volumen input { width: 4.5rem; accent-color: var(--ambar); }
.volumen input:disabled { opacity: .4; }
.reloj { display: flex; align-items: baseline;  font-family: var(--mano); color: var(--azul); }
.reloj > * + * { margin-left: .4rem; }
.reloj[hidden], .cifrasCab[hidden] { display: none; }
.reloj b { font-size: 1rem; }
.reloj small { font-size: .5rem; color: var(--tinta2); }
.reloj .objetivo { display: inline-block; line-height: 1.5; font-size: .5rem; color: var(--azul); border: 1px solid var(--azul); border-radius: .6em; padding: .05em .5em; white-space: nowrap; }
.reloj .objetivo.apurado { color: var(--ambar); border-color: var(--ambar); }
.reloj .objetivo.tarde { color: var(--tinta2); border-color: var(--tinta2); }
.relato .lineaHora { font-style: italic; }
.cifrasCab { display: flex;  font-size: .5rem; font-family: var(--mano); color: var(--tinta2); }
.cifrasCab > * + * { margin-left: .9rem; }
/* #143: a quién le toca, arriba y grande; parpadea en cada relevo */
.turnoCab { display: flex; align-items: center; background: var(--ambar); color: var(--tinta); border-radius: .6rem; padding: .1rem .45rem .1rem .15rem; font-family: var(--mano); line-height: 1.05; }
.turnoCab[hidden] { display: none; }
.marca .turnoCab { margin-left: .6rem; }
.turnoCab .tc-av { width: 1.2rem; height: 1.2rem; border-radius: 50%; object-fit: cover; margin-right: .3rem; }
.marca .turnoCab small { display: block; font-size: .4rem; white-space: nowrap; font-family: var(--mano); font-style: normal; color: var(--tinta); }
.marca .turnoCab b { display: block; font-size: .75rem; }
/* Solo transform y opacity: se componen sin repintar (la LG se atasca con box-shadow animado, #144). */
.turnoCab { will-change: transform; }
.turnoCab.relevo { animation: relevo-t .6s ease-in-out 5; }
@keyframes relevo-t { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: .75; } }
.cifrasCab b { font-size: .9rem; color: var(--azul); margin-right: .25rem; }
.aviso { text-align: center; margin-top: 4rem; font-size: 1.1rem; color: var(--tinta2); }
.caja { background: var(--panel); border: .1rem solid var(--borde); border-radius: .6rem; padding: .5rem .8rem; }
.caja h2 { color: var(--azul); font-size: .6rem; font-family: var(--mano); margin-bottom: .3rem; }

/* Fondo de portada del lobby */
#fondo { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
#fondo.on { opacity: 1; }
#fondo::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(14,9,4,.6) 0%, rgba(14,9,4,.5) 45%, rgba(14,9,4,.78) 100%); }
header.barra {  }
body.lobby .caja { background: var(--papel); }

/* ---------- Sala de espera: portada de juego ---------- */
img.av { border-radius: 50%; object-fit: cover; background: #0d0804; border: .1rem solid var(--tinta); flex: none; }
/* Sala de espera: el avatar cabe dentro de la tarjeta (las filas miden ~1,7rem a 1280x720; con 2,3rem se salía por arriba y abajo y pisaba el borde redondeado). */
img.av.lobby { width: 1.5rem; height: 1.5rem; }
.vacio { color: var(--tinta2); font-style: italic; }
body.lobby .marca > div { visibility: hidden; }
body.lobby #fondo::after { background: linear-gradient(90deg, rgba(12,7,3,.55) 0%, rgba(12,7,3,.3) 55%, rgba(12,7,3,.12) 100%), linear-gradient(180deg, rgba(12,7,3,.2) 0%, rgba(12,7,3,0) 45%, rgba(12,7,3,.55) 100%); }
.sala-espera { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: .9rem; padding-bottom: .2rem; }
.sala-espera section { min-height: 0; background: var(--papel); border: .1rem solid rgba(35,26,16,.35); border-radius: .8rem; box-shadow: 0 .5rem 2rem rgba(70,50,20,.32);   }
.portada { display: flex; flex-direction: column; justify-content: space-between; padding: .9rem 1rem .8rem; }
.portada .titulo h2 { font-size: 2.3rem; line-height: 1; color: var(--azul); font-family: var(--mano); }
.portada .titulo .sub { margin-top: .2rem; font-family: var(--mano); font-size: .6rem; color: var(--tinta2); }
.portada .titulo .tipo { font-size: .55rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta2); margin-bottom: .25rem; }
.portada .titulo .como { margin-top: .35rem; font-size: .62rem; line-height: 1.25; color: var(--tinta); }
.reparto .ideal { font-size: .55rem; line-height: 1.3; color: var(--tinta2); margin: -.15rem 0 .45rem; }
.portada .acceso { display: flex; align-items: center;  }
.portada .acceso > * + * { margin-left: 1.2rem; }
.portada .qr { flex: 0 0 auto; width: 14rem; background: #fff; border-radius: .6rem; padding: .45rem .45rem .35rem; text-align: center; box-shadow: 0 0 2rem rgba(255,176,0,.25); }
.portada .qr svg { display: block; width: 100%; height: auto; }
.portada .qr p { margin-top: .2rem; font-size: .5rem; font-weight: 700; color: var(--tinta); line-height: 1.1; }
.portada .datos { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;  }
.portada .datos > * + * { margin-top: .8rem; }
.pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;  }
.pasos > * + * { margin-top: .45rem; }
.pasos li { display: flex; align-items: center;  font-size: .82rem; line-height: 1.15; color: var(--tinta); }
.pasos li > * + * { margin-left: .6rem; }
.pasos li b { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ambar); color: var(--tinta); display: grid; place-items: center; font-family: var(--mano); font-size: .85rem; }
.portada .sala small, .portada .url small { display: block; font-family: var(--mano); font-size: .5rem; color: var(--tinta2); }
.portada .codigo { white-space: nowrap; font-family: var(--mano); font-size: 2.7rem; font-weight: 700; color: var(--azul); line-height: 1.05; }
.portada .url { display: flex; align-items: baseline;  flex-wrap: wrap; border-top: .06rem solid rgba(35,26,16,.35); padding-top: .45rem; }
.portada .url > * { margin-right: .7rem; margin-bottom: .7rem; }
.portada .url span { font-family: var(--mano); font-size: 1.05rem; font-weight: 700; color: var(--tinta); word-break: break-all; }
.portada .legal { margin: .2rem 0 0; font-size: .6rem; color: var(--tinta2); }
.portada .ayuda-tele { margin: 0; font-size: .5rem; color: var(--tinta2); }
.portada .ayuda-tele a { color: var(--tinta); font-weight: 700; text-decoration: none; word-break: break-all; }
.reparto { display: flex; flex-direction: column; padding: .7rem .9rem .8rem; }
.reparto h3 { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mano); font-size: .6rem; color: var(--azul); margin-bottom: .45rem; }
.reparto h3 span { color: var(--tinta); }
.reparto .jugadores { list-style: none; margin: 0; padding: 0; flex: 1 1 0; min-height: 0; display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); gap: .3rem; }
.reparto .jugadores li { display: flex; align-items: center;  min-height: 0; padding: 0 .55rem 0 .12rem; border-radius: 1.4rem; border: .08rem solid rgba(35,26,16,.35); background: var(--papel); }
.reparto .jugadores li > * + * { margin-left: .55rem; }
.reparto .jugadores li span { flex: 1 1 0; min-width: 0; }
.reparto .jugadores li b { display: block; font-size: .85rem; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reparto .jugadores li small { display: block; font-size: .5rem; line-height: 1.15; color: var(--tinta2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reparto .jugadores li .ok { font-style: normal; font-weight: 700; color: var(--tinta); background: var(--ambar); border-radius: 50%; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; font-size: .65rem; flex: none; }
.reparto .jugadores li.libre { background: rgba(20,12,6,.45); border: .08rem dashed rgba(205,184,143,.35); }
.reparto .jugadores li.libre img.av { opacity: .4; filter: grayscale(.7); border-color: rgba(205,184,143,.5); }
.reparto .jugadores li.libre b, .reparto .jugadores li.libre small { color: var(--tinta2); opacity: .6; }
.reparto .empezar { margin-top: .55rem; display: flex; align-items: center;  }
.reparto .empezar > * + * { margin-left: .8rem; }
.reparto .empezar .btn { font-size: .85rem; min-height: 0; padding: .35em 1em; flex: none; }
.reparto .empezar .nota { font-size: .52rem; line-height: 1.25; color: var(--tinta2); }
.reparto .empezar kbd { font-family: var(--mano); font-size: .9em; border: .06rem solid var(--tinta2); border-radius: .25rem; padding: 0 .3em; color: var(--tinta); }
.reparto .retomar { margin-top: .5rem; border-top: .06rem dashed rgba(35,26,16,.35); padding-top: .4rem; }
.reparto .retomar h4 { font-family: var(--mano); font-size: .55rem; color: var(--azul); margin: 0 0 .25rem; }
.reparto .retomar ul { list-style: none; margin: 0; padding: 0; }
.reparto .retomar li + li { margin-top: .25rem; }
.reparto .retomar .btn { display: flex; align-items: baseline; width: 100%; min-height: 0; padding: .25em .7em; font-size: .6rem; text-align: left; }
.reparto .retomar .btn b { font-family: var(--mano); letter-spacing: .08em; flex: none; }
.reparto .retomar .btn span { margin-left: .6rem; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }

/* ---------- Plano de la emisora ---------- */
.plano { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: .7rem; }
.mapa { min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; }
.mapa-svg { width: 100%; height: 100%; display: block; font-family: inherit; }
.mapa-svg text { fill: var(--tinta); }
.zona-e, .zona-m { fill: rgba(20,13,6,.62); stroke: #8a6a3a; stroke-width: 2.5; }
.zona-m { stroke: #5f7a4c; stroke-dasharray: 9 6; fill: rgba(22,30,16,.5); }
.zona-m.bruma { fill: rgba(40,52,46,.55); }
.zona-t { font: 700 12px var(--mano); fill: var(--tinta2); }
.arbol { fill: #2f4a26; opacity: .55; }
.mastil { fill: none; stroke: #8a6a3a; stroke-width: 2.5; stroke-linecap: round; opacity: .8; }
.paso { stroke: #c9a35b; stroke-width: 7; opacity: .85; }
.camino { fill: none; stroke: var(--azul); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 9; animation: camina 1.4s linear infinite; filter: drop-shadow(0 0 4px rgba(255,176,0,.8)); }
.camino.cerrado { stroke: #7a8a80; filter: none; animation: none; opacity: .75; }
@keyframes camina { to { stroke-dashoffset: -11; } }
.puerta-trasera { fill: #6a5a3a; }
.mapa-svg.abierto .puerta-trasera { fill: var(--azul); filter: drop-shadow(0 0 6px var(--ambar)); }
.sala-s .marco { fill: var(--panel); stroke: var(--borde); stroke-width: 2.5; }
.sala-s .nom { font-weight: 700; font-size: 14.5px; fill: var(--tinta); }
.sala-s .cuenta { font: 12px var(--mano); fill: var(--tinta2); }
.sala-s circle { fill: none; stroke: var(--azul); stroke-width: 2; }
.sala-s circle.hecho { fill: var(--azul); }
.sala-s.oculta .nom { fill: var(--tinta2); }
.sala-s.oculta .marco, .sala-s.bruma .marco { stroke-dasharray: 6 4; }
.sala-s .vela rect { opacity: .72; }
.sala-s .signo { font: 700 38px var(--mano); fill: var(--tinta); opacity: .95; }
.sala-s.desvela .vela { animation: velaFuera 1.6s ease-out forwards; }
.sala-s.desvela .marco { animation: halo 1.8s ease-out; }
.sala-s.mirando .marco { stroke: var(--tinta); stroke-width: 4; stroke-dasharray: 10 5; animation: parpadeo-m 1.1s ease-in-out infinite; }
.sala-s .mira { font: 700 13px var(--mano); fill: var(--tinta); paint-order: stroke; stroke: #000; stroke-width: 4px; display: none; }
.sala-s.mirando .mira { display: inline; }
.sala-s.bruma .marco { stroke: #5f7a4c; }
.sala-s.bruma .niebla { fill: url(#niebla); }
.sala-s.bruma .nom { fill: #aebbb3; }
.ficha-s rect { fill: var(--azul); }
.ficha-s text { font-weight: 700; font-size: 11.5px; fill: var(--tinta); }
.ficha-s.elena rect { fill: var(--azul); }
.insignia rect { fill: var(--azul); }
.insignia text { font: 700 11px var(--mano); fill: var(--tinta) !important; }
.pasillo rect { fill: #17100a; stroke: #4a3a22; stroke-width: 2; stroke-dasharray: 4 5; }
.pasillo .rotulo { font: 700 15px var(--mano); fill: var(--azul); }
.velo-monte { fill: rgba(150,165,158,.38); pointer-events: none; animation: deriva 9s ease-in-out infinite alternate; }
.velo-monte.disipa { animation: disipa 1.8s ease-out forwards; }
@keyframes velaFuera { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes halo { 0%, 60% { filter: drop-shadow(0 0 10px var(--ambar)); } 100% { filter: none; } }
@keyframes parpadeo-m { 50% { opacity: .55; } }
@keyframes deriva { from { opacity: .7; } to { opacity: 1; } }
@keyframes disipa { 0% { opacity: 1; } 100% { opacity: 0; } }
.lado { display: flex; flex-direction: column;  min-height: 0; overflow: hidden; }
.lado > * + * { margin-top: .45rem; }
.objetivo { flex: none; background: var(--papel); border: .12rem solid var(--tinta); border-radius: .7rem; padding: .3rem .8rem .4rem; }
.objetivo small { font: 700 .5rem var(--mano); color: var(--azul); }
.objetivo b { display: block; font-size: .85rem; line-height: 1.15; color: var(--tinta); }
.objetivo .falta { display: block; font-size: .62rem; color: var(--tinta2); line-height: 1.15; margin-top: .1rem; }
.cuaderno { flex: 0 1 auto; min-height: 0; overflow: hidden; padding: .25rem .8rem; }
.cuaderno h2 { margin-bottom: .1rem; font-size: .5rem; }
.cuaderno ul { list-style: none; margin: 0; padding: 0; font-size: .6rem; line-height: 1.15; color: var(--tinta); }
.cuaderno li { padding: .05rem 0 .05rem .8rem; position: relative; }
.cuaderno li::before { content: "·"; position: absolute; left: .2rem; color: var(--azul); font-weight: 700; }
.cuaderno .mas, .notas .mas { color: var(--tinta2); font-size: .5rem; margin: 0; }
.notas { flex: 1 1 0; min-height: 0; overflow: hidden; padding: .3rem .6rem .3rem .7rem; border-color: var(--tinta); }
.notas h2 { margin-bottom: .2rem; font-size: .52rem; }
.notas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;  }
.notas ul > * + * { margin-top: .2rem; }
.notas li { display: flex; align-items: center;  font-size: .66rem; line-height: 1.12; color: var(--tinta); background: var(--papel); border-left: .2rem solid var(--tinta); border-radius: 0 .4rem .4rem 0; padding: .12rem .35rem .12rem .3rem; }
.notas li > * + * { margin-left: .35rem; }
.notas li b { color: var(--azul); font-family: var(--mano); font-size: .52rem; }
.notas li .av { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; border: .08rem solid var(--tinta); background: #0d0804; }
.notas li span { min-width: 0; word-wrap: break-word; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notas li.ultima { background: var(--papel2); }
.notas li.llega { animation: llegaNota 1.1s ease-in-out infinite; background: var(--ambar); color: var(--tinta); }
.notas li.llega b { color: var(--tinta); }
.notas .vacia { font-size: .6rem; color: var(--tinta2); margin: 0; line-height: 1.2; }
@keyframes llegaNota { 50% { box-shadow: 0 0 .9rem var(--ambar); } }
.avisoPista { flex: none; background: var(--papel2); border: .12rem solid var(--rojo); border-radius: .7rem; padding: .3rem .8rem; font-size: .68rem; font-weight: 700; line-height: 1.15; }

/* ---------- Zoom al sitio ---------- */
.zoom { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: .7rem; }
.zoom .col { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.zoom h2.sitio { flex: none; font-size: .9rem; color: var(--tinta); margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zoom h2.sitio b { color: var(--azul); }
.zoom h2.sitio span { font-size: .6rem; font-family: var(--mano); color: var(--tinta2); margin-left: .6rem; }
.zoom .escena { position: relative; width: 100%; max-width: calc((100vh - 5.2rem) * 1.5); }
.zoom .escenario { width: 100%; --pt: 2rem; }
.zoom .pie-escena { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: .45rem .8rem; background: linear-gradient(0deg, rgba(0,0,0,.88) 70%, transparent); font-size: .78rem; line-height: 1.2; color: #fff3da; border-radius: 0 0 .7rem .7rem; }
.zoom .pie-escena b { color: var(--postit); }
.zoom .puntos { overflow: hidden; flex: none; }
.zoom .lado { min-height: 0; }
.zoom .notas { flex: 1 1 0; }
.zoom.entra .escena { animation: zoomEntra .18s ease-out; }
@keyframes zoomEntra { from { transform: scale(.92); opacity: .5; } to { transform: none; opacity: 1; } }
.zoom .escenario.conFoco .pt:not(.foco) { opacity: .4; }
.zoom .escenario .pt.foco { animation: pulsoFoco 1.2s ease-in-out infinite; }
@keyframes pulsoFoco { 0%, 100% { box-shadow: 0 0 0 .3rem var(--papel), 0 0 0 .6rem var(--ambar), 0 0 1.4rem 1rem rgba(255,176,0,.55); } 50% { box-shadow: 0 0 0 .3rem var(--papel), 0 0 0 1rem rgba(255,176,0,.55), 0 0 2.4rem 1.6rem rgba(255,176,0,.8); } }
.foco-card { position: absolute; left: 3%; right: 3%; z-index: 4; background: var(--papel); border: .18rem solid var(--tinta); border-radius: .9rem; padding: .45rem .8rem .55rem; box-shadow: 0 0 1.6rem rgba(70,50,20,.32); animation: sube .15s ease-out; }
.foco-card.abajo { bottom: 3%; } .foco-card.arriba { top: 3%; }
.foco-card .fc-cab { display: flex; align-items: center;  font-size: 1.35rem; line-height: 1.1; color: var(--tinta); }
.foco-card .fc-cab > * + * { margin-left: .6rem; }
.foco-card .fc-cab .num-pt { flex: none; width: 2rem; height: 2rem; font-size: 1.1rem; }
.foco-card .fc-cab b { flex: 1; min-width: 0; }
.foco-card .fc-etq { margin-top: .2rem; font: 700 .5rem var(--mano); color: var(--azul); }
.foco-card .fc-txt { margin: .1rem 0 0; font-size: 1.05rem; line-height: 1.22; color: var(--tinta); }
.foco-card .fc-txt.larga { font-size: .85rem; line-height: 1.2; }
.foco-card .fc-cod { margin-top: .25rem; padding: .15rem .45rem; border-radius: .4rem; background: rgba(255,176,0,.28); font-size: .8rem; line-height: 1.2; color: var(--tinta); }
.foco-card .fc-cod b { display: block; font-family: var(--mano); font-size: .7rem; }
.foco-card .fc-cod span { display: block; font-size: .7rem; }
.zoom .marca-cod { font-size: .5rem; font-family: var(--mano); color: var(--azul); font-weight: 700; white-space: nowrap; }
.zoom .puntos h2 { margin-bottom: .3rem; }
.zoom .lista-puntos { grid-gap: .35rem; gap: .35rem; font-size: .75rem; }
.zoom .lista-puntos li > * + * { margin-left: .45rem; }
.zoom .lista-puntos li { align-items: center; padding: .15rem .3rem; border-radius: .4rem; }
.zoom .lista-puntos li.foco { background: rgba(255,176,0,.22); outline: .1rem solid var(--tinta); }
.zoom .nom-pt { flex: 1; min-width: 0; font-weight: 700; line-height: 1.1; }
.zoom .num-pt { font-size: .8em; }
.zoom .marca-visto, .zoom .marca-nuevo, .zoom .marca-suena { font-size: .5rem; font-family: var(--mano); }

/* ---------- Capas: tarjeta de resultado ---------- */
.capa { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 0 3%; }
.capa[hidden] { display: none; }
.capa.tarjeta { background: rgba(52,38,18,.62); animation: aparece .15s ease-out; }
.tarj { width: 40rem; max-width: 94%; max-height: 86%; overflow: hidden; background: var(--papel); border: .18rem solid var(--tinta); border-radius: 1rem; padding: .8rem 1.2rem; box-shadow: 0 0 2rem rgba(70,50,20,.32); animation: sube .18s ease-out; }
.tarj .quien { font: 700 .62rem var(--mano); color: var(--azul); margin-bottom: .25rem; }
.tarj .texto { font-size: 1.05rem; line-height: 1.25; color: var(--tinta); }
.tarj .texto.larga { font-size: .85rem; }
.tarj .extra { margin-top: .5rem; display: flex; flex-direction: column;  }
.tarj .extra > * + * { margin-top: .3rem; }
.tarj .linea { font-size: .75rem; line-height: 1.2; color: var(--tinta); background: var(--papel); border-left: .25rem solid var(--tinta); padding: .2rem .6rem; border-radius: 0 .4rem .4rem 0; }
.tarj .linea b { color: var(--azul); }
.tarj .objetos { display: flex;  flex-wrap: wrap; margin-top: .5rem; }
.tarj .objetos > * { margin-right: .7rem; margin-bottom: .7rem; }
.tarj .obj { display: flex; align-items: center;  background: var(--papel); border: .1rem solid var(--borde); border-radius: .6rem; padding: .25rem .6rem .25rem .3rem; font-size: .8rem; font-weight: 700; }
.tarj .obj > * + * { margin-left: .5rem; }
.tarj .obj img { width: 2.6rem; height: 2.6rem; object-fit: contain; border-radius: .4rem; background: #0d0804; }
.tarj .obj small { display: block; font-weight: 400; color: var(--tinta2); font-size: .6rem; }
.tarj.pase { display: flex; align-items: center; }
.tarj.pase .obj { flex: none; margin-right: .9rem; }
.tarj.prueba { text-align: center; padding: .9rem 1.4rem 1rem; }
.tarj.prueba .quien { font-size: .8rem; margin-bottom: .2rem; }
.tarj.prueba .pr-imgs { display: flex; justify-content: center; margin: .4rem 0 .6rem; }
.tarj.prueba .pr-img-o { display: block; width: 7rem; height: 7rem; border-radius: .8rem; background: #0d0804; border: .15rem solid var(--borde); }
.tarj.prueba .pr-img-o + .pr-img-o { margin-left: 1rem; }
.tarj.prueba .pr-img-o img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: .6rem; }
.tarj.prueba .pr-frase { font-size: 1.5rem; line-height: 1.25; color: var(--tinta); }
.tarj.prueba .pr-frase b { color: var(--azul); }
.tarj.prueba .pr-en { margin: 0 .5rem; font-weight: 400; color: var(--tinta2); }
.tarj.prueba .pr-frase i { margin-left: .5rem; font-style: normal; font-size: .6em; color: var(--tinta2); }
.tarj.prueba .pr-donde { margin-top: .4rem; font-size: .85rem; color: var(--tinta2); }
.tarj.sinefecto { border-color: var(--borde); border-style: dashed; text-align: center; background: var(--papel); }
.tarj.sinefecto .grande { font-size: 1.9rem; font-weight: 700; color: var(--tinta2); line-height: 1.1; margin: .2rem 0 .3rem; }
.tarj.sinefecto .quien { color: var(--tinta2); }
.tarj.sinefecto .llamar { margin-top: .4rem; font-size: .85rem; font-weight: 700; color: var(--tinta); background: var(--ambar); border-radius: .6rem; padding: .3rem .6rem; }
.tarj.logro { border-width: .25rem; padding: .9rem 1.2rem; display: grid; grid-template-columns: 11rem 1fr; gap: 1.1rem; align-items: center; }
.tarj.logro.conseguido { border-color: #9bd36a; background: radial-gradient(ellipse at 20% 40%, var(--papel2), var(--papel) 75%); box-shadow: 0 0 3rem rgba(155,211,106,.45); }
.tarj.logro.descubierto { border-color: #7fd4e6; background: radial-gradient(ellipse at 20% 40%, #123140, var(--papel) 75%); box-shadow: 0 0 3rem rgba(127,212,230,.45); grid-template-columns: 1fr; text-align: center; }
.tarj .imgObj { width: 11rem; height: 11rem; border-radius: .8rem; background: #0d0804 radial-gradient(circle, #3d5a28 0, transparent 70%); border: .15rem solid #9bd36a; display: flex; align-items: center; justify-content: center; animation: pop .3s cubic-bezier(.2,1.5,.4,1); }
.tarj .imgObj img { width: 100%; height: 100%; object-fit: contain; border-radius: .6rem; }
.sello { display: inline-block; transform: rotate(-3deg); border: .18rem solid currentColor; border-radius: .4rem; padding: .02em .5em; font: 700 1.5rem var(--mano); animation: sello .25s cubic-bezier(.2,1.6,.4,1); }
.conseguido .sello { color: var(--verde); }
.descubierto .sello { color: var(--azul); }
.tarj.logro h3 { font-size: 1.35rem; line-height: 1.12; color: var(--tinta); margin: .45rem 0 .15rem; }
.tarj.logro .obj-linea { font-size: .8rem; color: var(--tinta); margin: .1rem 0 .3rem; }
.tarj.logro .obj-linea i { color: var(--tinta2); }
.cuaderno .hora { font-family: var(--mano); color: var(--azul); font-size: .55rem; }
.tarj.logro .tiene { font-size: .85rem; color: var(--tinta); }
.tarj.logro .tiene b { color: var(--verde); }
.tarj.logro .frase { font-size: 1.25rem; line-height: 1.2; color: var(--tinta); margin: .6rem 0; }
.tarj.logro .texto { font-size: .72rem; color: var(--tinta2); margin-top: .35rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tarj.logro .linea { margin-top: .4rem; text-align: left; }
/* Tarjeta reducida (#69): si alguien enseña otra cosa mientras aún se lee el resultado, la escena nueva sale al instante y la tarjeta se queda pequeña en la esquina lo que le falte de lectura. */
.capa.tarjeta.reducida { background: none; animation: none; pointer-events: none; align-items: flex-end; justify-content: flex-start; padding: 0 0 1.2% 1.5%; }
.capa.tarjeta.reducida .tarj { -webkit-transform: scale(.5); transform: scale(.5); -webkit-transform-origin: left bottom; transform-origin: left bottom; animation: none; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes sube { from { transform: translateY(1.5rem) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes sello { 0% { transform: scale(2.2) rotate(-12deg); opacity: 0; } 100% { transform: rotate(-3deg); opacity: 1; } }
@keyframes cortina { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vibra { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .capa, .tarj, .sello, .imgObj, .sala.desvela, .sala.desvela .foto img, .monte.bruma::after { animation: none !important; } }

/* ---------- Hitos y dedicatorias leídas ---------- */
.avisos { position: fixed; z-index: 45; left: 0; right: 0; bottom: .6rem; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.avisos > * + * { margin-top: .4rem; }
.aviso-item { max-width: 62%; background: var(--ambar); color: var(--tinta); border: .1rem solid var(--tinta); border-radius: .2rem; padding: .3rem 1.4rem .35rem; text-align: center; box-shadow: 0 .3rem 1.2rem rgba(40,25,8,.45); animation: sube-aviso .4s ease-out; transition: opacity .45s ease; }
.aviso-item.sale { opacity: 0; }
.aviso-item b { display: block; font-size: 1.05rem; line-height: 1.15; font-family: var(--mano); }
.aviso-item span { display: block; font-size: .72rem; line-height: 1.2; margin-top: .1rem; font-family: var(--serif); }
body.conCapa .avisos { visibility: hidden; }
/* Lo que la escena pone abajo (tarjeta del punto, pie) se sube para dejarle sitio a un aviso; con una capa abierta desaparece del todo. */
body.conAviso .foco-card.abajo { bottom: calc(3% + 3.1rem); }
body.conAviso .zoom .pie-escena { bottom: 3.1rem; }
body.conCapa .foco-card, body.conCapa .pie-escena { display: none; }
@keyframes sube-aviso { from { transform: translateY(1.2rem); opacity: 0; } to { transform: none; opacity: 1; } }
.lectura { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(52,38,18,.62); }
.lec-caja { max-width: 70%; text-align: center; background: var(--papel); border: .15rem solid var(--tinta); border-radius: 1rem; padding: 1rem 1.6rem; }
.lec-caja small { font-family: var(--mano); font-size: .55rem; color: var(--azul); }
.lec-caja p { font-size: 1.5rem; line-height: 1.25; color: var(--tinta); margin: .5rem 0; }
.lec-caja span { font-size: .85rem; color: var(--tinta2); }

/* ---------- Decisión y dedicatorias ---------- */
.decide, .dedic { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.decide .dimg, .dedic .dimg { min-height: 0; display: flex; align-items: flex-start; }
.decide .dimg img, .dedic .dimg img { width: 100%; height: 12rem; object-fit: cover; border-radius: .7rem; border: .12rem solid var(--borde); }
.decide .dcuerpo { align-self: start; min-height: 0; background: var(--papel); border: .15rem solid var(--tinta); border-radius: .9rem; padding: .7rem 1.1rem; display: flex; flex-direction: column;  }
.decide .dcuerpo > * + * { margin-top: .5rem; }
.decide h2 { color: var(--azul); font-size: .7rem; font-family: var(--mano); }
.decide .dtexto { font-size: .95rem; line-height: 1.22; color: var(--tinta); }
.decide .opciones { display: flex;  flex: 0 0 auto; height: 11rem; }
.decide .opciones > * + * { margin-left: .6rem; }
.decide .opcion { flex: 1; background: var(--panel); border: .12rem solid var(--tinta); border-radius: .7rem; padding: .4rem .6rem; font-size: 1.2rem; font-weight: 700; text-align: center; line-height: 1.1; display: flex; flex-direction: column; justify-content: center; }
.decide .opcion span { display: block; font: 700 .6rem var(--mano); color: var(--azul); margin-bottom: .2rem; }
.decide .opcion small { display: block; margin-top: .3rem; font-size: .62rem; font-weight: 400; color: var(--tinta2); line-height: 1.15; }
.decide .votos { display: flex; flex-wrap: wrap; align-items: center;  font-size: .65rem; color: var(--tinta2); }
.decide .votos > * { margin-right: .4rem; margin-bottom: .3rem; }
.decide .votos .chip { border: .1rem solid var(--borde); border-radius: 1rem; padding: 0 .55em; font-size: .7rem; color: var(--tinta); }
.decide .votos .chip.si { background: var(--ambar); color: var(--tinta); border-color: var(--tinta); font-weight: 700; }
.dedic .dcuerpo { display: flex; flex-direction: column; justify-content: center; }
.dedic h2 { font-size: 1.6rem; color: var(--azul); margin-bottom: .4rem; }
.dedic p { font-size: 1rem; line-height: 1.25; margin: 0 0 .5rem; color: var(--tinta); }
.dedic .puntos { display: flex;  margin: .5rem 0 .3rem; }
.dedic .puntos > * + * { margin-left: .5rem; }
.dedic .puntos i { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: .15rem solid var(--tinta); display: block; }
.dedic .puntos i.hecho { background: var(--ambar); }
.dedic .nota { font-size: .8rem; color: var(--tinta2); }

/* ---------- Fin ---------- */
.fin { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.fin .izq, .fin .der { min-height: 0; display: flex; flex-direction: column;  }
.fin .izq > * + *, .fin .der > * + * { margin-top: .4rem; }
.fin .visor { width: 100%; }
.fin .marcador { display: flex;  background: var(--panel); border: .1rem solid var(--borde); border-radius: .7rem; padding: .3rem .8rem; }
.fin .marcador > * + * { margin-left: 1.1rem; }
.fin .cifra b { display: block; font-size: 1.05rem; color: var(--azul); font-family: var(--mano); line-height: 1.1; }
.fin .cifra span { font-size: .5rem; color: var(--tinta2); }
.fin .etiqueta { font-size: .8rem; color: var(--tinta); font-family: var(--mano); }
.fin .etiqueta b { color: var(--azul); }
.fin h2 { font-size: 1.5rem; color: var(--azul); line-height: 1.1; }
.fin .relato { font-size: .88rem; line-height: 1.25; color: var(--tinta); }
.fin .epilogo { font-size: .78rem; line-height: 1.25; color: var(--tinta); font-style: italic; }
.informe { font-size: .65rem; line-height: 1.22; color: var(--tinta); }
.informe p { margin-bottom: .1rem; }
.informe b { color: var(--azul); }
.fin .ded { font-style: italic; color: var(--tinta); font-size: .7rem; line-height: 1.2; margin: .05rem 0; }
.fin .botones { display: flex;  flex-wrap: wrap; margin-top: .2rem; }
.fin .botones > * { margin-right: .5rem; margin-bottom: .5rem; }
.fin .btn { font-size: .75rem; min-height: 0; padding: .3em 1em; }
.visor { position: relative; height: 0; padding-bottom: 66.667%; background: #0d0804; border: .3rem solid #fffaf0; border-radius: .7rem; overflow: hidden; }


/* ---------- Prólogo ---------- */
.prologo { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; overflow: hidden; background: #0b0e14; }
.prologo .pr-img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }
.prologo .fondo-pr { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; animation: fundidoPr .6s ease-out; }
.prologo .fondo-pr.video { animation: none; background: transparent; opacity: 0; transition: opacity .4s ease-out; }
.prologo .fondo-pr.video.pinta { opacity: 1; }   /* #181: solo se ve cuando la página recibe fotogramas */
/* Cuadro de la silla volcada: un acercamiento lento (1 a 1,35) hacia ella. Solo a la ilustración: el vídeo, sin transformar. */
.prologo.zoom-silla .fondo-pr:not(.video) { -webkit-transform-origin: 25% 84%; transform-origin: 25% 84%; animation: fundidoPr .6s ease-out, zoomSilla 9s ease-out forwards; }
@keyframes zoomSilla { from { transform: scale(1); } to { transform: scale(1.35); } }
.prologo .pr-vineta { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(0deg, rgba(8,10,16,.88) 0%, rgba(8,10,16,.55) 30%, transparent 58%), linear-gradient(180deg, rgba(8,10,16,.55) 0%, transparent 18%); }
.prologo .pr-texto { position: absolute; left: 6%; right: 6%; bottom: 14%; animation: sube .6s ease-out; }
.prologo .pr-texto h2 { font: 700 .7rem var(--mano); color: var(--postit); margin-bottom: .5rem; text-shadow: 0 .1rem .4rem #000; }
.prologo .pr-texto > p { font-size: 1.75rem; line-height: 1.18; font-weight: 800; color: #fff6e2; text-shadow: 0 .15rem .8rem #000, 0 0 .2rem #000; max-width: 62rem; }
.prologo .pr-texto > p.cita { font-size: 1.4rem; font-style: italic; font-weight: 700; }
.prologo .pr-texto > p { white-space: pre-line; }
.prologo .pr-texto > p.larga { font-size: 1.3rem; line-height: 1.3; font-weight: 700; max-width: 56rem; }
.prologo .pr-quien { display: flex; align-items: center;  margin-bottom: .6rem; }
.prologo .pr-quien > * + * { margin-left: .8rem; }
.prologo .pr-quien .av { width: 3.2rem; height: 3.2rem; border: .2rem solid var(--ambar); box-shadow: 0 0 1rem rgba(0,0,0,.8); }
.prologo .pr-quien span { font: 700 .55rem var(--mano); color: var(--postit); text-shadow: 0 .1rem .4rem #000; }
.prologo .pr-pie { position: absolute; left: 6%; right: 6%; bottom: 4%; display: flex; align-items: center; justify-content: space-between;  }
.prologo .pr-pie > * + * { margin-left: 1rem; }
.prologo .pr-puntos { display: flex;  }
.prologo .pr-puntos > * + * { margin-left: .5rem; }
.prologo .pr-puntos i { width: .75rem; height: .75rem; border-radius: 50%; border: .12rem solid var(--ambar); display: block; }
.prologo .pr-puntos i.hecho { background: rgba(255,190,90,.55); }
.prologo .pr-puntos i.ahora { background: var(--ambar); transform: scale(1.25); }
.prologo .pr-teclas { display: flex;  align-items: center; font: 700 .5rem var(--mano); color: var(--luz2); text-shadow: 0 .1rem .3rem #000; }
.prologo .pr-teclas > * + * { margin-left: 1.2rem; }
.prologo .pr-teclas .ok { font-size: .7rem; color: #1b1209; text-shadow: none; background: var(--ambar); border-radius: 2rem; padding: .45rem 1.1rem; opacity: 0; transform: translateY(.4rem); transition: opacity .5s, transform .5s; }
.prologo .pr-teclas .ok.listo { opacity: 1; transform: none; animation: latido 1.8s ease-in-out 1s infinite; }
@keyframes fundidoPr { from { opacity: 0; } to { opacity: 1; } }
@keyframes latido { 50% { box-shadow: 0 0 0 .5rem rgba(255,190,90,.25); } }
img.av.grande { width: 8rem; height: 8rem; border-width: .15rem; }
@keyframes fundidoPr { from { opacity: 0; } to { opacity: 1; } }

/* Avatares en el plano */
.ficha-s rect { stroke: var(--tinta); stroke-width: 1; }

/* Quien habla: su avatar, con la expresión del momento */
img.av.habla { width: 7rem; height: 7rem; border-width: .18rem; box-shadow: 0 0 1.2rem rgba(255,176,0,.45); }
.tarj.conRetrato { display: grid; grid-template-columns: 7.4rem 1fr; gap: 1rem; align-items: center; }
.tarj .retrato { text-align: center; }
.tarj .retrato span { display: block; margin-top: .2rem; font: 700 .6rem var(--mano); color: var(--azul); }
.decide .dimg { position: relative; }
.decide .dhabla { position: absolute; right: .5rem; bottom: .5rem; text-align: center; background: var(--papel); border-radius: .8rem; padding: .3rem .5rem; }
.decide .dhabla span { display: block; font: 700 .55rem var(--mano); color: var(--azul); margin-top: .1rem; }
.decide .dhabla img.av.habla { width: 6rem; height: 6rem; }

/* Guía de Tomás (primer minuto): franja entre la cabecera y la pantalla, sin tapar nada y sin provocar scroll. */

/* Actos: progreso en el panel y cortinilla «Hasta ahora…» */
.progreso { font-family: var(--mano); font-size: .5rem; margin-bottom: .25rem; color: var(--tinta2); }
.progreso b { color: var(--azul); display: block; font-size: .55rem; }
.progreso .hitos { display: flex;  flex-wrap: wrap; margin-top: .1rem; }
.progreso .hitos > * { margin-right: .5rem; margin-bottom: .5rem; }
.progreso i { font-style: normal; opacity: .75; }
.progreso i.hecho { color: var(--verde); opacity: 1; font-weight: 700; }
.caja.progresoZ { padding: .3rem .6rem; }
.caja.progresoZ .progreso { margin: 0; }
.capa.actoC { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; background: #0b0703; display: block; padding: 0; overflow: hidden; }
.actoC .ac-fondo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.actoC .ac-fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.actoC .ac-cuerpo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 8%;  background: linear-gradient(90deg, var(--papel), var(--papel)); }
.actoC .ac-cuerpo > * + * { margin-top: .5rem; }
.actoC .ac-n { font-family: var(--mano); color: var(--azul); font-size: 1rem; }
.actoC h2 { font-size: 2.3rem; color: var(--tinta); line-height: 1.05; }
.actoC .ac-hasta small, .actoC .ac-ahora small { font-family: var(--mano); font-size: .6rem; color: var(--azul); display: block; }
.actoC .ac-hasta ul { padding: 0; list-style: none; display: flex; flex-direction: column;  margin-top: .15rem; }
.actoC .ac-hasta ul > * + * { margin-top: .25rem; }
.actoC .ac-hasta li { font-size: 1rem; line-height: 1.25; color: var(--tinta); max-width: 36rem; }
.actoC .ac-ahora { margin-top: .5rem; border-left: .25rem solid var(--tinta); padding-left: .7rem; }
.actoC .ac-ahora b { font-size: 1.15rem; color: var(--azul); font-weight: 700; }
.actoC .ac-voz { position: absolute; right: 6%; bottom: 14%; text-align: center; font-family: var(--mano); font-size: .55rem; color: var(--tinta2); }
.actoC .ac-voz img { width: 7rem; height: 7rem; border-radius: 50%; border: .15rem solid var(--tinta); object-fit: cover; display: block; margin: 0 auto .2rem; }
.actoC .ac-saltar { position: absolute; right: 1.2rem; bottom: .8rem; font-family: var(--mano); font-size: .45rem; color: var(--tinta2); opacity: .8; }
/* Escena del rescate (#80): Elena sale de la caseta, a pantalla completa, antes del voto D2. */
.capa.rescateC { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; background: #0b0703; display: block; padding: 0; overflow: hidden; }
.rescateC .rs-fondo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.rescateC .rs-fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .8; -webkit-animation: rsAcerca 14s ease-out forwards; animation: rsAcerca 14s ease-out forwards; }
@keyframes rsAcerca { from { -webkit-transform: scale(1); transform: scale(1); } to { -webkit-transform: scale(1.08); transform: scale(1.08); } }
.rescateC .rs-cuerpo { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 8% 3.2rem; background: linear-gradient(180deg, rgba(11,7,3,0), rgba(11,7,3,.82) 30%, rgba(11,7,3,.95)); color: #fbf4de; }
.rescateC .rs-n { font-family: var(--mano); color: #ffb000; font-size: 1.1rem; }
.rescateC .rs-narra { font-size: 1.05rem; line-height: 1.3; margin-top: .35rem; max-width: 44rem; opacity: .9; }
.rescateC .rs-habla { display: flex; align-items: center; margin-top: .9rem; }
.rescateC .rs-habla img.av { flex: none; margin-right: 1.2rem; border-color: #ffb000; box-shadow: 0 0 1.4rem rgba(255,176,0,.5); }
.rescateC .rs-habla small { font-family: var(--mano); font-size: .6rem; color: #ffb000; display: block; }
.rescateC .rs-cita { font-size: 1.55rem; line-height: 1.25; font-weight: 700; max-width: 46rem; margin-top: .15rem; }
.rescateC .rs-saltar { position: absolute; right: 1.2rem; bottom: .8rem; font-family: var(--mano); font-size: .45rem; color: #fbf4de; opacity: .75; }
body.pasadaMedianoche::after { content: ''; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(60,40,10,.1); pointer-events: none; z-index: 70; }

/* ---------- Fase 5: golpes, fusible, «Hablad» y cierre ---------- */
@keyframes sacude { 0%,100% { transform: translate(0,0); } 10% { transform: translate(-.5rem,.2rem); } 20% { transform: translate(.5rem,-.2rem); } 30% { transform: translate(-.4rem,-.3rem); } 40% { transform: translate(.4rem,.3rem); } 50% { transform: translate(-.3rem,.1rem); } 60% { transform: translate(.3rem,-.1rem); } 80% { transform: translate(-.15rem,.1rem); } }
body.sacude #pantalla { animation: sacude 1s ease-in-out; }
.capa.golpesC { background: rgba(0,0,0,.55); }
.golpesC .gl-txt { font-size: 2.3rem; font-weight: 700; color: #fff3da; text-align: center; padding: .6rem 1.6rem; background: rgba(0,0,0,.75); border-radius: .6rem; border: .1rem solid var(--ambar); max-width: 80%; line-height: 1.15; text-shadow: 0 0 1rem rgba(255,176,0,.5); }

.capa.fusibleC { background: #0b0703; display: block; z-index: 90; overflow: hidden; }
.fusibleC .fu-fondo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.fusibleC .fu-fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.fusibleC .fu-cuerpo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 24% 12% 8%; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0) 65%); }
.fusibleC h2 { font-size: 2.4rem; color: #fff3da; line-height: 1.05; text-shadow: 0 0 1rem rgba(0,0,0,.8); }
.fusibleC .fu-cuerpo p { font-size: 1.1rem; color: var(--luz); margin-top: .3rem; }
.fusibleC.grande .fu-cuerpo { padding-right: 8%; }
.fusibleC.grande h2 { font-size: 4rem; color: var(--postit); text-shadow: 0 0 1.5rem rgba(255,176,0,.9); }
.fusibleC.grande .fu-fondo img { opacity: .85; }
/* Parpadeo: dos destellos por segundo como máximo (sin riesgo de fotosensibilidad); el destello es un único fogonazo suave. */
@keyframes parpadea { 0%,49% { opacity: .35; } 50%,100% { opacity: .75; } }
.fusibleC.parpadeo .fu-fondo img { animation: parpadea 1s steps(1) infinite; }
@keyframes fogonazo { from { opacity: .9; } to { opacity: .55; } }
.fusibleC.destello .fu-fondo img { animation: fogonazo 1s ease-out both; }
.fusibleC .fu-voz { position: absolute; right: 6%; bottom: 12%; display: flex; align-items: center;  font-family: var(--mano); color: var(--luz); font-size: .6rem; }
.fusibleC .fu-voz > * + * { margin-left: .6rem; }
.fusibleC .fu-voz img { width: 7rem; height: 7rem; border-radius: 50%; border: .15rem solid var(--ambar); object-fit: cover; }
/* #88: escena de la cinta a pantalla completa. Sin gap en flex ni inset (Chromium 68). */
.capa.escenaC { background: #0b0703; display: block; z-index: 90; overflow: hidden; }
.escenaC .es-fondo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.escenaC .es-fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.escenaC .es-cuerpo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; padding: 0 22% 6% 7%; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 70%); }
.escenaC .es-obj { flex: none; width: 15rem; margin-right: 2.4rem; padding: .6rem; background: #fffaf0; border-radius: .2rem; transform: rotate(-3deg); box-shadow: .3rem .5rem 1.4rem rgba(0,0,0,.7); }
.escenaC .es-obj img { display: block; width: 100%; height: auto; }
.escenaC .es-txt { flex: 1; min-width: 0; }
.escenaC .es-txt small { display: block; font-family: var(--mano); color: var(--ambar); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.escenaC .es-txt h2 { font-size: 2rem; color: #fff3da; line-height: 1.1; margin: .2rem 0 1rem; text-shadow: 0 0 1rem rgba(0,0,0,.8); }
.escenaC .es-sub { min-height: 6.2rem; font-size: 1.7rem; line-height: 1.3; color: #fff; text-shadow: 0 .1rem .6rem rgba(0,0,0,.95); border-left: .25rem solid var(--ambar); padding-left: 1rem; }
.escenaC .es-voz { position: absolute; right: 5%; bottom: 10%; display: flex; flex-direction: column; align-items: center; font-family: var(--mano); color: var(--luz); font-size: .9rem; }
.escenaC .es-voz > * + * { margin-top: .4rem; }
.escenaC .es-voz img { width: 8rem; height: 8rem; border-radius: 50%; border: .15rem solid #fffaf0; object-fit: cover; animation: es-habla 1.6s ease-in-out infinite; }
@keyframes es-habla { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,176,0,.0); } 50% { box-shadow: 0 0 0 .5rem rgba(255,176,0,.35); } }
/* #189: subtítulo de un clip de voz cuyo texto no está ya en pantalla (jugar sin sonido). El mismo trazo que .es-sub, sobre todas las capas. */
.subtitulo { position: fixed; z-index: 95; left: 7%; right: 7%; bottom: 4%; max-height: 40%; overflow: hidden; padding: .5rem 1rem; font-size: 1.25rem; line-height: 1.3; color: #fff; text-shadow: 0 .1rem .6rem rgba(0,0,0,.95); background: rgba(11,7,3,.82); border-left: .25rem solid var(--ambar); border-radius: .2rem; pointer-events: none; }
.subtitulo[hidden] { display: none; }
.escenaC .es-saltar { position: absolute; left: 0; right: 0; bottom: 3%; text-align: center; font-size: .8rem; color: rgba(255,243,218,.65); }

.hablen { display: flex; align-items: center;  margin: .5rem auto; padding: .4rem 1rem; border: .08rem solid var(--tinta); border-radius: .8rem; background: rgba(255,176,0,.08); max-width: 90%; }
.hablen > * + * { margin-left: .8rem; }
.hablen svg { width: 3.2rem; height: 3.2rem; flex: none; transform: rotate(-90deg); }
.hablen circle { fill: none; stroke-width: 9; }
.hablen .fondo { stroke: rgba(255,243,218,.18); }
.hablen .aro { stroke: var(--azul); stroke-linecap: round; animation-name: vacia; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes vacia { from { stroke-dashoffset: 0; } to { stroke-dashoffset: var(--c); } }
.hablen b { display: block; font-size: 1.2rem; color: var(--azul); }
.hablen span { font-size: .6rem; color: var(--tinta2); }
.hablen .listos { color: var(--azul); }

.capa.cierreC { background: radial-gradient(ellipse at 50% 40%, #2b1d0b 0%, #0b0703 80%); z-index: 90; flex-direction: column; text-align: center; padding: 0 8%; }
.cierreC small { font-family: var(--mano); font-size: .55rem; color: var(--azul); display: block; margin-bottom: .3rem; }
.cierreC .ci-llamada { display: flex; align-items: center;  text-align: left; max-width: 52rem; }
.cierreC .ci-llamada > * + * { margin-left: 1.4rem; }
.cierreC .ci-llamada img.av { width: 9rem; height: 9rem; border-radius: 50%; border: .2rem solid var(--tinta); object-fit: cover; flex: none; box-shadow: 0 0 2rem rgba(255,176,0,.45); }
.cierreC .ci-llamada p { font-size: 1.5rem; line-height: 1.3; color: var(--tinta); }
.cierreC .ci-texto { max-width: 46rem; }
.cierreC .ci-texto p { font-size: 1.5rem; line-height: 1.35; color: var(--tinta); }
.cierreC .ci-texto.disco p { font-style: italic; }
.cierreC .ci-texto.disco small { margin-top: .8rem; text-transform: none; font-size: .65rem; color: var(--tinta2); }
.cierreC .ci-saltar { position: absolute; right: 1.2rem; bottom: .8rem; font-family: var(--mano); font-size: .45rem; color: var(--tinta2); opacity: .8; }
.cierreC .ci-creditos { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
@keyframes rueda { from { transform: translateY(100vh); } to { transform: translateY(-100%); } }
.cierreC .ci-rueda { position: absolute; left: 12%; right: 12%; top: 0; animation-name: rueda; animation-timing-function: linear; animation-fill-mode: forwards; text-align: left; }
.cierreC .ci-rueda h2 { font-size: 1.8rem; color: var(--azul); margin-bottom: .8rem; text-align: center; }
.cierreC .ci-rueda p { font-size: 1.15rem; line-height: 1.3; color: var(--tinta); margin-bottom: .7rem; }
.cierreC .ci-rueda p b { font-family: var(--mano); color: var(--azul); margin-right: .5rem; }
.cierreC .ci-rueda p.fin { font-size: 1.4rem; }
@media (prefers-reduced-motion: reduce) { body.sacude #pantalla, .fusibleC .fu-fondo img, .escenaC .es-voz img, .hablen .aro { animation: none !important; } .cierreC .ci-rueda { animation-duration: 1ms !important; transform: none; position: static; } }

/* ---------- Fase 6: quien espera juega ---------- */

/* ---------- Fase 7: enseñar en la tele ---------- */
.capa.ensenaC { background: rgba(52,38,18,.62); animation: aparece .25s ease-out; }
.ensenaC .en-card { display: flex; align-items: center;  max-width: 52rem; padding: 1rem 1.4rem; background: var(--papel); border: .12rem solid var(--tinta); border-radius: 1rem; box-shadow: 0 0 2.5rem rgba(255,176,0,.3); }
.ensenaC .en-card > * + * { margin-left: 1.4rem; }
.ensenaC .en-img img { width: 10rem; height: 10rem; object-fit: cover; border-radius: .7rem; border: .1rem solid var(--borde); display: block; }
.ensenaC .en-quien { display: flex; align-items: center;  }
.ensenaC .en-quien > * + * { margin-left: .7rem; }
.ensenaC .en-quien img.av { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: .12rem solid var(--tinta); object-fit: cover; }
.ensenaC .en-quien b { font-size: 1.5rem; color: var(--azul); line-height: 1.1; }
.ensenaC .en-cuerpo p { font-size: 1.15rem; line-height: 1.3; margin-top: .6rem; color: var(--tinta); }

/* ---------- Ayuda de Tomás en el primer sitio (#53) ---------- */
/* Ficha dentro de la columna derecha (en el hueco de las notas y el progreso mientras dura la ayuda): no flota ni tapa nada. */
.onbTele { position: relative; flex: none; display: flex; flex-direction: column; background: rgba(52,38,18,.62); border: .2rem solid var(--tinta); border-radius: 1rem; padding: .55rem .7rem .5rem; box-shadow: 0 0 2rem rgba(70,50,20,.32); animation: sube .35s ease-out; }
.onbTele > * + * { margin-top: .35rem; }
.onbTele[hidden] { display: none; }
.onbTele .onb-cab { display: flex; align-items: center;  }
.onbTele .onb-cab > * + * { margin-left: .6rem; }
.onbTele .onb-cab img.av.habla { width: 3.2rem; height: 3.2rem; flex: none; }
.onbTele .onb-quien b { display: block; font: 700 .55rem var(--mano); color: var(--azul); }
.onbTele .onb-quien small { display: block; margin-top: .1rem; font: 700 .5rem var(--mano); color: var(--tinta2); }
.onbTele .onb-txt { margin: 0; font-size: .8rem; line-height: 1.22; color: var(--tinta); }
.onbTele .onb-haz { margin: 0; font-size: .92rem; line-height: 1.15; font-weight: 700; color: var(--tinta); background: var(--ambar); border-radius: .5rem; padding: .25rem .5rem; }
.onbTele .onb-pie { display: flex; align-items: center; justify-content: flex-end;  font: 700 .5rem var(--mano); color: var(--tinta2); }
.onbTele .onb-pie > * + * { margin-left: .5rem; }
.onbTele .onb-pie .btn { min-height: 0; padding: .15rem .6rem; font-size: .6rem; border-width: .1rem; }
.zoom .lista-puntos li.onb { background: rgba(255,176,0,.3); outline: .1rem dashed var(--tinta); }
/* Un personaje que habla y gana algo a la vez: su avatar a un lado de la tarjeta. */
.tarj.logro.conRetrato { grid-template-columns: 7.4rem 11rem 1fr; }
.tarj.logro.descubierto.conRetrato { grid-template-columns: 7.4rem 1fr; text-align: left; }
.tarj.sinefecto.conRetrato { text-align: left; }

/* ======================= Cuaderno (tele) ======================= */
body.lobby #fondo::after, #fondo::after { background: linear-gradient(180deg, rgba(205,184,142,.78) 0%, rgba(205,184,142,.7) 50%, rgba(190,166,120,.86) 100%); }
.marca h1 { font-size: .95rem; letter-spacing: 0; }
.marca small { font-family: var(--serif); font-style: italic; font-size: .55rem; }
.btn.voz { font-size: .55rem; }
.volumen { font-size: .5rem; color: var(--tinta); }
.reloj b { font-size: 1.15rem; }
.reloj small, .cifrasCab { font-size: .55rem; }
.cifrasCab b { font-size: 1rem; }
.caja { background: var(--papel); border: .1rem solid rgba(35,26,16,.55); border-radius: .25rem; box-shadow: .1rem .2rem .5rem rgba(70,50,20,.4); position: relative; }
.caja h2 { color: var(--azul); font-size: .65rem; }
.aviso { color: var(--tinta); font-family: var(--mano); }
/* sala de espera: fichas sobre el cartón */
.sala-espera section { position: relative; background: var(--papel); border: .1rem solid rgba(35,26,16,.55); border-radius: .25rem; box-shadow: .15rem .3rem .8rem rgba(70,50,20,.5); }
.sala-espera section::before { content: ""; position: absolute; top: -.35rem; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem; border-radius: 50%; z-index: 3; background: radial-gradient(circle at 35% 30%, #ff9e94 0, #d03a2f 45%, #8a1610 100%); box-shadow: 0 .18rem .22rem rgba(50,25,8,.45); }
.portada { -webkit-transform: rotate(-.35deg); transform: rotate(-.35deg); background: var(--papel) repeating-linear-gradient(0deg, transparent 0, transparent 1.18rem, rgba(27,74,140,.12) 1.18rem, rgba(27,74,140,.12) 1.22rem); }
.reparto { -webkit-transform: rotate(.35deg); transform: rotate(.35deg); }
.portada .titulo h2 { font-size: 2.4rem; text-shadow: none; }
.portada .titulo .sub { font-family: var(--serif); font-style: italic; font-size: .62rem; }
.portada .qr { background: #fff; border: .1rem solid var(--tinta); border-radius: .15rem; box-shadow: .1rem .2rem .5rem rgba(70,50,20,.4); -webkit-transform: rotate(1.2deg); transform: rotate(1.2deg); }
.portada .qr p { color: var(--tinta); font-family: var(--mano); font-size: .52rem; }
.pasos li { color: var(--tinta); }
.pasos li b { background: var(--postit2); color: var(--tinta); border: .1rem solid var(--tinta); font-family: var(--mano); }
.portada .sala small, .portada .url small, .portada .sala small { font-family: var(--mano); font-size: .55rem; color: var(--azul); }
.portada .sala { background: var(--postit); display: inline-block; padding: .2rem .8rem .3rem; -webkit-transform: rotate(-1.5deg); transform: rotate(-1.5deg); box-shadow: .08rem .16rem .35rem rgba(70,50,20,.4); }
.portada .codigo { white-space: nowrap; font-family: var(--mano); font-size: 2.7rem; letter-spacing: .2em; color: var(--tinta); text-shadow: none; }
.portada .url { border-top: .06rem dashed rgba(35,26,16,.45); }
.portada .url span { font-family: var(--serif); color: var(--tinta); }
.reparto h3 { color: var(--azul); font-size: .7rem; }
.reparto h3 span { color: var(--tinta); }
.reparto .jugadores li { background: var(--papel2); border: .08rem solid var(--tinta); border-radius: .3rem; }
.reparto .jugadores li .ok { background: var(--verde); color: #fff; }
.reparto .jugadores li.libre { background: transparent; border: .08rem dashed rgba(35,26,16,.4); }
.reparto .jugadores li.libre b, .reparto .jugadores li.libre small { color: var(--tinta2); opacity: .75; }
.reparto .empezar .nota { color: var(--tinta2); }
.reparto .empezar kbd { border-color: var(--tinta2); color: var(--tinta); font-family: var(--serif); }
/* mapa: croquis a lápiz sobre hoja cuadriculada */
.mapa { position: relative; background: var(--papel) linear-gradient(rgba(27,74,140,.13) 1px, transparent 1px) 0 0 / 1.2rem 1.2rem, linear-gradient(90deg, rgba(27,74,140,.13) 1px, transparent 1px) 0 0 / 1.2rem 1.2rem; border: .1rem solid rgba(35,26,16,.45); box-shadow: .12rem .25rem .6rem rgba(70,50,20,.45); padding: .2rem .3rem; }
.mapa::before { content: ""; position: absolute; top: -.35rem; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem; border-radius: 50%; z-index: 3; background: radial-gradient(circle at 35% 30%, #ff9e94 0, #d03a2f 45%, #8a1610 100%); box-shadow: 0 .18rem .22rem rgba(50,25,8,.45); }
.mapa-svg { font-family: var(--mano); }
.mapa-svg text { fill: var(--tinta); font-family: var(--mano); }
.zona-e, .zona-m { fill: rgba(255,250,235,.5); stroke: var(--lapiz); stroke-width: 2.6; stroke-dasharray: none; -webkit-filter: url(#lapiz); filter: url(#lapiz); }
.zona-m { stroke-dasharray: 9 6; fill: rgba(150,175,130,.22); }
.zona-m.bruma { fill: rgba(190,200,195,.55); }
.mapa-svg .zona-t { font: 700 15px var(--mano); fill: var(--lapiz); }
.arbol { fill: #5d7d49; opacity: .6; }
.mastil { stroke: var(--lapiz); opacity: 1; }
.paso { stroke: var(--carton2); opacity: 1; }
.camino { stroke: var(--rojo); stroke-width: 3.5; -webkit-filter: none; filter: none; }
.camino.cerrado { stroke: #8a8f88; opacity: .8; }
.puerta-trasera { fill: var(--carton2); }
.mapa-svg.abierto .puerta-trasera { fill: var(--postit2); -webkit-filter: none; filter: none; stroke: var(--tinta); stroke-width: 1.5; }
.sala-s .marco { fill: var(--papel); stroke: var(--lapiz); stroke-width: 2.6; -webkit-filter: url(#lapiz); filter: url(#lapiz); }
.sala-s .nom { font-weight: 700; font-size: 16px; fill: var(--tinta); }
.sala-s .cuenta { font: 13px var(--mano); fill: var(--tinta2); }
.sala-s circle { stroke: var(--tinta); }
.sala-s circle.hecho { fill: var(--azul); stroke: var(--azul); }
.sala-s.oculta .nom { fill: var(--tinta2); }
.sala-s .vela rect { opacity: .92; }
.mapa-svg .sala-s .signo { font: 700 38px var(--mano); fill: var(--lapiz); opacity: .9; }
.sala-s.mirando .marco { stroke: var(--rojo); }
.mapa-svg .sala-s .mira { font: 700 13px var(--mano); fill: var(--tinta); stroke: var(--papel); stroke-width: 4px; }
.sala-s.bruma .marco { stroke: #7d9181; }
.mapa-svg .sala-s.bruma .nom { fill: var(--tinta2); }
.ficha-s rect { fill: var(--postit2); stroke: var(--tinta); }
.mapa-svg .ficha-s text { fill: var(--tinta); }
.ficha-s.elena rect { fill: #a9dcea; }
.insignia rect { fill: var(--postit2); }
.mapa-svg .insignia text { fill: var(--tinta) !important; font-family: var(--mano); }
.pasillo rect { fill: var(--papel2); stroke: var(--lapiz); stroke-dasharray: 4 5; }
.mapa-svg .pasillo .rotulo { font: 700 16px var(--mano); fill: var(--azul); }
.velo-monte { fill: rgba(235,240,235,.6); }
/* columna derecha */
.objetivo { background: var(--papel); border: .1rem solid var(--tinta); border-radius: .2rem; box-shadow: .1rem .18rem .4rem rgba(70,50,20,.4); position: relative; }
.objetivo small { font: 700 .58rem var(--mano); color: var(--azul); }
.objetivo b { font-family: var(--serif); color: var(--tinta); }
.objetivo .falta { color: var(--tinta2); }
.cuaderno { background: var(--papel) repeating-linear-gradient(0deg, transparent 0, transparent .9rem, rgba(27,74,140,.13) .9rem, rgba(27,74,140,.13) .94rem); }
.cuaderno li::before { color: var(--rojo); }
.cuaderno .hora { color: var(--azul); }
.notas { border-color: rgba(35,26,16,.55); background: var(--papel2); }
.notas li { background: var(--postit); border-left: 0; border-radius: .1rem; color: var(--tinta); box-shadow: .06rem .12rem .25rem rgba(70,50,20,.4); }
.notas li:nth-child(4n+2) { background: #ffd0d9; -webkit-transform: rotate(.5deg); transform: rotate(.5deg); }
.notas li:nth-child(4n+3) { background: #cfe5ff; -webkit-transform: rotate(-.4deg); transform: rotate(-.4deg); }
.notas li:nth-child(4n+4) { background: #d8f0c4; -webkit-transform: rotate(.3deg); transform: rotate(.3deg); }
.notas li b { color: var(--azul); font-family: var(--mano); font-size: .56rem; }
.notas li .av { border-color: var(--tinta); background: var(--papel); }
.notas li.ultima { box-shadow: 0 0 0 .1rem var(--tinta), .06rem .12rem .25rem rgba(70,50,20,.4); }
.notas li.llega { background: var(--postit2); color: var(--tinta); }
.notas li.llega b { color: var(--azul); }
.avisoPista { background: #fde2d6; border: .1rem solid var(--rojo); color: var(--tinta); border-radius: .2rem; }
.progreso b { color: var(--azul); font-family: var(--mano); }
.progreso i.hecho { color: var(--verde); }
/* zoom */
.zoom h2.sitio { color: var(--tinta); font-family: var(--mano); }
.zoom h2.sitio b { color: var(--azul); }
.zoom h2.sitio span { color: var(--tinta2); font-family: var(--serif); font-style: italic; }
.pie-escena b { color: var(--postit2); }
.foco-card { background: var(--papel); border: .12rem solid var(--tinta); border-radius: .25rem; box-shadow: .1rem .25rem .7rem rgba(40,25,8,.6); }
.foco-card .fc-etq { color: var(--azul); font-family: var(--mano); font-size: .55rem; }
.zoom .lista-puntos li.foco { outline-color: var(--tinta); }
/* tarjetas */
.capa.tarjeta, .capa.ensenaC { background: rgba(52,38,18,.62); }
.tarj { position: relative; background: var(--papel); border: .12rem solid var(--tinta); border-radius: .25rem; box-shadow: .15rem .35rem 1rem rgba(30,18,5,.6); }
.tarj::before, .onbTele::before, .lec-caja::before, .decide .dcuerpo::before, .en-card::before { content: ""; position: absolute; top: -.4rem; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem; border-radius: 50%; z-index: 3; background: radial-gradient(circle at 35% 30%, #ff9e94 0, #d03a2f 45%, #8a1610 100%); box-shadow: 0 .18rem .22rem rgba(50,25,8,.45); }
.tarj .quien, .tarj .retrato span { color: var(--azul); font-family: var(--mano); }
.tarj .linea { background: var(--postit); border-left: 0; border-radius: .1rem; color: var(--tinta); }
.tarj .linea b { color: var(--azul); }
.tarj .obj { background: var(--papel2); border-color: var(--tinta); }
.tarj.sinefecto { background: var(--papel2); border-color: var(--tinta2); border-style: dashed; }
.tarj.sinefecto .grande { color: var(--tinta2); font-family: var(--mano); }
.tarj.sinefecto .llamar { background: var(--postit2); color: var(--tinta); border: .08rem solid var(--tinta); border-radius: .2rem; }
.tarj.logro.conseguido { border-color: var(--verde); background: var(--papel); box-shadow: .15rem .35rem 1rem rgba(30,18,5,.6); }
.tarj.logro.descubierto { border-color: var(--azul); background: var(--papel); box-shadow: .15rem .35rem 1rem rgba(30,18,5,.6); }
.tarj .imgObj { background: #fff; border: .35rem solid #fffaf0; border-radius: .1rem; box-shadow: .1rem .22rem .5rem rgba(70,50,20,.5); -webkit-transform: rotate(-2deg); transform: rotate(-2deg); }
.tarj .imgObj img { border-radius: 0; background: #0d0804; }
.sello { text-transform: uppercase; letter-spacing: .04em; font-family: var(--mano); border: .2rem double currentColor; border-radius: .3rem; background: transparent; opacity: .92; }
.conseguido .sello { color: var(--verde); }
.descubierto .sello { color: var(--azul); }
.tarj.logro h3 { color: var(--tinta); }
.tarj.logro .obj-linea, .tarj.logro .tiene { color: var(--tinta); }
.tarj.logro .tiene b { color: var(--verde); }
.tarj.logro .frase { color: var(--tinta); }
.tarj.logro .texto { color: var(--tinta2); }
img.av { border-color: var(--tinta); background: var(--papel2); }
/* (los avisos de abajo, .aviso-item, llevan ya su estilo de cuaderno) */
.lectura { background: rgba(52,38,18,.7); }
.lec-caja { background: var(--papel); border: .12rem solid var(--tinta); border-radius: .25rem; position: relative; }
.lec-caja small { color: var(--azul); font-family: var(--mano); font-size: .65rem; }
.lec-caja p { color: var(--tinta); font-family: var(--mano); }
.lec-caja span { color: var(--tinta2); }
/* decisión y dedicatorias */
.decide .dcuerpo { background: var(--papel); border: .12rem solid var(--tinta); border-radius: .25rem; position: relative; box-shadow: .12rem .25rem .6rem rgba(70,50,20,.45); }
.decide h2 { color: var(--azul); font-size: .8rem; }
.decide .dtexto { color: var(--tinta); }
.decide .opcion { background: var(--postit); border: .1rem solid var(--tinta); border-radius: .15rem; box-shadow: .1rem .2rem .4rem rgba(70,50,20,.45); font-family: var(--mano); }
.decide .opcion:nth-child(2) { background: #cfe5ff; -webkit-transform: rotate(.5deg); transform: rotate(.5deg); }
.decide .opcion:nth-child(1) { -webkit-transform: rotate(-.5deg); transform: rotate(-.5deg); }
.decide .opcion span { color: var(--azul); font-size: .7rem; }
.decide .opcion small { color: var(--tinta2); font-family: var(--serif); }
.decide .votos { color: var(--tinta2); }
.decide .votos .chip { border-color: var(--tinta); color: var(--tinta); background: var(--papel2); }
.decide .votos .chip.si { background: var(--postit2); color: var(--tinta); border-color: var(--tinta); }
.decide .dhabla { background: var(--papel); border: .08rem solid var(--tinta); border-radius: .2rem; box-shadow: .08rem .16rem .4rem rgba(40,25,8,.5); }
.decide .dhabla span { color: var(--azul); font-family: var(--mano); }
.decide .dimg img, .dedic .dimg img { border: .3rem solid #fffaf0; border-radius: .1rem; box-shadow: .1rem .22rem .5rem rgba(70,50,20,.5); }
.dedic h2 { color: var(--azul); }
.dedic p { color: var(--tinta); }
.dedic .puntos i { border-color: var(--tinta); }
.dedic .puntos i.hecho { background: var(--azul); }
.dedic .nota { color: var(--tinta2); }
/* final */
.fin .marcador { background: var(--papel); border: .1rem solid var(--tinta); border-radius: .2rem; box-shadow: .1rem .2rem .4rem rgba(70,50,20,.4); }
.fin .cifra b { color: var(--azul); }
.fin .cifra span { color: var(--tinta2); }
.fin .etiqueta { color: var(--tinta); font-family: var(--mano); }
.fin .etiqueta b { color: var(--azul); }
.fin h2 { color: var(--azul); text-shadow: none; }
.fin .relato, .fin .ded { color: var(--tinta); }
.fin .epilogo, .informe { color: var(--tinta); }
.informe b { color: var(--azul); }
/* escenas sobre ilustración (intro, fusible, golpes) */
.prologo .pr-texto h2, .prologo .pr-quien span { color: var(--postit2); font-family: var(--mano); }
.prologo .pr-quien .av { border-color: #fffaf0; }
.prologo .pr-puntos i { border-color: var(--postit2); }
.prologo .pr-puntos i.ora, .prologo .pr-puntos i.ahora { background: var(--postit2); }
.prologo .pr-teclas { color: var(--luz2); font-family: var(--mano); }
.prologo .pr-teclas .ok { background: var(--postit2); color: var(--tinta); border: .1rem solid var(--tinta); border-radius: .3rem; font-family: var(--mano); }
/* acto: hoja nueva sobre la foto */
.capa.actoC { background: var(--papel); }
.actoC .ac-fondo img { opacity: .55; }
.actoC .ac-cuerpo { background: linear-gradient(90deg, rgba(251,244,222,.97), rgba(251,244,222,.72)); }
.actoC .ac-n { color: var(--azul); font-size: 1.1rem; }
.actoC h2 { color: var(--tinta); }
.actoC .ac-hasta small, .actoC .ac-ahora small { color: var(--azul); }
.actoC .ac-hasta li { color: var(--tinta); }
.actoC .ac-ahora { border-left-color: var(--rojo); }
.actoC .ac-ahora b { color: var(--tinta); }
.actoC .ac-voz, .actoC .ac-saltar { color: var(--tinta2); }
.actoC .ac-voz img { border-color: #fffaf0; box-shadow: .1rem .22rem .5rem rgba(70,50,20,.5); }
.golpesC .gl-txt { font-family: var(--mano); border-color: var(--postit2); }
.fusibleC .fu-cuerpo p { color: var(--luz); }
.fusibleC.grande h2 { color: var(--postit2); font-family: var(--mano); text-shadow: 0 0 1rem rgba(0,0,0,.8); letter-spacing: .06em; text-transform: uppercase; }
.fusibleC .fu-voz { color: var(--luz); font-family: var(--mano); }
.fusibleC .fu-voz img { border-color: #fffaf0; }
.hablen { background: var(--postit); border: .1rem solid var(--tinta); border-radius: .2rem; }
.hablen .fondo { stroke: rgba(35,26,16,.18); }
.hablen .aro { stroke: var(--rojo); }
.hablen b { color: var(--tinta); font-family: var(--mano); }
.hablen span { color: var(--tinta2); }
/* cierre: última página */
.capa.cierreC { background: var(--papel) repeating-linear-gradient(0deg, transparent 0, transparent 1.2rem, rgba(27,74,140,.12) 1.2rem, rgba(27,74,140,.12) 1.24rem); }
.cierreC small { color: var(--azul); font-family: var(--mano); font-size: .7rem; }
.cierreC .ci-llamada img.av { border-color: #fffaf0; box-shadow: .1rem .25rem .6rem rgba(70,50,20,.5); }
.cierreC .ci-llamada p, .cierreC .ci-texto p, .cierreC .ci-rueda p { color: var(--tinta); }
.cierreC .ci-texto.disco small { color: var(--tinta2); font-family: var(--serif); }
.cierreC .ci-saltar { color: var(--tinta2); }
.cierreC .ci-rueda h2 { color: var(--azul); }
.cierreC .ci-rueda p b { color: var(--azul); font-family: var(--mano); }
/* ayuda de Tomás y «enseñar» */
.onbTele { background: var(--papel); border: .12rem solid var(--tinta); border-radius: .25rem; box-shadow: .15rem .3rem .8rem rgba(40,25,8,.6); }
.onbTele .onb-quien b { color: var(--azul); font-family: var(--mano); }
.onbTele .onb-quien small, .onbTele .onb-pie { color: var(--tinta2); font-family: var(--mano); }
.onbTele .onb-txt { color: var(--tinta); }
.onbTele .onb-haz { background: var(--postit2); color: var(--tinta); border: .08rem solid var(--tinta); border-radius: .2rem; }
.ensenaC .en-card { position: relative; background: var(--papel); border: .12rem solid var(--tinta); border-radius: .25rem; box-shadow: .15rem .3rem 1rem rgba(30,18,5,.6); }
.ensenaC .en-img img { border: .3rem solid #fffaf0; border-radius: .1rem; }
.ensenaC .en-quien img.av { border-color: var(--tinta); }
.ensenaC .en-quien b { color: var(--azul); }
.ensenaC .en-cuerpo p { color: var(--tinta); }
.zoom .lista-puntos li.onb { background: rgba(255,210,63,.5); outline-color: var(--tinta); }
/* tamaños de lectura a 3 m */
.portada .sala small, .portada .url small { font-size: .65rem; }
.prologo .pr-texto h2 { font-size: .85rem; }
.prologo .pr-teclas { font-size: .6rem; }
.prologo .pr-teclas .ok { font-size: .8rem; }
.progreso { font-size: .55rem; }
.progreso b { font-size: .62rem; }
.actoC .ac-hasta small, .actoC .ac-ahora small { font-size: .7rem; }
.actoC .ac-voz { font-family: var(--mano); font-size: .65rem; }
.zoom h2.sitio { line-height: 1.5; }
.reparto .jugadores li b { line-height: 1.2; }
.decide .opciones { height: 9.5rem; }
.visor { border-radius: .2rem; }
.dedic .dcuerpo, .fin .der { position: relative; background: var(--papel); border: .12rem solid var(--tinta); border-radius: .25rem; padding: .7rem 1.1rem; box-shadow: .12rem .25rem .6rem rgba(70,50,20,.45); }
.dedic .dcuerpo { align-self: center; }
.dedic .dcuerpo::before, .fin .der::before { content: ""; position: absolute; top: -.4rem; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem; border-radius: 50%; z-index: 3; background: radial-gradient(circle at 35% 30%, #ff9e94 0, #d03a2f 45%, #8a1610 100%); box-shadow: 0 .18rem .22rem rgba(50,25,8,.45); }
.fin .der { margin-top: .35rem; }
.mapa-svg .pasillo .cuenta { font: 14px var(--mano); fill: var(--tinta2); }

/* ======================= Auditoría de la tele (#58): legibilidad a 3 m y huecos fijos ======================= */
/* Mínimo de lectura: nada por debajo de ~.62rem (15 px a 1280x720, 22 px a 1920x1080). Esta capa va la última a propósito: pisa los tamaños pequeños de las capas anteriores. */
.marca small { font-size: .62rem; }
.btn.voz { font-size: .62rem; }
.volumen { font-size: .6rem; }
.reloj small, .cifrasCab { font-size: .65rem; }
.caja h2 { font-size: .7rem; }
.cuaderno h2, .notas h2 { font-size: .64rem; }
.cuaderno ul { font-size: .66rem; }
.cuaderno .hora { font-size: .62rem; }
.cuaderno .mas, .notas .mas, .notas .vacia { font-size: .62rem; }
.notas li { font-size: .7rem; }
.notas li b { font-size: .62rem; }
.objetivo small { font-size: .66rem; }
.objetivo .falta { font-size: .68rem; }
.progreso { font-size: .64rem; }
.progreso b { font-size: .72rem; }
.avisoPista { font-size: .72rem; }
.zoom h2.sitio span { font-size: .7rem; }
.zoom .marca-visto, .zoom .marca-nuevo, .zoom .marca-suena, .marca-suena { font-size: .62rem; }
.foco-card .fc-etq { font-size: .64rem; }
.tarj .quien { font-size: .7rem; }
.tarj .retrato span { font-size: .7rem; }
.tarj .obj small { font-size: .68rem; }
.tarj.logro .texto { font-size: .78rem; }
.lec-caja small { font-size: .7rem; }
.decide .votos { font-size: .75rem; }
.decide .votos .chip { font-size: .78rem; margin-left: .2rem; }
.decide .opcion small { font-size: .72rem; }
.decide .dhabla span { font-size: .65rem; }
.hablen span { font-size: .7rem; }
.fin .cifra span { font-size: .68rem; }
.fin .cifra b { font-size: 1.2rem; }
.informe { font-size: .74rem; }
.fin .ded { font-size: .76rem; }
.fin .etiqueta { font-size: .85rem; }
.prologo .pr-quien span { font-size: .68rem; }
.prologo .pr-teclas { font-size: .65rem; }
.actoC .ac-saltar, .cierreC .ci-saltar { font-size: .62rem; }
.onbTele .onb-quien b { font-size: .66rem; }
.onbTele .onb-quien small { font-size: .6rem; }
.onbTele .onb-pie { font-size: .6rem; }
.onbTele .onb-pie .btn { font-size: .66rem; }
.onbTele .onb-txt { font-size: .74rem; }
.onbTele .onb-haz { font-size: .84rem; }
.portada .qr p { font-size: .62rem; }
.reparto .jugadores li small { font-size: .62rem; }
.reparto .empezar .nota { font-size: .66rem; }
/* Mapa (SVG 900x570 escalado a ~0,92): sus rótulos más grandes. */
.mapa-svg .zona-t { font-size: 16px; }
.sala-s .nom { font-size: 17px; }
.sala-s .cuenta { font-size: 14px; }
.ficha-s text { font-size: 13px; }
.mapa-svg .sala-s .mira { font-size: 15px; }
.insignia text { font-size: 12px; }
/* Decisión y dedicatorias: la ilustración más grande y los dos bloques alineados arriba (sin hueco muerto entre ellos). */
.decide, .dedic { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start; }
.decide .dimg img, .dedic .dimg img { height: 14.5rem; }
.dedic .dcuerpo { align-self: start; }

/* ---- Tutorial (#72), pantalla final (#73) y «Continuará» (#74) ---- */
.reparto .empezar { flex-wrap: wrap; }
.reparto .empezar .btn.sec { font-size: .85rem; min-height: 0; padding: .35em 1em; flex: none; }
.reparto .empezar .nota { flex: 1 1 100%; margin-left: 0; margin-top: .3rem; }
.onbTele .tut-mec { display: flex; align-items: center; margin-top: .2rem; font: 700 .48rem var(--mano); color: var(--tinta2); }
.onbTele .tut-mec span { margin-right: .5rem; white-space: nowrap; }
.onbTele .tut-mec i { display: block; width: .5rem; height: .5rem; margin-right: .2rem; border: .08rem solid var(--tinta2); border-radius: 50%; background: transparent; }
.onbTele .tut-mec i.hecho { background: var(--ambar); border-color: var(--tinta); }
.onbTele .onb-pie .btn:first-child:not(.sec) { margin-right: auto; }
.fin .avance { display: flex; align-items: center; background: var(--panel); border: .1rem solid var(--azul); border-radius: .6rem; padding: .35rem .6rem; margin-top: .5rem; }
.fin .avance .av-img { flex: none; width: 7rem; margin-right: .7rem; }
.fin .avance .av-img img { display: block; width: 100%; height: 4rem; object-fit: cover; border-radius: .35rem; }
.fin .avance small { display: block; font: 700 .5rem var(--mano); color: var(--azul); }
.fin .avance b { display: block; font-size: .85rem; color: var(--tinta); line-height: 1.1; }
.fin .avance span { display: block; font-size: .55rem; color: var(--tinta2); }
.fin .avance p { margin: .15rem 0 0; font-size: .62rem; line-height: 1.2; color: var(--tinta); font-style: italic; }
.cierreC .ci-fondo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.cierreC .ci-fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.cierreC .ci-primer { position: relative; z-index: 1; padding: 1rem 1.6rem; background: rgba(27,18,9,.78); border-radius: .8rem; }
.cierreC .ci-primer .ci-llamada p, .cierreC .ci-primer .ci-texto p { color: #fff3da; }
.cierreC .ci-primer small { color: var(--ambar); }
.cierreC .ci-llamada.lejana img.av { -webkit-filter: sepia(.5) contrast(.9); filter: sepia(.5) contrast(.9); opacity: .92; }
.cierreC .ci-llamada.lejana p { font-style: italic; }
.cierreC .ci-continuara { display: flex; align-items: center; text-align: left; max-width: 56rem; }
.cierreC .ci-continuara .co-img { flex: none; width: 21rem; margin-right: 1.8rem; border: .2rem solid var(--tinta); box-shadow: 0 0 2rem rgba(255,176,0,.35); }
.cierreC .ci-continuara .co-img img { display: block; width: 100%; height: 14rem; object-fit: cover; }
/* #98: con vídeo del avance, la caja crece a 16:9 y el vídeo tapa la imagen (que queda de respaldo debajo). */
.cierreC .ci-continuara.con-video { max-width: 64rem; }
.cierreC .ci-continuara.con-video .co-img { position: relative; width: 32rem; height: 18rem; overflow: hidden; }
.cierreC .ci-continuara.con-video .co-img img { height: 18rem; }
.cierreC .ci-continuara .co-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .4s ease-out; }
.cierreC .ci-continuara .co-video.pinta { opacity: 1; }
.cierreC .ci-continuara h2 { font-size: 2.3rem; line-height: 1.05; color: var(--azul); margin-bottom: .3rem; }
.cierreC .ci-continuara small { font-size: .7rem; margin-bottom: .1rem; }
.cierreC .ci-continuara b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--tinta); }
.cierreC .ci-continuara span { display: block; font-size: .65rem; color: var(--tinta2); margin-top: .15rem; }
.cierreC .ci-continuara p { margin-top: .7rem; font-size: 1.15rem; line-height: 1.3; color: var(--tinta); font-style: italic; }

/* #91: «Elena recordará esto». Discreto, arriba a la izquierda, por encima de capas y escenas; entra y sale con un fundido. */
.recuerda { position: fixed; top: 1.1rem; left: 1.4rem; z-index: 300; display: flex; align-items: center; padding: .45rem .9rem .45rem .7rem; border-radius: 2rem; background: rgba(11,7,3,.82); border: .08rem solid var(--ambar); color: #fff3da; font-family: var(--mano); font-size: .95rem; letter-spacing: .02em; box-shadow: 0 .3rem 1rem rgba(0,0,0,.5); opacity: 0; transform: translateY(-.6rem); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.recuerda.visible { opacity: 1; transform: none; }
.recuerda .re-ico { flex: none; width: .6rem; height: .6rem; margin-right: .6rem; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 .6rem var(--ambar); }
@media (prefers-reduced-motion: reduce) { .recuerda { transition: none; } }
/* #96: el consejo de los invitados en la votación y la lista en la sala de espera. */
.decide .consejo { margin-top: .4rem; padding: .25rem .5rem; border: .1rem dashed var(--tinta); border-radius: .4rem; font-size: .72rem; color: var(--tinta); background: var(--papel2); }
.decide .consejo small { font-size: .62rem; color: var(--tinta2); }
.decide .consejo .cj { display: inline-block; margin-left: .6rem; }
.decide .consejo.vacio { color: var(--tinta2); background: transparent; }
.reparto .invitados { margin: .3rem 0 0; font-size: .6rem; color: var(--tinta2); }

/* #81: mientras la tele cuenta el cierre, la pantalla final solo enseña el texto; los botones salen al acabar el «Continuará». */
.fin .fin-saltar { font-family: var(--mano); font-size: .62rem; color: var(--tinta2); opacity: .8; margin-top: .6rem; }
/* #85: «Así jugaron otras parejas» */
.fin .social { border-top: .06rem dashed var(--borde); padding-top: .35rem; }
.fin .social small { display: block; font-family: var(--mano); font-size: .62rem; color: var(--azul); }
.fin .social p { font-size: .72rem; line-height: 1.25; margin-top: .15rem; }
.fin .social p b { color: var(--azul); }
.fin .social .coinc { font-weight: 700; }
.fin .social .orient { display: block; font-size: .5rem; color: var(--tinta2); margin-top: .15rem; }
/* #199 / #269: ranking del capítulo. Dos columnas de cinco para que quepa sin bajar a 1280×720. */
.fin .ranking { border-top: .06rem dashed var(--borde); padding-top: .3rem; }
.fin .ranking small { display: block; font-family: var(--mano); font-size: .66rem; color: var(--azul); }
.fin .ranking .rk-ley { display: block; font-size: .48rem; color: var(--tinta2); }
.fin .ranking .rk-motivo { font-size: .55rem; line-height: 1.2; color: var(--tinta2); margin-top: .1rem; }
.fin .ranking ol { list-style: none; margin: .15rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 1rem; }
.fin .ranking li { display: flex; align-items: baseline; font-size: .58rem; line-height: 1.3; color: var(--tinta); white-space: nowrap; }
.fin .ranking li b { flex: none; width: 1.1rem; color: var(--azul); }
.fin .ranking li .eq { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fin .ranking li i { flex: none; margin-left: .4rem; font-style: normal; color: var(--tinta2); }
.fin .ranking li.tuya { background: var(--ambar); border-radius: .2rem; font-weight: 700; }
.fin .ranking li.tuya i { color: var(--tinta); }
.fin .ranking ol.rk-suya { display: block; margin-top: .1rem; }
/* #86: «Avisadme cuando salga el capítulo 2» */
.cierreC .ci-continuara p.co-aviso { font-style: normal; font-family: var(--mano); font-size: .8rem; color: var(--azul); margin-top: .8rem; }
.fin .aviso-c2 { font-family: var(--mano); font-size: .7rem; color: var(--azul); }
/* #86: «Avisadme cuando salga el capítulo 2» */
.cierreC .ci-continuara p.co-aviso { font-style: normal; font-family: var(--mano); font-size: .8rem; color: var(--azul); margin-top: .8rem; }
.fin .aviso-c2 { font-family: var(--mano); font-size: .7rem; color: var(--azul); }
.fin .aviso-ia { font-size: .6rem; line-height: 1.2; color: var(--tinta2); }
.fin .copyright { font-size: .6rem; line-height: 1.2; color: var(--tinta2); margin-top: .3rem; }


/* ---------- #79: todos juegan a la vez ---------- */
/* Qué miran los demás (columna derecha): una línea corta por jugador; con uno solo, con la miniatura de su sitio. */
.focosCaja { flex: none; position: relative; background: var(--postit2); color: var(--tinta); border: .08rem solid var(--tinta); border-radius: .15rem; padding: .3rem .6rem .4rem; box-shadow: .1rem .2rem .45rem rgba(70,50,20,.45); }
.focosCaja small { display: block; font: 700 .64rem var(--mano); color: var(--azul); }
.focosCaja .instr { font-size: .7rem; line-height: 1.15; }
.focosCaja ul { list-style: none; margin: 0; padding: 0; }
.focosCaja li.fila { display: flex; align-items: center; margin-top: .25rem; font-size: .68rem; line-height: 1.12; }
.focosCaja li.fila > * + * { margin-left: .4rem; }
.focosCaja .txt { flex: 1; min-width: 0; }
.focosCaja .txt b { font-family: var(--mano); font-size: .78rem; }
.focosCaja img.av.foc { width: 1.5rem; height: 1.5rem; flex: none; border-width: .08rem; }
/* La escena del otro jugador: la misma estructura que la grande (.escenario con sus .pt y el .pt.foco con el número), más pequeña y sin animación. */
.focosCaja .escena2 { width: 66%; margin: .3rem auto 0; }
.focosCaja .escenario { --pt: 1.1rem; border-width: .1rem; border-radius: .3rem; }
.focosCaja .escenario .pt { border-width: .08rem; box-shadow: none; }
.focosCaja .escenario .pt.foco { animation: none; box-shadow: 0 0 0 .14rem var(--papel), 0 0 0 .3rem var(--ambar); }
.focosCaja .escenario.conFoco .pt:not(.foco) { opacity: .45; }
/* La tarjeta de resultado deja libre la columna de la derecha si otro jugador está mirando algo (ancho de la columna + margen + hueco). */
.capa.tarjeta.libre, .capa.ensenaC.libre { right: 17.4rem; }
/* Sugerencias: globos cortos abajo a la derecha, sobre la columna lateral y nunca sobre el foco. */
.globos { position: fixed; z-index: 46; right: 1.1rem; bottom: .6rem; width: 15rem; display: flex; flex-direction: column; pointer-events: none; }
.globos > * + * { margin-top: .35rem; }
.globo { background: #fffaf0; color: var(--tinta); border: .1rem solid var(--tinta); border-radius: .9rem .9rem .2rem .9rem; padding: .3rem .6rem .35rem; font-size: .72rem; line-height: 1.15; box-shadow: .1rem .2rem .5rem rgba(40,25,8,.45); animation: sube .3s ease-out; transition: opacity .4s; }
.globo b { font-family: var(--mano); color: var(--azul); }
.globo.sale { opacity: 0; }
/* Empate en el voto: se vuelve a votar. */
.decide .empate { background: var(--postit2); border: .1rem solid var(--tinta); border-radius: .3rem; padding: .3rem .7rem; font-size: .85rem; font-weight: 700; line-height: 1.2; color: var(--tinta); }

/* Media pista (#84): quién tiene cada mitad y la pregunta; sin el texto de ninguna mitad */
.caja.media { border-color: #8a5a1c; background: #f6e7c4; }
.caja.media h2 { color: #7a3d10; }
.media .md-aviso { font-size: .62rem; line-height: 1.25; margin-bottom: .25rem; }
.media .md-quien { list-style: none; margin: 0 0 .25rem; padding: 0; }
.media .md-quien li { font-size: .6rem; line-height: 1.3; }
.media .md-quien b { margin-right: .35rem; }
.media .md-quien span { font-style: italic; }
.media .md-preg { font-size: .68rem; font-weight: bold; line-height: 1.25; }
.media .md-fallos { font-size: .55rem; color: #7a3d10; margin-top: .2rem; }

/* ---- #144: la tele, fluida en la LG ----
   Medido en la LG real: cualquier animación infinita que repinta (opacidad de un elemento SVG, stroke-dashoffset, box-shadow, filter) obliga a
   repintar el mapa o la escena entera en cada cuadro: 400-600 ms por cuadro, la tele a 1-3 cuadros/s y cada toque esperando detrás. Regla: en la
   tele solo se anima transform u opacity de elementos HTML con su propia capa (will-change), y las animaciones que repintan son de una vez o no hay. */
.velo-monte { animation: none; opacity: .85; }
.camino { animation: none; filter: none; }
.mapa-svg.abierto .puerta-trasera { filter: none; }
.sala-s.mirando .marco { animation: none; }
.notas li.llega { animation: none; box-shadow: 0 0 0 .15rem var(--ambar); }
.pt.novedad, .pt.suena, .pt.onb, .marca-suena { animation: none; }
.pt.novedad { box-shadow: 0 0 0 6px var(--ambar), 0 3px 12px rgba(70,50,20,.32); }
.pt.onb { box-shadow: 0 0 0 4px var(--papel), 0 0 0 10px var(--ambar); }
.prologo .pr-teclas .ok.listo { animation: none; }
.escenaC .es-voz img { animation: none; box-shadow: 0 0 0 .4rem rgba(255,176,0,.35); }
.fusibleC.parpadeo .fu-fondo img { will-change: opacity; }
.zoom .escenario .pt.foco { animation: none; box-shadow: 0 0 0 .3rem var(--papel), 0 0 0 .7rem var(--ambar); }
/* El aro que late alrededor del punto enfocado: un pseudo-elemento en su propia capa, solo escala y opacidad (lo mueve la GPU, no repinta nada). */
.zoom .escenario .pt.foco::before { content: ""; position: absolute; left: -.8rem; top: -.8rem; right: -.8rem; bottom: -.8rem; border-radius: 50%;
  border: .3rem solid #ffb000; pointer-events: none; will-change: transform, opacity; animation: aroFoco 1.6s ease-out infinite; }
@keyframes aroFoco { from { -webkit-transform: scale(.75); transform: scale(.75); opacity: .95; } to { -webkit-transform: scale(1.45); transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .zoom .escenario .pt.foco::before { animation: none; opacity: 0; } }

/* ---- #144: la mesa. Escena del turno + «Al aire» a la izquierda; turno, mapa, objetivo y notas a la derecha. ---- */
.zoom.mesa { grid-template-columns: minmax(0, 1fr) 23rem; }
.zoom.mesa .escena { max-width: calc((100vh - 9.5rem) * 1.5); }
.mesaLado { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.mesaLado > * + * { margin-top: .5rem; }
.turnoMesa { flex: none; display: flex; flex-wrap: wrap; align-items: center; padding: .45rem .7rem; }
.turnoMesa small { width: 100%; font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta2); }
.turnoMesa .tm-quien { display: flex; align-items: center; margin-right: .6rem; }
.turnoMesa .tm-quien .av { width: 2.2rem; height: 2.2rem; border-radius: 50%; margin-right: .4rem; border: .15rem solid var(--ambar); }
.turnoMesa .tm-quien b { font-size: 1.15rem; color: var(--ambar); }
.turnoMesa .tm-donde { font-size: .8rem; }
.turnoMesa .tm-sig { width: 100%; font-size: .62rem; color: var(--tinta2); margin-top: .15rem; }
.mapaMesa { flex: none; padding: .3rem; }
.mapaMesa .mapa-svg { height: auto; }
.mapaMesa .sala-s.aqui .marco { stroke: var(--ambar); stroke-width: 6; }
.objetivoMesa { flex: none; padding: .45rem .7rem; font-size: .72rem; }
.objetivoMesa small { display: block; font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta2); margin-top: .3rem; }
.objetivoMesa b { display: block; line-height: 1.2; }
.objetivoMesa .falta { display: block; font-size: .6rem; color: var(--tinta2); }
.mesaLado .notas { flex: 1 1 0; min-height: 0; overflow: hidden; }
.alAire { flex: none; margin-top: .45rem; padding: .4rem .8rem .5rem; border-left: .25rem solid var(--ambar); background: rgba(0,0,0,.35); border-radius: .3rem; }
.alAire small { display: block; font-size: .5rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ambar); }
.alAire p { line-height: 1.25; }
.alAire p.vieja { font-size: .62rem; color: var(--tinta2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alAire p.nueva { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alAire p b { color: var(--ambar); }
.alAire.vacio p { font-size: .7rem; color: var(--tinta2); }
.mesaLado > .pieza-notas { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.mesaLado > div:empty { display: none; }
/* #132: la columna de la mesa se salía por abajo en cualquier tele 16:9 (+0,7 rem a 1280, 1536, 1920 y 4K) y se llevaba las notas, que quedaban
   cortadas fuera de la pantalla. Causa: el mapa SVG (900×570) mide siempre su ancho × 0,63 y no cedía sitio. Ahora el mapa encoge (el SVG se
   centra, sin deformarse) y las notas tienen un mínimo de dos filas; todo en rem y flex, sin una medida para un tamaño concreto. */
.mesaLado > .pieza-mapa { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
.mesaLado .mapaMesa { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.mesaLado .mapaMesa .mapa-svg { flex: 0 1 auto; min-width: 0; min-height: 0; }
.mesaLado > .pieza-notas { min-height: 3.8rem; }

/* ======================= #144 · Sin background-image en elementos (LG real) =======================
   Medido en la LG (Chrome 79, webOS): con cualquier background-image en un elemento, cada cambio de foco tarda ~700 ms en verse
   (y ~3,6 s el primero), sin tareas largas: es el rasterizado. Con esta regla universal baja a 40-175 ms. Apagarlo solo en html, body
   y #fondo NO basta (probado): tiene que ser universal. Los pseudo-elementos (::before/::after) sí pueden llevar degradados.
   Por eso: la portada del lobby es un <img> dentro de #fondo, los velos de legibilidad van en ::before y lo demás queda en color liso. */
* { background-image: none !important; }
#fondo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.zoom .pie-escena { background-color: rgba(0,0,0,.74); }
.tarj.logro.conseguido { background-color: var(--papel2); }
.tarj.logro.descubierto { background-color: #123140; }
.actoC .ac-cuerpo { background-color: rgba(251,244,222,.9); }
.prologo .pr-vineta, .rescateC .rs-cuerpo, .fusibleC .fu-cuerpo, .escenaC .es-cuerpo { z-index: 0; }
.prologo .pr-vineta::before, .rescateC .rs-cuerpo::before, .fusibleC .fu-cuerpo::before, .escenaC .es-cuerpo::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; }
.prologo .pr-vineta::before { background: linear-gradient(0deg, rgba(8,10,16,.88) 0%, rgba(8,10,16,.55) 30%, transparent 58%), linear-gradient(180deg, rgba(8,10,16,.55) 0%, transparent 18%); }
.rescateC .rs-cuerpo::before { background: linear-gradient(180deg, rgba(11,7,3,0), rgba(11,7,3,.82) 30%, rgba(11,7,3,.95)); }
.fusibleC .fu-cuerpo::before { background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0) 65%); }
.escenaC .es-cuerpo::before { background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 70%); }

/* #149: desde #152 la barra de la partida lleva puntos, descubrimientos y llamadas además del reloj y los botones, y se salía
   por la derecha (~110 px a 1280). Fuera del lobby: sin la palabra «Volumen» (el deslizador conserva su aria-label y su title),
   deslizador más corto, márgenes más justos, y la barra puede encoger sin desbordar. */
header.barra .derecha { min-width: 0; -webkit-flex-shrink: 1; flex-shrink: 1; }
body:not(.lobby) .volumen span { display: none; }
body:not(.lobby) .volumen input { width: 3rem; }
body:not(.lobby) .derecha > * + * { margin-left: .45rem; }
body:not(.lobby) .cifrasCab > * + * { margin-left: .6rem; }
/* En pantallas estrechas (1280) no caben las cifras, el reloj con su aviso y los botones: sobra la hora peninsular. */
@media (max-width: 1400px) { body:not(.lobby) .reloj small { display: none; } }
/* #132: la cabecera cabe con CUALQUIER fuente. En GitHub Actions (y en una tele sin acceso a Google Fonts, o lenta) no cargan Kalam, Lora ni la
   fuente del estilo, manda la de respaldo, más ancha, y el botón «Voz» se salía por la derecha (+4 px a 1536, +27 a 1920, +53 a 4K): .derecha
   ya encogía, pero sus hijos no, porque un elemento de flex no baja de su contenido (min-width: auto) y los textos no se parten. Ahora los
   botones y el reloj no se parten y ceden en este orden: primero las cifras (puntos, descubrimientos, llamadas: cada una acaba en «…» si hace
   falta), luego el reloj y el volumen (el deslizador se acorta). Todo en rem y por proporción, sin tamaños concretos. La prueba lo vigila en
   la prueba de tamaños con y sin fuentes web. */
header.barra .marca { -webkit-flex-shrink: 0; flex-shrink: 0; }
header.barra .derecha > * { min-width: 0; }
header.barra .derecha > .btn, header.barra .derecha > .volumen { white-space: nowrap; }
header.barra .derecha > .btn { -webkit-flex-shrink: 0; flex-shrink: 0; }
header.barra .derecha > .cifrasCab { -webkit-flex-shrink: 8; flex-shrink: 8; overflow: hidden; }
header.barra .cifrasCab > * { min-width: 0; -webkit-flex-shrink: 1; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header.barra .derecha > .reloj { -webkit-flex-shrink: 2; flex-shrink: 2; overflow: hidden; }
header.barra .derecha > .volumen { -webkit-flex-shrink: 1; flex-shrink: 1; }
header.barra .volumen input { min-width: 1.2rem; -webkit-flex-shrink: 1; flex-shrink: 1; }
/* #149: la tarjeta de cada jugada tapaba toda la tele con un velo casi negro (--e-scrim, .78 en el tema oscuro): las fotos
   se veían y de golpe todo negro, más rato en la LG, que pinta el velo al instante y la tarjeta con su foto mucho después.
   El velo de la tarjeta se aclara para que la escena siga viéndose detrás; la tarjeta es opaca y se lee igual. */
html.estilo body .capa.tarjeta, body .capa.tarjeta { background: rgba(5,6,9,.4); }

/* ---------- #151: la media pista como momento de la tele y transición de escena ---------- */
.capa.mediaC { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; background: #0b0703; display: block; padding: 0; overflow: hidden; }
.mediaC .md-fondo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.mediaC .md-fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .55; -webkit-animation: rsAcerca 16s ease-out forwards; animation: rsAcerca 16s ease-out forwards; }
.mediaC .md-cuerpo { position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 8% 3rem; background: linear-gradient(180deg, rgba(11,7,3,0), rgba(11,7,3,.85) 26%, rgba(11,7,3,.96)); color: #fbf4de; }
.mediaC .md-n { font-family: var(--mano); color: #ffb000; font-size: 1.1rem; }
.mediaC h2 { font-size: 2.2rem; line-height: 1.05; color: #fbf4de; margin-top: .1rem; }
.mediaC .md-mitades { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; }
.mediaC .md-mitades li { flex: 1 1 0; max-width: 22rem; border: .12rem solid rgba(255,176,0,.7); border-radius: .7rem; padding: .4rem .8rem; margin-right: 1rem; background: rgba(255,176,0,.08); }
.mediaC .md-mitad { display: block; font-family: var(--mano); font-size: .6rem; color: #ffb000; }
.mediaC .md-mitades b { font-size: 1.15rem; }
.mediaC .md-aviso { font-size: 1.1rem; margin-top: .8rem; opacity: .9; }
.mediaC .md-preg { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin-top: .35rem; max-width: 46rem; }
.mediaC .md-juntad { display: inline-block; margin-top: .8rem; border-left: .25rem solid #ffb000; padding-left: .7rem; font-size: 1.05rem; color: #ffd27a; }
.mediaC .md-saltar { position: absolute; right: 1.2rem; bottom: .8rem; font-family: var(--mano); font-size: .45rem; color: #fbf4de; opacity: .75; }
.mediaC.resuelta .sello { color: #ffb000; margin-top: .6rem; }
.mediaC .md-resp { font-size: 1.05rem; margin-top: .6rem; opacity: .9; }
.mediaC .md-sabe { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-top: .35rem; max-width: 48rem; }
/* El texto entra al ritmo de la voz: cada pieza con su retraso (style="animation-delay"), solo opacidad y desplazamiento. */
.mediaC .entra { opacity: 0; -webkit-animation: mdEntra .6s ease-out forwards; animation: mdEntra .6s ease-out forwards; }
@-webkit-keyframes mdEntra { from { opacity: 0; -webkit-transform: translateY(.8rem); } to { opacity: 1; -webkit-transform: none; } }
@keyframes mdEntra { from { opacity: 0; transform: translateY(.8rem); } to { opacity: 1; transform: none; } }
.mediaC .sello.entra { -webkit-animation-name: mdSello; animation-name: mdSello; }
@keyframes mdSello { 0% { opacity: 0; transform: scale(2.2) rotate(-12deg); } 100% { opacity: 1; transform: rotate(-3deg); } }
@-webkit-keyframes mdSello { 0% { opacity: 0; -webkit-transform: scale(2.2) rotate(-12deg); } 100% { opacity: 1; -webkit-transform: rotate(-3deg); } }

.transicion { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 45; pointer-events: none; background: #0b0703; opacity: 0;
  display: flex; align-items: center; justify-content: center; color: #ffb000; font-family: var(--mano); font-size: 2.4rem; }
.transicion.lejos.a { -webkit-animation: trLejosA 1.6s ease-in-out; animation: trLejosA 1.6s ease-in-out; }
.transicion.lejos.b { -webkit-animation: trLejosB 1.6s ease-in-out; animation: trLejosB 1.6s ease-in-out; }
@keyframes trLejosA { 0% { opacity: .9; } 45% { opacity: .9; } 100% { opacity: 0; } }
@keyframes trLejosB { 0% { opacity: .9; } 45% { opacity: .9; } 100% { opacity: 0; } }
@-webkit-keyframes trLejosA { 0% { opacity: .9; } 45% { opacity: .9; } 100% { opacity: 0; } }
@-webkit-keyframes trLejosB { 0% { opacity: .9; } 45% { opacity: .9; } 100% { opacity: 0; } }

/* ---------- #159: fluidez al conseguir algo ---------- */
/* «Al aire» va en su hueco fijo (cambia en cada jugada y no rehace la pantalla): es el elemento que antes colgaba directo de la columna. */
#mesaRelato { flex: none; }
/* La tarjeta de logro sale en cada objeto o pista: color plano y halo corto, sin background-image (degradados) ni sombras difusas de 3 rem, que en la LG son un repintado entero. */
.tarj.logro.conseguido { background: var(--papel2); box-shadow: 0 0 0 .3rem rgba(155,211,106,.45); }
.tarj.logro.descubierto { background: #123140; box-shadow: 0 0 0 .3rem rgba(127,212,230,.45); }
.tarj .imgObj { background: #0d0804; }

/* Ventana estrecha o en vertical (#184): portátil con la ventana a medias o tablet. Una tele siempre está apaisada y no entra aquí.
   La sala de espera pasa a una columna y hace scroll en vez de cortar el código de sala y el reparto. */
@media (max-aspect-ratio: 1/1) {
  .sala-espera { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; overflow-y: auto; }
  .sala-espera section { min-height: auto; }
  .reparto .jugadores { flex: none; grid-template-rows: none; grid-auto-rows: minmax(2.6rem, auto); }
  .reparto .jugadores li small { white-space: normal; }
}

/* Compra del capítulo 2 en la pantalla final. Sin `gap`: el suelo es Chromium 68. */
.fin .compra-c2 { display: flex; align-items: center; margin: .3rem 0; font-size: .72rem; line-height: 1.3; }
.fin .compra-c2.hecho { display: block; color: var(--azul); }
.fin .compra-qr { flex: none; width: 4.2rem; margin-right: .6rem; }
.fin .compra-qr svg { display: block; width: 100%; height: auto; }
.fin .compra-txt b { display: block; font-size: .85rem; }
.fin .compra-txt span { display: block; }
.fin .compra-legal { font-size: .6rem; opacity: .85; }

/* ---------- #159 / #165: sin sombras difusas en la tele ---------- */
/* Medido en la LG real (Chrome 79, 2026-11-20, ?css= con medir-tele.js): con las sombras con desenfoque, la primera mesa daba una tarea de 701-758 ms,
   entrar en un sitio tardaba 896-977 ms en pintarse y el aviso «¡Conseguido!» 365-486 ms, con un parón de 745-799 ms a mitad del aviso; sin ellas,
   66-89 ms, 225-230 ms y 38-125 ms, sin parón. Las sombras de text-shadow no cambian nada. Se quitan todas las box-shadow y se devuelven solo los anillos
   sin desenfoque (0 0 0 grosor), que marcan el foco, lo nuevo y los logros. Una sombra nueva en la tele: sin desenfoque o no se pone. */
*, *::before, *::after { box-shadow: none !important; }
.notas li.ultima { box-shadow: 0 0 0 .1rem var(--tinta) !important; }
.notas li.llega { box-shadow: 0 0 0 .15rem var(--ambar) !important; }
.pt.novedad { box-shadow: 0 0 0 6px var(--ambar) !important; }
.pt.onb { box-shadow: 0 0 0 4px var(--papel), 0 0 0 10px var(--ambar) !important; }
.focosCaja .escenario .pt.foco { box-shadow: 0 0 0 .14rem var(--papel), 0 0 0 .3rem var(--ambar) !important; }
.zoom .escenario .pt.foco { box-shadow: 0 0 0 .3rem var(--papel), 0 0 0 .7rem var(--ambar) !important; }
.escenaC .es-voz img { box-shadow: 0 0 0 .4rem rgba(255,176,0,.35) !important; }
.tarj.logro.conseguido { box-shadow: 0 0 0 .3rem rgba(155,211,106,.45) !important; }
.tarj.logro.descubierto { box-shadow: 0 0 0 .3rem rgba(127,212,230,.45) !important; }

/* #263: la invitación a guardar la tele en favoritos (primera vez) y el aviso de tele vinculada, debajo del botón de empezar. */
.reparto .favoritos { margin: .4rem 0 0; font-size: .6rem; line-height: 1.25; color: var(--tinta2); }
.reparto .favoritos b { color: var(--tinta); }
.reparto .favoritos .btn { font-size: .5rem; min-height: 0; padding: .2em .8em; margin-left: .4rem; }

/* #265: aviso de la oferta Black Friday de precio bloqueado */
.fin .compra-oferta { font-size: .72rem; color: var(--azul); }
