/* ============================================================================
   POKÉSPIRE · COLLECTION HUB LIGHT PORCELAIN & POKÉDEX-ALIGNED CARD SKINS
   - Primary Tab Order: 1. 外观异色 (default: 卡面皮肤) -> 2. 冠军殿堂 -> 3. 成就
   - 卡面皮肤 (.col-skins-dex-grid): 1:1 pixel-matched to .sts-dex-grid
     (4-col / 5-col >= 1580px / 3-col <= 1120px, 24px gap, bare full-width
     .poke-card.ptcg-v2 with compact bottom caption/equip bar)
   - All other views use pure px typography & natural full-bodied proportions
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. SHELL, LUMINOUS SKY CANVAS & SIDEBAR
   ---------------------------------------------------------------------------- */
body.twf-collection-sliding #title-waterfall-camera {
  will-change: translate;
}

#app .collection-ui.collection-meta.col-wall-hub {
  --collection-ink: #0f172a;
  --collection-muted: #475569;
  --collection-line: rgba(148, 163, 184, 0.28);
  --collection-panel: rgba(255, 255, 255, 0.92);
  --collection-control: #f8fafc;
  --collection-yellow: #d97706;
  --collection-highlight: #0369a1;
  --collection-background:
    radial-gradient(ellipse 75% 65% at 18% 14%, rgba(255, 255, 255, 0.85) 0%, transparent 62%),
    radial-gradient(ellipse 68% 60% at 84% 84%, rgba(255, 255, 255, 0.6) 0%, transparent 65%),
    linear-gradient(145deg, var(--twf-bg-a, #f7faff) 0%, var(--twf-bg-b, #e7f0fb) 52%, var(--twf-bg-c, #f2f7fd) 100%);
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  background: transparent !important;
  color: var(--collection-ink);
}

/* Separate GPU-composited light backdrop matching active waterfall theme so
   in-place waterfall enter/exit handoff has zero color jump or screen cut */
#app .collection-ui.collection-meta.col-wall-hub::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--collection-background);
  opacity: 1;
}

/* Waterfall enter morph states (mirrors .sts-dex-overlay.is-from-waterfall) */
#app .collection-ui.collection-meta.col-wall-hub.is-from-waterfall::before {
  opacity: 0;
  transition: none;
}

#app .collection-ui.collection-meta.col-wall-hub.is-from-waterfall .col-wall-main {
  opacity: 0;
  pointer-events: none;
}

#app .collection-ui.collection-meta.col-wall-hub.is-from-waterfall .col-wall-sidebar {
  opacity: 0;
  transform: translate3d(-44px, 0, 0);
  will-change: transform, opacity;
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.14s,
    opacity 0.34s ease-out 0.14s;
}

#app .collection-ui.collection-meta.col-wall-hub.is-from-waterfall .col-wall-count {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.34s ease 0.72s, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.72s;
}

body.twf-dex-rush #app .collection-ui.collection-meta.col-wall-hub.is-from-waterfall .col-wall-sidebar {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body.twf-dex-rush #app .collection-ui.collection-meta.col-wall-hub.is-from-waterfall .col-wall-count {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#app .collection-ui.collection-meta.col-wall-hub.is-from-waterfall.is-waterfall-landed::before {
  opacity: 1;
  transition: none;
}

#app .collection-ui.collection-meta.col-wall-hub.is-from-waterfall.is-waterfall-landed .col-wall-main {
  opacity: 1;
  pointer-events: auto;
}

#app .collection-ui.collection-meta.col-wall-hub.is-from-waterfall.is-waterfall-landed .col-wall-sidebar,
#app .collection-ui.collection-meta.col-wall-hub.is-from-waterfall.is-waterfall-landed .col-wall-count {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Seamless exit back to Title Waterfall */
#app .collection-ui.collection-meta.col-wall-hub.is-exiting-to-waterfall {
  pointer-events: none !important;
}

#app .collection-ui.collection-meta.col-wall-hub.is-exiting-to-waterfall::before {
  opacity: 0 !important;
  transition: none !important;
}

#app .collection-ui.collection-meta.col-wall-hub.is-exiting-to-waterfall:not(.is-wall-rush-exit) .col-wall-main {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
}

#app .collection-ui.collection-meta.col-wall-hub.is-exiting-to-waterfall.is-wall-rush-exit .col-wall-main {
  overflow: hidden !important;
  pointer-events: none !important;
}

#app .collection-ui.collection-meta.col-wall-hub.is-exiting-to-waterfall .col-wall-sidebar {
  opacity: 0 !important;
  transform: translate3d(-52px, 0, 0) !important;
  transition:
    transform 0.24s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.20s ease-out !important;
}

#app .collection-ui.collection-meta.col-wall-hub.is-exiting-to-waterfall .col-wall-count {
  opacity: 0 !important;
  transform: translate3d(0, 10px, 0) !important;
  transition: opacity 0.16s ease-out, transform 0.18s ease-out !important;
}

#app .collection-meta :is(button, summary, input, select):focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.sr-only-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Floating Rounded Porcelain Sidebar (Aligned with .sts-dex-sidebar) */
#app .collection-meta .col-wall-sidebar {
  margin: 18px 0 18px 18px;
  padding: 16px 14px 14px;
  gap: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 20px 46px -18px rgba(15, 42, 78, 0.18),
    0 4px 12px -4px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#app .collection-meta .meta-sidebar-card {
  flex-shrink: 0;
  padding: 10px 11px;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 6px 16px -10px rgba(15, 42, 78, 0.12);
}

#app .collection-meta .meta-sidebar-avatar {
  width: 42px !important;
  height: 42px !important;
}

#app .collection-meta .meta-sidebar-avatar img {
  width: 30px !important;
  height: 30px !important;
}

#app .collection-meta .meta-sidebar-profile strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

#app .collection-meta .meta-sidebar-profile small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

/* 3-Tab Top Pill Switcher */
#app .collection-meta .col-tab-switcher {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

#app .collection-meta .col-tab-btn {
  appearance: none;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475569;
  padding: 7px 4px;
  font: 800 12px/1.2 var(--font-ptcg-zh);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

#app .collection-meta .col-tab-btn:hover {
  color: #0369a1;
  background: rgba(255, 255, 255, 0.72);
}

#app .collection-meta .col-tab-btn.is-active {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 5px 14px -5px rgba(37, 99, 235, 0.48);
}

/* Inner Scrollable Sidebar Controls */
#app .collection-meta .col-side-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#app .collection-meta,
#app .collection-meta *,
#app .modal-backdrop.collection-run-deck-modal .modal-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#app .collection-meta::-webkit-scrollbar,
#app .collection-meta *::-webkit-scrollbar,
#app .modal-backdrop.collection-run-deck-modal .modal-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#app .collection-meta .col-side-sec {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#app .collection-meta .sts-dex-sec-head {
  background: transparent;
  border: 0;
  padding: 0 2px;
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

