/* Team directory sourced from the latest registration sheet. */

.directory {
  overflow: hidden;
  color: #111923;
  background:
    linear-gradient(115deg, transparent 62%, rgba(49, 95, 174, 0.025)),
    #f8f9f7;
}

.directory .section-description {
  color: #5a6670;
}

.directory-platform-row {
  display: flex;
  min-height: 58px;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 18px;
  border: 1px solid rgba(17, 25, 35, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.directory-platform-label {
  display: flex;
  align-items: center;
  padding-left: 28px;
  color: #68747d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.directory-platform-switch {
  display: grid;
  width: 300px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid rgba(17, 25, 35, 0.1);
  border-right: 1px solid rgba(17, 25, 35, 0.1);
}

.directory-platform-switch button {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid rgba(17, 25, 35, 0.1);
  color: #626d76;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.directory-platform-switch button:first-child {
  border-left: 0;
}

.directory-platform-switch button.active {
  color: #fff;
  background: #26313a;
}

.directory-platform-switch small {
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  opacity: 0.68;
}

.directory-platform-switch button:focus:not(:focus-visible) {
  outline: 0;
}

.directory-platform-switch button:focus-visible {
  outline: 1px solid #2b353e;
  outline-offset: -3px;
}

.directory-overview {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(17, 25, 35, 0.14);
  border-right: 1px solid rgba(17, 25, 35, 0.14);
  border-bottom: 1px solid rgba(17, 25, 35, 0.14);
  border-left: 1px solid rgba(17, 25, 35, 0.14);
}

.directory-overview > div {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 92px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-left: 1px solid rgba(17, 25, 35, 0.1);
  text-align: center;
}

.directory-overview > div:first-child {
  border-left: 0;
}

.directory-overview span {
  color: #77828b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.directory-overview strong {
  margin-top: 0;
  color: #17212a;
  font-family: var(--font-english);
  font-size: 32px;
  line-height: 1;
}

.directory-panel {
  margin-top: 36px;
  border: 1px solid rgba(17, 25, 35, 0.13);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(25, 39, 50, 0.06);
}

.directory-toolbar {
  display: flex;
  min-height: 58px;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid rgba(17, 25, 35, 0.13);
}

.directory-filters {
  display: flex;
  flex: 1;
  align-items: stretch;
}

.directory-filters button {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid rgba(17, 25, 35, 0.09);
  color: #59656e;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.directory-filters button::after {
  display: none;
}

.directory-filters button.active {
  color: #1e2a34;
  background: rgba(17, 25, 35, 0.018);
  box-shadow: none;
  font-weight: 700;
}

.directory-filters button:focus:not(:focus-visible),
.directory-toggle:focus:not(:focus-visible) {
  outline: 0;
}

.directory-filters button:focus-visible,
.directory-toggle:focus-visible {
  outline: 1px solid #2b353e;
  outline-offset: -2px;
}

.directory-filters small {
  color: #8b959d;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  transition: color 0.18s ease;
}

.directory-filters button.active small {
  color: #59656e;
  font-weight: 600;
}

.directory-filters button:disabled {
  color: #a5adb3;
  background: transparent;
  cursor: default;
}

.directory-filters button:disabled::after {
  display: none;
}

.directory-status {
  display: flex;
  width: 150px;
  flex: 0 0 150px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-left: 1px solid rgba(17, 25, 35, 0.09);
  color: #7b868f;
  font-size: 10px;
  white-space: nowrap;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.directory-member {
  position: relative;
  z-index: 0;
  display: grid;
  overflow: hidden;
  min-width: 0;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 17px;
  border-right: 1px solid rgba(17, 25, 35, 0.085);
  border-bottom: 1px solid rgba(17, 25, 35, 0.085);
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(0) saturate(1);
  transform: translateY(0);
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.directory-member::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.18) 42%,
    rgba(204, 216, 225, 0.2) 100%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.directory-member > * {
  position: relative;
  z-index: 1;
}

.directory-member:nth-child(4n) {
  border-right: 0;
}

.directory-grid.is-filtered {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory-grid.is-filtered .directory-member:nth-child(4n) {
  border-right: 1px solid rgba(17, 25, 35, 0.085);
}

.directory-grid.is-filtered .directory-member:nth-child(3n) {
  border-right: 0;
}

.directory-member strong {
  overflow: hidden;
  color: #25313a;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-member-role {
  color: #68747d;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.18s ease;
}

@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  .directory-platform-switch button:not(.active):hover {
    color: #202b34;
    background: rgba(17, 25, 35, 0.035);
  }

  .directory-filters button:hover {
    color: #1e2a34;
    background: rgba(17, 25, 35, 0.018);
  }

  .directory-filters button.active:hover {
    color: #1e2a34;
    background: rgba(17, 25, 35, 0.018);
  }

  .directory-filters button:hover small {
    color: #59656e;
  }

  .directory-member:hover {
    z-index: 2;
    border-color: rgba(255, 255, 255, 0.88);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(226, 234, 240, 0.58));
    backdrop-filter: blur(20px) saturate(1.35) contrast(1.04);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 1px 0 0 rgba(255, 255, 255, 0.62),
      inset 0 -1px 0 rgba(112, 128, 140, 0.16),
      0 14px 34px rgba(21, 33, 43, 0.17),
      0 3px 10px rgba(21, 33, 43, 0.08);
    transform: translateY(-2px) scale(1.012);
  }

  .directory-member:hover::before {
    opacity: 1;
  }

  .directory-member:hover strong {
    color: #111923;
  }

  .directory-member:hover .directory-member-role {
    color: #3f4b54;
  }
}

.directory-toggle {
  display: none;
}

.directory-toggle[hidden] {
  display: none !important;
}

@media (min-width: 721px) and (max-width: 1100px) {
  .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directory-member:nth-child(4n) {
    border-right: 1px solid rgba(17, 25, 35, 0.085);
  }

  .directory-member:nth-child(3n) {
    border-right: 0;
  }

  .directory-filters button {
    min-width: 78px;
    padding-inline: 12px;
  }
}

@media (max-width: 720px) {
  .directory {
    padding-top: 56px;
    padding-bottom: 54px;
    background: #f8f9f7;
  }

  .directory .section-heading {
    margin-bottom: 30px;
  }

  .directory .section-heading-row {
    gap: 20px;
  }

  .directory .section-heading h2 {
    font-size: 36px;
    line-height: 1.12;
  }

  .directory .section-description {
    padding-top: 14px;
    border-top: 1px solid rgba(17, 25, 35, 0.12);
    font-size: 12px;
    line-height: 1.72;
  }

  .directory-platform-row {
    box-sizing: border-box;
    min-height: 52px;
    margin-bottom: 14px;
    padding-left: 0;
    padding-right: 0;
    border-radius: 14px;
  }

  .directory-platform-label {
    box-sizing: border-box;
    align-self: stretch;
    min-height: 100%;
    padding-left: 12px;
    border-left: 1px solid rgba(28, 45, 55, 0.16);
    font-size: 9px;
  }

  .directory-platform-switch {
    align-self: stretch;
    min-width: 0;
    width: min(72%, 236px);
  }

  .directory-platform-switch button {
    height: 100%;
    gap: 7px;
    padding: 0 10px;
    font-size: 11px;
  }

  .directory-overview > div {
    grid-template-columns: 1fr;
    min-height: 72px;
    justify-items: center;
    gap: 5px;
    padding: 11px 12px;
    text-align: center;
  }

  .directory-overview > div:first-child {
    padding-left: 12px;
  }

  .directory-overview span {
    font-size: 9px;
  }

  .directory-overview strong {
    margin-top: 0;
    font-size: 26px;
  }

  .directory-panel {
    margin-top: 24px;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .directory-toolbar {
    display: block;
  }

  .directory-filters {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .directory-filters button {
    grid-column: span 3;
    min-width: 0;
    min-height: 48px;
    gap: 7px;
    padding: 0 6px;
    border-right: 1px solid rgba(17, 25, 35, 0.085);
    border-bottom: 1px solid rgba(17, 25, 35, 0.085);
    font-size: 11px;
  }

  .directory-filters button:nth-child(n + 5) {
    grid-column: span 4;
  }

  .directory-filters button:nth-child(4),
  .directory-filters button:last-child {
    border-right: 0;
  }

  .directory-filters button::after {
    bottom: -1px;
  }

  .directory-filters button.active::after {
    right: 28%;
    left: 28%;
  }

  .directory-status {
    width: auto;
    flex: none;
    min-height: 40px;
    justify-content: flex-end;
    padding: 0 14px;
    border-left: 0;
    font-size: 9px;
  }

  .directory-grid,
  .directory-grid.is-filtered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-member,
  .directory-member:nth-child(3n),
  .directory-member:nth-child(4n) {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 14px;
    border-right: 0;
  }

  .directory-member strong {
    font-size: 13px;
  }

  .directory-toggle {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: 0;
    border-top: 1px solid rgba(17, 25, 35, 0.12);
    color: #28333c;
    background: #f3f5f5;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
  }

  .directory-toggle small {
    color: #7c8790;
    font-size: 9px;
    font-weight: 500;
  }
}

/* Member details and performance rankings. */
.directory-view-switch {
  display: grid;
  min-height: 48px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(17, 25, 35, 0.13);
  background: rgba(238, 242, 243, 0.72);
}

.directory-view-switch button {
  position: relative;
  border: 0;
  border-left: 1px solid rgba(17, 25, 35, 0.09);
  color: #66727b;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
}

.directory-view-switch button:first-child {
  border-left: 0;
}

.directory-view-switch button::after {
  display: none;
}

.directory-view-switch button.active {
  color: #25313a;
  background: rgba(17, 25, 35, 0.018);
  box-shadow: none;
  font-weight: 680;
}

html body .directory-grid .directory-member {
  width: 100%;
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.directory-member-meta {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.directory-member-detail-mark {
  color: #8b959d;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transform: translateX(0);
  transition: color 0.18s ease, transform 0.18s ease;
}

.directory-member:focus:not(:focus-visible),
.directory-ranking-row:focus:not(:focus-visible),
.directory-view-switch button:focus:not(:focus-visible) {
  outline: 0;
}

.directory-member:focus-visible,
.directory-ranking-row:focus-visible,
.directory-view-switch button:focus-visible {
  outline: 2px solid rgba(49, 95, 174, 0.55);
  outline-offset: -2px;
}

.directory-ranking[hidden],
.directory-toolbar[hidden],
.directory-grid[hidden] {
  display: none;
}

.directory-ranking {
  background: rgba(255, 255, 255, 0.5);
}

.directory-ranking-head,
.directory-ranking-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 125px 125px 145px;
  align-items: center;
}

.directory-ranking-head {
  min-height: 38px;
  border-bottom: 1px solid rgba(17, 25, 35, 0.11);
  color: #87919a;
  font-size: 9px;
  font-weight: 700;
}

.directory-ranking-head span,
.directory-ranking-row > * {
  padding-inline: 18px;
}

.directory-ranking-row {
  width: 100%;
  min-height: 68px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 25, 35, 0.085);
  color: #293640;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.directory-ranking-row:last-child {
  border-bottom: 0;
}

.directory-ranking-row:nth-child(2),
.directory-ranking-row:nth-child(3),
.directory-ranking-row:nth-child(4) {
  background: rgba(242, 246, 248, 0.9);
}

.directory-ranking-position,
.directory-ranking-kills,
.directory-ranking-score,
.directory-ranking-winner {
  font-variant-numeric: tabular-nums;
}

.directory-ranking-position {
  color: #73808a;
  font-size: 12px;
}

.directory-ranking-name {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.directory-ranking-name b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-ranking-name small {
  color: #7c8790;
  font-size: 9px;
}

.directory-ranking-kills,
.directory-ranking-score,
.directory-ranking-winner {
  color: #5d6972;
  font-size: 12px;
  font-weight: 700;
}

.directory-ranking-kills.is-primary,
.directory-ranking-score.is-primary,
.directory-ranking-winner.is-primary {
  color: #315fae;
  font-size: 18px;
  font-weight: 750;
}

.directory-ranking-empty {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 8px;
  padding: 28px;
  color: #7d8891;
  text-align: center;
}

.directory-ranking-empty strong {
  color: #36434c;
  font-size: 14px;
}

.directory-ranking-empty span {
  font-size: 10px;
}

@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  .directory-view-switch button:hover {
    color: #25313a;
    background: rgba(17, 25, 35, 0.018);
  }

  .directory-view-switch button.active:hover {
    color: #25313a;
    background: rgba(17, 25, 35, 0.018);
  }

  html body .directory-grid .directory-member:hover .directory-member-detail-mark {
    color: #315fae;
    transform: translateX(2px);
  }

  .directory-ranking-row:hover {
    position: relative;
    z-index: 1;
    background: #fff;
    box-shadow: 0 10px 26px rgba(27, 40, 49, 0.09);
    transform: translateY(-1px);
  }
}

.directory-member-modal {
  position: fixed;
  z-index: 1400;
  display: grid;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  inset: 0;
  place-items: center;
  padding: 32px;
  background: rgba(13, 20, 26, 0.68);
  opacity: 0;
  transition: opacity 0.14s ease, visibility 0.14s ease;
}

.directory-member-modal.open {
  visibility: visible;
  opacity: 1;
}

.directory-member-modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: #f6f8f7;
  box-shadow: 0 34px 90px rgba(4, 10, 15, 0.32);
  transform: translateY(12px) scale(0.99);
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.directory-member-modal.open .directory-member-modal-panel {
  transform: translateY(0) scale(1);
}

.directory-member-modal-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(24, 34, 42, 0.12);
  border-radius: 50%;
  color: #2b3740;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.directory-member-modal-heading {
  padding-right: 58px;
}

.directory-member-modal-heading > span {
  color: #66737d;
  font-size: 10px;
  font-weight: 750;
}

.directory-member-modal-heading h2 {
  margin-top: 7px;
  color: #17232c;
  font-size: clamp(26px, 4vw, 42px);
}

.directory-member-modal-heading p {
  margin: 8px 0 0;
  color: #6f7b84;
  font-size: 11px;
}

.directory-member-modal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
  border-block: 1px solid rgba(20, 31, 40, 0.12);
}

.directory-member-modal-stats > div {
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 7px;
  padding: 18px 24px;
  border-left: 1px solid rgba(20, 31, 40, 0.1);
}

.directory-member-modal-stats > div:first-child {
  border-left: 0;
}

.directory-member-modal-stats span {
  color: #78848d;
  font-size: 9px;
  font-weight: 700;
}

.directory-member-modal-stats strong {
  color: #1c2932;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.directory-member-modal-stats > div:first-child strong {
  color: #315fae;
}

.directory-member-modal-stats > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 0 0;
  color: #89939a;
  font-size: 9px;
  text-align: right;
}

.directory-member-modal-figure {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1280 / 569;
  margin: 24px 0 0;
  border: 1px solid rgba(20, 31, 40, 0.13);
  border-radius: 8px;
  background: #101820;
}

.directory-member-modal-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.directory-member-modal-figure.is-loaded img {
  opacity: 1;
}

.directory-member-modal-figure figcaption {
  position: absolute;
  display: grid;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  inset: 0;
  place-items: center;
}

.directory-member-modal-figure.is-loading figcaption::before {
  position: absolute;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.12) 46%, transparent 72%);
  content: "";
  inset: 0;
  animation: directoryScreenshotLoading 1.1s linear infinite;
  transform: translateX(-100%);
}

