/* Original CONON91 emblems. Rank metals stay reserved for sporting results. */
.identity-avatar {
  --identity-light: #d8e1ec;
  --identity-color: #7e8da4;
  --identity-deep: #303c51;
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  isolation: isolate;
  background: linear-gradient(
    145deg,
    #d7e8ff55,
    #d7e8ff08 35%,
    #080b1680 72%,
    #c3d5f544
  );
  padding: 2px;
  vertical-align: middle;
  box-shadow: 0 3px 9px #0004;
}
.identity-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 10%,
    var(--identity-deep),
    #101322 82%
  );
}
.identity-art svg {
  width: 92%;
  height: 92%;
  filter: drop-shadow(0 3px 3px #0009);
}
.identity-avatar .emblem-orbit {
  stroke: var(--identity-color);
  stroke-width: 1;
  opacity: 0.45;
}
.identity-avatar .emblem-orbit-inner {
  stroke: var(--identity-color);
  stroke-width: 0.6;
  opacity: 0.23;
}
.identity-avatar .emblem-base {
  fill: var(--identity-color);
}
.identity-avatar .emblem-face {
  fill: var(--identity-light);
}
.identity-avatar .emblem-dark {
  fill: #101322;
}
.identity-avatar .emblem-stroke {
  stroke: var(--identity-light);
  stroke-width: 2;
  stroke-linecap: round;
}
.identity-member {
  background: linear-gradient(
    145deg,
    var(--identity-light),
    var(--identity-color) 25%,
    #191b2b 58%,
    var(--identity-color)
  );
  box-shadow:
    0 3px 12px #0006,
    0 0 16px color-mix(in srgb, var(--identity-color) 10%, transparent);
}
.identity-sentinel {
  --identity-light: #fff0c4;
  --identity-color: #e6ac55;
  --identity-deep: #624730;
}
.identity-raven {
  --identity-light: #e4d8ff;
  --identity-color: #ac88f3;
  --identity-deep: #453769;
}
.identity-viper {
  --identity-light: #d8ffe4;
  --identity-color: #68d9a1;
  --identity-deep: #244a44;
}
.identity-ronin {
  --identity-light: #ffe2d9;
  --identity-color: #fa8877;
  --identity-deep: #69333e;
}
.identity-spectre {
  --identity-light: #d6f6ff;
  --identity-color: #78c9ef;
  --identity-deep: #29475c;
}
.identity-nova {
  --identity-light: #ffe3f4;
  --identity-color: #ed8cc4;
  --identity-deep: #63355e;
}
.identity-seal {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 17px;
  padding: 1px 3px;
  border: 1px solid var(--identity-light);
  border-radius: 5px;
  background: var(--identity-color);
  color: #161622;
  font:
    800 9px/12px Manrope,
    sans-serif;
  text-align: center;
  box-shadow: 0 2px 4px #0006;
}
.identity-photo {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: cover;
  border-radius: 10px;
}
.identity-small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.identity-small .identity-seal {
  font-size: 7px;
  line-height: 9px;
  min-width: 13px;
  padding: 0 2px;
  border-radius: 3px;
}
.identity-medium {
  width: 64px;
  height: 64px;
  border-radius: 17px;
}
.identity-large {
  width: 112px;
  height: 112px;
  border-radius: 26px;
}
.identity-hero {
  width: 154px;
  height: 154px;
  border-radius: 32px;
}
.identity-large .identity-seal,
.identity-hero .identity-seal {
  font-size: 16px;
  line-height: 22px;
  min-width: 28px;
  border-radius: 7px;
  right: 0;
  bottom: 0;
}
.identity-large .identity-photo,
.identity-hero .identity-photo {
  border-radius: 24px;
}
.identity-kicker {
  display: block;
  color: #bcadb9;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.15em;
}
.redline-site .identity-menu {
  max-width: 205px;
}
.redline-site .identity-menu > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid #654455;
  border-radius: 12px;
  background: linear-gradient(115deg, #352435, #211820);
  min-height: 48px;
}
.redline-site .identity-menu > summary:hover,
.redline-site .identity-menu[open] > summary {
  border-color: #b37c94;
}
.account-trigger-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}
.account-chevron {
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s;
}
.identity-menu[open] .account-chevron {
  transform: rotate(180deg);
}
.account-unread {
  padding: 2px 5px;
  background: #f95564;
  color: #180d14;
  border-radius: 5px;
  font:
    800 10px/1.5 Manrope,
    sans-serif;
}
.identity-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 326px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  z-index: 100;
  padding: 8px;
  border: 1px solid #654458;
  border-radius: 17px;
  background: #1b1520;
  box-shadow:
    0 25px 60px #0009,
    0 1px 0 #ffffff0a inset;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 12px 22px;
  border-bottom: 1px solid #ffffff0c;
  background: radial-gradient(ellipse at 20% 0%, #5f345b44, transparent 80%);
}
.account-identity > div {
  min-width: 0;
}
.account-identity strong {
  display: block;
  font-size: 18px;
  color: #fff2f7;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.account-identity small {
  display: block;
  font-size: 11px;
  color: #b7a9b6;
  margin-top: 3px;
}
.redline-site .header .identity-menu-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  margin: 7px 0;
  padding: 0;
  width: auto;
  position: static;
  background: none;
  border: 0;
}
.redline-site .header .identity-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  color: #f4eaf1;
  white-space: normal;
  min-height: 44px;
}
.redline-site .header .identity-menu-links a::after {
  display: none;
}
.redline-site .header .identity-menu-links a:hover {
  background: #ffffff09;
  color: #fff;
}
.identity-menu-links small {
  display: block;
  color: #a898a9;
  font-size: 10px;
  font-weight: 500;
  margin-top: 1px;
}
.identity-menu-links b {
  margin-left: auto;
  color: #a893a6;
  font-size: 13px;
  font-weight: 500;
}
.identity-menu-links em {
  margin-left: auto;
  border-radius: 5px;
  padding: 2px 6px;
  background: #693c51;
  font-style: normal;
}
.account-link-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 30px;
  font-size: 22px;
  font-weight: 500;
  color: #c3a8c9;
}
.account-menu-footer {
  border-top: 1px solid #ffffff0c;
  padding: 7px 5px 0;
}
.account-menu-footer button {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px;
  color: #bfaebb;
  font:
    600 11px/1.5 Manrope,
    sans-serif;
  cursor: pointer;
  border-radius: 7px;
  text-align: left;
}
.account-menu-footer .account-follow {
  justify-content: flex-start;
}
.account-menu-footer button:hover {
  background: #ffffff08;
  color: #fff;
}
.account-menu-footer .account-logout {
  color: #e5a5ac;
}
.account-welcome {
  padding: 20px 15px 12px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 15%, #65354e44, transparent 80%);
}
.account-welcome h2 {
  font-family: Manrope, sans-serif;
  font-size: 24px;
  letter-spacing: -0.05em;
  margin: 14px 0 7px;
}
.account-welcome p {
  color: #c0b0c0;
  font-size: 12px;
  line-height: 1.8;
}
.identity-lineup {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.account-welcome .identity-lineup {
  justify-content: center;
  gap: 9px;
  padding: 14px 0 25px;
}
.account-welcome .identity-lineup > :nth-child(2) {
  transform: translateY(-6px);
}
.account-welcome .button {
  width: 100%;
  justify-content: center;
}
.account-signin {
  display: block;
  padding: 16px 0 4px;
  font-size: 12px;
  color: #d4c3d1;
}
.identity-invite {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 18px 22px;
  border: 1px solid #614256;
  border-radius: 10px;
  background: linear-gradient(110deg, #382135, #251822 70%);
  margin: 22px 0;
}
.identity-invite .identity-lineup > * + * {
  margin-left: -7px;
}
.identity-invite .identity-lineup > :nth-child(2) {
  transform: translateY(-3px);
  z-index: 1;
}
.identity-invite strong {
  font-size: 13px;
  color: #fcecf5;
  font-weight: 750;
}
.identity-invite p {
  font-size: 11px;
  color: #c7b6c5;
  margin: 5px 0 0;
  line-height: 1.7;
}
.identity-invite > a {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 750;
  color: #ffc1b7;
  min-height: 44px;
}
.podium-player-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.redline-site .wd-podium-card .podium-player-name h3 {
  margin: 0;
}
.profile-heading > .identity-avatar {
  flex-shrink: 0;
}
.profile-editor {
  max-width: 1060px;
}
.avatar-studio {
  border: 1px solid #674459;
  border-radius: 18px;
  background: linear-gradient(140deg, #2d1e2d, #1c1722 60%);
  overflow: hidden;
  margin-bottom: 30px;
  scroll-margin-top: 135px;
}
.avatar-studio-heading {
  padding: 28px 32px 20px;
}
.avatar-studio-heading .identity-kicker {
  color: #d69fae;
}
.avatar-studio-heading h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.055em;
  margin: 9px 0;
}
.avatar-studio-heading p {
  color: #baaabb;
  font-size: 13px;
  margin: 0;
}
.avatar-studio-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  padding: 8px 32px 26px;
}
.avatar-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: 12px;
  padding: 25px 16px 27px;
  min-height: 332px;
  border: 1px solid #614656;
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 50% 25%, #66426855, transparent 64%),
    repeating-linear-gradient(120deg, transparent 0 49px, #ffffff03 50px 51px),
    #211a28;
  text-align: center;
}
.avatar-preview-card [data-avatar-preview] {
  padding: 12px 0 6px;
}
.avatar-preview-card > strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.avatar-preview-card > [data-avatar-preview-name] {
  font-size: 11px;
  color: #edd3e7;
  padding: 4px 12px;
  background: #ffffff09;
  border: 1px solid #ffffff12;
  border-radius: 20px;
}
.avatar-preview-card > small {
  font-size: 10px;
  color: #b19aaf;
}
.avatar-collection {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.avatar-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.avatar-option {
  position: relative;
  cursor: pointer;
  min-width: 0;
}
.avatar-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  padding: 0;
  margin: 0;
}
.avatar-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 15px 7px 12px;
  border: 1px solid #574052;
  border-radius: 12px;
  background: #271d2c;
  min-height: 144px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.avatar-choice > strong {
  font-size: 12px;
  color: #f7eaf5;
}
.avatar-choice > small {
  color: #b29cae;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 400;
}
.avatar-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 17px;
  height: 17px;
  line-height: 17px;
  font-size: 10px;
  color: #21131f;
  background: #edb9d7;
  border-radius: 50%;
  opacity: 0;
}
.avatar-option:hover .avatar-choice {
  background: #34253a;
  border-color: #a07b98;
}
.avatar-option > input:checked + .avatar-choice {
  background: linear-gradient(140deg, #493147, #2c2030);
  border-color: #d6a7c4;
  box-shadow: 0 0 0 1px #d6a7c42c inset;
}
.avatar-option > input:checked + .avatar-choice .avatar-check {
  opacity: 1;
}
.avatar-option > input:focus-visible + .avatar-choice {
  outline: 2px solid #ffd1b6;
  outline-offset: 3px;
}
.avatar-auto {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #574052;
  border-radius: 10px;
  cursor: pointer;
  color: #e5d4e3;
  font-size: 11px;
}
.avatar-auto input,
.avatar-custom-toggle input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: #d59ac2;
  flex-shrink: 0;
}
.avatar-auto small {
  display: block;
  font-size: 9px;
  color: #b29cae;
  margin-top: 3px;
}
.avatar-auto-sample {
  margin-left: auto;
}
.avatar-custom {
  margin-top: 13px;
  color: #b9a4b5;
  font-size: 11px;
}
.avatar-custom summary {
  cursor: pointer;
  min-height: 32px;
  padding: 8px 0;
}
.avatar-custom label {
  display: block;
  margin: 10px 0;
}
.avatar-custom input[name="avatar"] {
  width: 100%;
  margin-top: 6px;
  font-size: 12px;
}
.avatar-custom .avatar-custom-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.avatar-custom > small {
  display: block;
  line-height: 1.7;
  font-size: 10px;
}
.avatar-sync-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 11px;
  line-height: 1.8;
  color: #bdaabc;
  padding: 0 32px 20px;
  margin: 0;
}
.avatar-sync-note > span {
  color: #d5a5c3;
  font-size: 19px;
  line-height: 1;
}
.avatar-save {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #ffffff0c;
  padding: 18px 32px;
  background: #100e172f;
}
.avatar-save > span {
  color: #b19aa9;
  font-size: 10px;
}
.profile-details {
  max-width: 700px;
}
.profile-details .button {
  justify-self: start;
}
#steam-account {
  scroll-margin-top: 140px;
}
#server-statistics {
  scroll-margin-top: 140px;
}
@media (max-width: 650px) {
  .wd-profile > .identity-avatar {
    width: 64px;
    height: 64px;
    border-radius: 17px;
  }
  .wd-profile > div:nth-child(2) {
    width: calc(100% - 80px);
    min-width: 0;
  }
  .wd-profile .wd-profile-rank {
    margin-left: 80px;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1000px) {
  .avatar-studio-body {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }
  .avatar-studio-body,
  .avatar-studio-heading,
  .avatar-save {
    padding-left: 22px;
    padding-right: 22px;
  }
  .avatar-sync-note {
    padding-left: 22px;
    padding-right: 22px;
  }
}
@media (max-width: 700px) {
  .identity-invite {
    flex-wrap: wrap;
    gap: 10px 15px;
    padding: 16px;
  }
  .identity-invite > div:nth-child(2) {
    flex: 1;
    min-width: 180px;
  }
  .identity-invite > a {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid #ffffff12;
    padding-top: 8px;
  }
  .avatar-studio-body {
    grid-template-columns: 1fr;
  }
  .avatar-preview-card {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 8px 20px;
    text-align: left;
    min-height: 0;
    padding: 20px;
  }
  .avatar-preview-card .identity-kicker {
    grid-column: 2;
    font-size: 8px;
  }
  .avatar-preview-card [data-avatar-preview] {
    grid-column: 1;
    grid-row: 1/5;
    padding: 0;
  }
  .avatar-preview-card .identity-hero {
    width: 105px;
    height: 105px;
    border-radius: 24px;
  }
  .avatar-preview-card > [data-avatar-preview-name] {
    justify-self: start;
  }
  .avatar-preview-card > strong {
    font-size: 18px;
  }
  .avatar-save {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .avatar-save > span {
    text-align: center;
  }
  .avatar-save .button {
    justify-content: center;
  }
  .redline-site .identity-menu {
    max-width: 170px;
  }
}
@media (max-width: 430px) {
  .redline-site .identity-menu {
    max-width: 75px;
  }
  .redline-site .identity-menu > summary {
    padding: 5px;
    gap: 7px;
  }
  .account-trigger-name {
    display: none;
  }
  .account-unread {
    position: absolute;
    top: -4px;
    right: 0;
  }
  .identity-dropdown {
    width: 304px;
    max-width: calc(100vw - 56px);
  }
  .avatar-studio-body,
  .avatar-studio-heading,
  .avatar-save {
    padding-left: 14px;
    padding-right: 14px;
  }
  .avatar-sync-note {
    padding-left: 14px;
    padding-right: 14px;
  }
  .avatar-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .avatar-preview-card {
    padding: 16px 12px;
    gap: 7px 12px;
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .avatar-preview-card .identity-hero {
    width: 84px;
    height: 84px;
  }
  .avatar-preview-card > strong {
    font-size: 16px;
  }
  .avatar-preview-card > small {
    font-size: 9px;
  }
  .podium-player-name {
    gap: 8px;
  }
  .podium-player-name .identity-small {
    width: 28px;
    height: 28px;
  }
  #redline-home .rl-player .identity-small {
    width: 28px;
    height: 28px;
  }
  .identity-large {
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .identity-avatar,
  .avatar-choice,
  .account-chevron {
    transition: none;
  }
}
