/* The still image remains underneath decorative motion. */
html {
  background-color: #180640 !important;
  background-image: radial-gradient(circle at 50% 24%, #6e2ca6 0%, #2b105f 42%, #160439 100%) !important;
  overflow-x: clip;
}

body {
  background-color: transparent !important;
  background-image: none !important;
  overflow-x: clip;
}

.site-background-poster,
.site-background-motion {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}

.site-background-motion {
  z-index: -3;
  transform: translate3d(0, 0, 0);
}

.site-background-poster {
  z-index: -4;
  background-color: #180640;
  transform: translate3d(0, 0, 0);
}

.media-motion:not(.media-ready) {
  opacity: 0 !important;
}

.media-still,
.media-motion:not(.site-background-motion) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  pointer-events: none;
}

.media-motion:not(.site-background-motion) {
  z-index: 1;
}

/* The game dialog fills the screen, so its lobby effects need no paint. */
.game-is-open .media-motion {
  display: none !important;
}