.directory-member-modal-figure.is-loaded figcaption {
  display: none;
}

.directory-member-modal-figure.is-error {
  background: #1c2630;
}

@keyframes directoryScreenshotLoading {
  to {
    transform: translateX(100%);
  }
}

.directory-member-modal-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  margin: 26px 0 0;
  border-block: 1px solid rgba(20, 31, 40, 0.11);
  color: #78848d;
  font-size: 12px;
}

.directory-member-modal-empty[hidden],
.directory-member-modal-figure[hidden] {
  display: none;
}

.directory-member-modal-bio {
  margin-top: 22px;
  padding: 18px 0;
  border-block: 1px solid rgba(20, 31, 40, 0.11);
}

.directory-member-modal-bio[hidden] {
  display: none;
}

.directory-member-modal-bio span {
  color: #78848d;
  font-size: 9px;
  font-weight: 750;
}

.directory-member-modal-bio p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #2d3942;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.directory-member-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 22px;
}

.directory-member-modal-actions small {
  color: #7b878f;
  font-size: 9px;
}

.directory-member-submit-trigger,
.member-submission-footer button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #25333d;
  border-radius: 6px;
  color: #fff;
  background: #25333d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.member-submission-modal {
  position: fixed;
  z-index: 1450;
  display: grid;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  inset: 0;
  place-items: center;
  padding: 32px;
  background: rgba(13, 20, 26, 0.7);
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.member-submission-modal.open {
  visibility: visible;
  opacity: 1;
}

