/* 채팅 덧붙임(chat-extra.js): 새 메시지 ↓ 버튼 · 대결 알림 줄 */
.chat-box { position: relative; }
.chat-down { position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; border: 2px solid var(--ink); border-radius: 999px; background: #5fb35a; color: #fff;
  font: 0.78rem var(--display); padding: 4px 12px; box-shadow: 0 2px 0 var(--ink); cursor: pointer; white-space: nowrap; animation: chatDownIn .35s cubic-bezier(.3,1.6,.5,1); }
.chat-down[hidden] { display: none; }
.chat-down:active { transform: translate(-50%, 2px); box-shadow: 0 0 0 var(--ink); }
@keyframes chatDownIn { from { transform: translate(-50%, 10px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.chatlog li.sys.duel-line { color: #5a2a8a; background: linear-gradient(90deg, #efe2ff, #f8f2ff); border: 1.5px solid #b48ae0; border-radius: 10px; padding: 3px 8px; font-family: var(--display); font-size: 0.78rem; }
.chatlog li.sys.duel-line::before { content: "VS "; color: #7a3fb0; font-weight: 700; }
.chatlog li.sys.duel-win { background: linear-gradient(90deg, #efe2ff, #fff4c9); border-color: #e9a614; }
@media (prefers-reduced-motion: reduce) { .chat-down { animation: none; } }
.chatlog li .chat-watch { margin-left: 6px; font: inherit; font-size: 0.72rem; line-height: 1.4; padding: 0 9px; border: 1.5px solid #7a3fb0; border-radius: 999px; background: #fff; color: #7a3fb0; cursor: pointer; vertical-align: 1px; }
/* 채팅 제목 옆 대결 상대 구하기(v4.18) */
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-head h4 { margin-block: 0; }
.chat-seek { flex: none; font: 0.76rem var(--display); line-height: 1.3; padding: 4px 11px; min-height: 32px; border: 1.5px solid #7a3fb0; border-radius: 999px; background: #fff; color: #7a3fb0; cursor: pointer; }
.chat-seek:disabled { opacity: .6; cursor: default; }
.chat-seek[hidden] { display: none; }
/* v4.21 결과 카드 「○○님이 대결 상대를 기다려요 [바로 대결]」(duel-quick.js) */
.quick-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px auto 2px; padding: 6px 10px; border-radius: 12px; background: #f3e9fb; color: #5b2a86; font-size: .82rem; }
.quick-row[hidden] { display: none; }
.quick-row .quick-go { border-color: #7a3fb0; color: #fff; background: #7a3fb0; }
