#product-loading {
  position: absolute; inset: 0; z-index: 10; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 20px; background: #fff; color: #30283d; text-align: center;
}
#unity-container { position: relative; }
#product-loading[hidden], #product-loading [hidden] { display: none; }
.product-loading-stage { width: 180px; height: 190px; position: relative; margin-bottom: 26px; }
.product-loading-stage::after {
  content: ""; position: absolute; bottom: 0; left: 25%; width: 50%; height: 10px;
  border-radius: 50%; background: #eee5fc; animation: product-shadow 800ms ease-in-out infinite;
}
.product-loading-dancer { position: relative; z-index: 1; width: 100%; height: 100%; transform-origin: 50% 85%; animation: product-dance 800ms ease-in-out infinite; will-change: transform; }
.product-loading-frame { position: absolute; inset: 0; opacity: 0; background: #fff; animation: product-character 12s steps(1, end) infinite; animation-play-state: paused; will-change: opacity; }
.product-loading-frame img { width: 100%; height: 100%; object-fit: contain; }
#product-loading[data-state="preparing"] .product-loading-frame:first-child { opacity: 1; animation: none; }
#product-loading[data-state="loading"] .product-loading-frame { animation-play-state: running; }
.product-loading-frame:nth-child(1) { animation-delay: 0ms; }
.product-loading-frame:nth-child(2) { animation-delay: 800ms; }
.product-loading-frame:nth-child(3) { animation-delay: 1600ms; }
.product-loading-frame:nth-child(4) { animation-delay: 2400ms; }
.product-loading-frame:nth-child(5) { animation-delay: 3200ms; }
.product-loading-frame:nth-child(6) { animation-delay: 4000ms; }
.product-loading-frame:nth-child(7) { animation-delay: 4800ms; }
.product-loading-frame:nth-child(8) { animation-delay: 5600ms; }
.product-loading-frame:nth-child(9) { animation-delay: 6400ms; }
.product-loading-frame:nth-child(10) { animation-delay: 7200ms; }
.product-loading-frame:nth-child(11) { animation-delay: 8000ms; }
.product-loading-frame:nth-child(12) { animation-delay: 8800ms; }
.product-loading-frame:nth-child(13) { animation-delay: 9600ms; }
.product-loading-frame:nth-child(14) { animation-delay: 10400ms; }
.product-loading-frame:nth-child(15) { animation-delay: 11200ms; }
.product-loading-spinner { width: 28px; height: 28px; border: 3px solid #eee5fc; border-top-color: #843dff; border-radius: 50%; animation: product-spin 900ms linear infinite; }
#product-loading #unity-status { position: static; margin: 18px 0 0; max-width: 360px; color: #62596d; font: 400 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; word-break: keep-all; }
#product-loading-retry { margin-top: 18px; border: 0; border-radius: 999px; padding: 12px 24px; background: #843dff; color: #fff; font: 600 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
#product-loading-retry:focus-visible { outline: 3px solid #30283d; outline-offset: 4px; }
#product-loading[data-state="error"] .product-loading-spinner { display: none; }
#product-loading[data-state="error"] .product-loading-dancer,
#product-loading[data-state="error"] .product-loading-stage::after { animation: none; }
#product-loading[data-state="error"] .product-loading-frame { animation: none; opacity: 0; }
#product-loading[data-state="error"] .product-loading-frame:first-child { opacity: 1; }
@keyframes product-character { 0% { opacity: 1; } 6.666667%, 100% { opacity: 0; } }
@keyframes product-dance { 0%, 100% { transform: translateY(0) rotate(-8deg); } 25% { transform: translateY(-12px) rotate(0); } 50% { transform: translateY(0) rotate(8deg); } 75% { transform: translateY(-12px) rotate(0); } }
@keyframes product-shadow { 0%, 50%, 100% { transform: scaleX(1); opacity: .8; } 25%, 75% { transform: scaleX(.75); opacity: .4; } }
@keyframes product-spin { to { transform: rotate(360deg); } }
@media (max-height: 420px) { .product-loading-stage { width: 110px; height: 120px; margin-bottom: 16px; } #product-loading #unity-status { margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) { .product-loading-dancer, .product-loading-stage::after, .product-loading-spinner, #product-loading .product-loading-frame { animation: none; } #product-loading .product-loading-frame { opacity: 0; } #product-loading .product-loading-frame:first-child { opacity: 1; } }
