/*
 * Monitor del ponente (/monitor): se lee de lejos y de reojo. Fondo oscuro,
 * cifras enormes y un solo color de aviso. Las medidas van en vw/vh: sirve
 * igual en un portatil que en una TV de retorno.
 */
html, body { height: 100%; }
body { background: var(--blue-night); color: var(--white); overflow: hidden; }

.monitor {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 3vh 4vw;
  gap: 2vh;
}

.monitor-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: clamp(18px, 3vw, 64px);
  color: var(--muted);
}
.monitor-clock { color: var(--white); font-variant-numeric: tabular-nums; }

.monitor-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 0;
}
.monitor-speaker {
  font-size: clamp(24px, 5vw, 110px);
  font-weight: 500;
  line-height: 1.05;
  max-width: 90vw;
}
.monitor-timer {
  font-size: clamp(64px, 20vw, 420px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 1vh;
}
.monitor-timer.warning { color: var(--warning); }
.monitor-timer.over { color: var(--danger); }
.monitor-timer-label { font-size: clamp(16px, 2.2vw, 48px); color: var(--muted); }

.monitor-message {
  background: var(--warning);
  color: var(--blue-night);
  font-size: clamp(28px, 6vw, 140px);
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
  padding: 2vh 3vw;
  border-radius: 2vh;
}
/* Un aviso nuevo parpadea dos veces para que se vea aunque no se mire. */
.monitor-message.fresh { animation: monitor-flash .5s ease-in-out 4 alternate; }
@keyframes monitor-flash { from { opacity: 1; } to { opacity: .25; } }

.monitor-next { font-size: clamp(16px, 2.6vw, 56px); color: var(--muted); text-align: center; min-height: 1.2em; }
.monitor-next strong { color: var(--white); font-weight: 500; }

.monitor-offline {
  position: fixed;
  right: 2vw;
  bottom: 2vh;
  background: var(--danger);
  color: var(--white);
  padding: .5em 1em;
  border-radius: 999px;
  font-size: clamp(14px, 1.4vw, 28px);
}
