/* Brand22: U-23 opening only. Card artwork and server issuance are unchanged. */
.brand22-opening.opening-overlay{height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;padding:calc(env(safe-area-inset-top,0px) + 12px) 16px calc(env(safe-area-inset-bottom,0px) + 10px);background:radial-gradient(ellipse at 50% 48%,#142a44,#091625 60%,#060d17);gap:6px}
.brand22-opening .opening-top{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:8px}
.brand22-opening .opening-top>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.brand22-opening .opening-top>div:first-child>span{letter-spacing:.7px;font-size:11px}
.brand22-opening .opening-top strong{font-size:30px;margin-top:0}
.brand22-opening .opening-progress{margin-top:2px;gap:4px}
.brand22-opening .opening-progress>span{width:22px;max-width:5vw;height:4px}
.brand22-opening .opening-actions{display:flex;flex-direction:row;align-items:center;gap:6px}
.brand22-opening .opening-actions .opening-close{width:44px;height:44px;min-width:44px;flex:0 0 44px}
.brand22-opening .opening-actions .opening-skip{min-height:44px}
.brand22-opening .opening-stage{display:grid;place-items:center;min-height:0;flex:1 1 0;overflow:hidden;padding:8px 6px;container-type:size;filter:none!important}
.brand22-opening .opening-stage.summary-stage{display:block;overflow:auto;container-type:normal;overscroll-behavior:contain}
.brand22-opening .opening-bottom{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:0;width:min(440px,100%);background:transparent;border:0;border-radius:0;gap:6px;padding:4px 0 0}
.brand22-opening .opening-primary{width:100%!important;min-height:48px;background:#ad3345;box-shadow:none;border:1px solid #dc8890}
.brand22-opening .opening-instruction{font-size:12px!important;letter-spacing:0!important}
.brand22-opening .opening-secondary{width:100%;min-height:44px;border:1px solid #43566b;border-radius:8px;background:#14253a;color:#f5e5ce;font-weight:700}
.brand22-opening .opening-ambient,.brand22-opening .opening-rays,.brand22-opening .opening-shockwave,.brand22-opening .opening-shards,.brand22-opening .opening-flash{display:none!important}
.brand22-opening .foil-pack{width:var(--cbt-foil-width,min(78vw,300px))!important;aspect-ratio:5/7;transform:rotateY(var(--peel)) rotate(-1deg);filter:drop-shadow(0 10px 14px #0009);touch-action:none}
.brand22-opening .foil-top{height:13%;border:1px solid #b7a17d;border-bottom:1px dashed #d8c39e;background:repeating-linear-gradient(0deg,#283e50 0 1px,#3a4b5c 1px 2px);box-shadow:inset 0 0 10px #c5b99d30}
.brand22-opening .foil-bottom{inset:12% 0 0;border:1px solid #b7a17d;border-top:0;background:linear-gradient(103deg,#fff0 0%,#acbdd31f 12%,#fff0 22%,#0003 41%,#fff0 56%,#ccd2de22 76%,#fff0 92%),repeating-linear-gradient(118deg,#fff0 0 29px,#b1c3e00c 30px 31px,#fff0 33px 55px),linear-gradient(135deg,#182e48,#0c1e36 55%,#233b52);box-shadow:inset 0 0 0 3px #c6ad7333}
.brand22-opening .foil-center{inset:11% 6% 12%;gap:clamp(6px,2.2vw,14px);border:1px solid #b8a27a65}
.brand22-opening .foil-center strong{width:94%;line-height:1;display:block}
.brand22-opening .brand-foil-img{width:94%;max-width:250px;height:auto}
.brand22-opening .foil-center em{font-size:clamp(7px,2.1vw,11px);letter-spacing:.8px}
.brand22-opening .foil-series{font-size:clamp(8px,2.2vw,12px)}
.brand22-opening .foil-quantity{margin-top:0;padding:5px 10px;background:transparent;letter-spacing:1px}
.brand22-opening .foil-reflection{inset:0;opacity:.3;clip-path:inset(0);animation-duration:5s}
.brand22-opening .foil-ridges,.brand22-opening .pocket-ridges{background:repeating-linear-gradient(90deg,#b9aa8c 0 1px,#645d53 1px 2px,#9b8d74 2px 3px);height:7px}
.brand22-opening .opening-stage .opening-draw-scene{width:var(--cbt-scene-width,min(78vw,300px))!important;aspect-ratio:5/8;max-width:100%}
.brand22-opening.is-extracted .opening-stage .opening-draw-scene{aspect-ratio:5/7}
.brand22-opening .opening-draw-scene .draw-card{transform:translate3d(0,10%,0);animation:none;filter:drop-shadow(0 7px 12px #0008);transition:transform .24s ease;box-sizing:border-box}
.brand22-opening .opening-draw-scene.fully-drawn .draw-card{transform:none;cursor:pointer}
.brand22-opening .pack-pocket{inset:auto -1% 0;height:16%;border:1px solid #b7a17d;gap:2px;background:linear-gradient(110deg,#233952,#0e2136 50%,#2c4258);box-shadow:inset 0 0 0 2px #c6ad7333}
.brand22-opening .pack-pocket strong{font-size:clamp(12px,3.8vw,20px);line-height:1}
.brand22-opening .pack-pocket small{font-size:9px;line-height:1;letter-spacing:0}
.brand22-opening .pack-pocket .brand-pocket-img{width:65px;max-height:18px;object-fit:contain}
.brand22-opening .pocket-mouth{height:5px}
.brand22-opening .pocket-ridges{height:4px}
.brand22-opening.is-extracted .pack-pocket{display:none}
.brand22-opening .opening-neutral-back{width:100%;height:100%;aspect-ratio:5/7;box-sizing:border-box;padding:5%;background:#10233c;clip-path:polygon(3% 0,97% 0,100% 2%,100% 98%,97% 100%,3% 100%,0 98%,0 2%);border:2px solid #b3bdc9;display:grid;place-items:center}
.brand22-opening .opening-neutral-back>div{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px solid #7e8da3;background:linear-gradient(150deg,#1b3653,#0b192d 80%)}
.brand22-opening .opening-neutral-back img{width:84%;height:auto;object-fit:contain}
.brand22-opening .opening-neutral-back span{font-size:clamp(9px,2.6vw,13px);letter-spacing:2px;color:#d4dfeb}
.brand22-opening.is-extracted:not(.is-revealed) .draw-card{animation:brand22-extract .24s ease-out both}
@keyframes brand22-extract{from{transform:translateY(8%)}to{transform:translateY(0)}}
.brand22-opening.is-revealed:not(.fx-finished) .draw-card{animation:brand22-reveal .4s ease-out both}
@keyframes brand22-reveal{0%{transform:perspective(1000px) rotateY(-90deg)}100%{transform:perspective(1000px) rotateY(0)}}
.brand22-opening.rarity-infrecuente{--rarity-glow:#419b60}.brand22-opening.rarity-rara{--rarity-glow:#c8404b}.brand22-opening.rarity-extra-rara{--rarity-glow:#d6e1ef}.brand22-opening.rarity-rarisima{--rarity-glow:#e4bd62}.brand22-opening.rarity-ultralimitada{--rarity-glow:#9cbce8}
.brand22-opening.is-revealed .draw-card:after{inset:0;content:'';opacity:0;background:linear-gradient(115deg,transparent 15%,var(--rarity-glow) 48%,transparent 65%);mix-blend-mode:screen;animation:brand22-glint .6s ease-out both;pointer-events:none;clip-path:inset(0)}
.brand22-opening.is-revealed.rarity-estandar .draw-card:after{display:none}
.brand22-opening.is-revealed.rarity-ultralimitada .draw-card:after{background:linear-gradient(115deg,transparent 8%,#f176a9,#ffd36f,#77dfb6,#85b5ff,#c3a2fa,transparent 88%)}
@keyframes brand22-glint{0%{opacity:0;transform:translateX(-70%)}45%{opacity:.22}100%{opacity:0;transform:translateX(70%)}}
.brand22-opening .draw-card{overflow:hidden}
.brand22-opening .opening-new{color:#f6d78a;font-weight:900}
.brand22-opening .opening-reveal-label>strong{font-size:clamp(15px,5vw,22px)}
.brand22-opening .summary-card::before{display:none!important}
@media(prefers-reduced-motion:reduce){.brand22-opening *, .brand22-opening *::before,.brand22-opening *::after{animation:none!important;transition:none!important}}

/* Brand34: same Spanish package artwork as shop, split for existing tear animation. */
.brand22-opening .foil-pack.photo-foil-pack{aspect-ratio:508/868;height:auto;}
.brand22-opening .photo-foil-pack .foil-top,.brand22-opening .photo-foil-pack .foil-bottom{padding:0;border:0;box-shadow:none;background-image:url('assets/brand/pack-u23-photo.webp?v=brand48');background-repeat:no-repeat;background-color:transparent;}
.brand22-opening .photo-foil-pack .foil-top{inset:0 0 auto;height:13%;background-size:100% 769.230769%;background-position:center top;}
.brand22-opening .photo-foil-pack .foil-bottom{inset:13% 0 0;background-size:100% 114.942529%;background-position:center bottom;}
.brand22-opening .photo-foil-pack .foil-reflection{display:none;}
.brand22-opening .pack-pocket{background:linear-gradient(115deg,#8e1830,#46152c 48%,#101d3c);border-color:#e5bc75;}

/* Brand34: reuse the exact store artwork, split at the seal for tearing. */
.brand22-opening .photo-opening-pack{aspect-ratio:508/868!important;height:auto!important;background:none!important}
.brand22-opening .photo-opening-pack .foil-top,.brand22-opening .photo-opening-pack .foil-bottom{padding:0;border:0;box-shadow:none;background-image:url('assets/brand/pack-u23-photo.webp?v=brand48');background-repeat:no-repeat;background-color:transparent;overflow:visible}
.brand22-opening .photo-opening-pack .foil-top{inset:0 0 auto;height:13%;background-size:100% 769.230769%;background-position:center top}
.brand22-opening .photo-opening-pack .foil-bottom{inset:13% 0 0;background-size:100% 114.942529%;background-position:center bottom}
.brand22-opening .photo-opening-pack .foil-top>* , .brand22-opening .photo-opening-pack .foil-bottom>* , .brand22-opening .photo-opening-pack .foil-reflection{display:none}
.brand22-opening .pack-pocket{background:linear-gradient(125deg,#841d37,#101c3c 75%)}

/* Brand35: photographic foil, directional seal tear and matching sleeve. */
.brand22-opening .photo-foil-pack{--seal:8%;transform:perspective(900px) rotateY(var(--peel)) rotate(-1deg);}
.brand22-opening .photo-foil-pack .foil-top{inset:0 0 auto;height:8%;background-size:100% 1250%;background-position:center top;transform-origin:95% 70%;}
.brand22-opening .photo-foil-pack .foil-bottom{inset:8% 0 0;background-size:100% 108.695652%;background-position:center bottom;}
.brand22-opening .photo-foil-pack .foil-reflection{display:block;inset:9% 5% 5%;opacity:.18;background:linear-gradient(112deg,transparent 25%,#fff0 42%,#fff8 49%,transparent 57%);clip-path:inset(0);animation:b35-shine 4.8s ease-in-out infinite;transform:none;}
@keyframes b35-shine{0%,20%{background-position:100% 0;opacity:0}45%{opacity:.18}75%,100%{background-position:0 0;opacity:0}}
.brand22-opening .photo-foil-pack .foil-reflection{background-size:250% 100%}
.brand22-opening .photo-foil-pack.tearing{animation:none;pointer-events:none}
.brand22-opening .photo-foil-pack.tearing .foil-top{animation:b35-seal .78s cubic-bezier(.25,.65,.35,1) both}
.brand22-opening .photo-foil-pack.tearing .foil-bottom{animation:b35-body .78s ease-out both}
.brand22-opening .photo-foil-pack .foil-rip-line{top:8%;left:3%;width:94%;height:2px;background:#e7bd75;box-shadow:none;transform-origin:left;}
.brand22-opening .photo-foil-pack.tearing .foil-rip-line{animation:b35-cut .38s ease-out both}
.brand22-opening .photo-foil-pack.tearing .foil-reflection{display:none}
@keyframes b35-seal{0%{transform:none;opacity:1}25%{transform:translate(3%,-12%) rotate(4deg)}65%{transform:translate(45%,-100%) rotate(18deg);opacity:1}100%{transform:translate(85%,-160%) rotate(25deg);opacity:0}}
@keyframes b35-body{0%,100%{transform:none}25%{transform:translateX(-1%) rotate(-1deg)}55%{transform:translateX(1%) rotate(.5deg)}}
@keyframes b35-cut{0%{transform:scaleX(0);opacity:1}75%{transform:scaleX(1);opacity:.8}100%{transform:scaleX(1);opacity:0}}
.brand22-opening .pack-pocket{background:linear-gradient(0deg,#08142b55,#08142b15),url('assets/brand/pack-u23-photo.webp?v=brand48') center bottom/100% auto no-repeat;border:0;box-shadow:none;height:20%;justify-content:flex-start;padding-top:8px;}
.brand22-opening .pack-pocket .pocket-brand,.brand22-opening .pack-pocket strong,.brand22-opening .pack-pocket .pocket-ridges,.brand22-opening .pack-pocket .pocket-foil-shine{display:none}
.brand22-opening .pack-pocket small{background:#101a30d9;padding:3px 8px;border-radius:4px;color:#fff;z-index:2}
.brand22-opening .pack-pocket .pocket-mouth{height:5px;background:linear-gradient(#090c16,#a77b42);border:0}
.brand22-opening.is-extracted:not(.is-revealed) .draw-card{animation:b35-extract .36s cubic-bezier(.2,.75,.3,1) both}
@keyframes b35-extract{from{transform:translateY(13%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.brand22-opening .photo-foil-pack *, .brand22-opening .draw-card{animation:none!important;transition:none!important}}
/* Brand36: explicit photographic sleeve, independent of legacy foil CSS. */
.brand22-opening .pack-pocket.photo-pack-pocket{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;height:24%;overflow:visible;display:block;}
.brand22-opening .photo-pack-pocket .photo-pocket-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block;}
.brand22-opening .photo-pack-pocket .pocket-mouth{z-index:1;height:4px;background:#471528;border-top:1px solid #e9bd74;}
.brand22-opening .photo-pack-pocket small{position:absolute;top:auto;bottom:100%;right:0;margin-bottom:4px;z-index:2;background:#101a30e8;color:#fff;white-space:nowrap;}
.brand22-opening.is-extracted .pack-pocket.photo-pack-pocket{display:none;}
/* Brand37: keep the exact approved artwork visible during extraction. */
.brand22-opening .pack-pocket.photo-pack-pocket{height:auto!important;aspect-ratio:508/261;inset:auto -1% 0;z-index:6;}
.brand22-opening .photo-pack-pocket .photo-pocket-art{object-fit:contain;object-position:center bottom;}
.brand22-opening .photo-pack-pocket .pocket-mouth{background:#17142b;border-top:1px solid #c69b50;}
.brand22-opening .foil-pack.photo-foil-pack{background:transparent!important;border:0!important;}
/* Brand38: actual card front peeks above full opened wrapper. */
.brand22-opening:not(.is-extracted) .opening-stage .opening-draw-scene{aspect-ratio:1/1.94;}
.brand22-opening:not(.is-extracted) .opening-draw-scene .draw-card{width:92%;left:4%;top:0;transform:translateY(0);animation:none;}
.brand22-opening:not(.is-extracted) .pack-pocket.photo-pack-pocket{inset:10.8% 0 0;height:auto!important;aspect-ratio:auto;overflow:visible;}
.brand22-opening .photo-pack-pocket .photo-pocket-art{object-fit:fill;clip-path:polygon(0 8%,100% 8%,100% 100%,0 100%);top:-8.7%;height:108.7%;}
.brand22-opening .photo-pack-pocket .pocket-mouth{display:none;}
.brand22-opening .photo-pack-pocket small{bottom: auto;top:100%;right:0;margin-top:4px;}
.brand22-opening.is-revealed:not(.fx-finished) .draw-card{animation:b38-front-out .36s ease-out both;}
@keyframes b38-front-out{from{transform:translateY(15%)}to{transform:translateY(0)}}
.brand22-opening .foil-pack.photo-foil-pack{max-width:90%;}

/* Brand39: stationary 5:7 card, descending photographic wrapper. */
.brand22-opening .opening-stage .opening-draw-scene{aspect-ratio:1/1.84!important;}
.brand22-opening .opening-draw-scene .draw-card{width:89.2857%!important;left:5.35715%!important;top:0!important;transform:none!important;animation:none!important;z-index:2!important;}
.brand22-opening .pack-pocket.photo-pack-pocket{display:block!important;inset:10.2% 0 auto!important;height:auto!important;aspect-ratio:508/798!important;z-index:6!important;opacity:1;visibility:visible;transform:translate3d(0,var(--drag-down,0px),0);transition:none;pointer-events:none;}
.brand22-opening .photo-pack-pocket .photo-pocket-art{object-fit:contain;}
.brand22-opening.is-extracted .pack-pocket.photo-pack-pocket{animation:b39-drop .5s cubic-bezier(.2,.7,.3,1) both;}
@keyframes b39-drop{from{transform:translate3d(0,var(--drag-start,0px),0);opacity:1}80%{opacity:1}to{transform:translate3d(0,110%,0);opacity:0;visibility:hidden}}
.brand22-opening.is-revealed .draw-card:after{animation-delay:.5s;}
.brand22-opening.card-leaving .opening-draw-scene .draw-card{animation:draw-card-discard .34s ease-in forwards!important;}
@media(prefers-reduced-motion:reduce){.brand22-opening.is-extracted .pack-pocket.photo-pack-pocket{animation:none;visibility:hidden;}.brand22-opening.is-revealed .draw-card:after{animation:none;}}