.member-submission-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: #f6f8f7;
  box-shadow: 0 34px 90px rgba(4, 10, 15, 0.32);
  transform: translateY(12px) scale(0.99);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.member-submission-modal.open .member-submission-panel {
  transform: translateY(0) scale(1);
}

.member-submission-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(24, 34, 42, 0.12);
  border-radius: 50%;
  color: #2b3740;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.member-submission-heading {
  padding-right: 58px;
}

.member-submission-heading > span,
.member-submission-section-heading > div > span {
  color: #68757e;
  font-size: 9px;
  font-weight: 750;
}

.member-submission-heading h2 {
  margin: 7px 0 0;
  color: #17232c;
  font-size: clamp(26px, 4vw, 38px);
}

.member-submission-heading p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #6e7a83;
  font-size: 11px;
  line-height: 1.7;
}

.member-submission-panel form {
  display: grid;
  gap: 24px;
  margin-top: 26px;
}

.member-submission-roles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0;
  border: 1px solid rgba(24, 34, 42, 0.13);
  border-radius: 8px;
}

.member-submission-roles legend {
  padding: 0 8px;
  color: #6f7b84;
  font-size: 9px;
  font-weight: 750;
}

.member-submission-roles label {
  position: relative;
  min-width: 0;
  border-left: 1px solid rgba(24, 34, 42, 0.11);
  cursor: pointer;
}

