/* Player-facing card library and rarity inspection. */

.collection-library {
  --cl-gold: #dfbb68;
  --cl-paper: #f7f0df;
  --cl-muted: rgba(239, 226, 237, .66);
  min-height: 100vh;
  color: var(--cl-paper);
  background:
    radial-gradient(950px 620px at 12% 5%, rgba(111, 34, 95, .25), transparent 70%),
    radial-gradient(800px 500px at 88% 25%, rgba(45, 55, 91, .19), transparent 72%),
    linear-gradient(145deg, #160d1b, #0a0b13 58%, #090d12);
}

.collection-library.inspecting {
  height: 100vh;
  overflow: hidden;
}

.cl-topbar {
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(226, 193, 122, .13);
  background: rgba(7, 7, 13, .54);
  backdrop-filter: blur(18px);
}

.cl-back,
.cl-clear {
  width: max-content;
  border: 0;
  color: rgba(249, 241, 226, .72);
  background: transparent;
  font: 700 11px/1 var(--font-ui);
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
}

.cl-back:hover,
.cl-clear:hover {
  color: #fff;
}

.cl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.cl-brand > span:first-child {
  width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--cl-gold);
  border: 1px solid rgba(223, 187, 104, .48);
  transform: rotate(45deg);
}

.cl-brand > span:first-child::first-letter {
  transform: rotate(-45deg);
}

.cl-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.cl-brand b {
  font: 600 17px/1.1 Georgia, "Times New Roman", serif;
}

.cl-brand small,
.cl-top-summary span {
  color: var(--cl-muted);
  font: 700 9px/1.2 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cl-top-summary {
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cl-top-summary b {
  color: var(--cl-gold);
  font: 500 24px/1 Georgia, "Times New Roman", serif;
}

.cl-main {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 86px) clamp(18px, 4vw, 64px) 80px;
}

.cl-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 60px;
  align-items: end;
  margin-bottom: 44px;
}

.cl-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8a9c9;
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cl-kicker span {
  width: 34px;
  height: 1px;
  background: currentColor;
}

.cl-intro h1 {
  margin: 15px 0 11px;
  font: 500 clamp(44px, 5.4vw, 76px)/.96 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.cl-intro > p {
  max-width: 680px;
  margin: 0;
  color: var(--cl-muted);
  font: 400 17px/1.6 Georgia, "Times New Roman", serif;
}

.cl-ledger {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(223, 187, 104, .19);
  background: rgba(10, 10, 18, .35);
}

.cl-ledger div {
  min-width: 115px;
  padding: 18px 20px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.cl-ledger div + div {
  border-left: 1px solid rgba(223, 187, 104, .15);
}

.cl-ledger strong {
  color: var(--cl-paper);
  font: 500 28px/1 Georgia, "Times New Roman", serif;
}

.cl-ledger span {
  color: var(--cl-muted);
  font: 700 8px/1 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cl-browser {
  min-width: 0;
}

.cl-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(4, minmax(135px, .72fr)) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid rgba(222, 192, 127, .14);
  background: rgba(12, 10, 18, .89);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.cl-toolbar label {
  display: grid;
  gap: 6px;
}

.cl-toolbar label > span {
  color: rgba(241, 225, 236, .55);
  font: 700 8px/1 var(--font-ui);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cl-toolbar input,
.cl-toolbar select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(236, 213, 171, .14);
  border-radius: 2px;
  color: #f5edf2;
  background: rgba(5, 7, 12, .78);
  font: 500 11px/1 var(--font-ui);
}

.cl-toolbar input:focus,
.cl-toolbar select:focus {
  outline: 1px solid rgba(223, 187, 104, .66);
  border-color: transparent;
}

.cl-clear {
  height: 38px;
  padding-inline: 8px;
}

.cl-results-row {
  min-height: 50px;
  padding: 0 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: rgba(239, 226, 237, .52);
  font: 600 10px/1.3 var(--font-ui);
  letter-spacing: .07em;
}

.cl-results-row p {
  margin: 0;
}

.cl-results-row b {
  color: var(--cl-gold);
}

.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
  align-items: start;
}

.cl-card {
  position: relative;
  min-width: 0;
  padding: 0;
  display: grid;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
}

.cl-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -7px -7px 49px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .015);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity var(--t-med), transform var(--t-med), border-color var(--t-med);
}

