/* A short turn, a contained rarity accent, then room to read the artist. */
@property --tear { syntax: '<number>'; inherits: true; initial-value: 0; }
.premium-wrapper { background: linear-gradient(115deg,#655542 0%,#1c171b 9%,#30252b 45%,#151316 75%,#594b40); border: 1px solid #a29479; border-radius: 8px; box-shadow: inset 0 0 0 5px #161215,inset 0 0 0 6px #7e7059,inset 8px 0 16px #ffffff10,inset -8px 0 18px #0009,0 18px 36px #0008; }
.premium-wrapper::before { inset: 7% 7% 9%; background: repeating-linear-gradient(90deg,transparent 0 6px,#c1a77e19 6px 7px),linear-gradient(160deg,#bca67a13,#0000 45%,#030204a0); clip-path: none; border: 1px solid #a5956e66; border-radius: 2px; filter: none; }
.premium-wrapper::after { inset: 0; border: 0; background: repeating-linear-gradient(93deg,#ffffff08 0px,transparent 1px 4px); opacity: .3; pointer-events: none; }
.wrapper-foil { position: absolute; inset: 0; pointer-events: none; opacity: .52; background: linear-gradient(112deg,transparent 16%,#74c9b524 30%,#c7abed38 38%,#d8c9a736 45%,#91d2de26 52%,transparent 64%); background-size: 240% 100%; mix-blend-mode: screen; animation: wrapperSheen 8s ease-in-out infinite alternate; }
.wrapper-arch { position: absolute; inset: 17% 18% 31%; border: 1px solid #c1ad79aa; border-radius: 50% 50% 2px 2px; box-shadow: 0 0 0 6px #100d1166,0 0 0 7px #d3ba7e33,inset 0 0 45px #0008; background: radial-gradient(ellipse at 50% 20%,#c6b78622,transparent 65%),linear-gradient(90deg,#fff1,transparent 20% 80%,#fff1); }
.wrapper-seal { position: absolute; left: 34%; width: 32%; top: 33%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #e2ce9c; font: 400 18cqw/1 var(--serif); border: 1px solid #d6bf83; outline: 1px solid #ad936f66; outline-offset: 5px; background: radial-gradient(circle at 30% 20%,#514536,#171218 70%); box-shadow: inset 1px 1px 4px #ffffff28,0 8px 20px #0009; }
.wrapper-brand { position: absolute; inset: 11% 0 auto; text-align: center; font: 500 7cqw/1 var(--serif); letter-spacing: .32em; padding-left: .32em; color: #e8dcc3; }
.premium-wrapper .pf-title { top: 74%; font-size: 6cqw; letter-spacing: .12em; }
.premium-wrapper .pf-sub { top: 81.5%; color: #d6c6aa; font-size: 2.8cqw; }
.premium-wrapper .pf-count { top: 87%; font-size: 2.6cqw; }
.wrapper-crimp { position: absolute; inset: auto 0 0; height: 4.5%; background: repeating-linear-gradient(90deg,#a19276 0px,#39312b 1px,#53483c 3px,#201c20 4px); border-top: 1px solid #b19d7066; opacity: .8; }
.tear-pack { transition: --tear 650ms cubic-bezier(.22,.65,.3,1); }
.opening .tear-pack { animation: sealedPackEnter 480ms cubic-bezier(.2,.75,.2,1) both; }
.opening { animation: none; }
.tear-pack .pack-body { background-color: #171318; border-radius: 8px; isolation: isolate; }
.pack-face.premium-wrapper { background-color: #171318; isolation: isolate; opacity: 1; }
@keyframes sealedPackEnter { from { transform: translateY(24px) scale(.96); } to { transform: none; } }
.tear-pack.dragging { transition: none; }
.tear-pack .pack-strip { height: 9%; background: repeating-linear-gradient(90deg,#766751 0,#342c29 1px,#534736 3px,#241f22 4px); border: 1px solid #bca77f99; border-bottom: 1px dashed #d1b88b88; border-radius: 5px 5px 0 0; box-shadow: inset 0 1px #e8d4a566,0 5px 8px #0008; transform: translateY(calc(var(--tear)*-16px)) rotate(calc(var(--tear)*-5deg)); transition: opacity 400ms; }
.tear-pack .pack-strip span { padding: 6px 12px; font-size: 10px; letter-spacing: .2em; color: #f5e5c5; background: #161115bf; border: 1px solid #ad987b55; }
.tear-pack .tear-line { height: 2px; background: #ffeac4; box-shadow: 0 0 9px #ffdca6,0 0 26px #efbe71; }
.pack-spill { position: absolute; z-index: 5; inset: -32% -30% 55%; pointer-events: none; opacity: calc(var(--tear)*.85); transform-origin: 50% 75%; transform: scaleY(calc(.4 + var(--tear)*.6)); background: radial-gradient(ellipse at 50% 82%,#efd39b55,transparent 60%); }
.pack-spill i { position: absolute; inset: 0; background: linear-gradient(0deg,#ffdeb87a,transparent 88%); clip-path: polygon(28% 87%,calc(28% + var(--tear)*44%) 87%,calc(28% + var(--tear)*65%) 0%,5% 0%); filter: blur(5px); }
.tear-pack.torn .pack-strip { transform: translate(90px,-100px) rotate(18deg); opacity: 0; transition: transform 460ms cubic-bezier(.2,.7,.2,1),opacity 340ms; }
.tear-pack.torn .pack-body { transform: translateY(50vh) rotate(3deg); opacity: 0; transition: transform 500ms cubic-bezier(.4,0,1,1),opacity 460ms; }
.tear-pack.torn .pack-spill { opacity: 0; transition: opacity 420ms; }
.pulled .pulled-portrait { display: grid; place-items: center; background: linear-gradient(145deg,#31262c,#100e13); }
.pulled-portrait i { display: block; width: 24px; height: 24px; border-radius: 50%; border: 1px solid color-mix(in srgb,var(--c) 70%,transparent); background: #151219; overflow: hidden; }
.pulled-portrait img { width: 100%; height: 100%; object-fit: cover; }
@keyframes wrapperSheen { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }
.opening-stage { isolation: isolate; }
.opening-stage .reveal { z-index: 1; }
.opening-stage .big-card { transition: transform 480ms cubic-bezier(.2,.75,.2,1), opacity 280ms ease-out; }
.opening-stage .big-card.flipped { transform: rotateY(180deg) scale(1); }
.opening-stage .big-card.quick-reveal { transition-duration: 160ms; }
.opening-stage .big-card.away { transform: translate(0, 34vh) rotateY(180deg) scale(.32); transition-duration: 320ms; }
.reveal-accent { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.reveal-halo { position: absolute; width: min(75vh,620px); aspect-ratio: 1; top: 50%; left: 50%; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb,var(--c) 25%,transparent),transparent 68%); animation: revealHalo 1200ms ease-out both; }
.reveal-accent-mortal .reveal-halo { opacity: .4; }
.reveal-ring { position: absolute; left: 50%; top: 50%; width: min(44vh,350px); aspect-ratio: 1; border: 1px solid color-mix(in srgb,var(--c) 65%,transparent); border-radius: 50%; animation: revealRing 900ms cubic-bezier(.16,1,.3,1) both; }
.reveal-crown { position: absolute; left: 50%; top: 50%; width: min(100vh,800px); aspect-ratio: 1; background: repeating-conic-gradient(from 9deg,transparent 0deg 28deg,color-mix(in srgb,var(--c) 20%,transparent) 29deg 30deg); mask-image: radial-gradient(circle, transparent 12%,#000 36%,transparent 68%); animation: revealCrown 1400ms ease-out both; }
.reveal-accent-titan .reveal-crown, .reveal-accent-mythic .reveal-crown { background: repeating-conic-gradient(from 3deg,transparent 0deg 18deg,color-mix(in srgb,var(--c) 35%,transparent) 19deg 20deg); }
.reveal-accent i { position: absolute; left: 50%; top: 50%; width: 2px; height: 6px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px color-mix(in srgb,var(--c) 60%,transparent); animation: revealMote 1050ms cubic-bezier(.18,.8,.22,1) var(--delay) both; }
@keyframes revealHalo { 0% { transform: translate(-50%,-50%) scale(.75); opacity: 0; } 24% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1.15); opacity: 0; } }
@keyframes revealRing { from { transform: translate(-50%,-50%) scale(.65); opacity: .55; } to { transform: translate(-50%,-50%) scale(1.65); opacity: 0; } }
@keyframes revealCrown { 0% { transform: translate(-50%,-50%) rotate(-6deg) scale(.86); opacity: 0; } 20% { opacity: .9; } 100% { transform: translate(-50%,-50%) rotate(3deg) scale(1.04); opacity: 0; } }
@keyframes revealMote { from { transform: translate(calc(var(--dx)*.58),calc(var(--dy)*.58)) scale(.6); opacity: 0; } 15% { opacity: .8; } to { transform: translate(var(--dx),var(--dy)) scale(.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wrapper-foil { animation: none; background-position: 40% 50%; }
  .opening .tear-pack, .tear-pack, .tear-pack .pack-strip, .tear-pack.torn .pack-strip, .tear-pack.torn .pack-body { transition-duration: 0ms; animation: none; }
  .pack-spill { display: none; }
  .reveal-accent { display: none; }
  .opening-stage .big-card, .opening-stage .big-card.quick-reveal { transition-duration: 0ms; animation: none; }
  .opening-stage .big-card.flipped { transform: rotateY(180deg); }
  .opening-stage .big-card.away { transform: rotateY(180deg); opacity: 0; }
}