#app .collection-meta .col-side-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#app .collection-meta .sts-dex-seg-btn,
#app .collection-meta .sts-dex-type-all,
#app .collection-meta .sts-dex-type-btn {
  appearance: none;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #334155;
  border-radius: 9px;
  padding: 5px 9px;
  font: 700 11.5px/1.2 var(--font-ptcg-zh);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

#app .collection-meta .sts-dex-seg-btn small {
  margin-left: 3px;
  opacity: 0.75;
  font-weight: 700;
}

#app .collection-meta .sts-dex-seg-btn:hover,
#app .collection-meta .sts-dex-type-all:hover,
#app .collection-meta .sts-dex-type-btn:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
  color: #0369a1;
}

#app .collection-meta .sts-dex-seg-btn.is-active,
#app .collection-meta .sts-dex-type-all.is-active,
#app .collection-meta .sts-dex-type-btn.is-active {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 5px 14px -6px rgba(37, 99, 235, 0.45);
}

#app .collection-meta .sts-dex-seg-btn.is-active small {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

#app .collection-meta .sts-dex-search-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  color: #0f172a;
  font: 700 12.5px/1.2 var(--font-ptcg-zh);
}

#app .collection-meta .sts-dex-search-wrap input::placeholder {
  color: #94a3b8;
}

#app .collection-meta .sts-dex-search-wrap input:focus {
  background: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
  outline: none;
}

#app .collection-meta .sts-dex-foil-select {
  width: 100%;
  padding: 6px 9px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  color-scheme: light;
  font: 700 12px/1.2 var(--font-ptcg-zh);
}

/* Sidebar Mini Widgets */
#app .collection-meta .col-kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

#app .collection-meta .col-kpi-mini {
  padding: 7px 9px;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

#app .collection-meta .col-kpi-mini > span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
}

#app .collection-meta .col-kpi-mini > b {
  display: block;
  margin-top: 2px;
  font: 900 16px/1.15 var(--font-ptcg-num), var(--font-ptcg-zh);
  color: #0f172a;
}

#app .collection-meta .col-kpi-mini > b small {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  margin-left: 2px;
}

#app .collection-meta .col-kpi-mini > em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

#app .collection-meta .meta-kpi-bar {
  height: 5px;
  margin-top: 5px;
  background: #e2e8f0;
}

#app .collection-meta .col-side-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #f0f9ff 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

#app .collection-meta .col-side-banner img {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

#app .collection-meta .col-side-banner-body {
  flex: 1;
  min-width: 0;
}

#app .collection-meta .col-side-banner-body strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
}

#app .collection-meta .col-side-banner-body span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: #475569;
  font-weight: 600;
}

#app .collection-meta .col-rank-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

#app .collection-meta .col-rank-mini .ach-rank-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 13px;
  border: 1.5px solid #f59e0b;
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  color: #92400e;
  box-shadow: 0 4px 10px -4px rgba(245, 158, 11, 0.45);
}

#app .collection-meta .col-rank-mini-info {
  flex: 1;
  min-width: 0;
}

#app .collection-meta .col-rank-mini-info strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}

#app .collection-meta .col-rank-mini-info span {
  display: block;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

#app .collection-meta .col-rank-mini-info span b {
  color: #d97706;
}

#app .collection-meta .col-tier-mini-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

#app .collection-meta .ach-tier-stat {
  padding: 5px 2px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 10px;
  color: #475569;
  gap: 2px;
}

#app .collection-meta .ach-tier-stat b {
  font-size: 10.5px;
  color: #0f172a;
}

#app .collection-meta .ach-tier-stat:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
}

#app .collection-meta .ach-tier-stat.is-active {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-color: #0ea5e9;
  color: #0369a1;
}

#app .collection-meta .ach-tier-stat.is-active b {
  color: #0369a1;
}

#app .collection-meta .col-subtab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

#app .collection-meta .col-subtab-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
}

#app .collection-meta .col-side-loadout {
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: grid;
  gap: 4px;
}

#app .collection-meta .col-side-loadout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

#app .collection-meta .col-side-loadout-row span {
  color: #64748b;
  font-weight: 700;
}

#app .collection-meta .col-side-loadout-row b {
  color: #0f172a;
  font-weight: 800;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app .collection-meta .col-shiny-side-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 11px;
  color: #475569;
  font-weight: 600;
}

#app .collection-meta .col-shiny-side-stat b {
  color: #b45309;
}

#app .collection-meta .col-side-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

#app .collection-meta .col-side-types .sts-dex-type-all {
  grid-column: 1 / -1;
}

#app .collection-meta .col-side-types .sts-dex-type-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 4px;
  font-size: 10.5px;
}

#app .collection-meta .col-side-types .sts-dex-type-btn img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

#app .collection-meta .col-side-types .sts-dex-type-btn.is-zero {
  opacity: 0.45;
}

#app .collection-meta .col-side-note {
  padding: 8px 10px;
  border-radius: 11px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
}

#app .collection-meta .col-side-action-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font: 800 12px/1.2 var(--font-ptcg-zh);
  cursor: pointer;
  box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.16);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#app .collection-meta .col-side-action-btn b {
  font-size: 11px;
  color: #0284c7;
}

#app .collection-meta .col-side-action-btn:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
  color: #0369a1;
  transform: translateY(-1px);
}

#app .collection-meta .col-side-action-btn.is-accent {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #7dd3fc;
  color: #0369a1;
}

#app .collection-meta .studio-mon-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 4px 8px 4px 5px;
  font-size: 11.5px;
}

#app .collection-meta .studio-mon-chip em {
  color: #d97706;
}

#app .collection-meta .studio-mon-chip:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
  color: #0369a1;
}

#app .collection-meta .studio-mon-chip.is-active {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  border-color: transparent;
  color: #ffffff;
}

#app .collection-meta .studio-mon-chip.is-active em {
  color: #fef08a;
}

#app .collection-meta .sts-dex-sidebar-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 6px;
}

/* Back button inherits the unified top-left white pill from light-ui-theme.css */
#app .collection-meta .sts-dex-back-btn {
  width: auto !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #1e293b !important;
  font: 800 13.5px/1 var(--font-ptcg-zh) !important;
  cursor: pointer;
  box-shadow:
    0 8px 22px -10px rgba(15, 23, 42, 0.18),
    0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

#app .collection-meta .sts-dex-back-btn:hover {
  transform: translateX(-3px) !important;
  background: #ffffff !important;
  border-color: rgba(14, 165, 233, 0.55) !important;
  color: #0369a1 !important;
  filter: none;
  box-shadow: 0 12px 26px -10px rgba(14, 165, 233, 0.28) !important;
}

/* ----------------------------------------------------------------------------
   2. RIGHT SCROLL AREA, SHARED BUTTONS, BADGES & FLOATING COUNT PILL
   ---------------------------------------------------------------------------- */
#app .collection-meta .col-wall-main {
  position: relative;
  height: 100%;
  overflow-y: auto;
  background: transparent;
  padding: 22px 28px 64px 22px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#app .collection-meta .col-wall-empty {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 560px;
  margin: 64px auto;
  padding: 28px 22px;
  border-radius: 18px;
  border: 1.5px dashed rgba(148, 163, 184, 0.42);
  background: rgba(255, 255, 255, 0.84);
  color: #64748b;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

