:root {
  color-scheme: dark;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  background: #000;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #000;
}

body {
  min-height: 100svh;
  overflow: hidden;
}

button {
  font: inherit;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Match the near-black field within the startup clip. */
  background: #030303;
  opacity: 1;
  transition: opacity 600ms ease;
}

.loading-screen.is-complete {
  opacity: 0;
  pointer-events: none;
}

.intro-video {
  display: block;
  width: min(94vw, 1560px);
  height: min(88svh, 900px);
  object-fit: contain;
  object-position: center 42%;
  background: #030303;
  /* The source clip contains its own legacy copyright strip. Keep the animation,
     while excluding that baked-in footer from the startup experience. */
  clip-path: inset(0 0 17% 0);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.skip-button {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 9px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font: 11px/1 Tahoma, "MS Sans Serif", sans-serif;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.loading-screen:hover .skip-button,
.skip-button:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.skip-button:hover,
.skip-button:focus-visible {
  background: rgba(0, 0, 0, 0.84);
}

.skip-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  width: 100vw;
  height: 100dvh;
  place-items: center;
  overflow: hidden;
  background: #000;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.welcome-screen.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.welcome-image {
  display: block;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.sound-prompt[hidden] {
  display: none;
}

.sound-prompt {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  border: 1px solid #fff;
  padding: 8px 12px;
  color: #fff;
  background: #164bbd;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.sound-prompt:hover,
.sound-prompt:focus-visible {
  background: #2867db;
}

.sound-prompt:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.desktop-placeholder {
  display: grid;
  min-height: 100svh;
  place-content: center;
  gap: 8px;
  padding: 32px;
  color: #fff;
  background: #245edb;
  text-align: center;
}

.desktop-placeholder[aria-hidden="true"] {
  visibility: hidden;
}

.desktop-placeholder.is-visible {
  visibility: visible;
}

.desktop-placeholder h1,
.desktop-placeholder p {
  margin: 0;
}

.desktop-placeholder h1 {
  max-width: 620px;
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 400;
}

.placeholder-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: none) {
  .skip-button {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .intro-video {
    /* Preserve the full centred mark on portrait screens, while giving it more
       presence than the previous narrow viewport-sized treatment. */
    width: 132vw;
    height: auto;
    object-fit: contain;
    object-position: center;
    clip-path: inset(0 0 18% 0);
    /* The artwork is offset within the original boot clip. */
    transform: translateX(-12vw);
  }

  .skip-button {
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    padding: 11px 15px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen,
  .welcome-screen {
    transition: none;
  }
}
html.desktop-start .loading-screen,html.desktop-start .welcome-screen{display:none!important}html.desktop-start .desktop-screen{visibility:visible!important;opacity:1!important}
html.desktop-start .loading-screen,html.desktop-start .welcome-screen{display:none!important}html.desktop-start .desktop-screen{visibility:visible!important;opacity:1!important}
