:root {
  --pcha-gold: #ffd700;
  --pcha-gold-soft: rgba(255, 215, 0, 0.28);
  --pcha-panel: rgba(7, 10, 18, 0.94);
  --pcha-card-width: minmax(170px, 1fr);
  --pcha-card-image-height: 300px;
  --pcha-gap-x: 22px;
  --pcha-gap-y: 18px;
  --pcha-radius: 2px;
  --pcha-filter-icon-size: 60px;
  --pcha-mobile-panel-max-height: min(68dvh, calc(100dvh - 140px));
}



.pcha-shortcode-wrap {
  width: var(--theme-container-width, 100%);
  max-width: var(--theme-normal-container-max-width, 1200px);
  margin-right: auto;
  margin-left: auto;
}

.pcha-filter-shell {
  position: relative;
  z-index: 40;
  margin: 0 0 28px;
  max-height: none;
  overflow: visible;
}

@media (min-width: 1025px) {
  .pcha-filter-shell,
  .pcha-filter-panel {
    max-height: none;
    overflow: visible;
  }
}

.pcha-filter-backdrop {
  display: none;
}

.pcha-filter-backdrop[hidden] {
  display: none;
}

.pcha-sticky-bar,
.pcha-filter-panel {
  background: var(--pcha-panel);
  border: 1px solid var(--pcha-gold-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pcha-sticky-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  flex-wrap: nowrap;
}

.pcha-search-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.pcha-search {
  width: 100%;
}

.pcha-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.pcha-filter-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-top: 0;
  overflow: visible;
}

.pcha-filter-panel[hidden] {
  display: none;
}

.pcha-roster-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.pcha-roster-btn {
  appearance: none;
  min-width: 170px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 215, 0, 0.48);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pcha-roster-btn:hover,
.pcha-roster-btn:focus-visible,
.pcha-roster-btn.is-selected,
.pcha-roster-btn[aria-pressed="true"] {
  color: #111;
  background: var(--pcha-gold);
  border-color: var(--pcha-gold);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.24);
}

body.pcha-modal-open { overflow: hidden; }

.pcha-roster-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pcha-roster-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.pcha-roster-modal__card {
  position: relative;
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 215, 0, 0.72);
  border-radius: 6px;
  background: #0b0e16;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.68);
}

.pcha-roster-modal__card h3 {
  margin: 0 28px 12px;
  color: var(--pcha-gold);
}

.pcha-roster-modal__card p { margin: 0 0 24px; line-height: 1.55; }

.pcha-roster-modal__close {
  position: absolute;
  top: 7px;
  right: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 28px;
  cursor: pointer;
}

.pcha-roster-modal__actions { display: flex; justify-content: center; gap: 12px; }

.pcha-roster-modal__cancel,
.pcha-roster-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pcha-roster-modal__cancel { border: 1px solid #555; background: #252832; color: #fff; }
.pcha-roster-modal__action { border: 1px solid var(--pcha-gold); background: var(--pcha-gold); color: #111; }

@media (max-width: 520px) {
  .pcha-roster-filter { gap: 8px; }
  .pcha-roster-btn { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
  .pcha-roster-modal__actions { flex-direction: column-reverse; }
}

.pcha-filter-section {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.pcha-check__label { font-size:12px; 
}
.pcha-filter-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pcha-gold);
  font-weight: 700;
}

.pcha-filter-section--icons .pcha-filter-label {
  display: none;
}

.pcha-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: center;
  align-items: start;
  gap: 26px;
}

.pcha-lord-filter-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pcha-icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.pcha-icon-btn {
  width: var(--pcha-filter-icon-size);
  height: var(--pcha-filter-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.pcha-icon-btn:hover,
.pcha-icon-btn:focus-visible {
  transform: translateY(-1px);
}

.pcha-icon-btn.is-selected {
  border-color: rgba(255, 215, 0, 0.45);
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.16);
}

.pcha-icon-btn img,
.pcha-icon-btn .pcha-icon-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pcha-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.pcha-dropdown-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: start;
}

.pcha-dropdown {
  position: relative;
}

.pcha-dropdown__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
}

.pcha-dropdown__summary::-webkit-details-marker {
  display: none;
}

.pcha-dropdown.has-selected > .pcha-dropdown__summary {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.16);
}

.pcha-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow: auto;
  z-index: 50;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 18, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pcha-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: #fff;
  border-radius: 3px;
  transition: background-color 0.16s ease;
}

.pcha-check:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pcha-check input {
  margin: 0;
}

.pcha-actions {
  display: flex;
  justify-content: flex-end;
}

.pcha-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--pcha-gold-soft);
  color: var(--pcha-gold);
  text-decoration: none;
}

.pcha-entries,
.post-type-archive-hero .entries {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: flex-start;
  gap: 24px 34px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.pcha-entries > article,
.post-type-archive-hero .entries > article {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.pcha-card,
.post-type-archive-hero .entries > article {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  perspective: 900px;
}

.pcha-card:hover,
.pcha-card:focus-within,
.post-type-archive-hero .entries > article:hover,
.post-type-archive-hero .entries > article:focus-within {
  z-index: 100;
}

.pcha-card .entry-card,
.post-type-archive-hero .entries .entry-card {
  width: 100%;
}

.pcha-card-link,
.post-type-archive-hero .entries .pcha-card-link {
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
  outline: none;
  transform: translateY(0) scale(1);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), filter 280ms ease;
}

.pcha-card-frame {
  --pcha-rarity-rgb: 255, 215, 0;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 0;
  background: linear-gradient(145deg,
    rgba(255,255,255,.96) 0%,
    rgb(var(--pcha-rarity-rgb)) 12%,
    rgba(var(--pcha-rarity-rgb),.62) 27%,
    rgba(73,57,19,.98) 43%,
    rgba(22,20,15,.99) 53%,
    rgb(var(--pcha-rarity-rgb)) 72%,
    rgba(255,255,255,.7) 86%,
    rgba(var(--pcha-rarity-rgb),.48) 100%);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  box-shadow: inset 0 0 0 2px rgba(4,6,10,.82), inset 0 0 0 4px rgba(255,255,255,.08), inset 0 -34px 46px rgba(0,0,0,.38);
  filter: drop-shadow(0 7px 7px rgba(0,0,0,.5)) drop-shadow(0 0 3px rgba(var(--pcha-rarity-rgb),.22));
  transform: translateZ(0);
  transition: filter 300ms ease, box-shadow 300ms ease, transform 300ms cubic-bezier(.2,.8,.2,1);
}

.pcha-card-frame::before {
  display: none;
}

.pcha-card-frame::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: -35%;
  bottom: -35%;
  left: -80%;
  width: 38%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), rgba(var(--pcha-rarity-rgb),.32), transparent);
  filter: blur(1px);
  transform: skewX(-17deg);
}

.pcha-rarity-legendary { --pcha-rarity-rgb: 255, 203, 54; }
.pcha-rarity-epic { --pcha-rarity-rgb: 178, 77, 255; }
.pcha-rarity-rare { --pcha-rarity-rgb: 54, 151, 255; }

.pcha-card-rarity-bg,
.pcha-card-portrait,
.pcha-card-vignette {
  position: absolute;
  inset: 0;
  display: block;
}

.pcha-card-rarity-bg {
  z-index: 1;
  inset: 6px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
  pointer-events: none;
  transition: transform 520ms cubic-bezier(.2,.8,.2,1), filter 360ms ease;
}

.pcha-card-portrait {
  z-index: 2;
  inset: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 10.5%;
  overflow: hidden;
}

.pcha-card-portrait::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.68), inset 0 0 12px rgba(0,0,0,.3);
  pointer-events: none;
  transition: border-color 280ms ease, box-shadow 280ms ease;
}

.pcha-card-image,
.pcha-card-portrait > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 6px 7px rgba(0,0,0,.72)) drop-shadow(0 0 12px rgba(var(--pcha-rarity-rgb),.2));
  transition: transform 520ms cubic-bezier(.16,.8,.24,1), filter 360ms ease;
  transform-origin: center bottom;
}

.pcha-card-vignette {
  z-index: 3;
  inset: 6px;
  border-radius: 3px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 54%, rgba(2,4,8,.2) 70%, rgba(2,4,8,.9) 100%), linear-gradient(90deg, rgba(0,0,0,.16), transparent 18%, transparent 82%, rgba(0,0,0,.16));
}

.pcha-thumb-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-weight: 700;
}

.pcha-card-badge {
  position: absolute;
  z-index: 20 !important;
  display: grid;
  place-items: center;
  width: 21%;
  aspect-ratio: 1;
  padding: 2px;
  border: 1px solid rgba(var(--pcha-rarity-rgb),.48);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.16), rgba(8,10,17,.9) 64%);
  box-shadow: 0 3px 9px rgba(0,0,0,.68), inset 0 0 9px rgba(var(--pcha-rarity-rgb),.12);
  pointer-events: auto;
  transition: transform 360ms cubic-bezier(.2,.8,.2,1), box-shadow 360ms ease;
}

.pcha-card-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.78));
}

.pcha-card-badge--faction { left: 5%; }
.pcha-card-badge--faction-1 { top: 5%; }
.pcha-card-badge--faction-2 { top: 28%; }
.pcha-card-badge--damage { top: 5%; right: 5%; }
.pcha-card-badge--class { right: 5%; top: 28%; }