#app .collection-meta .col-wall-count {
  position: fixed;
  right: 26px;
  bottom: 18px;
  z-index: 6;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.30);
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 10px 24px -10px rgba(15, 42, 78, 0.18);
  pointer-events: none;
}

#app .collection-meta .meta-act-btn,
#app .collection-meta .btn-secondary.meta-act-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #1e293b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 7px 12px !important;
  box-shadow: 0 2px 6px -3px rgba(15, 23, 42, 0.10) !important;
  text-shadow: none !important;
}

#app .collection-meta .meta-act-btn:hover:not(:disabled),
#app .collection-meta .btn-secondary.meta-act-btn:hover:not(:disabled) {
  background: #f0f9ff !important;
  border-color: #38bdf8 !important;
  color: #0369a1 !important;
}

#app .collection-meta .btn-primary.meta-act-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 7px 12px !important;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.45) !important;
}

#app .collection-meta .btn-primary.meta-act-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
}

#app .collection-meta .meta-act-btn:disabled {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

#app .collection-meta .col-eq-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 10.5px;
  font-weight: 900;
}

#app .collection-meta .cosmetic-rarity-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

#app .collection-meta .cosmetic-rarity-pill.rarity-common { background: #f1f5f9; color: #475569; }
#app .collection-meta .cosmetic-rarity-pill.rarity-rare { background: #e0f2fe; color: #0369a1; }
#app .collection-meta .cosmetic-rarity-pill.rarity-epic { background: #f3e8ff; color: #7e22ce; }
#app .collection-meta .cosmetic-rarity-pill.rarity-legendary { background: #fef3c7; color: #b45309; }
#app .collection-meta .cosmetic-rarity-pill.rarity-mythic {
  background: linear-gradient(90deg, #fce7f3, #fef3c7);
  color: #9d174d;
  border: 1px solid #f9a8d4;
}

/* ----------------------------------------------------------------------------
   3. CARD SKINS (.col-skins-dex-grid) — PIXEL-EXACT POKÉDEX MATCH
   ---------------------------------------------------------------------------- */
#app .collection-meta .col-skins-dex-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  max-width: 1180px;
  margin-inline: auto;
  align-items: start;
  justify-items: center;
}

@media (min-width: 1580px) {
  #app .collection-meta .col-skins-dex-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1460px;
  }
}

@media (max-width: 1120px) {
  #app .collection-meta .col-skins-dex-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#app .collection-meta .col-skin-slot {
  width: 100%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
}

#app .collection-meta .col-skin-card-stage {
  position: relative;
  width: 100%;
  perspective: 1000px;
  isolation: isolate;
}

#app .collection-meta .col-skin-card-stage > .poke-card.ptcg-v2,
#app .collection-meta .col-skin-card-stage > .poke-card.ptcg-v2:is(:hover, .is-tilting) {
  z-index: 1 !important;
}

#app .collection-meta .col-skins-dex-grid .poke-card.ptcg-v2 {
  width: 100% !important;
  max-width: 290px !important;
  height: auto !important;
  aspect-ratio: 0.718 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  cursor: pointer;
  contain: layout style;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#app .collection-meta .col-skins-dex-grid .poke-card.ptcg-v2::before,
#app .collection-meta .col-skins-dex-grid .poke-card.ptcg-v2::after {
  content: none !important;
  display: none !important;
}

#app .collection-meta .col-skins-dex-grid .poke-card.ptcg-v2:hover {
  margin: 0 !important;
  box-shadow: none !important;
  transform: translateY(-4px) scale(1.02) !important;
}

#app .collection-meta .col-skins-dex-grid .poke-card.ptcg-v2:not(.is-tilting) {
  perspective: none !important;
  transform-style: flat !important;
}

#app .collection-meta .col-skins-dex-grid .poke-card.ptcg-v2:not(.is-tilting) .j-rotator,
#app .collection-meta .col-skins-dex-grid .poke-card.ptcg-v2:not(.is-tilting) .j-front {
  transform-style: flat !important;
}

#app .collection-meta .col-skins-dex-grid .poke-card.ptcg-v2:not(.is-tilting) .j-subject {
  transform: translate3d(0, 0, 0) !important;
}

#app .collection-meta .col-skin-slot.is-equipped .col-skin-card-stage .poke-card.ptcg-v2 {
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.36));
}

#app .collection-meta .col-skin-slot.is-locked .col-skin-card-stage {
  opacity: 0.94;
}

#app .collection-meta .col-skin-eq-pin {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 80;
  pointer-events: none;
  transform: translate3d(0, 0, 2px);
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #451a03;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 6px 14px -4px rgba(245, 158, 11, 0.55);
}

#app .collection-meta .col-skin-meta-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 8px 20px -14px rgba(15, 42, 78, 0.16);
}

#app .collection-meta .col-skin-slot.is-equipped .col-skin-meta-bar {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, rgba(255, 255, 255, 0.95) 100%);
}

#app .collection-meta .col-skin-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#app .collection-meta .col-skin-meta-top strong {
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app .collection-meta .col-skin-meta-desc {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app .collection-meta .col-skin-act-btn {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------------------------------------------------------------------
   4. OTHER COSMETICS GRIDS (Card Backs, Shinies, Holos, Frames, Titles)
   ---------------------------------------------------------------------------- */

/* Card Backs */
#app .collection-meta .col-cardbacks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin-inline: auto;
  align-items: start;
  justify-items: center;
}

@media (min-width: 1580px) {
  #app .collection-meta .col-cardbacks-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1460px;
  }
}

@media (max-width: 1120px) {
  #app .collection-meta .col-cardbacks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#app .collection-meta .col-cb-slot {
  appearance: none;
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

#app .collection-meta .col-cb-slot:hover {
  transform: translateY(-4px);
}

#app .collection-meta .col-cb-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

#app .collection-meta .col-cb-stage .spire-cardback {
  width: 100%;
  max-width: 210px;
  border-radius: 14px;
}

#app .collection-meta .col-cb-slot.is-active .col-cb-stage .spire-cardback {
  box-shadow:
    0 0 0 3px #f59e0b,
    0 14px 30px -10px rgba(245, 158, 11, 0.45);
}

#app .collection-meta .col-cb-meta-bar {
  width: 100%;
  padding: 9px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 8px 18px -14px rgba(15, 42, 78, 0.16);
}

#app .collection-meta .col-cb-slot.is-active .col-cb-meta-bar {
  border-color: #f59e0b;
  background: #fffbeb;
}

#app .collection-meta .col-cb-meta-bar strong {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}

#app .collection-meta .col-cb-meta-bar span {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

#app .collection-meta .col-cb-slot.is-active .col-cb-meta-bar span {
  color: #b45309;
}

/* Shiny Living Dex */
#app .collection-meta .col-shinies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1320px;
  margin-inline: auto;
}

#app .collection-meta .col-shiny-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-top: 4px solid var(--t-col, #f59e0b);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 12px 26px -16px rgba(15, 42, 78, 0.16);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

