.tip {
  position: absolute;
  max-width: 20em;
  margin: 1em 1em;
  left: 0;
  top: 0;
  opacity: 1;
  z-index: var(--z-index-tip);
  transition: opacity var(--layout-transition-extra-fast);
  transform-origin: bottom center;
  pointer-events: none;
}

@keyframes grow {
  0% {
    transform: translate(0, 0.2em) scale(0.95);
    clip-path: circle(0 at 50% 100%);
  }

  100% {
    transform: translate(0, 0) scale(1);
    clip-path: circle(100% at 50% 100%);
  }
}

@keyframes shirnk {
  0% {
    transform: translate(0, 0) scale(1);
    clip-path: circle(100% at 50% 100%);
  }

  100% {
    transform: translate(0, 0.2em) scale(0.95);
    clip-path: circle(0 at 50% 100%);
  }
}

.tip-intro {
  animation: grow var(--layout-transition-medium) 1;
}

.tip-outro {
  animation: shirnk var(--layout-transition-medium) 1;
}

.tip-message {
  padding: 0.5em 1em;
  background-color: rgb(var(--theme-color-04));
  border: 0;
  border-radius: calc(var(--theme-radius) * 2);
  color: rgb(var(--theme-color-18));
  font-size: 0.8em;
  font-family: var(--theme-font-ui-name);
  font-weight: var(--theme-font-ui-weight);
  font-style: var(--theme-font-ui-style);
  text-align: center;
  position: relative;
  display: block;
  z-index: 1;
}

.tip-arrow {
  border: 0.5em solid transparent;
  border-top-color: rgb(var(--theme-color-04));
  position: absolute;
  width: 0;
  height: 0;
  top: 100%;
  left: 50%;
  display: block;
  z-index: 2;
  transform: translate(-50%, 0);
}
