/* rebuild 로비 채팅 — twemoji · 번역 UI */
.chat-feed img.twemoji,
.chat-msg img.twemoji {
  height: 1em;
  width: 1em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
  display: inline-block;
}

.chat-msg .chat-flag img.twemoji {
  width: 14px;
  height: 14px;
  margin: 0 2px 0 0;
  vertical-align: -2px;
}

.tx-row__user .chat-flag img.twemoji {
  width: 14px;
  height: 14px;
  margin: 0 3px 0 0;
  vertical-align: -2px;
  display: inline-block;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.chat-head h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.chat-trans-sel,
#chatTrans {
  flex: 0 0 auto;
  max-width: 46%;
  background: rgba(0, 0, 0, 0.45);
  color: #c9a96e;
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
}

.chat-trans-sel:hover,
#chatTrans:hover {
  background: rgba(201, 169, 110, 0.12);
  border-color: rgba(201, 169, 110, 0.55);
}

.chat-trans {
  margin-top: 5px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-left: 2px solid #c9a96e;
  border-radius: 4px;
  font-size: 11px;
  color: #e8d4a8;
  font-style: italic;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.chat-trans .ico {
  font-size: 11px;
  flex-shrink: 0;
  opacity: 0.75;
}

.chat-trans.loading {
  color: rgba(201, 169, 110, 0.55);
}

.chat-trans.error {
  color: rgba(255, 138, 138, 0.75);
  border-left-color: rgba(199, 62, 62, 0.45);
}

@media (max-width: 768px) {
  .chat-trans-sel,
  #chatTrans {
    max-width: 52%;
    font-size: 9px;
    padding: 3px 4px;
  }
}
