/* =========================================================
   MIND GAMES - OYUN İÇİ TEPKİLER (ortak/tepkiler.js ile birlikte)
   ========================================================= */

/* Sol alttaki 💬 butonu (sağ altta tema butonu var) */
.tepki-buton {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--ana);
  color: var(--ana-uzeri);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.tepki-buton:hover { transform: scale(1.06); }
.tepki-buton.acik { transform: scale(0.94); }
.tepki-buton:focus-visible { outline: 3px solid var(--yazi); outline-offset: 3px; }

/* Seçim paneli */
.tepki-panel {
  position: fixed;
  left: 18px;
  bottom: 80px;
  z-index: 900;
  width: min(330px, calc(100vw - 36px));
  padding: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  animation: tepki-panel-ac 0.15s ease-out;
}
.tepki-panel[hidden] { display: none; }
@keyframes tepki-panel-ac {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.tepki-ifadeler {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tepki-ifade {
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--arka);
  color: var(--yazi);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--cizgi);
}
.tepki-ifade:hover { box-shadow: inset 0 0 0 2px var(--ana); }

.tepki-emojiler {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.tepki-emoji {
  border: none;
  border-radius: 10px;
  padding: 6px 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.1s;
}
.tepki-emoji:hover { background: var(--arka); transform: scale(1.15); }
.tepki-ifade:focus-visible,
.tepki-emoji:focus-visible { outline: 2px solid var(--ana); outline-offset: 1px; }

/* Konuşma balonu: oyun alanının içinde, üst kenarda (rakip) ya da alt kenarda (ben).
   İçeride durur ki uzun tahtalarda da ekranda görünsün. */
.tepki-balon {
  position: absolute;
  left: 50%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(320px, 90%);
  padding: 8px 16px;
  border-radius: 18px;
  background: var(--yuzey);
  color: var(--yazi);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 0 0 1px var(--cizgi);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 0) scale(0.7);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.tepki-balon.ust { top: 14px; transform-origin: 50% 0; }
.tepki-balon.alt { bottom: 14px; transform-origin: 50% 100%; }
.tepki-balon.goster { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Balonun ucu: konuşanın tarafını gösterir (rakip yukarı, sen aşağı) */
.tepki-balon::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--yuzey);
  transform: translateX(-50%) rotate(45deg);
}
.tepki-balon.ust::after { top: -6px; box-shadow: -1px -1px 0 var(--cizgi); }
.tepki-balon.alt::after { bottom: -6px; box-shadow: 1px 1px 0 var(--cizgi); }

.tepki-kim {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--soluk);
}
.tepki-metin {
  font-weight: 700;
  font-size: 1.05rem;
}
.tepki-metin.sadece-emoji { font-size: 2.2rem; line-height: 1.1; }

@media (prefers-reduced-motion: reduce) {
  .tepki-balon, .tepki-buton { transition: none; }
  .tepki-panel { animation: none; }
}
