/* Regular cardholder */
.cardholder {
  height: 100%;
  aspect-ratio: 3 / 4;
  position: absolute;
  display: flex;
  padding: 20px;
  box-sizing: border-box;
}

@media only screen and (max-aspect-ratio: 5 / 8) {
  .cardholder {
    width: 100%;
    height: auto;
  }
}

.cardholder > img {
  width: 100%;
  height: 100%;
  border: 1px solid rgb(0, 0, 0);
  box-shadow: 0 0 0 4px #3b3538,
  0 0 10px 8px rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  box-sizing: border-box;
  position: relative;
}

.cardholder .bg {
  font-size: 1.2rem;
  font-weight: bold;
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: #8a7f87;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 5px;
  background-color: #342c31;
}

.cardholder .bg span {
  display:none;
}

.cardholder .bg.no-images span {
  display: block;
}

.cardholder::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 5px;
  box-shadow: inset 0 -20px 28px 20px rgba(0, 0, 0, 0.25);
  z-index: 4;
}

.cardholder > .info {
  color: white;
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  top: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
}

.cardholder .cover {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 5px;
  background-image: url('../img/sleeve2.png');
  background-size: cover;
  z-index: 6;
}

/* Collection grid cardholder */
.grid .cardholder {
  height: auto;
  position: relative;
  display: block;
  padding: 0;
  cursor: pointer;
  background-color: #2e242b;
  border: 1px solid #000000;
  border-radius: 5px;
}

.grid .cardholder .footer {
  padding-bottom: 0;
}

.grid .cardholder > img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  box-shadow: none;
}

.grid .cardholder::after {
  content: none;
}

.grid .cardholder > .info {
  left: 3px;
  right: 3px;
  bottom: 3px;
  top: 3px;
  padding: 0;
  font-size: 0.8rem;
}

.grid .cardholder .rarity {
  font-size: 0.8rem;
}

.grid .cardholder .relation span:first-child {
  font-size: 1rem;
  padding-right: 0;
}

.grid .cardholder .rank, .grid .cardholder .fraction {
  font-size: 0.93rem;
}

/* Cardholder content */
.cardholder .info .header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.cardholder .info .footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  overflow: hidden;
  gap: 3px;
  padding-bottom: 3px;
  position: relative;
}

