/* V6 card compaction and consistent top-right base-character stars. */
.suite-character-grid {
  align-items: start;
  grid-auto-rows: max-content;
}

.suite-character-card {
  grid-template-rows: auto auto auto !important;
  align-content: start;
  min-height: 0 !important;
  height: auto !important;
  gap: 2px !important;
  padding: 4px !important;
}

.suite-character-card[aria-pressed="true"] {
  padding: 2px !important;
}

.suite-character-card img {
  width: 60px;
  height: 60px;
}

.suite-character-card strong,
.suite-character-card small {
  margin: 0;
  min-height: 0;
}

.suite-character-card .suite-star {
  top: 2px !important;
  right: 4px !important;
  z-index: 3;
  padding: 0 1px;
  color: #b87308;
  font-size: 1rem !important;
  line-height: 1;
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 0 2px #fff);
}

/* Established call/height character cards use the same star placement. */
label.girlbox {
  position: relative !important;
}

.main-card-star-v6 {
  position: absolute;
  top: 1px;
  right: 3px;
  z-index: 8;
  display: block;
  color: #b87308;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 0 #fff, 0 0 3px #fff;
}

.runes-processed-wrap-v6 {
  margin-top: 1rem;
}

#runesCanvas.runes-preview {
  display: block;
  max-width: 100%;
  max-height: 32rem;
  margin: .5rem auto 0;
  border: 1px solid #ad8b9d;
  border-radius: .6rem;
  background: #fff;
  image-rendering: auto;
}

#runesCanvas.runes-preview[hidden] {
  display: none;
}

.runes-diagnostics-v6 {
  min-height: 0;
  max-height: 12rem;
  margin: .75rem 0 0;
  padding: .7rem .8rem;
  overflow: auto;
  border: 1px solid rgba(157, 104, 132, .35);
  border-radius: .55rem;
  background: #fff9fc;
  color: #5c3449;
  font: .82rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.runes-diagnostics-v6:empty {
  display: none;
}

.story-source-v6 {
  margin-top: .6rem;
  color: #6e3956;
  font-size: .88rem;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .suite-character-card {
    grid-template-rows: auto auto !important;
    min-height: 0 !important;
    padding: 3px 1px !important;
  }

  .suite-character-card[aria-pressed="true"] {
    padding: 1px 0 !important;
  }

  .suite-character-card img {
    width: 52px;
    height: 52px;
  }

  .suite-character-card strong {
    font-size: .75rem;
    line-height: 1.12;
  }

  .suite-character-card small {
    display: none;
  }

  .suite-character-card .suite-star {
    top: 1px !important;
    right: 3px !important;
    font-size: .88rem !important;
  }

  #runesCanvas.runes-preview {
    max-height: 24rem;
  }
}
