body {
  background:
    linear-gradient(rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.8)),
    url("https://query.rsclan.gg/images/uptime/rs_backgroundbanner.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero {
  background:
    linear-gradient(rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0.9)),
    url("https://cdn.cloudflare.steamstatic.com/steam/apps/671860/library_hero.jpg?t=latest");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.historyTabs {
  background: rgba(17, 17, 17, 0.88);
  border: 1px solid var(--rs-border);
  border-radius: var(--radius);
  gap: 6px;
}

.historyTab.nav-link {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rs-muted);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.historyTab.nav-link:hover,
.historyTab.nav-link:focus,
.historyTab.nav-link.active,
.historyTab.nav-link.isActive {
  background: var(--rs-panel-hover) !important;
  color: #fff !important;
}

.serverCard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-left: 4px solid transparent;
}

.serverCard:hover {
  background: var(--rs-panel-hover);
  border-color: var(--rs-border-red);
  border-left-color: var(--rs-red);
}

.serverTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 10px;
}

.serverTitle h3 {
  margin: 0;
  overflow: hidden;
  font-size: 26px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metaTag {
  background: #101010;
  border: 1px solid var(--rs-border);
  border-radius: 999px;
  color: var(--rs-muted);
  padding: 5px 9px;
  font-size: 13px;
}

.playerBox {
  min-width: 150px;
  text-align: right;
}

.playerBox strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rs-good);
  font-family: "Squada One", Impact, sans-serif;
  font-size: 38px;
  line-height: 0.9;
}

.playerBox small {
  display: block;
  margin-bottom: 8px;
  color: var(--rs-muted);
}

.progressBar {
  height: 8px;
  overflow: hidden;
  background: #333;
  border-radius: 999px;
}

.progressBar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rs-red-dark), var(--rs-red-bright));
}

.physicalHeader {
  margin-top: 6px;
}

.physicalCard {
  padding: 14px;
  border-top: 3px solid var(--rs-red);
}

.physicalCard h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.physicalCard p {
  margin: 0;
  color: var(--rs-muted);
  font-size: 13px;
  line-height: 1.5;
}

.physicalNote {
  margin: 12px 0 0;
  color: var(--rs-muted-dark);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

@media (max-width: 767.98px) {
  .serverCard {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .serverInfo,
  .serverTitle,
  .serverMeta,
  .playerBox {
    min-width: 0;
    max-width: 100%;
  }

  .serverTitle {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .serverTitle h3 {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .serverMeta {
    width: 100%;
  }

  .metaTag {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .playerBox {
    min-width: 0;
    text-align: left;
  }

  .historyTabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  #serverList,
  .serverList {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .chartCard {
    padding: 14px;
    overflow: hidden;
  }

  .chartCard h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .chartCard canvas {
    height: 340px !important;
  }
}