.entry-05-page .door-signal {
  margin: 1.5em var(--content-side-space);
}

.entry-05-page .door-signal__frame {
  display: block;
  width: min(92%, var(--content-width));
  height: auto;
  max-height: calc(100vh - 8rem);
  max-height: calc(100dvh - 8rem);
  margin: 0;
  object-fit: contain;

  background: transparent;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.entry-05-page .door-signal__controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8em;
}

.entry-05-page .door-signal__sound-toggle {
  min-width: 12ch;
}

.entry-05-page .door-signal__sound-toggle[aria-pressed="true"] {
  background: var(--cream);
  color: var(--black);
  border-color: var(--cream);
  text-shadow: none;
}

.entry-05-page .door-signal__sound-toggle:disabled {
  opacity: 0.55;
  cursor: wait;
}

.entry-05-page .entry-unlocked {
  margin: clamp(3rem, 12vh, 8rem) var(--content-side-space);
  text-align: center;
}

.entry-05-page .entry-unlocked__password {
  margin: 0;
  padding: 0;
  color: var(--red-bright);
  font-size: clamp(3rem, 14vw, 8rem);
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  overflow-wrap: anywhere;
}

.entry-05-page .entry-reset-form {
  margin-top: 2rem;
  text-align: center;
}

.entry-05-page .entry-password-form__error {
  margin: 0.6em 0;
  padding: 0;
  color: var(--red-bright);
}

.entry-05-page .entry-password-form__error.is-visible {
  animation: entry-password-error-hide 0.2s linear 3.5s forwards;
}

.entry-05-page .entry-password-form.is-checking .entry-password-form__submit {
  opacity: 1;
  cursor: wait;
  animation: entry-password-checking-pulse 0.8s ease-in-out infinite alternate;
}

.entry-05-page .door-signal__strip {
  display: grid;
  place-items: center;

  width: 100vw;
  margin-left: calc(50% - 50vw);

  padding: 0;
}

@media (max-width: 520px) {
  .entry-05-page .door-signal {
    margin-inline: 2%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-05-page .door-signal__frame {
    transition: none !important;
    animation: none !important;
  }

  .entry-05-page .entry-password-form__error {
    animation-duration: 0s;
  }

  .entry-05-page .entry-password-form.is-checking .entry-password-form__submit {
    animation: none;
  }
}

@keyframes entry-password-error-hide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes entry-password-checking-pulse {
  from {
    box-shadow: 0 0 0 rgba(196, 53, 67, 0);
  }

  to {
    box-shadow: 0 0 1.1em rgba(196, 53, 67, 0.9);
  }
}

/* Игнор общих элементов оформления. */

html {
  background: #000 !important;
  background-image: none !important;
}

html::before,
body.entry-05-page::before,
body.entry-05-page::after {
  content: none !important;
  display: none !important;
}

body.entry-05-page {
  background: #000 !important;
  background-image: none !important;
}