.pcha-card-nameplate {
  position: absolute;
  z-index: 7;
  left: 7px;
  right: 7px;
  bottom: 7px;
  display: block;
  padding: 6px 4px 5px;
  overflow: hidden;
  border: 1px solid rgba(var(--pcha-rarity-rgb),.68);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(58,67,79,.95) 0%, rgba(25,31,40,.97) 38%, rgba(7,10,16,.98) 52%, rgba(14,18,25,.99) 100%);
  box-shadow: 0 3px 9px rgba(0,0,0,.72), inset 0 1px rgba(255,255,255,.3), inset 0 -1px rgba(var(--pcha-rarity-rgb),.2);
  text-align: center;
  transform: none;
}

.pcha-card-nameplate::before {
  content: "";
  position: absolute;
  inset: 1px 8% auto;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.2), transparent);
  pointer-events: none;
}

.pcha-card .entry-title,
.post-type-archive-hero .entries .entry-title {
  display: block;
  margin: 0;
  color: #fff;
  font-family: Iceberg, Orbitron, Teko, Rajdhani, sans-serif;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(10px, .78vw, 15px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .018em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 6px #000, 0 0 10px rgba(var(--pcha-rarity-rgb),.25);
  position: relative;
  z-index: 1;
  transform: none;
  transition: color 300ms ease, text-shadow 300ms ease;
}

.pcha-card-light {
  display: none;
}

.pcha-card-link:hover,
.pcha-card-link:focus-visible {
  z-index: 10;
  transform: translateY(-4px) scale(1.018);
  filter: saturate(1.04);
}

.pcha-card-link:hover .pcha-card-frame,
.pcha-card-link:focus-visible .pcha-card-frame {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 0 12px rgba(var(--pcha-rarity-rgb),.12);
  filter: drop-shadow(0 12px 9px rgba(0,0,0,.62)) drop-shadow(0 0 6px rgba(var(--pcha-rarity-rgb),.65));
}

.pcha-card-link:hover .pcha-card-frame::before,
.pcha-card-link:focus-visible .pcha-card-frame::before {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(var(--pcha-rarity-rgb),.75));
}

.pcha-card-link:hover .pcha-card-portrait::before,
.pcha-card-link:focus-visible .pcha-card-portrait::before {
  border-color: rgba(255,255,255,.88);
  box-shadow: inset 0 0 12px rgba(var(--pcha-rarity-rgb),.3), 0 0 12px rgba(var(--pcha-rarity-rgb),.58);
}

.pcha-card-link:hover .pcha-card-frame::after,
.pcha-card-link:focus-visible .pcha-card-frame::after {
  opacity: 1;
  animation: pcha-card-sheen 1.8s ease-in-out infinite;
}

.pcha-card-link:hover .pcha-card-image,
.pcha-card-link:hover .pcha-card-portrait > img,
.pcha-card-link:focus-visible .pcha-card-image,
.pcha-card-link:focus-visible .pcha-card-portrait > img {
  transform: scale(1.055) translateY(-.5%);
  filter: drop-shadow(0 7px 7px rgba(0,0,0,.78)) drop-shadow(0 0 10px rgba(var(--pcha-rarity-rgb),.52));
}

.pcha-card-link:hover .pcha-card-rarity-bg,
.pcha-card-link:focus-visible .pcha-card-rarity-bg {
  transform: scale(1.015);
  filter: saturate(1.1) brightness(1.04);
}

.pcha-card-link:hover .pcha-card-badge,
.pcha-card-link:focus-visible .pcha-card-badge {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 5px 13px rgba(0,0,0,.76), 0 0 12px rgba(var(--pcha-rarity-rgb),.62), inset 0 0 9px rgba(var(--pcha-rarity-rgb),.24);
}

.pcha-card-link:hover .pcha-card-nameplate,
.pcha-card-link:focus-visible .pcha-card-nameplate {
  border-color: rgba(255,255,255,.76);
  box-shadow: 0 4px 12px rgba(0,0,0,.75), 0 0 9px rgba(var(--pcha-rarity-rgb),.38), inset 0 1px rgba(255,255,255,.34), inset 0 -1px rgba(var(--pcha-rarity-rgb),.28);
}

.pcha-card-link:hover .entry-title,
.pcha-card-link:focus-visible .entry-title {
  color: #fff;
  text-shadow: 0 2px 6px #000, 0 0 8px rgb(var(--pcha-rarity-rgb)), 0 0 15px rgba(var(--pcha-rarity-rgb),.75);
}

.pcha-card-link:active {
  transform: translateY(3px) scale(.965);
  filter: brightness(.86);
  transition-duration: 180ms;
}

.pcha-card-badge {
  position: absolute;
  z-index: 6;
  display: block;
  width: 32%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  pointer-events: auto !important;
  transition: transform 260ms ease, filter 260ms ease;
}

.pcha-card-badge img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.82));
}

.pcha-card-badge--faction {
  left: 0;
  width: min(40%, 58px);
  transform: translateX(-50%);
  filter: none !important;
  box-shadow: none !important;
}
.pcha-card-badge--faction-1 { top: 3%; }
.pcha-card-badge--faction-2 { top: 31%; }

.pcha-card-badge--damage,
.pcha-card-badge--class {
  right: 4px;
  width: 21%;
  padding: 3px;
  border: 1px solid rgba(var(--pcha-rarity-rgb),.48);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(85,94,106,.78), rgba(18,22,29,.9) 54%, rgba(4,6,10,.94) 100%);
  box-shadow: 0 3px 7px rgba(0,0,0,.72), inset 0 1px rgba(255,255,255,.2), inset 0 0 7px rgba(var(--pcha-rarity-rgb),.1);
  backdrop-filter: blur(3px);
}
.pcha-card-badge--damage { top: 8px; }
.pcha-card-badge--class { top: 22%; bottom: auto; }

.pcha-card-badge--damage img,
.pcha-card-badge--class img {
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.9));
}

.pcha-card-badge--faction img,
.pcha-card-link:hover .pcha-card-badge--faction,
.pcha-card-link:focus-visible .pcha-card-badge--faction,
.pcha-card-link:hover .pcha-card-badge--faction img,
.pcha-card-link:focus-visible .pcha-card-badge--faction img {
  filter: none !important;
  box-shadow: none !important;
}

.pcha-card-lord-crown {
  position: absolute;
  z-index: 21 !important;
  top: 0;
  left: 0;
  display: block;
  width: min(31%, 45px);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translateX(-50%);
}

.pcha-card-lord-crown img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.8));
}

.pcha-card-link:hover .pcha-card-badge,
.pcha-card-link:focus-visible .pcha-card-badge {
  transform: translateY(-1px) scale(1.055);
  filter: brightness(1.08);
}

.pcha-card-link:hover .pcha-card-badge--faction,
.pcha-card-link:focus-visible .pcha-card-badge--faction {
  transform: translateX(-50%) translateY(-1px) scale(1.08);
}

.pcha-card-link:hover .pcha-card-badge--damage,
.pcha-card-link:hover .pcha-card-badge--class,
.pcha-card-link:focus-visible .pcha-card-badge--damage,
.pcha-card-link:focus-visible .pcha-card-badge--class {
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 4px 9px rgba(0,0,0,.76), 0 0 8px rgba(var(--pcha-rarity-rgb),.3), inset 0 1px rgba(255,255,255,.24);
}

.pcha-card-link:hover .pcha-card-lord-crown,
.pcha-card-link:focus-visible .pcha-card-lord-crown {
  transform: translateX(-50%) translateY(-1px) scale(1.06);
}

/* Taxonomy labels stay above the frame and identify the icon beneath them. */
.pcha-card-badge::after {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease, transform 180ms cubic-bezier(.2,.8,.2,1);
}

.pcha-card-badge::after {
  content: attr(data-pcha-tooltip);
  top: 50%;
  width: max-content;
  max-width: 180px;
  padding: 6px 9px 5px;
  overflow: hidden;
  border: 1px solid rgba(var(--pcha-rarity-rgb),.72);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(38,45,57,.98), rgba(7,10,16,.99));
  box-shadow: 0 5px 14px rgba(0,0,0,.78), inset 0 1px rgba(255,255,255,.2);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .035em;
  text-align: center;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
}

.pcha-card-badge--faction::after {
  left: calc(100% + 7px);
  transform: translate(4px, -50%);
}

.pcha-card-badge--damage::after,
.pcha-card-badge--class::after {
  right: calc(100% + 7px);
  transform: translate(-4px, -50%);
}

.pcha-card-badge:hover::after {
  opacity: 1;
}

.pcha-card-badge:hover {
  z-index: 200 !important;
}

.pcha-card-badge--faction:hover::after {
  transform: translate(0, -50%);
}

.pcha-card-badge--damage:hover::after,
.pcha-card-badge--class:hover::after {
  transform: translate(0, -50%);
}

.pcha-card .entry-title,
.post-type-archive-hero .entries .entry-title {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.pcha-card-title-text {
  display: inline-block;
  min-width: max-content;
  white-space: nowrap;
  transform: translateX(0);
}

.pcha-card .entry-title.is-truncated,
.post-type-archive-hero .entries .entry-title.is-truncated {
  text-align: left;
}

.pcha-card-link:hover .entry-title.is-truncated .pcha-card-title-text,
.pcha-card-link:focus-visible .entry-title.is-truncated .pcha-card-title-text {
  animation: pcha-title-marquee var(--pcha-marquee-duration, 3.5s) ease-in-out infinite;
}

@keyframes pcha-title-marquee {
  0%, 12% { transform: translateX(0); }
  68%, 84% { transform: translateX(calc(-1 * var(--pcha-marquee-distance, 0px))); }
  100% { transform: translateX(0); }
}

.pcha-card-link:active .pcha-card-frame {
  transform: rotateX(2deg) translateZ(-8px);
  box-shadow: 0 4px 8px rgba(0,0,0,.64), inset 0 3px 15px rgba(0,0,0,.48);
  transition-duration: 180ms;
}

@keyframes pcha-card-sheen {
  0%, 18% { left: -80%; }
  72%, 100% { left: 145%; }
}

@media (prefers-reduced-motion: reduce) {
  .pcha-card-link,
  .pcha-card-frame,
  .pcha-card-image,
  .pcha-card-portrait > img,
  .pcha-card-rarity-bg,
  .pcha-card-badge { transition-duration: 1ms !important; }
  .pcha-card-light { display: none; }
}

.pcha-infinite-nav {

  width: 100%;
  max-width: 1400px;
  margin: 22px auto 0;
  text-align: center;
}

.pcha-infinite-nav .next {
  display: none;
}

.pcha-load-shell {
  width: 100%;
  margin: 22px auto 0;
  text-align: center;
}

.pcha-loading,
.pcha-end-of-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  color: var(--pcha-gold);
  text-align: center;
}

