.wf-profile {
  --wf-profile-canvas: var(--wf-canvas);
  --wf-profile-ink: var(--wf-text);
  --wf-profile-muted: var(--wf-text-muted);
  --wf-profile-line: var(--wf-border);
  --wf-profile-positive: var(--wf-green);
  --wf-profile-warning: var(--wf-amber);
  --wf-profile-danger: var(--wf-red);

  width: min(100%, 1440px);
  padding: 88px 42px 96px;
  background: var(--wf-profile-canvas);
  letter-spacing: 0;
}

.wf-profile *,
.wf-profile *::before,
.wf-profile *::after {
  letter-spacing: 0;
}

.wf-profile__masthead {
  display: grid;
  min-height: 168px;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 18px 0 30px;
  border-bottom: 1px solid var(--wf-profile-line);
}

.wf-profile__masthead h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.08;
}

.wf-profile__masthead p,
.wf-profile__section-heading p {
  margin: 0;
  color: var(--wf-profile-muted);
  font-size: 13px;
}

.wf-profile__eyebrow,
.wf-profile__card-label {
  color: #747c83;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.wf-profile__notice {
  width: 100%;
  margin-top: 18px;
  padding: 20px 22px;
}

.wf-profile__notice h2 {
  margin-bottom: 5px;
}

.wf-profile__anonymous {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.wf-profile__anonymous h2,
.wf-profile__anonymous p {
  width: 100%;
}

.wf-profile__anonymous a[data-portal-login] {
  margin-top: 0;
}

.wf-profile__authenticated,
[data-profile-root] {
  width: 100%;
}

.wf-profile__overview {
  display: grid;
  gap: 50px;
  width: 100%;
}

.wf-profile__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 16px;
}

.wf-profile__identity-card,
.wf-profile__battle-pass-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 330px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background-color: var(--wf-profile-ink);
}

.wf-profile__identity-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 30px;
}

.wf-profile__portrait {
  display: block;
  width: 112px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #282d31 url("/assets/images/warface/cohtml-profile-menu.png")
    center 16% / 150% auto no-repeat;
}

.wf-profile__identity-copy {
  min-width: 0;
}

.wf-profile__identity-card .wf-profile__card-label,
.wf-profile__battle-pass-card .wf-profile__card-label {
  color: rgba(255, 255, 255, 0.55);
}

.wf-profile__identity-card h2,
.wf-profile__battle-pass-card h2 {
  margin: 7px 0 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.2;
}

.wf-profile .wf-profile__identity-facts {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(88px, 0.7fr);
  gap: 0 20px;
  margin-top: 34px;
}

.wf-profile .wf-profile__identity-facts > div,
.wf-profile__battle-pass-card dl > div {
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.wf-profile .wf-profile__identity-name {
  grid-column: 1 / -1;
  padding-bottom: 16px;
}

.wf-profile__identity-card dt,
.wf-profile__battle-pass-card dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.wf-profile__identity-card dd,
.wf-profile__battle-pass-card dd {
  margin-top: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
}

.wf-profile__identity-card .wf-profile__identity-name dd {
  font-size: 30px;
  line-height: 1.12;
}

.wf-profile__battle-pass-card {
  padding: 30px;
  background-color: #25282b;
  background-image: url("/assets/images/warface/battlepass-season.png");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

.wf-profile__battle-pass-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 140px;
}

.wf-profile__wallet,
.wf-profile__mission-board,
.wf-profile__pve-board {
  padding: 0;
  border: 0;
}

.wf-profile__section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.wf-profile__section-heading h2 {
  margin: 5px 0 0;
  color: var(--wf-profile-ink);
  font-size: 26px;
  line-height: 1.2;
}

.wf-profile .wf-profile__wallet-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.wf-profile .wf-profile__wallet-grid > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(22, 25, 28, 0.06);
  border-radius: 8px;
  background: #ffffff;
}

