/* Collection dialog and its shared companion previews. */
@keyframes collectibles-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.3);
  }
}
[data-open-collectibles].collectibles-btn--new {
  animation: collectibles-pulse 4s ease-in-out infinite;
}
#collectibles-btn.collectibles-btn--new,
.m-topbar [data-open-collectibles].collectibles-btn--new,
[data-open-collectibles].collectibles-btn--new {
  color: #4ade80;
  border-color: #16a34a;
}
body.reduce-motion [data-open-collectibles].collectibles-btn--new {
  animation: none;
}
@keyframes collectible-border-pulse {
  0%,
  100% {
    border-color: #303b49;
    box-shadow: inset 0 0 0 0 #4ade8000;
  }
  50% {
    border-color: #68a67e;
    box-shadow: inset 0 0 0 1px #4ade8040;
  }
}
#collectibles-dialog .collectible-item--new {
  animation: collectible-border-pulse 4s ease-in-out infinite;
}
.m-topbar [data-open-collectibles] {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #bdb6a6;
  padding: 4px;
  cursor: pointer;
}
.m-topbar [data-open-collectibles] svg {
  width: 18px;
  height: 18px;
}
.companion-icon {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.1em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='4.5' cy='9' rx='2.5' ry='3.3' transform='rotate(-25 4.5 9)'/%3E%3Cellipse cx='9.3' cy='5' rx='2.4' ry='3.2' transform='rotate(-10 9.3 5)'/%3E%3Cellipse cx='14.7' cy='5' rx='2.4' ry='3.2' transform='rotate(10 14.7 5)'/%3E%3Cellipse cx='19.5' cy='9' rx='2.5' ry='3.3' transform='rotate(25 19.5 9)'/%3E%3Cpath d='M12 10c-2.6 0-3.8 3-5.6 4.9C3.3 18.2 5 22 8.3 21.5c1.4-.2 2.4-1 3.7-1s2.3.8 3.7 1c3.3.5 5-3.3 1.9-6.6C15.8 13 14.6 10 12 10z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
@media (max-width: 768px) {
  #app-banner-tools .companion-icon {
    width: 18px;
    height: 18px;
  }
}
#collectibles-dialog {
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  box-sizing: border-box;
  margin: auto;
  padding: 8px 10px 10px;
  border: 1px solid #46505d;
  border-radius: 10px;
  background: #19212c;
  color: #d8d7d1;
  color-scheme: dark;
  overflow: auto;
  cursor: default;
}
#collectibles-dialog::backdrop {
  background: #0009;
}
.collectibles-body {
  padding-top: 4px;
  font-size: 0.85rem;
}
.collectibles-empty {
  margin: 0;
  padding: 16px 8px;
  text-align: center;
  color: #9ca3af;
}
#collectibles-dialog #app-tooltip {
  white-space: pre-line;
}
#collectibles-dialog .season-cursor-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 4px;
}
#collectibles-dialog .collectible-item {
  position: relative;
  min-width: 0;
  padding: 0 0 5px;
  border: 1px solid #303b49;
  border-radius: 8px;
  background: #1d2733;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: default;
}
#collectibles-dialog .collectible-item:focus-visible {
  outline: 2px solid #c6ae7b;
  outline-offset: 2px;
}
body.reduce-motion #collectibles-dialog .collectible-item--new {
  animation: none;
  border-color: #68a67e;
  box-shadow: inset 0 0 0 1px #4ade8040;
}
#collectibles-dialog .season-cursor-preview {
  height: 60px;
  display: grid;
  place-items: center;
  contain: layout style paint;
  overflow: hidden;
}
#collectibles-dialog
  .seasonal-inline-preview
  :is(.seasonal-pumpkin, .seasonal-diya, .seasonal-companion) {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 44px !important;
  height: 44px !important;
  z-index: auto !important;
}
#collectibles-dialog .collectible-item span {
  display: block;
  font-size: 0.65rem;
  line-height: 1.15;
}
#collectibles-dialog .collectible-item .collectible-quantity {
  position: absolute;
  right: 3px;
  top: 2px;
  padding: 1px 3px;
  border-radius: 3px;
  background: #19212ce8;
  color: #bdb6a6;
  font-size: 0.6rem;
  line-height: 1;
  pointer-events: none;
}