.pcha-loading__spinner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid rgba(255, 215, 0, 0.22);
  border-top-color: #ffd700;
  animation: pcha-spin 0.9s linear infinite;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.18);
}

.pcha-loading__text,
.pcha-end-of-list {
  font-family: Teko, Rajdhani, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pcha-loading[hidden],
.pcha-end-of-list[hidden],
.pcha-load-shell[hidden] {
  display: none;
}

@keyframes pcha-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pcha-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

.pcha-no-results__title {
  color: var(--pcha-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  :root {
    --pcha-gap-x: 18px;
    --pcha-gap-y: 18px;
  }

  .pcha-filter-panel {
    position: static;
    max-height: var(--pcha-mobile-panel-max-height);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--pcha-gold-soft);
  }

  .pcha-dropdown__panel {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 8px;
    max-height: min(42dvh, 420px);
    overflow: auto;
    box-shadow: none;
  }

}



html.pcha-filter-open,
body.pcha-filter-open {
  overflow: hidden;
}
@media (max-width: 767px) {
  :root {
    --pcha-gap-x: 14px;
    --pcha-gap-y: 20px;
  }

  .pcha-sticky-bar {
    flex-wrap: nowrap;
  }

  .pcha-search-wrap {
    width: auto;
  }

  .pcha-filter-toggle {
    width: auto;
    padding-inline: 14px;
  }

  .pcha-meta-strip {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pcha-dropdown-row {
    grid-template-columns: 1fr;
  }

  .pcha-icon-btn {
    width: 54px;
    height: 54px;
  }


}
@media (max-width: 1100px) {
  .pcha-entries,
  .post-type-archive-hero .entries { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .pcha-entries,
  .post-type-archive-hero .entries { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .pcha-entries,
  .post-type-archive-hero .entries { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 9px;
  }
  .pcha-card .entry-title,
  .post-type-archive-hero .entries .entry-title { font-size: clamp(9px, 2.8vw, 13px); }
}

@media (max-width: 360px) {
  .pcha-entries,
  .post-type-archive-hero .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pcha-test-server-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  pointer-events: none;
  z-index: 9;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255,255,255,0.58);
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  transform: rotate(-28deg);
}

/* v1.7.6 — clean card-shell reset. The rarity art and portrait share one canvas. */
.pcha-card-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 5 / 7;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 6px;
  clip-path: none;
  background: #090b10;
  box-shadow: 0 8px 16px rgba(0,0,0,.58);
  filter: none;
  transform: translateZ(0);
  transition: box-shadow 260ms ease, transform 260ms ease, filter 260ms ease;
}

.pcha-card-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #090b10;
}

.pcha-card-frame::before {
  content: "";
  position: absolute;
  z-index: 15;
  inset: 0;
  display: block;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 6px;
  background: none;
  box-shadow:
    inset 0 0 0 2px rgba(var(--pcha-rarity-rgb),.82),
    inset 0 0 0 3px rgba(7,8,11,.86),
    inset 0 1px 0 4px rgba(255,255,255,.12);
  filter: none;
  opacity: 1;
  pointer-events: none;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.pcha-card-frame::after {
  display: none;
}

.pcha-card-canvas::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: -25%;
  bottom: -25%;
  left: -65%;
  width: 25%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.44), rgba(var(--pcha-rarity-rgb),.24), transparent);
  filter: blur(.5px);
  transform: skewX(-17deg);
}

.pcha-card-rarity-bg {
  position: absolute;
  z-index: 1;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  transform: none;
  transition: filter 300ms ease;
}

.pcha-card-portrait {
  position: absolute;
  z-index: 2;
  inset: 0 !important;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
}

.pcha-card-portrait::before {
  display: none;
}

.pcha-card-image,
.pcha-card-portrait > img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transform: translateY(-2.5%) scale(1.06);
  transform-origin: center top;
  filter: drop-shadow(0 5px 6px rgba(0,0,0,.7));
  transition: transform 360ms cubic-bezier(.2,.8,.2,1), filter 300ms ease;
}

.pcha-card-vignette {
  position: absolute;
  z-index: 3;
  inset: 0 !important;
  border: 0;
  border-radius: 0;
  background: linear-gradient(to bottom, transparent 62%, rgba(3,5,9,.1) 74%, rgba(3,5,9,.76) 100%);
  pointer-events: none;
}

.pcha-card-nameplate {
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 4px 4px;
  border: 1px solid rgba(var(--pcha-rarity-rgb),.68);
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg, rgba(72,80,91,.96) 0%, rgba(28,34,43,.98) 40%, rgba(7,10,15,.99) 55%, rgba(16,20,27,.99) 100%);
  box-shadow: 0 3px 8px rgba(0,0,0,.72), inset 0 1px rgba(255,255,255,.34), inset 0 -1px rgba(var(--pcha-rarity-rgb),.22);
}

.pcha-card-light {
  display: none !important;
}

.pcha-card-link:hover,
.pcha-card-link:focus-visible {
  z-index: 10;
  transform: translateY(-3px) scale(1.012);
  filter: none;
}

.pcha-card-link:hover .pcha-card-frame,
.pcha-card-link:focus-visible .pcha-card-frame {
  border: 0;
  box-shadow: 0 12px 20px rgba(0,0,0,.66), 0 0 12px rgba(var(--pcha-rarity-rgb),.34);
  filter: none;
}

.pcha-card-link:hover .pcha-card-frame::before,
.pcha-card-link:focus-visible .pcha-card-frame::before {
  border-color: rgba(255,255,255,.94);
  box-shadow:
    inset 0 0 0 2px rgb(var(--pcha-rarity-rgb)),
    inset 0 0 0 3px rgba(7,8,11,.82),
    inset 0 1px 0 4px rgba(255,255,255,.18),
    inset 0 0 12px rgba(var(--pcha-rarity-rgb),.14);
  filter: none;
}

.pcha-card-link:hover .pcha-card-canvas::after,
.pcha-card-link:focus-visible .pcha-card-canvas::after {
  opacity: 1;
  animation: pcha-card-sheen 1.9s ease-in-out infinite;
}

.pcha-card-link:hover .pcha-card-image,
.pcha-card-link:hover .pcha-card-portrait > img,
.pcha-card-link:focus-visible .pcha-card-image,
.pcha-card-link:focus-visible .pcha-card-portrait > img {
  transform: translateY(-2.5%) scale(1.085);
  filter: drop-shadow(0 6px 7px rgba(0,0,0,.74)) drop-shadow(0 0 7px rgba(var(--pcha-rarity-rgb),.34));
}

.pcha-card-link:hover .pcha-card-rarity-bg,
.pcha-card-link:focus-visible .pcha-card-rarity-bg {
  transform: none;
  filter: saturate(1.06) brightness(1.025);
}

.pcha-card-link:active {
  transform: translateY(2px) scale(.98);
  filter: brightness(.9);
  transition-duration: 180ms;
}

/* v1.9.0 — premium desktop hero database console. */
.pcha-filter-console-head,
.pcha-results-console {
  display: none;
}

.pcha-filter-toggle__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(255,215,0,.58);
  border-radius: 999px;
  background: rgba(255,215,0,.1);
  color: #ffd700;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.pcha-filter-toggle__count[hidden] {
  display: none;
}

.pcha-rarity-source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.pcha-effects-panel {
  width: 100%;
}

.pcha-effects-panel__summary {
  list-style: none;
}

.pcha-effects-panel__summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 1100px) {
  .pcha-archive-layout {
    display: block;
  }

  .pcha-roster-pane {
    min-width: 0;
  }

  .pcha-effects-panel__summary {
    display: none;
  }
}

