/* Original fandom editions: compact collectible game cards, not licensed posters. */
.fandom-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  padding: 0 0 14px;
  background: var(--fandom-color, #e8ddca);
  border: 1px solid #ac98782b;
  border-radius: 22px;
  overflow: hidden;
  text-align: left;
  color: #514034;
  box-shadow:
    inset 0 2px #fff6,
    0 4px #cbbba32b;
  isolation: isolate;
  cursor: pointer;
}
.fandom-card:hover {
  filter: none;
  box-shadow:
    inset 0 2px #fff8,
    0 5px 12px #81664616;
}
.fandom-card:active {
  transform: translateY(2px);
}
.fandom-card:focus-visible {
  outline: 3px solid #9d81b3;
  outline-offset: 4px;
}
.fandom-art {
  display: block;
  width: 100%;
  aspect-ratio: 1.06;
  position: relative;
  pointer-events: none;
  transition: transform 0.2s ease;
}
.fandom-art > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.fandom-card:hover .fandom-art {
  transform: translateY(-3px) rotate(-1deg);
}
.fandom-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 13px;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.fandom-card-info small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: #8b725e;
  line-height: 1.2;
}
.fandom-card-info b {
  font-size: 17px;
  line-height: 1.12;
  letter-spacing: -0.4px;
  font-weight: 900;
  max-width: calc(100% - 22px);
  overflow-wrap: normal;
}
.fandom-card-play {
  position: absolute;
  right: 9px;
  bottom: 12px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff6e76b;
  color: #9b7b5d;
  display: grid;
  place-items: center;
}
.fandom-card-play svg {
  width: 16px;
  height: 16px;
}
.fandom-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(135px, 174px);
  gap: 12px;
  overflow: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0 0 8px;
}
.fandom-rail::-webkit-scrollbar {
  display: none;
}
.fandom-rail .fandom-card {
  scroll-snap-align: start;
}
.fandom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fandom-grid .fandom-card-info b {
  font-size: 16px;
}
.fandom-card.fandom-kpop-hunters .fandom-card-info b {
  font-size: 15px;
}
@media (max-width: 540px) {
  .fandom-grid {
    gap: 8px;
  }
  .fandom-grid .fandom-card {
    border-radius: 17px;
    padding-bottom: 12px;
  }
  .fandom-grid .fandom-card-info {
    padding: 0 9px;
    gap: 3px;
  }
  .fandom-grid .fandom-card-info b {
    font-size: 12px;
    letter-spacing: -0.2px;
    max-width: 100%;
    min-height: 28px;
  }
  .fandom-grid .fandom-card-info small {
    font-size: 6.5px;
    letter-spacing: 0.65px;
  }
  .fandom-grid .fandom-card-play {
    display: none;
  }
  .fandom-rail {
    grid-auto-columns: 145px;
    gap: 10px;
  }
  .fandom-rail .fandom-card-info b {
    font-size: 15px;
  }
  .fandom-grid .fandom-kpop-hunters .fandom-card-info b {
    font-size: 11.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fandom-art {
    transition: none;
  }
  .fandom-card:hover .fandom-art {
    transform: none;
  }
}