.wf-profile__wallet-grid > div > span {
  display: block;
  width: 58px;
  height: 58px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.wf-profile__wallet-grid [data-currency-cell="gameCoins"] > span {
  background-image: url("/assets/images/warface/game-money-hi-3d.png");
}

.wf-profile__wallet-grid [data-currency-cell="kCredits"] > span {
  background-image: url("/assets/images/warface/k-credit-hi.png");
}

.wf-profile__wallet-grid [data-currency-cell="crowns"] > span {
  background-image: url("/assets/images/warface/crown-hi.png");
}

.wf-profile__wallet-grid [data-currency-cell="masteryCoins"] > span {
  background-image: url("/assets/images/warface/mastery-coin-hi.png");
}

.wf-profile__wallet-grid [data-currency-cell="blackMarketCoins"] > span {
  background-image: url("/assets/images/warface/black-market-coin-hi.png");
}

.wf-profile__wallet-grid [data-currency-cell="battlePassCoins"] > span {
  background-image: url("/assets/images/warface/battlepass-coin-hi.png");
}

.wf-profile__wallet-grid dt {
  margin: 0;
  color: var(--wf-profile-muted);
  font-size: 10px;
}

.wf-profile__wallet-grid dd {
  margin: 6px 0 0;
  color: var(--wf-profile-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}

.wf-profile__mission-groups {
  display: grid;
  gap: 28px;
}

.wf-profile__mission-groups > section > h3 {
  margin: 0 0 10px;
  color: var(--wf-profile-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.wf-profile__mission-groups ul,
.wf-profile__pve-board ul,
.wf-profile__clan-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wf-profile__mission-groups li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.38fr);
  gap: 6px 24px;
  min-height: 144px;
  align-content: center;
  margin-top: 10px;
  padding: 22px 24px 22px 174px;
  border: 1px solid rgba(22, 25, 28, 0.07);
  border-radius: 8px;
  background-color: #ffffff;
  background-position: left center;
  background-size: 148px 100%;
  background-repeat: no-repeat;
}

.wf-profile__mission-groups [data-list="battlePassMissions"] li {
  background-image: url("/assets/images/warface/contract-ranked.png");
}

.wf-profile__mission-groups [data-list="contractMissions"] li {
  background-image: url("/assets/images/warface/contract-rifleman.png");
}

.wf-profile__mission-groups li > h3 {
  grid-column: 1;
  margin: 0;
  color: var(--wf-profile-ink);
  font-size: 16px;
}

.wf-profile__mission-groups li > p {
  grid-column: 1;
  margin: 0;
  color: var(--wf-profile-muted);
  font-size: 12px;
}

.wf-profile__mission-groups .wf-profile__mission-progress {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  height: 7px;
  margin: 0;
  background: #dfe3e6;
}

.wf-profile__mission-groups .wf-profile__mission-progress-bar {
  background: var(--wf-profile-ink);
}

.wf-profile__support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wf-profile__account-card,
.wf-profile__clan-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid rgba(22, 25, 28, 0.07);
  border-radius: 8px;
  background: #ffffff;
}

.wf-profile__account-card h2,
.wf-profile__clan-card h2 {
  margin: 6px 0 20px;
  font-size: 22px;
}

.wf-profile__account-card dl,
.wf-profile__clan-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0;
}

.wf-profile__account-card dl > div,
.wf-profile__clan-card dl > div {
  padding: 12px 0;
  border-top: 1px solid var(--wf-profile-line);
}

.wf-profile__account-card dd,
.wf-profile__clan-card dd {
  font-family: inherit;
}

.wf-profile__account-card dd[data-tone] {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--wf-profile-line);
  border-radius: 4px;
  color: var(--wf-profile-muted);
  background: #f4f5f6;
  font-size: 12px;
}

.wf-profile__account-card dd[data-tone="positive"] {
  border-color: #a8d8bf;
  color: var(--wf-profile-positive);
  background: #eaf7f0;
}

.wf-profile__account-card dd[data-tone="warning"] {
  border-color: #ead48d;
  color: var(--wf-profile-warning);
  background: #fff6d8;
}

.wf-profile__account-card dd[data-tone="danger"] {
  border-color: #e4afb5;
  color: var(--wf-profile-danger);
  background: #fff0f1;
}

