
.card {
  position: relative;
  border: 0;
  background: transparent;
}
.official .card-image {
  background-color: #c99f5b;
}
.official .card-image::before {
  border-color: #d3d0ba;
}

.card-image {
  aspect-ratio: 69 / 100;
  overflow: hidden;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #d8d8e4;
  z-index: 2;
}

.card-image::before {
  content: "";

  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid #a19fa6;
  border-radius: 5px;
  z-index: 1;
}

.card-image::after {
  content: "";

  position: absolute;
  top: 0;
  left: -120%;

  width: 60%;
  height: 100%;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.28) 50%,
    rgba(255,255,255,0) 100%
  );

  transform: skewX(-20deg);

  transition: left .7s ease;
  z-index: 2;
}
.card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.card-body {
  padding: 0;
  position: relative;
}
.card-name {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 12px;
  font-weight: normal;
}
.card.unmatched {
  opacity: .25;
  filter: grayscale(.3);

  transition:
    opacity .3s,
    filter .3s,
    transform .3s;
}
.card.unmatched:hover {
  opacity: .75;
  filter: grayscale(0);
}

.card:not(.unmatched) .card-image {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.28s ease;

  box-shadow:
    0 0 0 rgba(0,0,0,0);
}
.card:not(.unmatched):hover .card-image {
  transform: translateY(-2px);

  box-shadow:
    0 16px 40px rgba(0,0,0,0.45),
    0 0 18px rgba(120,180,255,0.25);
}
.card:not(.unmatched):hover .card-image::after {
  left: 160%;
}