#app .collection-meta .col-shiny-card:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: 0 18px 32px -16px rgba(245, 158, 11, 0.26);
}

#app .collection-meta .col-shiny-card.is-enabled {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

#app .collection-meta .col-shiny-card.is-disabled {
  opacity: 0.72;
  filter: saturate(0.65);
}

#app .collection-meta .col-sh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

#app .collection-meta .shiny-dex-num {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

#app .collection-meta .shiny-star-ico {
  width: 18px;
  height: 18px;
}

#app .collection-meta .col-sh-stage {
  height: 104px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--t-col, #f59e0b) 18%, #ffffff), #f1f5f9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

#app .collection-meta .col-sh-stage .shiny-preview-gif {
  height: 84px;
  max-width: 112px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.20));
}

#app .collection-meta .col-sh-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#app .collection-meta .col-sh-info strong {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

#app .collection-meta .col-sh-info small,
#app .collection-meta .col-sh-info span {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app .collection-meta .col-sh-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}

#app .collection-meta .col-sh-acts .col-sh-studio-btn {
  grid-column: 1 / -1;
}

/* Holo Foils & Avatar Frames */
#app .collection-meta .col-holos-grid,
#app .collection-meta .col-frames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  max-width: 1320px;
  margin-inline: auto;
}

#app .collection-meta .col-holo-card,
#app .collection-meta .col-frame-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 12px 26px -16px rgba(15, 42, 78, 0.16);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

#app .collection-meta .col-holo-card {
  cursor: pointer;
}

#app .collection-meta .col-holo-card:hover,
#app .collection-meta .col-frame-card:hover {
  transform: translateY(-2px);
}

#app .collection-meta .col-holo-card.is-previewing {
  border-color: #0ea5e9;
  box-shadow:
    0 0 0 2px rgba(14, 165, 233, 0.35),
    0 14px 28px -14px rgba(14, 165, 233, 0.26);
}

#app .collection-meta .col-holo-card.equipped,
#app .collection-meta .col-frame-card.equipped {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 74%);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.45),
    0 14px 28px -16px rgba(245, 158, 11, 0.24);
}

#app .collection-meta .col-holo-card.is-locked,
#app .collection-meta .col-frame-card.is-locked {
  opacity: 0.80;
}

#app .collection-meta .col-cf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#app .collection-meta .col-cf-stage {
  height: 96px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 48%, #ffffff 0%, #eef4fb 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

#app .collection-meta .col-cf-stage .meta-frame-preview {
  width: 68px;
  height: 68px;
}

#app .collection-meta .col-cf-stage .meta-frame-preview img {
  width: 38px;
  height: 38px;
}

#app .collection-meta .col-ch-stage {
  height: 118px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 48%, #1e293b 0%, #0f172a 85%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
}

#app .collection-meta .col-ch-swatch {
  width: 68px;
  height: 94px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 12px/1 var(--font-ptcg-num);
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.35),
    0 10px 22px -8px rgba(0, 0, 0, 0.65);
}

#app .collection-meta .col-cf-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

#app .collection-meta .col-cf-body strong {
  font-size: 14.5px;
  font-weight: 900;
  color: #0f172a;
}

#app .collection-meta .col-cf-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

#app .collection-meta :is(.col-frame-card, .col-holo-card) .meta-act-btn {
  width: 100%;
  margin-top: auto;
}

/* Trainer Titles */
#app .collection-meta .col-titles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
  max-width: 1320px;
  margin-inline: auto;
}

#app .collection-meta .col-title-card {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 10px 22px -16px rgba(15, 42, 78, 0.14);
}

#app .collection-meta .col-title-card.equipped {
  border-color: #f59e0b;
  background: linear-gradient(165deg, #fffbeb 0%, #ffffff 74%);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.42);
}

#app .collection-meta .col-title-card .meta-title-head strong {
  color: #0f172a;
  font-size: 15px;
}

#app .collection-meta .col-title-card .meta-row-desc {
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}

/* Pagination */
#app .collection-meta .meta-pagination {
  margin-top: 24px;
}

#app .collection-meta .meta-pill-btn {
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.30);
  color: #334155;
  font-weight: 700;
}

#app .collection-meta .meta-pill-btn:hover:not(:disabled) {
  background: #f0f9ff;
  border-color: #38bdf8;
  color: #0369a1;
}

#app .collection-meta .meta-pill-btn.is-active {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  border-color: transparent;
  color: #ffffff;
}

#app .collection-meta .meta-page-info {
  color: #475569;
}

#app .collection-meta .meta-page-info b {
  color: #0f172a;
}

/* ----------------------------------------------------------------------------
   5. HALL OF FAME — 18 TRAINER CARDS (.col-trainers-grid)
   ---------------------------------------------------------------------------- */
#app .collection-meta .col-trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
  gap: 16px;
  max-width: 1320px;
  margin-inline: auto;
}

#app .collection-meta .col-trainer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, color-mix(in srgb, var(--tr-accent, #0ea5e9) 5%, #ffffff) 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-top: 4px solid var(--tr-accent, #0ea5e9);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 12px 28px -18px rgba(15, 42, 78, 0.18),
    0 3px 10px -4px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}

#app .collection-meta .col-trainer-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tr-accent, #0ea5e9) 52%, #cbd5e1);
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--tr-accent, #0ea5e9) 8%, #ffffff) 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 18px 34px -16px color-mix(in srgb, var(--tr-accent, #0ea5e9) 28%, rgba(15, 42, 78, 0.22));
}

#app .collection-meta .col-trainer-card.is-selected {
  border-color: #0ea5e9;
  box-shadow:
    0 0 0 2px rgba(14, 165, 233, 0.35),
    0 18px 36px -14px rgba(14, 165, 233, 0.28);
}

#app .collection-meta .col-trainer-card.tier-a0 { border-top-color: #10b981; }
#app .collection-meta .col-trainer-card.tier-a5 { border-top-color: #0ea5e9; }
#app .collection-meta .col-trainer-card.tier-a10 {
  border-top-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

#app .collection-meta .hof-card-avatar {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--tr-accent, #94a3b8) 28%, #e2e8f0);
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tr-accent, #0ea5e9) 20%, #ffffff), #f1f5f9);
}

#app .collection-meta .hof-card-name-row strong {
  color: #0f172a;
  font-size: 16px;
}

#app .collection-meta .hof-type-pill {
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid color-mix(in srgb, var(--t-col, #64748b) 34%, transparent);
  background: color-mix(in srgb, var(--t-col, #64748b) 14%, #ffffff);
  color: color-mix(in srgb, var(--t-col, #64748b) 72%, #0f172a);
}

#app .collection-meta .hof-type-pill img {
  width: 14px;
  height: 14px;
}

#app .collection-meta .hof-card-role,
#app .collection-meta .hof-unlock-tag {
  color: #64748b;
  font-weight: 600;
}

#app .collection-meta .hof-asc-pill {
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

#app .collection-meta .hof-asc-pill.tier-a0 { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
#app .collection-meta .hof-asc-pill.tier-a5 { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
#app .collection-meta .hof-asc-pill.tier-a10 { background: #fef3c7; color: #b45309; border-color: #fde68a; }

#app .collection-meta .hof-card-showcase-row {
  padding: 7px 9px;
  border-radius: 12px;
  background: #f4f7fb;
  border: 1px solid rgba(148, 163, 184, 0.20);
}

#app .collection-meta .hof-mini-mon {
  width: 34px;
  height: 34px;
}

#app .collection-meta .hof-mini-relic {
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #334155;
  font-weight: 700;
  box-shadow: 0 2px 6px -3px rgba(15, 23, 42, 0.08);
}

