/* The chat at a game's table (tables/tablechat.js), in the majlis's warm night colours. */
.tc-btn { position: relative; cursor: pointer; }
.tc-btn:not(.ic) { flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 13px; border: 1px solid rgba(232, 184, 74, .38); background: rgba(20, 11, 8, .6); color: #FFE3A0; }
.tc-btn:not(.ic) svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-btn[hidden] { display: none !important; }
.watching .tc-btn { visibility: visible; }
/* a narrow phone: room for the chat button beside the others (the hint's words go, its 💡 stays) */
@media (max-width: 440px) { .acts:has(.tc-btn:not([hidden])) { gap: 6px; } .acts:has(.tc-btn:not([hidden])) .hb-t { display: none; } }
.tc-dot { position: absolute; top: -5px; left: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #E2402F; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 17px; text-align: center; }
.tc-dot[hidden] { display: none; }
.tc-box { position: fixed; z-index: 60; max-height: min(340px, 48vh); display: flex; flex-direction: column; gap: 8px; padding: 10px; background: rgba(30, 18, 12, .97); color: #FFF6E6; border: 1px solid rgba(232, 184, 74, .32); border-radius: 18px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); font-family: "Readex Pro", system-ui, sans-serif; direction: rtl; }
.tc-box[hidden] { display: none; }
.tc-list { flex: 1 1 auto; min-height: 60px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px; -webkit-user-select: text; user-select: text; }
.tc-list:empty::before { content: "قل شي للطاولة 👋"; color: #B89F82; font-size: 12.5px; text-align: center; padding: 14px 0; }
.tc-m { align-self: flex-start; max-width: 86%; padding: 6px 10px; border-radius: 13px 13px 13px 4px; background: rgba(255, 255, 255, .07); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.tc-m.me { align-self: flex-end; border-radius: 13px 13px 4px 13px; background: rgba(232, 184, 74, .18); }
.tc-who { display: block; padding: 0; border: 0; background: none; color: #FFE3A0; font: 600 11px "Readex Pro", sans-serif; text-align: start; cursor: pointer; }
.tc-m.me .tc-who { color: #F3CF78; cursor: default; }
.tc-note { margin: 0; padding: 7px 10px; border-radius: 11px; background: rgba(226, 64, 47, .16); border: 1px solid rgba(226, 64, 47, .35); color: #FFD9D0; font-size: 12.5px; line-height: 1.5; }
.tc-note[hidden] { display: none; }
.tc-menu { display: flex; flex-direction: column; gap: 8px; padding: 9px; border-radius: 13px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(232, 184, 74, .25); }
.tc-menu[hidden] { display: none; }
.tc-mh { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.tc-x { width: 28px; height: 28px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.tc-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-row small { width: 100%; font-size: 12px; color: #D9C3A5; }
.tc-row button, .tc-form button { flex: 1 1 40%; border: 1px solid rgba(232, 184, 74, .4); border-radius: 11px; padding: 8px 10px; background: rgba(20, 11, 8, .5); color: #FFE3A0; font: 600 12.5px "Readex Pro", sans-serif; cursor: pointer; }
.tc-form { display: flex; gap: 6px; flex: none; }
.tc-form[hidden] { display: none; }
/* 16px: a smaller box makes the iPhone zoom the page in when it's tapped */
.tc-form input { flex: 1; min-width: 0; border: 1px solid rgba(232, 184, 74, .3); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 12px; padding: 8px 11px; font: 16px "Readex Pro", sans-serif; -webkit-user-select: text; user-select: text; }
.tc-form button { flex: none; background: linear-gradient(#FFEBB5, #E8B84A 52%, #B98424); color: #2A1608; border: 0; }
/* a line said at the table, for a moment over the seat of whoever said it */
.seat .bub.say { width: max-content; max-width: min(150px, 30vw); padding: 6px 10px; white-space: normal; overflow-wrap: anywhere; text-align: center; font-size: 12.5px; font-weight: 500; line-height: 1.45; }
