/* Visible page + cover transition, with a fallback even when pictures are still loading. */
.game-cover-flight {
  position: fixed !important;
  z-index: 2147483646 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  object-fit: cover !important;
  transform-origin: top left !important;
  will-change: transform, opacity;
  box-shadow: 0 20px 65px rgba(0,0,0,.54) !important;
}
@keyframes l1017-page-in {
  from {opacity:.20; transform:translate3d(-28px,10px,0) scale(.96); filter:blur(2px)}
  to {opacity:1; transform:translate3d(0,0,0) scale(1); filter:blur(0)}
}
@keyframes l1017-image-in {
  from {transform:translate3d(18px,0,0) scale(1.08); filter:brightness(1.3)}
  to {transform:translate3d(0,0,0) scale(1); filter:brightness(1)}
}
@keyframes l1017-card-in {
  from {opacity:0; transform:translate3d(0,35px,0) scale(.9)}
  to {opacity:1; transform:translate3d(0,0,0) scale(1)}
}
@keyframes l1017-card-selected {
  0% {transform:translateY(0) scale(1)}
  48% {transform:translateY(-11px) scale(1.11)}
  100% {transform:translateY(0) scale(1)}
}
#robloxGamePage .rgp-hero,
#robuxModal:not(.hidden) .robux-reference-hero,
#pubgCategoryPage.visible .pubg-hero {
  animation:l1017-page-in 380ms cubic-bezier(.22,1,.36,1) both;
}
#robloxGamePage .rgp-hero img,
#robuxModal:not(.hidden) .robux-reference-logo img,
#pubgCategoryPage.visible .pubg-hero img {
  animation:l1017-image-in 420ms cubic-bezier(.22,1,.36,1) both;
}
#robloxGamePage .rgp-card,
#robuxModal:not(.hidden) .robux-package,
#pubgCategoryPage.visible .pubg-category {
  animation:l1017-card-in 340ms cubic-bezier(.22,1,.36,1) both;
}
#robloxGamePage .rgp-card:nth-child(2),
#robuxModal:not(.hidden) .robux-package:nth-child(2),
#pubgCategoryPage.visible .pubg-category:nth-child(2) { animation-delay:40ms; }
#robuxModal:not(.hidden) .robux-package:nth-child(3),
#pubgCategoryPage.visible .pubg-category:nth-child(3) { animation-delay:70ms; }
#robuxModal:not(.hidden) .robux-package:nth-child(4) {animation-delay:100ms;}
#robuxModal:not(.hidden) .robux-package:nth-child(5) {animation-delay:130ms;}
#robuxModal:not(.hidden) .robux-package:nth-child(6) {animation-delay:160ms;}
#robuxModal:not(.hidden) .robux-package:nth-child(7) {animation-delay:190ms;}
#robuxModal:not(.hidden) .robux-package:nth-child(8) {animation-delay:220ms;}
#robuxModal:not(.hidden) .robux-package:nth-child(9) {animation-delay:250ms;}
#robuxModal:not(.hidden) .robux-package:nth-child(10) {animation-delay:280ms;}
#robuxModal .robux-package.selected .robux-art {
  animation: l1017-card-selected 580ms ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  #robloxGamePage .rgp-hero, #robuxModal .robux-reference-hero,
  #pubgCategoryPage .pubg-hero, #robloxGamePage .rgp-hero img,
  #robuxModal .robux-reference-logo img, #pubgCategoryPage .pubg-hero img,
  #robloxGamePage .rgp-card, #robuxModal .robux-package,
  #pubgCategoryPage .pubg-category,
  #robuxModal .robux-package.selected .robux-art {
    animation: none !important;
  }
}
/* Land the moving Roblox image precisely inside the already-designed square. */
.game-cover-flight.game-cover-flight--robux {
  object-fit: contain !important;
  background: #050914 !important;
  border-radius: 28px !important;
  box-shadow: 0 12px 38px rgba(0, 0, 0, .45) !important;
}
@keyframes l1017-robux-square-page-in {
  from { opacity: .65; }
  to { opacity: 1; }
}
/* Keep the square stationary while the flying image approaches its coordinates. */
#robuxModal:not(.hidden) .robux-reference-hero {
  animation: l1017-robux-square-page-in 420ms ease-out both;
}
/* The image is revealed by the flight; don't run a competing CSS transform. */
#robuxModal:not(.hidden) .robux-reference-logo img {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  #robuxModal:not(.hidden) .robux-reference-hero { animation: none !important; }
}