/* v1.9.3 — centered roster, larger viewport rail, restrained portrait-only motion. */
@media (min-width: 1101px) {
  .pcha-archive-layout {
    gap: clamp(24px, 2vw, 34px);
  }

  .pcha-filter-shell {
    flex: 0 0 310px;
    width: 310px;
    height: min(760px, calc(100dvh - 120px));
    max-height: calc(100dvh - 120px);
  }

  .pcha-filter-form,
  .pcha-filter-panel,
  .pcha-filter-panel[hidden] {
    height: 100%;
  }

  .pcha-filter-panel,
  .pcha-filter-panel[hidden] {
    gap: 18px;
    max-height: none;
    padding: 21px 19px 20px;
  }

  .pcha-filter-console-kicker {
    font-size: 10px;
  }

  .pcha-filter-console-head h2 {
    font-size: 21px;
  }

  .pcha-active-count {
    padding: 3px 6px;
    border-radius: 3px;
    background: rgba(255, 215, 0, .045);
    font-size: 9px;
  }

  .pcha-roster-btn {
    min-height: 40px;
    font-size: 11px;
  }

  .pcha-filter-section--icons .pcha-filter-label,
  .pcha-effects-panel__summary {
    font-size: 11px;
  }

  .pcha-icon-btn {
    width: 42px;
    height: 42px;
    padding: 5px;
  }

  .pcha-filter-section--factions .pcha-icon-btn {
    height: 44px;
    gap: 7px;
    padding: 5px 7px;
  }

  .pcha-filter-section--factions .pcha-icon-btn img,
  .pcha-filter-section--factions .pcha-icon-btn .pcha-icon-fallback {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
  }

  .pcha-filter-section--factions .pcha-icon-btn::after {
    font-size: 9px;
  }

  .pcha-filter-section--class .pcha-icon-btn {
    height: 42px;
  }

  .pcha-filter-section--damage .pcha-icon-btn {
    height: 44px;
  }

  .pcha-effects-panel__summary {
    min-height: 40px;
    padding: 11px 2px;
  }

  .pcha-dropdown-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .pcha-dropdown[open] {
    grid-column: auto;
  }

  .pcha-dropdown__summary {
    min-height: 38px;
    padding: 9px 11px;
    font-size: 11px;
  }

  .pcha-roster-pane {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .pcha-database-heading {
    margin: 0 0 13px;
    padding-left: 2px;
  }

  .pcha-roster-console {
    min-width: 0;
    padding: 14px 16px 22px;
    overflow: visible;
    border: 1px solid rgba(255, 215, 0, .33);
    border-radius: 9px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 27%),
      rgba(5, 8, 13, .74);
    box-shadow:
      0 18px 48px rgba(0, 0, 0, .35),
      inset 0 1px rgba(255, 255, 255, .035),
      inset 0 0 42px rgba(255, 215, 0, .018);
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    justify-content: center;
  }

  .pcha-filter-chip {
    gap: 0;
    min-height: 28px;
    padding: 5px 0 5px 10px;
    border-color: rgba(255, 215, 0, .38);
    border-radius: 3px;
    background:
      linear-gradient(90deg, rgba(255, 215, 0, .1), transparent 42%),
      rgba(8, 12, 19, .92);
    box-shadow: inset 2px 0 #ffd700, 0 4px 10px rgba(0, 0, 0, .26);
    color: rgba(255, 255, 255, .86);
    letter-spacing: .025em;
  }

  .pcha-filter-chip span {
    align-self: stretch;
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    margin: -5px 0 -5px 8px;
    border-left: 1px solid rgba(255, 215, 0, .24);
    color: rgba(255, 226, 103, .9);
    font-size: 14px;
  }

  .pcha-filter-chip:hover,
  .pcha-filter-chip:focus-visible {
    border-color: rgba(255, 215, 0, .72);
    background:
      linear-gradient(90deg, rgba(255, 215, 0, .14), transparent 46%),
      rgba(10, 15, 23, .98);
  }

  .pcha-card-link:hover,
  .pcha-card-link:focus-visible {
    transform: none;
    filter: none;
  }

  .pcha-card-link:hover .pcha-card-frame,
  .pcha-card-link:focus-visible .pcha-card-frame {
    box-shadow:
      0 9px 20px rgba(0, 0, 0, .6),
      0 0 13px rgba(var(--pcha-rarity-rgb), .48);
  }

  .pcha-card-link:hover .pcha-card-badge,
  .pcha-card-link:focus-visible .pcha-card-badge,
  .pcha-card-link:hover .pcha-card-badge--damage,
  .pcha-card-link:hover .pcha-card-badge--class,
  .pcha-card-link:focus-visible .pcha-card-badge--damage,
  .pcha-card-link:focus-visible .pcha-card-badge--class {
    transform: none;
    filter: none;
  }

  .pcha-card-link:hover .pcha-card-badge--faction,
  .pcha-card-link:focus-visible .pcha-card-badge--faction,
  .pcha-card-link:hover .pcha-card-lord-crown,
  .pcha-card-link:focus-visible .pcha-card-lord-crown {
    transform: translateX(-50%);
    filter: none;
  }

  .pcha-card-link:hover .pcha-card-badge--damage,
  .pcha-card-link:hover .pcha-card-badge--class,
  .pcha-card-link:focus-visible .pcha-card-badge--damage,
  .pcha-card-link:focus-visible .pcha-card-badge--class {
    border-color: rgba(var(--pcha-rarity-rgb), .48);
    box-shadow: 0 3px 7px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .2), inset 0 0 7px rgba(var(--pcha-rarity-rgb), .1);
  }

  .pcha-card-link:hover .pcha-card-rarity-bg,
  .pcha-card-link:focus-visible .pcha-card-rarity-bg {
    transform: none;
    filter: none;
  }

  .pcha-card-link:hover .pcha-card-image,
  .pcha-card-link:hover .pcha-card-portrait > img,
  .pcha-card-link:focus-visible .pcha-card-image,
  .pcha-card-link:focus-visible .pcha-card-portrait > img {
    transform: translateY(-1.5%) scale(1.065);
  }
}

@media (min-width: 1101px) and (max-width: 1279px) {
  .pcha-filter-shell {
    flex-basis: 280px;
    width: 280px;
  }

  .pcha-roster-console {
    padding-right: 13px;
    padding-left: 13px;
  }
}

/* v1.9.7 — alpha-aware Lord crown and primary faction alignment. */
.pcha-card-frame.pcha-is-lord .pcha-card-lord-crown {
  top: -3%;
  left: 0;
  width: min(52%, 64px);
  height: auto;
  aspect-ratio: 128 / 179;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
}

.pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1 {
  top: 14%;
  left: 0;
  width: min(40%, 50px);
  transform: translateX(-50%);
  transform-origin: 50% 50%;
}

.pcha-card-frame.pcha-is-lord .pcha-card-lord-crown img,
.pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pcha-card-frame.pcha-is-lord .pcha-card-lord-crown,
.pcha-card-frame.pcha-is-lord .pcha-card-lord-crown img {
  pointer-events: none;
}

.pcha-card-link:hover .pcha-card-frame.pcha-is-lord .pcha-card-lord-crown,
.pcha-card-link:focus-visible .pcha-card-frame.pcha-is-lord .pcha-card-lord-crown,
.pcha-card-link:hover .pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1,
.pcha-card-link:focus-visible .pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1 {
  transform: translateX(-50%);
}

/* v1.9.8 — tighten the primary faction artwork inside the Lord frame. */
.pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1 {
  top: 12%;
  width: min(46%, 57px);
}

/* v1.12.7 — Blocksy-contained desktop workspace with independently scrolling panes. */
@media (min-width: 1101px) {
  .pcha-shortcode-wrap {
    height: 89vh;
    height: 89dvh;
    max-height: 89vh;
    max-height: 89dvh;
    min-height: 0;
    overflow: hidden;
    transform: none;
  }

  .pcha-archive-layout {
    align-items: stretch;
    height: 100%;
    min-height: 0;
    padding: 0 2px 14px;
  }

  .pcha-filter-shell {
    position: relative;
    top: auto;
    z-index: 10;
    align-self: stretch;
    height: 100%;
    max-height: none;
  }

  .pcha-filter-form,
  .pcha-filter-panel,
  .pcha-filter-panel[hidden] {
    min-height: 0;
    height: 100%;
  }

  .pcha-filter-panel,
  .pcha-filter-panel[hidden] {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .pcha-filter-fixed-head {
    position: sticky;
    top: -21px;
    z-index: 50;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 16px;
    margin: -1px -1px 0;
    padding: 1px 1px 17px;
    border-bottom: 1px solid rgba(255, 215, 0, .18);
    background:
      linear-gradient(180deg, rgba(13, 17, 25, 1) 0%, rgba(8, 12, 19, .995) 84%, rgba(8, 12, 19, .97) 100%);
    box-shadow: 0 10px 18px rgba(3, 5, 9, .48);
  }

  .pcha-roster-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  .pcha-database-heading {
    flex: 0 0 auto;
  }

  .pcha-roster-console {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(255, 215, 0, .55) rgba(255, 255, 255, .035);
    scrollbar-width: thin;
  }

  .pcha-roster-console::-webkit-scrollbar {
    width: 7px;
  }

  .pcha-roster-console::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .025);
  }

  .pcha-roster-console::-webkit-scrollbar-thumb {
    border: 1px solid rgba(0, 0, 0, .5);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 215, 0, .72), rgba(157, 117, 0, .72));
  }

  .pcha-results-console {
    position: sticky;
    top: -14px;
    z-index: 45;
    margin: -14px 0 18px;
    padding: 14px 0 13px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 35%),
      rgba(5, 8, 13, .985);
    box-shadow: 0 12px 18px rgba(2, 4, 8, .5);
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    padding-right: 13px;
    padding-left: 13px;
  }

  .pcha-infinite-nav,
  .pcha-load-shell {
    margin-right: 13px;
    margin-left: 13px;
  }
}

@media (max-width: 1100px) {
  .pcha-filter-fixed-head {
    display: contents;
  }
}

@media (max-width: 1100px) {
  .pcha-roster-console {
    min-width: 0;
  }
}

