/* Shared by the pre-JavaScript shell and the Vue startup screen. */
.storefront-loading {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background: #fff;
}

.storefront-loading__stage {
  position: relative;
  width: 240px;
  height: 180px;
}

.storefront-loading__skater {
  position: absolute;
  top: 8px;
  left: 45px;
  z-index: 1;
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  /* Hide the reference image's "Tap to flip" caption above the character. */
  clip-path: inset(30px 0 0);
  animation: storefront-glide 1.8s ease-in-out infinite;
}

.storefront-loading__shadow {
  position: absolute;
  left: 76px;
  bottom: 21px;
  width: 96px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
  filter: blur(4px);
  animation: storefront-glide-shadow 1.8s ease-in-out infinite;
}

.storefront-loading__trail {
  position: absolute;
  top: 87px;
  left: 22px;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: #e5e7eb;
  box-shadow: -10px 12px 0 #e5e7eb, 5px 24px 0 #e5e7eb;
  animation: storefront-glide-trail 0.9s ease-out infinite;
}

@keyframes storefront-glide {
  0%, 100% { transform: translate(-12px, 3px) rotate(-3deg); }
  50% { transform: translate(12px, -8px) rotate(2deg); }
}

@keyframes storefront-glide-shadow {
  0%, 100% { transform: translateX(-12px) scaleX(1); opacity: 0.12; }
  50% { transform: translateX(12px) scaleX(0.75); opacity: 0.06; }
}

@keyframes storefront-glide-trail {
  from { transform: translateX(12px); opacity: 0.7; }
  to { transform: translateX(-12px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-loading__stage > * { animation: none; }
  .storefront-loading__shadow { opacity: 0.1; }
  .storefront-loading__trail { display: none; }
}
