* {
  cursor: none;
}

@media (pointer: coarse) {
  * {
    cursor: auto;
  }
}

.star-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  translate: -50% -50%;
}

.star-cursor__svg {
  width: 3rem;
  height: 3rem;
  overflow: visible;
  display: block;
  transition:
    width  0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.star-cursor__shape {
  fill: var(--background);
  stroke: var(--primary);
  stroke-width: 0.4rem;
  stroke-linejoin: round;
}

.star-cursor__eye {
  fill: var(--primary);
}

.star-cursor__mouth {
  fill: none;
  stroke: var(--primary);
  stroke-width: 0.2rem;
  stroke-linecap: round;
}

.star-cursor--soon .star-cursor__mouth {
  fill: var(--primary);
  stroke: none;
}

.star-cursor--idle .star-cursor__svg {
  animation: spin 9s linear infinite;
}

.star-cursor--view .star-cursor__svg {
  width: 4rem;
  height: 4rem;
  animation: wiggle 1s ease-in-out infinite;
}

.star-cursor--soon .star-cursor__svg {
  width: 4rem;
  height: 4rem;
  animation: tilt 1.2s ease-in-out infinite;
}

.speech-bubble {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.18s;
}

.speech-bubble--show {
  opacity: 1;
}

.speech-bubble__svg {
  overflow: visible;
  display: block;
}

.speech-bubble__rect {
  fill: var(--background);
  stroke: var(--primary);
  stroke-width: 0.3rem;
}

.speech-bubble__text {
  fill: var(--primary);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

/* animations */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-9deg) scale(1); }
  50% { transform: rotate(9deg)  scale(1.2); }
}

@keyframes tilt {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}