.bw-home {
  padding-bottom: 2rem;
}

.bw-home-title,
.bw-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bw-home-title h2,
.bw-section-head h3 {
  margin: 0;
}

.bw-home-kicker {
  margin-bottom: .2rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: #aeb6ff;
}

.bw-home-title-note {
  color: #adb5bd;
  font-size: .9rem;
}

.bw-server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.bw-server-card {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.20);
}

.bw-server-card-header,
.bw-player-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.bw-server-card-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.bw-server-state {
  display: inline-flex;
  align-items: center;
  min-width: 54px;
  justify-content: center;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.bw-server-state-online {
  background: rgba(40,167,69,.16);
  border: 1px solid rgba(40,167,69,.42);
}

.bw-server-state-offline {
  background: rgba(220,53,69,.16);
  border: 1px solid rgba(220,53,69,.42);
}

.bw-server-card-body {
  padding: 1rem;
}

.bw-server-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.bw-server-fact {
  min-width: 0;
  padding: .6rem .7rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.bw-server-fact-wide {
  grid-column: 1 / -1;
}

.bw-server-fact span {
  display: block;
  margin-bottom: .12rem;
  color: #adb5bd;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.bw-server-fact strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .92rem;
  white-space: nowrap;
}

.bw-map-card {
  position: relative;
  margin-top: .8rem;
  overflow: hidden;
  border-radius: 9px;
  background: #0b0d10;
}

.bw-map-card img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  cursor: pointer;
}

.bw-map-caption {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem .6rem;
  color: #adb5bd;
  font-size: .76rem;
  background: rgba(0,0,0,.72);
}

.bw-map-caption span:first-child {
  color: #fff;
  font-weight: 700;
}

.bw-player-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: .85rem;
}

.bw-player-summary a {
  color: #c7ccff;
  text-decoration: none;
  white-space: nowrap;
}

.bw-player-summary-empty {
  color: #adb5bd;
}

.bw-active-players,
.bw-community-section {
  margin-top: 2rem;
}

.bw-player-card {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.bw-player-card-head span {
  color: #adb5bd;
  font-size: .85rem;
}

.bw-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bw-team-grid h6 {
  margin-bottom: .5rem;
}

.bw-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.bw-community-item {
  min-width: 0;
}

.bw-community-item > .bw-discord-widget,
.bw-community-item > .sf-home-widget {
  height: 100%;
  margin: 0;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .bw-server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bw-server-card:first-child {
    grid-column: 1 / -1;
  }

  .bw-server-card:first-child .bw-map-card img {
    height: 220px;
  }
}

@media (max-width: 760px) {
  .bw-home-title,
  .bw-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bw-server-grid,
  .bw-community-grid,
  .bw-team-grid {
    grid-template-columns: 1fr;
  }

  .bw-server-card:first-child {
    grid-column: auto;
  }

  .bw-server-card:first-child .bw-map-card img,
  .bw-map-card img {
    height: 190px;
  }

  .bw-map-caption,
  .bw-player-summary,
  .bw-player-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* badewiese-map-rotation-v1.5 */
.bw-map-card img {
  transition: opacity .35s ease;
}

.bw-map-card img.bw-map-switching {
  opacity: .18;
}


/* badewiese-map-rotation-v1.5.3 */
.bw-map-card img {
  transition: opacity .35s ease;
}

.bw-map-card img.bw-map-switching {
  opacity: .18;
}

/* download area styles live in downloads.css */

/* homepage live status v1.0.6 */
.bw-live-updated {
  color: #8f98a3;
  font-size: .75rem;
  white-space: nowrap;
}
