.members-page h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--text-main);
  text-align: left;
}
.members-search {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: #f6e6cb;
  font: inherit;
  border-radius: 10px;
}
.members-search::placeholder {
  color: #8f7b63;
}
.members-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.member-card {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
}
.member-card.rank-card-guild-master {
  border-color: #a64c86;
}
.member-card.rank-card-guild-deputy {
  border-color: #276992;
}
.member-card.rank-card-exemplar {
  border-color: #cf5b2c;
  overflow: hidden;
}
.member-card.rank-card-exemplar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at center, rgba(207, 91, 44, 0.18), transparent 62%),
    var(--member-exemplar-bg-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.member-card.rank-card-exemplar > * {
  position: relative;
  z-index: 1;
}
.member-card .avatar-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.member-card .avatar-wrapper img.avatar-bg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.member-card .avatar-wrapper img.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(0.90);
  position: absolute;
  top: 0;
  left: 0;
}
.member-card .avatar-wrapper img.avatar-frame {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: scale(1.20);
  transform-origin: center;
}
.member-card .avatar-wrapper .rank-plate-wrapper {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: auto;
  cursor: pointer;
}
.member-card .avatar-wrapper .rank-plate-wrapper img.rank-plate {
  position: static;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.member-card .avatar-wrapper .rank-plate-wrapper .rank-plate-overlay-text {
  position: absolute;
  top: 40%;
  left: 58%;
  transform: translate(-50%, -50%);
  color: #F5E9E0;
  font-size: 0.55rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.member-card .avatar-wrapper .rank-plate-wrapper[data-plate="bg_nameplate_2"] .rank-plate-overlay-text {
    top: 43% !important;
    left: 55% !important;
}
.member-card .avatar-wrapper .rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] .rank-plate-overlay-text {
    top: 40% !important;
    left: 53% !important;
}
.member-tooltip-host {
  position: relative;
}

.members-desktop-overlay-host {
  position: fixed;
  inset: 0;
  z-index: 36;
  pointer-events: none;
}

.members-desktop-overlay-host.is-panel-open {
  pointer-events: auto;
}

.rank-tooltip,
.medal-tooltip,
.rank-plate-tooltip {
  position: absolute;
  z-index: 2000;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(236, 198, 136, 0.28);
  background:
    radial-gradient(circle at top right, rgba(244, 198, 120, 0.18), transparent 36%),
    radial-gradient(circle at bottom left, rgba(166, 99, 52, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(63, 44, 31, 0.96), rgba(23, 16, 12, 0.98));
  color: #f2e0c0;
  box-shadow:
    0 26px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 245, 224, 0.1),
    inset 0 -1px 0 rgba(120, 78, 41, 0.22);
  pointer-events: auto;
  font-size: 0.88rem;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(14px);
  top: calc(100% + 0.7rem);
  left: 50%;
  transform: translateX(-50%);
}

.rank-tooltip.member-tooltip--floating,
.medal-tooltip.member-tooltip--floating,
.rank-plate-tooltip.member-tooltip--floating {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
}
.rank-tooltip::before,
.medal-tooltip::before,
.rank-plate-tooltip::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 241, 214, 0.26), transparent 28%, transparent 74%, rgba(209, 139, 77, 0.22));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.rank-tooltip {
  max-width: min(300px, calc(100vw - 1.5rem));
}
.medal-tooltip {
  max-width: min(340px, calc(100vw - 1.5rem));
}
.rank-plate-tooltip {
  max-width: min(380px, calc(100vw - 1.5rem));
}
.rank-tooltip-title,
.medal-tooltip-rarity,
.rank-plate-tooltip-title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  color: #fff1d0;
  text-shadow: 0 3px 16px rgba(244, 198, 120, 0.18);
}
.medal-tooltip-rarity {
  margin-bottom: 0.18rem;
}
.medal-tooltip-name {
  position: relative;
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f8e7c5;
}
.rank-tooltip-title,
.rank-plate-tooltip-title {
  margin-bottom: 0.65rem;
}
.rank-tooltip-divider,
.medal-tooltip-divider,
.rank-plate-tooltip-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 198, 136, 0.58), transparent);
  margin: 0.75rem 0 0.7rem;
}
.rank-tooltip-desc,
.medal-tooltip-desc,
.rank-plate-tooltip-desc {
  position: relative;
  margin: 0;
  color: #e6d1ab;
  line-height: 1.6;
}
.rank-tooltip-image,
.medal-tooltip-image {
  position: relative;
  display: block;
  margin: 0.65rem auto 0.75rem;
  object-fit: contain;
  box-sizing: border-box;
  border-radius: 20px;
  padding: 0.75rem;
  background:
    radial-gradient(circle at top, rgba(255, 240, 212, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 248, 237, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(238, 199, 137, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 218, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.18);
}
.rank-tooltip-image {
  width: 92px;
  height: 92px;
}
.medal-tooltip-image {
  width: 112px;
  height: 112px;
}
.rank-plate-tooltip-img-wrapper {
  position: relative;
  width: 156px;
  height: 156px;
  margin: 0.45rem auto 0.9rem;
  isolation: isolate;
}
.rank-plate-tooltip-img-wrapper::before {
  content: '';
  position: absolute;
  inset: -11px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(255, 239, 209, 0.14), transparent 56%),
    linear-gradient(180deg, rgba(255, 248, 237, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(238, 199, 137, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 218, 0.05),
    0 18px 32px rgba(0, 0, 0, 0.22);
  z-index: 0;
}
.rank-plate-tooltip-img-wrapper img.rank-plate-tooltip-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.26));
}
.rank-plate-tooltip-img-wrapper .rank-plate-tooltip-overlay {
  position: absolute;
  z-index: 3;
  top: 51%;
  left: 58%;
  transform: translate(-50%, -50%);
  color: #F5E9E0;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}
.rank-plate-tooltip-img-wrapper.portal .rank-plate-tooltip-overlay {
    top: 51.5% !important;
    left: 55% !important;
}
.rank-plate-tooltip-img-wrapper.sparkle .rank-plate-tooltip-overlay {
    top: 51% !important;
    left: 53% !important;
}
.member-card .member-head {
  min-width: 0;
  display: flex;
}
.member-card .member-head {
  align-items: center;
  gap: 0.5rem;
}
.member-card .member-head .member-name {
  min-width: 0;
}
.member-card .top-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.member-card .member-head .member-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
}
.member-card .member-name.rank-guild-master {
  color: #a64c86;
}
.member-card .member-name.rank-guild-deputy {
  color: #276992;
}
.member-card .member-name.rank-exemplar {
  color: #cf5b2c;
}
.member-card .gender-icon,
.member-card .medal-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.member-card .member-head .medal-icon {
  margin-left: -0.60rem;
}
.member-card .member-server {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.member-card .member-since-line {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.members-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}
.members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}
.member-card .medal-icon {
  cursor: pointer;
}
.rarity-elite {
  color: #C481BC;
}
.rarity-legendary {
  color: #C89544;
}
.rarity-mythic {
  color: #C95270;
}
.rarity-ascended {
  color: #C95270;
}
.member-card img.rank-icon {
  position: absolute;
  top: -1.5px;
  right: 35px;
  width: 42px;
  height: 42px;
  object-fit: contain;
  pointer-events: auto;
  cursor: pointer;
}
.member-card .lang-flag {
  position: absolute;
  top: 1px;
  right: 3px;
  width: 28px;
  height: 18px;
  border-radius: 2px;
  overflow: hidden;
  object-fit: cover;
}
.member-card .member-id-top {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #efd8b3;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(241, 214, 169, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 218, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.08);
}

