.chime-module{
  width:560px;
  height:350px;
  min-width:330px;
  min-height:235px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  container-type:size;
}

.chime-module .widget-heading{
  flex:0 0 auto;
  padding-right:102px;
  margin-bottom:-4px;
  position:relative;
  z-index:3;
}

.chime-stage{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  margin:0 8px 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  isolation:isolate;
}

.chime-strike{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  touch-action:manipulation;
  display:flex;
  align-items:center;
  justify-content:center;
}

.chime-strike:focus-visible{
  outline:2px solid #60a5fa;
  outline-offset:7px;
  border-radius:16px;
}

.chime-art{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
  filter:drop-shadow(0 8px 11px rgba(35,28,20,.10));
  transform-origin:50% 58%;
  will-change:transform;
}

.chime-mallet{
  position:absolute;
  z-index:4;
  width:33%;
  max-width:190px;
  left:2%;
  top:17%;
  opacity:0;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  transform-origin:86% 18%;
  transform:translate(-42px,-14px) rotate(-36deg);
  filter:drop-shadow(0 7px 8px rgba(20,16,12,.18));
  will-change:transform,opacity;
}

.chime-stage.is-striking .chime-mallet{
  animation:chimeMalletStrike 680ms cubic-bezier(.22,.8,.24,1) both;
}

.chime-stage.is-striking .chime-art{
  animation:chimeBodyRing 720ms ease-out both;
}

@keyframes chimeMalletStrike{
  0%{
    opacity:0;
    transform:translate(-42px,-14px) rotate(-36deg);
  }
  12%{
    opacity:1;
  }
  44%{
    opacity:1;
    transform:translate(74px,12px) rotate(-8deg);
  }
  54%{
    opacity:1;
    transform:translate(68px,8px) rotate(-11deg);
  }
  72%{
    opacity:1;
    transform:translate(20px,-4px) rotate(-24deg);
  }
  100%{
    opacity:0;
    transform:translate(-42px,-14px) rotate(-36deg);
  }
}

@keyframes chimeBodyRing{
  0%,34%{transform:translateX(0) rotate(0)}
  42%{transform:translateX(-1.4px) rotate(-.22deg)}
  50%{transform:translateX(1.2px) rotate(.18deg)}
  58%{transform:translateX(-.9px) rotate(-.13deg)}
  67%{transform:translateX(.65px) rotate(.09deg)}
  78%{transform:translateX(-.35px) rotate(-.05deg)}
  100%{transform:translateX(0) rotate(0)}
}

@container (max-width:430px){
  .chime-stage{margin-left:4px;margin-right:4px;margin-bottom:6px}
  .chime-mallet{width:37%;left:-1%;top:20%}
}

@media (prefers-reduced-motion:reduce){
  .chime-stage.is-striking .chime-mallet{
    animation:chimeMalletStrikeReduced 360ms ease both;
  }
  .chime-stage.is-striking .chime-art{
    animation:none;
  }
  @keyframes chimeMalletStrikeReduced{
    0%,100%{opacity:0}
    25%,70%{opacity:1}
  }
}

.chime-module[data-tile-skin=chime-clear]{overflow:visible}
.chime-module[data-tile-skin=chime-clear] .widget-heading{display:none}
.chime-module[data-tile-skin=chime-clear] .chime-stage{margin:0}
