/* [project]/public/css/races.css [app-client] (css) */
.factionPage {
  font-family: Special Elite, cursive;
  font-weight: 400;
}

.factionPage .main {
  padding-top: 120px;
}

.factionList .card {
  touch-action: manipulation;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.factionList .card[aria-current="page"] {
  outline-offset: 3px;
  background: #85603244;
  outline: 2px solid #d2af6d;
}

.factionList .card:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #ffe0a0;
}

.faction-crest-name, .faction-nav-label {
  display: none;
}

#faction-selection {
  scroll-margin-top: 80px;
}

#faction-selection:focus-visible {
  outline-offset: 4px;
  outline: 2px solid #edce82;
}

.faction-portraits-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  display: flex;
}

.faction-portraits-heading h3 {
  color: #ecd198;
  margin: 0;
  font: 400 26px / 1.2 Metal Mania, fantasy;
}

.faction-portraits-heading > span {
  color: #c9bda8;
  font-size: 13px;
}

.faction-next-actions {
  border-top: 1px solid #a5854c80;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
}

html:not([lang="en"]) .faction-portraits-heading h3 {
  font-family: var(--locale-ui-font), serif;
}

.factionPage h2 {
  font-family: Metal Mania, serif;
  font-weight: 400;
}

.factionPage strong.frontline {
  font-weight: 400;
}

.racesIntr {
  padding: 150px 0 0;
}

.factionList {
  z-index: 9;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
}

.factionList > ul {
  background: var(--bw1_5);
  border-radius: 30px 0 0 30px;
  padding: 10px;
  overflow-y: auto;
}

.factionList > ul > li {
  width: 100%;
}

.factionList .card {
  border-color: var(--bw1);
  border-style: solid;
  border-width: 0;
  margin: 10px;
  position: relative;
  overflow: hidden;
}

.factionList .card img {
  object-fit: contain;
  width: 100% !important;
  height: 100% !important;
}

.figure {
  z-index: 2;
  width: 80%;
  min-height: 60vh;
  padding: 0 10%;
  position: relative;
}

.figure .portrayal {
  z-index: 1;
  width: 45%;
  position: relative;
}

.figure .information {
  z-index: 2;
  min-width: 0;
  max-width: 50%;
  position: relative;
}

.figure .information > div:not(:last-child) {
  margin: 0 0 50px;
}

.figure .information .name h2 {
  overflow-wrap: anywhere;
  color: var(--bw6);
  opacity: 1;
  margin: 0 0 5px;
  padding: 0 0 5px;
  font-size: 120px;
  line-height: 1.15;
}

.figure .information .name span {
  color: var(--bw6);
  font-size: 26px;
}

.figure .information .infor ul li {
  margin: 0 0 10px;
  padding: 0 0 10px;
}

.figure .information .infor p {
  overflow-wrap: break-word;
  color: var(--bw6);
  opacity: 1;
  font-size: 30px;
  line-height: 1.5;
}

.figure .information .infor .frontline:before {
  content: " ";
  background: var(--bw6);
  width: 40px;
  height: 2px;
  margin: 0 10px 0 0;
}

.figure .information .avatars_NFT ul > li {
  padding: 10px;
  position: relative;
}

.figure .information .avatars_NFT ul > li > div {
  width: 120px;
  height: 120px;
  position: relative;
}

.figure .information .avatars_NFT ul > li > div:after {
  content: " ";
  z-index: 9;
  background-image: url("../media/1.07hp8uzdk_.23.webp");
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 100%;
  position: absolute;
  inset: 5px;
}

.figure .information .avatars_NFT ul > li > div.a {
  border-color: var(--bw1);
  border-style: solid;
  border-width: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
}

.figure .information .avatars_NFT ul > li > div.a img {
  object-fit: cover;
  z-index: 1;
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px) !important;
  height: calc(100% - 20px) !important;
}

.EmblemShading, .foreground {
  left: 0;
  right: 0;
}

.EmblemShading {
  opacity: .2;
  z-index: 0;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: auto 150%;
  height: calc(100vh - 250px);
  top: 0;
}

