.pch-open {
  overflow: hidden;
}

.pch {
  position: fixed;
  inset: 0;
  z-index: 7630;
  display: grid;
  place-items: stretch;
  font: 500 13px/1.45 "Figtree", "Segoe UI", system-ui, sans-serif;
  color: #e8eef6;
}

.pch[hidden] {
  display: none !important;
}

.pch__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.62);
}

.pch__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: min(78vh, 640px);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 14px;
  border-radius: 16px;
  background: linear-gradient(165deg, #1c2433 0%, #121821 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pch__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pch__kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pch__title {
  margin: 2px 0 4px;
  font: 800 22px/1.15 "Syne", "Figtree", system-ui, sans-serif;
}

.pch__stock {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
}

.pch__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px 8px 2px 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.pch__chip--cost {
  min-height: 24px;
  padding: 1px 7px 1px 3px;
  background: rgba(15, 23, 42, 0.45);
}

.pch__chip-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.pch__chip--cost .pch__chip-icon {
  width: 18px;
  height: 18px;
}

.pch__chip--any {
  gap: 8px;
  padding-right: 10px;
}

.pch__chip-icons {
  display: inline-flex;
  align-items: center;
}

.pch__chip-icons .pch__chip-icon {
  width: 16px;
  height: 16px;
  margin-right: -6px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.pch__chip-icons .pch__chip-icon:last-child {
  margin-right: 0;
}

.pch__chip-any-label {
  font: 700 12px/1 "Figtree", system-ui, sans-serif;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pch__chip-qty {
  font: 700 13px/1 "Figtree", system-ui, sans-serif;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.pch__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
  font-size: 22px;
  cursor: pointer;
}

.pch__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.pch__card {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.pch__card:hover:not(:disabled) {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(22, 101, 52, 0.22);
}

.pch__card.is-locked,
.pch__card:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.pch__icon {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
}

.pch__card-name {
  font: 700 15px/1.2 "Figtree", system-ui, sans-serif;
}

.pch__card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: #94a3b8;
  font-size: 12px;
}

.pch__costs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pch__owned {
  font-variant-numeric: tabular-nums;
}