@media (min-width: 1101px) {
  .pcha-archive-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    width: 100%;
  }

  .pcha-filter-shell {
    position: sticky;
    top: 92px;
    z-index: 60;
    width: 100%;
    max-height: calc(100vh - 112px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, .38);
    border-radius: 9px;
    background:
      linear-gradient(145deg, rgba(255,255,255,.035), transparent 24%),
      linear-gradient(180deg, rgba(13,17,25,.985), rgba(5,8,14,.985));
    box-shadow:
      0 18px 44px rgba(0,0,0,.52),
      inset 0 1px rgba(255,255,255,.055),
      inset 0 0 32px rgba(255,215,0,.025);
  }

  .pcha-filter-shell::before,
  .pcha-filter-shell::after {
    content: "";
    position: absolute;
    z-index: 3;
    width: 18px;
    height: 18px;
    pointer-events: none;
  }

  .pcha-filter-shell::before {
    top: 8px;
    left: 8px;
    border-top: 1px solid rgba(255,215,0,.8);
    border-left: 1px solid rgba(255,215,0,.8);
  }

  .pcha-filter-shell::after {
    right: 8px;
    bottom: 8px;
    border-right: 1px solid rgba(255,215,0,.8);
    border-bottom: 1px solid rgba(255,215,0,.8);
  }

  .pcha-sticky-bar {
    display: none;
  }

  .pcha-filter-form {
    height: 100%;
  }

  .pcha-filter-panel,
  .pcha-filter-panel[hidden] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-height: calc(100vh - 112px);
    padding: 19px 16px 18px;
    overflow-x: visible;
    overflow-y: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-color: rgba(255,215,0,.52) rgba(255,255,255,.035);
    scrollbar-width: thin;
  }

  .pcha-filter-panel::-webkit-scrollbar {
    width: 5px;
  }

  .pcha-filter-panel::-webkit-scrollbar-track {
    background: rgba(255,255,255,.035);
  }

  .pcha-filter-panel::-webkit-scrollbar-thumb {
    border-radius: 9px;
    background: rgba(255,215,0,.52);
  }

  .pcha-filter-console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px 2px;
  }

  .pcha-filter-console-kicker {
    display: block;
    margin-bottom: 2px;
    color: rgba(255,255,255,.46);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .pcha-filter-console-head h2 {
    margin: 0;
    color: #fff;
    font-family: Iceberg, Orbitron, sans-serif;
    font-size: 19px;
    line-height: 1;
    letter-spacing: .035em;
    text-transform: uppercase;
  }

  .pcha-filter-console-tools {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
  }

  .pcha-active-count {
    padding: 3px 7px;
    border: 1px solid rgba(255,215,0,.38);
    border-radius: 999px;
    background: rgba(255,215,0,.07);
    color: #ffd700;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .pcha-console-clear {
    color: rgba(255,255,255,.52);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
  }

  .pcha-console-clear:hover,
  .pcha-console-clear:focus-visible {
    color: #ffd700;
  }

  .pcha-roster-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 6px;
    background: rgba(0,0,0,.22);
  }

  .pcha-roster-btn {
    min-width: 0;
    min-height: 36px;
    padding: 8px 5px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    background: transparent;
    color: rgba(255,255,255,.62);
    font-size: 10px;
    letter-spacing: .035em;
    text-transform: uppercase;
    box-shadow: none;
  }

  .pcha-roster-btn:last-of-type {
    border-right: 0;
  }

  .pcha-roster-btn:hover,
  .pcha-roster-btn:focus-visible,
  .pcha-roster-btn.is-selected,
  .pcha-roster-btn[aria-pressed="true"] {
    color: #ffe88a;
    border-color: rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,215,0,.16), rgba(255,215,0,.055));
    box-shadow: inset 0 0 12px rgba(255,215,0,.08);
  }

  .pcha-filter-section,
  .pcha-filter-section--icons {
    justify-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .pcha-filter-section--icons .pcha-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,215,0,.86);
    font-size: 10px;
    letter-spacing: .14em;
  }

  .pcha-filter-section--icons .pcha-filter-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,215,0,.34), transparent);
  }

  .pcha-icon-row {
    justify-content: flex-start;
    gap: 6px;
  }

  .pcha-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 4px;
    overflow: visible;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 6px;
    background:
      radial-gradient(circle at 35% 24%, rgba(255,255,255,.08), transparent 46%),
      rgba(255,255,255,.025);
    box-shadow: inset 0 1px rgba(255,255,255,.035);
  }

  .pcha-icon-btn:hover,
  .pcha-icon-btn:focus-visible {
    z-index: 8;
    border-color: rgba(255,215,0,.44);
    background-color: rgba(255,215,0,.055);
    box-shadow: 0 0 12px rgba(255,215,0,.1), inset 0 1px rgba(255,255,255,.08);
  }

  .pcha-icon-btn.is-selected {
    border-color: rgba(255,215,0,.9);
    background: linear-gradient(145deg, rgba(255,215,0,.19), rgba(255,215,0,.045));
    box-shadow: 0 0 14px rgba(255,215,0,.18), inset 0 0 10px rgba(255,215,0,.08);
  }

  .pcha-filter-section:not(.pcha-filter-section--factions) .pcha-icon-btn::after {
    content: attr(data-label);
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 7px);
    left: 50%;
    width: max-content;
    max-width: 170px;
    padding: 5px 7px;
    border: 1px solid rgba(255,215,0,.48);
    border-radius: 4px;
    background: rgba(5,8,14,.98);
    box-shadow: 0 5px 14px rgba(0,0,0,.68);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 3px);
    transition: opacity 140ms ease, transform 140ms ease;
  }

  .pcha-filter-section:not(.pcha-filter-section--factions) .pcha-icon-btn:hover::after,
  .pcha-filter-section:not(.pcha-filter-section--factions) .pcha-icon-btn:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .pcha-filter-section--factions .pcha-icon-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .pcha-filter-section--factions .pcha-icon-btn {
    width: 100%;
    height: 38px;
    justify-content: flex-start;
    gap: 5px;
    padding: 4px 6px;
  }

  .pcha-filter-section--factions .pcha-icon-btn img,
  .pcha-filter-section--factions .pcha-icon-btn .pcha-icon-fallback {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
  }

  .pcha-filter-section--factions .pcha-icon-btn::after {
    content: attr(data-label);
    min-width: 0;
    overflow: hidden;
    color: rgba(255,255,255,.72);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pcha-filter-section--factions .pcha-icon-btn.is-selected::after {
    color: #fff4bd;
  }

  .pcha-filter-section--class .pcha-icon-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .pcha-filter-section--class .pcha-icon-btn,
  .pcha-filter-section--damage .pcha-icon-btn {
    width: 100%;
  }

  .pcha-filter-section--damage .pcha-icon-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pcha-filter-section--damage .pcha-icon-btn {
    height: 40px;
  }

  .pcha-rarity-source-row {
    justify-content: flex-start;
    gap: 6px;
  }

  .pcha-rarity-source-row > .pcha-icon-row {
    display: contents;
  }

  .pcha-effects-panel {
    border-top: 1px solid rgba(255,215,0,.2);
    border-bottom: 1px solid rgba(255,215,0,.12);
  }

  .pcha-effects-panel__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 1px;
    color: rgba(255,215,0,.88);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .pcha-effects-panel[open] .pcha-effects-panel__summary span:last-child {
    transform: rotate(180deg);
  }

  .pcha-dropdown-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 0 10px;
  }

  .pcha-dropdown__summary {
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,.025);
    font-size: 10px;
  }

  .pcha-dropdown[open] {
    grid-column: 1 / -1;
  }

  .pcha-dropdown__panel {
    position: static;
    max-height: 190px;
    margin-top: 5px;
    overflow-y: auto;
    border-radius: 4px;
    background: rgba(0,0,0,.28);
    box-shadow: inset 0 1px 8px rgba(0,0,0,.38);
  }

  .pcha-check {
    padding: 6px 7px;
  }

  .pcha-actions {
    display: none;
  }

  .pcha-roster-pane {
    min-width: 0;
  }

  .pcha-results-console {
    display: block;
    margin: 0 0 18px;
    padding: 0 0 13px;
    border: 0;
    border-bottom: 1px solid rgba(255, 215, 0, .19);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .pcha-results-console__top {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .pcha-desktop-search-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
  }

  .pcha-search-glyph {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 50%;
    pointer-events: none;
    transform: translateY(-58%);
  }

  .pcha-search-glyph::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,.7);
    transform: rotate(45deg);
  }

  .pcha-desktop-search {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px 10px 42px;
    border: 1px solid rgba(255,215,0,.62);
    border-radius: 4px;
    outline: 0;
    background: rgba(4,7,13,.88);
    color: #fff;
    box-shadow: inset 0 2px 10px rgba(0,0,0,.35);
  }

  .pcha-desktop-search:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255,215,0,.09), inset 0 2px 10px rgba(0,0,0,.35);
  }

  .pcha-result-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex: 0 0 auto;
    padding: 0 8px;
    white-space: nowrap;
  }

  .pcha-result-count strong {
    color: #ffd700;
    font-family: Iceberg, Orbitron, sans-serif;
    font-size: 24px;
    line-height: 1;
  }

  .pcha-result-count span {
    color: rgba(255,255,255,.56);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .pcha-rank-sort {
    min-height: 40px;
  }

  .pcha-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 11px;
  }

  .pcha-active-filters[hidden] {
    display: none;
  }

  .pcha-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 27px;
    padding: 4px 8px 4px 10px;
    border: 1px solid rgba(255,215,0,.28);
    border-radius: 999px;
    background: rgba(255,215,0,.055);
    color: rgba(255,255,255,.78);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
  }

  .pcha-filter-chip span {
    color: #ffd700;
    font-size: 15px;
    line-height: .8;
  }

  .pcha-filter-chip:hover,
  .pcha-filter-chip:focus-visible {
    border-color: rgba(255,215,0,.72);
    color: #fff;
    background: rgba(255,215,0,.1);
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 25px 32px;
  }
}

