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

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
}

.hub-stage {
  position: relative;
  width: min(100vw, 150vh);
  width: min(100vw, 150dvh);
  height: min(100vh, 66.6667vw);
  height: min(100dvh, 66.6667vw);
  overflow: hidden;
  background: #000;
}

.hub-scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  visibility: hidden;
}

.hub-scene.is-loaded,
.hub-scene--fallback {
  visibility: visible;
}

.hub-scene--current {
  opacity: 1;
}

.hub-scene--next {
  opacity: 0;
  transition: opacity 900ms linear;
}

.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;
}

@media (prefers-reduced-motion: reduce) {
  .hub-scene--next {
    transition: none;
  }
}
