.scaling-table .source-column {
  width: 32%;
}

.scaling-table .level-column {
  width: 12%;
}

.scaling-table .difficulty-column {
  width: 23%;
}

.scaling-table .target-column {
  width: 33%;
}

.single-difficulty .difficulty-column {
  display: none;
}

.single-difficulty .source-column,
.single-difficulty .target-column {
  width: 43%;
}

.single-difficulty .level-column {
  width: 14%;
}

.currency-table.scaling-table td,
.currency-table.scaling-table th {
  width: auto;
}

.currency-table.scaling-table td {
  color: #e6d5bd;
  font-weight: 400;
  white-space: normal;
}

.currency-table.scaling-table th:nth-child(2) {
  text-align: center;
}

.currency-table.scaling-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(79, 54, 37, 0.96), rgba(79, 54, 37, 0.76));
}

.currency-table.scaling-table tbody tr:nth-child(even):hover {
  background: linear-gradient(90deg, rgba(73, 49, 34, 0.96), rgba(73, 49, 34, 0.74));
}

.scaling-table td[rowspan] {
  vertical-align: middle;
}

.scaling-table td:nth-child(2) {
  text-align: center;
}

.scaling-table .family-start:not(:first-child) td {
  border-top: 2px solid var(--gf-gold-line);
}

.troop {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

[dir="rtl"] .troop {
  text-align: right;
}

.troop img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.troop span {
  overflow-wrap: anywhere;
  font-weight: 500;
}

.troop small {
  display: block;
  color: var(--gf-gold-strong);
  font-size: 12px;
  font-weight: 700;
}

.source-group .troop+.troop {
  margin-top: 5px;
}

.currency-table.scaling-table td.level-range {
  color: #fff3dc;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .currency-table.scaling-table {
    font-size: 11px;
  }

  .currency-table.scaling-table th {
    padding: 5px 3px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .currency-table.scaling-table td {
    padding: 5px 4px;
  }

  .troop {
    flex-direction: row;
    align-items: center;
    gap: 5px;
  }

  .troop img {
    width: clamp(28px, 8.5vw, 38px);
    height: clamp(28px, 8.5vw, 38px);
  }

  .troop span {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .troop small {
    font-size: 10px;
    line-height: 1.3;
    margin-top: 2px;
  }

  .source-group .troop+.troop {
    margin-top: 8px;
  }

  .currency-table.scaling-table .level-range {
    font-size: 12px;
    text-align: center;
  }
}