.pack-slots{margin-top:20px}.pack-slots h3{font-size:16px}.pack-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.timed-pack{position:relative;min-width:0;min-height:210px;padding:12px 8px;border:1px solid #637985;border-radius:10px;background:#15262a;color:#edf4ef;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;overflow:hidden}.timed-pack .pack-name{font-size:16px;line-height:1.3}.timed-pack .pack-status{font-size:14px;line-height:1.4;min-height:40px;display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}.timed-pack:disabled{cursor:default}.timed-pack[data-state=empty]{border-style:dashed;background:#10211f;color:#a8bbb1}.timed-pack[data-tier=epic]{border-color:#9863ca}.timed-pack[data-tier=epic] .pack-name{color:#dab2ff}.timed-pack[data-tier=legendary]{border-color:#cba04b}.timed-pack[data-tier=legendary] .pack-name{color:#ffe5a1}.timed-pack[data-state=ready]{border-width:2px;background:#1d3430}.timed-pack[data-state=ready] .pack-status{color:#d4fcb1;font-weight:700}.timed-pack:focus-visible,.pack-dismiss:focus-visible{outline:3px solid #b5f56b;outline-offset:2px}.pack-slots p{font-size:14px;line-height:1.5;color:#bdcdc4}.packs-dialog{max-width:500px;width:calc(100% - 24px);box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto}.packs-dialog button{min-height:44px}.pack-progress{display:block;height:5px;width:85%;background:#070f13;border-radius:4px;overflow:hidden}.pack-progress[hidden]{display:none}.pack-progress i{display:block;width:100%;height:100%;background:#b5f56b;transform-origin:left}.pack-art{position:relative;isolation:isolate;width:120px;height:120px;flex:none;--glow:#d4edff}.pack-art[data-tier=epic]{--glow:#c07aff}.pack-art[data-tier=legendary]{--glow:#ffcf65}.pack-aura{position:absolute;inset:0;background:radial-gradient(ellipse,var(--glow),transparent 68%);opacity:.18;transform:scale(.9);z-index:-1}.pack-body{position:absolute;width:66px;height:88px;left:27px;top:16px;overflow:hidden}.pack-body>svg{display:block;width:100%;height:100%;image-rendering:pixelated}.pack-orbit{position:absolute;inset:0;color:var(--glow);opacity:0;z-index:-1}.pack-orbit svg{width:100%;height:100%}.pack-art[data-tier=legendary] .pack-orbit{background:repeating-conic-gradient(from 0deg,transparent 0deg 30deg,#ffda7033 30deg 40deg);border-radius:50%}.pack-shine{display:none;position:absolute;inset:0;background:linear-gradient(115deg,transparent 38%,#fff9 49%,transparent 61%);transform:translateX(-120%);opacity:0}.pack-art[data-tier=normal] .pack-shine{display:block}.pack-empty{display:grid;place-items:center;height:100%;border:2px dashed #47635c;border-radius:4px;font:32px system-ui;opacity:.5}.pack-art[data-tier=''] .pack-aura,.pack-art[data-tier=''] .pack-orbit{display:none}
/* At most three layers per slot, including all sparks as one SVG layer. */
.timed-pack[data-tier=normal] .pack-shine{animation:pack-shine 5s infinite}.timed-pack[data-tier=epic] .pack-aura,.timed-pack[data-tier=legendary] .pack-aura{animation:pack-glow 3s ease-in-out infinite}.timed-pack[data-tier=epic] .pack-orbit{animation:pack-sparks 4s ease-in-out infinite}.timed-pack[data-tier=legendary] .pack-orbit{animation:pack-rays 18s linear infinite}.timed-pack[data-state=ready][data-tier=epic] .pack-body{animation:pack-shake 4s infinite}.timed-pack[data-state=ready][data-tier=legendary] .pack-body{animation:pack-bounce 3s ease-in-out infinite}.timed-pack[data-state=ready] .pack-aura{opacity:.6}.timed-pack:not(.pack-visible) *,.packs-hidden .timed-pack *,.pack-opening-active .timed-pack *{animation-play-state:paused!important}
@keyframes pack-shine{0%,72%,100%{transform:translateX(-120%);opacity:0}76%{opacity:.6}91%{transform:translateX(120%);opacity:0}}@keyframes pack-glow{0%,100%{transform:scale(.85);opacity:.25}50%{transform:scale(1.15);opacity:.55}}@keyframes pack-sparks{0%,100%{transform:translateY(4px);opacity:.3}50%{transform:translateY(-5px);opacity:.85}}@keyframes pack-rays{from{transform:rotate(0);opacity:.6}to{transform:rotate(360deg);opacity:.6}}@keyframes pack-shake{0%,80%,100%{transform:rotate(0)}84%,92%{transform:rotate(-3deg)}88%,96%{transform:rotate(3deg)}}@keyframes pack-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
dialog.pack-opening{border:1px solid #687c76;border-radius:16px;background:#10231f;color:#eff7ef;padding:20px;text-align:center}dialog.pack-opening::backdrop{background:#030b0de6}dialog.pack-opening h2{font-size:20px;margin:4px 0 12px}.pack-stage{position:relative;height:340px;max-height:60dvh;display:grid;place-items:center;overflow:hidden}.pack-stage>.pack-art{position:absolute;width:240px;height:240px}.pack-stage .pack-body{width:120px;height:160px;left:60px;top:40px}.pack-stage .pack-aura{opacity:.5}.pack-stage .pack-orbit{opacity:0}.pack-stage .pack-shine{display:none}.pack-flash{position:absolute;inset:0;opacity:0;background:#fff;pointer-events:none;z-index:4}.pack-reveal{position:relative;width:210px;max-width:90%;box-sizing:border-box;background:#192d2b;border:2px solid var(--card-color);border-radius:12px;padding:20px 12px;display:flex;flex-direction:column;align-items:center;gap:12px}.pack-reveal[hidden],.pack-art[hidden]{display:none}.pack-reveal canvas:not(.juice-particles){width:96px;height:96px;image-rendering:pixelated}.pack-reveal strong{font-size:24px;line-height:1.1}.pack-reveal span{font-size:14px;color:var(--card-color)}.pack-reveal p{font-size:14px;margin:0;line-height:1.4}.pack-dismiss{width:100%;border:1px solid #879f8e;border-radius:8px;padding:12px;color:#eafaeb;background:#284638;font:inherit;font-size:16px;cursor:pointer}
@media(min-width:650px){.pack-slot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.timed-pack *{animation:none!important}.pack-aura{opacity:.4!important;transform:none!important}.pack-orbit{opacity:.25!important}.pack-shine{display:none!important}}
/* A menu dialog may coexist with the League slots underneath it. */
body:has(dialog[open]) .timed-pack *{animation-play-state:paused!important}html:not(.packs-hidden) body:not(.pack-opening-active):not(:has(.pack-opening[open])) dialog[open] .timed-pack.pack-visible *{animation-play-state:running!important}.packs-hidden body dialog[open] .timed-pack *{animation-play-state:paused!important}.pack-stage .pack-orbit{background:repeating-conic-gradient(transparent 0deg 28deg,#fff3 28deg 36deg);border-radius:50%}@media(prefers-reduced-motion:reduce){.pack-reveal{background:radial-gradient(ellipse at top,#d1e4c933,transparent 75%),#192d2b}}
.pack-earned{border:2px solid #b5f56b;border-radius:16px;padding:24px 16px;background:radial-gradient(ellipse at top,#345948,#10231f 72%);color:#eff7ef;text-align:center;animation:pack-earned-in .4s ease-out}.pack-earned::backdrop{background:#030b0ddd}.pack-earned h2{font-size:26px;line-height:1.15;margin:0 0 18px;color:#d6ffad}.pack-earned-list{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.pack-earned-item{display:flex;flex-direction:column;align-items:center}.pack-earned-item strong{font-size:16px}.pack-earned-item[data-tier=epic] strong{color:#dab2ff}.pack-earned-item[data-tier=legendary] strong{color:#ffe5a1}.pack-earned .pack-aura{opacity:.6}.pack-earned .pack-orbit{opacity:.6}.pack-earned p{font-size:16px;line-height:1.5;margin:20px 0}.packs-hidden .pack-earned{animation-play-state:paused}@keyframes pack-earned-in{from{opacity:0;transform:translateY(14px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.pack-earned{animation:none}}
.pack-opening[data-beat=reveal] .pack-stage{height:auto;max-height:none;min-height:340px;overflow:visible;padding:12px 0}.pack-reveal{width:300px;max-width:100%}.pack-card-stats{display:grid;grid-template-columns:1fr auto 1fr auto;gap:8px 12px;width:100%;font:14px/1.3 system-ui;margin:4px 0}.pack-card-stats dt{text-align:left;color:#bdcdc4}.pack-card-stats dd{margin:0;font-weight:800}.pack-card-stats .high{color:#86efac}.pack-reveal>p{font-size:14px;line-height:1.4}.pack-opening .pack-dismiss{position:sticky;bottom:0}
/* Reveal has one sequential Web Animation; gradients and sparkles stay static. */
.pack-card-back{box-sizing:border-box;width:210px;height:290px;border:2px solid var(--card-color);border-radius:12px;display:grid;place-items:center;color:var(--card-color);font-size:23px;font-weight:800;text-transform:uppercase;letter-spacing:2px;background:radial-gradient(ellipse at center,#ffffff18,transparent 70%),#192d2b;box-shadow:0 0 24px color-mix(in srgb,var(--card-color),transparent 75%);backface-visibility:hidden}.pack-card-back[hidden]{display:none}.pack-stage{touch-action:manipulation}.pack-opening .pack-reveal{overflow:hidden;backface-visibility:hidden;background:radial-gradient(ellipse at top,color-mix(in srgb,var(--card-color),transparent 88%),transparent 65%),#192d2b}.pack-opening .pack-reward-badge{border:1px solid var(--card-color);border-radius:20px;padding:5px 12px;font-size:13px;font-weight:800;color:var(--card-color)}.pack-reward-badge[data-reward=new]{letter-spacing:1px}.pack-foil-sheen{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(115deg,transparent 25%,#92d5ff55 40%,#fff9 50%,#e6baff55 60%,transparent 75%)}.pack-reveal[data-foil=true]{border-style:double;border-width:3px}.pack-opening .pack-stage .pack-aura{opacity:.6}.pack-opening .pack-dismiss{touch-action:manipulation}

#result-panel #home-btn{margin-top:auto}#result-packs{flex-shrink:0}#result-packs:empty{display:none}#result-packs>strong{font-size:12px;color:#d6ffad}.result-pack-list{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}#result-panel .result-pack{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:5px 10px;background:#1c3930;color:#eff7ef;border:1px solid #65855c;max-width:170px;cursor:pointer}.result-pack .pack-art{width:60px;height:65px}.result-pack .pack-body{width:36px;height:48px;left:12px;top:8px}.result-pack small{font-size:10px;line-height:1.3}.result-pack:disabled{opacity:.65;cursor:wait}

.result-match-coins{display:flex;align-items:center;justify-content:center;padding:8px 14px;color:#ffe066}.result-match-coins .coin-amount{font-size:20px;font-weight:800}.result-match-coins .coin-amount svg{width:28px;height:28px}

/* First ownership only: one short accent after the reveal, never a new delay. */
.pack-new-glint,.pack-new-spark{position:absolute;pointer-events:none;opacity:0;z-index:3}
.pack-new-glint{inset:0;background:linear-gradient(110deg,transparent 38%,#fff7 50%,transparent 62%)}
.pack-new-spark{left:50%;top:25%;width:4px;height:7px;background:var(--card-color);border-radius:1px}
.pack-opening[data-new-card=true] .pack-reward-badge[data-reward=new]{background:var(--card-color);color:#10231f;animation:packNewBadge 420ms ease-out both}
.pack-opening[data-new-card=true] .pack-new-glint{animation:packNewGlint 650ms 60ms ease-out both}
.pack-opening[data-new-card=true] .pack-new-spark{animation:packNewSpark 650ms var(--spark-delay) ease-out both}
@keyframes packNewBadge{0%{transform:scale(.8);opacity:.4}65%{transform:scale(1.14);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes packNewGlint{0%{transform:translateX(-110%);opacity:0}35%{opacity:.7}100%{transform:translateX(110%);opacity:0}}
@keyframes packNewSpark{0%{transform:translate(0,0) scale(.3);opacity:0}20%{opacity:1}100%{transform:translate(var(--spark-x),var(--spark-y)) rotate(100deg) scale(.5);opacity:0}}
.packs-hidden .pack-opening .pack-new-glint,.packs-hidden .pack-opening .pack-new-spark,.packs-hidden .pack-opening[data-new-card=true] .pack-reward-badge{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.pack-opening[data-new-card=true] .pack-reward-badge,.pack-opening[data-new-card=true] .pack-new-glint,.pack-opening[data-new-card=true] .pack-new-spark{animation:none}.pack-new-glint,.pack-new-spark{display:none}}

/* Finite reveal accents: rarity light behind the reward, never over controls. */
.pack-opening .pack-stage{isolation:isolate;perspective:850px}
.pack-opening .pack-stage>.pack-art,.pack-opening .pack-card-back,.pack-opening .pack-reveal{z-index:1}
.pack-reveal-fx{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;border-radius:18px;--impact-strength:.45}
.pack-opening[data-rarity=rare] .pack-reveal-fx{--impact-strength:.7}
.pack-opening[data-rarity=legend] .pack-reveal-fx,.pack-opening[data-rarity=gold] .pack-reveal-fx{--impact-strength:.95}
.pack-reveal-fx:before{content:'';position:absolute;inset:5% -15%;opacity:0;background:radial-gradient(ellipse,color-mix(in srgb,var(--card-color) 55%,transparent),transparent 67%)}
.pack-reveal-fx:after{content:'';position:absolute;width:210px;height:210px;left:calc(50% - 105px);top:calc(42% - 105px);border:2px solid var(--card-color);border-radius:50%;opacity:0;box-shadow:0 0 20px color-mix(in srgb,var(--card-color) 25%,transparent)}
.pack-opening[data-beat=anticipation] .pack-reveal-fx:before{animation:packCharge 750ms ease-out both}
.pack-opening[data-beat=rarity] .pack-reveal-fx:before{animation:packRarityLight 550ms ease-out both}
.pack-opening[data-beat=reveal] .pack-reveal-fx:before{animation:packRevealLight 900ms ease-out both}
.pack-opening[data-beat=reveal] .pack-reveal-fx:after{animation:packImpactRing 650ms ease-out both}
.pack-reveal-fx>i{position:absolute;left:50%;top:42%;width:3px;height:9px;border-radius:2px;background:var(--card-color);opacity:0}
.pack-opening[data-beat=reveal] .pack-reveal-fx>i{animation:packImpactRay 650ms var(--ray-delay) ease-out both}
.pack-opening[data-rarity=common] .pack-reveal-fx>i:nth-child(2n){display:none}
.pack-card-back{position:relative;overflow:hidden;text-shadow:0 2px 8px #0008;background:repeating-linear-gradient(135deg,#ffffff05 0 2px,transparent 2px 9px),radial-gradient(ellipse at top,color-mix(in srgb,var(--card-color) 28%,transparent),transparent 70%),#142724}
.pack-card-back:before{content:'';position:absolute;inset:11px;border:1px solid color-mix(in srgb,var(--card-color) 40%,transparent);border-radius:7px}
.pack-card-back:after{content:'✦';position:absolute;top:48px;font-size:48px;color:var(--card-color);opacity:.85}
@keyframes packCharge{from{opacity:0;transform:scale(.5)}to{opacity:var(--impact-strength);transform:scale(.95)}}
@keyframes packRarityLight{0%{opacity:var(--impact-strength);transform:scale(.75)}45%{opacity:1;transform:scale(1.12)}100%{opacity:var(--impact-strength);transform:scale(1)}}
@keyframes packRevealLight{0%{opacity:var(--impact-strength);transform:scale(.75)}25%{opacity:1;transform:scale(1.15)}100%{opacity:0;transform:scale(1.3)}}
@keyframes packImpactRing{0%{opacity:0;transform:scale(.5)}20%{opacity:var(--impact-strength)}100%{opacity:0;transform:scale(1.8)}}
@keyframes packImpactRay{0%{opacity:0;transform:translate(0,0) rotate(var(--ray-angle)) scale(.5)}20%{opacity:var(--impact-strength)}100%{opacity:0;transform:translate(var(--ray-x),var(--ray-y)) rotate(var(--ray-angle)) scale(.4)}}
.pack-opening[data-paused=true] .pack-reveal-fx:before,.pack-opening[data-paused=true] .pack-reveal-fx:after,.pack-opening[data-paused=true] .pack-reveal-fx>i{animation-play-state:paused}
.pack-opening[data-motion] .pack-reveal-fx{display:none}
@media(prefers-reduced-motion:reduce){.pack-reveal-fx{display:none!important}}

.pack-opening[data-beat=reveal]:not([data-motion]) .pack-reveal:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 30%,#ffffff38 48%,#ffffff66 50%,transparent 68%);opacity:0;animation:packRewardSweep 600ms 140ms ease-out both}
@keyframes packRewardSweep{0%{opacity:0;transform:translateX(-110%)}30%{opacity:.65}100%{opacity:0;transform:translateX(110%)}}
.pack-opening[data-paused=true] .pack-reveal:after{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.pack-opening .pack-reveal:after{display:none!important}}