.cl-card:hover::before,
.cl-card:focus-visible::before {
  border-color: rgba(232, 210, 166, .18);
  opacity: 1;
  transform: none;
}

.cl-card:focus-visible {
  outline: none;
}

.cl-card-art {
  position: relative;
  display: block;
  transition: transform var(--t-med) var(--ease-out), filter var(--t-med);
}

.cl-card-art svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  box-shadow: 0 18px 32px rgba(0, 0, 0, .44);
}

.cl-card:hover .cl-card-art,
.cl-card:focus-visible .cl-card-art {
  z-index: 2;
  transform: translateY(-7px) scale(1.025);
}

.cl-card[data-rarity="rare"]:hover .cl-card-art,
.cl-card[data-rarity="epic"]:hover .cl-card-art {
  filter: drop-shadow(0 0 12px rgba(165, 107, 224, .27));
}

.cl-card[data-rarity="legendary"]:hover .cl-card-art {
  filter: drop-shadow(0 0 15px rgba(232, 189, 99, .38));
}

.cl-card[data-rarity="secret"]:hover .cl-card-art {
  filter: drop-shadow(0 0 15px rgba(225, 237, 255, .38));
}

.cl-card-copy {
  position: absolute;
  z-index: 4;
  top: 9px;
  right: 9px;
  min-width: 28px;
  padding: 5px 7px;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(3, 4, 8, .85);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .38);
  font: 700 10px/1 var(--font-ui);
}

.cl-card-caption {
  padding: 11px 3px 0;
  display: grid;
  gap: 5px;
}

