/* QA-10 — AI seat names and the occasional emote bubble. Presentation only;
   pointers stay off so piece taps and the choice rings keep working. */

/* Character names are longer than a colour word; the two seats on a row still fit side by side. */
.seat-marker[data-ai="true"] { max-width: 44%; }

/* P1 (2026-12-01): the seat label no longer carries a small copy of the piece (it read as a fifth piece
   in the yard); it keeps the team-colour dot from identity-guidance.css. */

.ai-emote-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  user-select: none;
}

.ai-emote {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 46%;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--emote-ink, #fff);
  background: rgba(10, 12, 24, 0.92);
  color: #fff;
  font: 700 12px/1.2 system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  animation: ai-emote-pop 2.4s ease-out both;
}

.ai-emote-glyph {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emote-ink, #fff);
  color: #10142a;
  font-size: 14px;
  line-height: 1;
}

.ai-emote[data-emote="respect"] .ai-emote-glyph { color: #5a4a00; background: #f3ff20; }
.ai-emote-text { overflow: hidden; text-overflow: ellipsis; }

/* Each bubble sits just inside its seat's home, beside the seat label. */
.ai-emote[data-seat="blue"] { --emote-ink: #82B1FF; left: 4.4%; top: 27%; }
.ai-emote[data-seat="yellow"] { --emote-ink: #FFE082; right: 4.4%; top: 27%; }
.ai-emote[data-seat="red"] { --emote-ink: #FF8A80; left: 4.4%; bottom: 11%; }
.ai-emote[data-seat="green"] { --emote-ink: #B9F6CA; right: 4.4%; bottom: 11%; }

@keyframes ai-emote-pop {
  0% { opacity: 0; transform: translateY(6px) scale(.85); }
  10% { opacity: 1; transform: translateY(0) scale(1.06); }
  18% { transform: scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-4px); }
}

body.calm .ai-emote,
body.performance-mode .ai-emote { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .ai-emote { animation: none; }
}

@media (max-width: 720px) {
  .ai-emote { font-size: 11px; padding: 3px 8px 3px 4px; }
  .ai-emote-glyph { width: 17px; height: 17px; font-size: 12px; }
}