@media (max-width: 950px) {
  .factionPage .main {
    padding-top: 88px;
    padding-bottom: max(56px, env(safe-area-inset-bottom));
  }

  .factionPage .factionList {
    z-index: 4;
    margin: 0 20px;
    display: block;
    position: relative;
    inset: auto;
  }

  .faction-nav-label {
    color: #edddc4;
    margin: 0 0 8px;
    font-size: 14px;
    display: block;
  }

  .factionPage .factionList > ul {
    box-sizing: border-box;
    scrollbar-color: #987448 #201817;
    background: #201817e8;
    border-radius: 8px 2px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 8px;
    display: grid;
    overflow: visible;
  }

  .factionPage .factionList > ul > li {
    grid-column: span 3;
    width: auto;
    min-width: 0;
  }

  .factionPage .factionList > ul > li[data-power="2"] {
    grid-column: span 4;
  }

  .factionPage .factionList .card {
    box-sizing: border-box;
    color: #ead7b3;
    text-align: center;
    border-radius: 7px 2px;
    gap: 4px;
    width: 100%;
    height: 100%;
    min-height: 76px;
    margin: 0;
    padding: 6px 3px;
  }

  .factionPage .factionList .card img {
    width: 36px !important;
    height: 36px !important;
  }

  .faction-crest-name {
    overflow-wrap: anywhere;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.25;
    display: block;
  }

  .factionPage .racesIntr {
    padding: 16px 20px 0;
  }

  .factionPage .figure {
    flex-direction: column;
    align-items: center;
  }

  .factionPage .figure .portrayal {
    position: relative;
    left: auto;
    right: auto;
    width: 100% !important;
    height: 200px !important;
  }

  .factionPage .figure .portrayal img {
    object-fit: contain;
    object-position: center;
    width: 100% !important;
    height: 100% !important;
  }

  .factionPage .figure .portrayal.f_1, .factionPage .figure .portrayal.f_2 {
    left: auto;
    right: auto;
  }

  .factionPage .figure .information {
    box-sizing: border-box;
    background: #211a17f0;
    border: 1px solid #a5854c80;
    border-radius: 12px 3px;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0;
    overflow: visible;
  }

  .factionPage .figure .information .name h2 {
    color: #ecd198;
    font-size: 36px;
  }

  .factionPage .figure .information .name {
    margin-bottom: 16px;
  }

  .factionPage .figure .information > .infor {
    margin-bottom: 28px;
  }

  .factionPage .figure .information .infor p {
    color: #e5d6c3;
    font-size: 16px;
    line-height: 1.65;
  }

  .faction-next-actions {
    flex-direction: column;
  }

  .factionPage .figure .information .avatars_NFT ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    display: grid;
  }

  .factionPage .figure .information .avatars_NFT ul > li {
    min-width: 0;
    padding: 0;
  }

  .factionPage .figure .information .avatars_NFT ul > li > div.a {
    aspect-ratio: 1;
    width: 100%;
    height: auto;
  }

  .factionPage .foreground {
    opacity: .28;
  }

  .figure {
    width: 100%;
    padding: 0;
  }

  .figure .portrayal {
    width: 100%;
    position: fixed;
  }

  .figure .portrayal.f_1 {
    left: -45%;
  }

  .figure .portrayal.f_2 {
    right: -30%;
  }

  .figure .information {
    max-width: calc(100% - 110px);
    max-height: calc(100dvh - 230px);
    margin: 180px 0 0;
  }

  .figure .information .name h2 {
    font-size: 60px;
  }

  .figure .information .infor p {
    font-size: 20px;
    line-height: 1.5;
  }

  .factionList > ul {
    padding: 0;
  }

  .factionList .card {
    width: 50px;
    height: 50px;
    margin: 8px;
  }

  .figure .information .avatars_NFT ul > li {
    padding: 6px;
  }
}

@media (max-width: 360px) {
  .factionPage .factionList > ul {
    gap: 4px;
    padding: 6px;
  }

  .factionPage .factionList .card {
    padding-inline: 0;
  }

  .factionList .card[aria-current="page"] {
    outline-offset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .factionPage .portrayal {
    animation: none;
  }
}

