/* Mouth speech bubble — matches site YEE bubble (white + black border + Lilita One) */
#yee-mouth-bubble {
  position: absolute;
  top: 18%;
  left: 58%;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.4) translateY(10px) rotate(-4deg);
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

#yee-mouth-bubble.ymb-show {
  opacity: 1;
  transform: scale(1) translateY(0) rotate(-2deg);
  animation: ymb-bob 0.9s ease-in-out infinite;
}

#yee-mouth-bubble.ymb-hide {
  opacity: 0;
  transform: scale(0.5) translateY(8px) rotate(3deg);
}

@keyframes ymb-bob {
  0%,
  100% {
    transform: scale(1) translateY(0) rotate(-2deg);
  }
  50% {
    transform: scale(1.04) translateY(-4px) rotate(2deg);
  }
}

#yee-mouth-bubble .ymb-inner {
  position: relative;
  background: #fff;
  border: 3px solid #000;
  border-radius: 16px;
  padding: 6px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

#yee-mouth-bubble .ymb-text {
  font-family: "Lilita One", cursive;
  font-size: clamp(1.1rem, 2.8vw, 1.85rem);
  color: #000;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  display: block;
}

#yee-mouth-bubble .ymb-tail {
  position: absolute;
  left: 28%;
  bottom: -12px;
  width: 0;
  height: 0;
}

#yee-mouth-bubble .ymb-tail-fill {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid #fff;
  position: relative;
  z-index: 2;
}

#yee-mouth-bubble .ymb-tail-stroke {
  position: absolute;
  top: 1px;
  left: -2px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 14px solid #000;
  z-index: 1;
}

/* Extra floating YEE phrases (site style) */
.yee-float-extra {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) translateY(16px) scale(0.6);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.yee-float-extra.yfe-in {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}

.yee-float-extra.yfe-out {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(-28px) scale(0.85);
}

.yee-float-extra .yfe-bubble {
  background: #fff;
  border: 1.5px solid #000;
  border-radius: 12px;
  padding: 3px 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.yee-float-extra .yfe-text {
  font-family: "Lilita One", cursive;
  font-size: 12px;
  color: #000;
  white-space: nowrap;
  user-select: none;
}

.yee-float-extra .yfe-tail {
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  filter: drop-shadow(0 1px 0 #000);
}

@media (max-width: 768px) {
  #yee-mouth-bubble {
    top: 14%;
    left: 52%;
  }
  #yee-mouth-bubble .ymb-inner {
    border-width: 2px;
    padding: 4px 10px;
    border-radius: 12px;
  }
  #yee-mouth-bubble .ymb-text {
    font-size: 1.05rem;
  }
}
