#summary-table {
  width: 100%;
  min-width: 760px;
  table-layout: auto;
}

#summary-table th,
#summary-table td {
  text-align: center;
  white-space: nowrap;
}

#summary-table th:first-child,
#summary-table td:first-child {
  text-align: left;
  min-width: 140px;
}

#game-detail-table th,
#game-detail-table td {
  text-align: center;
}

#game-detail-table td.name-cell,
#game-detail-table th:first-child {
  text-align: center;
}

#game-detail-table td.hero-cell,
#game-detail-table th:nth-child(3) {
  min-width: 110px;
  white-space: nowrap;
}

.meta-line,
.game-meta {
  gap: 8px 18px;
}

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

.meta-line span + span::before,
.game-meta span + span::before {
  content: "";
  display: none;
}

#game-ban {
  display: block;
  text-align: left;
}

#game-ban .ban-subline {
  display: inline-block;
  padding-left: 3.2em;
}

.game-current {
  align-items: center;
}

.tribe-editor {
  width: calc(100% - 28px);
  margin: 16px auto 18px;
  padding: 16px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(24, 33, 40, 0.12);
  border-radius: 6px;
}

.tribe-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.tribe-editor h4 {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 900;
}

.tribe-editor-note,
.tribe-save-status {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.tribe-save-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--crimson-dark);
}

.tribe-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tribe-toggle,
.tribe-save-button {
  appearance: none;
  border: 1px solid rgba(24, 33, 40, 0.16);
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, color .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.tribe-toggle {
  min-height: 42px;
  padding: 8px 10px;
  color: var(--text-secondary);
  background: #fffaf2;
}

.tribe-toggle.is-available {
  color: #fff;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  border-color: rgba(13, 127, 153, 0.42);
  box-shadow: var(--shadow-soft);
}

.tribe-toggle.is-unavailable {
  color: var(--text-muted);
  background: rgba(255, 250, 242, 0.52);
  border-color: rgba(24, 33, 40, 0.1);
}

.tribe-toggle:hover,
.tribe-save-button:hover {
  transform: translateY(-1px);
}

.tribe-save-button {
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--crimson-dark), var(--crimson));
}

@media (max-width: 900px) {
  .game-meta {
    display: block;
  }

  .game-meta span {
    display: block;
  }

  .tribe-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #summary-table {
    min-width: 680px;
  }

  #game-ban .ban-subline {
    padding-left: 0;
  }

  .tribe-editor-head {
    display: block;
  }

  .tribe-save-button {
    margin-top: 12px;
    width: 100%;
  }
}
