/* Table talk: a corner button and a small panel (public/chat.js). */
#chat{position:fixed;left:12px;bottom:12px;z-index:96;display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:13px}
#chat[hidden]{display:none}
#chat-toggle{position:relative;width:44px;height:44px;padding:0;border-radius:50%;border:2px solid var(--gold,#d9bb77);background:#1b2322;color:var(--ink,#eee9d9);font-size:20px;line-height:1;cursor:pointer;box-shadow:0 4px 14px #000a}
#chat-toggle.chat-unread{animation:chat-nudge 1.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){#chat-toggle.chat-unread{animation:none}}
@keyframes chat-nudge{50%{box-shadow:0 0 0 6px #d9bb7755,0 4px 14px #000a}}
.chat-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--red,#b55249);color:#fff;font:700 12px/20px system-ui,sans-serif;text-align:center}
#chat-panel{width:min(340px,calc(100vw - 24px));height:min(380px,60vh);display:flex;flex-direction:column;border:2px solid var(--gold,#d9bb77);border-radius:12px;background:linear-gradient(180deg,#26342d,#141d19);box-shadow:0 12px 40px #000d;color:var(--ink,#eee9d9);overflow:hidden}
#chat-panel[hidden]{display:none}
#chat-panel header{display:flex;align-items:center;gap:8px;padding:6px 10px;border-bottom:1px solid #d9bb7755}
#chat-panel header strong{flex:1;font:700 14px Georgia,serif;color:var(--gold,#d9bb77)}
#chat-panel header button{width:26px;height:26px;padding:0;border-radius:50%;line-height:1}
#chat-log{flex:1;overflow:auto;padding:8px 10px;display:flex;flex-direction:column;gap:6px}
.chat-msg{max-width:92%;padding:5px 9px;border-radius:10px;background:#0e1512cc;border:1px solid var(--line,#35403a);overflow-wrap:anywhere}
.chat-msg b{display:block;font-size:11px;color:var(--muted,#a1aa9d)}
.chat-msg.mine{align-self:flex-end;background:#2a3a2c}
.chat-p1 b{color:#e49a8f}.chat-p2 b{color:#8fc8e4}.chat-p3 b{color:#a9d98f}.chat-p4 b{color:#d9bb77}
.chat-empty{margin:auto;color:var(--muted,#a1aa9d)}
#chat-panel form{display:flex;gap:6px;padding:8px;border-top:1px solid #d9bb7755}
#chat-panel input{flex:1;min-width:0;padding:7px 9px;border-radius:8px;border:1px solid var(--line,#35403a);background:#0e1512;color:var(--ink,#eee9d9);font-size:14px}
@media (max-width:759px){#chat{left:8px;bottom:auto;top:58px}#chat-toggle{width:38px;height:38px;font-size:17px}#chat-panel{height:min(320px,50vh)}}
/* The Claude seat's badge in the lobby (host view). */
.ai-badge{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;border:1px solid var(--gold,#d9bb77);background:#2a2a1c;color:var(--gold,#d9bb77);font-size:12px;font-weight:700}
