/* The busy badge (/js/loading.js): the monke face bouncing in a corner while the
   page waits on something. The script places it and moves it; this sheet only
   says how big it is and how it is drawn. */

.gg-loading {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483000;
  width: 64px;
  height: 64px;
  pointer-events: none;
  /* A slide to a clearer corner: starts at once, eases into place. */
  transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}
.gg-loading[hidden] { display: none; }
.gg-loading.gg-snap { transition: none; }

@media (max-width: 600px) {
  .gg-loading { width: 52px; height: 52px; }
}

/* Lift and squash, then the pop, then the roll, each about the middle of the
   head, which sits a little above the middle of the picture. */
.gg-loading-body,
.gg-loading-pop,
.gg-loading-face {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 47%;
  will-change: transform;
}
.gg-loading-pop { opacity: 0; transform: scale(0); will-change: transform, opacity; }
.gg-loading-face {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  /* The same all the way round, so it stays put while the head rolls; keeps the
     white face readable over the sky or ice in the editor's view. */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .55));
}

.gg-loading-words {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gg-loading-safe {
  position: fixed;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
