/* Pantalla de los grupos: pensada para celular en vertical. */
body.jugar { min-height: 100dvh; display: flex; flex-direction: column; font-size: 17px; padding-bottom: env(safe-area-inset-bottom); }

.cab { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1rem; }
.cab .logos img { height: 2.3rem; max-width: 7.5rem; }
.cab .logos { gap: .5rem; }

.banner { margin: 0 1rem .5rem; padding: .5rem .9rem; border-radius: 14px; background: var(--amarillo); font-weight: 600; text-align: center; }
.banner.aviso { background: #d62839; color: #fff; }

/* Tarjeta del grupo, con su color distintivo */
.grupo-cab {
  --col: var(--acento);
  display: flex; align-items: center; gap: .7rem; margin: 0 1rem .6rem; padding: .5rem .8rem;
  border-radius: 18px; background: #fff; border-left: 10px solid var(--col); box-shadow: var(--sombra);
}
.logo-grupo { width: 3.2rem; height: 3.2rem; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--col) 18%, #fff); cursor: pointer; flex: 0 0 auto; }
.logo-grupo img { width: 100%; height: 100%; object-fit: cover; }
.grupo-cab .datos { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.grupo-cab .datos b { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grupo-cab .datos span { font-size: .8rem; color: #6d5d82; }
.grupo-cab .pos { font-size: 1.5rem; font-weight: 700; color: var(--col); }

main#pantalla { flex: 1; display: flex; flex-direction: column; padding: 0 1rem 1.2rem; }

.centro { margin: auto; text-align: center; max-width: 26rem; width: 100%; }
.centro h2 { font-size: 1.8rem; }
.suave { color: #6d5d82; font-size: .9rem; }
.mascota-grande { width: min(58vw, 15rem); height: min(58vw, 15rem); margin: 0 auto .5rem; }
.mascota-grande.peque { width: 7rem; height: 7rem; }

/* Formularios */
.formulario { margin: auto; width: 100%; max-width: 26rem; text-align: center; }
.formulario input { font-size: 1.3rem; text-align: center; margin-bottom: .3rem; }
.formulario #pin { letter-spacing: .3em; font-weight: 700; }
.formulario label { text-align: left; }
.btn.grande { width: 100%; font-size: 1.4rem; padding: .9rem; margin-top: .8rem; }
.error { color: #b3001b; min-height: 1.3em; font-weight: 600; margin: .3rem 0 0; }

/* Pregunta */
.pregunta-tel { display: flex; flex-direction: column; flex: 1; gap: .7rem; position: relative; }
.reloj-tel { display: flex; align-items: center; gap: .7rem; }
.reloj-tel b { font-size: 1.6rem; min-width: 2ch; text-align: right; color: var(--acento); }
.enunciado-tel { font-size: 1.1rem; font-weight: 500; margin: 0; line-height: 1.25; }
.enunciado-tel small { color: var(--acento); font-weight: 700; margin-right: .3em; }
.rejilla-tel { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; min-height: 16rem; }
.rejilla-tel .tile { flex-direction: column; justify-content: center; text-align: center; font-size: 1.05rem; padding: .8rem .5rem; }
.rejilla-tel .tile .forma { width: 3.4rem; height: 3.4rem; }
.rejilla-tel .tile .texto { flex: 0 0 auto; font-size: 1.2rem; }
.estado-tel { text-align: center; font-weight: 600; margin: 0; }
.pausa { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(42, 18, 69, .72); color: #fff; font-size: 2.2rem; font-weight: 700; border-radius: 20px; }

/* Resultado */
.resultado.bien h2 { color: #1c8a00; }
.resultado.mal h2 { color: #b3001b; }
.puntos-ganados { font-size: 2.4rem; font-weight: 700; margin: 0; color: var(--acento); }
.correcta-txt { color: var(--c); }
.pos b { color: var(--acento); }

/* Podio */
.podio-tel { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .5rem; }
.podio-tel li { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; background: #fff; border-radius: 16px; border-left: 10px solid var(--col); box-shadow: var(--sombra); text-align: left; }
.podio-tel li span { font-size: 1.6rem; }
.podio-tel li b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podio-tel li.yo { outline: 3px solid var(--acento); }
