/* The link keeps its original size while its contents move inside this window. */
.ornament-window {
  display: inline-block;
  vertical-align: middle;
  clip-path: inset(-30% -14%);
}
.ornament-group {
  position: relative;
  display: block;
  transform-origin: 50% 50%;
}
.ornament-group img { position: relative; display: block; }
.ornament-group::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 133%;
  aspect-ratio: 120 / 144;
  transform: translate(-50%, -59.72%);
  opacity: 0;
  pointer-events: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 144'%3E%3Cdefs%3E%3CradialGradient id='glass' cx='.32' cy='.25' r='.83'%3E%3Cstop stop-color='%23fff'/%3E%3Cstop offset='.68' stop-color='%23edeaf7'/%3E%3Cstop offset='1' stop-color='%23b0a9d6'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg stroke='%2332287e' stroke-linecap='round' fill='none'%3E%3Cpath d='M60 9v9c-8 2-6 10 0 10s8-7 2-9' stroke-width='2.7'/%3E%3Ccircle cx='60' cy='86' r='54.5' fill='url(%23glass)' stroke-width='3.5'/%3E%3Cpath d='M49 34v-6q0-3 3-3h16q3 0 3 3v6' fill='%23ada4d0' stroke-width='2'/%3E%3Cpath d='M54 28v4m6-4v4m6-4v4' stroke-width='1.5'/%3E%3C/g%3E%3Cpath d='M17 74q4-18 20-26' fill='none' stroke='white' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
@keyframes ornament-drop {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  22% { transform: translateY(0) scale(.65) rotate(-4deg); }
  42% { transform: translateY(1%) scale(.53) rotate(3deg); }
  51% { transform: translateY(-7%) scale(.53) rotate(-2deg); animation-timing-function: ease-in; }
  68% { transform: translateY(169%) scale(.43) rotate(7deg); opacity: 1; }
  68.1% { transform: translateY(169%) scale(.43); opacity: 0; }
  68.2% { transform: translateY(-150%) scale(.94); opacity: 0; }
  69% { transform: translateY(-150%) scale(.94); opacity: 1; animation-timing-function: ease-out; }
  88% { transform: translateY(7%) scale(1); }
}
@keyframes ornament-glass {
  0%, 8%, 68.1%, 100% { opacity: 0; }
  27%, 68% { opacity: 1; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .ornament-playing .ornament-group { animation: ornament-drop 2.8s ease-in-out both; }
  .ornament-playing .ornament-group::before { animation: ornament-glass 2.8s ease-in-out both; }
}
