.hero-portrait-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-skill-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19, 31, 44, 0.94), rgba(11, 19, 28, 0.96));
}

.hero-skill-strip img {
  display: block;
  width: 100%;
  max-width: 40px;
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
}

.hero-results-media img {
  object-position: center;
}

.hero-card-grid,
.role-ladder-grid,
.team-grid,
.hero-link-grid {
  display: grid;
  gap: 1rem;
}

.hero-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hero-profile-card,
.role-card,
.team-card,
.hero-link-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 31, 44, 0.94), rgba(11, 19, 28, 0.96));
  transition: transform 180ms ease, border-color 180ms ease;
}

.hero-profile-card:hover,
.role-card:hover,
.team-card:hover,
.hero-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.hero-profile-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.15rem;
}

.hero-profile-top,
.hero-identity,
.hero-name-row,
.team-card-head,
.hero-link-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-profile-top,
.hero-name-row {
  justify-content: space-between;
}

.hero-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(92, 144, 255, 0.16), transparent 44%),
    rgba(7, 12, 18, 0.88);
}

.hero-avatar img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.hero-name-row h3,
.role-card h3,
.team-card h3,
.hero-link-card h3 {
  margin: 0;
}

.hero-role,
.hero-profile-card p,
.role-card p,
.team-card p,
.hero-link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.hero-tag,
.pairing-chip,
.team-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.hero-tag.availability-starter {
  background: rgba(92, 144, 255, 0.14);
  color: #dce8ff;
}

.hero-tag.availability-free-dlc {
  background: rgba(88, 201, 223, 0.16);
  color: #ddfbff;
}

.hero-tag.availability-paid-dlc {
  background: rgba(215, 186, 120, 0.16);
  color: #ffefc7;
}

.hero-tag.focus-safe,
.team-chip.focus-safe {
  background: rgba(92, 144, 255, 0.14);
  color: #dce8ff;
}

.hero-tag.focus-farm,
.team-chip.focus-farm {
  background: rgba(88, 201, 223, 0.16);
  color: #ddfbff;
}

.hero-tag.focus-support,
.team-chip.focus-support {
  background: rgba(134, 219, 163, 0.16);
  color: #e8fff0;
}

.hero-tag.focus-burst,
.team-chip.focus-burst {
  background: rgba(215, 186, 120, 0.16);
  color: #ffefc7;
}

.hero-tag.focus-experiment,
.team-chip.focus-experiment {
  background: rgba(166, 123, 255, 0.18);
  color: #ebdfff;
}

.hero-banner {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(92, 144, 255, 0.12), transparent 38%),
    rgba(7, 12, 18, 0.88);
}

.hero-banner img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-meta-card {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-meta-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-meta-card strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.48;
}

.hero-icon-row,
.team-portraits,
.hero-link-tags,
.hero-pairings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-icon-row img,
.hero-link-icon,
.team-portrait img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.hero-list,
.role-list,
.team-list,
.hero-link-list {
  display: grid;
  gap: 0.52rem;
  margin: 0;
  padding-left: 1.1rem;
}

.hero-list li,
.role-list li,
.team-list li,
.hero-link-list li {
  color: var(--muted);
  line-height: 1.56;
}

.hero-note {
  margin-top: auto;
  font-size: 0.84rem;
}

.hero-action,
.hero-link-action {
  margin-top: 0.1rem;
}

.pairing-chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.role-ladder-grid,
.team-grid,
.hero-link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.role-card,
.team-card,
.hero-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 280px;
  padding: 1rem;
}

.role-card-media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(92, 144, 255, 0.12), transparent 40%),
    rgba(7, 12, 18, 0.88);
}

.role-card-media img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
  object-position: center;
}

.role-kicker,
.team-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(92, 144, 255, 0.14);
  color: #dce8ff;
  font-size: 0.82rem;
}

.team-portrait {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 12, 18, 0.88);
}

.team-portrait img {
  width: 42px;
  height: 42px;
}

.hero-link-head {
  align-items: center;
}

.hero-link-icon {
  width: 40px;
  height: 40px;
}

@media (max-width: 1180px) {
  .role-ladder-grid,
  .team-grid,
  .hero-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-portrait-strip,
  .hero-skill-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .role-ladder-grid,
  .team-grid,
  .hero-link-grid {
    grid-template-columns: 1fr;
  }
}
