@font-face {
  font-family: "Nunito";
  src: url("./nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body,
#stage {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #111b30;
  color: #fff8e9;
}
body {
  height: 100dvh;
  font:
    600 20px "Nunito",
    sans-serif;
}
#stage {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  left: 0;
  top: 0;
}
#fallback {
  position: absolute;
  inset: 0;
  place-content: center;
  padding: 2rem;
  text-align: center;
  background: #111b30;
}
#fallback:not([hidden]) {
  display: grid;
}

/* The link's centre tracks the recorded end card even when the film is letterboxed. */
.watching-trailer #stage,
.watching-trailer #launch-screen,
.watching-trailer #accessMenu {
  display: none;
}
.film-player {
  position: fixed;
  inset: 0;
  background: #0c1015;
  display: grid;
  place-items: center;
}
.film-frame {
  width: min(100%, 177.7778vh);
  width: min(100%, 177.7778dvh);
  aspect-ratio: 16 / 9;
  position: relative;
}
.film-frame video {
  display: block;
  width: 100%;
  height: 100%;
}
.film-play {
  position: absolute;
  left: 50%;
  top: 72.222222%;
  width: 42.5%;
  height: 12.222222%;
  min-height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  /* The artwork in the film supplies the visible button at the same position. */
  color: transparent;
  text-decoration: none;
  -webkit-tap-highlight-color: #76e0e255;
}
.film-play:focus-visible,
.film-play:hover {
  outline: 3px solid #a0edf1;
  box-shadow: 0 0 16px #61d8dd88;
}
@media (max-width: 550px) {
  .film-play:not([hidden]) {
    min-width: min(220px, 84vw);
    display: grid;
    place-items: center;
    color: #233b43;
    background: linear-gradient(#fff, #e0eff0);
    border: 2px solid #65cbd0;
    font: 850 17px "Nunito", sans-serif;
  }
}
.film-error:not([hidden]) {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: #111b30;
}
.film-error a { color: #a0edf1; }

.film-loading:not([hidden]) {
  position: absolute;
  bottom: 11%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 99px;
  padding: 0.45em 1em;
  background: #14232be6;
  color: white;
  font-size: 16px;
  pointer-events: none;
}
