/* 吉祥物 2D 元件的樣式。品牌動態規範：漂浮 4.5 秒循環，其他單次動作 0.6 秒；減少動態時全部關閉。 */
.ww-mascot {
  position: relative;
  display: inline-block;
  width: var(--ww-mascot-size, 220px);
  aspect-ratio: 1 / 1;
  transform-origin: 50% 92%;
}
.ww-mascot__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.ww-mascot__frame.is-on { opacity: 1; }

.ww-mascot--float { animation: ww-mascot-float 4.5s ease-in-out infinite; }
.ww-mascot__body { position: absolute; inset: 0; transform-origin: 50% 92%; }
.ww-mascot__body--hop { animation: ww-mascot-hop 0.6s cubic-bezier(.3, .7, .4, 1); }
.ww-mascot__body--sink { animation: ww-mascot-sink 0.6s ease-out forwards; }

@keyframes ww-mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4.5%); }
}
@keyframes ww-mascot-hop {
  0% { transform: translateY(0) scale(1.05, .95); }
  45% { transform: translateY(-15%) scale(.98, 1.03); }
  85% { transform: translateY(0) scale(1.04, .96); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes ww-mascot-sink {
  from { transform: translateY(0) rotate(0); }
  to { transform: translateY(2%) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ww-mascot--float,
  .ww-mascot__body--hop,
  .ww-mascot__body--sink { animation: none !important; }
}
