:root {
  color-scheme: dark;
  background: #000;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

.splash-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.splash-media {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  max-width: none;
  height: 100vh;
  height: 100svh;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;

  /* Initial page-load fade only. The looping video does not re-fade. */
  opacity: 0;
  animation: splash-video-fade-in 2.5s ease forwards;
}

@keyframes splash-video-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.splash-hotspot,
.splash-hotspot-sprite {
  position: absolute;
  /* 960 × 537 in the 1920 × 1080 artwork, measured to the hotspot centre. */
  top: 49.7222%;
  left: 50%;
  width: 4.62963vh;
  width: 4.62963svh;
  height: 4.62963vh;
  height: 4.62963svh;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.splash-hotspot {
  z-index: 2;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.splash-hotspot-sprite {
  z-index: 1;
  background: transparent url("assets/hotspot-red.svg") center / 100% 100% no-repeat;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 80ms linear;
  pointer-events: none;
}

@media (hover: hover) {
  .splash-hotspot:hover + .splash-hotspot-sprite {
    opacity: 1;
  }
}

.splash-hotspot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 0.55rem;
}

.splash-hotspot:focus-visible + .splash-hotspot-sprite {
  opacity: 1;
}

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