/* Room panel + chat add-on (server/web_overlay). Scoped with the .bbr- prefix. */
.bbr-panel {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 2147482900;
  width: min(300px, calc(100vw - 24px));
  font:
    13px system-ui,
    sans-serif;
  color: #f2f2f2;
  background: rgba(18, 20, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.bbr-panel[hidden],
.bbr-panel [hidden] {
  display: none;
}
.bbr-head {
  display: block;
  width: 100%;
  text-align: left;
  font:
    600 13px system-ui,
    sans-serif;
  color: #ffd76a;
  background: none;
  border: 0;
  padding: 8px 10px;
  cursor: pointer;
}
.bbr-body {
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bbr-meta {
  opacity: 0.8;
  font-size: 12px;
}
.bbr-players {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 120px;
  overflow: auto;
}
.bbr-players li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 0;
}
.bbr-players li.offline {
  opacity: 0.5;
}
.bbr-players small {
  opacity: 0.75;
  white-space: nowrap;
}
.bbr-owner {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.bbr-owner select,
.bbr-form input {
  font: inherit;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}
.bbr-danger {
  font: inherit;
  padding: 4px 8px;
  border-radius: 6px;
  border: 0;
  background: #b3402f;
  color: #fff;
  cursor: pointer;
}
.bbr-log {
  list-style: none;
  margin: 0;
  padding: 6px;
  height: 150px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.bbr-log li {
  margin: 2px 0;
}
.bbr-log time {
  opacity: 0.55;
  margin-right: 4px;
  font-size: 11px;
}
.bbr-log b {
  color: #8fc8ff;
  margin-right: 4px;
}
.bbr-log li.mine b {
  color: #9be29b;
}
.bbr-log li.notice {
  color: #ffd76a;
  font-style: italic;
}
.bbr-form {
  display: flex;
  gap: 6px;
}
.bbr-form input {
  flex: 1;
  min-width: 0;
}
.bbr-form button {
  font: inherit;
  padding: 4px 10px;
  border-radius: 6px;
  border: 0;
  background: #f0a020;
  color: #1b1000;
  font-weight: 700;
  cursor: pointer;
}
.bbr-status {
  margin: 0;
  min-height: 1em;
  font-size: 12px;
  color: #9be29b;
}
.bbr-status.bad {
  color: #ff9b8a;
}