.member-card .member-id-top--mobile {
  display: none;
}

.member-card .member-id-top--desktop {
  margin-left: auto;
}
@media (max-width: 480px) {
  .member-card {
    padding: 0.5rem 0.75rem;
  }
  .member-card .avatar-wrapper {
    width: 56px;
    height: 56px;
  }
  .member-card .member-head .member-name {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .member-card .member-id-top {
    max-width: 100%;
  }
}
.member-card .avatar-wrapper .rank-plate-wrapper .rank-plate-overlay-text {
  z-index: 3;
}
@keyframes sparkleGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.25); }
  50%      { box-shadow: 0 0 10px 5px rgba(255, 215, 0, 0.8); }
}
@keyframes sparkleStar {
  0%, 100% { opacity: 0; transform: scale(var(--sparkle-scale-min, 0.3)); }
  50%      { opacity: 1; transform: scale(var(--sparkle-scale-max, 0.7)); }
}
.rank-plate-tooltip-img-wrapper.sparkle,
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] {
  position: relative;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star,
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star {
  --sparkle-scale-min: 0.3;
  --sparkle-scale-max: 0.7;
  position: absolute;
  border-radius: 0;
  background: radial-gradient(circle at 50% 34%, #fffef8 0%, #fff6dc 28%, #ffe08a 56%, #d7a23c 100%);
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 72%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 72%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.96)) drop-shadow(0 0 4px rgba(255, 223, 133, 0.92)) drop-shadow(0 0 8px rgba(227, 175, 52, 0.4));
  transform-origin: center center;
  opacity: 0;
  animation-name: sparkleStar;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star {
  display: none;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-1 i.sparkle-star:nth-of-type(1),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-1 i.sparkle-star:nth-of-type(1) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-2 i.sparkle-star:nth-of-type(2),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-2 i.sparkle-star:nth-of-type(2) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-3 i.sparkle-star:nth-of-type(3),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-3 i.sparkle-star:nth-of-type(3) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-4 i.sparkle-star:nth-of-type(4),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-4 i.sparkle-star:nth-of-type(4) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-5 i.sparkle-star:nth-of-type(5),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-5 i.sparkle-star:nth-of-type(5) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-6 i.sparkle-star:nth-of-type(6),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-6 i.sparkle-star:nth-of-type(6) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-7 i.sparkle-star:nth-of-type(7),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-7 i.sparkle-star:nth-of-type(7) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-8 i.sparkle-star:nth-of-type(8),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-8 i.sparkle-star:nth-of-type(8) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-9 i.sparkle-star:nth-of-type(9),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-9 i.sparkle-star:nth-of-type(9) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-10 i.sparkle-star:nth-of-type(10),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-10 i.sparkle-star:nth-of-type(10) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-11 i.sparkle-star:nth-of-type(11),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-11 i.sparkle-star:nth-of-type(11) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"].hide-star-12 i.sparkle-star:nth-of-type(12),
.rank-plate-tooltip-img-wrapper.sparkle.hide-star-12 i.sparkle-star:nth-of-type(12) { display: none; }
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(1),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(1) {
  top: 49%;
  left: 30%;
  width: 4px;
  height: 4px;
  animation-duration: 3s;
  animation-delay: 0s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(2),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(2) {
  top: 18%;
  left: 37%;
  width: 3px;
  height: 3px;
  animation-duration: 2.5s;
  animation-delay: 0.5s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(3),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(3) {
  top: 15%;
  left: 41%;
  width: 5px;
  height: 5px;
  animation-duration: 2.5s;
  animation-delay: 0.5s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(4),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(4) {
  top: 56%;
  left: 45%;
  width: 4px;
  height: 4px;
  animation-duration: 3.2s;
  animation-delay: 1.5s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(5),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(5) {
  top: 40%;
  left: 50%;
  width: 3px;
  height: 3px;
  animation-duration: 2.9s;
  animation-delay: 2s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(6),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(6) {
  top: 70%;
  left: 55%;
  width: 4px;
  height: 4px;
  animation-duration: 3.5s;
  animation-delay: 0.7s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(7),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(7) {
  top: 59%;
  left: 64%;
  width: 3px;
  height: 3px;
  animation-duration: 2.6s;
  animation-delay: 1.2s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(8),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(8) {
  top: 49%;
  left: 67%;
  width: 5px;
  height: 5px;
  animation-duration: 3s;
  animation-delay: 1.8s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(9),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(9) {
  top: 67%;
  left: 74%;
  width: 3px;
  height: 3px;
  animation-duration: 2.4s;
  animation-delay: 0.9s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(10),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(10) {
  top: 69%;
  left: 77%;
  width: 4px;
  height: 4px;
  animation-duration: 3.3s;
  animation-delay: 1.6s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(11),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(11) {
  top: 42%;
  left: 83%;
  width: 3px;
  height: 3px;
  animation-duration: 2.7s;
  animation-delay: 2.1s;
}
.rank-plate-wrapper[data-plate="bg_idlepvp_nameplate_2"] i.sparkle-star:nth-of-type(12),
.rank-plate-tooltip-img-wrapper.sparkle i.sparkle-star:nth-of-type(12) {
  top: 15%;
  left: 86%;
  width: 4px;
  height: 4px;
  animation-duration: 3.6s;
  animation-delay: 1.3s;
}
@keyframes portalLineV2 {
  0%   { transform: translateY(100%) scaleY(0.3); opacity: 0; }
  20%  { transform: translateY(60%)  scaleY(1.0); opacity: 1; }
  40%  { transform: translateY(30%)  scaleY(0.8); opacity: 0.8; }
  60%  { transform: translateY(0%)   scaleY(0.5); opacity: 0.5; }
  80%  { transform: translateY(-30%) scaleY(0.3); opacity: 0.3; }
  100% { transform: translateY(-60%) scaleY(0.1); opacity: 0; }
}
.rank-plate-wrapper[data-plate="bg_nameplate_2"] i.portal-line,
.rank-plate-tooltip-img-wrapper.portal i.portal-line {
  position: absolute;
  animation-name: portalLineV2;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  background: linear-gradient(to top, rgba(211, 150, 255, 0.0) 0%, rgba(211, 150, 255, 1) 40%, rgba(211, 150, 255, 0.0) 100%);
  border-radius: 2px;
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
}
.rank-plate-wrapper[data-plate="bg_nameplate_2"] i.portal-line:nth-of-type(1),
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(1) {
  top: 10%;
  left: 22%;
  width: 2px;
  height: 35%;
  animation-duration: 3s;
  animation-delay: 0s;
}
.rank-plate-wrapper[data-plate="bg_nameplate_2"] i.portal-line:nth-of-type(2),
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(2) {
  top: 10%;
  left: 33%;
  width: 2px;
  height: 35%;
  animation-duration: 2.6s;
  animation-delay: 0.5s;
}
.rank-plate-wrapper[data-plate="bg_nameplate_2"] i.portal-line:nth-of-type(3),
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(3) {
  top: 10%;
  left: 45%;
  width: 3px;
  height: 35%;
  animation-duration: 2.9s;
  animation-delay: 1.0s;
}
.rank-plate-wrapper[data-plate="bg_nameplate_2"] i.portal-line:nth-of-type(4),
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(4) {
  top: 10%;
  left: 65%;
  width: 2px;
  height: 35%;
  animation-duration: 2.7s;
  animation-delay: 0.3s;
}
.rank-plate-wrapper[data-plate="bg_nameplate_2"] i.portal-line:nth-of-type(5),
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(5) {
  top: 10%;
  left: 80%;
  width: 1.5px;
  height: 35%;
  animation-duration: 3.1s;
  animation-delay: 0.8s;
}
.rank-plate-wrapper[data-plate="bg_nameplate_2"] i.portal-line:nth-of-type(6),
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(6) {
  top: 10%;
  left: 95%;
  width: 2px;
  height: 30%;
  animation-duration: 2.8s;
  animation-delay: 1.2s;
}
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(1) {
  top: 38%;
  height: 13%;
  width: 2px;
}
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(2) {
  top: 38%;
  height: 13%;
  width: 2px;
}
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(3) {
  top: 38%;
  height: 13%;
  width: 2px;
}
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(4) {
  top: 38%;
  height: 13%;
  width: 2px;
}
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(5) {
  top: 38%;
  height: 13%;
  width: 1px;
}
.rank-plate-tooltip-img-wrapper.portal i.portal-line:nth-of-type(6) {
  top: 40%;
  height: 10%;
  width: 2px;
}
@keyframes portalCirclePulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  50%  { transform: scale(1.4); opacity: 1;   }
  100% { transform: scale(1);   opacity: 0.6; }
}
.rank-plate-wrapper[data-plate="bg_nameplate_2"] i.portal-circle {
  position: absolute;
  top: 28%;
  left: 8%;
  width: 8%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(240, 240, 240, 0.5) 30%, rgba(240, 240, 240, 0.2) 60%, rgba(240, 240, 240, 0) 200%);
  animation: portalCirclePulse 3s ease-in-out infinite;
  mix-blend-mode: screen;
  z-index: 2;
}
.rank-plate-tooltip-img-wrapper.portal i.portal-circle {
  position: absolute;
  top: 46%;
  left: 8.5%;
  width: 7%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(240, 240, 240, 0.5) 15%, rgba(240, 240, 240, 0.2) 60%, rgba(240, 240, 240, 0) 150%);
  animation: portalCirclePulse 3.5s ease-in-out infinite;
  mix-blend-mode: screen;
  z-index: 2;
}
.rank-color-guild-master {
  color: #a64c86;
}
.rank-color-guild-deputy {
  color: #276992;
}
.rank-color-exemplar {
  color: #cf5b2c;
}

.members-page {
  max-width: var(--max-page-width);
  margin: 0 auto;
  padding: 0;
  gap: 1.3rem;
  box-sizing: border-box;
  --members-frame-gap: 45px;
}

.members-shell {
  width: max(0px, calc(100% - var(--members-frame-gap)));
  max-width: max(0px, calc(100% - var(--members-frame-gap)));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  justify-self: center;
  padding-bottom: 1rem;
}

.members-page-header {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin: 0;
}

.members-header__copy {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.members-toolbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow: visible;
  width: max-content;
  min-width: 0;
  align-self: end;
  justify-self: end;
  margin-left: 0;
  margin-top: auto;
}

.members-page h1 {
  margin: 0;
  text-align: left;
}

.members-intro {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: none;
}

.members-search-panel {
  width: min(100%, clamp(280px, 28vw, 320px));
  justify-self: end;
  align-self: end;
}

.members-settings-anchor {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
}

.members-settings-toggle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1;
}

@media (hover: hover) {
  .members-settings-toggle:hover {
    transform: translateY(-1px);
  }
}

.members-settings-toggle:focus-visible {
  outline: 2px solid rgba(228, 192, 132, 0.4);
  outline-offset: 2px;
}

.members-settings-panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  width: 260px;
  min-width: 260px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(236, 198, 136, 0.2);
  background:
    radial-gradient(circle at top right, rgba(244, 198, 120, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(42, 30, 22, 0.98), rgba(19, 13, 10, 0.99));
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 243, 218, 0.07);
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 72;
}

.members-settings-panel--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  margin-top: 0;
  max-height: calc(100dvh - var(--nav-h) - 1.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 36;
  pointer-events: auto;
}

.members-settings-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.members-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(236, 198, 136, 0.14);
}

.members-settings-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  letter-spacing: 0.04em;
  color: #fff1d0;
}

.members-settings-close {
  width: 2.55rem;
  height: 2.55rem;
  min-width: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(238, 198, 134, 0.24);
  background: linear-gradient(180deg, rgba(255, 241, 214, 0.08), rgba(255, 255, 255, 0.02));
  color: #fff0cf;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 243, 221, 0.05);
}

.members-settings-close:hover {
  background: linear-gradient(180deg, rgba(255, 241, 214, 0.13), rgba(255, 255, 255, 0.04));
}

.members-settings-section {
  display: grid;
  gap: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(236, 198, 136, 0.1);
  background: rgba(255, 245, 228, 0.035);
  padding: 0.85rem 0.95rem;
}

.members-settings-section-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d6b67d;
}

.members-settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.members-settings-option span {
  color: #ecd9b7;
  line-height: 1.45;
}

.members-settings-panel .toggle-switch {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  flex: 0 0 58px;
  height: 30px;
}

.members-settings-panel .toggle-switch .slider {
  inset: 0 4px;
}

.members-settings-panel .toggle-switch input:checked + .slider::before {
  transform: translateX(21px);
}

.members-list {
  display: grid;
  gap: 1.15rem;
  width: max(0px, calc(100% - var(--members-frame-gap)));
  max-width: max(0px, calc(100% - var(--members-frame-gap)));
  margin-left: auto;
  margin-right: auto;
}

body.public-shell-page .members-page {
  max-width: none;
  width: calc(100% + 2.7rem);
  margin-left: -1.35rem;
  margin-right: -1.35rem;
  justify-self: stretch;
}

.member-card {
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 241, 214, 0.11), transparent 16%, transparent 78%, rgba(195, 120, 58, 0.09)),
    radial-gradient(circle at top right, rgba(244, 198, 120, 0.22), transparent 34%),
    radial-gradient(circle at left center, rgba(163, 88, 40, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 214, 150, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(43, 30, 22, 0.98), rgba(19, 13, 10, 0.99));
  border: 1px solid rgba(241, 214, 169, 0.28);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 240, 214, 0.1),
    inset 0 -1px 0 rgba(103, 61, 30, 0.28);
  overflow: hidden;
}

.member-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 239, 210, 0.34), transparent 24%, transparent 76%, rgba(216, 143, 77, 0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.member-card .avatar-wrapper {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 248, 226, 0.2), rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle at 50% 50%, rgba(122, 70, 34, 0.2), transparent 74%);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(236, 201, 140, 0.1);
}

