.kdp{--kp-bg:var(--klt-bg,#fff);--kp-surface:var(--klt-surface,#fff);--kp-text:var(--klt-text,#14171f);--kp-muted:var(--klt-muted,#758094);--kp-border:var(--klt-border,#e6e9ef);--kp-raised:var(--klt-raised,#f3f5f9);font-family:Inter,system-ui,sans-serif;color:var(--kp-text);max-width:1200px;padding:40px 24px 80px;margin:0 auto}.kdp *{box-sizing:border-box}.kdp [hidden]{display:none!important}.kdp button,.kdp a,.kdp select{font:inherit}.kdp-intro{max-width:800px;margin-bottom:36px}.kdp-eyebrow{font-size:10px;font-weight:700;letter-spacing:.16em;color:#5268ff}.kdp-intro h1{font-size:clamp(36px,5vw,64px);font-weight:650;line-height:1.06;letter-spacing:-.055em;margin:16px 0}.kdp-intro p{font-size:16px;color:var(--kp-muted);line-height:1.6}.kdp-tabs{display:flex;gap:24px;border-bottom:1px solid var(--kp-border)}.kdp button{border:0;cursor:pointer;background:var(--kp-raised);color:var(--kp-text);padding:12px 18px;border-radius:12px;font-size:13px;font-weight:600}.kdp-tabs button{background:transparent!important;border:0;border-bottom:2px solid transparent;border-radius:0;padding:16px 0}.kdp-tabs button[aria-pressed=true]{border-bottom-color:#3b55ff;color:#5268ff!important}.kdp-tabs span{padding:3px 7px;border-radius:6px;background:var(--kp-raised)}.kdp button:disabled{cursor:not-allowed;opacity:.45}.kdp button:focus-visible,.kdp a:focus-visible,.kdp select:focus-visible{outline:2px solid #3b55ff;outline-offset:4px}.kdp-status{min-height:20px;color:var(--kp-muted);font-size:13px;margin:12px 0}.kdp-daily{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:20px 24px;border:1px solid var(--kp-border);border-radius:16px;margin-bottom:28px;background:var(--kp-surface)}.kdp-daily strong{display:block;font-size:21px;margin-top:5px;letter-spacing:-.04em}.kdp-daily p{font-size:12px;margin:0;color:var(--kp-muted)}.kdp .kdp-last{margin-left:auto;background:transparent;font-size:11px;padding:0}.kdp-pack-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.kdp-pack{border:1px solid var(--kp-border);border-radius:22px;overflow:hidden;background:var(--kp-surface)}.kdp-pack-art{height:330px;padding:32px;display:flex;justify-content:center;align-items:center;position:relative;background:radial-gradient(ellipse at 50% 30%,#6375ff29,transparent 70%),var(--kp-raised);perspective:900px}.kdp-pack-art>img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 18px 18px #0003);transform:rotate(-7deg)}.kdp-pack-placeholder{position:relative;width:180px;height:255px;padding:24px 18px;background:repeating-linear-gradient(115deg,transparent 0 18px,#ffffff08 18px 19px),linear-gradient(145deg,#6275ff,#2638c6 60%,#101b64);border:1px solid #ffffff60;border-top:12px solid #8997ff;border-bottom:12px solid #2332a6;box-shadow:0 22px 24px #0003;color:#fff;display:flex;flex-direction:column;justify-content:space-between;transform:rotate(-7deg);clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}.kdp-pack-placeholder span{font-size:12px;letter-spacing:.15em;font-weight:700}.kdp-pack-placeholder strong{font-size:27px;line-height:1.05;letter-spacing:-.04em;white-space:pre-line}.kdp-pack-placeholder small{font-size:9px;letter-spacing:.1em}.kdp-pack-placeholder i{position:absolute;right:14px;top:55px;font-size:65px;color:#b3bdff;font-style:normal}.kdp-pack-body{padding:26px}.kdp-pack h2{font-size:27px;letter-spacing:-.04em;line-height:1.2;margin:10px 0}.kdp-pack p{font-size:13px;color:var(--kp-muted);line-height:1.6}.kdp .kdp-primary{display:inline-flex;align-items:center;justify-content:center;padding:14px 24px;background:#3b55ff!important;color:#fff!important;border-radius:999px;margin-top:12px;box-shadow:0 5px 18px #3b55ff22}.kdp-rates{font-size:12px;padding:8px 0;margin:12px 0}.kdp-rates summary{cursor:pointer}.kdp-rates p{margin:6px 0}.kdp-rates small{color:var(--kp-muted)}.kdp-empty{grid-column:1/-1;max-width:650px;padding:32px;border:1px dashed var(--kp-border);border-radius:16px;line-height:1.7;color:var(--kp-muted)}.kdp-error{display:block;color:#ca5868}.kdp-collection-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0}.kdp-collection-head h2{font-size:28px;letter-spacing:-.035em;margin:0}.kdp-collection-head p{font-size:13px;color:var(--kp-muted)}.kdp label{font-size:12px}.kdp select{display:inline-block;width:auto;min-width:120px;padding:10px;margin-left:10px;border-radius:10px;border:1px solid var(--kp-border);background:var(--kp-surface);color:var(--kp-text)}.kdp-collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.kdp-owned-image{position:relative;aspect-ratio:2.5/3.5;padding:8px;background:var(--kp-raised);border-radius:14px;display:grid;place-items:center;overflow:hidden}.kdp-owned-image img{width:100%;height:100%;object-fit:contain}.kdp-quantity{position:absolute;right:12px;bottom:12px;padding:4px 9px;border-radius:7px;background:#101725da;color:white;font-size:12px}.kdp-owned h3{font-size:15px;margin:7px 0;line-height:1.4}.kdp-owned p{font-size:11px;color:var(--kp-muted);margin:0}.kdp-rarity{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--rarity,#98a5ba);margin-top:12px;font-weight:700}.kdp [data-rarity=common]{--rarity:#98a5ba}.kdp [data-rarity=rare]{--rarity:#56a5ff}.kdp [data-rarity=epic]{--rarity:#b78aff}.kdp [data-rarity=legendary]{--rarity:#f5c46a}.kdp-paging{display:flex;gap:20px;align-items:center;justify-content:center;margin:30px}.kdp-paging span{font-size:12px}.kdp .kdp-dialog{position:fixed;inset:0;padding:24px;margin:auto;width:min(1080px,calc(100vw - 32px));max-height:calc(100dvh - 32px);height:auto;border:1px solid #ffffff20;border-radius:26px;background:radial-gradient(ellipse at 50% 20%,#252b56,#0b0e18 75%)!important;color:#f2f4fc!important;overflow:auto;box-shadow:0 30px 100px #0008}.kdp-dialog::backdrop{background:#050913cf;backdrop-filter:blur(8px)}.kdp .kdp-close{position:absolute;right:16px;top:16px;width:40px;height:40px;padding:0;border:1px solid #ffffff25;background:#ffffff10!important;color:#fff!important;border-radius:50%;font-size:25px}.kdp-opening{text-align:center;padding:22px 12px 30px}.kdp-opening h2{font-size:32px;letter-spacing:-.04em;color:#fff!important;line-height:1.2;margin:14px 0 24px}.kdp-opening p{font-size:12px;color:#b7bfd8!important;line-height:1.5}.kdp-sealed{height:290px;display:flex;justify-content:center;align-items:center;margin:25px auto;filter:drop-shadow(0 0 25px #536bff30)}.kdp-sealed>img{max-height:100%;max-width:100%;object-fit:contain}.kdp-sealed.is-opening{animation:kdp-rip 1.1s ease-in forwards}.kdp-reveals{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:24px;max-width:850px;margin:20px auto}.kdp .kdp-flip{position:relative;aspect-ratio:2.5/3.5;padding:0;background:transparent!important;border:0;border-radius:15px;perspective:1100px;max-width:260px;width:100%;justify-self:center;animation:kdp-arrive .6s both}.kdp-flip-rotor{display:block;position:absolute;inset:0;transform-style:preserve-3d;transition:transform .85s cubic-bezier(.22,.7,.2,1);border-radius:inherit}.kdp-flip.is-revealed .kdp-flip-rotor{transform:rotateY(180deg)}.kdp-card-back,.kdp-card-face{position:absolute;inset:0;display:block;border-radius:inherit;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:1px solid #c3caff55;background:#141a35}.kdp-card-back{box-shadow:0 15px 25px #0005}.kdp-card-back>img{display:block;width:100%;height:100%;object-fit:cover}.kdp-card-face{transform:rotateY(180deg);box-shadow:0 0 22px color-mix(in srgb,var(--rarity) 45%,transparent)}.kdp-card-face>img{display:block;width:100%;height:100%;object-fit:contain}.kdp-card-caption{position:absolute;bottom:0;left:0;right:0;text-align:left;padding:30px 12px 12px;background:linear-gradient(transparent,#070a16 40%);color:#fff!important}.kdp-card-caption strong{display:block;font-size:13px;color:#fff!important;line-height:1.35;margin:6px 0}.kdp-card-caption small{display:block;font-size:10px}.kdp [data-to-collection]{display:block;background:transparent!important;color:#fff!important;margin:20px auto 0}.kdp .kdp-link{color:#5268ff}.kdp-demo{border-style:dashed}.kdp-demo .kdp-pack-art{background:radial-gradient(ellipse,#8f67ff24,transparent 70%),var(--kp-raised)}
@keyframes kdp-rip{0%,15%{transform:rotate(0) scale(1)}25%{transform:rotate(-5deg)}35%{transform:rotate(5deg)}45%{transform:rotate(-5deg) scale(1.04)}60%{transform:rotate(3deg) scale(1.08);filter:brightness(1.5)}80%{opacity:1;transform:translateY(-15px) scale(1.1);filter:brightness(2)}100%{opacity:0;transform:translateY(-55px) scale(1.2);filter:brightness(3)}}@keyframes kdp-arrive{from{opacity:0;transform:translateY(30px) rotate(-5deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@media(max-width:700px){.kdp{padding:28px 16px 60px}.kdp-intro{margin-bottom:22px}.kdp-intro p{font-size:13px}.kdp-pack-grid{grid-template-columns:1fr}.kdp-daily{padding:18px;gap:14px}.kdp .kdp-last{margin-left:0}.kdp-pack-art{height:300px}.kdp-collection-head{align-items:flex-start;flex-direction:column}.kdp-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.kdp-opening{padding:22px 0}.kdp-opening h2{font-size:25px}.kdp .kdp-dialog{padding:20px 14px}.kdp-reveals{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.kdp-reveals .kdp-flip:last-child:nth-child(odd){grid-column:1/-1;width:calc(50% - 6px)}.kdp-card-caption{padding:20px 8px 8px}.kdp-card-caption strong{font-size:11px}.kdp-card-caption small{font-size:9px}.kdp-daily strong{font-size:19px}}
@media(prefers-reduced-motion:reduce){.kdp *, .kdp *::before,.kdp *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Profile collection and single-card pack reveal. */
.kdp-tabs a{display:inline-flex;align-items:center;gap:8px;padding:16px 0;color:var(--kp-text);font-size:13px;font-weight:600;text-decoration:none}
.kdp-profile{max-width:none;padding:0 0 36px}.kdp-profile>.kdp-intro,.kdp-profile>.kdp-tabs{display:none}
.klt-card-kinds{display:flex;gap:26px;margin:28px 0 22px;border-bottom:1px solid var(--klt-border,#343944)}.klt-card-kinds a{padding:12px 0;color:var(--klt-muted,#929bab);font-weight:650;font-size:14px;text-decoration:none;border-bottom:2px solid transparent}.klt-card-kinds a[aria-current=page]{color:#6275ff;border-color:#6275ff}
.kdp .kdp-dialog{width:min(650px,calc(100vw - 24px))}.kdp-reveals{display:flex;justify-content:center;max-width:300px;min-height:0;margin:18px auto 8px;perspective:1000px}.kdp-reveals .kdp-flip,.kdp-reveals .kdp-flip:last-child:nth-child(odd){width:min(235px,65vw);max-width:235px;flex-shrink:0;animation:kdp-emerge .9s cubic-bezier(.2,.8,.2,1) both}.kdp-flip.is-leaving{animation:kdp-away .38s ease-in forwards!important}.kdp-opening{overflow:hidden}.kdp-sealed{position:relative;width:195px;height:280px;perspective:900px;overflow:visible}.kdp-sealed>.kdp-pack-placeholder{transform:none;width:195px;height:280px}.kdp-tear-strip{position:absolute;z-index:3;top:0;left:0;width:100%;height:25px;border-top:4px solid #b7c2ff;border-bottom:1px dashed #d1d8ff99;background:repeating-linear-gradient(90deg,#7f90ff 0 2px,#6477eb 2px 4px);color:white;font-size:8px;letter-spacing:.15em;line-height:20px;transform-origin:right center}.kdp-sealed.is-opening{animation:kdp-wrapper-drop 1.1s ease-in forwards}.kdp-sealed.is-opening .kdp-tear-strip{animation:kdp-tear .7s ease-in forwards}.kdp-sealed.is-opening>img,.kdp-sealed.is-opening>.kdp-pack-placeholder{clip-path:polygon(0 10%,8% 8%,15% 11%,23% 8%,32% 10%,42% 8%,51% 11%,63% 8%,74% 10%,86% 8%,100% 10%,100% 100%,0 100%)}
@keyframes kdp-tear{0%{transform:translate(0,0) rotate(0)}40%{transform:translate(20px,-8px) rotate(12deg)}100%{transform:translate(160px,-95px) rotate(65deg);opacity:0}}
@keyframes kdp-wrapper-drop{0%,55%{transform:translateY(0) rotate(0);opacity:1}70%{transform:translateY(20px) rotate(-3deg);opacity:1}100%{transform:translateY(170px) rotate(-12deg);opacity:0}}
@keyframes kdp-emerge{0%{opacity:0;transform:translateY(150px) rotate(-5deg) scale(.82)}50%{opacity:1;transform:translateY(-12px) rotate(2deg) scale(1.02)}100%{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
@keyframes kdp-away{to{opacity:0;transform:translateX(-180px) rotate(-18deg) scale(.9)}}
@media(max-width:700px){.kdp-profile{padding:0}.klt-card-kinds{gap:22px}.kdp-opening{padding:16px 0 10px}.kdp-opening h2{margin:12px 0 16px}.kdp-reveals{margin:12px auto}.kdp-reveals .kdp-flip{width:min(210px,60vw)}.kdp-profile .kdp-collection-head h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.kdp .kdp-sealed.is-opening,.kdp .kdp-reveals .kdp-flip,.kdp .kdp-tear-strip{animation:none!important}}
@media(max-width:700px){.kdp .kdp-dialog{max-height:calc(100dvh - 16px);padding:16px 12px}.kdp .kdp-opening h2{font-size:23px;margin:10px 0}.kdp .kdp-reveals .kdp-flip,.kdp .kdp-reveals .kdp-flip:last-child:nth-child(odd){height:min(294px,calc(100dvh - 240px));width:auto;aspect-ratio:2.5/3.5;min-height:150px}.kdp .kdp-opening p{margin:8px 0}.kdp .kdp-close{right:8px;top:8px;width:32px;height:32px}.kdp .kdp-sealed{height:min(260px,calc(100dvh - 220px))}.kdp .kdp-sealed>.kdp-pack-placeholder{height:100%;width:165px;font-size:12px}}

/* Full viewport opening stage: sizing follows both screen width and height. */
.kdp .kdp-dialog{--scene-text:#f5f5fc;--scene-muted:#c6cbe0;--scene-accent:#a8b3ff;position:fixed!important;inset:0!important;transform:none!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;padding:0!important;overflow:auto!important;box-shadow:none!important;background-color:#0b0e18!important;background-image:var(--kdp-scene-image,radial-gradient(ellipse at 50% 45%,#30385e,#0b0e18 80%))!important;background-size:cover!important;background-position:center!important;color:var(--scene-text)!important}
.kdp .kdp-dialog[data-scene=marble]{--scene-text:#342b1d;--scene-muted:#73634c;--scene-accent:#94712d;background-color:#f5f2eb!important;background-image:var(--kdp-scene-image,url('marble-gold.svg'))!important}
.kdp .kdp-dialog:before{content:'';position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,#ffffff00 10%,#00000018);z-index:-1}
.kdp .kdp-opening{box-sizing:border-box;min-height:100%;width:100%;max-width:none;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;overflow:visible;padding:max(42px,env(safe-area-inset-top)) 24px max(30px,env(safe-area-inset-bottom));text-align:center}
.kdp .kdp-opening h2{color:var(--scene-text)!important;font-size:clamp(24px,2.4vw,42px);line-height:1.15;margin:10px 0 14px!important;font-weight:650}.kdp .kdp-opening>.kdp-eyebrow{color:var(--scene-accent)!important}.kdp .kdp-opening>p{color:var(--scene-muted)!important;font-size:clamp(12px,1vw,15px);margin:12px 0!important;max-width:600px}
.kdp .kdp-reveals{display:flex;align-items:center;justify-content:center;width:100%;max-width:none;margin:10px 0!important;flex:none;min-height:0;perspective:1600px}
.kdp .kdp-reveals .kdp-flip,.kdp .kdp-reveals .kdp-flip:last-child:nth-child(odd){display:block;flex:none;max-width:none;width:auto!important;height:min(64dvh,calc(100dvh - 230px),760px,calc((100vw - 64px)*1.4))!important;min-height:0!important;aspect-ratio:2.5/3.5;margin:0!important;padding:0!important;align-self:center;justify-self:center}
.kdp .kdp-sealed{display:flex;align-items:center;justify-content:center;width:auto!important;aspect-ratio:195/280;height:min(60dvh,calc(100dvh - 230px),680px,calc((100vw - 80px)*1.43))!important;max-width:100%;margin:14px auto!important;flex:none;filter:drop-shadow(0 25px 30px #0003)}
.kdp .kdp-sealed>.kdp-pack-placeholder{width:100%!important;height:100%!important;transform:none;min-width:0;padding:clamp(16px,3vw,40px);border-top-width:14px;border-bottom-width:14px}.kdp .kdp-sealed>.kdp-pack-placeholder strong{font-size:clamp(28px,4vw,60px)}.kdp .kdp-sealed>.kdp-pack-placeholder i{font-size:clamp(60px,7vw,120px);top:24%;right:8%}.kdp .kdp-sealed>.kdp-pack-placeholder span{font-size:clamp(12px,1.4vw,22px)}.kdp .kdp-sealed>.kdp-pack-placeholder small{font-size:clamp(9px,1vw,15px)}.kdp .kdp-sealed>img{display:block;width:100%;height:100%;object-fit:contain;max-height:none;max-width:none}
.kdp .kdp-close{position:fixed!important;right:max(20px,env(safe-area-inset-right))!important;top:max(20px,env(safe-area-inset-top))!important;z-index:10;width:44px!important;height:44px!important;border:1px solid #a3a3a344!important;background:#151725a8!important;color:white!important;backdrop-filter:blur(10px)}
.kdp .kdp-dialog[data-scene=marble] .kdp-close{background:#fffcf0c9!important;color:#554022!important;border-color:#c2ac7955!important}.kdp [data-to-collection]{color:var(--scene-text)!important;margin:12px auto 0!important}.kdp .kdp-dialog[data-scene=marble] .kdp-primary{background:linear-gradient(120deg,#9a742f,#c29b50)!important;box-shadow:0 8px 24px #98722e2b}.kdp .kdp-opening>.kdp-primary{flex:none;margin-top:8px!important;min-height:44px}.kdp .kdp-card-caption .kdp-rarity{color:var(--rarity)!important}.kdp .kdp-card-caption{color:white!important}
@media(max-width:700px){.kdp .kdp-opening{padding:55px 16px 24px}.kdp .kdp-opening h2{font-size:25px}.kdp .kdp-close{width:38px!important;height:38px!important;right:12px!important;top:12px!important}.kdp .kdp-reveals .kdp-flip,.kdp .kdp-reveals .kdp-flip:last-child:nth-child(odd){height:min(62dvh,calc(100dvh - 230px),calc((100vw - 48px)*1.4))!important}.kdp .kdp-sealed{height:min(59dvh,calc(100dvh - 230px),calc((100vw - 72px)*1.43))!important}}
/* Keep the artwork's center independent of title and action heights. */
.kdp .kdp-opening{position:relative;display:block;height:100dvh;min-height:0;padding:0!important;overflow:hidden}
.kdp .kdp-opening>.kdp-eyebrow{position:absolute;top:max(24px,4dvh);left:64px;right:64px;line-height:1.5}
.kdp .kdp-opening>h2{position:absolute;top:max(48px,7dvh);left:50px;right:50px;margin:0!important}
.kdp .kdp-opening>p{position:absolute;bottom:max(84px,11dvh);left:24px;right:24px;max-width:none;margin:0!important}
.kdp .kdp-opening>[data-tear],.kdp .kdp-opening>[data-reveal-all],.kdp .kdp-opening>[data-to-collection]{position:absolute;bottom:max(24px,4dvh);left:50%;translate:-50% 0;margin:0!important;white-space:nowrap}
.kdp .kdp-reveals{position:absolute;top:50%;left:50%;translate:-50% -50%;width:100%;margin:0!important}
.kdp .kdp-reveals .kdp-flip,.kdp .kdp-reveals .kdp-flip:last-child:nth-child(odd){height:min(64dvh,calc(100dvh - 260px),1100px,calc((100vw - 64px)*1.4))!important}
.kdp .kdp-sealed{--pack-height:min(60dvh,calc(100dvh - 260px),1000px,calc((100vw - 80px)*1.43));position:absolute;top:50%;left:50%;translate:-50% -50%;height:var(--pack-height)!important;width:calc(var(--pack-height)*195/280)!important;margin:0!important}
@media(max-width:700px){.kdp .kdp-opening>.kdp-eyebrow{top:25px;font-size:9px}.kdp .kdp-opening>h2{top:48px;font-size:23px}.kdp .kdp-opening>p{bottom:82px;font-size:11px;line-height:1.4}.kdp .kdp-opening>[data-tear],.kdp .kdp-opening>[data-reveal-all],.kdp .kdp-opening>[data-to-collection]{bottom:max(20px,env(safe-area-inset-bottom))}.kdp .kdp-reveals .kdp-flip,.kdp .kdp-reveals .kdp-flip:last-child:nth-child(odd){height:min(62dvh,calc(100dvh - 220px),calc((100vw - 48px)*1.4))!important}.kdp .kdp-sealed{--pack-height:min(59dvh,calc(100dvh - 220px),calc((100vw - 72px)*1.43))}}

/* Printed foil wrapper: raised center, gussets, crimped seals and micro wrinkles. */
.kdp .kdp-sealed{width:calc(var(--pack-height)*.69)!important;max-width:70vw;aspect-ratio:195/280;perspective:1600px;filter:none;z-index:1;isolation:isolate}
.kdp .kdp-pack-shell{position:absolute;inset:0;transform:rotateY(-7deg) rotateZ(-2deg);transform-style:preserve-3d;border-radius:2% 2% 4% 3%;background:#ece4d3;box-shadow:inset 5px 0 9px #fff9,inset -8px 0 14px #51432f66,3px 15px 17px #28201536,0 45px 36px -20px #3e342c59;clip-path:polygon(0 0,2% .7%,4% 0,6% .7%,8% 0,10% .7%,12% 0,14% .7%,16% 0,18% .7%,20% 0,22% .7%,24% 0,26% .7%,28% 0,30% .7%,32% 0,34% .7%,36% 0,38% .7%,40% 0,42% .7%,44% 0,46% .7%,48% 0,50% .7%,52% 0,54% .7%,56% 0,58% .7%,60% 0,62% .7%,64% 0,66% .7%,68% 0,70% .7%,72% 0,74% .7%,76% 0,78% .7%,80% 0,82% .7%,84% 0,86% .7%,88% 0,90% .7%,92% 0,94% .7%,96% 0,98% .7%,100% 0,98.5% 8%,100% 24%,99% 46%,100% 65%,98% 91%,100% 100%,90% 99.5%,80% 100%,70% 99.5%,60% 100%,50% 99.5%,40% 100%,30% 99.5%,20% 100%,10% 99.5%,0 100%,1.8% 92%,0 67%,1% 44%,0 25%,1.4% 8%)}
.kdp .kdp-pack-print{position:absolute;inset:4.5% 0 5%;overflow:hidden;display:flex;align-items:stretch;border-radius:5% 5% 7% 6%;background:#e9e0c9;box-shadow:inset 0 6px 8px #ffffff5c,inset 0 -8px 10px #6c5a3433}
.kdp .kdp-pack-print>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.kdp .kdp-pack-print>.kdp-pack-placeholder{position:absolute;inset:0;width:100%;height:100%;padding:9% 10% 8%;transform:none!important;border:0;box-shadow:none;clip-path:none;color:#443824;background:radial-gradient(ellipse at 45% 32%,#fffdf5,#e5dcc7 80%);display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center}
.kdp .kdp-pack-print>.kdp-pack-placeholder span{position:relative;font-size:clamp(10px,1.2vw,18px);letter-spacing:.28em;z-index:1;color:#6b5a35}
.kdp .kdp-pack-print>.kdp-pack-placeholder strong{position:absolute;left:9%;right:9%;bottom:19%;font:500 clamp(18px,2.8vw,46px)/1.1 Georgia,serif;letter-spacing:.06em;overflow-wrap:anywhere;color:#514127}
.kdp .kdp-pack-print>.kdp-pack-placeholder small{position:relative;margin-top:auto;font-size:clamp(7px,.8vw,12px);letter-spacing:.22em;color:#79663e}
.kdp .kdp-pack-print>.kdp-pack-placeholder i{position:absolute;top:17%;left:18%;right:18%;height:50%;background:url('laurel.svg') center/contain no-repeat;font-size:0}
.kdp .kdp-pack-print>.kdp-pack-placeholder:after{content:'';position:absolute;inset:5%;border:1px solid #a68b495c;pointer-events:none}
.kdp .kdp-foil-grain{position:absolute;inset:0;pointer-events:none;background:url('foil-grain.svg') center/100% 100%;mix-blend-mode:soft-light;opacity:.9;z-index:3}
.kdp .kdp-foil-light{position:absolute;inset:3% 0 4%;border-radius:4%;pointer-events:none;z-index:4;background:linear-gradient(92deg,#31271650 0%,#fff8 2%,#34291730 4%,transparent 8%,#fff3 14%,transparent 23%,#ffffff4f 40%,#fff0 48%,#4e3c1712 65%,#fff2 79%,#3b2c1840 94%,#ffffffe0 97%,#1e170d55 100%),linear-gradient(164deg,transparent 15%,#fff3 15.4%,transparent 16%,transparent 75%,#30200014 75.4%,transparent 76%);box-shadow:inset 12px 0 14px -14px #0009,inset -13px 0 18px -15px #0009}
.kdp .kdp-crimp,.kdp .kdp-tear-strip{position:absolute;left:0;right:0;width:100%;height:5%;padding:0;border:0;z-index:5;background:repeating-linear-gradient(90deg,#89785b66 0 1px,#fff8 1px 2px,#d8cbb0 2px 4px),linear-gradient(#d2c3a4,#f6efda 45%,#a49473);box-shadow:0 2px 2px #0003,inset 0 -1px 1px #fff9;color:#665739;line-height:1;font-size:clamp(5px,.45vw,8px);letter-spacing:.15em;display:flex;align-items:center;justify-content:center}
.kdp .kdp-tear-strip{top:0;transform-origin:0 100%;border-bottom:1px solid #9c88514d}.kdp .kdp-crimp--bottom{bottom:0;box-shadow:inset 0 2px 2px #0002}.kdp .kdp-pack-shadow{position:absolute;left:10%;right:4%;height:6%;bottom:-9%;background:#2e241e38;border-radius:50%;filter:blur(12px);transform:rotate(2deg);z-index:-1}
.kdp .kdp-sealed.is-opening{animation:none!important}.kdp .kdp-sealed.is-opening .kdp-pack-shell{animation:kdp-real-open 1.9s cubic-bezier(.3,.05,.5,1) forwards}.kdp .kdp-sealed.is-opening .kdp-tear-strip{animation:kdp-real-tear 1.3s cubic-bezier(.4,.05,.6,1) forwards}.kdp .kdp-sealed.is-opening .kdp-pack-shadow{animation:kdp-shadow-fade 1.8s forwards}
.kdp .kdp-reveals{z-index:3}.kdp .kdp-reveals .kdp-flip{animation:kdp-card-extract 1s cubic-bezier(.2,.7,.2,1) both}
@keyframes kdp-real-open{0%,12%{transform:rotateY(-7deg) rotate(-2deg)}23%{transform:rotateY(7deg) rotate(2deg) scale(.99)}40%{transform:rotateY(-4deg) rotate(-3deg)}58%{transform:rotateY(-8deg) rotate(-4deg);clip-path:polygon(0 5%,12% 7%,23% 5.5%,39% 7%,53% 5%,65% 7.5%,78% 5.5%,91% 7%,100% 5%,100% 100%,0 100%)}70%{opacity:1;transform:translateY(10%) rotateY(-12deg) rotate(-5deg)}100%{opacity:0;transform:translateY(75%) rotateY(-24deg) rotate(-12deg) scale(.86)}}
@keyframes kdp-real-tear{0%,15%{transform:none;opacity:1}38%{transform:translate(4%,-8%) rotate(-8deg);clip-path:polygon(0 0,100% 0,100% 90%,50% 70%,0 100%)}65%{transform:translate(15%,-70%) rotate(-18deg);opacity:1}100%{transform:translate(80%,-350%) rotate(30deg);opacity:0}}
@keyframes kdp-shadow-fade{0%,60%{opacity:1}100%{opacity:0;transform:scale(.6)}}
@keyframes kdp-card-extract{0%{opacity:0;transform:translateY(28%) rotate(3deg) scale(.84)}35%{opacity:1}72%{transform:translateY(-3%) rotate(-1deg) scale(1.01)}100%{opacity:1;transform:none}}
.kdp-pack-art>.kdp-pack-placeholder{border-color:#d3c6a6;border-top:10px solid #ccb990;border-bottom:10px solid #ccb990;background:linear-gradient(105deg,#d4c7a7,#fff9e8 30%,#e9dfc6 70%,#b9a987);color:#584729;box-shadow:4px 12px 14px #0003;transform:rotate(-7deg);border-radius:3px;align-items:center;text-align:center}.kdp-pack-art>.kdp-pack-placeholder strong{font:500 24px/1.2 Georgia,serif;letter-spacing:.02em;position:absolute;left:10px;right:10px;bottom:38px}.kdp-pack-art>.kdp-pack-placeholder i{top:40px;left:25px;right:25px;height:125px;background:url('laurel.svg') center/contain no-repeat;font-size:0}.kdp-pack-art>.kdp-pack-placeholder span{font-size:10px;letter-spacing:.23em}.kdp-pack-art>.kdp-pack-placeholder small{margin-top:auto;font-size:8px}
@media(max-width:700px){.kdp .kdp-pack-print>.kdp-pack-placeholder strong{font-size:clamp(17px,6vw,28px)}.kdp .kdp-pack-print>.kdp-pack-placeholder span{font-size:10px}.kdp .kdp-pack-print>.kdp-pack-placeholder small{font-size:7px}}
@media(prefers-reduced-motion:reduce){.kdp .kdp-sealed.is-opening{display:none!important}.kdp .kdp-sealed.is-opening *,.kdp .kdp-reveals .kdp-flip{animation:none!important}}
.kdp .kdp-opening{overflow:clip!important}.kdp .kdp-dialog{overflow:clip!important}.kdp .kdp-sealed,.kdp .kdp-sealed *{pointer-events:none!important}

.kdp [data-rarity=common]{--rarity:#bc8c61}.kdp [data-rarity=rare]{--rarity:#aebdce}.kdp [data-rarity=epic]{--rarity:#d7ad51}
.kdp-tabs{gap:28px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.kdp-tabs>*{flex-shrink:0}.kdp-leaders-intro{margin:34px 0 24px}.kdp-leaders-intro h2{font-size:clamp(28px,3vw,42px);letter-spacing:-.04em;margin:12px 0}.kdp-leaders-intro p,.kdp-rank-note,[data-rank-status]{color:var(--kp-muted);font-size:13px;line-height:1.7}.kdp-score-guide{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.kdp-score-guide>span{display:flex;align-items:center;gap:8px;border:1px solid var(--kp-border);background:var(--kp-surface);padding:16px;border-radius:12px;font-size:12px}.kdp-score-guide i{width:9px;height:9px;flex:none;border-radius:50%;background:var(--rarity)}.kdp-score-guide b{margin-left:auto;font-size:12px}.kdp-rank-note{margin:16px 0 24px;max-width:850px;font-size:11px}.kdp-leaderboard{padding:0;margin:0;list-style:none}.kdp-leader{display:flex;align-items:center;gap:22px;padding:22px 18px;border-bottom:1px solid var(--kp-border)}.kdp-rank-number{font-size:20px;font-weight:700;min-width:36px;color:var(--kp-muted);font-variant-numeric:tabular-nums}.kdp-leader:first-child .kdp-rank-number{color:#c49a43}.kdp-rank-identity{flex:1;min-width:0}.kdp-rank-identity>a,.kdp-rank-identity>strong{display:block;color:var(--kp-text)!important;font-size:15px;font-weight:650;text-decoration:none;overflow-wrap:anywhere}.kdp-rank-identity>small{display:block;color:var(--kp-muted);font-size:11px;margin-top:6px}.kdp-rank-score{text-align:right;flex-shrink:0}.kdp-rank-score strong{display:block;font-size:24px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.kdp-rank-score small{font-size:10px;color:var(--kp-muted)}.kdp-leader.is-own{background:#5268ff0a;border-radius:12px;outline:1px solid #5268ff33}
@media(max-width:700px){.kdp-tabs{gap:22px}.kdp-tabs>*{font-size:12px!important}.kdp-score-guide{grid-template-columns:repeat(2,1fr);gap:8px}.kdp-score-guide>span{padding:12px 10px;font-size:11px;gap:6px}.kdp-score-guide b{font-size:10px}.kdp-leader{padding:18px 8px;gap:10px}.kdp-rank-number{font-size:17px;min-width:28px}.kdp-rank-score strong{font-size:21px}.kdp-rank-identity>a{font-size:13px}}

/* Compact package catalogue. */
html[data-klt-theme] body .kdp .kdp-intro{max-width:720px;margin:0 0 22px;padding:0}html[data-klt-theme] body .kdp .kdp-intro h1{font-size:clamp(24px,2.5vw,32px)!important;line-height:1.2;letter-spacing:-.035em;margin:0 0 10px;font-weight:650}html[data-klt-theme] body .kdp .kdp-intro p{font-size:13px!important;line-height:1.7;margin:0;color:var(--kp-muted)!important}
.kdp .kdp-status:empty{display:none}.kdp .kdp-pack-grid{grid-template-columns:repeat(auto-fill,minmax(180px,240px));justify-content:start;gap:28px;margin-top:24px}.kdp .kdp-pack{border:0!important;background:transparent!important;border-radius:0;overflow:visible;box-shadow:none}.kdp .kdp-pack-art{height:240px;padding:12px 20px;background:transparent!important}.kdp .kdp-pack-art>.kdp-pack-placeholder{width:150px;height:214px;border-top-width:8px;border-bottom-width:8px;padding:16px 12px;transform:rotate(-4deg)}.kdp .kdp-pack-art>.kdp-pack-placeholder strong{font-size:20px;bottom:32px}.kdp .kdp-pack-art>.kdp-pack-placeholder i{top:28px;height:108px}.kdp .kdp-pack-body{padding:10px 0 0;text-align:center}.kdp .kdp-pack h2{font-size:18px!important;line-height:1.3;letter-spacing:-.025em;margin:0 0 12px!important}.kdp .kdp-pack .kdp-primary{margin:0;padding:11px 24px;min-height:42px;font-size:12px}.kdp .kdp-pack .kdp-pack-meta{font-size:10px!important;line-height:1.5;color:var(--kp-muted)!important;margin:10px 0 0}.kdp .kdp-pack .kdp-rates{margin:8px 0 0;padding:0;font-size:10px}.kdp .kdp-pack .kdp-rates p{font-size:11px!important}.kdp .kdp-daily{display:block;border:0!important;border-radius:0;background:transparent!important;box-shadow:none;padding:0;margin:22px 0 0;color:var(--kp-muted);font-size:11px}.kdp .kdp-daily strong{font-size:12px!important;font-weight:500;letter-spacing:0;line-height:1.5;margin:0;color:var(--kp-text)}.kdp .kdp-daily p{font-size:11px!important;line-height:1.6;margin:4px 0 0}.kdp .kdp-daily .kdp-last{margin:8px 0 0;font-size:11px}.kdp .kdp-daily .kdp-availability{font-size:11px!important}
@media(max-width:700px){.kdp .kdp-pack-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:24px;margin-top:16px}.kdp .kdp-pack{max-width:240px;width:100%;justify-self:center}.kdp .kdp-pack-art{height:216px;padding:4px 18px}.kdp .kdp-pack-art>.kdp-pack-placeholder{width:140px;height:200px}.kdp .kdp-pack-art>.kdp-pack-placeholder i{height:100px}.kdp .kdp-daily{margin-top:18px}.kdp .kdp-pack-body{padding-top:6px}html[data-klt-theme] body .kdp .kdp-intro h1{font-size:24px!important}html[data-klt-theme] body .kdp .kdp-intro p{font-size:12px!important}}

/* Catalogue and opening use the same straight-on physical wrapper. */
.kdp .kdp-pack-preview{position:relative;width:150px;height:216px;flex:none;isolation:isolate}.kdp .kdp-pack-preview .kdp-pack-shell,.kdp .kdp-sealed:not(.is-opening) .kdp-pack-shell{transform:none!important}.kdp .kdp-pack-preview .kdp-pack-print>.kdp-pack-placeholder{padding:9% 10% 8%}.kdp .kdp-pack-preview .kdp-pack-print>.kdp-pack-placeholder span{font-size:9px;letter-spacing:.25em}.kdp .kdp-pack-preview .kdp-pack-print>.kdp-pack-placeholder strong{font-size:20px;letter-spacing:.035em}.kdp .kdp-pack-preview .kdp-pack-print>.kdp-pack-placeholder small{font-size:6px;letter-spacing:.13em}.kdp .kdp-pack-preview .kdp-tear-strip{font-size:4px}.kdp .kdp-pack-preview .kdp-pack-shadow{bottom:-6%;filter:blur(7px);height:4%;transform:none}.kdp .kdp-pack-preview .kdp-foil-light{opacity:.85}
@media(max-width:700px){.kdp .kdp-pack-preview{width:140px;height:200px}.kdp .kdp-pack-preview .kdp-pack-print>.kdp-pack-placeholder strong{font-size:18px}}
.kdp .kdp-pack-preview .kdp-pack-print>.kdp-pack-placeholder strong{font-size:16px;letter-spacing:0;line-height:1.15}

/* Trainer Gallery style holographic foil, shared by reveals and owned cards. */
.kdp [data-rarity=legendary]{--rarity:#b779ff}.kdp .kdp-card-face,.kdp .kdp-owned-image{isolation:isolate;--hxp:50%;--hyp:50%;--foil-strength:.3}.kdp .kdp-card-face{--hxp:inherit;--hyp:inherit;--foil-strength:inherit}.kdp .kdp-flip{--hxp:50%;--hyp:50%;--foil-strength:.3;isolation:isolate}
.kdp .kdp-card-face:before,.kdp .kdp-owned-image:before{content:'';position:absolute;inset:0;border-radius:inherit;z-index:1;pointer-events:none;background-image:repeating-linear-gradient(115deg,#ff85cf88 0%,#ffc97899 9%,#f7ff9c88 18%,#80ffcd99 27%,#84c5ff99 36%,#bf8bff99 45%,#ff85cf88 54%);background-size:300% 300%;background-position:var(--hxp) var(--hyp);mix-blend-mode:color-dodge;opacity:var(--foil-strength,.3);filter:contrast(1.3) saturate(.9);animation:kdp-holo-flow 9s ease-in-out infinite alternate}
.kdp .kdp-card-face:after,.kdp .kdp-owned-image:after{content:'';position:absolute;inset:0;border-radius:inherit;z-index:2;pointer-events:none;background:radial-gradient(ellipse at var(--hxp,50%) var(--hyp,50%),#ffffff9c 0%,#ffffff18 35%,transparent 65%),repeating-linear-gradient(-25deg,transparent 0 22px,#ffffff15 23px,transparent 24px);mix-blend-mode:soft-light;opacity:.65}.kdp .kdp-card-caption{z-index:3}.kdp .kdp-quantity{z-index:4}.kdp .kdp-owned-image{border:1px solid color-mix(in srgb,var(--rarity) 45%,transparent)}
/* The rarity light is visible while the card back is still facing the viewer. */
.kdp .kdp-flip[data-rarity=epic]{--aura:#e8bb52}.kdp .kdp-flip[data-rarity=legendary]{--aura:#bc70ff}
.kdp .kdp-flip[data-rarity=epic]:before,.kdp .kdp-flip[data-rarity=legendary]:before{content:'';position:absolute;inset:-4px;z-index:-1;pointer-events:none;border-radius:18px;border:2px solid var(--aura);box-shadow:0 0 18px 4px color-mix(in srgb,var(--aura) 60%,transparent),0 0 60px 12px color-mix(in srgb,var(--aura) 30%,transparent);animation:kdp-rarity-breathe 3s ease-in-out infinite}
.kdp .kdp-flip[data-rarity=epic]:after,.kdp .kdp-flip[data-rarity=legendary]:after{content:'';position:absolute;left:-18%;right:-18%;bottom:-32px;height:45px;border-radius:50%;background:var(--aura);opacity:.32;filter:blur(25px);z-index:-2;pointer-events:none}.kdp .kdp-flip[data-rarity=epic] .kdp-card-face,.kdp .kdp-flip[data-rarity=legendary] .kdp-card-face{box-shadow:0 0 28px color-mix(in srgb,var(--aura) 45%,transparent)}
@keyframes kdp-holo-flow{from{background-position:0% 25%}to{background-position:100% 75%}}@keyframes kdp-rarity-breathe{0%,100%{opacity:.65}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.kdp .kdp-card-face:before,.kdp .kdp-owned-image:before,.kdp .kdp-flip:before{animation:none!important}.kdp .kdp-card-face:before,.kdp .kdp-owned-image:before{opacity:.2}}

/* Pointer-driven foil and tilt: flip, tilt and entry are separate surfaces. */
.kdp .kdp-card-face:before,.kdp .kdp-owned-image:before{animation:none!important;background-image:repeating-linear-gradient(-22deg,#bf8cc27a 5%,#ca83837a 10%,#d3c08b7a 15%,#a6c3907a 20%,#83bfb97a 25%,#9cafe57a 30%,#bf8cc27a 35%)!important;background-size:300% 400%;background-position:var(--hbx,50%) var(--hby,50%);mix-blend-mode:color-dodge;filter:brightness(.65) contrast(1.6) saturate(.75);opacity:var(--foil-strength,.12)}
.kdp .kdp-card-face:after,.kdp .kdp-owned-image:after{background:radial-gradient(ellipse at var(--hxp,50%) var(--hyp,50%),#ffffffa6 0%,#ffffff20 30%,transparent 65%);opacity:var(--foil-strength,.12);mix-blend-mode:soft-light}
.kdp .kdp-tilt-plane{position:absolute;display:block;inset:0;border-radius:inherit;transform-style:preserve-3d;transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));will-change:transform}
.kdp .kdp-owned-image{transform:perspective(1100px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transform-style:preserve-3d;touch-action:pan-y;will-change:transform}
.kdp .kdp-flip{touch-action:none;user-select:none;-webkit-user-select:none}.kdp .kdp-flip:before,.kdp .kdp-flip:after{transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transform-origin:center;transform-style:preserve-3d}
.kdp .kdp-pack-art{perspective:1200px;height:350px;padding:12px 24px;overflow:visible}.kdp .kdp-pack-preview{width:228px;height:328px;transform-style:preserve-3d;transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));will-change:transform;touch-action:none;user-select:none}.kdp .kdp-pack-grid{grid-template-columns:repeat(auto-fill,minmax(240px,320px));gap:32px}.kdp .kdp-pack{max-width:320px}.kdp .kdp-pack-preview .kdp-pack-print>.kdp-pack-placeholder strong{font-size:26px}.kdp .kdp-pack-preview .kdp-pack-print>.kdp-pack-placeholder span{font-size:12px}.kdp .kdp-pack-preview .kdp-pack-print>.kdp-pack-placeholder small{font-size:9px}.kdp .kdp-pack-preview .kdp-tear-strip{font-size:5px}.kdp .kdp-pack h2{font-size:20px!important}
.kdp .kdp-holo-sheen{position:absolute;inset:4% 1% 5%;border-radius:5%;pointer-events:none;z-index:4;opacity:var(--foil-strength,.12);mix-blend-mode:color-dodge;background:radial-gradient(ellipse at var(--hxp,50%) var(--hyp,50%),#ffffff80,transparent 55%),repeating-linear-gradient(-22deg,#d998c54d 5%,#e9d2904d 15%,#8dcdb74d 25%,#9faee64d 35%,#d998c54d 45%);background-size:100% 100%,300% 400%;background-position:center,var(--hbx,50%) var(--hby,50%);filter:contrast(1.5) saturate(.7)}
.kdp .kdp-sealed:not(.is-opening) .kdp-pack-shell{transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg))!important}.kdp .kdp-sealed:not(.is-opening){pointer-events:auto!important;touch-action:none}.kdp .kdp-sealed:not(.is-opening) .kdp-pack-print:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:4;background:radial-gradient(ellipse at var(--hxp,50%) var(--hyp,50%),#ffffff80,transparent 65%);opacity:var(--foil-strength,.12);mix-blend-mode:soft-light}
@media(max-width:700px){.kdp .kdp-pack-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.kdp .kdp-pack{max-width:300px}.kdp .kdp-pack-art{height:325px;padding:8px 16px}.kdp .kdp-pack-preview{width:214px;height:308px}.kdp .kdp-pack-preview .kdp-pack-print>.kdp-pack-placeholder strong{font-size:24px}}
@media(prefers-reduced-motion:reduce){.kdp .kdp-pack-preview,.kdp .kdp-tilt-plane,.kdp .kdp-owned-image{transform:none!important;will-change:auto}.kdp .kdp-card-face:before,.kdp .kdp-owned-image:before,.kdp .kdp-holo-sheen{opacity:.08!important}}

/* A visible stack retains every unopened card behind the interactive front. */
.kdp .kdp-deck{position:relative;isolation:isolate;flex:0 0 auto;aspect-ratio:2.5/3.5;height:min(64dvh,calc(100dvh - 260px),1100px,calc((100vw - 100px)*1.4));perspective:1600px;margin-right:26px}
.kdp .kdp-deck .kdp-flip,.kdp .kdp-reveals .kdp-deck .kdp-flip:last-child:nth-child(odd){position:absolute;inset:0;z-index:12;width:100%!important;height:100%!important;max-width:none;margin:0!important}
.kdp .kdp-deck-back{position:absolute;inset:0;border-radius:15px;background:#142052;border:1px solid #bbc5ed88;transform:translate(calc(var(--depth)*12px),calc(var(--depth)*-8px));box-shadow:0 5px 12px #0005;pointer-events:none;overflow:visible}.kdp .kdp-deck-back img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.kdp .kdp-deck-back[data-rarity=epic]{border-color:#e8bb52;box-shadow:0 0 14px 3px #e8bb5280,0 0 35px #e8bb5266}.kdp .kdp-deck-back[data-rarity=legendary]{border-color:#bc70ff;box-shadow:0 0 16px 4px #bc70ff99,0 0 45px #bc70ff66}
.kdp .kdp-deck[data-treasure=epic]{--stack-aura:#e8bb52}.kdp .kdp-deck[data-treasure=legendary]{--stack-aura:#bc70ff}.kdp .kdp-deck[data-treasure=epic]:before,.kdp .kdp-deck[data-treasure=legendary]:before{content:'';position:absolute;inset:-18px -35px -18px -18px;border-radius:30px;z-index:-1;background:var(--stack-aura);opacity:.27;filter:blur(30px);pointer-events:none;animation:kdp-rarity-breathe 3s ease-in-out infinite}
.kdp .kdp-sealed[data-treasure=epic] .kdp-pack-shell{filter:drop-shadow(0 0 22px #e8bb52aa)}.kdp .kdp-sealed[data-treasure=legendary] .kdp-pack-shell{filter:drop-shadow(0 0 26px #bc70ffbb)}
@media(max-width:700px){.kdp .kdp-deck{height:min(62dvh,calc(100dvh - 220px),calc((100vw - 92px)*1.4));margin-right:24px}.kdp .kdp-deck-back{transform:translate(calc(var(--depth)*10px),calc(var(--depth)*-7px))}}
@media(prefers-reduced-motion:reduce){.kdp .kdp-deck:before{animation:none!important}}
/* A hand-held fan, rather than a rigid parallel stack. */
.kdp .kdp-deck{margin-right:44px}.kdp .kdp-deck-back{transform-origin:50% 94%;transform:translate(calc(var(--depth)*7px),calc(var(--depth)*-3px)) rotate(calc(var(--depth)*5deg));transition:transform .4s cubic-bezier(.2,.7,.2,1);box-shadow:-3px 3px 12px #0004}.kdp .kdp-deck[data-treasure]:before{inset:-25px -65px -15px -20px}
@media(max-width:700px){.kdp .kdp-deck{margin-right:34px;height:min(62dvh,calc(100dvh - 220px),calc((100vw - 112px)*1.4))}.kdp .kdp-deck-back{transform:translate(calc(var(--depth)*4px),calc(var(--depth)*-2px)) rotate(calc(var(--depth)*4.5deg))}}
@media(prefers-reduced-motion:reduce){.kdp .kdp-deck-back{transition:none}}

/* Each hidden card lights only its own exposed edge; no shared deck halo. */
.kdp .kdp-deck[data-treasure]:before{content:none;display:none}
.kdp .kdp-deck-back[data-rarity=epic]{border:2px solid #e8bb52;box-shadow:0 0 5px 1px #e8bb5299}
.kdp .kdp-deck-back[data-rarity=legendary]{border:2px solid #bc70ff;box-shadow:0 0 6px 1px #bc70ff99}

.kdp .kdp-back-brand{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;pointer-events:none;padding:12%;color:#fff}
.kdp .kdp-back-brand img{display:block;width:78%;height:auto;object-fit:contain;border-radius:0}
.kdp .kdp-back-set{font-size:clamp(10px,1.2vw,17px);font-weight:600;letter-spacing:.08em;line-height:1.5;overflow-wrap:anywhere;text-align:center}

/* The live page remains behind a gradually blurred transparent opening stage. */
.kdp .kdp-dialog,.kdp .kdp-dialog[data-scene]{background:transparent!important;background-image:none!important;box-shadow:none!important;--scene-text:var(--kp-text);--scene-muted:var(--kp-muted);--scene-accent:#5268ff}
.kdp .kdp-dialog:before{display:none}
.kdp .kdp-dialog::backdrop{background:color-mix(in srgb,var(--kp-bg) 38%,transparent);backdrop-filter:blur(14px);animation:kdp-page-blur 1.1s ease both}
@keyframes kdp-page-blur{from{backdrop-filter:blur(0px);background:transparent}to{backdrop-filter:blur(14px);background:color-mix(in srgb,var(--kp-bg) 38%,transparent)}}
.kdp .kdp-back-brand img{width:78%;max-width:280px;image-rendering:auto}
@media(prefers-reduced-motion:reduce){.kdp .kdp-dialog::backdrop{animation:none}}

/* Flow-wrap silhouette: wide straight heat seals, rounded shoulders, inset sides. */
.kdp .kdp-pack-preview{width:184px;height:328px}
.kdp .kdp-sealed{width:calc(var(--pack-height)*.56)!important;aspect-ratio:56/100}
.kdp .kdp-pack-shell{border-radius:0;background:linear-gradient(90deg,#e4e4e2,#fff 9%,#fafaf8 76%,#d2d2cf 100%);clip-path:polygon(0 0,100% 0,100% 6.4%,99.5% 7.8%,98.5% 9%,97% 10%,96% 11%,95.6% 15%,95.5% 37%,95.8% 65%,95.4% 85%,96% 88%,97.5% 90%,99% 91.5%,100% 93.2%,100% 100%,0 100%,0 93.2%,1% 91.5%,2.5% 90%,4% 88%,4.6% 85%,4.2% 65%,4.5% 37%,4.4% 15%,4% 11%,3% 10%,1.5% 9%,.5% 7.8%,0 6.4%);box-shadow:inset 8px 0 14px #fff9,inset -9px 0 15px #0002}
.kdp .kdp-pack-print{inset:6% 4.3% 6%;border-radius:0;background:#f6f5ef;box-shadow:none}
.kdp .kdp-foil-grain{opacity:.28}
.kdp .kdp-foil-light{inset:6% 0;background:linear-gradient(90deg,#fff8 0%,#00000020 4.5%,#fff6 6%,transparent 12%,#ffffff18 40%,transparent 65%,#00000010 86%,#fff9 94%,#00000030 97%,#fff5 100%),linear-gradient(180deg,#ffffff9c,transparent 6%,transparent 88%,#00000026 96%,#ffffff80);box-shadow:none}
.kdp .kdp-crimp,.kdp .kdp-tear-strip{height:6%;background:repeating-linear-gradient(180deg,#eeeeec 0%,#fff 12%,#dadad7 20%,#fafaf9 28%);box-shadow:0 2px 5px #0002,inset 0 1px 1px #fff;border:0;border-radius:0}
.kdp .kdp-tear-strip>span{display:none}
.kdp .kdp-crimp--bottom{box-shadow:0 -2px 5px #0002,inset 0 1px 1px #fff}
.kdp .kdp-pack-shadow{left:14%;right:-15%;bottom:-4%;height:95%;background:#17171536;border-radius:8%;filter:blur(13px);transform:translate(8%,5%)}
.kdp .kdp-pack-preview .kdp-pack-shadow{left:14%;right:-15%;bottom:-4%;height:95%;filter:blur(9px);transform:translate(8%,5%)}
@media(max-width:700px){.kdp .kdp-pack-preview{width:173px;height:308px}}

.kdp .kdp-sealed .kdp-pack-placeholder strong{font-size:clamp(17px,2vw,30px);letter-spacing:.025em}.kdp .kdp-pack-preview .kdp-pack-placeholder strong{font-size:17px;letter-spacing:.02em}

/* Fuller pillow wrapper, curved seal shoulders and a restrained contact shadow. */
.kdp .kdp-pack-preview{width:190px;height:328px}
.kdp .kdp-sealed{width:calc(var(--pack-height)*.58)!important}
.kdp .kdp-pack-shell{clip-path:polygon(0 0,100% 0,100% 6%,99.8% 7%,99.2% 8.1%,98.2% 9.2%,96.8% 10.2%,95.5% 11%,95% 12.5%,94.8% 16%,95% 30%,95.4% 50%,95% 70%,94.8% 84%,95.2% 87%,96.2% 89%,97.8% 90.8%,99.2% 92.3%,100% 94%,100% 100%,0 100%,0 94%,.8% 92.3%,2.2% 90.8%,3.8% 89%,4.8% 87%,5.2% 84%,5% 70%,4.6% 50%,5% 30%,5.2% 16%,5% 12.5%,4.5% 11%,3.2% 10.2%,1.8% 9.2%,.8% 8.1%,.2% 7%,0 6%);background:linear-gradient(90deg,#d9dad7,#fff 7%,#fff 80%,#d4d5d1);box-shadow:none}
.kdp .kdp-pack-print{inset:6% 0 6%;border-radius:0}
.kdp .kdp-foil-light{inset:6% 0;background:linear-gradient(90deg,#d0d1ce 0%,#ffffff 4.5%,#c8c9c533 6.5%,#fff5 8%,transparent 13%,#ffffff20 35%,transparent 68%,#00000009 86%,#fff6 92%,#c0c1be88 95%,#fafbf6 98%,#bdbeba 100%),linear-gradient(180deg,#fff 0%,#ffffffdd 3%,transparent 9%,transparent 88%,#00000024 96%,#f6f7f1 100%)}
.kdp .kdp-crimp,.kdp .kdp-tear-strip{height:6%;background:repeating-linear-gradient(180deg,#f9f9f7 0%,#fff 8%,#dedfdb 16%,#f4f4f1 24%);box-shadow:0 1px 2px #00000013}
.kdp .kdp-pack-shadow,.kdp .kdp-pack-preview .kdp-pack-shadow{left:8%;right:-4%;bottom:-1.5%;height:97%;background:#1919161a;border-radius:3%;filter:blur(6px);transform:translate(3%,1.5%);opacity:.6}
@media(max-width:700px){.kdp .kdp-pack-preview{width:179px;height:308px}}

/* Continuous foil sleeve with fine saw-cut ends, following the new reference. */
.kdp .kdp-pack-preview{width:170px;height:328px}
.kdp .kdp-sealed{width:calc(var(--pack-height)*.52)!important}
.kdp .kdp-pack-shell{clip-path:polygon(0% 0%,2% 1%,4% 0%,6% 1%,8% 0%,10% 1%,12% 0%,14% 1%,16% 0%,18% 1%,20% 0%,22% 1%,24% 0%,26% 1%,28% 0%,30% 1%,32% 0%,34% 1%,36% 0%,38% 1%,40% 0%,42% 1%,44% 0%,46% 1%,48% 0%,50% 1%,52% 0%,54% 1%,56% 0%,58% 1%,60% 0%,62% 1%,64% 0%,66% 1%,68% 0%,70% 1%,72% 0%,74% 1%,76% 0%,78% 1%,80% 0%,82% 1%,84% 0%,86% 1%,88% 0%,90% 1%,92% 0%,94% 1%,96% 0%,98% 1%,100% 0%,99.5% 7%,99% 15%,99.3% 48%,99% 84%,100% 100%,98% 99%,96% 100%,94% 99%,92% 100%,90% 99%,88% 100%,86% 99%,84% 100%,82% 99%,80% 100%,78% 99%,76% 100%,74% 99%,72% 100%,70% 99%,68% 100%,66% 99%,64% 100%,62% 99%,60% 100%,58% 99%,56% 100%,54% 99%,52% 100%,50% 99%,48% 100%,46% 99%,44% 100%,42% 99%,40% 100%,38% 99%,36% 100%,34% 99%,32% 100%,30% 99%,28% 100%,26% 99%,24% 100%,22% 99%,20% 100%,18% 99%,16% 100%,14% 99%,12% 100%,10% 99%,8% 100%,6% 99%,4% 100%,2% 99%,0% 100%,1% 84%,.7% 48%,1% 15%,.5% 7%);border-radius:0;background:#e5d9ba}
.kdp .kdp-pack-print{inset:0;border-radius:1%;background:#e5d9ba}
.kdp .kdp-pack-print>.kdp-pack-placeholder{padding-top:15%;padding-bottom:13%}
.kdp .kdp-pack-print>.kdp-pack-placeholder:after{inset:9% 5%}
.kdp .kdp-foil-light{inset:0;background:linear-gradient(90deg,#0000002b 0%,#fff9 1%,#00000014 3%,#fff2 7%,transparent 18%,#fff2 43%,transparent 73%,#00000015 94%,#fff8 98%,#00000040 100%),radial-gradient(ellipse 80% 7% at 50% 7%,#ffffff99,transparent),radial-gradient(ellipse 90% 6% at 50% 93%,#00000024,transparent)}
.kdp .kdp-crimp,.kdp .kdp-tear-strip{height:7%;background:repeating-linear-gradient(180deg,#d1c3a580 0%,#ffffff99 9%,#73644455 16%,#e7dcc399 24%);box-shadow:inset 0 -1px 2px #0002;border:0;clip-path:polygon(0% 0%,2% 12%,4% 0%,6% 12%,8% 0%,10% 12%,12% 0%,14% 12%,16% 0%,18% 12%,20% 0%,22% 12%,24% 0%,26% 12%,28% 0%,30% 12%,32% 0%,34% 12%,36% 0%,38% 12%,40% 0%,42% 12%,44% 0%,46% 12%,48% 0%,50% 12%,52% 0%,54% 12%,56% 0%,58% 12%,60% 0%,62% 12%,64% 0%,66% 12%,68% 0%,70% 12%,72% 0%,74% 12%,76% 0%,78% 12%,80% 0%,82% 12%,84% 0%,86% 12%,88% 0%,90% 12%,92% 0%,94% 12%,96% 0%,98% 12%,100% 0%,100% 100%,0 100%);transform-origin:0 100%}
.kdp .kdp-crimp--bottom{clip-path:polygon(0 0,100% 0,100% 100%,98% 88%,96% 100%,94% 88%,92% 100%,90% 88%,88% 100%,86% 88%,84% 100%,82% 88%,80% 100%,78% 88%,76% 100%,74% 88%,72% 100%,70% 88%,68% 100%,66% 88%,64% 100%,62% 88%,60% 100%,58% 88%,56% 100%,54% 88%,52% 100%,50% 88%,48% 100%,46% 88%,44% 100%,42% 88%,40% 100%,38% 88%,36% 100%,34% 88%,32% 100%,30% 88%,28% 100%,26% 88%,24% 100%,22% 88%,20% 100%,18% 88%,16% 100%,14% 88%,12% 100%,10% 88%,8% 100%,6% 88%,4% 100%,2% 88%,0% 100%);box-shadow:inset 0 1px 2px #0002}
.kdp .kdp-sealed>.kdp-tear-strip{top:0;z-index:6}
.kdp .kdp-sealed:after{content:'';position:absolute;left:2%;right:2%;top:7%;height:3%;border-radius:50%;background:linear-gradient(#272318,#72664b);box-shadow:0 -1px 2px #fff8;opacity:0;transform:scaleY(.05);z-index:2;pointer-events:none}
.kdp .kdp-sealed.is-opening .kdp-pack-shell{animation:kdp-sleeve-release 2.65s cubic-bezier(.25,.1,.45,1) forwards}
.kdp .kdp-sealed.is-opening>.kdp-tear-strip{animation:kdp-peel-seal 1.65s cubic-bezier(.25,.1,.5,1) forwards}
.kdp .kdp-sealed.is-opening:after{animation:kdp-mouth-open 2.1s ease forwards}
.kdp .kdp-sealed.is-opening .kdp-pack-shadow{animation:kdp-shadow-fade 2.4s forwards}
@keyframes kdp-peel-seal{0%,12%{transform:none;opacity:1}22%{transform:translate(0,-2%) rotate(-3deg) rotateX(15deg)}40%{transform:translate(-3%,-15%) rotate(-12deg) rotateX(28deg)}65%{transform:translate(5%,-65%) rotate(-24deg) rotateY(-20deg);opacity:1}100%{transform:translate(90%,-280%) rotate(-55deg) rotateY(-45deg);opacity:0}}
@keyframes kdp-sleeve-release{0%,12%{transform:none}22%{transform:rotate(-1.5deg) scaleX(.985)}38%{transform:rotate(1deg)}44%,58%{transform:none;clip-path:polygon(0 7.2%,8% 7.8%,16% 7%,25% 8%,36% 7.3%,47% 8%,58% 7%,68% 7.7%,79% 7.1%,89% 8%,100% 7.2%,100% 100%,0 100%)}73%{opacity:1;transform:translateY(14%) rotate(-3deg)}100%{opacity:0;transform:translateY(85%) rotate(-12deg) scale(.94);clip-path:polygon(0 7.2%,8% 7.8%,16% 7%,25% 8%,36% 7.3%,47% 8%,58% 7%,68% 7.7%,79% 7.1%,89% 8%,100% 7.2%,100% 100%,0 100%)}}
@keyframes kdp-mouth-open{0%,28%{opacity:0;transform:scaleY(.05)}45%,70%{opacity:1;transform:scaleY(1)}100%{opacity:0;transform:translateY(250%) scaleY(.3)}}
@media(max-width:700px){.kdp .kdp-pack-preview{width:160px;height:308px}}
@media(prefers-reduced-motion:reduce){.kdp .kdp-sealed:after{animation:none!important}}

/* One tilt plane keeps the seal, printed face and foil aligned. */
.kdp .kdp-sealed:not(.is-opening){transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transform-style:preserve-3d}
.kdp .kdp-sealed:not(.is-opening) .kdp-pack-shell{transform:none!important}
.kdp .kdp-sealed.is-opening{transform:none!important}
.kdp .kdp-sealed .kdp-pack-print:after{display:none}
.kdp .kdp-holo-sheen{inset:1%;border-radius:0;mix-blend-mode:soft-light;filter:none;background:radial-gradient(ellipse at var(--hxp,50%) var(--hyp,50%),#fff9,transparent 55%),linear-gradient(115deg,transparent 15%,#a7daef66 34%,#efc7e46b 44%,#f0e4b46b 52%,#bfdfcd66 62%,transparent 80%);background-size:100% 100%,250% 250%;background-position:center,var(--hbx,50%) var(--hby,50%);opacity:var(--foil-strength,.12)}
.kdp .kdp-sealed.is-opening .kdp-holo-sheen{opacity:.08}
.kdp .kdp-sealed.is-opening .kdp-pack-shell{animation:kdp-clean-release 1.65s ease-in-out forwards;clip-path:polygon(0 7%,10% 7.5%,20% 7%,30% 7.6%,40% 7%,50% 7.5%,60% 7%,70% 7.6%,80% 7%,90% 7.5%,100% 7%,100% 100%,0 100%)}
.kdp .kdp-sealed.is-opening>.kdp-tear-strip{animation:kdp-clean-tear 1.05s cubic-bezier(.3,.1,.4,1) forwards}
.kdp .kdp-sealed.is-opening:after{animation:kdp-clean-mouth 1.65s ease forwards}
@keyframes kdp-clean-tear{0%,10%{transform:none;opacity:1}35%{transform:translate(0,-10%) rotate(-8deg);opacity:1}65%{transform:translate(12%,-55%) rotate(-18deg);opacity:1}100%{transform:translate(55%,-180%) rotate(-32deg);opacity:0}}
@keyframes kdp-clean-release{0%,18%{transform:none;opacity:1}30%{transform:rotate(-1deg) scaleX(.99)}48%{transform:none;opacity:1}68%{transform:translateY(8%) rotate(-2deg);opacity:1}100%{transform:translateY(55%) rotate(-7deg);opacity:0}}
@keyframes kdp-clean-mouth{0%,20%{opacity:0;transform:scaleY(.1)}40%,55%{opacity:.7;transform:scaleY(.65)}100%{opacity:0;transform:translateY(650%) scaleY(.3)}}

/* No oval shadows during the reveal. Keep the foil reflection restrained. */
.kdp .kdp-sealed:after{display:none!important}
.kdp .kdp-flip[data-rarity=epic]:after,.kdp .kdp-flip[data-rarity=legendary]:after{display:none!important}
.kdp .kdp-card-face:before,.kdp .kdp-owned-image:before{background-image:linear-gradient(115deg,transparent 15%,#94cbd566 35%,#d9b4d866 46%,#e8d7ab66 54%,#a7cdbd66 65%,transparent 82%)!important;background-size:240% 240%;mix-blend-mode:soft-light;filter:none;opacity:var(--foil-strength,.12)}
.kdp .kdp-card-face:after,.kdp .kdp-owned-image:after{background:radial-gradient(ellipse at var(--hxp,50%) var(--hyp,50%),#ffffff73,transparent 65%);mix-blend-mode:soft-light;opacity:var(--foil-strength,.12)}
.kdp .kdp-flip[data-rarity=epic]:before,.kdp .kdp-flip[data-rarity=legendary]:before{inset:-2px;border-width:1px;box-shadow:0 0 10px 2px color-mix(in srgb,var(--aura) 45%,transparent);animation:none;opacity:.85}

/* Dark patterned backs with rarity typography and the original white wordmark. */
.kdp .kdp-back-brand{gap:20px;padding:17%;color:#fff}
.kdp .kdp-back-brand img{width:96%;max-width:350px;filter:brightness(0) invert(1);opacity:.98}
.kdp .kdp-back-set{font-size:clamp(10px,1vw,14px);font-weight:500;letter-spacing:.18em;color:#d4d7e0}
.kdp .kdp-deck-back{background:#080a10}
