/* Die Sammeltruhe nutzt das Buch- und Kartendesign des Sammelalbums.
   Nur die Truhenaktionen und der zusätzliche Sammelstandfilter weichen ab. */
.collection-chest .chest-owned-filter {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--album-line);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.collection-chest .chest-owned-filter select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(246, 218, 160, .28);
  border-radius: 12px;
  background: rgba(5, 4, 2, .68);
  color: var(--gold-light);
  font: inherit;
  cursor: pointer;
}

.collection-chest .chest-owned-filter select:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.collection-chest .album-card__image img {
  object-fit: contain;
  padding: 10px;
}

.collection-chest .album-slot.is-owned .album-card__state::before {
  content: "◆ ";
}

.collection-chest .album-slot.just-stuck {
  transform-origin: 50% 85%;
  animation: chestPlace .68s cubic-bezier(.22, 1, .36, 1) both;
}

.collection-chest .album-slot.just-stuck .album-card {
  animation: none;
  filter: none;
  opacity: 1;
}

.collection-chest .album-slot.just-stuck::before {
  display: none;
}

.collection-chest .album-slot.just-stuck::after {
  content: "";
  display: block;
  position: absolute;
  inset: 1px;
  z-index: 9;
  width: auto;
  height: auto;
  border: 1px solid rgba(246, 218, 160, .54);
  border-radius: 17px;
  background: radial-gradient(circle at 50% 45%, rgba(246, 218, 160, .10), transparent 68%);
  box-shadow: inset 0 0 18px rgba(246, 218, 160, .12);
  filter: none;
  pointer-events: none;
  animation: chestSettleGlow .76s ease-out both;
}

.collection-chest .album-slot[hidden] {
  display: none !important;
}

@keyframes chestPlace {
  0% { transform: translate3d(0, -18px, 0) scale(1.035) rotate(-1.2deg); opacity: .72; }
  48% { transform: translate3d(0, 3px, 0) scale(.985) rotate(.3deg); opacity: 1; }
  76% { transform: translate3d(0, -1px, 0) scale(1.004) rotate(0deg); }
  100% { transform: none; opacity: 1; }
}

@keyframes chestSettleGlow {
  0%, 16% { opacity: 0; transform: scale(.97); }
  48% { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  .collection-chest .album-slot.just-stuck,
  .collection-chest .album-slot.just-stuck::after { animation: none; }
  .collection-chest .album-slot.just-stuck::after { display: none; }
}
