.dc-side {
  position: fixed;
  z-index: 900;
  top: 50%;
  right: 0;
  display: flex;
  align-items: flex-start;
  transform: translateY(-50%);
  pointer-events: none;
}

.dc-side-tab {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  border: 0;
  border-radius: 10px 0 0 10px;
  color: #282b27;
  background: #c8a364;
  box-shadow: -2px 0 16px rgba(200, 163, 100, 0.32);
  cursor: pointer;
  font: inherit;
  pointer-events: auto;
  transition: background 0.15s, box-shadow 0.15s;
  user-select: none;
}

.dc-side-tab:hover {
  background: #e0bf7b;
  box-shadow: -3px 0 22px rgba(200, 163, 100, 0.42);
}

.dc-side-tab:focus-visible {
  outline: 2px solid #e0c283;
  outline-offset: 3px;
}

.dc-side-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dc-side-arrow {
  display: block;
  font-size: 0.6rem;
  opacity: 0.75;
  transition: transform 0.3s;
}

.dc-side.open .dc-side-arrow { transform: rotate(180deg); }

.dc-side-panel {
  width: 0;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 0 28px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dc-side.open .dc-side-panel { width: 270px; }

.dc-side-inner {
  display: flex;
  width: 270px;
  max-height: 480px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(210, 172, 103, 0.3);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #302f2a;
}

.dc-side-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(210, 172, 103, 0.22);
  background: linear-gradient(110deg, #37352e, #302f2a);
}

.dc-side-header svg { flex: 0 0 auto; color: #d2ac67; }
.dc-side-server { flex: 1; color: #e0c283; font-size: 0.85rem; font-weight: 700; }
.dc-side-online { color: #4ade80; font-size: 0.7rem; font-weight: 600; white-space: nowrap; }

.dc-side-members {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  scrollbar-color: rgba(210, 172, 103, 0.36) transparent;
  scrollbar-width: thin;
}

.dc-sm-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  transition: background 0.12s;
}

.dc-sm-row:hover { background: rgba(210, 172, 103, 0.08); }

.dc-sm-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(210, 172, 103, 0.3);
  border-radius: 50%;
  object-fit: cover;
}

.dc-sm-avatar-default {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a89a80;
  background: #37352e;
}

.dc-sm-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 4px currentColor;
}

.dc-sm-name {
  flex: 1;
  overflow: hidden;
  color: #f0e6d0;
  font-size: 0.88rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-sm-game {
  max-width: 70px;
  overflow: hidden;
  color: #a89a80;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-side-join {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.5rem 0.75rem 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 2px;
  color: #282b27;
  background: #c8a364;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.dc-side-join:hover { color: #282b27; background: #e0bf7b; }
.dc-side-join:focus-visible { outline: 2px solid #e0c283; outline-offset: 3px; }

.dc-side-loading,
.dc-side-msg,
.dc-side-more { color: #a89a80; }

.dc-side-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  font-size: 0.82rem;
}

.dc-side-spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(210, 172, 103, 0.2);
  border-top-color: #d2ac67;
  border-radius: 50%;
  animation: dc-widget-spin 0.7s linear infinite;
}

.dc-side-msg {
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.dc-side-more { padding: 0.3rem 0.9rem 0.5rem; font-size: 0.72rem; }

@keyframes dc-widget-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .dc-side { display: none; }
}
