.history-card-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  background: radial-gradient(ellipse at 50% 0%, #295143, #18382d 76%);
}

.history-card-count {
  margin-top: 8px;
  color: #e3eadf;
  font-size: clamp(.94rem, 1.8vw, 1.125rem);
}

.history-card-count strong {
  color: #f5d38f;
  font-size: 1.2em;
  white-space: nowrap;
}

.history-card-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-card {
  flex: 1 1 0;
  max-width: 210px;
  min-width: 0;
  display: flex;
  background: #17372b;
  border: 1px solid #ae8951;
  border-radius: 11px;
  box-shadow: 0 6px 15px #0a1c1480;
  overflow: hidden;
}

.history-card.rarity-4 {
  background: #352842;
  border-color: #c0a1d6;
}

.history-card figure {
  width: 100%;
  margin: 0;
}

.history-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.history-card-stars {
  display: block;
  color: #ffdf94;
  margin-bottom: .16em;
  font-size: clamp(.625rem, 1.35vw, .9rem);
  line-height: 1.5;
  white-space: nowrap;
}

.history-card figcaption {
  margin: 0;
  padding: .55em .3em;
  color: #faf6e9;
  font-size: clamp(.75rem, 1.5vw, 1rem);
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.history-card-panel .history-feature-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3.6vw, 42px);
  margin: 0;
}

.history-card-panel .history-feature-details li {
  padding-bottom: 0;
}

@media (max-width: 610px) {
  .history-card-panel {
    padding: 18px;
  }

  .history-card-gallery {
    gap: 8px;
  }

  .history-card {
    flex: 0 1 calc((100% - 16px) / 3);
    max-width: 146px;
  }

  .history-card-panel .history-feature-details {
    grid-template-columns: minmax(0, 1fr);
  }
}