#app .collection-meta .hof-pip {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

#app .collection-meta .hof-pip.is-open { background: #bae6fd; border-color: #38bdf8; }
#app .collection-meta .hof-pip.is-cleared { background: linear-gradient(90deg, #facc15, #f59e0b); border-color: #eab308; }

#app .collection-meta .hof-card-foot {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

#app .collection-meta .col-trainer-card:hover .hof-card-foot > span:last-child {
  color: #0284c7;
}

/* ----------------------------------------------------------------------------
   6. ACHIEVEMENTS — 48 CARDS (.col-achs-grid)
   ---------------------------------------------------------------------------- */
#app .collection-meta .col-achs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1320px;
  margin-inline: auto;
}

@media (max-width: 1040px) {
  #app .collection-meta .col-achs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#app .collection-meta .col-ach-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-left-width: 4px;
  box-shadow: 0 10px 24px -16px rgba(15, 42, 78, 0.16);
}

#app .collection-meta .col-ach-card.tier-bronze { border-left-color: #cd7f32; }
#app .collection-meta .col-ach-card.tier-silver { border-left-color: #94a3b8; }
#app .collection-meta .col-ach-card.tier-gold { border-left-color: #f59e0b; }
#app .collection-meta .col-ach-card.tier-platinum { border-left-color: #0ea5e9; }
#app .collection-meta .col-ach-card.tier-legendary { border-left-color: #a855f7; }

#app .collection-meta .col-ach-card.unlocked {
  background: linear-gradient(155deg, #f0fdf4 0%, #ffffff 72%);
  border-color: rgba(16, 185, 129, 0.40);
}

#app .collection-meta .ach-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

#app .collection-meta .meta-row-title {
  color: #0f172a;
}

#app .collection-meta .ach-title-left b {
  color: #0f172a;
  font-size: 14.5px;
}

#app .collection-meta .ach-tier-pill.tier-bronze { background: #ffedd5; color: #9a3412; }
#app .collection-meta .ach-tier-pill.tier-silver { background: #f1f5f9; color: #475569; }
#app .collection-meta .ach-tier-pill.tier-gold { background: #fef3c7; color: #b45309; }
#app .collection-meta .ach-tier-pill.tier-platinum { background: #e0f2fe; color: #0369a1; }
#app .collection-meta .ach-tier-pill.tier-legendary { background: #f3e8ff; color: #7e22ce; }

#app .collection-meta .ach-progress-num {
  color: #64748b;
}

#app .collection-meta .meta-row-desc {
  color: #475569;
  font-size: 12.5px;
}

#app .collection-meta .meta-ach-progress {
  background: #e2e8f0;
  accent-color: #0ea5e9;
}

#app .collection-meta .meta-ach-progress::-webkit-progress-bar { background: #e2e8f0; }
#app .collection-meta .meta-ach-progress::-webkit-progress-value { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
#app .collection-meta .meta-ach-progress::-moz-progress-bar { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
#app .collection-meta .col-ach-card.unlocked .meta-ach-progress::-webkit-progress-value { background: linear-gradient(90deg, #34d399, #10b981); }

#app .collection-meta .meta-reward-tags span {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-weight: 700;
}

#app .collection-meta .meta-done-pill {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

#app .collection-meta .meta-lock-pill {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ----------------------------------------------------------------------------
   7. FLOATING OVERLAY DRAWERS (Dossier / Expedition History / Holo Studio)
   ---------------------------------------------------------------------------- */
@keyframes colOverlayPop {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

#app .collection-meta .col-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#app .collection-meta .col-overlay-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#app .collection-meta .col-overlay-sheet {
  position: relative;
  z-index: 1;
  width: min(1020px, 100%);
  max-height: min(88vh, 840px);
  overflow-y: auto;
  margin: 0;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 28px 64px -16px rgba(15, 42, 78, 0.28);
  color: #0f172a;
  animation: colOverlayPop 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#app .collection-meta .col-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

#app .collection-meta .col-sheet-head h2 {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

#app .collection-meta .col-sheet-head p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

/* Trainer Dossier Sheet */
#app .collection-meta .hof-dossier-panel.col-overlay-sheet {
  border-left: 5px solid var(--tr-accent, #0ea5e9);
}

#app .collection-meta .hof-dossier-head,
#app .collection-meta .hof-dossier-runs {
  border-color: rgba(148, 163, 184, 0.22);
}

#app .collection-meta .hof-dossier-portrait {
  border-radius: 16px;
  border: 2px solid color-mix(in srgb, var(--tr-accent, #0ea5e9) 55%, #cbd5e1);
  background: radial-gradient(circle, color-mix(in srgb, var(--tr-accent, #0ea5e9) 18%, #ffffff), #f1f5f9);
}

#app .collection-meta .hof-dossier-title-row h2 { color: #0f172a; }
#app .collection-meta .hof-role-sub,
#app .collection-meta .hof-dossier-kpis,
#app .collection-meta .hof-dossier-empty { color: #64748b; }
#app .collection-meta .hof-dossier-kpis b { color: #0f172a; }
#app .collection-meta .hof-dossier-showcase img { filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.18)); }
#app .collection-meta .hof-dossier-block h3,
#app .collection-meta .hof-dossier-runs h3 { color: #334155; font-weight: 800; }

#app .collection-meta .hof-asc-step {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
}

#app .collection-meta .hof-asc-step.is-unlocked {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

#app .collection-meta .hof-asc-step.is-cleared {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

#app .collection-meta .hof-relic-box,
#app .collection-meta .hof-deck-chip,
#app .collection-meta .hof-starter-chip,
#app .collection-meta .hof-dossier-run {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #1e293b;
}

#app .collection-meta .hof-relic-name { color: #0f172a; }
#app .collection-meta .hof-relic-desc { color: #475569; }
#app .collection-meta .hof-deck-chip b { color: #0284c7; }
#app .collection-meta .hof-dossier-run.is-win { background: #f0fdf4; border-color: #86efac; }

/* Expedition History Sheet */
#app .collection-meta .col-history-list {
  display: grid;
  gap: 8px;
}

#app .collection-meta .hof-run-row {
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.26);
}

#app .collection-meta .hof-run-row.is-ready {
  background: #f0fdf4;
  border-color: rgba(16, 185, 129, 0.36);
}

#app .collection-meta .meta-row-title span { color: #475569; }
#app .collection-meta .hof-run-mode { background: #e0f2fe; color: #0369a1; }
#app .collection-meta .collection-success { color: #15803d; }
#app .collection-meta .hof-run-loss { color: #dc2626; }
#app .collection-meta .hof-run-score b { color: #d97706; }
#app .collection-meta .hof-run-row code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #e2e8f0;
  color: #334155;
}

