/* Discord widget block inside the Join banner. Data classes stay .dw-*. */
.join-banner { display: flex; }
.join-banner .guild { min-width: 0; background: none; border: 0; box-shadow: none; padding: 0; }
.dw-slot { min-width: 0; flex: 1 1 auto; }
#guild-fallback {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
}
#guild-fallback[hidden] { display: none !important; }
#guild-name,
#guild-avatar {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#guild-counts {
  margin: 0;
  font-weight: 800;
}
.dw {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.dw[hidden] { display: none !important; }
.dw-counts { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dw-online {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text, #f5f7ff);
  font-weight: 800;
  white-space: nowrap;
}
.dw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green, #3ee08f);
  box-shadow: 0 0 8px var(--green, #3ee08f);
  display: inline-block;
  flex: none;
}
.dw-members {
  margin: 0;
  color: var(--muted, #b4bdd8);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.dw-faces, .dw-channel-faces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  row-gap: 8px;
}
.dw-face {
  position: relative;
  border-radius: 50%;
  flex: none;
  border: 2px solid rgba(12, 18, 48, 0.95);
  box-shadow: 0 0 0 1px rgba(160, 180, 255, 0.55), 0 0 12px rgba(100, 120, 255, 0.35);
  background: linear-gradient(135deg, var(--blue, #3d6dff), var(--violet, #7a45ea));
}
.dw-faces > .dw-face { width: 36px; height: 36px; margin-left: -10px; }
.dw-channel-faces > .dw-face { width: 28px; height: 28px; margin-left: -8px; }
.dw-faces > .dw-face:first-child,
.dw-channel-faces > .dw-face:first-child { margin-left: 0; }
.dw-face img, .dw-letter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  object-fit: cover;
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
}
.dw-more {
  margin-left: 10px;
  flex: none;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e7ecff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(20, 32, 80, 0.55);
  border: 1px solid rgba(160, 186, 255, 0.48);
  box-shadow: 0 0 12px rgba(90, 120, 255, 0.25);
}
.dw-status {
  position: absolute;
  width: 10px;
  height: 10px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid #12183a;
}
.dw-status-online { background: var(--green, #3ee08f); box-shadow: 0 0 6px var(--green, #3ee08f); }
.dw-status-idle { background: #f0b429; box-shadow: 0 0 6px #f0b429; }
.dw-status-dnd { background: #ff5c73; box-shadow: 0 0 6px #ff5c73; }
.dw-voice {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}
.dw-channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(36, 52, 120, 0.55), rgba(70, 40, 130, 0.4));
  border: 1px solid rgba(160, 180, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 16px rgba(90, 110, 255, 0.22);
  backdrop-filter: blur(10px);
}
.dw-channel-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #e4e9ff;
  font-weight: 700;
}
.dw-channel-name svg { width: 16px; height: 16px; flex: none; }
.dw-channel-label { min-width: 0; overflow-wrap: anywhere; }
.dw-bot {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  padding: 1px 3px;
  border-radius: 4px;
  background: linear-gradient(100deg, #3d6dff, #7a45ea);
  color: white;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  pointer-events: none;
}
.join-banner .dw-join { display: none !important; }
.dw-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  background: linear-gradient(100deg, #3d6dff 0%, #7a45ea 100%);
  box-shadow: 0 10px 26px rgba(70, 100, 255, 0.4), 0 0 18px rgba(140, 90, 255, 0.35);
}
.dw-join svg { width: 18px; height: 18px; flex: none; }
.dw-join:focus-visible {
  outline: 2px solid #9db0ff;
  outline-offset: 2px;
}
@media (min-width: 769px) {
  .columns > .dw-on { grid-column: 1 / -1; }
  .dw-on .dw {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
  }
  .dw-on .dw-faces {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: center;
    min-width: 0;
  }
  .dw-on .dw-voice {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    max-width: min(46%, 28rem);
  }
  .dw-on .dw-channel { flex-wrap: nowrap; }
  .dw-on .dw-channel-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
    max-width: 14rem;
  }
  .dw-on .dw-join { width: auto; flex: none; }
}
@media (max-width: 768px) {
  #guild-fallback { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .dw, .dw-face, .dw-channel, .dw-join { transition: none; }
}
