:root {
  --tr-sky: #97cdfa;
  --tr-ink: #283844;
}

.tr-sweat-drop,
.tr-touch-ripple,
.tr-touch-splash {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: transform, opacity;
}

.tr-sweat-drop,
.tr-touch-splash {
  width: auto;
  height: auto;
  background: none;
  border: 0;
  box-shadow: none;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: var(--tr-drop-size, 18px);
  font-style: normal;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.tr-sweat-drop {
  animation: tr-drop-fade 820ms cubic-bezier(.18,.75,.3,1) forwards;
}

.tr-touch-ripple {
  width: 24px;
  height: 24px;
  border: 3px solid var(--tr-sky);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.25);
  box-shadow: 0 0 0 1px rgba(252, 251, 247, .65);
  animation: tr-ripple 820ms ease-out forwards;
}

.tr-touch-ripple.is-secondary {
  width: 18px;
  height: 18px;
  border-width: 1.5px;
  animation-delay: 90ms;
}

.tr-touch-splash {
  animation: tr-splash 720ms cubic-bezier(.18,.72,.2,1) forwards;
}

@keyframes tr-drop-fade {
  0% { opacity: .92; transform: translate(-50%, -50%) scale(.72); }
  42% { opacity: .76; }
  100% { opacity: 0; transform: translate(-50%, 22px) scale(.42); }
}

@keyframes tr-ripple {
  0% { opacity: .86; transform: translate(-50%, -50%) scale(.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(5.4); }
}

@keyframes tr-splash {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.72); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tr-x)), calc(-50% + var(--tr-y))) scale(.35); }
}

@media (prefers-reduced-motion: reduce) {
  .tr-sweat-drop { animation-duration: 620ms; }
  .tr-touch-ripple,
  .tr-touch-splash { animation-duration: 680ms; }
}
