/* 7ds Origin Reroll Guide – Character cards & weapon icons */

/* Inline: name + small avatar next to each other in text */
.dso-guide-character-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  white-space: nowrap;
  margin: 0 2px;
}

.dso-guide-character-inline:hover {
  opacity: 0.9;
}

.dso-guide-char-name {
  font-weight: 600;
  color: #e8e8e8;
  font-size: 1.31rem;
}

.dso-guide-char-avatar {
  display: inline-block;
  width: 55px;
  height: 55px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #32323e;
}

.dso-guide-char-avatar.Character-SSR {
  background: linear-gradient(160deg, #6e4c42 0%, #e0c870 65%);
  width: 41px;
  height: 41px;
}

.dso-guide-char-avatar.Character-SR {
  background: linear-gradient(160deg, #2d2f4d 0%, #7a5af8 65%);
}

.dso-guide-char-avatar.Character-R {
  background: linear-gradient(160deg, #2d3d4d 0%, #87ceeb 65%);
}

.dso-guide-char-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* List items with inline character links */
.guide-section li:has(.dso-guide-character-inline) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  list-style-position: inside;
}

/* h3 with inline character link */
.guide-section h3:has(.dso-guide-character-inline) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dso-guide-character-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.dso-guide-character-row .dso-guide-character-link {
  flex: 0 0 auto;
  width: 115px;
  transition: transform 0.15s ease;
  border-radius: 2px;
}

.dso-guide-character-row .dso-guide-character-link:hover {
  transform: scale(1.05);
}

.dso-guide-character-row .dso-tierlist-card-avatar {
  width: 95px;
  height: 95px;
  border-radius: 2px;
  overflow: hidden;
  background: #2c2d35;
  border: 2px solid #32323e;
}

.dso-guide-character-row .dso-tierlist-card-avatar.Character-SSR {
  background: linear-gradient(160deg, #6e4c42 0%, #e0c870 65%);
}

.dso-guide-character-row .dso-tierlist-card-avatar.Character-SR {
  background: linear-gradient(160deg, #2d2f4d 0%, #7a5af8 65%);
}

.dso-guide-character-row .dso-tierlist-card-avatar.Character-R {
  background: linear-gradient(160deg, #2d3d4d 0%, #87ceeb 65%);
}

.dso-guide-character-row .dso-tierlist-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dso-guide-character-row .dso-tierlist-card-name {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e8e8e8;
  text-align: center;
  line-height: 1.2;
}

.dso-guide-weapon-inline {
  display: inline;
  vertical-align: middle;
  margin: 0 2px;
}

@media (max-width: 600px) {
  .dso-guide-character-row .dso-guide-character-link {
    width: 90px;
  }
  .dso-guide-character-row .dso-tierlist-card-avatar {
    width: 72px;
    height: 72px;
  }
  .dso-guide-character-row .dso-tierlist-card-name {
    font-size: 0.8rem;
  }
}
