@import url('/game-art-motion-v1.css');

.front-preview { position: relative; isolation: isolate; }
.front-preview>.fp-main, .front-preview>.fp-private { position: relative; z-index: 1; }

.home-game-background {
  --game-art-display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.home-game-background-standings { z-index: -1; border-radius: inherit; }
.home-game-piece {
  position: absolute;
  display: block;
  opacity: .21;
  transform: rotate(var(--art-tilt, -8deg));
}
.home-game-viking { left: -25px; top: 190px; width: clamp(116px,11vw,180px); }
.home-game-floral-witch { right: -22px; top: 55px; width: clamp(105px,10vw,157px); --art-tilt: 9deg; }
.home-game-ice-dragon { right: -17px; top: 66%; width: clamp(98px,11vw,160px); --art-tilt: 10deg; }
.home-game-swamp-king { left: -20px; top: 82%; width: clamp(105px,11vw,175px); }
.home-game-stake { left: 8%; top: 7%; width: clamp(75px,9vw,128px); opacity: .14; }
.home-game-coin { right: 8%; top: 6%; width: clamp(68px,8vw,110px); opacity: .21; --art-tilt: 10deg; }
.home-game-snail { left: 2%; bottom: 16%; width: clamp(70px,8vw,116px); opacity: .13; }
.home-game-max-emblem { right: 2%; bottom: 15%; width: clamp(67px,8vw,108px); opacity: .14; --art-tilt: 12deg; }

/* These pieces share the page with the outer artwork, so give them separate loops. */
.home-game-background-standings .home-game-stake { --art-motion: art-float-sway; --art-duration: 22s; --art-delay: -13s; }
.home-game-background-standings .home-game-coin { --art-motion: art-float-rock; --art-duration: 16s; --art-delay: -5s; }
.home-game-background-standings .home-game-snail { --art-motion: art-float-rise; --art-duration: 24s; --art-delay: -17s; }
.home-game-background-standings .home-game-max-emblem { --art-motion: art-float-orbit; --art-duration: 20s; --art-delay: -8s; }

@media (max-width: 700px) {
  .home-game-background-page .home-game-piece { opacity: .14; }
  .home-game-viking { left: -58px; top: 34%; }
  .home-game-floral-witch { right: -55px; top: 195px; }
  .home-game-ice-dragon { right: -51px; }
  .home-game-swamp-king { left: -55px; }
  .home-game-stake { left: 2%; top: 11%; width: 58px; opacity: .10; }
  .home-game-coin { right: 1%; top: 8%; width: 54px; opacity: .13; }
  .home-game-snail { left: -22px; }
  .home-game-max-emblem { right: -19px; }
}
