/* "Preparing this session" in the middle of the screen (sessionLoadingCard.js).
   It borrows the look of the desktop app's readiness dialog (styles.css,
   .session-readiness-*) and adds a bar that moves while the amount of work is
   not known. */
html body .sw-session-loading .sw-session-loading-bar {
  position: relative;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

html body .sw-session-loading .sw-session-loading-bar > span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  animation: sw-session-loading-slide 1.4s ease-in-out infinite;
}

html body .sw-session-loading .session-readiness-status {
  min-height: 1.3em;
}

html body .sw-session-loading .small-button {
  justify-self: end;
  opacity: 0.8;
}

@keyframes sw-session-loading-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(290%); }
}

@media (prefers-reduced-motion: reduce) {
  html body .sw-session-loading .sw-session-loading-bar > span {
    width: 100%;
    animation: none;
    opacity: 0.6;
  }
}
