@font-face {
  font-family: "Zegoe Caps Bold";
  src: url("../../ZegoeCapsBold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

html,
body {
  background: #07090c;
}

body {
  color: #aeb7c0;
  font-family: "Zegoe Caps Bold", Arial, Helvetica, sans-serif;
}

.container .servers-content,
.container .servers-content *,
.fm-servers-shell,
.fm-servers-shell *,
.fm-server-detail,
.fm-server-detail * {
  font-family: "Zegoe Caps Bold", Arial, Helvetica, sans-serif !important;
}

.container .servers-content {
  border-radius: 0 !important;
}

.servers-content {
  max-width: 1100px;
  margin: 0 auto;
}

.fm-servers-shell,
.fm-server-detail {
  margin: 28px auto 44px;
  color: #c7d5e0;
}

.fm-servers-shell *,
.fm-server-detail * {
  border-radius: 0 !important;
  box-sizing: border-box;
  letter-spacing: 0;
}

.fm-servers-topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 18px 20px;
  border: 1px solid #000;
  border-bottom-color: #2c3945;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 45%),
    linear-gradient(90deg, #151a20, #080a0d 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 28px rgba(0,0,0,.55);
}

.fm-servers-kicker,
.fm-server-mode,
.fm-detail-mode {
  color: #69849a;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.fm-servers-topbar h1,
.fm-detail-summary h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 34px;
  font-weight: normal;
  text-shadow: 0 1px 0 #000, 0 0 14px rgba(91,161,205,.35);
}

.fm-server-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  background: #0d1217;
}

.fm-server-menu-item {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #000;
  border-top: 1px solid #2e3a46;
  border-bottom: 1px solid #000;
  color: #7d8f9d !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 48%),
    linear-gradient(180deg, #1a222b, #0a0d10);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.fm-server-menu-item:hover,
.fm-server-menu-item.is-active {
  color: #fff !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02) 45%),
    linear-gradient(180deg, #31556e, #101923);
}

.fm-server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #000;
  border-top: 0;
  background: #000;
}

.fm-server-card {
  min-height: 230px;
  display: grid;
  grid-template-columns: 42% 58%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 50%),
    linear-gradient(135deg, #151c23, #080a0d 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.fm-map-crossfade,
.fm-detail-map {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 230px;
  background:
    linear-gradient(135deg, #19232b, #050607 70%);
  color: #fff !important;
}

.fm-map-layer,
.fm-detail-map-image {
  position: absolute;
  inset: 0;
  display: block;
  background-position: center;
  background-size: cover;
  opacity: .36;
  transform: scale(1.03);
  transition: opacity 500ms ease, transform 500ms ease, filter 500ms ease;
  filter: saturate(.8) contrast(1.05);
}

.fm-map-crossfade:hover .fm-map-layer,
.fm-detail-map:hover .fm-detail-map-image {
  opacity: .92;
  transform: scale(1);
  filter: saturate(1.08) contrast(1.12);
}

.fm-map-sheen,
.fm-detail-map-gloss {
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 28%),
    linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,.08) 54%);
}

.fm-map-name,
.fm-detail-map-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  color: #fff;
  font-size: 20px;
  line-height: 24px;
  text-shadow: 0 2px 4px #000;
  word-break: break-word;
}

.fm-server-body {
  min-width: 0;
  padding: 18px;
  border-left: 1px solid rgba(255,255,255,.07);
}

.fm-server-status-row,
.fm-player-line,
.fm-server-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fm-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #23313c;
  color: #9eb4c4;
  background: #17232c;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.fm-status-onl,
.fm-status-onp {
  border-color: #315d2b;
  color: #b5e6a0;
  background: #1f4f17;
}

.fm-status-nrs {
  border-color: #5b2626;
  color: #e0a0a0;
  background: #4a1616;
}

.fm-server-card:hover .fm-status {
  border-color: #4c6b80;
  color: #fff;
  background: #244d65;
}

.fm-server-card:hover .fm-status-onl,
.fm-server-card:hover .fm-status-onp {
  border-color: #5c8a2e;
  background: #3d781f;
}

.fm-server-card:hover .fm-status-nrs {
  border-color: #8b3535;
  background: #6a2020;
}

.fm-server-name {
  display: block;
  margin-top: 18px;
  color: #fff !important;
  font-size: 20px;
  line-height: 24px;
  text-shadow: 0 1px 0 #000;
  overflow-wrap: anywhere;
}

.fm-server-address,
.fm-detail-address {
  display: block;
  margin-top: 8px;
  color: #66c0f4 !important;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.fm-player-line {
  margin-top: 22px;
  color: #8ea0ad;
  font-size: 12px;
  text-transform: uppercase;
}

.fm-player-meter {
  height: 16px;
  margin-top: 7px;
  border: 1px solid #000;
  background: linear-gradient(180deg, #040506, #111820);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.9);
}

.fm-player-meter span {
  display: block;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0) 48%),
    linear-gradient(90deg, #446f22, #8bc53f);
}

.fm-server-actions {
  margin-top: 22px;
  justify-content: flex-start;
}

.fm-server-actions a,
.fm-detail-back {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #000;
  color: #dbeaf3 !important;
  background: #193247;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  font-size: 12px;
  text-transform: uppercase;
}

.fm-server-actions a:hover,
.fm-detail-back:hover {
  color: #fff !important;
  background: #315f7f;
}

.fm-detail-back {
  margin-bottom: 12px;
}

.fm-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 46%) minmax(0, 54%);
  border: 1px solid #000;
  background: #000;
}

