/* New Stats */
.cardholder .stats {
  position: absolute;
  right: 10px;
  top: 30px;
  z-index: 21;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  color: #f0ecf1;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 0.9rem;
}

.grid .cardholder .stats {
  right: 3px;
  top: 3px;
  font-size: 0.8rem;
  line-height: 0.8rem;
}

.cardholder .stats > div {
  border-radius: 3px;
  padding: 5px 5px 5px 5px;
  color: #b4b4b4;
  background-color: rgba(35, 27, 35, 0.9);
  box-shadow: inset 0 0 10px rgba(24, 22, 24, 0.7),
  0 0 10px rgba(15, 13, 15, 0.5);
  border: 1px solid rgba(118, 118, 118, 0.5);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.cardholder .stats .button {
  text-shadow: none;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  border: 1px solid #000000;
  box-shadow: 0 0 10px rgba(15, 13, 15, 0.5);
  cursor: pointer;
  z-index: 30;
}

.cardholder .stats .button > div {
  padding: 5px 5px 5px 5px;
}

.cardholder .stats .button > div:first-child {
  background: linear-gradient(to bottom, #ebddf8, #d6b3d9);
  color: #9a559f;
  flex: 1;
  border-radius: 3px 0 0 3px;
}

.cardholder .stats .button > div:last-child {
  border-radius: 0 3px 3px 0;
}

.cardholder .stats .heal div:last-child {
  color: #fff;
  background: linear-gradient(to bottom, #47bad1, #3794b7);
}

.grid .cardholder .stats > div {
  padding: 3px 3px 3px 3px;
}

.cardholder .stats .rel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
}

.cardholder .stats .rel .name {
  text-align: center;
  padding-right: 1px;
  font-family: monospace;
  font-size: 0.95rem;
  line-height: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.cardholder .stats .rel .name span:first-child {
  font-size: 1.05rem;
}

.cardholder .stats .wounds {
  color: #f97c90;
}

.cardholder .stats .rel .progressbar {
  font-size: 0.66rem;
  line-height: 0.8rem;
  text-shadow: none;
  background-color: #756f75;
  border: 1px solid #000000;
  box-sizing: border-box;
  color: #fbe6d1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  min-height: 5px;
  position: relative;
}

.cardholder .stats .rel .progress {
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom, #c9238d, #9c0d6a);
  border: 1px solid #660845;
  position: absolute;
}

.cardholder .stats .rel .progressbar span {
  z-index: 1;
}

.grid .stats .rel .progressbar .progress {
  border: none;
}

.grid .stats .rel .progressbar span {
  display: none;
}

.grid .cardholder .stats .rel span {
  font-size: 1rem;
}

.cardholder .stats .power {
  color: #928b8b;
}

.cardholder .stats .power.maxed {
  color: #f9dca3;
  background-color: rgba(40, 20, 20, 0.9);
  box-shadow: inset 0 0 10px rgba(25, 0, 0, 0.7),
  0 0 10px rgba(15, 13, 15, 0.5);
  border: 1px solid rgba(157, 106, 99, 0.5);
}

@media only screen and (min-width: 1200px) and (min-height: 900px) {
  .cardholder .stats {
    font-size: 1rem;
  }
  .grid .cardholder .stats {
    font-size: 0.85rem;
  }
  .cardholder .stats .rel .name {
    font-size: 1.1rem;
    line-height: 1.2rem;
  }
  .cardholder .stats .rel .progressbar {
    font-size: 0.8rem;
    line-height: 0.9rem;
  }
}

/* End New Stats */

.info .power {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  /*padding: 7px 13px 6px 13px;*/
  /*border-radius: 1.2rem;*/
  /*background-color: rgba(0, 0, 0, 0.35);*/
  /*margin-top: auto;*/
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: center;*/
  /*height: 1.1rem;*/
  /*font-size: 1.1rem;*/
  /*line-height: 1.1rem;*/
  /*opacity: 1;*/
  /*text-transform: uppercase;*/
  /*font-weight: bold;*/
  /*border: 1px solid rgb(255, 255, 255);*/
  /*box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85),*/
  /*0 0 10px rgba(255, 255, 255, 0.5);*/
}

.info .power span {
  font-weight: bold;
  color: #b4b4b4;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid #444444;
  border-radius: 3px;
  line-height: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 5px 5px 5px;
  white-space: nowrap;
}

.cardholder .rank {
  font-size: 1.33rem;
  font-weight: 600;
}

.fraction {
  padding-top: 3px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 1.15rem;
}

.relation {
  font-size: 1rem;
  line-height: 1.3rem;
  color: rgba(255, 255, 255, 0.80);
  padding: 2px 6px 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: bold;
  font-family: monospace;
  position: relative;
}

.relation-2 {
  color: rgb(231, 251, 168);
}

.relation-3 {
  color: rgb(254, 241, 150);
}

.relation-4 {
  color: rgb(248, 206, 130);
}

.relation-5 {
  color: rgb(248, 150, 117);
}

.relation-6 {
  color: rgb(255, 89, 180);
}

.relation span:first-child {
  font-size: 1.2rem;
  padding-right: 4px;
  color: white;
  text-shadow: none;
}

.relation .progressbar {
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 0.28rem;
  border-radius: 0.14rem;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
}

.relation .progressbar .progress {
  height: 100%;
  border-radius: 0.25rem;
  background-color: #cb228c;
}

/*.relation .progress {*/
/*  position: absolute;*/
/*  top: 0;*/
/*  bottom: 0;*/
/*  background-color: rgba(255, 0, 163, 0.4);*/
/*}*/

/*.relation span {*/
/*  z-index: 1;*/
/*}*/

.rarity {
  padding: 4px 6px 4px 6px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.80);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.80);
  border: 1px solid #fff;
  font-size: 1.1rem;
  text-transform: uppercase;
}

@media only screen and (min-width: 1200px) and (min-height: 900px) {
  .cardholder .rank {
    font-size: 1.38rem;
  }
  .fraction {
    font-size: 1.22rem;
  }
}

@media only screen and (min-width: 1900px) and (min-height: 900px) {
  .cardholder .rank {
    font-size: 1.48rem;
  }
  .fraction {
    font-size: 1.32rem;
  }
  .relation {
    font-size: 1.15rem;
  }
  .rarity {
    font-size: 1.25rem;
  }
}

.rarity-2 {
  background-color: rgba(219, 248, 162, 0.8);
  box-shadow: 0 0 10px rgba(213, 255, 125, 0.8);
  border: 1px solid #b7ff00;
}

.rarity-3 {
  background-color: rgba(154, 217, 255, 0.8);
  box-shadow: 0 0 10px rgba(85, 200, 255, 0.8);
  border: 1px solid #00ddff;
}

.rarity-4 {
  background-color: rgba(173, 102, 255, 0.85);
  box-shadow: 0 0 10px rgba(152, 49, 255, 0.85);
  border: 1px solid #d579ff;
}

.rarity-5 {
  background-color: rgba(255, 152, 89, 0.85);
  box-shadow: 0 0 10px rgba(255, 168, 27, 0.85);
  border: 1px solid #ffda00;
}

.rarity-border-2::before {
  position: absolute;
  content: '';
  top: 17px;
  left: 17px;
  right: 17px;
  bottom: 17px;
  border-radius: 6px;
  border: 1px solid #b7ff00;
  box-shadow: 0 0 10px rgba(85, 255, 0, 0.5);
  z-index: 5;
}

.rarity-border-3::before {
  position: absolute;
  content: '';
  top: 17px;
  left: 17px;
  right: 17px;
  bottom: 17px;
  border-radius: 6px;
  border: 1px solid #00b7ff;
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
  z-index: 5;
}

.rarity-border-4::before {
  position: absolute;
  content: '';
  top: 17px;
  left: 17px;
  right: 17px;
  bottom: 17px;
  border-radius: 6px;
  border: 1px solid #a100ff;
  box-shadow: 0 0 10px rgba(161, 0, 255, 0.5);
  z-index: 5;
}

.rarity-border-5::before {
  position: absolute;
  content: '';
  top: 17px;
  left: 17px;
  right: 17px;
  bottom: 17px;
  border-radius: 6px;
  border: 1px solid #ffa200;
  box-shadow: 0 0 10px rgba(255, 162, 0, 0.5);
  z-index: 5;
}

.grid .rarity-border-2::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px;
  border: 1px solid #b7ff00;
  box-shadow: none;
  z-index: 5;
}

.grid .rarity-border-3::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px;
  border: 1px solid #00b7ff;
  box-shadow: none;
  z-index: 5;
}

.grid .rarity-border-4::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px;
  border: 1px solid #a100ff;
  box-shadow: none;
  z-index: 5;
}

.grid .rarity-border-5::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px;
  border: 1px solid #ffa200;
  box-shadow: none;
  z-index: 5;
}