/* Interactive Holo Studio Sheet (Porcelain Controls + Dark Velvet Showcase Stage) */
#app .collection-meta .holo-studio-panel.col-overlay-sheet {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

#app .collection-meta .holo-studio-stage {
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.14) 0%, transparent 56%),
    radial-gradient(circle at 50% 48%, #1e293b 0%, #0f172a 82%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 2px 14px rgba(2, 6, 23, 0.45);
}

#app .collection-meta .holo-studio-hint { color: #cbd5e1; }
#app .collection-meta .holo-studio-head h2 { color: #0f172a; }
#app .collection-meta .holo-studio-head p,
#app .collection-meta .holo-studio-label { color: #475569; }

#app .collection-meta .holo-studio-label select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  color: #0f172a;
  color-scheme: light;
}

#app .collection-meta .col-studio-foil-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#app .collection-meta .col-studio-foil-strip .meta-pill-btn {
  padding: 5px 10px;
  font-size: 11.5px;
}

#app .collection-meta .holo-studio-active-meta {
  border-radius: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

#app .collection-meta .holo-studio-active-meta strong { color: #0369a1; }

/* ----------------------------------------------------------------------------
   8. HALL OF FAME RUN DECK MODAL (.collection-run-deck-modal)
   ---------------------------------------------------------------------------- */
#app .modal-backdrop.collection-run-deck-modal {
  background: rgba(15, 23, 42, 0.34) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#app .modal-backdrop.collection-run-deck-modal .modal-panel {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.98) !important;
  border-radius: 22px !important;
  color: #0f172a !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 24px 60px -16px rgba(15, 42, 78, 0.28) !important;
}

#app .modal-backdrop.collection-run-deck-modal .modal-title {
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 14px !important;
  color: #0f172a !important;
  font-weight: 900;
}

#app .modal-backdrop.collection-run-deck-modal .btn-secondary {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #1e293b !important;
  font-weight: 800;
}

#app .modal-backdrop.collection-run-deck-modal .btn-secondary:hover:not(:disabled) {
  background: #f0f9ff !important;
  border-color: #38bdf8 !important;
  color: #0369a1 !important;
}

#app .modal-backdrop.collection-run-deck-modal .spire-pill {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-weight: 700;
}

/* ----------------------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------------------------- */
@media (max-width: 960px) {
  #app .collection-meta .holo-studio-panel.col-overlay-sheet {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 690px) {
  #app .collection-ui.collection-meta.col-wall-hub {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  #app .collection-meta .col-wall-sidebar {
    margin: 10px 10px 0;
    padding: 10px 12px;
    border-radius: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.98);
    max-height: 44vh;
  }

  #app .collection-meta .col-wall-main {
    padding: 14px 14px 56px;
  }

  #app .collection-meta .col-skins-dex-grid,
  #app .collection-meta .col-cardbacks-grid,
  #app .collection-meta .col-unified-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  #app .collection-meta .sts-dex-back-btn {
    width: 100%;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 11px;
  }

  #app .collection-meta .col-overlay-backdrop {
    padding: 12px;
  }

  #app .collection-meta .col-overlay-sheet {
    padding: 16px;
    border-radius: 18px;
  }
}


/* ============================================================================
   10. UNIFIED 0.718 PTCG CARD WALL (ALL 8 COLLECTION VIEWS) + DETAIL DRAWERS
   Shared across #app .collection-meta AND #title-waterfall-plane .twf-dex-clone-slot
   so every single view flows seamlessly into & out of the Title Waterfall!
   ============================================================================ */

/* Inline SVG UI icons (zero emoji) */
.col-svg-ico {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.col-svg-spark {
  fill: currentColor;
  stroke: none;
}

/* Sidebar top Back button & unified search clear button (1:1 match with .sts-dex-sidebar) */
#app .collection-meta .sts-dex-sidebar-head {
  position: static !important;
  flex-shrink: 0;
  margin: 0 0 2px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#app .collection-meta .sts-dex-search-wrap {
  position: relative;
}

#app .collection-meta .sts-dex-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#app .collection-meta .sts-dex-clear:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #0f172a;
}

#app .collection-meta .col-side-wide-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
}

/* Unified Pokédex-identical 4 / 5 / 3 column grid */
#app .collection-meta .col-unified-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin-inline: auto;
  align-items: start;
  justify-items: center;
}

@media (min-width: 1580px) {
  #app .collection-meta .col-unified-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1460px;
  }
}

@media (max-width: 1120px) {
  #app .collection-meta .col-unified-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Base 0.718 PTCG Vertical Card Shell (works inside Collection AND Waterfall morph!) */
.col-wall-card {
  position: relative;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 0.718;
  border-radius: 16px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

#app .collection-meta .col-wall-card:hover {
  transform: translateY(-5px) scale(1.015);
}

#title-waterfall-plane .twf-dex-clone-slot .col-wall-card {
  max-width: none;
  height: 100%;
  cursor: default;
  transition: none;
}

/* Full-bleed PTCG cards (Skins, Shinies, Holos) inside .col-wall-card */
.col-wall-card:is(.col-card--skin, .col-card--shiny, .col-card--holo) {
  overflow: visible;
  background: transparent;
}

.col-wall-card .poke-card.ptcg-v2 {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  aspect-ratio: 0.718 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  pointer-events: none !important;
  perspective: none !important;
  transform-style: flat !important;
}

.col-wall-card .poke-card.ptcg-v2::before,
.col-wall-card .poke-card.ptcg-v2::after {
  content: none !important;
  display: none !important;
}

.col-wall-card .poke-card.ptcg-v2 .j-rotator,
.col-wall-card .poke-card.ptcg-v2 .j-front {
  transform-style: flat !important;
}

.col-wall-card .poke-card.ptcg-v2 .j-subject {
  transform: translate3d(0, 0, 0) !important;
}

.col-wall-card.is-equipped:is(.col-card--skin, .col-card--holo) .poke-card.ptcg-v2 {
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.42));
}

.col-wall-card.col-card--shiny.is-disabled .poke-card.ptcg-v2 {
  filter: saturate(0.45) opacity(0.76);
}

/* Card Back full 0.718 frame */
.col-wall-card.col-card--cardback {
  overflow: hidden;
  background: transparent;
  box-shadow: 0 12px 26px -14px rgba(15, 42, 78, 0.24);
}

.col-wall-card.col-card--cardback.is-equipped {
  box-shadow:
    0 0 0 3px #f59e0b,
    0 14px 30px -10px rgba(245, 158, 11, 0.48);
}

.col-cb-full-stage {
  width: 100%;
  height: 100%;
}

.col-cb-full-stage .spire-cardback {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border-radius: 16px !important;
}

/* Top-right status pin & bottom sleek glass caption on full-bleed cards */
.col-card-pin {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.35);
}

.col-card-pin.is-equipped {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #451a03;
}

