html.intro-video-pending body {
  overflow: hidden;
  background: #000;
}

html.intro-video-pending body > header,
html.intro-video-pending body > main,
html.intro-video-pending body > footer {
  visibility: hidden;
}

.intro-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.intro-video-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.intro-video-shell {
  position: relative;
  width: min(960px, 100%);
  padding: 0 1rem;
}

.intro-video-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  background-image: url('/videos/intro/intro-swiftlink.webp?v=5');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0.75rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.intro-video-viewport.is-playing {
  background-image: none;
}

.intro-video-player {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  display: block;
  object-fit: cover;
  border: 0;
  outline: none;
  background: #000;
  opacity: 0;
}

.intro-video-player.is-ready {
  opacity: 1;
}

.intro-video-sound-gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
}

.intro-video-sound-gate.is-hidden {
  display: none;
}

.intro-video-sound-gate p {
  margin: 0;
  color: rgba(255, 240, 210, 0.9);
}

.intro-video-sound-gate button {
  justify-self: center;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: linear-gradient(135deg, #ffd56a, #b8860b);
  color: #1a0f08;
  font-weight: 700;
  cursor: pointer;
}

.intro-video-skip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.intro-video-skip:hover,
.intro-video-skip:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

@media (max-width: 768px) {
  .intro-video-shell {
    padding: 0;
  }

  .intro-video-viewport {
    border-radius: 0;
    min-height: 100dvh;
    aspect-ratio: auto;
  }

  .intro-video-skip {
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    right: calc(0.75rem + env(safe-area-inset-right, 0px));
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
  }

  .intro-video-sound-gate button {
    min-height: 2.75rem;
    padding: 0.75rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-video-modal {
    transition: none;
  }
}
