.cv-collector-frame {
  --collector-ink:#9fb6d0;
  --collector-depth:#25364d;
  --collector-pale:#f5f9ff;
  --collector-highlight:color-mix(in srgb,var(--collector-ink) 55%,var(--collector-pale));
}
.cv-collector-frame:is([data-rarity="uncommon"],[data-tier="uncommon"],:has(> [data-builder-reveal="uncommon"])) {--collector-ink:#9cdcbc;--collector-depth:#223d36}
.cv-collector-frame:is([data-rarity="rare"],[data-tier="rare"],:has(> [data-builder-reveal="rare"])) {--collector-ink:#71cbfa;--collector-depth:#193a5f}
.cv-collector-frame:is([data-rarity="epic"],[data-tier="epic"],:has(> [data-builder-reveal="epic"])) {--collector-ink:#d39bfa;--collector-depth:#432859}
.cv-collector-frame:is([data-rarity="legendary"],[data-tier="legendary"],:has(> [data-builder-reveal="legendary"])) {--collector-ink:#ffd078;--collector-depth:#64481e}
.cv-collector-frame:is([data-rarity="mythic"],[data-tier="mythic"],:has(> [data-builder-reveal="mythic"])) {--collector-ink:#f68bdc;--collector-depth:#631957}
.cv-collector-frame:is([data-rarity="secret"],[data-tier="secret"],:has(> [data-builder-reveal="secret"])) {--collector-ink:#c6f6ed;--collector-depth:#293744}
.cv-collector-frame {
  position:relative;
  border-color:var(--collector-ink);
  background-image:linear-gradient(142deg,var(--collector-depth),#101624 58%,var(--collector-depth));
  box-shadow:inset 0 0 0 2px #0c121d,inset 0 0 0 3px color-mix(in srgb,var(--collector-ink) 36%,transparent),0 5px 12px #070b1780;
}
.cv-collector-frame:not(.cv-draft-card,.cv-rival-card) {padding:4px}
.cv-collector-frame::after {
  content:"";
  pointer-events:none;
  position:absolute;
  z-index:4;
  inset:3px;
  border:0;
  border-radius:inherit;
  box-shadow:none;
  opacity:.93;
  background:
    linear-gradient(96deg,var(--collector-highlight),transparent) left top/25% 2px,
    linear-gradient(276deg,var(--collector-highlight),transparent) right top/25% 2px,
    linear-gradient(96deg,var(--collector-highlight),transparent) left bottom/24% 2px,
    linear-gradient(276deg,var(--collector-highlight),transparent) right bottom/24% 2px,
    linear-gradient(var(--collector-highlight),transparent) left top/2px 17%,
    linear-gradient(var(--collector-highlight),transparent) right top/2px 17%,
    linear-gradient(0deg,var(--collector-highlight),transparent) left bottom/2px 17%,
    linear-gradient(0deg,var(--collector-highlight),transparent) right bottom/2px 17%;
  background-repeat:no-repeat;
}
.cv-draft-card.cv-collector-frame {border-color:var(--collector-ink)}
.cv-draft-card.cv-collector-frame[aria-pressed="true"] {border-color:#a5ffe8;box-shadow:0 0 0 2px #70f4d9,0 0 18px #55dec77a}
.cv-collector-frame :is(figcaption,.character-body,.duel-description) {background-image:linear-gradient(125deg,var(--collector-depth),#101622 62%);position:relative}
.cv-collector-frame :is(.tier,.cinema-tier,.cv-draft-rarity) {color:var(--collector-highlight)}
.cv-collector-frame :is(img,.cv-portrait-fallback) {border-radius:4px}
.cv-collector-frame .cv-portrait-fallback {font-size:clamp(.65rem,2vw,.9rem)}
.cv-collector-frame:is([data-rarity="legendary"],[data-tier="legendary"],[data-rarity="mythic"],[data-tier="mythic"],[data-rarity="secret"],[data-tier="secret"])::after {
  border-inline:1px solid var(--collector-ink);
}
.cv-collector-frame:is(:hover,:focus-visible) {--collector-pale:#fff8da}
