/* Load after the Apple edition styles. Circle diameter includes this border. */
.apple-edition .watch-cloud-stage {
  position: absolute;
  inset: 0;
  contain: layout style;
  animation: watch-cloud-float 32s ease-in-out infinite;
  animation-play-state: paused;
  will-change: auto;
}

.apple-edition .watch-cloud-visible[data-cloud-phase="idle"] .watch-cloud-stage {
  animation-play-state: running;
}

.apple-edition .watch-cloud-visible .watch-cloud-stage { will-change: transform; }

/* Translation preserves both the footprint and all circle contacts. */
@keyframes watch-cloud-float {
  0%, 100% { transform: translate3d(-1.5px, 0, 0); }
  25% { transform: translate3d(0, -1.5px, 0); }
  50% { transform: translate3d(1.5px, 0, 0); }
  75% { transform: translate3d(0, 1.5px, 0); }
}

.apple-edition :is(#naming, #west, #china) .watch-cloud .watch-item {
  box-sizing: border-box;
  border: 3px solid #fff;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(64 102 139 / 11%), 0 1px 4px rgb(25 54 86 / 9%);
  transition: none;
  transform-origin: center;
  z-index: 1;
  will-change: auto;
}

.apple-edition :is(#naming, #west, #china) .watch-cloud-visible .watch-item {
  will-change: transform;
}

.apple-edition :is(#naming, #west, #china) .watch-cloud .watch-item > img {
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.apple-edition :is(#naming, #west, #china) .watch-cloud .watch-item:hover,
.apple-edition :is(#naming, #west, #china) .watch-cloud .watch-item:focus-visible {
  z-index: 500;
}

.apple-edition :is(#naming, #west, #china) .watch-cloud .watch-label {
  top: auto;
  bottom: calc(100% + 11px);
  left: 50%;
  width: max-content;
  max-width: min(275px, 70vw);
  padding: 8px 13px;
  border: 1px solid rgb(33 73 113 / 9%);
  border-radius: 12px;
  background: rgb(255 255 255 / 97%);
  color: #253d55;
  box-shadow: 0 7px 25px rgb(25 53 85 / 13%);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 9px) scale(var(--watch-label-scale, 1));
  transform-origin: 50% 100%;
  transition: opacity 180ms ease, transform 240ms cubic-bezier(.2, .7, .2, 1), visibility 0s linear 240ms;
}

.apple-edition :is(#naming, #west, #china) .watch-cloud .watch-item:hover .watch-label,
.apple-edition :is(#naming, #west, #china) .watch-cloud .watch-item:focus-visible .watch-label {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -2px) scale(var(--watch-label-scale, 1));
  transition-delay: 0s;
}

.apple-edition.motion-off :is(#naming, #west, #china) .watch-cloud .watch-label {
  transition: none;
}

.apple-edition.motion-off .watch-cloud-stage { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .apple-edition :is(#naming, #west, #china) .watch-cloud .watch-label { transition: none; }
  .apple-edition .watch-cloud-stage { animation: none; }
}

@media (max-width: 600px) {
  .apple-edition :is(#naming, #west, #china) .watch-cloud .watch-item { border-width: 2px; padding: 0; }
  .apple-edition :is(#naming, #west, #china) .watch-cloud .watch-label { font-size: 12px; }
}