.fm-detail-summary {
  min-width: 0;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 42%),
    linear-gradient(135deg, #161d24, #07090c 72%);
}

.fm-detail-summary h1 {
  margin-top: 14px;
  padding: 0;
  text-align: left;
  font-size: 32px;
  overflow-wrap: anywhere;
}

.fm-detail-mode {
  margin-top: 6px;
}

.details_info,
#details_playerlist,
.players_table,
.settings_table {
  width: 100%;
}

.details_info {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #000;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%),
    #10161b;
}

.details_info_column:nth-child(2) {
  border: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 18px rgba(0,0,0,.45) !important;
}

.details_info_srow,
#gamelink,
.players_table,
.settings_table,
.players_table tr,
.settings_table tr,
.players_table td,
.settings_table td {
  border-color: #000 !important;
}

.details_info_srow,
#gamelink,
.players_table tr:nth-child(n),
.settings_table tr:nth-child(n),
.noinfo {
  background: linear-gradient(180deg, #141b22, #080a0d) !important;
}

.table_head {
  color: #fff;
  background: linear-gradient(180deg, #263645, #0d1218) !important;
}

.spacer {
  display: none;
}

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

  .fm-server-grid,
  .fm-server-card,
  .fm-detail-hero {
    grid-template-columns: 1fr;
  }

  .fm-server-body {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.07);
  }
}

@media (max-width: 520px) {
  .fm-servers-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .fm-server-menu {
    grid-template-columns: 1fr;
  }

  .fm-servers-topbar h1,
  .fm-detail-summary h1 {
    font-size: 26px;
    line-height: 30px;
  }

  .fm-server-card,
  .fm-map-crossfade,
  .fm-detail-map {
    min-height: 210px;
  }

  .details_info {
    padding: 10px;
  }
}

/* Server browser board */
.fm-server-grid {
  display: block;
  border: 1px solid #000;
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 76px),
    #050608;
}

.fm-server-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  border-bottom: 1px solid #000;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 50%),
    linear-gradient(90deg, #11171d, #07090c 58%, #0c1117);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.fm-server-card:last-child {
  border-bottom: 0;
}

.fm-server-card:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 50%),
    linear-gradient(90deg, #17212a, #080c10 58%, #111821);
}

.fm-map-crossfade {
  min-height: 118px;
  border-right: 1px solid rgba(255,255,255,.07);
}

.fm-map-name {
  left: 12px;
  right: 12px;
  bottom: 10px;
  font-size: 15px;
  line-height: 18px;
}

.fm-server-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 164px 166px;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 14px 18px;
  border-left: 0;
}

.fm-server-name {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
  font-size: 19px;
  line-height: 22px;
}

.fm-server-address {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}

.fm-server-status-row {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 8px;
  align-content: center;
  justify-content: start;
}

.fm-server-mode {
  display: block;
}

.fm-player-line {
  grid-column: 3;
  grid-row: 1;
  margin-top: 0;
}

.fm-player-meter {
  grid-column: 3;
  grid-row: 2;
  margin-top: 0;
}

.fm-server-actions {
  grid-column: 4;
  grid-row: 1 / span 2;
  margin-top: 0;
  align-self: center;
  justify-content: flex-start;
}

@media (max-width: 940px) {
  .fm-server-card {
    grid-template-columns: 148px minmax(0, 1fr);
  }

  .fm-map-crossfade {
    min-height: 132px;
  }

  .fm-server-body {
    grid-template-columns: minmax(0, 1fr) 132px;
  }

  .fm-server-status-row {
    grid-column: 2;
    grid-row: 1;
  }

  .fm-player-line,
  .fm-player-meter {
    grid-column: 1;
  }

  .fm-server-actions {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .fm-server-card {
    grid-template-columns: 1fr;
  }

  .fm-map-crossfade {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  .fm-server-body {
    grid-template-columns: 1fr;
  }

  .fm-server-status-row,
  .fm-server-name,
  .fm-server-address,
  .fm-player-line,
  .fm-player-meter,
  .fm-server-actions {
    grid-column: 1;
    grid-row: auto;
  }
}