.cardholder > .desc {
  display: flex;
  text-align: right;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.cardholder .controls {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% -0.5rem;
  height: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 27;
}

.cardholder .controls span {
  height: 100%;
  padding: 0 1rem;
  color: #bb76a0;
  font-weight: bold;
  background: linear-gradient(to bottom, #5b354e, #3b1d32);
  border-radius: 16px;
  border: 1px solid #b8709c;
  box-shadow: 0 0 5px rgba(14, 13, 24, 0.72),
  0 0 1px black;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 0.5rem;
}

.cardholder .controls span .spicy {
  color: #d57bb1;
}

.cardholder .controls span:hover {
  color: #ce77ac;
  background: linear-gradient(to bottom, #805070, #5c324f);
}

.cardholder .controls > .active, .cardholder .controls > .active:hover {
  color: #c9acc0;
  border: 1px solid #ca9db9;
  background: linear-gradient(to bottom, #5b354e, #3b1d32);
}

.cardholder .controls > .locked, .cardholder .controls > .locked:hover {
  border: 1px solid #929292;
  color: #c9acc0;
  background: linear-gradient(to bottom, #584752, #3b3235);
}

/*.controls i {*/
/*  display: none;*/
/*}*/

/*.controls > .locked > i {*/
/*  display: block;*/
/*}*/

/* Fortune */
.cardholder .fortune {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 5px;
  background-color: #2f2a2c;
  border: 2px solid #ffc957;
  color: #ffc957;
  font-weight: bold;
  font-size: 4rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  box-shadow: 0 0 18px rgba(255, 201, 87, 0.62);
}

.fortune::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M81.28 88H68.413l19.298 19.298L81.28 88zm2.107 0h13.226L90 107.838 83.387 88zm15.334 0h12.866l-19.298 19.298L98.72 88zm-32.927-2.207L73.586 78h32.827l.5.5 7.294 7.293L115.414 87l-24.707 24.707-.707.707L64.586 87l1.207-1.207zm2.62.207L74 80.414 79.586 86H68.414zm16 0L90 80.414 95.586 86H84.414zm16 0L106 80.414 111.586 86h-11.172zm-8-6h11.173L98 85.586 92.414 80zM82 85.586L87.586 80H76.414L82 85.586zM17.414 0L.707 16.707 0 17.414V0h17.414zM4.28 0L0 12.838V0h4.28zm10.306 0L2.288 12.298 6.388 0h8.198zM180 17.414L162.586 0H180v17.414zM165.414 0l12.298 12.298L173.612 0h-8.198zM180 12.838L175.72 0H180v12.838zM0 163h16.413l.5.5 7.294 7.293L25.414 172l-8 8H0v-17zm0 10h6.613l-2.334 7H0v-7zm14.586 7l7-7H8.72l-2.333 7h8.2zM0 165.414L5.586 171H0v-5.586zM10.414 171L16 165.414 21.586 171H10.414zm-8-6h11.172L8 170.586 2.414 165zM180 163h-16.413l-7.794 7.793-1.207 1.207 8 8H180v-17zm-14.586 17l-7-7h12.865l2.333 7h-8.2zM180 173h-6.613l2.334 7H180v-7zm-21.586-2l5.586-5.586 5.586 5.586h-11.172zM180 165.414L174.414 171H180v-5.586zm-8 5.172l5.586-5.586h-11.172l5.586 5.586zM152.933 25.653l1.414 1.414-33.94 33.942-1.416-1.416 33.943-33.94zm1.414 127.28l-1.414 1.414-33.942-33.94 1.416-1.416 33.94 33.943zm-127.28 1.414l-1.414-1.414 33.94-33.942 1.416 1.416-33.943 33.94zm-1.414-127.28l1.414-1.414 33.942 33.94-1.416 1.416-33.94-33.943zM0 85c2.21 0 4 1.79 4 4s-1.79 4-4 4v-8zm180 0c-2.21 0-4 1.79-4 4s1.79 4 4 4v-8zM94 0c0 2.21-1.79 4-4 4s-4-1.79-4-4h8zm0 180c0-2.21-1.79-4-4-4s-4 1.79-4 4h8z' fill='%23fffbe0' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.fortune .top, .fortune .bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.fortune .top {
  flex: 1;
  justify-content: center;
}

.fortune .bottom {
  flex-basis: 25%;
  justify-content: flex-start;
}

.fortune .sq {
  width: 50%;
  height: 50%;
  background-color: rgba(255, 206, 104, 0.05);
  position: absolute;
  animation: linear-rotation 3s linear infinite;
  border: 1px solid rgba(255, 206, 104, 0.3);
}

.fortune .ticket {
  border-radius: 50%;
  /*background-color: #231d1f;*/
  background: linear-gradient(to bottom, #231d1f, #603728);
  width: 50%;
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow:
          0 0 0 4px #3b3538,
          0 0 0 5px #ffc957,
          0 0 10px 10px rgba(0, 0, 0, 0.4);
  text-shadow:
          -1px -1px 1rem rgba(255, 201, 87, 0.1),
          1px -1px 1rem rgba(255, 201, 87, 0.1),
          -1px 1px 1rem rgba(255, 201, 87, 0.1),
          1px 1px 1rem rgba(255, 201, 87, 0.1);
  z-index: 2;
  overflow: hidden;
}

.fortune .ticket b {
  font-size: 200%;
  line-height: 200%;
}

.fortune .bottom div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px 6px 16px;
  color: #fff;
  border-radius: 6px;
  background: linear-gradient(to bottom, rgba(255, 206, 104, 0.1), rgba(255, 206, 104, 0.3));
  border: 4px double rgba(255, 206, 104, 0.5);
}

/*#collection .card {*/
/*  background-color: #2e242b;*/
/*  border: 1px solid #000000;*/
/*  border-radius: 5px;*/
/*  aspect-ratio: 3 / 4;*/
/*  box-sizing: border-box;*/
/*  position: relative;*/
/*  cursor: pointer;*/
/*}*/

/*#collection .card img {*/
/*  display: block;*/
/*  width: 100%;*/
/*  border-radius: 5px;*/
/*}*/

/*#collection .card .info {*/
/*  color: white;*/
/*  position: absolute;*/
/*  left: 3px;*/
/*  right: 3px;*/
/*  bottom: 3px;*/
/*  top: 3px;*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  justify-content: space-between;*/
/*  font-size: 0.8rem;*/
/*}*/

/*.card .rarity {*/
/*  font-size: 0.8rem;*/
/*}*/

/*.card .relation span:first-child {*/
/*  font-size: 1rem;*/
/*  padding-right: 0;*/
/*}*/

/*.card .rank, .card .fraction {*/
/*  font-size: 1rem;*/
/*}*/

/*.card .level {*/
/*  font-size: 0.6rem;*/
/*}*/