.member-card .avatar-wrapper::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 228, 176, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 235, 0.12),
    0 0 16px rgba(244, 198, 120, 0.08);
  pointer-events: none;
}

.member-card .avatar-wrapper img.avatar-frame {
  transform: scale(1.16);
}

.member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "avatar head"
    "avatar meta-primary"
    "avatar meta-secondary";
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: center;
}

.member-card .avatar-wrapper {
  grid-area: avatar;
}

.member-card .member-head {
  grid-area: head;
  min-width: 0;
}

.member-card .member-meta-primary {
  grid-area: meta-primary;
}

.member-card .member-meta-secondary {
  grid-area: meta-secondary;
}

.member-card .top-row {
  gap: 0.65rem;
  margin-bottom: 0.1rem;
  flex-wrap: wrap;
}

.member-card .member-head .member-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.015em;
  color: #fff4de;
  text-shadow: 0 2px 16px rgba(244, 198, 120, 0.18);
}

.member-card .member-head .member-name.rank-guild-master {
  color: #a64c86;
}

.member-card .member-head .member-name.rank-guild-deputy {
  color: #276992;
}

.member-card .member-head .member-name.rank-exemplar {
  color: #cf5b2c;
}

.member-card .member-server,
.member-card .member-since-line,
.member-card .member-id-top {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(241, 214, 169, 0.18);
  color: #efd8b3;
  line-height: 1.45;
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 218, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.08);
}

