/* =====================================================================
   responsive.css — orientação, tamanhos de tela e overlay de aviso
   ===================================================================== */

/* --- Overlay "gire o dispositivo" (briefing §10.1) ---------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--color-overlay-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
}

/* O JS liga/desliga a navegação e usa este atributo como espelho visual. */
html[data-blocked='true'] .overlay {
  display: grid;
}

.overlay__box {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 420px;
}

.overlay__icon {
  color: var(--color-accent);
  font-size: 46px;
  line-height: 1;
  animation: overlay-rotate 2.4s ease-in-out infinite;
}

@keyframes overlay-rotate {
  0%,
  40% {
    transform: rotate(0deg);
  }
  60%,
  100% {
    transform: rotate(90deg);
  }
}

.overlay__title {
  color: var(--color-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.overlay__text {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .overlay__icon {
    animation: none;
  }
}

/* --- Ajustes de tamanho ------------------------------------------ */

/* Telas mais baixas (notebooks 720p): guia e barra mais compactos. */
@media (max-height: 720px) {
  :root {
    --guide-height: 58px;
    --timebar-width: 52px;
  }

  .guide__line,
  .guide__progress {
    top: 21px;
  }

  .guide__progress {
    top: 20px;
    height: 2px;
  }

  .guide__dot {
    width: 12px;
    height: 12px;
    margin-top: 15px;
  }

  .guide__indicator {
    top: 9px;
    height: 21px;
  }

  .guide__label {
    font-size: 10px;
  }
}

/* Telas muito largas (kiosk 4K): mantém a UI legível, sem esticar demais. */
@media (min-width: 2200px) {
  :root {
    --guide-height: 92px;
    --timebar-width: 78px;
    --guide-inline-padding: 56px;
  }

  .guide__line,
  .guide__progress {
    top: 33px;
  }

  .guide__progress {
    top: 31px;
    height: 5px;
  }

  .guide__dot {
    width: 18px;
    height: 18px;
    margin-top: 24px;
  }

  .guide__indicator {
    top: 17px;
    height: 33px;
  }

  .guide__label {
    font-size: 14px;
  }

  .timebar__label {
    font-size: 15px;
  }
}

/* O placeholder de vídeo ausente não deve competir com o título. */
@media (max-width: 980px), (orientation: portrait) {
  .initial__title {
    font-size: clamp(34px, 11vw, 72px);
  }
}
