/* Film owns the focal motion. These styles only frame the closing signature and exit. */
/* The ambient theme positions every direct body child using :not(#nq-ambient-scene).
   Keep this ID + class scope on base, states AND media rules so none can lose that cascade. */
html body.ambient-page > #nq-entrance.nq-entrance {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  color: #fffaf1;
  background: #101112;
  font-family: inherit;
  contain: layout paint;
  opacity: 1;
  transition: opacity 550ms cubic-bezier(.16, 1, .3, 1);
}

html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
}

html body.ambient-page > #nq-entrance.nq-entrance::after {
  position: absolute;
  inset: 55% 0 0;
  z-index: 1;
  content: "";
  background: linear-gradient(transparent, #101112c9);
  opacity: 0;
  transition: opacity 600ms cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}

html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__signature {
  position: absolute;
  z-index: 2;
  left: max(6vw, env(safe-area-inset-left));
  bottom: max(8vh, calc(env(safe-area-inset-bottom) + 32px));
  padding: 16px 0;
  max-width: calc(100% - 48px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(.16, 1, .3, 1), transform 600ms cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
  text-shadow: 0 2px 14px #000b, 0 1px 3px #000d;
}

html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__name,
html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__line {
  margin: 0;
  color: inherit;
  font-family: inherit;
  text-wrap: balance;
}

html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__name {
  font-size: clamp(32px, 3.6vw, 58px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .06em;
}

html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__line {
  margin-top: 14px;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .08em;
}

html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__skip {
  position: absolute;
  z-index: 3;
  top: max(24px, calc(env(safe-area-inset-top) + 12px));
  right: max(32px, calc(env(safe-area-inset-right) + 16px));
  min-width: 96px;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #fffaf15c;
  border-radius: 999px;
  color: #fffaf1;
  background: #101112b8;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__skip:hover {
  background: #101112ed;
  border-color: #fffaf1b8;
}

html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__skip:focus-visible {
  outline: 2px solid #fffaf1;
  outline-offset: 4px;
}

html body.ambient-page > #nq-entrance.nq-entrance.is-outro .nq-entrance__signature {
  opacity: 1;
  transform: none;
}

html body.ambient-page > #nq-entrance.nq-entrance.is-outro::after { opacity: 1; }

html body.ambient-page > #nq-entrance.nq-entrance.is-leaving {
  opacity: 0;
}

.nq-entrance-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
  text-underline-offset: 5px;
  cursor: pointer;
}

.nq-entrance-replay__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.nq-entrance-replay__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.nq-entrance-replay__copy { display: grid; gap: 3px; min-width: 0; text-align: left; }
.nq-entrance-replay__copy b { font-size: 14px; font-weight: 600; }
.nq-entrance-replay__copy small { font-size: 11px; line-height: 1.5; }

#nq-home-controls > .nq-entrance-replay {
  --choice-color: #b69be2;
  --choice-shift: 0px;
  display: flex;
  gap: 12px;
  min-height: 64px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 15px;
  color: var(--control-text, inherit);
  text-decoration: none;
  animation: none;
  transform: none;
}
#nq-home-controls > .nq-entrance-replay .nq-entrance-replay__copy {
  min-width: 0;
  flex: 1;
}
#nq-home-controls > .nq-entrance-replay small {
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--control-text, inherit);
}
#nq-home-controls > .nq-entrance-replay:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.nq-entrance-replay:hover { background: #7898c514; }
.nq-entrance-replay:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (max-width: 800px) {
  html body.ambient-page > #nq-entrance.nq-entrance {
    top: var(--nq-mobile-vv-top, 0px);
    left: var(--nq-mobile-vv-left, 0px);
    right: var(--nq-mobile-vv-right, 0px);
    bottom: auto;
    width: auto;
    height: var(--nq-mobile-vh, 100dvh);
  }
  html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__signature {
    left: max(24px, calc(env(safe-area-inset-left) + 16px));
    bottom: max(40px, calc(env(safe-area-inset-bottom) + 32px));
  }
  html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__name { font-size: clamp(32px, 9vw, 44px); }
  html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__line { font-size: 16px; margin-top: 10px; }
  html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__skip {
    top: max(16px, calc(env(safe-area-inset-top) + 8px));
    right: max(16px, calc(env(safe-area-inset-right) + 12px));
  }
}

@media (max-height: 430px) {
  html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__signature { bottom: max(20px, env(safe-area-inset-bottom)); }
  html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__name { font-size: 30px; }
  html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__line { margin-top: 8px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html body.ambient-page > #nq-entrance.nq-entrance,
  html body.ambient-page > #nq-entrance.nq-entrance .nq-entrance__signature,
  html body.ambient-page > #nq-entrance.nq-entrance::after { transition: none; }
}
