/* CBT v6.27 reference-matched vector card. Rarity-colored top-right plaque. */
.cbt-frame,.cbt-frame.women-card{
  display:block!important;position:relative!important;isolation:isolate!important;box-sizing:border-box!important;
  width:100%;height:100%;padding:0!important;margin:0!important;
  aspect-ratio:5/7;overflow:visible!important;border:0!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;filter:none!important;
  container-type:normal!important;min-height:0!important;text-align:left;
}
.cbt-frame:before,.cbt-frame:after{display:none!important}
.cbt-reference-card{position:absolute!important;inset:0!important;overflow:hidden!important;width:100%;height:100%;
  clip-path:polygon(2.4% 0,97.6% 0,100% 2%,100% 98%,97.6% 100%,2.4% 100%,0 98%,0 2%);
  background:#cbd3df;box-shadow:inset 0 0 0 1px rgba(255,255,255,.75)}
.cbt-master-svg{position:absolute!important;display:block!important;inset:0;width:100%;height:100%;overflow:hidden;transform:translateZ(0)}
.cbt-master-svg .cbt-photo-source{opacity:1;filter:none;mix-blend-mode:normal;transform:none}
.cbt-frame .variant-toplabel,.cbt-frame .variant-holo,.cbt-frame .variant-serial,.cbt-frame .card-glow{display:none!important}
.cbt-frame.is-locked .cbt-master-svg{filter:grayscale(.85) brightness(.63)}
.cbt-frame .card-lock{position:absolute;inset:0;z-index:9;display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;background:#071a2bc7;color:white;font-size:clamp(10px,3cqw,17px);font-weight:900;text-shadow:0 1px 3px black}
.cbt-frame .card-lock span:first-child{font-size:clamp(18px,12cqw,52px)}
/* Preserve gestures and 3D rotations of the outer card wrapper. The SVG follows it. */
.women-opening .opening-draw-scene .draw-card .cbt-frame.women-card,
.women-opening .result-card-art .cbt-frame.women-card,
.women-album-card .cbt-frame.women-card,
.women-detail-art .cbt-frame.women-card{display:block!important;padding:0!important;border:0!important;border-radius:0!important}
.opening-overlay .summary-card[class*="rarity-"]{--summary-aura:transparent;--summary-frame:transparent;animation:pack-card-enter .45s backwards!important}
.opening-overlay .summary-card[class*="rarity-"]::before{display:none!important}
.opening-overlay.rarity-estandar{--rarity-glow:#FFFFFF}
.opening-overlay.rarity-infrecuente{--rarity-glow:#16834B}
.opening-overlay.rarity-rara{--rarity-glow:#BA1929}
.opening-overlay.rarity-extra-rara{--rarity-glow:#C0C0C0}
.opening-overlay.rarity-rarisima{--rarity-glow:#D4AF37}
.opening-overlay.rarity-ultralimitada{--rarity-glow:#dfbc78}
.rarity-tabs .rarity-filter.rarity-estandar{border-left-color:#FFFFFF}
.rarity-tabs .rarity-filter.rarity-infrecuente{border-left-color:#16834B}
.rarity-tabs .rarity-filter.rarity-rara{border-left-color:#BA1929}
.rarity-tabs .rarity-filter.rarity-extra-rara{border-left-color:#C0C0C0}
.rarity-tabs .rarity-filter.rarity-rarisima{border-left-color:#D4AF37}
.rarity-tabs .rarity-filter.rarity-ultralimitada{border-left-color:#dbbb71}
.admin-rarity-preview{display:flex;gap:12px;overflow-x:auto;padding:8px 0 14px;max-width:100%;scroll-snap-type:x mandatory}
.admin-rarity-sample{flex:0 0 clamp(110px,14vw,164px);min-width:0;scroll-snap-align:start}
.admin-rarity-sample .admin-rarity-art{width:100%;aspect-ratio:5/7}
.admin-rarity-sample small{display:block;color:#bdc7d6;margin-top:6px;font-size:10px;font-weight:750}
@media(prefers-reduced-motion:reduce){.cbt-master-svg,.cbt-master-svg *{animation:none!important;transition:none!important}}
/* v6.21: the literal approved raster master replaces the previous approximated SVG. */
.cbt-approved-frame {pointer-events:none;shape-rendering:geometricPrecision}
.cbt-variable-labels {pointer-events:none;text-rendering:geometricPrecision}
.cbt-frame-serial {paint-order:stroke;stroke:#eef2f7;stroke-width:2}

/* CBT v6.22: White vs silver material distinction, same approved master silhouette. */
.cbt-frame.tier-estandar .cbt-reference-card{filter:none!important}
.cbt-frame.tier-extra-rara .cbt-reference-card{filter:drop-shadow(0 1px 2px rgba(197,209,224,.46))!important}
.cbt-rarity-plaque{pointer-events:none}
.cbt-frame.tier-extra-rara .cbt-rarity-label,.cbt-frame.tier-rarisima .cbt-rarity-label,.cbt-frame.tier-ultralimitada .cbt-rarity-label{font-weight:900;text-rendering:geometricPrecision}

/* v6.23: photo window outline is redrawn in SVG after making the master frame fully transparent in the photo area. */
.cbt-photo-outline{pointer-events:none;shape-rendering:geometricPrecision}

/* v6.27: top-right panel uses rarity color instead of fixed navy. */
.cbt-rarity-plaque{shape-rendering:geometricPrecision}

/* v6.27: the whole top-right navy band is painted with the rarity color. */
.cbt-rarity-band{pointer-events:none;shape-rendering:geometricPrecision}

/* v6.27: the actual master artwork pixels have rarity-colored top right band; no overlay below the raster. */

.women-copy-back{display:grid;align-content:center;justify-items:center;gap:12px;background:#102448;border:3px double #bac9dd;color:white;text-align:center;height:100%;min-height:180px}
.women-detail-list button{background:#14294c;color:white;padding:8px;border:1px solid #9ab1ce;border-radius:4px}
.back-serial{font-variant-numeric:tabular-nums}

.rarity-tabs .rarity-filter.rarity-ultralimitada{border-left:3px solid transparent;border-image:linear-gradient(180deg,#ff5e78,#ffc94e,#52d4b1,#699bff,#b384ed) 1}
