.game-current {
  display: block;
  padding: 18px 20px 14px;
}

.game-current > div:first-child {
  text-align: center;
  margin-bottom: 14px;
}

.game-meta {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  grid-template-areas:
    "anomaly start end"
    "ban start end";
  align-items: start;
  column-gap: 22px;
  row-gap: 8px;
  width: 100%;
  max-width: none;
  justify-content: stretch;
}

.game-meta span {
  display: block;
  min-height: 0;
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
}

#game-anomaly {
  grid-area: anomaly;
  justify-self: start;
  white-space: nowrap;
  text-align: left;
}

#game-ban {
  grid-area: ban;
  display: block !important;
  justify-self: start;
  width: min(100%, 640px);
  min-width: 0;
  max-width: 100%;
}

#game-start-time {
  grid-area: start;
  align-self: center;
  justify-self: end;
  white-space: nowrap;
  text-align: right;
}

#game-end-time {
  grid-area: end;
  align-self: center;
  justify-self: end;
  white-space: nowrap;
  text-align: right;
}

#game-ban .tribe-panel {
  display: block;
  width: 100%;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#game-ban .tribe-panel-title {
  display: block;
  margin: 0 0 5px;
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  letter-spacing: 0.02em;
}

#game-ban .tribe-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(46px, 1fr));
  gap: 5px;
  width: 100%;
  min-width: 540px;
}

#game-ban .tribe-item {
  --tribe-a: #8796a3;
  --tribe-b: #35414b;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  color: var(--text-secondary);
  text-align: center;
}

#game-ban .tribe-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(83, 97, 109, 0.34);
  border-radius: 50%;
  background: var(--tribe-b);
  box-shadow:
    inset 0 0 0 1px rgba(12, 16, 20, 0.32),
    0 1px 4px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

#game-ban .tribe-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#game-ban .tribe-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 8px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#game-ban .tribe-item.is-available .tribe-icon {
  border-color: #38b873;
  box-shadow:
    inset 0 0 0 1px rgba(12, 16, 20, 0.32),
    0 0 0 1px rgba(76, 196, 129, 0.3);
}

#game-ban .tribe-item.is-unavailable {
  opacity: 0.84;
}

#game-ban .tribe-item.is-unavailable .tribe-icon img {
  filter: grayscale(0.68) brightness(0.76);
}

#game-ban .tribe-item.is-unavailable .tribe-icon {
  border-color: #cf4845;
}

#game-ban .tribe-item.is-unavailable .tribe-icon::before,
#game-ban .tribe-item.is-unavailable .tribe-icon::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: #df3e3a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.58);
  transform-origin: center;
}

#game-ban .tribe-item.is-unavailable .tribe-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#game-ban .tribe-item.is-unavailable .tribe-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#game-ban .tribe-item.is-unknown {
  opacity: 0.46;
}

#game-ban .tribe-undead { --tribe-a: #a9c9d6; --tribe-b: #465e6a; }
#game-ban .tribe-elemental { --tribe-a: #35c7ff; --tribe-b: #155b8d; }
#game-ban .tribe-dragon { --tribe-a: #b05ce7; --tribe-b: #4b236d; }
#game-ban .tribe-quilboar { --tribe-a: #e8a14f; --tribe-b: #7a3e21; }
#game-ban .tribe-naga { --tribe-a: #4fd8ba; --tribe-b: #17685f; }
#game-ban .tribe-murloc { --tribe-a: #50d9e7; --tribe-b: #147b8a; }
#game-ban .tribe-mech { --tribe-a: #70b7d6; --tribe-b: #365868; }
#game-ban .tribe-demon { --tribe-a: #8ad241; --tribe-b: #315d1f; }
#game-ban .tribe-pirate { --tribe-a: #df6756; --tribe-b: #71332d; }
#game-ban .tribe-beast { --tribe-a: #d7a65a; --tribe-b: #684325; }

@media (max-width: 900px) {
  .game-meta {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "anomaly start"
      "ban end";
  }
}

@media (max-width: 640px) {
  .game-current > div:first-child {
    text-align: left;
  }

  .game-meta {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "start end"
      "anomaly anomaly"
      "ban ban";
  }

  #game-start-time,
  #game-end-time {
    align-self: start;
    justify-self: start;
    text-align: left;
  }

  #game-ban {
    width: 100%;
  }
}
