/* ห้องแชท (server/chatroom.js · social-window.js chatRooms) — ป้ายบนหัว + แท็บในหน้าต่างผู้เล่น
   ป้ายต้องอ่านออกบนหญ้าสว่างและพื้นหินเมือง: พื้นครีมทึบ ขอบทอง ไม่ใช้ข้อความขาวลอย ๆ แบบชื่อคน */

/* ป้ายเหนือชื่อเจ้าของห้อง — เป็นของเดียวในชั้นป้ายที่กดได้ */
.label .croom-sign {
  pointer-events: auto; cursor: pointer; display: flex; width: max-content; align-items: center; gap: 5px; max-width: 220px;
  margin: 0 auto 8px; padding: 3px 9px 3px 6px; border-radius: 10px; border: 1.5px solid #e8b64a;
  background: linear-gradient(#fffaf0, #f6ead0); color: #4a3520; text-shadow: none; white-space: nowrap;
  font: 700 13px/1.3 var(--font-head, var(--font)); box-shadow: 0 2px 6px rgba(60, 40, 10, .3);
  position: relative;
}
.label .croom-sign::after {       /* หางชี้ลงหาเจ้าของ */
  content: ''; position: absolute; left: 50%; bottom: -6px; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg);
  background: #f6ead0; border-right: 1.5px solid #e8b64a; border-bottom: 1.5px solid #e8b64a;
}
.label .croom-sign b { overflow: hidden; text-overflow: ellipsis; }
.label .croom-sign i { font-style: normal; font-size: 13px; padding: 0 6px; border-radius: 999px; background: #2f6f73; color: #fff; }
.label .croom-sign .cs-ic { font-size: 13px; }
.label .croom-sign:hover { filter: brightness(1.05); border-color: #c8901a; }
.label .croom-sign.mine { border-color: #2f6f73; box-shadow: 0 0 0 2px #2f6f7340, 0 2px 6px rgba(60, 40, 10, .3); }
html.touch-ui .label .croom-sign { min-height: 32px; padding: 4px 11px 4px 8px; }

/* แชทช่องห้อง */
.ch-dot.room { background: #f2c14e; }
#chat-log .room .tag { background: #f2c14e; }
#chat-log .room .msg { color: #fff1cc; }

/* แท็บห้องแชทในหน้าต่างผู้เล่น */
.cr-mem { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; max-height: 190px; overflow: auto; }
.cr-mem li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 8px; background: #fffaf0; border: 1px solid #ecdfbf; }
.cr-mem li span { display: grid; min-width: 0; }
.cr-mem li b { font-size: 13.5px; color: #3b3320; }
.cr-mem li small { font-size: 13px; color: #8a7650; }
.cr-where { display: block; font-size: 13px; color: #8a7650; }
.cr-note { margin: 2px 0 0; padding: 6px 9px; border-radius: 8px; background: #fff4e0; font-size: 13px; line-height: 1.4; color: #8a5a1a; }

/* ถามรหัสห้อง */
#croom-pass .body { display: grid; gap: 8px; }
#croom-pass input { font-size: 16px; padding: 8px 10px; border-radius: 8px; border: 1px solid #d8c294; text-align: center; }
#croom-pass .dlg-a { display: flex; gap: 8px; justify-content: center; }
#croom-pass .dlg-a .rbtn { min-height: 40px; padding: 0 16px; }
#croom-pass .dlg-a .main { background: linear-gradient(#5cb86a, #3f8f4e); color: #fff; border-color: #2f6f3c; }
