.cv-library-tools { margin-block-end: 14px; }
.catalog-filters { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(112px, 1fr)) auto; gap: 8px; }
.cv-filter-options { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cv-compare-tray { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 0; padding: 14px; background: #131e33; border: 1px solid #33476c; border-radius: 12px; }
.cv-compare-tray > div { flex: 1 1 175px; min-width: 0; }
.cv-compare-tray p { margin: 4px 0 0; overflow-wrap: anywhere; }
.cv-catalog-count { margin-block: 12px 8px; }
.cv-library-item { min-width: 0; display: grid; grid-template-rows: 1fr auto; gap: 5px; }
.cv-compare-toggle[aria-pressed="true"] { color: #a9f4e8; background: #19424a; border-color: #4b887f; }
.cv-compare-pair { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 8px; }
.cv-compare-card { overflow: hidden; border: 1px solid #33476c; border-block-start: 3px solid var(--rarity,#8da8c2); background: #122037; border-radius: 10px; }
.cv-compare-card > :is(img,.card-illu) { display: grid; width: 100%; aspect-ratio: 1.35; height: auto; object-fit: contain; background-color: #0d192e; }
.cv-compare-card > div { display: grid; align-content: start; gap: 4px; padding: 9px; overflow-wrap: anywhere; }
.cv-compare-card .tier { width: max-content; max-width: 100%; }
.cv-compare-card p { color: var(--muted); margin: 0; font-size: .78rem; }
.cv-compare-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 12px; overflow-wrap: anywhere; text-align: center; }
.cv-compare-table caption { text-align: start; font-weight: 800; }
.cv-compare-table :is(td,th) { padding: 6px 4px; border-bottom: 1px solid #334663; }
.cv-compare-table th { font-size: .74rem; color: #becee6; }
.cv-compare-table td { font-weight: 700; font-variant-numeric: tabular-nums; }
.cv-compare-table td[data-higher="true"] { color: #a8f2cb; background: #254f455e; }
.card-illu { --cover-ink: var(--rarity,var(--card-tint)); background: radial-gradient(ellipse at center,color-mix(in srgb,var(--cover-ink) 22%,transparent),transparent 68%),repeating-linear-gradient(130deg,transparent 0 18px,#ffffff0b 18px 19px),#102037; }
.card-illu::before { inset: 10% 13%; border-radius: 12px; border-color: color-mix(in srgb,var(--cover-ink) 46%,transparent); transform: none; }
.card-illu b { color: var(--cover-ink); border-color: color-mix(in srgb,var(--cover-ink) 45%,transparent); }
.cv-pack-cost,.cv-pack-guarantee { padding: 11px; border: 1px solid #344963; border-radius: 10px; background: #10213a; margin: 10px 0; }
.cv-pack-cost { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.cv-pack-cost strong { color: #ffdd98; }
.cv-pack-cost small,.cv-pack-guarantee small { color: #b7c8e0; }
.cv-pack-guarantee { display: grid; gap: 6px; }
.cv-pack-totals { display: flex; flex-wrap: wrap; gap: 7px; margin-block-end: 12px; }
.cv-pack-totals span,.cv-draw-status { color: #ffdc9f; background: #4f3d2c; border-radius: 6px; padding: 5px 8px; font-weight: 700; }
.cv-pack-totals [data-new="true"],.cv-draw-status[data-new="true"] { color: #b2f1df; background: #1f4643; }
.cv-draw-status { display: block; font-size: .72rem; overflow-wrap: anywhere; }
.cv-offer-price { display: grid; gap: 2px; justify-content: start; }
.cv-offer-price small { font-weight: 700; }
.cv-mode-progress-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.cv-mode-progress-card[data-active="true"] { border-color: #59b5bf; background: #152d41; }
.cv-mode-progress-card h3 { margin: 0 0 7px; }
.cv-mode-rank { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cv-mode-rank b { font-variant-numeric: tabular-nums; }
.cv-mode-rank small { color: var(--muted); }
@media (max-width: 700px) {
  .catalog-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-filters :is(input[type="search"],button[type="submit"]) { grid-column: 1 / -1; }
}
@media (max-width: 510px) {
  .cv-mode-progress-grid { grid-template-columns: 1fr; }
  .cv-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
}
.cv-world-progress { margin-block:8px 14px; }
.cv-world-progress summary { font-weight:750; cursor:pointer; }
.cv-world-progress>div { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); gap:8px; margin-block-start:8px; }
.cv-world-progress article { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px; font-size:.8rem; }
.cv-world-progress strong { min-width:0; overflow-wrap:anywhere; }
.cv-world-progress progress { width:100%; grid-column:1/-1; height:6px; accent-color:var(--aqua); }
.cv-rename-offer {
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px 18px;
  border-inline-start:2px solid #e6b977; background:linear-gradient(135deg,#1d2237,#10192a 72%);
}
.cv-rename-offer p,.cv-account-items p { margin-bottom:8px; }
.cv-account-items .row { min-height:44px; gap:8px; }
.cv-account-form { max-width:420px; }

#account {min-width:0;max-inline-size:9rem}
#account bdi {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cv-profile-identity {display:flex;align-items:center;gap:14px;margin-block-end:14px}
.cv-profile-identity > div:last-child {min-width:0}
.cv-profile-identity strong {display:block;font-size:1.2rem;overflow-wrap:anywhere}
.cv-profile-identity p {margin-block:4px}
.cv-profile-identity .profile-frame {flex:0 0 auto}
.cv-profile-avatar {display:block;inline-size:82px;block-size:82px;border-radius:7px;object-fit:cover}
.cv-profile-initial {display:grid;place-items:center;background:#1a3245;color:#bce6e8;font-size:2rem;font-weight:800}
.cv-profile-avatar.card-illu {aspect-ratio:1;display:grid;place-content:center;text-align:center;overflow:hidden}
.cv-profile-avatar.card-illu b {width:auto;aspect-ratio:auto;padding:2px;font-size:.7rem}
.cv-profile-avatar.card-illu small {display:none}
.cv-avatar-preview {justify-self:center}
.cv-avatar-preview .cv-profile-avatar {inline-size:118px;block-size:118px}
@media (max-width:550px) {
  #account {max-inline-size:5.8rem}
  .cv-profile-identity {gap:10px}
}

@media (max-width:420px) {
  .bar-inner {grid-template-columns:minmax(0,1fr) minmax(0,54%);column-gap:6px}
  .bar-inner .signature {gap:6px}
  .signature .mark {width:25px;margin:3px}
  .signature b {font-size:11.5px;letter-spacing:.35px}
  .bar-actions {min-width:0}
  #wallet {display:grid;justify-items:end;flex:none;gap:0}
  #wallet a {min-height:20px}
  #account {flex:0 1 auto}
}

.cv-admin-tabs {
  position:sticky;inset-block-start:0;z-index:4;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
  gap:6px;padding:7px;margin-block:0 14px;background:#111b2a;border:1px solid #2d4056;border-radius:9px;
}
.cv-admin-tabs button {
  min-inline-size:0;min-block-size:44px;padding:5px 7px;border:1px solid transparent;border-radius:6px;
  background:#182639;color:#c4d2e5;font:inherit;font-weight:750;line-height:1.3;cursor:pointer;
}
.cv-admin-tabs button:hover {background:#223650}
.cv-admin-tabs button[aria-selected="true"] {background:#14464b;border-color:#5fcbc4;color:#e4fffc}
.cv-admin-tabs button:focus-visible {outline:2px solid #a4f3e7;outline-offset:2px}
.cv-admin-panel[hidden] {display:none}
.cv-admin-panel {min-inline-size:0;scroll-margin-block-start:100px}
.cv-admin-panel h2 {margin:0 0 12px}
.cv-admin-columns {align-items:start}
.cv-admin-account .cv-profile-identity {align-items:center;margin-block-end:15px}
.cv-admin-account h2 {margin:0;overflow-wrap:anywhere}
.cv-admin-account small,.cv-admin-player small {color:#afc3d8}
.cv-admin-balances {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 15px}
.cv-admin-balances div {background:#132338;border:1px solid #324860;border-radius:8px;padding:8px 12px;min-inline-size:0}
.cv-admin-balances dt {font-size:.8rem;color:#b2c9df}
.cv-admin-balances dd {margin:0;font-size:clamp(1rem,4vw,1.45rem);font-weight:800;overflow-wrap:anywhere}
.cv-admin-balances div:first-child dd {color:#f5cf83}
.cv-admin-balances div:last-child dd {color:#cabaff}
.cv-admin-account-actions .button,.cv-admin-player .button,.cv-admin-search .button {min-block-size:44px}
.cv-admin-search {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-block:8px 14px}
.cv-admin-search input {min-inline-size:0;min-block-size:44px}
.cv-admin-player-results {display:grid;gap:7px}
.cv-admin-player {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 15px;
  background:#121d2d;border:1px solid #2c4054;border-radius:8px;padding:9px 12px;
}
.cv-admin-player-name {display:grid;gap:2px;min-inline-size:0;overflow-wrap:anywhere}
.cv-admin-player .actions:empty {display:none}
.cv-admin-details > summary {cursor:pointer;font-weight:800}
.cv-admin-details[open] > summary {margin-block-end:12px}
@media (max-width:690px) {
  .cv-admin-tabs {grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .cv-admin-tabs button {font-size:.77rem;padding:4px}
}

.cv-portrait-fallback {--portrait-color:#6ef2dc;position:relative;isolation:isolate;display:grid;place-items:center;align-content:center;gap:.35em;overflow:hidden;padding:.5em;box-sizing:border-box;text-align:center;color:#f1f7fc;background:radial-gradient(ellipse at 50% 23%,color-mix(in srgb,var(--portrait-color) 32%,#111a2b),transparent 80%),repeating-linear-gradient(133deg,transparent 0 12px,#fbfffd0a 12px 13px),#101725}
.cv-portrait-fallback[data-group="Anime"] {--portrait-color:#bd8af5}
.cv-portrait-fallback[data-world="Marvel"] {--portrait-color:#ff899b}
.cv-portrait-fallback[data-world="DC"] {--portrait-color:#7ab7ff}
.cv-portrait-fallback[data-group="Games"] {--portrait-color:#69eaaa}
.cv-portrait-fallback[data-group="Cartoons"] {--portrait-color:#f9c471}
.cv-portrait-fallback > i {display:grid;place-items:center;min-width:2.35em;min-height:2.35em;padding:.28em;font:900 1.2em/1 system-ui,sans-serif;font-style:normal;color:var(--portrait-color);border:1px solid currentColor;border-radius:.35em;box-shadow:inset 0 0 0 3px #102137,inset 0 0 0 4px #ffffff24;max-width:100%}
.card-illu.cv-portrait-fallback > b {display:block;max-width:100%;width:auto;aspect-ratio:auto;overflow-wrap:anywhere;padding:0;border:0;background:none;color:inherit;box-shadow:none;font-size:clamp(.63rem,1.85vw,.89rem);line-height:1.22}
.card-illu.cv-portrait-fallback > small {display:block;max-width:100%;color:var(--portrait-color);font-size:.62rem;line-height:1.2;overflow-wrap:anywhere}
.cv-live-duel .mask .cv-portrait-fallback {display:grid}
.cv-opening-card figure .cv-portrait-fallback {display:grid}
.cv-slot-art .cv-portrait-fallback,.cv-live-duel-recap .cv-portrait-fallback {display:grid;padding:0;gap:0}
.cv-slot-art .cv-portrait-fallback > i,.cv-live-duel-recap .cv-portrait-fallback > i {padding:0;min-width:0;min-height:0;border:0;box-shadow:none;font-size:.63rem}
.cv-slot-art .cv-portrait-fallback > :is(b,small),.cv-live-duel-recap .cv-portrait-fallback > :is(b,small) {display:none}
.cv-item-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,155px),1fr));gap:10px;margin-block:12px}
.cv-item-card {display:grid;gap:8px;text-align:start;padding:8px;color:var(--text);background:var(--panel2);border:1px solid var(--rarity,var(--edge));border-radius:10px}
.cv-item-art {display:grid;place-items:center;aspect-ratio:2;background:var(--grad-panel,var(--panel2));border-radius:8px;overflow:hidden}
.cv-item-art img {display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
.cv-item-art[data-item-art="gem"] {grid-template:minmax(0,1fr)/minmax(0,1fr);aspect-ratio:1.2;background:none}
.cv-shop-visual .cv-item-art[data-item-art="gem"] {height:100%;min-height:0}
.cv-topup-packs .cv-item-art[data-item-art="gem"] {height:76px;aspect-ratio:auto}
.cv-item-art .cv-icon {width:42px;height:42px;color:var(--gold)}
.cv-item-card bdi {color:var(--gold)}
