/* The roster uses the same ink, gold and seal motifs as the news section. */
.g-roster-screen .g-factions { align-items: stretch; gap: 10px; }
.g-roster-screen .g-faction {
  --faction-cut: 10px;
  --faction-rim: #bca87565;
  --faction-fill: linear-gradient(110deg, #1b3034, #101d25);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 78px;
  border: 0;
  background: none;
  text-align: left;
}
.g-roster-screen .g-faction:before,
.g-roster-screen .g-faction:after {
  content: "";
  position: absolute;
  pointer-events: none;
  clip-path: polygon(var(--faction-cut) 0, 100% 0, 100% calc(100% - var(--faction-cut)), calc(100% - var(--faction-cut)) 100%, 0 100%, 0 var(--faction-cut));
}
.g-roster-screen .g-faction:before { inset: 0; z-index: -2; background: var(--faction-rim); }
.g-roster-screen .g-faction:after { inset: 1px; z-index: -1; background: var(--faction-fill); }
.g-roster-screen .g-faction[aria-selected="false"] { color: #ded8c6; }
.g-roster-screen .g-faction:hover {
  --faction-rim: #d7bf88;
  --faction-fill: linear-gradient(110deg, #293a39, #172a30);
}
.g-roster-screen .g-faction[aria-selected="true"] {
  --faction-rim: #e7c985;
  --faction-fill: linear-gradient(110deg, #4c402e, #1d3032);
  color: #f7e4b6;
  background: none;
}
.g-roster-screen .g-faction:not(.g-faction-with-badge) { padding-inline: 16px; }
.g-roster-screen .g-faction[data-faction="全部"] { justify-content: center; text-align: center; }
.g-roster-screen .g-faction-label {
  font-family: "Chapter Brush", "STKaiti", "KaiTi", serif;
  font-size: clamp(26px, 1.6vw, 34px);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.2;
}
.g-roster-screen .g-faction-label small { color: #b9a780; }

.g-roster-screen .g-character-copy { width: var(--roster-copy-width); }
.g-roster-heading { display: flex; align-items: center; gap: 10px; width: 100%; }
.g-roster-heading-title {
  flex: none;
  color: #ecd29c;
  white-space: nowrap;
}
.g-roster-heading-en {
  flex: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10px, .67vw, 14px);
  letter-spacing: .14em;
  color: #baa98a;
}
.g-roster-heading .g-roster-seal { width: 23px; height: 29px; font-size: 20px; }
.g-roster-heading-rule {
  flex: 1;
  min-width: 0;
  height: 27px;
  background: url("assets/icons/NewsCloudRule.svg?v=3c23ace402bb") left center / 180px 27px no-repeat;
  mask-image: linear-gradient(90deg, #000 65%, transparent);
  opacity: .8;
}
.g-roster-screen .g-character-en {
  margin-top: 16px;
  color: #c4b99f;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .16em;
}
.g-roster-screen .g-character-name {
  margin-top: 6px;
  color: #f7ead0;
  text-shadow: 0 2px 0 #19201c, 0 3px 8px #02070ba6;
}
.g-roster-screen .g-character-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 0;
  color: #eacb92;
  font-size: clamp(17px, 1.35vw, 25px);
  line-height: 1.4;
  letter-spacing: .1em;
  text-shadow: 0 1px 4px #10151f;
  white-space: nowrap;
}
.g-roster-screen .g-character-title::before,
.g-roster-screen .g-character-title::after {
  content: "";
  flex: none;
  height: 1px;
  pointer-events: none;
}
.g-roster-screen .g-character-title::before {
  width: 16px;
  background: #c6a672b8;
}
.g-roster-screen .g-character-title::after {
  width: 28px;
  background: linear-gradient(90deg, #c6a6728c, transparent);
}
.g-roster-screen .g-character-copy .g-character-title:empty { display: none; }
.g-roster-screen .g-character-description {
  max-width: 100%;
  margin-top: 18px;
  padding-left: 13px;
  border-left: 1px solid #b89c627d;
  color: #d1d9d8;
}

.g-roster-screen .g-character-choices {
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.g-roster-screen .g-character-choices::-webkit-scrollbar { display: none; }

@media (min-width: 681px) {
  .g-roster-screen .g-character-choices { gap: clamp(8px, .8vw, 16px); }
  .g-roster-screen .g-character-choice {
    flex: 0 1 var(--roster-choice-width);
    min-width: min(72px, var(--roster-choice-width));
  }
}
@media (max-width: 1100px) {
  .g-roster-screen .g-faction { min-height: 62px; }
  .g-roster-heading-rule { display: none; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .g-roster-screen .g-faction { min-height: 54px; }
}
@media (min-width: 681px) and (max-height: 720px) {
  .g-roster-screen .g-character-en { margin-top: 12px; }
  .g-roster-screen .g-character-description { margin-top: 13px; }
}
@media (max-width: 680px) {
  .g-roster-screen .g-factions {
    display: grid;
    grid-template-columns: minmax(0, .78fr) repeat(3, minmax(0, 1.16fr));
    gap: 4px;
  }
  .g-roster-screen .g-faction {
    --faction-cut: 6px;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    gap: 3px;
    padding: 4px 2px;
    font-size: 12px;
  }
  .g-roster-screen .g-faction:not(.g-faction-with-badge) { padding-inline: 2px; }
  .g-roster-screen .g-faction-badge { width: clamp(22px, 6.8vw, 30px); height: clamp(22px, 6.8vw, 30px); }
  .g-roster-heading { gap: 8px; }
  .g-roster-screen .g-faction-label { font-size: 18px; }
  .g-roster-heading-en { font-size: 9px; letter-spacing: .1em; }
  .g-roster-heading .g-roster-seal { width: 17px; height: 23px; font-size: 16px; }
  .g-roster-heading-rule { display: block; height: 21px; background-size: 145px 21px; }
  .g-roster-screen .g-character-copy {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
  }
  .g-roster-screen .g-character-name { margin-top: 4px; }
  .g-roster-screen .g-character-copy .g-character-title {
    display: flex;
    align-self: center;
    gap: 5px;
    margin-top: 4px;
    padding-block: 3px;
    font-size: 12px;
    letter-spacing: .05em;
  }
  .g-roster-screen .g-character-title::before { width: 7px; }
  .g-roster-screen .g-character-title::after { width: 12px; }
}

.g-quiz-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: clamp(168px, 14vw, 284px);
  height: clamp(52px, 4.2vw, 82px);
  border: 1px solid #c2a167;
  background: linear-gradient(112deg, #213833, #10232a 70%, #253731);
  color: #ffe6ae;
  font: 600 clamp(20px, 1.45vw, 30px)/1.2 "Roster Serif", "Songti SC", SimSun, serif;
  letter-spacing: .16em;
  text-decoration: none;
  box-shadow: 0 3px 12px #07131b66;
}
.g-quiz-entry::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #b9985e73;
  pointer-events: none;
}
.g-quiz-entry::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 78px;
  height: 16px;
  background: url("assets/icons/RechargeCloudCrest.svg?v=6b7823de7088") center / contain no-repeat;
  pointer-events: none;
}
.g-quiz-entry span { position: absolute; right: 9%; font: 18px/1 serif; letter-spacing: 0; }
.g-quiz-entry:hover, .g-quiz-entry:focus-visible { background: #2b4340; border-color: #ffe7ae; color: #fff1ce; }
.g-quiz-entry:focus-visible { outline: 2px solid #ffe7ae; outline-offset: 3px; }
.g-campaign-roster-copy .g-quiz-entry { margin-top: clamp(16px, 3vh, 38px); }
.g-roster-shell > .g-quiz-entry {
  position: absolute;
  z-index: 6;
  right: 3%;
  bottom: var(--roster-choices-bottom);
}
@media (min-width: 681px) {
  .g-roster-screen .g-character-bottom { right: calc(3% + clamp(168px, 14vw, 284px) + 20px); }
}
@media (min-width: 681px) and (max-height: 560px) {
  .g-campaign-roster-copy .g-quiz-entry {
    position: absolute;
    left: calc(100% + 20px);
    top: min(165px, 44vh);
    margin: 0;
  }
}
@media (max-width: 680px) {
  .g-quiz-entry { width: 156px; height: 44px; font-size: 19px; }
  .g-campaign-roster-copy .g-quiz-entry { margin-top: 12px; }
  .g-roster-shell > .g-quiz-entry { right: 23px; bottom: calc(var(--roster-choices-bottom) - 56px); }
}

/* One typography rule for every character selector on the main and landing pages. */
.g-experience .g-character-choice span,
.g-experience .g-campaign-roster-card-name {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(18px, .8vw, 21px);
  font-weight: 500;
  font-style: normal;
  font-synthesis: none;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .g-experience .g-character-choice span,
  .g-experience .g-campaign-roster-card-name { font-size: 16px; }
}
