.players-panel {
  position: fixed;
  top: 58px;
  left: 12px;
  width: 230px;
  max-height: calc(var(--ui-vh, 100vh) - 180px);
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
  color: #eee4cc;
  background: rgba(20, 20, 25, 0.9);
  border: 1px solid #5a4a2a;
  border-radius: 6px;
  z-index: 69;
  pointer-events: auto;
  font-size: 12px;
}

.players-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: #f0e0b0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.players-panel[hidden], .players-toggle[hidden] { display: none; }

.players-count { color: #b8ad94; }
.players-list { display: grid; gap: 4px; }
.players-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.players-name { overflow-wrap: anywhere; }
.players-name.is-you { color: #c8e0a8; }
.players-badges { margin-left: 5px; color: #b8ad94; font-size: 10px; }
.players-badges > span + span::before { content: ' · '; }
.players-host { color: #c9a86a; }
.players-state { flex: none; color: #b8ad94; font-size: 10px; }

.players-invite {
  width: 100%;
  margin-top: 10px;
  padding: 6px 8px;
  color: #f0e0b0;
  background: #35402c;
  border: 1px solid #6c7c52;
  border-radius: 4px;
  cursor: pointer;
}

.players-invite:disabled { opacity: 0.5; cursor: wait; }
.players-link { width: 100%; margin-top: 7px; box-sizing: border-box; font-size: 10px; }
.players-status { margin-top: 6px; color: #b8ad94; overflow-wrap: anywhere; }
.players-status:empty { display: none; }

html.mobile-layout .players-panel {
  top: 218px;
  width: 190px;
  max-height: calc(var(--ui-vh, 100vh) - 360px);
}
