@import url("/assets/app-v3.css?v=3");

.ally-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.ally-summary div {
  min-width: 0;
  padding: 14px;
  background: linear-gradient(#23272c, #121416);
  border: 1px solid #4b5056;
}

.ally-summary span {
  display: block;
  color: #aaa;
  font-size: 10px;
  text-transform: uppercase;
}

.ally-summary b {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 20px;
}

.list-title {
  margin: 20px 0 8px;
  color: var(--gold);
  font: 700 17px Georgia, serif;
}

.ally-list {
  display: grid;
  gap: 7px;
}

.ally-list article {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto 92px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  background: #17191c;
  border: 1px solid #444;
}

.ally-list.owned article {
  background: #1d211a;
  border-color: #555d43;
}

.ally-list h3 {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
}

.ally-list p {
  margin: 4px 0 0;
  overflow: hidden;
  color: #aaa;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ally-list > article > strong {
  color: #ddd;
  font-size: 11px;
  white-space: nowrap;
}

.ally-list form { width: 92px; }
.ally-list .metal { padding: 8px; }
.owned-label { color: #93b777; font-size: 11px; font-weight: bold; text-align: center; text-transform: uppercase; }

@media (max-width: 720px) {
  .ally-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ally-list article { grid-template-columns: 40px minmax(0, 1fr) 82px; }
  .ally-list > article > strong { grid-column: 2; }
  .ally-list form, .owned-label { grid-column: 3; grid-row: 1 / span 2; width: 82px; }
}
