/* A real depth-bearing CSS 3D assembly; the flat artwork is retained for tearing. */
.focuspack{perspective:none;transform-style:preserve-3d;animation:volumeIdle14 7s cubic-bezier(.43,0,.57,1) infinite;overflow:visible;filter:none!important}
.pack-volume{position:relative;display:block;transform-style:preserve-3d;--depth:14px;--half:7px;isolation:auto}
.pack-volume .packart.premium{transform:translateZ(var(--half));backface-visibility:hidden;filter:none!important;box-shadow:inset 0 0 0 1px #f1f1fa70,inset 0 0 13px #0d11225c;}
.volume-back,.volume-side{position:absolute;pointer-events:none;backface-visibility:hidden}
.volume-back{inset:0;transform:rotateY(180deg) translateZ(var(--half));border-radius:3%;background:var(--volume-foil) center/cover;box-shadow:inset 0 0 16px #0009}
.volume-side.left,.volume-side.right{top:4%;height:92%;width:var(--depth);border-radius:35% 35% 24% 24% / 5% 5% 5% 5%;background:linear-gradient(90deg,#0e1229c9,#ffffff65 26%,var(--volume-color) 46%,#18162fcc 83%,#faf1d064);box-shadow:inset 0 0 1px #e6e2de60}
.volume-side.left{left:calc(-1 * var(--half));transform:rotateY(-90deg)}.volume-side.right{right:calc(-1 * var(--half));transform:rotateY(90deg)}
.volume-side.top,.volume-side.bottom{left:1%;width:98%;height:var(--depth);background:repeating-linear-gradient(90deg,#fff4 0 1px,#12152a66 1px 3px),linear-gradient(#15172d,var(--volume-color),#15172d);border-radius:3px}
.volume-side.top{top:calc(-1 * var(--half));transform:rotateX(90deg) scaleY(.28)}.volume-side.bottom{bottom:calc(-1 * var(--half));transform:rotateX(-90deg) scaleY(.28)}
.pack-volume .packart.premium .pack-glint{background:linear-gradient(108deg,transparent 22%,#fff0 30%,#d9e7ff33 38%,#fff9 45%,#fff3 50%,#fff0 64%) 165% 0/270% 100%;animation:foilLight14 5.1s ease-in-out infinite}
.focuspack .stock{transform:translateZ(12px)}.focuspack .tearhint{transform:translateZ(9px)}
@keyframes volumeIdle14{0%,100%{transform:perspective(620px) translateY(1px) rotateX(8deg) rotateY(-25deg) rotateZ(-5deg)}25%{transform:perspective(620px) translateY(-7px) rotateX(-3deg) rotateY(-4deg) rotateZ(-1deg)}50%{transform:perspective(620px) translateY(-10px) rotateX(-9deg) rotateY(26deg) rotateZ(4deg)}75%{transform:perspective(620px) translateY(-5px) rotateX(3deg) rotateY(6deg) rotateZ(1deg)}}
@keyframes foilLight14{0%,10%{background-position:165% 0;opacity:.6}55%{background-position:5% 0;opacity:1}85%,100%{background-position:-65% 0;opacity:.3}}
.pack-flight{position:fixed;z-index:130;pointer-events:none;transform-origin:0 0;filter:drop-shadow(0 9px 9px #22183155)}.pack-flight .packart{width:100%!important;height:100%!important;margin:0!important;aspect-ratio:auto!important}.pack-flight .pack-glint{animation:none!important}
.packselector button.arriving .packart{opacity:.18}.packselector button.landed .packart{animation:packLanding14 .28s ease-out}.arrival-count{position:absolute;top:4px;left:4px;font-size:11px;font-weight:900;color:#936626;background:#fff3c9;border-radius:99px;padding:1px 5px;z-index:9;animation:arrivalText14 .85s ease-out both}
@keyframes packLanding14{0%{scale:.82}55%{scale:1.12}100%{scale:1}}@keyframes arrivalText14{0%{translate:0 7px;opacity:0}35%{opacity:1}100%{translate:0 -7px;opacity:1}}
.trophy-ladder{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 12px;margin:9px 0;background:linear-gradient(165deg,#fffdf7,#f3eee3);border:1px solid #ddd4c4;border-radius:18px;box-shadow:0 4px 10px #43311c0c,inset 0 1px #fff;min-height:94px}
.ladder-medal{color:#c4bdb0;width:36px}.ladder-medal.lit{color:#b68a42}.ladder-medal svg{width:100%;display:block}.ladder-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;line-height:1.2}.ladder-title b{font-size:15px}.ladder-dots{display:flex;gap:3px;flex-wrap:wrap}.ladder-dots i{height:6px;width:6px;border-radius:50%;background:#dbd5ca}.ladder-dots i.earned{background:#d5a752}.ladder-dots i.claimed{background:#a68142}.ladder-copy p{font-size:11px;color:#807569;margin:5px 0}.ladder-sub{font-size:10px;color:#8f8270;margin-top:4px}.ladder-right{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.ladder-right b{font-size:14px;white-space:nowrap}.ladder-right .claim-trophy{font-size:11px;padding:5px 7px;white-space:nowrap}.trophy-ladder.complete{border-color:#c6ab70}.trophy-ladder .trophy-progress{height:5px}.trophy-ladder .tiny-link{font-size:10px}
#achievementNotice.active .notice-progress{animation:noticeTime134 1.5s linear forwards}#achievementNotice{transition:opacity .18s ease,transform .24s cubic-bezier(.2,.8,.2,1),visibility .24s}
@media(max-height:670px){.pack-volume{--depth:10px;--half:5px}}@media(max-width:380px){.trophy-ladder{grid-template-columns:29px minmax(0,1fr) auto;padding:10px 8px;gap:6px}.ladder-medal{width:27px}}
/* Stronger side silhouette and a contact shadow without flattening the 3D tree. */
.pack-volume{--depth:20px;--half:10px}
.packfocus .pack-shadow{bottom:14%;width:47%;height:22px;background:#44384d69;filter:blur(11px)}
.volume-side.left,.volume-side.right{background:linear-gradient(90deg,#161626,#ffffff52 22%,var(--volume-color) 43%,#18162fdb 86%,#ebdfc464);}
@keyframes volumeIdle14{0%,100%{transform:perspective(660px) translateY(1px) rotateX(9deg) rotateY(-31deg) rotateZ(-5deg)}25%{transform:perspective(660px) translateY(-7px) rotateX(-3deg) rotateY(-5deg) rotateZ(-1deg)}50%{transform:perspective(660px) translateY(-10px) rotateX(-10deg) rotateY(31deg) rotateZ(4deg)}75%{transform:perspective(660px) translateY(-5px) rotateX(3deg) rotateY(7deg) rotateZ(1deg)}}
@media(max-height:670px){.pack-volume{--depth:12px;--half:6px}.packfocus .pack-shadow{height:13px;filter:blur(7px)}}

/* V0.15: flexible printed foil, not a rigid carton. The print itself remains unchanged. */
.packart.premium,.packfocus[data-pack=testUR] .packart.premium{
  --serration:polygon(0 1%,1.5% 0,3% 1%,4.5% 0,6% 1%,7.5% 0,9% 1%,10.5% 0,12% 1%,13.5% 0,15% 1%,16.5% 0,18% 1%,19.5% 0,21% 1%,22.5% 0,24% 1%,25.5% 0,27% 1%,28.5% 0,30% 1%,31.5% 0,33% 1%,34.5% 0,36% 1%,37.5% 0,39% 1%,40.5% 0,42% 1%,43.5% 0,45% 1%,46.5% 0,48% 1%,49.5% 0,51% 1%,52.5% 0,54% 1%,55.5% 0,57% 1%,58.5% 0,60% 1%,61.5% 0,63% 1%,64.5% 0,66% 1%,67.5% 0,69% 1%,70.5% 0,72% 1%,73.5% 0,75% 1%,76.5% 0,78% 1%,79.5% 0,81% 1%,82.5% 0,84% 1%,85.5% 0,87% 1%,88.5% 0,90% 1%,91.5% 0,93% 1%,94.5% 0,96% 1%,97.5% 0,99% 1%,100% 0,100% 100%,98.5% 99%,97% 100%,95.5% 99%,94% 100%,92.5% 99%,91% 100%,89.5% 99%,88% 100%,86.5% 99%,85% 100%,83.5% 99%,82% 100%,80.5% 99%,79% 100%,77.5% 99%,76% 100%,74.5% 99%,73% 100%,71.5% 99%,70% 100%,68.5% 99%,67% 100%,65.5% 99%,64% 100%,62.5% 99%,61% 100%,59.5% 99%,58% 100%,56.5% 99%,55% 100%,53.5% 99%,52% 100%,50.5% 99%,49% 100%,47.5% 99%,46% 100%,44.5% 99%,43% 100%,41.5% 99%,40% 100%,38.5% 99%,37% 100%,35.5% 99%,34% 100%,32.5% 99%,31% 100%,29.5% 99%,28% 100%,26.5% 99%,25% 100%,23.5% 99%,22% 100%,20.5% 99%,19% 100%,17.5% 99%,16% 100%,14.5% 99%,13% 100%,11.5% 99%,10% 100%,8.5% 99%,7% 100%,5.5% 99%,4% 100%,2.5% 99%,1% 100%,0 99%);
  clip-path:var(--serration);border-radius:0;
  background:var(--foil-image) center/100% 100% no-repeat;
  box-shadow:inset 0 0 0 .5px #fff8;
}
.packart.premium .pack-cap,.packart.premium:after{height:9%;background:repeating-linear-gradient(90deg,#fff0 0 1.2%,#d9e6ff42 1.2% 1.6%,#070b233d 1.6% 2.15%);border:0;box-shadow:inset 0 -1px #dce9ff65}
.packart.premium:after{height:8%;box-shadow:inset 0 1px #dce9ff65}
.packart.premium .pack-fold{opacity:.75;background:linear-gradient(90deg,#0a102533,transparent 3%,#d9eaff21 5%,transparent 8%,transparent 92%,#c4d8ff30 96%,#0b102a55)}
.packart.premium .pack-glint,.pack-volume .packart.premium .pack-glint{inset:9% 0 8%;background:linear-gradient(108deg,transparent 22%,#b9d1ff08 34%,#e8f6ff32 43%,#fff7 47%,#ecf7ff24 52%,transparent 67%) 120% 0/230% 100%;animation:foilSweep15 7.2s ease-in-out infinite;opacity:.74;mix-blend-mode:screen}
.pack-volume{--depth:10px;--half:5px;filter:none}
.pack-volume .packart.premium{box-shadow:inset 0 0 0 .5px #fff9}
.volume-back{border-radius:0;background:linear-gradient(90deg,#080b2433,transparent 40%,#e6f0ff25 49%,#10152c65 51%,transparent 58%),var(--volume-foil) center/100% 100%}
.volume-side.left,.volume-side.right{top:8%;height:84%;border-radius:50% / 9%;background:linear-gradient(90deg,#101225,#e8edff60 20%,var(--volume-color) 45%,#16172f99 85%,#e7edf65e)}
.volume-side.top,.volume-side.bottom{opacity:.8;transform:rotateX(90deg) scaleY(.18)}
.volume-side.bottom{transform:rotateX(-90deg) scaleY(.18)}
.focuspack{animation:foilHover15 7.2s ease-in-out infinite}
.focuspack.gripped{animation-play-state:paused}
.packfocus .pack-shadow{background:radial-gradient(ellipse,#352b405c,transparent 72%);filter:blur(7px);height:30px;bottom:13%;width:40%;animation:foilShadow15 7.2s ease-in-out infinite}
@keyframes foilHover15{0%,100%{transform:perspective(750px) translateY(0) rotateX(5deg) rotateY(-13deg) rotateZ(-3deg)}50%{transform:perspective(750px) translateY(-9px) rotateX(-4deg) rotateY(13deg) rotateZ(2deg)}}
@keyframes foilShadow15{0%,100%{transform:scaleX(.95);opacity:.85}50%{transform:scaleX(1.08);opacity:.55}}
@keyframes foilSweep15{0%,100%{background-position:125% 0;opacity:.42}40%{background-position:25% 0;opacity:.9}65%{background-position:-22% 0;opacity:.28}66%{opacity:0}99%{opacity:0}}
.pack-flight{filter:none;transform-origin:center;transform-style:preserve-3d;perspective:none;will-change:auto}
.pack-flight::before{content:"";position:absolute;inset:4% 3%;border-radius:4%;box-shadow:0 12px 12px #22183132;pointer-events:none;transform:translateZ(-8px)}
.pack-flight .pack-volume{width:100%;height:100%;--depth:7px;--half:3.5px}
.pack-flight .pack-volume .packart{transform:translateZ(var(--half))}
.packselector button.landed .packart{animation:packLanding15 .4s cubic-bezier(.17,.8,.28,1)}
.packselector button.landed .traycount{animation:stockPulse15 .4s ease-out}
.arrival-count{animation:arrivalText15 .75s ease-out both}
@keyframes packLanding15{0%{scale:.87;translate:0 3px}45%{scale:1.07;translate:0 -2px}100%{scale:1;translate:0}}
@keyframes stockPulse15{40%{scale:1.2;filter:brightness(1.3)}100%{scale:1;filter:none}}
@keyframes arrivalText15{0%{translate:0 5px;opacity:0;scale:.85}28%{opacity:1;scale:1}75%{opacity:1}100%{translate:0 -12px;opacity:0}}
html[data-motion=reduced] .focuspack,html[data-motion=reduced] .pack-glint,html[data-motion=reduced] .pack-shadow{animation:none!important}

/* Reserve the landing geometry without drawing an early pack, badge or label. */
.packselector button.arrival-slot{visibility:hidden!important;pointer-events:none!important}

/* V0.17.5 idle card: single compositing surface; cinematic reveal keeps its own faces. */
.card-stage:not(.reveal-running) .card-body{transform-style:flat;will-change:auto;transform:none}
.card-stage:not(.reveal-running) .card-back{visibility:hidden!important;display:none!important;pointer-events:none}
.card-stage:not(.reveal-running) .big-card{backface-visibility:visible;transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:none;will-change:auto;isolation:isolate}
.card-stage:not(.reveal-running) .big-card:active:not(:disabled){transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}
.card-stage:not(.reveal-running) .big-card .card-face:after{animation:none!important;opacity:.42;transition:none;background-position:var(--shine,50%) 0}
.card-stage:not(.reveal-running) .big-card[data-rarity=SSR] .card-face:after,.card-stage:not(.reveal-running) .big-card[data-rarity=UR] .card-face:after{opacity:.65}
@media (prefers-reduced-motion:reduce){.card-stage:not(.reveal-running) .big-card{transform:none}}

/* V0.18.2 — independent market clocks and milestone claim */
.market-clocks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 9px}.market-clocks>div{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:9px 10px;border:1px solid #b8aa934d;border-radius:9px;background:#fff9ee80;font-size:11px}.market-clocks strong{font-size:14px}.level-reward{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin-bottom:12px;background:linear-gradient(110deg,#f3e8c9,#f8f1df);border:1px solid #b89a5d66;border-radius:10px}.level-reward b,.level-reward small{display:block}.level-reward b{font-size:12px;color:#765521}.level-reward small{font-size:11px;color:#806b4d;margin-top:4px}.level-reward button,.level-gold-pill{border:1px solid #b18b42;background:linear-gradient(#f5d58a,#d7ae5c);color:#553b15;border-radius:8px;padding:7px 9px;font-weight:700;font-size:11px;white-space:nowrap}.level-reward button:disabled{opacity:.48}.level-gold-pill{padding:3px 6px}.focuspack.pack-switch-out{position:fixed!important;z-index:140!important;margin:0!important;pointer-events:none!important;animation:none!important}.focuspack.pack-switch-out .stock,.focuspack.pack-switch-out .tearhint{visibility:hidden}.focuspack.pack-switch-in .stock,.focuspack.pack-switch-in .tearhint{opacity:0}.focuspack.pack-switch-in{pointer-events:none}

.focuspack .stock,.focuspack .tearhint{transition:opacity .18s ease-out}

/* V0.18.6: stable inventory strip, mouse drag + native touch scroll. */
.packselector{cursor:grab;user-select:none;-webkit-user-select:none;scroll-behavior:auto;}
.packselector button,.packselector button *{cursor:grab;-webkit-user-drag:none;}
.packselector.tray-dragging,.packselector.tray-dragging *{cursor:grabbing!important;}
.packselector.tray-dragging button{transform:none!important;transition:none!important;}
.packselector{overflow-anchor:none;}

/* V0.18.7: compact current-level basic odds modal. */
#detail.basic-odds-dialog{width:min(92vw,460px);border:0;border-radius:26px;background:linear-gradient(155deg,#fff,#f5f2eb);box-shadow:0 30px 75px #211c2540;padding:0;}
.basic-odds-dialog .dialoghead{background:transparent;position:static;border:0;padding:24px 25px 0;gap:12px;letter-spacing:0;font-size:22px;font-weight:850;color:#24232a;}
.basic-odds-dialog .dialoghead:after{content:"";height:1px;background:linear-gradient(90deg,#cdbb8a,transparent);flex:1;order:1;}
.basic-odds-dialog .dialoghead button{order:2;border:0;background:transparent;color:#888078;box-shadow:none;}
.basic-odds-dialog #dialogBody{padding:9px 25px 24px;}
.basic-odds-dialog #dialogBody .odds-subtitle{margin:0 0 15px;color:#817d77;font-size:14px;}
.basic-odds-list{display:grid;gap:9px;}
.basic-odds-row{display:flex;align-items:center;justify-content:space-between;min-height:49px;padding:9px 14px;background:#e8e6e180;border-radius:15px;}
.basic-odds-row strong{font-size:18px;letter-spacing:.015em;font-weight:800;font-variant-numeric:tabular-nums;color:#26242a;}
.basic-odds-row .rarity-badge{width:52px;height:27px;padding:0;overflow:hidden;border:0;box-shadow:inset 0 1px #ffffff88,0 1px 1px #0002;}
.basic-odds-row .rarity-badge[data-rarity=N]{background:linear-gradient(110deg,#e4dfcd,#faf9f3);--badge-ink:#686454;}
.basic-odds-row .rarity-badge[data-rarity=R]{background:linear-gradient(110deg,#3779c9,#a6c6e8);--badge-ink:white;}
.basic-odds-row .rarity-badge[data-rarity=SR]{background:linear-gradient(110deg,#7343c6,#d3b8f0);--badge-ink:white;}
.basic-odds-row .rarity-badge[data-rarity=SSR]{background:linear-gradient(110deg,#d2a12c,#fae7aa);--badge-ink:#48340b;}
.basic-odds-row .rarity-badge[data-rarity=UR]{background:linear-gradient(110deg,#ac49ce,#ef476d,#f6b100);--badge-ink:white;}
.basic-odds-row .rarity-badge em{text-shadow:none;}
.basic-odds-dialog #dialogBody .odds-notice{margin:15px 0 0;text-align:center;font-size:12px;color:#817d77;}
@media(max-width:360px){.basic-odds-dialog .dialoghead{padding:19px 17px 0}.basic-odds-dialog #dialogBody{padding:8px 17px 18px}.basic-odds-row{min-height:44px;padding:8px 11px}}

/* V0.19.6 shorter reward feedback. */
#achievementNotice.active .notice-progress{animation-duration:.95s}
#achievementNotice{transition:opacity .12s ease,transform .16s ease,visibility .16s}
.packselector button.landed .packart,.packselector button.landed .traycount{animation-duration:.18s}
.arrival-count{animation-duration:.18s}
