/* Shared initial-entry artwork. No timers, audio, progress claims or wait floor. */
.frog-loading {
  position: relative;
  width: 220px;
  /* Reserve the complete airborne silhouette, not just the seated pose. */
  height: 198px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}
.frog-loading[hidden] { display: none; }
.frog-loading img {
  position: absolute;
  display: block;
  object-fit: contain;
}
.frog-loading-dock { width: 200px; height: 125px; left: calc(50% - 100px); top: 79.5px; }
.frog-loading-rest {
  width: 82px; height: 82px; left: calc(50% - 41px); top: 57px;
  transform-origin: 50% 100%;
  animation: frog-loading-rest 3.2s linear infinite;
}
.frog-loading-jump {
  width: 108px; height: 108px; left: calc(50% - 54px); top: 44px;
  opacity: 0;
  animation: frog-loading-hop 3.2s linear infinite;
}
.frog-loading-arriving { animation-name: frog-loading-arrive; }
@keyframes frog-loading-rest {
  0%, 17.1875%, 60.25%, 100% { opacity: 1; transform: scale(1); }
  21.874% { opacity: 1; transform: scale(1.08, .88); }
  21.875%, 53.999% { opacity: 0; transform: scale(1); }
  54% { opacity: 1; transform: scale(1); }
  57.125% { opacity: 1; transform: scale(1.08, .88); }
}
@keyframes frog-loading-hop {
  0%, 21.874% { opacity: 0; transform: translate(0, 0); }
  21.875% { opacity: 1; transform: translate(0, 0); }
  26.1719% { opacity: 1; transform: translate(27.5px, -20px) rotate(8deg); }
  30.4688% { opacity: 1; transform: translate(55px, -28px) rotate(12deg); }
  34.7656% { opacity: 1; transform: translate(82.5px, -20px) rotate(16deg); }
  39.0625% { opacity: 1; transform: translate(110px, 0) rotate(20deg); }
  45%, 100% { opacity: 0; transform: translate(160px, 40px) rotate(24deg); }
}
/* A second sprite enters during the departing frog's final frames. Same PNG,
   one cached asset; separate layers avoid teleporting or an empty stage.
   Keep its posture level through the approach so it never rocks backward
   before contact. The seated sprite handles compression after touchdown. */
@keyframes frog-loading-arrive {
  0%, 34.7656% { opacity: 0; transform: translate(-110px, 0); }
  39.0625% { opacity: 1; transform: translate(-82.5px, -20px); }
  44% { opacity: 1; transform: translate(-55px, -28px); }
  49% { opacity: 1; transform: translate(-27.5px, -20px); }
  53.999% { opacity: 1; transform: translate(0, 0); }
  54%, 100% { opacity: 0; transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .frog-loading-rest { animation: none; opacity: 1; transform: none; }
  .frog-loading-jump { animation: none; display: none; }
}
/* Leave status/error text in the existing accessible container. */
.capability-bootstrap-message:has(.frog-loading:not([hidden])) {
  text-align: center;
}
.capability-bootstrap-message:has(.frog-loading:not([hidden])) h1 {
  font-size: 1.125rem;
}
.capability-bootstrap-message:has(.frog-loading:not([hidden])) [data-capability-bootstrap-status] {
  display: none;
}
.phone-screen[data-screen="loading"] { text-align: center; }
.owner-library-loading > .frog-loading { margin-bottom: 8px; }