@media (min-width: 1101px) and (max-width: 1279px) {
  .pcha-archive-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) and (max-width: 1599px) {
  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1101px) {
  .pcha-archive-layout {
    width: 100%;
    max-width: 100%;
  }

  .pcha-roster-pane {
    min-width: 0;
    container-name: pcha-roster;
    container-type: inline-size;
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container pcha-roster (min-width: 720px) {
  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@container pcha-roster (min-width: 860px) {
  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@container pcha-roster (min-width: 1080px) {
  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* v1.9.2 — compact, naturally wrapping desktop roster console. */
.pcha-database-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 14px;
}

.pcha-database-heading__eyebrow {
  color: rgba(255, 215, 0, .76);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.pcha-database-heading__title-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pcha-database-heading h1 {
  flex: 0 0 auto;
  margin: 0;
  color: #f5f2ea;
  font-family: Iceberg, Orbitron, sans-serif;
  font-size: clamp(20px, 1.65vw, 27px);
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}

.pcha-database-heading__title-row > span {
  width: min(240px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 215, 0, .55), transparent);
}

@media (min-width: 1101px) {
  .pcha-archive-layout {
    display: flex;
    align-items: flex-start;
    gap: clamp(22px, 1.8vw, 30px);
    padding: 0 2px 20px;
  }

  .pcha-filter-shell {
    flex: 0 0 252px;
    width: 252px;
  }

  .pcha-roster-pane {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px 22px;
    overflow: visible;
    border: 1px solid rgba(255, 215, 0, .33);
    border-radius: 9px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 27%),
      rgba(5, 8, 13, .74);
    box-shadow:
      0 18px 48px rgba(0, 0, 0, .35),
      inset 0 1px rgba(255, 255, 255, .035),
      inset 0 0 42px rgba(255, 215, 0, .018);
  }

  .pcha-desktop-search {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-color: rgba(255, 215, 0, .48);
    background: rgba(2, 5, 10, .66);
  }

  .pcha-result-count strong {
    font-size: 22px;
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(auto-fill, 128px);
    justify-content: start;
    align-items: start;
    gap: 24px clamp(24px, 2vw, 34px);
    width: 100%;
    padding: 2px 4px 10px;
  }

  .pcha-card .entry-title,
  .post-type-archive-hero .entries .entry-title {
    font-size: 10px;
  }
}

@media (min-width: 1101px) and (max-width: 1279px) {
  .pcha-filter-shell {
    flex-basis: 238px;
    width: 238px;
  }

  .pcha-archive-layout {
    gap: 22px;
  }

  .pcha-roster-pane {
    padding-right: 13px;
    padding-left: 13px;
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(auto-fill, 122px);
    gap: 22px 24px;
  }
}

@media (max-width: 1100px) {
  .pcha-database-heading {
    margin-bottom: 10px;
  }

  .pcha-database-heading__title-row > span {
    flex: 1 1 auto;
  }
}

/* v1.9.4 — final cascade-safe desktop sizing, centering, and sticky boundary. */
@media (min-width: 1101px) {
  .pcha-archive-layout {
    display: flex;
    align-items: flex-start;
    gap: clamp(26px, 2vw, 36px);
    min-height: calc(100dvh - 80px);
    padding: 0 2px 110px;
  }

  .pcha-filter-shell {
    position: sticky;
    top: 76px;
    z-index: 30;
    flex: 0 0 340px;
    width: 340px;
    height: min(720px, calc(100dvh - 104px));
    max-height: calc(100dvh - 104px);
  }

  .pcha-filter-form,
  .pcha-filter-panel,
  .pcha-filter-panel[hidden] {
    height: 100%;
  }

  .pcha-filter-panel,
  .pcha-filter-panel[hidden] {
    gap: 18px;
    max-height: none;
    padding: 21px 20px 20px;
  }

  .pcha-filter-shell button,
  .pcha-filter-shell a,
  .pcha-filter-shell summary,
  .pcha-filter-shell label,
  .pcha-filter-shell .pcha-filter-console-kicker,
  .pcha-filter-shell .pcha-active-count,
  .pcha-filter-shell .pcha-console-clear,
  .pcha-filter-shell .pcha-filter-label,
  .pcha-filter-shell .pcha-check__label,
  .pcha-filter-shell .pcha-icon-btn::after {
    font-size: 10px;
  }

  .pcha-filter-console-head h2 {
    font-size: 22px;
  }

  .pcha-roster-btn,
  .pcha-effects-panel__summary,
  .pcha-dropdown__summary {
    font-size: 11px;
  }

  .pcha-roster-btn {
    min-height: 42px;
  }

  .pcha-icon-btn {
    width: 44px;
    height: 44px;
    padding: 5px;
  }

  .pcha-filter-section--factions .pcha-icon-btn {
    height: 46px;
    gap: 7px;
    padding: 5px 8px;
  }

  .pcha-filter-section--factions .pcha-icon-btn img,
  .pcha-filter-section--factions .pcha-icon-btn .pcha-icon-fallback {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .pcha-filter-section--class .pcha-icon-btn,
  .pcha-filter-section--damage .pcha-icon-btn {
    height: 44px;
  }

  .pcha-dropdown-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .pcha-dropdown[open] {
    grid-column: auto;
  }

  .pcha-dropdown__summary {
    min-height: 40px;
    padding: 9px 11px;
  }

  .pcha-roster-pane {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .pcha-database-heading {
    margin: 0 0 13px;
    padding-left: 2px;
  }

  .pcha-roster-console {
    min-width: 0;
    padding: 14px 16px 22px;
    overflow: visible;
    border: 1px solid rgba(255, 215, 0, .33);
    border-radius: 9px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 27%),
      rgba(5, 8, 13, .74);
    box-shadow:
      0 18px 48px rgba(0, 0, 0, .35),
      inset 0 1px rgba(255, 255, 255, .035),
      inset 0 0 42px rgba(255, 215, 0, .018);
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(auto-fit, 128px);
    justify-content: center;
    align-items: start;
    gap: 24px clamp(24px, 2vw, 34px);
    width: 100%;
    padding: 2px 4px 10px;
  }

  .pcha-card .entry-title,
  .post-type-archive-hero .entries .entry-title {
    font-size: 14px;
  }

  .pcha-card-link:hover,
  .pcha-card-link:focus-visible {
    transform: none;
    filter: none;
  }

  .pcha-card-link:hover .pcha-card-badge,
  .pcha-card-link:focus-visible .pcha-card-badge,
  .pcha-card-link:hover .pcha-card-badge--damage,
  .pcha-card-link:hover .pcha-card-badge--class,
  .pcha-card-link:focus-visible .pcha-card-badge--damage,
  .pcha-card-link:focus-visible .pcha-card-badge--class {
    transform: none;
    filter: none;
  }

  .pcha-card-link:hover .pcha-card-badge--faction,
  .pcha-card-link:focus-visible .pcha-card-badge--faction,
  .pcha-card-link:hover .pcha-card-lord-crown,
  .pcha-card-link:focus-visible .pcha-card-lord-crown {
    transform: translateX(-50%);
    filter: none;
  }
}

@media (min-width: 1101px) and (max-width: 1279px) {
  .pcha-filter-shell {
    flex-basis: 300px;
    width: 300px;
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(auto-fit, 122px);
  }
}

/* v1.9.5a — keep internal scrolling authoritative after legacy overrides. */
@media (min-width: 1101px) {
  .pcha-archive-layout {
    align-items: stretch;
    height: 100%;
    min-height: 0;
    padding: 0 2px 14px;
  }

  .pcha-filter-shell {
    position: relative;
    top: auto;
    z-index: 10;
    align-self: stretch;
    height: 100%;
    max-height: none;
  }

  .pcha-roster-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  .pcha-roster-console {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* v1.9.6 — balanced viewport edges and a fully scrolling roster surface. */
@media (min-width: 1101px) {
  .pcha-archive-layout {
    gap: 24px;
    padding: 0 0 16px;
  }

  .pcha-filter-shell {
    flex-basis: 340px;
    width: 340px;
  }

  .pcha-roster-console {
    padding: 14px 16px 18px;
  }

  .pcha-results-console {
    position: relative;
    top: auto;
    z-index: 1;
    margin: 0 0 18px;
    padding: 0 0 13px;
    background: transparent;
    box-shadow: none;
  }

  .pcha-search-glyph {
    right: 16px;
    left: auto;
  }

  .pcha-desktop-search {
    padding-right: 44px;
    padding-left: 14px;
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(auto-fit, 116px);
    gap: 22px clamp(22px, 1.65vw, 30px);
    padding: 2px 12px 16px;
  }
}

@media (min-width: 1101px) and (max-width: 1279px) {
  .pcha-filter-shell {
    flex-basis: 300px;
    width: 300px;
  }

  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(auto-fit, 110px);
    gap: 20px 22px;
  }
}

/* v1.10.1 — uniform faction slots; Lord crown only overlays slot one.
 * The original card used a 45px crown over a 55px faction badge. Keep the
 * two canvases centered on the card edge. Lord status must not change badge
 * size or spacing; it only adds the crown above the first faction. */
.pcha-card-frame .pcha-card-badge--faction-1,
.pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1 {
  top: 3%;
  left: 0;
  width: 55px;
  height: 55px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
}

.pcha-card-frame .pcha-card-badge--faction-2,
.pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-2 {
  top: 31%;
  left: 0;
  width: 55px;
  height: 55px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
}

.pcha-card-frame.pcha-is-lord .pcha-card-lord-crown {
  top: calc(3% - 10px);
  left: 0;
  width: 45px;
  height: auto;
  aspect-ratio: 128 / 179;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
}

.pcha-card-frame.pcha-is-lord .pcha-card-lord-crown img {
  width: 45px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1 img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.pcha-card-link:hover .pcha-card-frame.pcha-is-lord .pcha-card-lord-crown,
.pcha-card-link:focus-visible .pcha-card-frame.pcha-is-lord .pcha-card-lord-crown,
.pcha-card-link:hover .pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1,
.pcha-card-link:focus-visible .pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1 {
  transform: translateX(-50%);
}

/* v1.10.4 — authoritative portrait animation after every legacy rule.
 * Only scale the portrait itself: no card motion and no positional transform. */
.pcha-card-portrait {
  overflow: hidden;
}

.pcha-card-frame .pcha-card-portrait > .pcha-card-image {
  transform: scale(1) !important;
  transform-origin: center center !important;
  transition: transform 1000ms cubic-bezier(.22, .61, .36, 1), filter 600ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .pcha-card-link:hover .pcha-card-frame .pcha-card-portrait > .pcha-card-image {
    transform: scale(1.1) !important;
  }
}

.pcha-card-link:focus-visible .pcha-card-frame .pcha-card-portrait > .pcha-card-image {
  transform: scale(1.1) !important;
}

/* v1.10.7 — explicit sibling layers for crowned faction tooltips. */
.pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1,
.pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1:hover,
.pcha-card-link:hover .pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1,
.pcha-card-link:focus-visible .pcha-card-frame.pcha-is-lord .pcha-card-badge--faction-1 {
  left: 0;
  z-index: 20 !important;
  transform: translateX(-50%) !important;
}

.pcha-card-frame.pcha-is-lord .pcha-card-lord-crown {
  z-index: 21 !important;
}

.pcha-card-badge--external-tooltip::after {
  display: none !important;
}

.pcha-card-tooltip--lord-faction {
  position: absolute;
  z-index: 200;
  top: calc(3% + 27.5px);
  left: 34.5px;
  width: max-content;
  max-width: 180px;
  padding: 6px 9px 5px;
  overflow: hidden;
  border: 1px solid rgba(var(--pcha-rarity-rgb), .72);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(38, 45, 57, .98), rgba(7, 10, 16, .99));
  box-shadow: 0 5px 14px rgba(0, 0, 0, .78), inset 0 1px rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .035em;
  text-align: center;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(4px, -50%);
  transition: opacity 150ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.pcha-card-badge--external-tooltip:hover + .pcha-card-tooltip--lord-faction {
  opacity: 1;
  transform: translate(0, -50%);
}

/* v1.11.3 — clean, image-free arcade ranks over the portrait. */
.pcha-card-frame .pcha-card-nameplate {
  bottom: 0;
  border-radius: 8px 8px 5px 5px;
}

.pcha-card-rank {
  --pcha-rank-mid: #ffc928;
  --pcha-rank-dark: #a75a00;
  position: absolute;
  z-index: 12;
  right: 14px;
  bottom: 34px;
  display: block;
  width: max-content;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pcha-rank-mid);
  font-family: "Arial Black", Impact, Haettenschweiler, sans-serif;
  font-size: 23px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.5px;
  white-space: nowrap;
  -webkit-text-fill-color: var(--pcha-rank-mid);
  -webkit-text-stroke: .7px rgba(0, 0, 0, .96);
  text-shadow:
    1px 1px 0 var(--pcha-rank-dark),
    0 2px 3px rgba(0, 0, 0, .9);
  pointer-events: none;
}

/* Longer ranks retain the same visual footprint as the single-letter tiers. */
.pcha-card-rank--sss,
.pcha-card-rank--ss-plus {
  font-size: 20px;
  letter-spacing: -.8px;
}

.pcha-card-rank--ss,
.pcha-card-rank--s-plus,
.pcha-card-rank--a-plus {
  font-size: 22px;
}

.pcha-card-rank--sss {
  --pcha-rank-light: #ffe1db;
  --pcha-rank-mid: #ff3b31;
  --pcha-rank-dark: #7d0008;
  --pcha-rank-glow: rgba(255, 35, 35, .9);
}

.pcha-card-rank--ss-plus {
  --pcha-rank-light: #fff0cf;
  --pcha-rank-mid: #ff6328;
  --pcha-rank-dark: #9a1600;
  --pcha-rank-glow: rgba(255, 78, 20, .88);
}

.pcha-card-rank--ss {
  --pcha-rank-light: #fff2c8;
  --pcha-rank-mid: #ff851f;
  --pcha-rank-dark: #9d2800;
  --pcha-rank-glow: rgba(255, 103, 20, .82);
}

.pcha-card-rank--s-plus {
  --pcha-rank-light: #fffbd0;
  --pcha-rank-mid: #ffd423;
  --pcha-rank-dark: #a46300;
  --pcha-rank-glow: rgba(255, 210, 26, .84);
}

.pcha-card-rank--s {
  --pcha-rank-light: #fffbd6;
  --pcha-rank-mid: #f2c51f;
  --pcha-rank-dark: #875900;
  --pcha-rank-glow: rgba(255, 207, 24, .76);
}

.pcha-card-rank--a-plus {
  --pcha-rank-light: #ffe1ff;
  --pcha-rank-mid: #ed56ff;
  --pcha-rank-dark: #72138c;
  --pcha-rank-glow: rgba(230, 70, 255, .82);
}

.pcha-card-rank--a {
  --pcha-rank-light: #f0ddff;
  --pcha-rank-mid: #a95cff;
  --pcha-rank-dark: #461889;
  --pcha-rank-glow: rgba(157, 77, 255, .78);
}

.pcha-card-rank--b {
  --pcha-rank-light: #dff9ff;
  --pcha-rank-mid: #36bfff;
  --pcha-rank-dark: #075183;
  --pcha-rank-glow: rgba(35, 174, 255, .76);
}

.pcha-card-rank--c {
  --pcha-rank-light: #e2ffe2;
  --pcha-rank-mid: #5dd758;
  --pcha-rank-dark: #17631c;
  --pcha-rank-glow: rgba(75, 214, 83, .7);
}

.pcha-card-rank--d {
  --pcha-rank-light: #ffe2ad;
  --pcha-rank-mid: #c98a42;
  --pcha-rank-dark: #66401d;
  --pcha-rank-glow: rgba(205, 139, 66, .65);
}

.pcha-card-rank--f {
  --pcha-rank-light: #ffd1d1;
  --pcha-rank-mid: #b83239;
  --pcha-rank-dark: #52070b;
  --pcha-rank-glow: rgba(196, 39, 47, .66);
}

/* v1.12.0 — staged, full-viewport mobile filter canvas. */
.pcha-filter-mobile-close,
.pcha-mobile-filter-actions {
  display: none;
}

@media (min-width: 1101px) {
  .pcha-filter-drawer-scroll {
    display: contents;
  }
}

@media (max-width: 1100px) {
  html.pcha-filter-open,
  body.pcha-filter-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .pcha-sticky-bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
  }

  .pcha-sticky-bar .pcha-filter-toggle {
    order: -1;
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 48px;
    padding: 10px 14px;
  }

  .pcha-sticky-bar .pcha-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pcha-filter-shell[data-pcha-mobile-open="true"] .pcha-filter-panel,
  .pcha-filter-shell[data-pcha-mobile-open="true"] .pcha-filter-panel[hidden] {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
      radial-gradient(circle at 18% 8%, rgba(255, 205, 42, .09), transparent 25%),
      linear-gradient(180deg, #101722 0%, #070b12 54%, #04070c 100%) !important;
    box-shadow: none !important;
  }

  .pcha-filter-panel .pcha-filter-fixed-head {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    display: block;
    padding: max(18px, env(safe-area-inset-top)) 18px 14px;
    border-bottom: 1px solid rgba(255, 215, 0, .28);
    background: rgba(7, 11, 18, .98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .42);
  }

  .pcha-filter-console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .pcha-filter-console-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1;
  }

  .pcha-filter-console-tools {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .pcha-filter-mobile-close {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 215, 0, .42);
    border-radius: 7px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
  }

  .pcha-filter-panel .pcha-roster-filter {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .pcha-filter-drawer-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 18px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .pcha-filter-drawer-scroll > * + * {
    margin-top: 18px;
  }

  .pcha-filter-panel .pcha-filter-section,
  .pcha-filter-panel .pcha-effects-panel {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 215, 0, .2);
  }

  .pcha-filter-panel .pcha-filter-section {
    justify-items: stretch;
  }

  .pcha-filter-panel .pcha-filter-label,
  .pcha-filter-panel .pcha-effects-panel__summary {
    font-size: 12px;
    letter-spacing: .12em;
  }

  .pcha-filter-panel .pcha-filter-section--icons .pcha-filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .pcha-filter-panel .pcha-filter-section--icons .pcha-filter-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 215, 0, .4), transparent);
  }

  .pcha-filter-panel .pcha-effects-panel__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .pcha-filter-panel .pcha-filter-section--factions .pcha-icon-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .pcha-filter-panel .pcha-filter-section--factions .pcha-icon-btn {
    min-height: 52px;
    font-size: 11px;
  }

  .pcha-filter-panel .pcha-icon-btn {
    min-width: 48px;
    min-height: 48px;
  }

  .pcha-filter-panel .pcha-dropdown-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .pcha-filter-panel .pcha-dropdown__summary {
    min-height: 46px;
    font-size: 12px;
  }

  .pcha-filter-panel .pcha-actions {
    display: none;
  }

  .pcha-mobile-filter-actions {
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(86px, .34fr) minmax(0, 1fr);
    gap: 10px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 215, 0, .36);
    background: rgba(5, 8, 14, .99);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, .55);
  }

  .pcha-mobile-filter-reset,
  .pcha-mobile-filter-apply {
    min-height: 50px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
  }

  .pcha-mobile-filter-reset {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .82);
  }

  .pcha-mobile-filter-apply {
    border: 1px solid #ffe46b;
    background: linear-gradient(180deg, #ffe05a, #c99100);
    box-shadow: 0 5px 18px rgba(255, 194, 0, .22), inset 0 1px rgba(255, 255, 255, .65);
    color: #090b0f;
    text-shadow: 0 1px rgba(255, 255, 255, .4);
  }
}