.member-submission-roles label:first-of-type {
  border-left: 0;
}

.member-submission-roles input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.member-submission-roles span {
  display: grid;
  min-height: 46px;
  place-items: center;
  color: #58656e;
  background: #eef2f3;
  font-size: 10px;
  font-weight: 700;
}

.member-submission-roles input:checked + span {
  color: #fff;
  background: #30445b;
}

.member-submission-roles input:focus-visible + span {
  outline: 2px solid #315fae;
  outline-offset: -3px;
}

.member-submission-bio-field {
  display: grid;
  gap: 8px;
}

.member-submission-bio-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #56636d;
  font-size: 10px;
  font-weight: 750;
}

.member-submission-bio-field small {
  color: #8a949b;
  font-size: 9px;
  font-weight: 600;
}

.member-submission-bio-field textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(24, 34, 42, 0.15);
  border-radius: 6px;
  color: #1f2c35;
  background: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1.7;
}

.member-submission-stats {
  padding-top: 22px;
  border-top: 1px solid rgba(24, 34, 42, 0.12);
}

.member-submission-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.member-submission-section-heading h3 {
  margin: 5px 0 0;
  color: #1d2a33;
  font-size: 18px;
}

.member-submission-section-heading > small {
  color: #879199;
  font-size: 9px;
}

