/* La Taberna de Dofawa (chat global), fase 1. 23/11/2026. Usa las variables de estilo.css (beige, oscuro y negro y verde). */
.taberna { display: grid; gap: 10px; }
.tab-cab { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.tab-salas { display: flex; flex-wrap: wrap; gap: 6px; }
.tab-sala, .tab-bt { position: relative; border: 1px solid var(--borde); background: var(--panel); color: var(--texto); border-radius: 999px;
  padding: 5px 14px; font: 600 .95rem var(--cuerpo, inherit); cursor: pointer; }
.tab-sala:hover, .tab-bt:hover { border-color: var(--borde-oro); }
.tab-sala.act { border-color: var(--oro); color: var(--oro-claro); box-shadow: inset 0 0 0 1px var(--oro); }
.tab-punto { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: #d9483b; }
.tab-cab-acc { display: flex; gap: 6px; }
.tab-normas, .tab-ajustes { background: var(--panel); border: 1px solid var(--borde-oro); border-radius: 10px; padding: 12px 16px; display: grid; gap: 10px; }
.tab-normas[hidden], .tab-ajustes[hidden], .tab-aviso[hidden] { display: none; }
.tab-normas ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.tab-normas .boton { justify-self: start; }
.tab-ajustes label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tab-ajustes select { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--borde); background: var(--fondo); color: var(--texto); font: inherit; }
.tab-check input { width: auto; }
.tab-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; }
.tab-chat { background: var(--panel); border: 1px solid var(--borde); border-radius: 10px; display: flex; flex-direction: column; height: 600px; min-width: 0; position: relative; }
.tab-info { font-size: .82rem; color: var(--suave); padding: 6px 14px; border-bottom: 1px solid var(--borde); min-height: 30px; }
.tab-msjs { flex: 1; overflow-y: auto; padding: 8px 6px; overscroll-behavior: contain; }
.tab-vacio { color: var(--suave); text-align: center; margin: 40px 0; }
.tab-mas { display: block; margin: 4px auto 10px; background: none; border: 1px dashed var(--borde); color: var(--suave); border-radius: 999px; padding: 4px 14px; cursor: pointer; font: inherit; font-size: .85rem; }
.tab-m { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.tab-m:hover { background: rgba(var(--fondo-rgb), .35); }
.tab-m.men { background: rgba(217, 164, 65, .16); box-shadow: inset 3px 0 0 var(--oro); }
.tab-m .clase-ico { margin-top: 2px; }
.tab-bot-ico { --cc: #3f8a5a; }
.tab-m-cuerpo { min-width: 0; flex: 1; }
.tab-m-cab { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; color: var(--suave); }
.tab-nom { font: 700 .95rem var(--cuerpo, inherit); color: var(--texto); background: none; border: 0; padding: 0; cursor: pointer; }
button.tab-nom:hover { text-decoration: underline; }
.tab-nom.admin { color: var(--oro); } .tab-nom.mod { color: #3d82c4; } .tab-nom.bot { color: #3f8a5a; }
.tab-et { font-size: .65rem; font-weight: 800; border-radius: 4px; padding: 0 5px; letter-spacing: .04em; }
.tab-et.admin { background: var(--oro); color: #241605; } .tab-et.mod { background: #3d82c4; color: #fff; } .tab-et.bot { background: #3f8a5a; color: #fff; }
.tab-gre { color: #5f8a62; } .tab-tit { color: #9a6cc4; font-style: italic; }
.tab-hora { margin-left: auto; font-size: .72rem; opacity: .75; }
.tab-acc { display: none; gap: 4px; }
.tab-m:hover .tab-acc, .tab-m:focus-within .tab-acc { display: inline-flex; }
.tab-acc button { background: none; border: 1px solid var(--borde); color: var(--suave); border-radius: 6px; font-size: .72rem; padding: 0 6px; cursor: pointer; }
.tab-acc button:hover { color: var(--texto); border-color: var(--borde-oro); }
.tab-texto { word-wrap: break-word; overflow-wrap: anywhere; line-height: 1.45; }
.tab-texto a { color: #3d82c4; }
.tab-sm { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; }
.tab-sm svg { width: 22px; height: 22px; }
.tab-mencion { color: var(--oro); } .tab-mencion.yo { background: rgba(217, 164, 65, .25); border-radius: 4px; padding: 0 2px; }
.tab-retirado { color: var(--suave); font-style: italic; }
.tab-sis { color: var(--suave); font-style: italic; font-size: .85rem; padding: 4px 10px; }
.tab-donde { width: 14px; height: 14px; flex: none; }
.tab-aviso { position: absolute; left: 12px; right: 12px; bottom: 64px; background: var(--fondo-alto); border: 1px solid var(--borde-oro); border-radius: 8px; padding: 8px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); font-size: .9rem; }
.tab-escribir { border-top: 1px solid var(--borde); padding: 10px; display: flex; gap: 8px; position: relative; }
.tab-escribir input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--borde); background: var(--fondo); color: var(--texto); font: inherit; }
.tab-escribir input:focus { outline: none; border-color: var(--oro); }
.tab-escribir input:disabled { opacity: .7; }
.tab-sm-bt { padding: 0 12px; font-size: 1.15rem; border-radius: 8px; }
.tab-smileys { position: absolute; bottom: 58px; left: 10px; z-index: 5; background: var(--fondo-alto); border: 1px solid var(--borde-oro); border-radius: 10px; padding: 8px;
  display: grid; grid-template-columns: repeat(7, 34px); gap: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.tab-smileys[hidden] { display: none; }
.tab-smileys button { background: none; border: 0; padding: 3px; border-radius: 6px; cursor: pointer; }
.tab-smileys button:hover { background: rgba(217, 164, 65, .2); }
.tab-smileys svg { width: 26px; height: 26px; }
.tab-lista { background: var(--panel); border: 1px solid var(--borde); border-radius: 10px; padding: 10px; height: 600px; overflow-y: auto; }
.tab-lista-tit { font-size: 1rem; margin: 2px 4px 8px; }
.tab-lista h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); margin: 12px 4px 4px; }
.tab-u { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px; border: 0; background: none; color: inherit; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; }
.tab-u:hover { background: rgba(var(--fondo-rgb), .4); }
.tab-u .tab-nom { font-size: .9rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-u small { color: var(--suave); font-size: .72rem; }
.tab-ficha { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5); display: grid; place-items: center; padding: 16px; }
.tab-ficha[hidden] { display: none; }
.tab-ficha-caja { background: var(--panel); border: 1px solid var(--oro); border-radius: 14px; padding: 18px; width: min(300px, 100%); display: grid; gap: 8px; justify-items: center; text-align: center; }
.tab-ficha-caja .boton { width: 100%; }
.tab-ficha-caja h3 { margin: 0 0 4px; }
.taberna-invitado .vacio { display: grid; gap: 6px; }
/* dentro del launcher (chat.php?embed=1): sin cabecera ni pie, ocupa todo el recuadro */
body.taberna-embed { margin: 0; background: var(--fondo); color: var(--texto); }
.taberna-marco { padding: 10px; }
body.taberna-embed .tab-chat, body.taberna-embed .tab-lista { height: calc(100vh - 80px); min-height: 360px; }
@media (max-width: 820px) {
  .tab-cuerpo { grid-template-columns: 1fr; }
  .tab-chat { height: 70vh; }
  .tab-lista { height: auto; max-height: 240px; }
  body.taberna-embed .tab-chat { height: calc(100vh - 330px); }
  body.taberna-embed .tab-lista { height: auto; }
}
