/* Visor TV: máxima legibilidad a distancia, tema oscuro elegante. */
body.visor {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  cursor: none;
  background:
    radial-gradient(1400px 700px at 80% -20%, rgba(139, 124, 248, .16) 0%, transparent 60%),
    radial-gradient(1000px 600px at 0% 110%, rgba(255, 178, 0, .08) 0%, transparent 55%),
    var(--bg);
}

#head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2vh 3vw 0;
}
#head .store { display: flex; align-items: center; gap: .6em; font-size: 3.2vh; font-weight: 800; }
#store-logo { font-size: 4vh; }
.clock { font-size: 3vh; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

#main {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 2vw;
  padding: 1vh 3vw 2vh;
  min-height: 0;
}

/* Zona de frase (P8/P11): en el prototipo no hay vídeo → la frase permanece. */
#phrase-panel {
  flex: 0 0 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 3vh 2.5vw;
  box-shadow: var(--shadow);
}
#phrase-text {
  font-size: clamp(2rem, 4.5vh + 1vw, 4.6rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

#turn-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
}
.section-name {
  font-size: 4.2vh;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
}
.turn-num {
  font-size: clamp(6rem, 34vh, 30vw);
  font-weight: 900;
  line-height: .95;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 90px rgba(255, 178, 0, .3);
}
.turn-num.bump { animation: turn-bump .55s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes turn-bump { 35% { transform: scale(1.09); } }
.turn-name {
  font-size: clamp(2.4rem, 9vh, 8vw);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  min-height: 1.2em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.turn-name.remote { color: var(--muted); font-style: italic; text-transform: none; }

/* Línea inferior: hasta 4 secciones adicionales (P11) */
#secondary-strip {
  display: flex;
  gap: 1.6vw;
  padding: 0 3vw 2.4vh;
  overflow: hidden;
}
.sec-card {
  flex: 1;
  min-width: 18vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1vw;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6vh 1.6vw;
}
.sec-card .nm { font-size: 2.8vh; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: .45em; }
.sec-card .tn { font-size: 5vh; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }

/* Overlay de activación de sonido (los TV bloquean el TTS sin gesto previo) */
#audio-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 10, 16, .88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#audio-overlay .inner { text-align: center; display: flex; flex-direction: column; gap: 2vh; align-items: center; }
#audio-overlay .ico { font-size: 12vh; animation: prompt-pulse-v 1.4s ease infinite; }
@keyframes prompt-pulse-v { 50% { transform: scale(1.12); } }
#audio-overlay div:last-child { font-size: 3.6vh; font-weight: 700; color: var(--muted); }