.member-submission-upload-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(230px, 0.8fr);
  gap: 18px;
  margin-top: 16px;
}

.member-submission-preview {
  display: grid;
  overflow: hidden;
  min-height: 190px;
  place-items: center;
  border: 1px solid rgba(24, 34, 42, 0.14);
  border-radius: 8px;
  background: #e8edef;
}

.member-submission-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101820;
}

.member-submission-preview img[hidden] {
  display: none;
}

.member-submission-preview > span {
  color: #7b878f;
  font-size: 10px;
}

.member-submission-preview.is-template {
  position: relative;
  background: #101820;
}

.member-submission-preview.is-template img {
  filter: brightness(0.82);
}

.member-submission-preview.is-template > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: #fff;
  background: rgba(10, 18, 24, 0.78);
  font-size: 9px;
  font-weight: 700;
}

.member-submission-upload-actions {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.member-submission-file-picker {
  display: grid;
  gap: 8px;
  color: #56636d;
  font-size: 10px;
  font-weight: 750;
}

.member-submission-file-picker input {
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid rgba(24, 34, 42, 0.14);
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
}

#memberSubmissionOcrStatus {
  min-height: 34px;
  margin: 0;
  color: #748089;
  font-size: 10px;
  line-height: 1.65;
}

#memberSubmissionOcrStatus.is-error,
#memberSubmissionNotice:not(.is-success) {
  color: #9b3737;
}

