* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: transparent;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  color: #fff;
}

.overlay-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  max-width: 480px;
  width: 100%;
}

/* Speaking Popup Banner */
.active-speaking-popup {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 20, 32, 0.88);
  border: 2px solid #fe2c55;
  box-shadow: 0 8px 32px rgba(254, 44, 85, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 16px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.active-speaking-popup.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.speaking-avatar .avatar-circle {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #fe2c55, #25f4ee);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 15px rgba(254, 44, 85, 0.6);
}

.mouth-anim {
  width: 16px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  animation: mouthTalk 0.25s infinite alternate;
}

@keyframes mouthTalk {
  0% { height: 3px; }
  100% { height: 14px; border-radius: 6px; }
}

.speaking-content {
  flex: 1;
  min-width: 0;
}

.speaker-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #25f4ee;
  text-shadow: 0 0 8px rgba(37, 244, 238, 0.5);
  margin-bottom: 2px;
}

.speaker-message {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Chat bubble stream */
.chat-bubble-stream {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  max-height: 450px;
  overflow: hidden;
}

.obs-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 22, 34, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 8px 12px;
  animation: slideIn 0.3s ease-out forwards;
  transition: opacity 0.5s;
}

.obs-bubble.gift {
  background: linear-gradient(135deg, rgba(255, 190, 11, 0.25), rgba(254, 44, 85, 0.25));
  border-color: #ffbe0b;
  box-shadow: 0 0 15px rgba(255, 190, 11, 0.3);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.obs-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.obs-text {
  font-size: 0.88rem;
  line-height: 1.25;
}

.obs-user {
  font-weight: 700;
  color: #25f4ee;
  margin-right: 6px;
}
