.top-illust::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
  pointer-events: none;
}
.top-illust {
  position: relative;
  margin-bottom: 20px;
}
ul.chara_info {
  padding: 5px 10px 5px 10px;
  margin: 10px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 3px solid #c8c9cf;
  border-radius: 10px;
  overflow: hidden;
  font-weight: bold;
}
ul.chara_info img {
  width: 30px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
.chara_info li:nth-child(n) {
  border-right: 2px dashed #c8c9cf;
  border-bottom: 2px solid #c8c9cf;
  padding: 5px 0px;
  text-align: center;
}
.chara_info li:nth-last-child(-n + 2) {
  border-bottom: none;
}
.chara_info li:nth-child(2n) {
  border-right: none;
}
.trend-desc {
  font-size: 13px;
  position: relative;
  padding-left: 44px;
  font-feature-settings: "palt";
}
.trend-desc::before {
  content: attr(data-skill-lv);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: bold;
  background: #e2e8f0;
  color: #1e293b;
  border-radius: 4px;
  padding: 1px 6px;
}
.name[data-rank="purple"] img {
  border: 2px solid #673ab7;
}
.name[data-rank="purple"] {
  color: #673ab7;
}
.name[data-rank="orange"] img {
  border: 2px solid #ff6600;
}
.name[data-rank="orange"] {
  color: #ff6600;
}
.name[data-rank="red"] img {
  border: 2px solid #f9003f;
}
.name[data-rank="red"] {
  color: #f9003f;
}
.name[data-rank="gray"] img {
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
}
.name[data-rank="gray"] {
  color: #64748b;
}
.tag > div {
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  color: #374151;
}
.tag {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 5px;
}
.human_skill > div {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  text-align: left;
}
.human_skill > div:first-child {
  padding-top: 4px;
}
.human_skill > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
}
.name > div {
  display: flex;
  align-items: center;
}
.name div:last-child {
  text-align: center;
  font-size: 12px;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 2px 8px;
  background: #f1f5f9;
  flex-shrink: 0;
}
.name img {
  width: 36px;
  height: auto;
  margin-right: 5px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: inline-block;
}
.human_skill {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f9fafb;
  margin-bottom: 10px;
}
.human_skill > .info > div::before {
  content: attr(data-skill) ": ";
  font-weight: bold;
  color: #334155;
}
.toggle_button {
  background-color: #2563eb;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  width: 50%;
  margin: 0 25%;
}
.toggle_button:hover {
  background-color: #2563eb;
}
.effect > .trend-desc {
  margin: 10px 0;
}
.sp_effect > .trend-desc {
  display: none;
  margin: 10px 0;
}
.sp_effect > .trend-desc > .sp-name {
  color: #475569;
  font-weight: bold;
  text-decoration: underline;
  margin-right: 7px;
}
.human_skill > .hide div:last-child {
  display: none;
}
.trend-desc .star {
  color: gold;
}
.human_skill > .target-chara {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px 0;
}
.human_skill > .target-chara div {
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}
.human_skill > .target-chara div:has(img.self) {
  color: #ff6600 !important;
  pointer-events: none;
  background-color: #fff6e6 !important;
}
.human_skill > .target-chara img {
  width: 44px;
  height: auto;
}
li[data-rank="UR"] {
  background: linear-gradient(
    90deg,
    #ff9a9e,
    #fad0c4,
    #fad0c4,
    #fbc2eb,
    #a1c4fd,
    #c2e9fb,
    #d4fc79,
    #96e6a1
  );
  -webkit-background-clip: text; /* Safari/Chrome */
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}
li[data-rank="SSR"] {
  color: #dea314;
}
li[data-rank="SR"] {
  color: #ae9be4;
}
li[data-rank="R"] {
  color: #6684c1;
}
.chara-name::before {
  content: attr(data-v);
  display: block;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.025em;
  color: white;
  background: rgba(34, 34, 34, 0.88);
  min-width: 44px;
  line-height: 1;
  padding: 2px 0;
  margin: auto;
  border-radius: 0 0 3px 3px;
  width: fit-content;
  font-family: "Courier New", monospace;
}
.chara-name[data-v="✦5"]::before {
  color: gold;
}
.chara-name[data-v="✵5"]::before {
  color: #c2b0f6;
}
.support img {
  width: 44px;
  height: auto;
}
.support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  flex: 1;
}
.support > div:first-child {
  color: #ff6600 !important;
  pointer-events: none;
  background-color: #fff6e6 !important;
}
.support-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.prev-btn,
.next-btn {
  cursor: pointer;
  font-size: 20px;
  color: #928f8f;
}
.prev-btn.active,
.next-btn.active {
  color: #f58c41;
}
.support-effect .trend-desc {
  display: none;
  position: relative;
  padding-left: 44px;
  margin-top: 10px;
}
.support-effect .trend-desc.active {
  display: block;
}
.support > div.active {
  display: flex;
  gap: 10px;
}
.support > div {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ability_status {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ability_status > .trend-desc {
  padding-left: 5em;
}
.skin-card > div:last-child {
  border-bottom: none;
}
.skin-card > div {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  text-align: left;
}
.skin-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f9fafb;
  padding: 4px 8px;
  margin: 0.75rem auto;
}
.skin-header {
  display: flex;
  align-items: center;
  gap: 10px 4px;
}
.skin-icon {
  width: 84px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.skin-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: bold;
}
.skin-name {
  font-size: 15px;
  color: #1e293b;
}
.skin-char {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
}
.chara-icon {
  width: 32px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
.skin-rarity {
  text-align: center;
  font-size: 12px;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 2px 8px;
  background: #f1f5f9;
  width: fit-content;
}
.tag {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 5px;
}
.tag > div {
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  color: #374151;
}
.skin-source {
  font-size: 13px;
  color: #475569;
}
.skin-card > .trend-desc {
  font-size: 13px;
  position: relative;
  padding-left: 44px;
  font-feature-settings: "palt";
}
.trend-desc::before {
  content: attr(data-skill-lv);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: bold;
  background: #e2e8f0;
  color: #1e293b;
  border-radius: 4px;
  padding: 1px 6px;
}


.suitable-list {
  display: grid;
  gap: 10px;
  margin-bottom: 15px;
  grid-template-columns: repeat(4, 1fr);
}
.suitable {
  border: 2px solid rgb(200, 201, 207);
  overflow: hidden;
  background-color: rgb(255, 255, 255);
  box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 1px;
  text-align: center;
}
.suitable-header {
  background-color: #4b88ea;
  color: rgb(255, 255, 255);
  padding: 4px;
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  height: 64px;
  align-content: center;
}
.suitable-header img {
  width: 36px;
  border: 2px solid antiquewhite;
}
.suitable-body {
  padding: 8px;
  font-weight: bold;
}


.memo-section {
  margin: 10px auto;
  padding: 0 10px;
  border: 1px dashed #ccc;
  border-radius: 6px;
}
.memo-content {
  display: grid;
  grid-template-columns: 75px 1fr;
  align-items: baseline;
  padding: 10px 0;
  gap: 0 10px;
}
.memo-section > :last-child {
  border-bottom: none;
}
.memo-label {
  background: #e2e8f0;
  color: #1e293b;
  border-radius: 4px;
  padding: 2px 6px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
}
