/* Guest-ball flights (see app/src/guestBallAnimation.ts): clones fly in a
   fixed layer below the header, above the room tools, below dialogs. */
#guestBallAnimationLayer {
  position: fixed;
  top: var(--headerHeight);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 150;
}
.animatedGuestBall {
  position: absolute;
  transform-origin: 0 0;
}
/* Clones keep the guestBall class for its shape rules, but none of the
   positioning, hover growth or 0.2s transition the real balls carry — those
   would fight the Web Animations keyframes. */
#guestBallAnimationLayer .guestBall {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  transition: none;
  border-radius: 50%;
}
/* A real list ball inherits its text style from the <button> row it sits in. */
#guestBallAnimationLayer .listBallClone {
  font-family: "Lato Bold";
  font-weight: 600;
}
#guestBallAnimationLayer .listBallClone p {
  font-size: 0.8rem;
  line-height: 1.12rem;
}
/* The real ball while its clone is in flight. transition: none matters —
   visibility is discretely animatable, and .guestBall transitions every
   property, so without it the real ball would linger for 200ms. */
.guestBallFlying {
  visibility: hidden !important;
  transition: none !important;
}

/* Translucent cover over the room while auto-placement runs. */
#roomLoadingCover {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bgTranslucent);
  color: var(--textFaint);
  pointer-events: auto;
  transition: opacity 150ms;
}
#roomLoadingCover[hidden] {
  display: none;
}
#roomLoadingCover.fadingOut {
  opacity: 0;
  pointer-events: none;
}
.roomSpinner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 10px solid var(--greyLight);
  border-top-color: var(--gold);
  animation: roomSpin 1.2s linear infinite;
}
@keyframes roomSpin {
  to {
    transform: rotate(360deg);
  }
}
/* Auto-place buttons stay off until the balls have landed. */
.autoPlacing .createPlacementButton {
  opacity: 0.5;
  pointer-events: none;
}