@media (max-width: 520px) {
  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(3, minmax(0, 118px)) !important;
    justify-content: center !important;
    gap: 24px 14px !important;
    padding: 4px 10px 28px !important;
  }

  .pcha-card-rank {
    right: 10px;
    bottom: 31px;
    font-size: 20px;
  }
}

@media (max-width: 374px) {
  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(2, minmax(0, 132px)) !important;
    gap: 24px 22px !important;
  }
}

/* v1.12.3 — Other Options uses the shared category-heading language. */
.pcha-effects-panel__summary,
.pcha-filter-panel .pcha-effects-panel__summary {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 0 0 11px;
  border: 0;
  color: #ffd700;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.pcha-effects-panel__summary > span:first-child {
  order: 1;
  flex: 0 0 auto;
}

.pcha-effects-panel__summary::before {
  content: "";
  order: 2;
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 215, 0, .46), rgba(255, 215, 0, .08));
}

.pcha-effects-panel__summary > span:last-child {
  order: 3;
  flex: 0 0 auto;
  color: #ffd700;
  font-size: 10px;
  transition: transform 180ms ease;
}

.pcha-effects-panel[open] > .pcha-effects-panel__summary > span:last-child {
  transform: rotate(180deg);
}

.pcha-effects-panel[open] > .pcha-dropdown-row {
  margin-top: 0;
}