.cl-card-caption b {
  overflow: hidden;
  color: #f7f1e7;
  font: 500 15px/1.2 Georgia, "Times New Roman", serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-card-caption > span {
  color: rgba(239, 226, 237, .5);
  font: 700 8px/1 var(--font-ui);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.collection-library [data-r="common"] { color: #a9adb2; }
.collection-library [data-r="uncommon"] { color: #6fa9df; }
.collection-library [data-r="rare"] { color: #b382e5; }
.collection-library [data-r="epic"] { color: #e47067; }
.collection-library [data-r="legendary"] { color: #e8bd63; }
.collection-library [data-r="secret"] { color: #f5f8ff; }

.cl-card-caption i {
  font-style: normal;
}

.cl-empty {
  grid-column: 1 / -1;
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: var(--cl-muted);
  text-align: center;
  border: 1px dashed rgba(226, 193, 122, .18);
}

.cl-empty > span {
  color: var(--cl-gold);
  font-size: 32px;
}

.cl-empty h2,
.cl-empty p {
  margin: 0;
}

.cl-empty h2 {
  color: var(--cl-paper);
  font: 500 24px/1.2 Georgia, "Times New Roman", serif;
}

.cl-empty p {
  font: 12px/1.5 var(--font-ui);
}

.cl-empty button {
  margin-top: 7px;
  padding: 9px 14px;
  color: var(--cl-gold);
  border: 1px solid rgba(223, 187, 104, .35);
  background: transparent;
  cursor: pointer;
}

/* ------------------------------------------------------------------ *
 * Full rarity inspection
 * ------------------------------------------------------------------ */

.cl-inspect {
  --cl-rarity: #a9adb2;
  --cl-rarity-soft: rgba(169, 173, 178, .2);
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
}

.cl-inspect[data-rarity="uncommon"] {
  --cl-rarity: #6fa9df;
  --cl-rarity-soft: rgba(111, 169, 223, .25);
}
.cl-inspect[data-rarity="rare"] {
  --cl-rarity: #b382e5;
  --cl-rarity-soft: rgba(179, 130, 229, .27);
}
.cl-inspect[data-rarity="epic"] {
  --cl-rarity: #e47067;
  --cl-rarity-soft: rgba(228, 112, 103, .29);
}
.cl-inspect[data-rarity="legendary"] {
  --cl-rarity: #e8bd63;
  --cl-rarity-soft: rgba(232, 189, 99, .31);
}
.cl-inspect[data-rarity="secret"] {
  --cl-rarity: #f5f8ff;
  --cl-rarity-soft: rgba(213, 229, 255, .22);
}

.cl-inspect-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background:
    radial-gradient(circle at 45% 45%, var(--cl-rarity-soft), transparent 34%),
    rgba(2, 3, 7, .91);
  backdrop-filter: blur(18px);
  cursor: zoom-out;
  animation: cl-fade-in 260ms ease-out both;
}

.cl-inspect-panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 32px);
  padding: clamp(24px, 3.7vw, 52px);
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(270px, 1fr);
  align-items: center;
  gap: clamp(35px, 6vw, 86px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--cl-rarity) 40%, transparent);
  background:
    linear-gradient(145deg, rgba(23, 18, 29, .96), rgba(7, 9, 14, .97)),
    #080a0f;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .72), 0 0 65px var(--cl-rarity-soft);
  animation: cl-panel-in 420ms var(--ease-out) both;
}

.cl-inspect[data-rarity="secret"] .cl-inspect-panel {
  color: #f7f9fc;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .05), transparent 38%),
    linear-gradient(145deg, rgba(2, 3, 5, .99), rgba(8, 10, 13, .98));
  box-shadow: 0 40px 110px #000, 0 0 70px rgba(213, 229, 255, .2);
}

.cl-inspect-close {
  position: absolute;
  z-index: 20;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  font: 300 27px/1 sans-serif;
  cursor: pointer;
}

.cl-inspect-close:hover,
.cl-inspect-close:focus-visible {
  color: #fff;
  border-color: var(--cl-rarity);
  outline: none;
}

.cl-inspect-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.cl-inspect-stage::before,
.cl-inspect-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.cl-inspect-stage::before {
  inset: -10%;
  border: 1px solid color-mix(in srgb, var(--cl-rarity) 38%, transparent);
  opacity: .3;
}

.cl-inspect-stage::after {
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cl-rarity-soft), transparent 67%);
  filter: blur(7px);
  animation: cl-aura-breathe 3.8s ease-in-out infinite;
}

.cl-inspect-aura {
  position: absolute;
  z-index: -1;
  inset: -20%;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.cl-inspect-card {
  position: relative;
  z-index: 3;
  width: min(100%, 410px);
  animation: cl-card-arrive 600ms var(--ease-out) both;
}

.cl-inspect-card svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .72), 0 0 0 1px var(--cl-rarity);
}

.cl-inspect[data-rarity="uncommon"] .cl-inspect-card::after {
  content: '';
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, transparent 0 40%, rgba(165, 220, 255, .42) 49%,
    rgba(255, 255, 255, .64) 50%, transparent 56%);
  pointer-events: none;
  animation: cl-scan 2.8s ease-in-out infinite;
}

.cl-inspect[data-rarity="rare"] .cl-inspect-aura {
  inset: -14%;
  display: block;
  opacity: .9;
  border: 1px dashed rgba(179, 130, 229, .8);
  box-shadow: 0 0 34px rgba(179, 130, 229, .25);
  animation: cl-rarity-turn 8s linear infinite;
}

.cl-inspect[data-rarity="epic"] .cl-inspect-stage::before {
  inset: 48% -28% auto;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--cl-rarity), transparent);
  opacity: 0;
  animation: cl-epic-impact 2.6s ease-out infinite;
}

