/* Pack premiere: canvas stage, responsive award panel and keyboard-accessible controls. */
.reveal.pack-show{padding:28px 20px;overflow-y:auto;z-index:100;background:radial-gradient(ellipse at 50% 35%,#18253cdd,#02050bf7 72%),url('assets/arena/stadium-free-kick-v1.png') center/cover fixed}
.pack-show .reveal-inner{width:min(1180px,100%);max-width:1180px;position:relative;isolation:isolate;padding:22px 26px 24px;text-align:center;border:1px solid #ffffff14;border-radius:28px;background:linear-gradient(145deg,#131d2ce8,#060b13f5 65%);box-shadow:0 35px 120px #000a,0 1px 0 #ffffff09 inset}
.pack-show .reveal-inner>.eyebrow{display:block;font-size:10px;letter-spacing:3px;color:#8fa0b4}
.pack-show-toolbar{display:flex;justify-content:flex-end;gap:9px;margin-bottom:12px}
.pack-show-toolbar button{margin:0;min-height:40px;padding:9px 15px;font-size:10px;border:1px solid #ffffff24;border-radius:9px;background:#ffffff05;color:#c8d2df;transition:background .2s,border-color .2s}
.pack-show-toolbar button:hover{background:#ffffff12;border-color:#ffffff50}
.pack-show button:focus-visible{outline:2px solid var(--effect,#ffdf91);outline-offset:4px}
.pack-show #revealTitle{font-family:'Barlow Condensed',Impact,sans-serif;font-size:clamp(29px,4vw,48px);font-weight:700;letter-spacing:.7px;margin:10px 0 5px;color:#faf2e0;line-height:1.1}
.pack-show-hint{font-size:11px;letter-spacing:2.5px;color:var(--effect,#adc8e1);margin:10px 0 21px;min-height:18px}
.pack-show-stage{position:relative;width:min(100%,calc(62svh * 1.53846),1000px);aspect-ratio:1000/650;margin:0 auto;border:1px solid #c5d5e527;border-radius:18px;overflow:hidden;box-shadow:0 22px 55px #0008,0 0 60px color-mix(in srgb,var(--effect,#adc8e1) 9%,transparent);background:#030710}
.pack-show-stage::after{content:"";position:absolute;bottom:0;left:0;width:var(--show-progress,0%);height:2px;background:var(--effect,#adc8e1);box-shadow:0 0 15px var(--effect,#adc8e1);pointer-events:none}
.pack-show-stage canvas{width:100%;height:100%;display:block}
.pack-show #packParticles,.pack-show .pack-flash{display:none}
.pack-show #revealMessage{font-size:11px;line-height:1.7;margin:18px auto 0;max-width:700px;color:#8e9db1}
.pack-show-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:20px}
.pack-show-actions button{min-height:48px;border-radius:10px;font-size:11px;padding-inline:22px}
.pack-show #closeReveal:disabled{display:none}
.pack-show:not(.is-finished) .pack-show-actions{margin:0}
.pack-show #packFinal{display:grid;grid-template-columns:minmax(220px,290px) minmax(220px,330px);align-items:center;justify-content:center;gap:26px;margin:22px auto;animation:packAwardArrive .7s cubic-bezier(.16,1,.3,1)}
.pack-show #revealCard{perspective:1000px;min-width:0}
.pack-show #revealCard .player-card{width:100%;max-width:290px;margin:0 auto;max-height:none;transform:none;box-shadow:0 0 40px color-mix(in srgb,var(--effect) 22%,transparent),0 16px 45px #0008;cursor:default}
.pack-show #revealCard .rating{font-size:38px}
.pack-show #revealCard .card-info strong{font-size:27px}
.pack-show #revealCard .card-info small{font-size:8px}
.pack-final-stats{text-align:left;padding:26px;border:1px solid color-mix(in srgb,var(--effect,#adc8e1) 25%,transparent);border-radius:17px;background:radial-gradient(ellipse at 0 0,#2431497a,#0a121eee 70%);box-shadow:0 12px 35px #0004}
.pack-final-stats h3{font-family:'Barlow Condensed',Impact,sans-serif;font-size:34px;font-weight:600;line-height:1.05;color:#f7eddb;margin:0 0 12px}
.pack-final-stats>p{font-size:10px;letter-spacing:1.3px;line-height:1.8;color:var(--effect,#adc8e1);margin:0 0 25px;padding-bottom:20px;border-bottom:1px solid #ffffff12}
.pack-final-stats>div{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:17px;font-size:11px;color:#9cacc0}
.pack-final-stats b{font-size:14px;color:#f2e9d8;font-variant-numeric:tabular-nums}
.pack-final-stats i{grid-column:1/-1;display:block;height:5px;border-radius:4px;background:linear-gradient(90deg,var(--effect) var(--stat),#ffffff09 var(--stat));transform-origin:left;animation:packStatFill .85s cubic-bezier(.16,1,.3,1) both}
.pack-final-stats>div:nth-of-type(2) i{animation-delay:.08s}
.pack-final-stats>div:nth-of-type(3) i{animation-delay:.16s}
.pack-final-stats>div:nth-of-type(4) i{animation-delay:.24s}
.pack-final-stats>div:nth-of-type(5) i{animation-delay:.32s}
.pack-show.is-finished .pack-show-stage::after{width:100%;opacity:.45}
.pack-show.is-finished .pack-show-hint{font-weight:700}
.pack-show.is-finished.has-motion .reveal-inner{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);column-gap:24px;align-items:center}
.pack-show.is-finished.has-motion .reveal-inner>.pack-show-toolbar,.pack-show.is-finished.has-motion .reveal-inner>.eyebrow,.pack-show.is-finished.has-motion #revealTitle,.pack-show.is-finished.has-motion #packShowHint,.pack-show.is-finished.has-motion #revealMessage,.pack-show.is-finished.has-motion .pack-show-actions{grid-column:1/-1}
.pack-show.is-finished.has-motion .pack-show-stage{width:100%;aspect-ratio:1000/650;margin:0;animation:packAwardArrive .65s cubic-bezier(.16,1,.3,1)}
.pack-show.is-finished.has-motion #packFinal{display:block;width:100%;margin:0}
.pack-show.is-finished.has-motion #revealCard{display:none}
.pack-show.is-finished:not(.has-motion) .pack-show-stage{display:none}
.pack-show[data-rarity="legendary"].is-finished #revealTitle{text-shadow:0 0 32px #ffda7345}
.pack-show[data-rarity="legendary"].is-finished .reveal-inner{border-color:#ffdf9135;box-shadow:0 35px 120px #000a,0 0 90px #ffdf910a}
@keyframes packAwardArrive{from{opacity:0;transform:translateY(16px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes packStatFill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:850px){.pack-show.is-finished.has-motion .reveal-inner{display:block}.pack-show.is-finished.has-motion .pack-show-stage{width:min(100%,calc(55svh * 1.53846));margin:auto}.pack-show.is-finished.has-motion #packFinal{margin:16px auto 0;max-width:620px}.pack-show.is-finished.has-motion .pack-final-stats{display:grid;grid-template-columns:1fr 1fr;column-gap:24px;padding:20px}.pack-show.is-finished.has-motion .pack-final-stats h3,.pack-show.is-finished.has-motion .pack-final-stats>p{grid-column:1/-1}.pack-show.is-finished.has-motion .pack-final-stats>p{margin-bottom:0;padding-bottom:12px}.pack-show.is-finished.has-motion .pack-final-stats h3{font-size:28px}}
@media(max-width:650px){.reveal.pack-show{padding:10px 6px}.pack-show .reveal-inner{padding:13px 10px 18px;border-radius:18px}.pack-show #revealTitle{font-size:30px}.pack-show-hint{font-size:10px;letter-spacing:1px;margin:9px 0 15px}.pack-show #packFinal{grid-template-columns:minmax(0,290px);gap:18px;margin:15px auto}.pack-show #revealCard .player-card{max-width:260px}.pack-final-stats{padding:18px}.pack-final-stats h3{font-size:28px}.pack-final-stats>div{margin-top:13px}.pack-show-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;margin:17px auto 0;gap:9px}.pack-show-actions #closeReveal{grid-column:1/-1}.pack-show-actions button{width:100%;font-size:10px;padding:12px 8px}.pack-show-toolbar{gap:8px;margin-bottom:9px}.pack-show-toolbar button{font-size:9px;min-height:42px}.pack-show #revealMessage{font-size:10px;margin:14px auto 0}.pack-show-stage{border-radius:12px;width:100%}.pack-show .reveal-inner>.eyebrow{font-size:8px;letter-spacing:2px}}
@media(prefers-reduced-motion:reduce){.pack-show #packFinal,.pack-show .pack-final-stats i,.pack-show.is-finished.has-motion .pack-show-stage{animation:none}.pack-show *{scroll-behavior:auto;transition:none}}