.col-card-pin.is-locked {
  padding: 5px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.col-card-pin.is-shiny {
  background: linear-gradient(135deg, #fef08a, #f59e0b);
  color: #451a03;
}

.col-card-pin.is-muted {
  background: rgba(51, 65, 85, 0.82);
  color: #e2e8f0;
}

.col-card-float-cap {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}

.col-card-float-cap strong {
  font-size: 12.5px;
  font-weight: 900;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-card-float-cap > span:last-child {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  flex-shrink: 0;
}

/* Structured 0.718 Porcelain Collector Cards (Frames, Titles, Trainers, Achievements) */
.col-wall-card:is(.col-card--frame, .col-card--title, .col-card--trainer, .col-card--ach) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 13px 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f5f9ff 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.30);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 12px 26px -14px rgba(15, 42, 78, 0.18),
    0 3px 8px -3px rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.col-wall-card:is(.col-card--trainer, .col-card--ach) {
  gap: 6px;
  padding: 11px 11px 10px;
}

.col-wall-card.is-equipped:is(.col-card--frame, .col-card--title) {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  box-shadow:
    0 0 0 1.5px rgba(245, 158, 11, 0.45),
    0 14px 28px -14px rgba(245, 158, 11, 0.28);
}

.col-wall-card.col-card--trainer {
  border-top: 4px solid var(--tr-accent, #0ea5e9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, color-mix(in srgb, var(--tr-accent, #0ea5e9) 8%, #ffffff) 100%);
}

.col-wall-card.col-card--trainer.tier-a10 {
  border-color: rgba(245, 158, 11, 0.55);
  border-top: 4px solid #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.col-wall-card.col-card--ach.tier-bronze { border-top: 4px solid #cd7f32; }
.col-wall-card.col-card--ach.tier-silver { border-top: 4px solid #94a3b8; }
.col-wall-card.col-card--ach.tier-gold { border-top: 4px solid #f59e0b; }
.col-wall-card.col-card--ach.tier-platinum { border-top: 4px solid #0ea5e9; }
.col-wall-card.col-card--ach.tier-legendary { border-top: 4px solid #a855f7; }

.col-wall-card.col-card--ach.is-unlocked {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.col-wall-card.is-locked:is(.col-card--frame, .col-card--title, .col-card--ach) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, #f1f5f9 100%);
}

.col-vc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.col-vc-head-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.col-vc-cat-tag {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  background: rgba(241, 245, 249, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.7);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.col-vc-state {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.col-vc-state.is-done {
  background: #dcfce7;
  color: #15803d;
}

.col-vc-state.is-eq {
  background: #fef3c7;
  color: #b45309;
}

.col-vc-stage {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: radial-gradient(circle at 50% 48%, #ffffff 0%, #eef4fb 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.col-vc-stage--trainer {
  position: relative;
  overflow: hidden;
  padding: 6px;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--tr-accent, #0ea5e9) 24%, #ffffff) 0%, #f4f7fb 100%);
}

.col-vc-stage--trainer::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 56%;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.16) 0%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}

.col-vc-stage-wm {
  position: absolute;
  width: 112px;
  height: 112px;
  opacity: 0.08;
  pointer-events: none;
  object-fit: contain;
  z-index: 0;
  filter: saturate(1.2);
}

.col-vc-corner-chip {
  position: absolute;
  top: 6px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #334155;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

.col-vc-corner-chip.is-left {
  left: 6px;
  color: #b91c1c;
}

.col-vc-corner-chip.is-right {
  right: 6px;
  color: #0369a1;
}

.col-vc-trainer-sp {
  position: relative;
  z-index: 2;
  height: 96%;
  width: auto;
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 14px rgba(15, 23, 42, 0.24));
}

.col-vc-frame-ring {
  width: 82px !important;
  height: 82px !important;
}

.col-vc-frame-ring img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
}

.col-vc-stage--title {
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f1f5f9 100%);
  text-align: center;
  padding: 14px 10px;
}

.col-vc-title-crest {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
}

.col-vc-title-crest.rarity-rare { background: #e0f2fe; color: #0284c7; }
.col-vc-title-crest.rarity-epic { background: #f3e8ff; color: #7e22ce; }
.col-vc-title-crest.rarity-legendary { background: #fef3c7; color: #d97706; }
.col-vc-title-crest.rarity-mythic { background: linear-gradient(135deg, #fce7f3, #fef3c7); color: #be185d; }

.col-vc-title-name {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
}

.col-vc-stage--ach {
  position: relative;
  padding: 8px;
}

.col-vc-stage--ach.tier-bronze {
  background: radial-gradient(circle at 50% 48%, #fff7ed 0%, #f5ede4 100%);
}

.col-vc-stage--ach.tier-silver {
  background: radial-gradient(circle at 50% 48%, #f8fafc 0%, #e8eef5 100%);
}

.col-vc-stage--ach.tier-gold {
  background: radial-gradient(circle at 50% 48%, #fffbeb 0%, #f7efd8 100%);
}

.col-vc-stage--ach.tier-platinum {
  background: radial-gradient(circle at 50% 48%, #f0f9ff 0%, #e2f0fb 100%);
}

.col-vc-stage--ach.tier-legendary {
  background: radial-gradient(circle at 50% 48%, #faf5ff 0%, #ede5fa 100%);
}

.col-card--ach.is-unlocked .col-vc-stage--ach {
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: inset 0 0 24px rgba(16, 185, 129, 0.10);
}

.col-vc-ach-icon {
  width: 120px;
  height: 120px;
  max-width: 92%;
  max-height: 94%;
  aspect-ratio: 1;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px -10px rgba(15, 23, 42, 0.24);
}

.col-vc-ach-icon.tier-bronze {
  border-color: #d99b66;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 10px 22px -10px rgba(205, 127, 50, 0.34);
}

.col-vc-ach-icon.tier-silver {
  border-color: #94a3b8;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 10px 22px -10px rgba(100, 116, 139, 0.30);
}

.col-vc-ach-icon.tier-gold {
  border-color: #fbbf24;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 10px 24px -10px rgba(245, 158, 11, 0.38);
}

.col-vc-ach-icon.tier-platinum {
  border-color: #38bdf8;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 10px 24px -10px rgba(14, 165, 233, 0.36);
}

.col-vc-ach-icon.tier-legendary {
  border-color: #c084fc;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 10px 24px -10px rgba(168, 85, 247, 0.40);
}

.col-vc-ach-icon img {
  width: 96px;
  height: 96px;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.18));
}

.col-vc-ach-icon.is-large {
  width: 152px;
  height: 152px;
  border-radius: 32px;
}

.col-vc-ach-icon.is-large img {
  width: 120px;
  height: 120px;
}

.col-vc-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.col-vc-title.col-vc-title--inline {
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.col-vc-title strong {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-vc-title small {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-vc-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.38;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.col-vc-desc--center {
  text-align: center;
}

.col-vc-reward {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 10.5px;
  line-height: 1.32;
  font-weight: 700;
}

.col-vc-reward.is-claimed {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.col-vc-reward-tag {
  flex-shrink: 0;
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.col-vc-reward.is-claimed .col-vc-reward-tag {
  background: rgba(5, 150, 105, 0.15);
  color: #047857;
}

.col-vc-reward-text {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.col-vc-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 7px;
  min-height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tr-accent, #64748b) 8%, #f1f5f9);
  border: 1px solid color-mix(in srgb, var(--tr-accent, #64748b) 18%, transparent);
}

.col-vc-team {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.col-vc-mon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.col-vc-relic-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 2px 6px 2px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.col-vc-relic-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: pixelated;
}

.col-vc-relic-name {
  font-size: 10.5px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}

@media (max-width: 1120px) {
  .col-vc-mon {
    width: 32px;
    height: 32px;
  }

  .col-vc-relic-ico {
    width: 24px;
    height: 24px;
  }

  .col-vc-relic-name {
    max-width: 58px;
  }
}

.col-vc-prog-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.col-vc-prog-wrap .meta-ach-progress {
  margin: 0;
  height: 6px;
}

.col-vc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

/* Shared Detail Drawer (.col-detail-sheet) & Searchable Pokémon Picker */
#app .collection-meta .col-detail-sheet {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 780px) {
  #app .collection-meta .col-detail-sheet {
    grid-template-columns: minmax(0, 1fr);
  }
}

#app .collection-meta .col-detail-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #eef4fb 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  min-height: 320px;
}

#app .collection-meta .col-detail-stage .poke-card.ptcg-v2 {
  width: min(248px, 100%) !important;
  height: auto !important;
  aspect-ratio: 0.718 !important;
  margin: 0 !important;
}

#app .collection-meta .col-detail-cb-wrap {
  width: min(230px, 100%);
  aspect-ratio: 0.718;
}

#app .collection-meta .col-detail-cb-wrap .spire-cardback {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

#app .collection-meta .col-detail-frame-big {
  width: 120px !important;
  height: 120px !important;
}

#app .collection-meta .col-detail-frame-big img {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain;
}

#app .collection-meta .col-detail-title-plaque {
  width: 100%;
  padding: 36px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid rgba(148, 163, 184, 0.30);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

#app .collection-meta .col-detail-title-plaque strong {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

#app .collection-meta .col-detail-title-plaque small {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

#app .collection-meta .col-detail-ach-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#app .collection-meta .col-detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#app .collection-meta .col-detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#app .collection-meta .col-detail-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
  font-weight: 600;
}

#app .collection-meta .col-detail-meta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 12.5px;
}

#app .collection-meta .col-detail-meta-box span {
  color: #64748b;
  font-weight: 700;
  flex-shrink: 0;
}

#app .collection-meta .col-detail-meta-box b {
  color: #0f172a;
  font-weight: 800;
  text-align: right;
}

#app .collection-meta .col-detail-meta-box.is-reward {
  background: #fffbeb;
  border-color: #fde68a;
}

#app .collection-meta .col-detail-meta-box.is-reward b {
  color: #b45309;
}

#app .collection-meta .col-detail-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#app .collection-meta .col-picker-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#app .collection-meta .col-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

#app .collection-meta .col-icon-close-btn {
  padding: 7px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Keep inner pills & progress bars 100% pixel-identical when .col-wall-card
   is cloned into #title-waterfall-plane during waterfall enter/exit morphs */
#title-waterfall-plane .twf-dex-clone-slot .cosmetic-rarity-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
#title-waterfall-plane .twf-dex-clone-slot .cosmetic-rarity-pill.rarity-common { background: #f1f5f9; color: #475569; }
#title-waterfall-plane .twf-dex-clone-slot .cosmetic-rarity-pill.rarity-rare { background: #e0f2fe; color: #0369a1; }
#title-waterfall-plane .twf-dex-clone-slot .cosmetic-rarity-pill.rarity-epic { background: #f3e8ff; color: #7e22ce; }
#title-waterfall-plane .twf-dex-clone-slot .cosmetic-rarity-pill.rarity-legendary { background: #fef3c7; color: #b45309; }
#title-waterfall-plane .twf-dex-clone-slot .cosmetic-rarity-pill.rarity-mythic { background: linear-gradient(90deg, #fce7f3, #fef3c7); color: #9d174d; border: 1px solid #f9a8d4; }

#title-waterfall-plane .twf-dex-clone-slot .hof-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--t-col, #64748b) 34%, transparent);
  background: color-mix(in srgb, var(--t-col, #64748b) 14%, #ffffff);
  color: color-mix(in srgb, var(--t-col, #64748b) 72%, #0f172a);
}
#title-waterfall-plane .twf-dex-clone-slot .hof-type-pill img { width: 14px; height: 14px; }

#title-waterfall-plane .twf-dex-clone-slot .hof-asc-pill {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
#title-waterfall-plane .twf-dex-clone-slot .hof-asc-pill.tier-a0 { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
#title-waterfall-plane .twf-dex-clone-slot .hof-asc-pill.tier-a5 { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
#title-waterfall-plane .twf-dex-clone-slot .hof-asc-pill.tier-a10 { background: #fef3c7; color: #b45309; border-color: #fde68a; }

#title-waterfall-plane .twf-dex-clone-slot .hof-pip-track { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; }
#title-waterfall-plane .twf-dex-clone-slot .hof-pip { height: 5px; border-radius: 999px; background: #e2e8f0; border: 1px solid #cbd5e1; }
#title-waterfall-plane .twf-dex-clone-slot .hof-pip.is-open { background: #bae6fd; border-color: #38bdf8; }
#title-waterfall-plane .twf-dex-clone-slot .hof-pip.is-cleared { background: linear-gradient(90deg, #facc15, #f59e0b); border-color: #eab308; }

#title-waterfall-plane .twf-dex-clone-slot .ach-tier-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}
#title-waterfall-plane .twf-dex-clone-slot .ach-tier-pill.tier-bronze { background: #ffedd5; color: #9a3412; }
#title-waterfall-plane .twf-dex-clone-slot .ach-tier-pill.tier-silver { background: #f1f5f9; color: #475569; }
#title-waterfall-plane .twf-dex-clone-slot .ach-tier-pill.tier-gold { background: #fef3c7; color: #b45309; }
#title-waterfall-plane .twf-dex-clone-slot .ach-tier-pill.tier-platinum { background: #e0f2fe; color: #0369a1; }
#title-waterfall-plane .twf-dex-clone-slot .ach-tier-pill.tier-legendary { background: #f3e8ff; color: #7e22ce; }

#title-waterfall-plane .twf-dex-clone-slot .meta-ach-progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 6px;
  background: #e2e8f0;
  overflow: hidden;
}
#title-waterfall-plane .twf-dex-clone-slot .meta-ach-progress::-webkit-progress-bar { background: #e2e8f0; }
#title-waterfall-plane .twf-dex-clone-slot .meta-ach-progress::-webkit-progress-value { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
#title-waterfall-plane .twf-dex-clone-slot .col-card--ach.is-unlocked .meta-ach-progress::-webkit-progress-value { background: linear-gradient(90deg, #34d399, #10b981); }