/* v1.12.2 — one shared card interaction and active-filter component. */
.pcha-card-link:hover,
.pcha-card-link:focus-visible {
  transform: none !important;
  filter: none !important;
}

.pcha-card-link:hover .pcha-card-frame,
.pcha-card-link:focus-visible .pcha-card-frame {
  transform: none !important;
  box-shadow:
    0 9px 20px rgba(0, 0, 0, .6),
    0 0 13px rgba(var(--pcha-rarity-rgb), .48) !important;
}

.pcha-card-link:hover .pcha-card-badge,
.pcha-card-link:focus-visible .pcha-card-badge,
.pcha-card-badge:hover,
.pcha-card-link:hover .pcha-card-badge--damage,
.pcha-card-link:hover .pcha-card-badge--class,
.pcha-card-link:focus-visible .pcha-card-badge--damage,
.pcha-card-link:focus-visible .pcha-card-badge--class {
  transform: none !important;
  filter: none !important;
}

.pcha-card-link:hover .pcha-card-badge--faction,
.pcha-card-link:focus-visible .pcha-card-badge--faction,
.pcha-card-badge--faction:hover,
.pcha-card-link:hover .pcha-card-lord-crown,
.pcha-card-link:focus-visible .pcha-card-lord-crown {
  transform: translateX(-50%) !important;
  filter: none !important;
}

.pcha-card-link:hover .pcha-card-rarity-bg,
.pcha-card-link:focus-visible .pcha-card-rarity-bg,
.pcha-card-link:hover .pcha-card-nameplate,
.pcha-card-link:focus-visible .pcha-card-nameplate {
  transform: none !important;
}

.pcha-rank-sort {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 215, 0, .38);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(5,8,13,.94));
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.pcha-rank-sort__mark {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(255,215,0,.45);
  border-radius: 50%;
  color: #ffd700;
  font-family: Iceberg, Orbitron, sans-serif;
  font-size: 14px;
  font-style: italic;
  text-shadow: 0 0 7px rgba(255,215,0,.42);
}

.pcha-rank-sort:hover,
.pcha-rank-sort:focus-visible {
  border-color: rgba(255, 215, 0, .78);
  color: #fff;
  outline: 0;
}

.pcha-rank-sort.is-active {
  border-color: #ffd700;
  background: linear-gradient(180deg, rgba(255,215,0,.2), rgba(35,28,3,.94));
  box-shadow: inset 0 0 16px rgba(255,215,0,.08), 0 0 12px rgba(255,215,0,.1);
  color: #fff4b0;
}

.pcha-rank-sort.is-active .pcha-rank-sort__mark {
  background: #ffd700;
  color: #090b0f;
  text-shadow: none;
}

.pcha-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pcha-active-filters[hidden] {
  display: none !important;
}

.pcha-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 28px;
  padding: 5px 0 5px 11px;
  border: 1px solid rgba(255, 215, 0, .58);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 215, 0, .085), rgba(5, 9, 15, .96));
  box-shadow: 0 4px 10px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .9);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.pcha-filter-chip span {
  align-self: stretch;
  display: inline-grid;
  min-width: 29px;
  margin: -5px 0 -5px 8px;
  place-items: center;
  border-left: 1px solid rgba(255, 215, 0, .3);
  color: #ffd700;
  font-size: 15px;
  line-height: 1;
}

.pcha-filter-chip:hover,
.pcha-filter-chip:focus-visible {
  border-color: #ffd700;
  background: linear-gradient(180deg, rgba(255, 215, 0, .14), rgba(7, 11, 18, .99));
  color: #fff;
}

@media (max-width: 1100px) {
  .pcha-results-console {
    display: contents;
  }

  .pcha-results-console__top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 10px 12px;
  }

  .pcha-desktop-search-wrap {
    display: none;
  }

  .pcha-result-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-left: auto;
    white-space: nowrap;
  }

  .pcha-result-count strong {
    color: #ffd700;
    font-family: Iceberg, Orbitron, sans-serif;
    font-size: 20px;
    line-height: 1;
  }

  .pcha-result-count span {
    color: rgba(255,255,255,.56);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .pcha-active-filters {
    margin: 2px 10px 18px;
    padding: 0 0 13px;
    border-bottom: 1px solid rgba(255, 215, 0, .25);
  }

}

/* v1.12.1 — viewport-edge trigger, Blocksy-safe drawer portal, desktop parity. */
@media (max-width: 1100px) {
  .pcha-filter-shell:not([data-pcha-mobile-open="true"]) .pcha-sticky-bar {
    display: block;
  }

  .pcha-filter-shell:not([data-pcha-mobile-open="true"]) .pcha-filter-toggle {
    position: fixed !important;
    z-index: 99999 !important;
    top: 48%;
    left: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 34px;
    min-width: 34px;
    height: 116px;
    min-height: 116px;
    padding: 10px 3px !important;
    overflow: visible;
    border: 1px solid rgba(255, 215, 0, .7) !important;
    border-left: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    background: linear-gradient(180deg, rgba(25, 31, 42, .98), rgba(5, 9, 15, .99)) !important;
    box-shadow: 5px 8px 22px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .09);
    color: #fff !important;
    transform: translateY(-50%);
  }

  .pcha-filter-shell:not([data-pcha-mobile-open="true"]) .pcha-filter-toggle > span:first-child {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  .pcha-filter-shell:not([data-pcha-mobile-open="true"]) .pcha-filter-toggle > span:last-child {
    display: none;
  }

  .pcha-filter-shell:not([data-pcha-mobile-open="true"]) .pcha-filter-toggle__count {
    position: static;
    display: grid;
    width: 22px;
    height: 22px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 215, 0, .7);
    border-radius: 50%;
    background: rgba(255, 215, 0, .12);
    color: #ffe04a;
    font-size: 10px;
    line-height: 1;
  }

  .pcha-filter-shell:not([data-pcha-mobile-open="true"]) .pcha-filter-toggle__count[hidden] {
    display: none;
  }

  .pcha-filter-shell:not([data-pcha-mobile-open="true"]) .pcha-search-wrap {
    width: 100%;
  }

  body > .pcha-filter-shell[data-pcha-mobile-open="true"] {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body > .pcha-filter-shell[data-pcha-mobile-open="true"] .pcha-sticky-bar {
    display: none !important;
  }

  body > .pcha-filter-shell[data-pcha-mobile-open="true"] .pcha-filter-panel {
    animation: pcha-mobile-drawer-in 300ms cubic-bezier(.22, .74, .25, 1) both;
  }

  .pcha-filter-panel .pcha-effects-panel:not([open]) .pcha-dropdown-row {
    display: none !important;
  }
}

@keyframes pcha-mobile-drawer-in {
  from { opacity: .7; transform: translate3d(100%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 520px) {
  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(3, minmax(0, 112px)) !important;
    column-gap: clamp(20px, 5.4vw, 28px) !important;
    row-gap: 26px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
}

@media (max-width: 374px) {
  .pcha-entries,
  .post-type-archive-hero .entries {
    grid-template-columns: repeat(2, minmax(0, 128px)) !important;
    column-gap: 28px !important;
  }
}

/* v1.12.11 — collaboration filter + card logo overlay. */
.pcha-filter-section--collaboration {
  justify-items: stretch;
  width: 100%;
}

.pcha-collaboration-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  width: 100%;
}

.pcha-collaboration-check {
  min-width: 0;
}

.pcha-card-collaboration-logo {
  position: absolute;
  z-index: 14;
  left: 6px;
  bottom: 36px;
  display: block;
  width: auto;
  max-width: 55%;
  max-height: 22px;
  pointer-events: none;
}

.pcha-card-collaboration-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 22px;
  object-fit: contain;
  object-position: left bottom;
}

@media (max-width: 520px) {
  .pcha-card-collaboration-logo {
    left: 5px;
    bottom: 35px;
    max-width: 55%;
    max-height: 20px;
  }

  .pcha-card-collaboration-logo img {
    max-height: 20px;
  }
}
