/* =========================================================
   Pioneer Python — Screen-capture honesty nudge

   Page-specific: linked only on pages that also load /js/screen-guard.js
   (problem-sets.html, programming-playground.html). See that file's header
   for what the guard can and cannot actually prevent.
   ========================================================= */

/* Full-viewport cover. This has to be genuinely opaque and above
   everything: if any page content shows through, the capture the student
   is in the middle of taking is still readable. */
.screen-guard {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-bg);
  opacity: 0;
  transition: opacity 120ms var(--ease);
}
.screen-guard[hidden] { display: none; }
.screen-guard.is-visible { opacity: 1; }

.screen-guard__card {
  max-width: 32rem;
  text-align: center;
}

.screen-guard__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-ink);
}

.screen-guard__body {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-ink);
}

/* Quieter than the message: tells them how to get back without making the
   overlay feel like a dialog they have to dismiss. */
.screen-guard__hint {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  .screen-guard { transition: none; }
}