.cl-inspect[data-rarity="epic"] .cl-inspect-card {
  filter: drop-shadow(0 0 23px rgba(228, 112, 103, .38));
}

.cl-inspect[data-rarity="legendary"] .cl-inspect-aura {
  display: block;
  inset: -43%;
  opacity: .78;
  background: repeating-conic-gradient(
    from 0deg, rgba(232, 189, 99, .22) 0 4deg, transparent 4deg 17deg);
  mask-image: radial-gradient(circle, transparent 0 27%, #000 42%, transparent 72%);
  animation: cl-rarity-turn 20s linear infinite;
}

.cl-inspect[data-rarity="legendary"] .cl-inspect-card {
  filter: drop-shadow(0 0 30px rgba(232, 189, 99, .42));
}

.cl-inspect[data-rarity="secret"] .cl-inspect-aura {
  display: block;
  inset: -26%;
  opacity: .72;
  background:
    radial-gradient(ellipse at 35% 65%, rgba(255, 255, 255, .15), transparent 42%),
    radial-gradient(ellipse at 70% 35%, rgba(178, 203, 228, .11), transparent 44%);
  filter: blur(13px);
  animation: cl-secret-fog 7s ease-in-out infinite alternate;
}

.cl-inspect[data-rarity="secret"] .cl-inspect-card {
  filter: drop-shadow(0 0 30px rgba(225, 237, 255, .28));
}

.cl-particles {
  position: absolute;
  z-index: 1;
  inset: -18%;
  pointer-events: none;
}

.cl-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cl-rarity);
  box-shadow: 0 0 10px var(--cl-rarity);
  opacity: 0;
}

.cl-inspect[data-rarity="epic"] .cl-particle,
.cl-inspect[data-rarity="legendary"] .cl-particle,
.cl-inspect[data-rarity="secret"] .cl-particle {
  animation: cl-particle-drift 3.2s ease-in-out var(--delay) infinite;
}

.cl-inspect-copy {
  min-width: 0;
}

.cl-inspect-kicker {
  color: rgba(240, 227, 236, .54);
  font: 700 9px/1 var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cl-inspect-copy h2 {
  margin: 12px 0 11px;
  color: #fff;
  font: 500 clamp(34px, 4.5vw, 58px)/.97 Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.cl-rarity-name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cl-rarity);
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cl-rarity-name span {
  width: 23px;
  height: 1px;
  background: currentColor;
}

.cl-inspect-ability {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(243, 233, 240, .66);
  font: italic 16px/1.55 Georgia, "Times New Roman", serif;
}

.cl-owned-box {
  margin-top: 27px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .025);
}

.cl-owned-box div {
  min-width: 0;
  padding: 14px 12px;
  display: grid;
  gap: 5px;
}

.cl-owned-box div + div {
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.cl-owned-box strong {
  color: #fff;
  font: 500 22px/1 Georgia, "Times New Roman", serif;
}

.cl-owned-box span,
.cl-tier-select > span {
  color: rgba(240, 227, 236, .48);
  font: 700 8px/1.2 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cl-tier-select {
  margin-top: 23px;
  display: grid;
  gap: 10px;
}

.cl-tier-select > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cl-tier-select button {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .025);
  font: 700 8px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cl-tier-select button:hover,
.cl-tier-select button[aria-pressed="true"] {
  color: currentColor;
  border-color: currentColor;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 16px color-mix(in srgb, currentColor 20%, transparent);
}

.cl-duplicate-progress {
  margin-top: 24px;
  display: grid;
  gap: 9px;
}

.cl-duplicate-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(240, 227, 236, .52);
  font: 600 9px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cl-duplicate-progress b {
  color: var(--cl-rarity);
}

.cl-duplicate-progress > i {
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, .09);
}

.cl-duplicate-progress > i span {
  height: 100%;
  display: block;
  background: var(--cl-rarity);
  box-shadow: 0 0 10px var(--cl-rarity);
}

.cl-inspect-hint {
  margin: 11px 0 0;
  color: rgba(240, 227, 236, .37);
  font: 10px/1.4 var(--font-ui);
}

@keyframes cl-fade-in {
  from { opacity: 0; }
}

@keyframes cl-panel-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
}

