/* RC7.1 — Character banter bubbles (bonus-only, character meter area) */

.character-meter-host--bonus-banter,
.playground--player-view.slot-bonus-active .character-meter-host--bonus-banter,
.slot-bonus-active .character-meter-host--bonus-banter {
  visibility: visible !important;
  pointer-events: none;
}

.character-meter-panel--bonus-banter {
  display: grid !important;
  visibility: visible !important;
  pointer-events: none;
}

.character-meter-portrait--banter-hidden {
  display: none !important;
}

.character-meter-portrait--banter-active {
  position: relative;
}

.character-meter-hint--banter-hidden {
  visibility: hidden;
}

.character-banter-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%) translateY(8px) scale(0.92);
  z-index: 6;
  max-width: min(280px, 92vw);
  padding: 0.55rem 0.75rem 0.65rem;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.35),
    0 0 24px var(--banter-glow, rgba(56, 189, 248, 0.35));
  background: linear-gradient(
    145deg,
    var(--banter-bg-a, rgba(8, 47, 73, 0.92)),
    var(--banter-bg-b, rgba(49, 46, 129, 0.92))
  );
}

.character-banter-bubble--visible {
  animation: character-banter-enter 420ms cubic-bezier(0.34, 1.35, 0.64, 1) forwards;
}

.character-banter-bubble--exit {
  animation: character-banter-exit 280ms ease-in forwards;
}

.character-banter-bubble-text {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.character-banter-bubble-tail {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid rgba(255, 255, 255, 0.28);
  border-bottom: 2px solid rgba(255, 255, 255, 0.28);
  background: var(--banter-tail, rgba(30, 27, 75, 0.92));
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25);
}

.character-banter--hansolo {
  --banter-bg-a: rgba(8, 47, 73, 0.92);
  --banter-bg-b: rgba(76, 29, 149, 0.92);
  --banter-glow: rgba(34, 211, 238, 0.45);
  --banter-tail: rgba(30, 58, 138, 0.92);
  border-color: rgba(34, 211, 238, 0.55);
}

.character-banter--kissik {
  --banter-bg-a: rgba(76, 29, 149, 0.92);
  --banter-bg-b: rgba(157, 23, 77, 0.92);
  --banter-glow: rgba(244, 114, 182, 0.45);
  --banter-tail: rgba(109, 40, 217, 0.92);
  border-color: rgba(244, 114, 182, 0.55);
}

.character-meter-panel--v2 .character-banter-bubble {
  bottom: calc(100% + 0.15rem);
  max-width: min(240px, 88vw);
}

@keyframes character-banter-enter {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.9);
  }
  55% {
    opacity: 0.92;
    transform: translateX(-50%) translateY(-3px) scale(1.04);
  }
  100% {
    opacity: 0.92;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes character-banter-exit {
  from {
    opacity: 0.92;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.96);
  }
}
