/* Kanumanu sans kelebegi efekti (ayri effect dosyasi) */
.coin-animation {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.butterfly {
  position: absolute;
  width: 54px;
  height: 54px;
  left: 0;
  top: 0;
  opacity: 0;
  transform-origin: center;
  will-change: transform;
}

.butterfly svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 5px 7px rgba(130,100,180,.2));
}

.wing-left,
.wing-right {
  transform-box: fill-box;
}

.wing-left {
  transform-origin: right center;
}

.wing-right {
  transform-origin: left center;
}

.coin {
  position: absolute;
  font-size: 19px;
  opacity: 0;
  animation: coinDrop .9s ease-out forwards;
}

.reward {
  position: absolute;
  color: #d89b00;
  font-size: 22px;
  font-weight: 800;
  opacity: 0;
  text-shadow: 0 2px 5px rgba(150,100,0,.15);
  animation: rewardUp 1.1s ease-out .25s forwards;
}

@keyframes coinDrop {
  0% {
    opacity: 0;
    transform: translate(0, -10px) scale(.5);
  }
  25% {
    opacity: 1;
    transform: translate(var(--x), -25px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), 20px) scale(.7);
  }
}

@keyframes rewardUp {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(.8);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-45px) scale(1.1);
  }
}

.kanumanu-speech {
  position: absolute;
  max-width: 230px;
  padding: 10px 14px 10px 34px;
  border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,.95);
  background: linear-gradient(135deg, #ffe3f1 0%, #e6dbff 50%, #cdeeff 100%);
  color: #6a4b63;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(190,130,220,.35), inset 0 1px 0 rgba(255,255,255,.8);
  opacity: 0;
  transform: translateY(6px) scale(.95);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  white-space: normal;
}

.kanumanu-speech::before {
  content: '🦋';
  position: absolute;
  left: 10px;
  top: 8px;
  font-size: 16px;
  animation: kanumanuBob 1.2s ease-in-out infinite;
}

.kanumanu-speech::after {
  content: '';
  position: absolute;
  left: 26px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #e6dbff;
  border-right: 1.5px solid rgba(255,255,255,.95);
  border-bottom: 1.5px solid rgba(255,255,255,.95);
  transform: rotate(45deg);
  border-bottom-right-radius: 3px;
}

.kanumanu-speech.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: kanumanuFloat 2.4s ease-in-out .25s infinite;
}

@keyframes kanumanuBob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-3px) rotate(8deg); }
}

@keyframes kanumanuFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -4px; }
}

/* Oda ekrani sabit duyuru balonu (konma mesaji) */
.kanumanu-speech.kanumanu-room-bubble {
  position: fixed;
  left: 50%;
  top: 74px;
  transform: translateX(-50%) translateY(-8px) scale(.95);
  max-width: min(480px, 90vw);
  padding: 12px 20px 12px 42px;
  font-size: 14px;
  z-index: 10001;
}

.kanumanu-speech.kanumanu-room-bubble::before {
  left: 14px;
  top: 10px;
  font-size: 20px;
}

.kanumanu-speech.kanumanu-room-bubble::after {
  display: none;
}

.kanumanu-speech.kanumanu-room-bubble.visible {
  transform: translateX(-50%) translateY(0) scale(1);
}

.kanumanu-award {
  position: fixed;
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%) scale(.8);
  padding: 20px 38px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, #fff3b0, #ffd6e8 40%, #c8b6ff 75%, #9edfff);
  background-size: 200% 200%;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 12px 44px rgba(150,110,200,.45), 0 0 24px rgba(255,215,130,.55), inset 0 1px 0 rgba(255,255,255,.8);
  color: #5b3a6e;
  font-weight: 800;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  animation: kanumanuAwardIn .45s ease-out forwards, kanumanuShimmer 2.2s linear infinite, kanumanuAwardOut .5s ease-in 4s forwards;
}

.kanumanu-award::before,
.kanumanu-award::after {
  position: absolute;
  font-size: 18px;
  animation: kanumanuTwinkle 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 4px #fff);
}

.kanumanu-award::before {
  content: '✨';
  left: 12px;
  top: 10px;
}

.kanumanu-award::after {
  content: '💜';
  right: 12px;
  bottom: 10px;
  animation-delay: .55s;
}

.kanumanu-award .ka-title {
  display: block;
  font-size: 15px;
}

.kanumanu-award .ka-nick {
  display: block;
  font-size: 22px;
  margin-top: 2px;
}

.kanumanu-award .ka-amount {
  display: block;
  font-size: 28px;
  color: #b97b00;
  margin-top: 4px;
  text-shadow: 0 2px 6px rgba(150,100,0,.25);
}

@keyframes kanumanuAwardIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes kanumanuAwardOut {
  to {
    opacity: 0;
    transform: translate(-50%, -60%) scale(1.05);
  }
}

@keyframes kanumanuShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes kanumanuTwinkle {
  0%, 100% { opacity: .4; transform: scale(.85) rotate(-10deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(10deg); }
}

/* Sohbet ici Kanumanu odul/log karti (klasik mesaj yerine) */
.message.kanumanu-log-message {
  display: flex;
  justify-content: center;
  background: none;
  border: none;
  box-shadow: none;
  padding: 6px 8px;
}

.kanumanu-log-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 92%;
  padding: 10px 18px 10px 14px;
  border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,.95);
  background: linear-gradient(135deg, #fff3b0, #ffd6e8 45%, #c8b6ff 80%, #9edfff);
  background-size: 200% 200%;
  box-shadow: 0 8px 26px rgba(190,130,220,.35), inset 0 1px 0 rgba(255,255,255,.8);
  color: #5b3a6e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  animation: kanumanuShimmer 3s linear infinite;
}

.kanumanu-log-butterfly {
  font-size: 22px;
  flex: 0 0 auto;
  animation: kanumanuBob 1.4s ease-in-out infinite;
  filter: drop-shadow(0 2px 3px rgba(150,100,180,.35));
}

.kanumanu-log-card .message-time {
  flex: 0 0 auto;
  opacity: .65;
  font-size: 10px;
  font-weight: 600;
}
