.hitalk-secret {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  color: var(--page-muted, #755847);
}

.hitalk-secret > button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.hitalk-secret > button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.hitalk-secret-perch {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 64px;
  height: 52px;
  overflow: hidden;
  pointer-events: none;
}

.hitalk-secret-perch::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.4;
  content: '';
}

.hitalk-secret-cat {
  display: block;
  color: #654b3d;
  transform: translateY(27px);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hitalk-secret-tail {
  transform-origin: 60px 53px;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hitalk-secret-fur {
  fill: #edcba1;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .hitalk-secret:not([data-open='true']) > button:hover .hitalk-secret-cat {
    transform: translateY(23px);
  }

  .hitalk-secret > button:hover .hitalk-secret-tail {
    transform: rotate(-12deg);
  }
}

.hitalk-secret[data-open='true'] .hitalk-secret-cat {
  transform: translateY(0);
}

.hitalk-secret[data-open='true'] .hitalk-secret-tail {
  transform: rotate(-12deg);
}

.hitalk-secret-caption {
  position: absolute;
  bottom: 68px;
  left: 50%;
  padding: 5px 10px;
  border: 1px solid var(--page-border, #e6dacd);
  border-radius: 12px 12px 12px 3px;
  background: var(--page-surface, #fffdf9);
  color: var(--page-ink, #654b3d);
  font: 12px/1.6 sans-serif;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out,
    visibility 0s 180ms;
}

.hitalk-secret[data-open='true'] .hitalk-secret-caption {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 120ms;
}

.hitalk-secret-message {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .hitalk-secret-cat,
  .hitalk-secret-tail,
  .hitalk-secret-caption {
    transition: none;
  }

  .hitalk-secret > button:hover .hitalk-secret-tail,
  .hitalk-secret[data-open='true'] .hitalk-secret-tail {
    transform: none;
  }

  .hitalk-secret:not([data-open='true']) > button:hover .hitalk-secret-cat {
    transform: translateY(27px);
  }
}