@keyframes cl-card-arrive {
  from { opacity: 0; transform: translateY(22px) rotateX(5deg) scale(.97); }
}

@keyframes cl-aura-breathe {
  50% { opacity: .55; transform: scale(1.04); }
}

@keyframes cl-scan {
  0%, 12% { transform: translateY(-80%); opacity: 0; }
  25% { opacity: 1; }
  52%, 100% { transform: translateY(80%); opacity: 0; }
}

@keyframes cl-rarity-turn {
  to { transform: rotate(360deg); }
}

@keyframes cl-epic-impact {
  0%, 55% { opacity: 0; transform: scaleX(.15); }
  67% { opacity: 1; transform: scaleX(1); }
  82%, 100% { opacity: 0; transform: scaleX(1.12); }
}

@keyframes cl-secret-fog {
  from { transform: translate3d(-3%, 2%, 0) scale(.96); }
  to { transform: translate3d(3%, -2%, 0) scale(1.06); }
}

@keyframes cl-particle-drift {
  0%, 100% { opacity: 0; transform: translateY(8px) scale(.6); }
  35%, 65% { opacity: .7; }
  70% { transform: translateY(-12px) scale(1.2); }
}

.collection-library.reduced-motion .cl-inspect *,
.collection-library.reduced-motion .cl-card-art,
.collection-library.reduced-motion .cl-card::before {
  animation: none !important;
  transition-duration: 1ms !important;
}

@media (prefers-reduced-motion: reduce) {
  .collection-library .cl-inspect *,
  .collection-library .cl-card-art,
  .collection-library .cl-card::before {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1080px) {
  .cl-toolbar {
    grid-template-columns: 1.3fr repeat(2, 1fr);
  }

  .cl-clear {
    justify-self: start;
  }

  .cl-intro {
    display: block;
  }

  .cl-ledger {
    width: max-content;
    max-width: 100%;
    margin-top: 26px;
  }
}

@media (max-width: 760px) {
  .cl-topbar {
    grid-template-columns: auto 1fr;
  }

  .cl-brand {
    justify-self: end;
  }

  .cl-top-summary {
    display: none;
  }

  .cl-main {
    padding-top: 40px;
  }

  .cl-ledger {
    width: 100%;
  }

  .cl-ledger div {
    min-width: 0;
    flex: 1;
    padding-inline: 12px;
  }

  .cl-toolbar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .cl-search {
    grid-column: 1 / -1;
  }

  .cl-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }

  .cl-inspect {
    padding: 0;
  }

  .cl-inspect-panel {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    padding: 62px 24px 34px;
    grid-template-columns: 1fr;
    gap: 32px;
    align-content: start;
    border: 0;
  }

  .cl-inspect-card {
    width: min(78vw, 330px);
  }

  .cl-inspect-copy {
    text-align: center;
  }

  .cl-rarity-name,
  .cl-tier-select > div {
    justify-content: center;
  }

  .cl-inspect-ability {
    margin-inline: auto;
  }

  .cl-duplicate-progress > div {
    text-align: left;
  }
}

@media (max-width: 450px) {
  .cl-brand > span:first-child {
    display: none;
  }

  .cl-brand b {
    font-size: 15px;
  }

  .cl-toolbar {
    grid-template-columns: 1fr;
  }

  .cl-search {
    grid-column: auto;
  }

  .cl-results-row p:last-child {
    display: none;
  }

  .cl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 12px;
  }

  .cl-owned-box {
    grid-template-columns: 1fr;
  }

  .cl-owned-box div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
}
