#projector-blackout-toggle {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .5rem .8rem;
  border: 1px solid #64717b;
  border-radius: .4rem;
  background: #19242d;
  color: #fff;
  font: 500 14px/1.3 system-ui, sans-serif;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
}
#projector-blackout-toggle[hidden] { display: none; }
#projector-blackout-toggle:hover { background: #000; }
#projector-blackout-toggle:focus-visible { outline: 3px solid #e19d21; outline-offset: 3px; }
html.projector-is-black { overflow: hidden !important; overscroll-behavior: none; }
#projector-blackout {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: #000;
  color: #000;
  overflow: hidden;
  cursor: none;
  overscroll-behavior: none;
}
#projector-blackout::backdrop { background: #000; }
#projector-blackout-return {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: #000;
  color: #000;
  box-shadow: none;
  cursor: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#projector-blackout-hint {
  position: absolute;
  bottom: max(2rem, env(safe-area-inset-bottom));
  left: 1rem;
  right: 1rem;
  color: #aaa;
  text-align: center;
  font: 400 16px/1.5 system-ui, sans-serif;
}
#projector-blackout-hint[hidden] { display: none; }
@media print {
  #projector-blackout-toggle, #projector-blackout { display: none !important; }
}