.wf-profile__clan-card h3 {
  margin: 20px 0 6px;
  font-size: 13px;
}

.wf-profile__clan-card li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--wf-profile-line);
  font-size: 12px;
}

.wf-profile__pve-board ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wf-profile__pve-board li {
  display: grid;
  min-height: 250px;
  align-content: end;
  gap: 6px;
  padding: 22px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background-color: #34393d;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

.wf-profile__pve-board li:nth-child(3n + 1) {
  background-image: url("/assets/images/warface/pve-china-expert.png");
}

.wf-profile__pve-board li:nth-child(3n + 2) {
  background-image: url("/assets/images/warface/pve-brazil-expert.png");
}

.wf-profile__pve-board li:nth-child(3n) {
  background-image: url("/assets/images/warface/pve-africa-expert.png");
}

.wf-profile__pve-board li > h3 {
  margin: 0;
  color: #ffffff;
  font-size: 21px;
}

.wf-profile__pve-board li > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

[data-profile-root][data-state="ready"] .wf-profile__overview,
[data-profile-root][data-state="stale"] .wf-profile__overview {
  animation: wf-profile-v7-enter var(--wf-motion-panel) var(--wf-ease-out) both;
}

[data-profile-root][data-state="ready"] .wf-profile__wallet-grid > div,
[data-profile-root][data-state="stale"] .wf-profile__wallet-grid > div {
  animation: wf-profile-v7-enter var(--wf-motion-base) var(--wf-ease-out) both;
}

[data-profile-root][data-state="ready"]
  .wf-profile__wallet-grid
  > div:nth-child(2),
[data-profile-root][data-state="stale"]
  .wf-profile__wallet-grid
  > div:nth-child(2) {
  animation-delay: var(--wf-motion-fast);
}

[data-profile-root][data-state="ready"]
  .wf-profile__wallet-grid
  > div:nth-child(3),
[data-profile-root][data-state="stale"]
  .wf-profile__wallet-grid
  > div:nth-child(3) {
  animation-delay: var(--wf-motion-base);
}

@keyframes wf-profile-v7-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .wf-profile .wf-profile__wallet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wf-profile__mission-groups li {
    grid-template-columns: minmax(0, 1fr);
  }

  .wf-profile__mission-groups .wf-profile__mission-progress {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }
}

@media (max-width: 860px) {
  .wf-profile__hero-grid,
  .wf-profile__support-grid {
    grid-template-columns: 1fr;
  }

  .wf-profile__pve-board ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .wf-profile {
    padding-bottom: 64px;
  }

  .wf-profile__masthead {
    padding-bottom: 24px;
  }

  .wf-profile__overview {
    gap: 38px;
  }

  .wf-profile__identity-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    min-height: 290px;
    padding: 22px;
  }

  .wf-profile__portrait {
    width: 78px;
  }

  .wf-profile .wf-profile__identity-facts,
  .wf-profile__battle-pass-card dl,
  .wf-profile__account-card dl,
  .wf-profile__clan-card dl {
    grid-template-columns: 1fr;
  }

  .wf-profile__battle-pass-card {
    min-height: 280px;
    padding: 22px;
  }

  .wf-profile__battle-pass-card dl {
    gap: 8px;
    margin-top: 106px;
  }

  .wf-profile .wf-profile__wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wf-profile__mission-groups li {
    min-height: 0;
    padding: 132px 18px 18px;
    background-position: top center;
    background-size: 100% 112px;
  }

  .wf-profile__pve-board ul {
    grid-template-columns: 1fr;
  }

  .wf-profile__pve-board li {
    min-height: 230px;
  }
}

@media (max-width: 440px) {
  .wf-profile .wf-profile__wallet-grid {
    grid-template-columns: 1fr;
  }

  .wf-profile__identity-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-profile-root][data-state] .wf-profile__overview,
  [data-profile-root][data-state] .wf-profile__wallet-grid > div,
  .wf-profile__mission-progress-bar {
    animation: none;
    transition: none;
  }
}
