/* Mốc 3 trong game (M3-10 thẻ AI ghép đội trong khung Hỏi, M3-12 thẻ kết bạn sau trận/sau khi được giúp).
   Hình khối chép từ mockup 145444 `nguon/frag-m3.html` (844×390). Màu CHỈ lấy bảng biến --ct-ui-cd-*
   (web/style.css #controls) — tools/check_ui_palette.py chặn mã màu viết thẳng trong khung .ct-cd. */

/* M3-10: cột phải khung Hỏi — thẻ "Có người cùng đánh tối nay" + danh sách đội đang tìm người */
.ct-cd-m3-team {
  margin-top: 10px;
  border-radius: 20px;
  padding: 10px 14px;
  background: var(--ct-ui-cd-vio-soft);
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}
.ct-cd-m3-team svg.i {
  color: var(--ct-ui-cd-vio);
}
.ct-cd-m3-lh {
  font-size: 14px;
  font-weight: 600;
  color: var(--ct-ui-cd-text);
  margin: 2px 0 4px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.ct-cd-m3-lh svg.i {
  color: var(--ct-ui-cd-muted);
}
.ct-cd-m3-lrow {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--ct-ui-cd-card);
  border-radius: 20px;
  padding: 6px 8px 6px 6px;
  margin-top: 6px;
}
.ct-cd-m3-lrow > div {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}
/* Avatar cũng là `div` nên luật `> div {flex:1}` ở trên bóp nó chiếm nửa hàng (tên xuống dòng,
   nút Vào đội bị cắt mép) — ép cỡ cố định như mockup 145444 `m3-av`. */
.ct-cd-m3-lrow > .ct-cd-av {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  background: var(--ct-ui-cd-chip);
  color: var(--ct-ui-cd-text);
}
.ct-cd-m3-lrow .nho {
  font-size: 13px;
  color: var(--ct-ui-cd-muted);
}
.ct-cd-m3-lrow .ct-cd-gb {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

/* M3-12: thẻ nổi kết bạn — đứng giữa khung game, tối phủ đã có sẵn (.ct-cd-dim) */
.ct-cd-m3-pop {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 32px));
  border-radius: 26px;
  background: var(--ct-ui-cd-sheet);
  box-shadow: var(--ct-ui-cd-shadow);
  -webkit-backdrop-filter: var(--ct-ui-cd-blur);
  backdrop-filter: var(--ct-ui-cd-blur);
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ct-ui-cd-text);
}
.ct-cd-m3-pop .lbl {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ct-ui-cd-gold);
  align-self: flex-start;
}
.ct-cd-m3-pop .lbl svg.i {
  width: 16px;
  height: 16px;
  color: var(--ct-ui-cd-gold);
}
.ct-cd-m3-pop .pair {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 12px 0 8px;
  color: var(--ct-ui-cd-soft);
}
.ct-cd-m3-pop .pair .av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  background: var(--ct-ui-cd-chip);
  color: var(--ct-ui-cd-white);
  flex: none;
}
.ct-cd-m3-pop .pair .av.tui {
  background: var(--ct-ui-cd-accent);
  color: var(--ct-ui-cd-white);
}
.ct-cd-m3-pop .q {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.35;
}
.ct-cd-m3-pop .mu {
  font-size: 13.5px;
  color: var(--ct-ui-cd-muted);
  margin-top: 4px;
}
.ct-cd-m3-pop .bt {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}
.ct-cd-m3-pop .bt > .ct-cd-gb {
  flex: 1;
}
