/* ===========================
   NPC Grid Layout
   =========================== */

.npc-grid {
  display: grid;
  grid-template-columns: repeat(4, max-content); /* 🔥 Cards hug each other */
  justify-content: center;                       /* 🔥 Center the entire grid */
  gap: 2rem 3rem;                                /* vertical | horizontal spacing */
  padding: 3rem 2rem 4rem;
  margin: 0 auto;
  max-width: 1600px;
}


/* Responsive breakpoints */
@media (max-width: 1400px) {
  .npc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .npc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .npc-grid {
    grid-template-columns: 1fr;
  }
}


/* ===========================
   NPC Card
   =========================== */

.npc-card {
  text-align: center;
  background: rgba(5, 6, 10, 0.98);
  border-radius: 1rem;
  border: 1px solid rgba(255, 215, 128, 0.25);
  padding: 1.25rem 1rem 1.75rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;

  max-width: 320px;       /* 🔥 forces SMALL cards */
  margin: 0 auto;         /* centers inside each grid column */
}

.npc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 215, 128, 0.7);
}


/* ===========================
   Portrait
   =========================== */

.npc-portrait {
  display: block;
  margin: 0 auto 1rem;

  /* 🔥 HARD SIZE LIMITS — ensures small, uniform images */
  max-width: 200px;
  max-height: 260px;

  width: auto;         /* keep real aspect ratio */
  height: auto;        /* keep real aspect ratio */

  border-radius: 0.75rem;
}


/* ===========================
   Text
   =========================== */

.npc-name {
  font-size: 1.15rem;
  margin: 0.75rem 0 0.35rem;
  letter-spacing: 0.5px;
}

.npc-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d1cbb5;
}