.member-submission-recognized {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(24, 34, 42, 0.12);
  border-radius: 6px;
}

.member-submission-recognized[hidden] {
  display: none;
}

.member-submission-recognized > label {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-left: 1px solid rgba(24, 34, 42, 0.1);
}

.member-submission-recognized > label:first-child {
  border-left: 0;
}

.member-submission-recognized span {
  color: #7a858d;
  font-size: 8px;
}

.member-submission-recognized input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #26333c;
  background: transparent;
  font-size: 20px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.member-submission-recognized input::placeholder {
  color: #9ca5ab;
  font-size: 9px;
  font-weight: 650;
}

.member-submission-recognized input:focus {
  box-shadow: inset 0 -2px 0 #54749b;
}

.member-submission-manual-hint {
  color: #7a858d;
  font-size: 9px;
  line-height: 1.55;
}

.member-submission-footer {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(24, 34, 42, 0.12);
}

#memberSubmissionNotice {
  margin: 0;
  color: #68757e;
  font-size: 10px;
  line-height: 1.6;
}

#memberSubmissionNotice.is-success {
  color: #2c704e;
}

.member-submission-footer button:disabled {
  cursor: wait;
  opacity: 0.55;
}

@media (max-width: 720px) {
  .directory-view-switch {
    min-height: 46px;
  }

  .directory-view-switch button {
    padding-inline: 4px;
    font-size: 9px;
  }

  .directory-ranking-head,
  .directory-ranking-row {
    grid-template-columns: 36px minmax(0, 1fr) 52px 58px 68px;
  }

  .directory-ranking-head span,
  .directory-ranking-row > * {
    padding-inline: 7px;
  }

  .directory-ranking-head {
    font-size: 8px;
  }

  .directory-ranking-row {
    min-height: 62px;
  }

  .directory-ranking-position {
    font-size: 10px;
  }

  .directory-ranking-name b {
    font-size: 11px;
  }

  .directory-ranking-name small {
    font-size: 8px;
  }

  .directory-ranking-kills,
  .directory-ranking-score,
  .directory-ranking-winner {
    font-size: 10px;
  }

  .directory-ranking-kills.is-primary,
  .directory-ranking-score.is-primary,
  .directory-ranking-winner.is-primary {
    font-size: 15px;
  }

  .directory-member-modal {
    display: block;
    padding: 0;
    background: #f6f8f7;
  }

  .directory-member-modal-panel {
    width: 100%;
    min-height: 100dvh;
    max-height: none;
    padding: 72px 16px 28px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(18px);
  }

  .directory-member-modal-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
  }

  .directory-member-modal-heading {
    padding-right: 50px;
  }

  .directory-member-modal-heading h2 {
    font-size: 28px;
  }

  .directory-member-modal-stats {
    margin-top: 22px;
  }

  .directory-member-modal-stats > div {
    min-height: 88px;
    justify-items: center;
    padding: 14px 10px;
    text-align: center;
  }

  .directory-member-modal-stats strong {
    font-size: 24px;
  }

  .directory-member-modal-figure {
    margin-top: 18px;
    border-radius: 6px;
  }

  .directory-member-modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .directory-member-submit-trigger {
    width: 100%;
  }

  .member-submission-modal {
    display: block;
    padding: 0;
    background: #f6f8f7;
  }

  .member-submission-panel {
    width: 100%;
    min-height: 100dvh;
    max-height: none;
    padding: 72px 16px calc(28px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(18px);
  }

  .member-submission-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
  }

  .member-submission-heading {
    padding-right: 50px;
  }

  .member-submission-heading h2 {
    font-size: 28px;
  }

  .member-submission-roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-submission-roles span {
    min-height: 44px;
    font-size: 9px;
  }

  .member-submission-upload-grid {
    grid-template-columns: 1fr;
  }

  .member-submission-preview {
    min-height: 150px;
  }

  .member-submission-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .member-submission-footer button {
    width: 100%;
  }

  html body .directory-grid .directory-member {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .directory-member-meta {
    gap: 5px;
  }

  .directory-member-detail-mark {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .directory-member-modal,
  .directory-member-modal-panel,
  .directory-ranking-row,
  .directory-member-detail-mark {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .directory-filters button::after {
    transition: none;
  }
}

/* Match the upcoming-match board and player-card proportions. */
html body .directory-panel {
  overflow: hidden;
  border: 1px solid rgba(16, 23, 34, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 18px 44px rgba(24, 35, 44, 0.08),
    0 2px 8px rgba(24, 35, 44, 0.04);
}

@media (min-width: 721px) {
  html body .directory-grid,
  html body .directory-grid.is-filtered {
    gap: 10px;
    padding: 10px 24px 24px;
    background: #f7f8f7;
  }

  html body .directory-grid .directory-member,
  html body .directory-grid.is-filtered .directory-member,
  html body .directory-grid .directory-member:nth-child(3n),
  html body .directory-grid .directory-member:nth-child(4n),
  html body .directory-grid.is-filtered .directory-member:nth-child(3n),
  html body .directory-grid.is-filtered .directory-member:nth-child(4n) {
    min-height: 64px;
    padding: 0 16px;
    border: 1px solid rgba(16, 23, 34, 0.12);
    border-radius: 6px;
    background: rgba(248, 250, 250, 0.9);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 5px 16px rgba(25, 39, 50, 0.06);
  }

  html body .directory-grid .directory-member::before {
    border-radius: 5px;
  }
}

@media (max-width: 720px) {
  html body .directory-panel {
    border-radius: 14px;
    box-shadow:
      0 18px 44px rgba(24, 35, 44, 0.08),
      0 2px 8px rgba(24, 35, 44, 0.04);
  }

  html body .directory-grid,
  html body .directory-grid.is-filtered {
    gap: 8px;
    padding: 8px 10px 15px;
    background: #f1f3f2;
  }

  html body .directory-grid .directory-member,
  html body .directory-grid .directory-member:nth-child(3n),
  html body .directory-grid .directory-member:nth-child(4n),
  html body .directory-grid.is-filtered .directory-member:nth-child(3n),
  html body .directory-grid.is-filtered .directory-member:nth-child(4n) {
    min-height: 58px;
    padding: 0 14px;
    border: 1px solid rgba(16, 23, 34, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(31, 48, 58, 0.08);
  }
}

/* Keep the mobile directory surface distinct from the warm section background. */
@media (max-width: 720px) {
  html body .directory {
    --directory-mobile-surface: #eef2f3;
  }

  html body .directory-platform-row {
    border-color: rgba(28, 45, 55, 0.12);
    background: var(--directory-mobile-surface);
  }

  html body .directory-panel {
    border-color: rgba(28, 45, 55, 0.13);
    background: var(--directory-mobile-surface);
  }

  html body .directory-grid,
  html body .directory-grid.is-filtered {
    background: var(--directory-mobile-surface);
  }

  html body .directory-toggle {
    background: var(--directory-mobile-surface);
  }

  html body .directory-grid .directory-member,
  html body .directory-grid .directory-member:nth-child(3n),
  html body .directory-grid .directory-member:nth-child(4n),
  html body .directory-grid.is-filtered .directory-member:nth-child(3n),
  html body .directory-grid.is-filtered .directory-member:nth-child(4n) {
    border-color: rgba(28, 45, 55, 0.1);
    background: #fff;
  }
}

/* Mobile role filters stay lightweight: text and counts only, no item boxes. */
@media (max-width: 720px) {
  html body .directory-toolbar {
    min-height: 0;
    padding: 0 10px;
    border-bottom: 0;
    background: transparent;
  }

  html body .directory-filters {
    display: flex;
    overflow: visible;
    align-items: center;
    gap: 0;
    padding: 11px 2px 10px;
  }

  html body .directory-filters button,
  html body .directory-filters button:nth-child(n + 5) {
    grid-column: auto;
    min-width: 0;
    min-height: 34px;
    flex: 1 1 0;
    gap: 4px;
    padding: 0;
    border: 0;
    color: #69747c;
    background: transparent;
    box-shadow: none;
    font-size: 10px;
    font-weight: 650;
  }

  html body .directory-filters button[data-directory-filter="待补充"] {
    display: none;
  }

  html body .directory-filters button::after {
    right: 50%;
    bottom: 2px;
    left: 50%;
    display: block;
    height: 1px;
    background: #25313a;
    content: "";
    opacity: 0;
    transition: right 0.18s ease, left 0.18s ease, opacity 0.18s ease;
  }

  html body .directory-filters button.active {
    color: #202b34;
    background: transparent;
    box-shadow: none;
    font-weight: 800;
  }

  html body .directory-filters button.active::after {
    right: 8px;
    left: 8px;
    opacity: 1;
  }

  html body .directory-filters small,
  html body .directory-filters button.active small {
    color: #8a949b;
    font-size: 8px;
    font-weight: 600;
  }

  html body .directory-filters button:disabled {
    color: #a4abb0;
    background: transparent;
    opacity: 0.62;
  }
}

/* Keep all four mobile member metrics inside one complete ruled panel. */
@media (max-width: 720px) {
  html body .directory-member-modal-stats {
    position: relative;
    border-right: 1px solid rgba(20, 31, 40, 0.12);
    border-left: 1px solid rgba(20, 31, 40, 0.12);
  }

  html body .directory-member-modal-stats::before,
  html body .directory-member-modal-stats::after,
  html body .directory-member-modal-stats > p::before {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(20, 31, 40, 0.1);
    content: "";
    pointer-events: none;
  }

  html body .directory-member-modal-stats::before {
    left: 25%;
  }

  html body .directory-member-modal-stats::after {
    left: 75%;
  }

  html body .directory-member-modal-stats > p::before {
    left: 50%;
  }

  html body .directory-member-modal-stats > div {
    border-left: 0;
  }
}