.member-card .member-meta-primary,
.member-card .member-meta-secondary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.member-card .member-meta-primary .member-server {
  order: 1;
}

.member-card .member-meta-primary .member-id-top {
  order: 2;
  margin-left: auto;
}

.member-card .member-meta-secondary .member-id-top--desktop {
  order: 2;
  margin-left: auto;
}

.member-card .member-id-top.member-id-top--mobile {
  display: none;
}

.member-card .gender-icon,
.member-card .medal-icon {
  width: 24px;
  height: 24px;
}

.member-card.rank-card-guild-master {
  border-color: rgba(221, 154, 192, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 221, 244, 0.11), transparent 22%, transparent 82%, rgba(255, 220, 160, 0.05)),
    radial-gradient(circle at top right, rgba(166, 76, 134, 0.26), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 206, 233, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(43, 27, 37, 0.98), rgba(19, 13, 10, 0.99));
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 231, 247, 0.12);
}

.member-card.rank-card-guild-deputy {
  border-color: rgba(154, 205, 240, 0.4);
  background:
    linear-gradient(135deg, rgba(214, 241, 255, 0.1), transparent 22%, transparent 82%, rgba(255, 220, 160, 0.04)),
    radial-gradient(circle at top right, rgba(39, 105, 146, 0.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(164, 220, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(24, 34, 42, 0.98), rgba(19, 13, 10, 0.99));
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(222, 246, 255, 0.1);
}

.member-card.rank-card-exemplar {
  border-color: rgba(245, 180, 124, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 230, 196, 0.12), transparent 22%, transparent 82%, rgba(255, 220, 160, 0.05)),
    radial-gradient(circle at top right, rgba(207, 91, 44, 0.28), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 213, 150, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(51, 30, 20, 0.98), rgba(19, 13, 10, 0.99));
}

.member-card img.rank-icon {
  top: 0.15rem;
  right: 2.25rem;
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
}

.member-card .avatar-wrapper .rank-plate-wrapper {
  bottom: -31px;
  transform: translateX(-50%) scale(1.22);
  transform-origin: center center;
}

.member-card .lang-flag {
  top: 0.5rem;
  right: 0.7rem;
  width: 26px;
  height: 17px;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 198, 0.28);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.member-card .member-id-top {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.members-page .members-toolbar.members-sticky {
  z-index: auto;
}

.members-page .members-toolbar.members-sticky.is-stuck {
  width: 100%;
  z-index: 920;
}

.members-sticky-toolbar-host {
  position: fixed;
  top: var(--members-sticky-toolbar-top, var(--nav-h));
  right: var(--members-sticky-toolbar-right, 0px);
  width: var(--members-sticky-toolbar-width, max-content);
  max-width: calc(100vw - 1rem);
  padding: 0.75rem;
  border-radius: 20px;
  background: rgba(18, 13, 10, 0.96);
  border: 1px solid rgba(228, 192, 132, 0.16);
  box-shadow: var(--shadow-soft);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 35;
}

.members-sticky-toolbar-host.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.members-sticky-toolbar-host .members-toolbar {
  width: 100%;
  margin: 0;
}

.members-toolbar-placeholder {
  visibility: hidden;
  pointer-events: none;
  flex: 0 0 auto;
}

.members-search-wrap {
  display: inline-flex;
  align-items: center;
  width: min(100%, clamp(280px, 28vw, 320px));
  max-width: none;
  padding: 0 0.95rem;
  min-height: 48px;
  border-radius: 16px;
  background: rgba(28, 20, 15, 0.92);
  border: 1px solid rgba(228, 192, 132, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
}

.members-search-icon {
  margin-right: 0.65rem;
  color: #d8bf97;
  font-size: 1rem;
  flex: 0 0 auto;
}

@media (max-width: 860px) {
  .members-page-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .members-toolbar {
    width: 100%;
    justify-content: stretch;
    justify-self: stretch;
  }

  .members-search-panel {
    width: 100%;
    justify-self: stretch;
  }

  .members-search-wrap {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .members-page {
    padding: 0;
    --members-frame-gap: 0px;
  }

  body.public-shell-page .members-page {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .members-shell {
    padding-bottom: 0;
  }

  .members-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .members-search-panel,
  .members-search-wrap {
    width: 100%;
    max-width: none;
  }

  .members-settings-anchor {
    display: block;
    width: 46px;
    flex: 0 0 46px;
    justify-self: end;
  }

  .members-settings-toggle {
    width: 46px;
    height: 46px;
  }

  .members-toolbar.members-sticky,
  .members-toolbar.members-sticky.is-stuck {
    position: static;
    top: auto;
    z-index: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .members-sticky-toolbar-host,
  .members-sticky-toolbar-host.is-active {
    max-width: calc(100vw - 1rem);
    padding: 0;
  }

  .members-settings-panel,
  .members-settings-panel.members-settings-panel--overlay {
    width: var(--public-mobile-dialog-width, min(272px, calc(100vw - 1.5rem)));
    min-width: var(--public-mobile-dialog-width, min(272px, calc(100vw - 1.5rem)));
    max-width: var(--public-mobile-dialog-width, min(272px, calc(100vw - 1.5rem)));
    max-height: var(--public-mobile-dialog-max-height, min(520px, calc(100dvh - 1.5rem)));
    padding: var(--public-mobile-dialog-padding, 0.85rem);
    border-radius: var(--public-mobile-dialog-radius, 20px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .member-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "avatar head"
      "meta-primary meta-primary"
      "meta-secondary meta-secondary";
    align-items: start;
    gap: 0.9rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    row-gap: 0.6rem;
  }

  .member-card .avatar-wrapper .rank-plate-wrapper {
    bottom: -26px;
    transform: translateX(-50%) scale(1.18);
  }

  .member-card .member-head {
    align-self: end;
    min-height: 74px;
    padding-top: 1.55rem;
  }

  .member-card .top-row {
    align-items: center;
    margin-bottom: 0;
  }

  .member-card .member-meta-primary,
  .member-card .member-meta-secondary {
    width: 100%;
  }

  .member-card .member-meta-primary {
    gap: 0.5rem;
  }

  .member-card .member-meta-primary .member-id-top {
    order: 1;
    margin-left: 0;
  }

  .member-card .member-meta-primary .member-server {
    order: 2;
  }

  .member-card .member-id-top--desktop {
    display: none;
  }

  .member-card .member-id-top--mobile {
    display: inline-flex;
  }

  .member-card .member-id-top.member-id-top--mobile {
    display: inline-flex;
  }

  .member-card .member-server,
  .member-card .member-since-line,
  .member-card .member-id-top {
    width: fit-content;
    max-width: 100%;
    border-radius: 18px;
  }

  .member-card .member-since-line {
    width: auto;
  }

  .member-card img.rank-icon {
    right: 2.85rem;
  }

  .member-card .lang-flag {
    right: 0.95rem;
  }
}

@media (max-width: 430px) {
  .members-page-header {
    gap: 0.85rem;
  }

  .members-header__copy {
    gap: 0.6rem;
  }

  .members-search-wrap {
    min-height: 48px;
    padding: 0 0.85rem;
  }

  .member-card {
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 24px;
  }

  .member-card .avatar-wrapper {
    width: 74px;
    height: 74px;
  }

  .member-card .member-head .member-name {
    font-size: 1.12rem;
  }

  .member-card .member-head {
    min-height: 74px;
    padding-top: 1.35rem;
  }

  .member-card .member-server,
  .member-card .member-since-line,
  .member-card .member-id-top {
    font-size: 0.78rem;
  }

  .member-card img.rank-icon {
    right: 2.6rem;
    width: 42px;
    height: 42px;
  }

  .member-card .lang-flag {
    right: 0.88rem;
  }
}

@media (max-width: 374px) {
  .member-card {
    padding: 0.9rem;
  }

  .member-card .avatar-wrapper {
    width: 68px;
    height: 68px;
  }

  .member-card .member-head {
    min-height: 68px;
    padding-top: 1.2rem;
  }
}
