@font-face{font-family:PackOVR;src:url('/static/fonts/FCOVR.otf') format('opentype');font-display:swap}@font-face{font-family:PackPosition;src:url('/static/fonts/POSITION.otf') format('opentype');font-display:swap}@font-face{font-family:PackName;src:url('/static/fonts/NAME.ttf') format('truetype');font-display:swap}
body.pack-opener-page .main-content{width:100%;max-width:1480px;padding:12px 28px 36px!important;box-sizing:border-box}.pack-workspace{--pack-border:#dce3e8;--pack-muted:#70808d;--pack-accent:#ccff00;color:#17202a}.pack-heading{display:flex;align-items:center;justify-content:space-between;margin:6px 0 24px}.pack-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;color:#728376}.pack-heading h1{font-size:32px;letter-spacing:-1.2px;margin:5px 0}.pack-heading p{font-size:14px;color:var(--pack-muted);margin:0}.simulation-badge{border:1px solid #b8d2bf;background:#eff7ef;color:#386243;padding:8px 12px;border-radius:5px;font-size:11px;font-weight:700}.pack-layout{display:grid;grid-template-columns:286px minmax(0,1fr);gap:24px;align-items:start}.pack-shop{background:#fff;border:1px solid var(--pack-border);border-radius:10px;overflow:hidden}.shop-heading{display:flex;justify-content:space-between;align-items:center;padding:20px 18px 10px}.shop-heading h2{margin:0;font-size:18px}.shop-heading span{font-size:11px;color:var(--pack-muted)}.pack-search{display:flex;gap:9px;align-items:center;margin:8px 16px;padding:10px;border:1px solid var(--pack-border);border-radius:5px;color:#8d99a3}.pack-search input{border:0;background:transparent;width:100%;min-width:0;font:inherit;font-size:12px;color:inherit;outline:none}.pack-search:focus-within{border-color:#526652}.shop-filters{display:flex;gap:5px;padding:7px 16px 12px}.shop-filters button{flex:1;border:0;background:#f3f5f6;border-radius:4px;font-size:11px;padding:8px;color:#6a7580;cursor:pointer}.shop-filters button.active{color:#263526;background:#e7f1db;font-weight:800}.pack-list{max-height:640px;overflow-y:auto;scrollbar-width:thin;padding:0 8px}.pack-option{display:flex;gap:11px;text-align:left;width:100%;align-items:center;border:1px solid transparent;border-bottom-color:#edf0f2;background:transparent;border-radius:5px;padding:12px 8px;cursor:pointer;color:inherit}.pack-option:hover{background:#f6f8f4}.pack-option.selected{background:#f0f5e7;border-color:#c4d79c}.pack-option img{width:33px;height:48px;object-fit:contain;flex-shrink:0}.pack-option strong{font-size:11px;font-weight:700;line-height:1.65;display:block;word-break:keep-all}.pack-option small{font-size:10px;color:#7b8790;display:block;margin-top:4px}.pack-option .selection-mark{margin-left:auto;color:#668633;font-size:14px}.shop-source{font-size:10px;line-height:1.9;padding:12px 16px;border-top:1px solid var(--pack-border);margin:10px 0 0;color:var(--pack-muted)}.shop-source a{color:#627845}.pack-main{min-width:0}.opening-stage{position:relative;aspect-ratio:16/9;width:100%;background:#000;overflow:hidden;border-radius:9px;isolation:isolate;container-type:inline-size;color:#fff}.stage-background{position:absolute;inset:0;background:url('/static/pack-opener/images/background-33.png') center/cover;z-index:-2}.stage-video{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;opacity:0;z-index:-1;pointer-events:none}.stage-video.visible{opacity:1}.stage-top{position:absolute;top:5%;left:4%;right:3%;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;z-index:10}.stage-top>span{font-size:clamp(11px,1.65cqw,18px);font-weight:700;text-shadow:0 2px 8px #0008;max-width:80%;line-height:1.5}.stage-tools{display:flex;gap:5px}.stage-tools button{display:grid;place-items:center;border:1px solid #ffffff20;border-radius:4px;background:#0004;color:#fff;width:30px;height:30px;cursor:pointer}.pack-idle{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2cqw}.opening-pack{height:43%;width:auto;filter:drop-shadow(0 15px 18px #0009);z-index:2;animation:pack-float 3.5s ease-in-out infinite}.pack-idle-caption{font-size:clamp(9px,1.2cqw,14px);color:#b4d1c6;position:absolute;bottom:24%}.pack-aura{position:absolute;left:50%;top:46%;width:36%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#51ff951f,transparent 64%);filter:blur(10px)}.pack-shockwave{position:absolute;left:50%;top:46%;width:10%;aspect-ratio:1;transform:translate(-50%,-50%) scale(0);border:1px solid #bfffd999;box-shadow:inset 0 0 30px #3fff9580,0 0 25px #80ffbd55;border-radius:50%;opacity:0}.opening-stage[data-phase=burst] .opening-pack{animation:pack-burst 1.55s both}.opening-stage[data-phase=burst] .pack-shockwave{animation:shockwave 1.5s both}.opening-stage[data-phase=burst] .pack-idle-caption{opacity:0}.opening-flash{position:absolute;inset:0;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,#fff 8%,#dbff9f 25%,#fff0 75%);z-index:6}.opening-flash.flash{animation:opening-flash .68s ease-out both}#opening-particles{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:7}.reveal-hint{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:23%;height:30%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-shadow:0 2px 16px #000;pointer-events:none;z-index:3}.reveal-hint:empty{display:none}.reveal-hint img{object-fit:contain;width:70%;height:70%;filter:drop-shadow(0 0 18px #fffa);animation:hint-in .35s both}.reveal-hint .hint-position{font-family:PackPosition,sans-serif;font-size:9cqw;line-height:1;animation:hint-in .35s both}.reveal-hint .hint-text{font-size:1.4cqw;font-weight:700;line-height:1.4}.hero-reward{position:absolute;inset:0;display:none;align-items:center;justify-content:center;z-index:4;pointer-events:none}.hero-reward.visible{display:flex}.hero-reward .player-card{width:19%;transform:translateY(-2%);animation:card-reveal .7s cubic-bezier(.12,.8,.25,1) both;filter:drop-shadow(0 12px 22px #0007)}.hero-reward .item-reward{width:42%;animation:card-reveal .7s both;color:white}.hero-reward .reward-caption{position:absolute;top:70%;font-size:1.3cqw;text-shadow:0 2px 6px #000;background:#0006;padding:4px 10px;border-radius:3px}.stage-bottom{position:absolute;bottom:6%;left:4%;right:4%;display:flex;flex-direction:column;align-items:center;gap:7px;z-index:9}.stage-bottom #stage-status{font-size:clamp(9px,1.15cqw,13px);text-shadow:0 2px 6px #000}.stage-bottom button{min-height:36px;padding:9px 28px;border:0;border-radius:5px;background:#cfff00;color:#13200b;font-size:clamp(11px,1.35cqw,15px);font-weight:800;cursor:pointer;box-shadow:0 2px 12px #bfff001a}.stage-bottom button:disabled{background:#737f57;color:#c8d2b7;cursor:wait}.stage-bottom button span{margin-left:16px}.stage-bottom #skip-opening{background:#0006;color:#fff;border:1px solid #ffffff30;font-size:11px;align-self:flex-end;min-height:30px;padding:6px 10px}.stage-bottom #show-results{background:#0bb8e8;color:white;min-width:28%;padding:7px}.selected-pack-info{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--pack-border)}.selected-pack-info strong{font-size:14px;line-height:1.6}.selected-pack-info p{font-size:11px;color:var(--pack-muted);margin:4px 0 0;line-height:1.6}.selected-pack-info button,.results-heading button,.odds-footer button{font-size:12px;border:1px solid var(--pack-border);border-radius:5px;background:#fff;padding:9px 12px;cursor:pointer;color:inherit;white-space:nowrap}.selected-pack-info button:disabled{opacity:.4}.pack-error{padding:12px;font-size:12px;line-height:1.8;background:#fff1ea;color:#9b3d23;margin:12px 0;border-radius:5px}.pack-results{padding:22px 0;border-bottom:1px solid var(--pack-border)}.results-heading,.history-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.results-heading h2,.history-heading h2{margin:4px 0;font-size:17px}.results-heading button{padding:8px 12px}.results-heading .accent-button{background:#d6ff40;border-color:#c6e830;color:#233615}.result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:16px 12px;padding-top:20px}.reward-entry{text-align:center;min-width:0}.reward-entry .player-card{width:100%;max-width:170px;margin:auto}.player-card{position:relative;aspect-ratio:1;container-type:inline-size;isolation:isolate;--card-text:#fff;color:var(--card-text)}.player-card img.card-background,.player-card img.card-face{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:-1}.player-card img.card-face{width:95%;height:95%;left:2.5%;top:2.5%;z-index:0}.card-rating{position:absolute;left:22%;top:10%;z-index:1;text-align:left;font-family:PackOVR,sans-serif;font-size:12.5cqw;font-weight:700;line-height:1.1;text-shadow:0 0 5px #000b}.card-position{position:absolute;left:23%;top:24%;z-index:1;color:var(--card-text);text-shadow:0 0 5px #000b;font-family:PackPosition,sans-serif;font-size:8.416667cqw;font-weight:400;line-height:1.1;display:block}.pack-card-name{position:absolute;left:22.5%;bottom:25.5%;width:55%;padding:0;box-sizing:border-box;font:400 8.75cqw PackName,sans-serif;text-align:center;line-height:normal;z-index:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 0 5px #000b}.card-symbols{position:absolute;bottom:16.1%;left:0;right:0;height:8.333333%;display:flex;align-items:center;justify-content:center;gap:9.75cqw;z-index:1}.card-symbols img{height:100%;width:auto;object-fit:contain;flex:none}.card-enhance{position:absolute;top:34%;left:20.9%;height:14.166667%;width:auto;object-fit:contain;z-index:2}.reward-entry>strong{display:block;font-size:11px;margin-top:5px;font-weight:700;line-height:1.5}.reward-entry>small{display:block;font-size:10px;color:var(--pack-muted);margin-top:4px;line-height:1.6}.item-reward{aspect-ratio:1/1.2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;padding:10px;box-sizing:border-box;background:radial-gradient(ellipse,#15463a1a,transparent 70%)}.item-icon{display:grid;place-items:center;width:65px;aspect-ratio:1;border:2px solid #dbbb4d;background:linear-gradient(135deg,#ffe39a,#b08012);box-shadow:0 5px 20px #b8871520;color:#fff;border-radius:50%;font-weight:900;font-size:24px;font-style:italic}.item-reward strong{font-size:13px;line-height:1.7;word-break:keep-all}.item-reward small{font-size:11px}.pack-history{padding:20px 0}.history-heading span{font-size:11px;color:var(--pack-muted)}.history-list{display:flex;gap:10px;overflow-x:auto;scrollbar-width:thin;padding:14px 0 5px}.history-empty{margin:8px 0;color:#8b969f;font-size:12px}.history-item{width:90px;min-width:90px;text-align:center}.history-item .player-card{width:90px}.history-item .item-reward{height:108px;gap:5px;padding:4px}.history-item .item-icon{width:35px;font-size:15px}.history-item .item-reward strong{font-size:9px}.history-item>small{font-size:9px;color:var(--pack-muted);line-height:1.5}.pack-disclaimer{font-size:10px;line-height:1.9;color:#87929a;margin:8px 0}.odds-dialog{width:min(820px,calc(100% - 36px));max-height:88dvh;padding:22px;border:1px solid #d3dadf;border-radius:10px;color:#17202a;background:#fff;box-sizing:border-box}.odds-dialog::backdrop{background:#071610aa;backdrop-filter:blur(4px)}.odds-heading{display:flex;align-items:center;justify-content:space-between}.odds-heading h2{font-size:20px;margin:0}.odds-heading button{border:0;background:transparent;font-size:30px;cursor:pointer;color:inherit}.odds-breadcrumb{display:flex;align-items:center;gap:10px;margin:15px 0;font-size:13px}.odds-breadcrumb button{font-size:11px;background:transparent;border:1px solid #dce3e8;border-radius:4px;padding:5px;cursor:pointer;color:inherit}.odds-note{font-size:11px;color:#7b8690;line-height:1.8}.odds-scroll{max-height:55dvh;overflow:auto}.odds-scroll table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.odds-scroll th{position:sticky;top:0;background:#f1f5f0;text-align:left;padding:11px 9px}.odds-scroll td{border-bottom:1px solid #edf0f2;padding:9px}.odds-scroll td:first-child{white-space:normal;min-width:160px;line-height:1.5}.odds-scroll td:last-child{text-align:right;font-variant-numeric:tabular-nums}.odds-scroll button{border:0;background:transparent;color:#527a19;font:inherit;text-align:left;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:3px}.odds-footer{display:flex;align-items:center;justify-content:center;gap:18px;margin:15px 0;font-size:12px}.odds-footer button:disabled{opacity:.35;cursor:default}.odds-source{font-size:11px;color:#637d43}.opening-stage:fullscreen{width:100vw;height:100dvh;aspect-ratio:auto;border-radius:0}.opening-stage[data-phase=tunnel] .stage-top,.opening-stage[data-phase=reveal] .stage-top,.opening-stage[data-phase=hero] .stage-top{opacity:.6}
[hidden]{display:none!important}
@keyframes pack-float{50%{transform:translateY(-7px)}}@keyframes pack-burst{0%{transform:scale(1)}35%{transform:scale(.83);filter:drop-shadow(0 0 16px #86ffb5)}65%{transform:scale(1.12);filter:drop-shadow(0 0 25px #d3ffe8)}82%{opacity:1;transform:scale(1.2)}100%{opacity:0;transform:scale(1.55);filter:brightness(4)}}@keyframes shockwave{0%{opacity:0;transform:translate(-50%,-50%) scale(.8)}25%{opacity:.9}70%{opacity:.2;transform:translate(-50%,-50%) scale(7)}100%{opacity:0;transform:translate(-50%,-50%) scale(10)}}@keyframes opening-flash{0%{opacity:0}18%{opacity:1}100%{opacity:0}}@keyframes hint-in{from{opacity:0;transform:scale(1.25)}to{opacity:1;transform:scale(1)}}@keyframes card-reveal{0%{opacity:0;transform:translateY(3%) scale(.4);filter:brightness(5) drop-shadow(0 0 40px white)}45%{opacity:1;filter:brightness(1.6)}100%{opacity:1;transform:translateY(-2%) scale(1);filter:brightness(1)}}
@media(max-width:1000px){.pack-layout{grid-template-columns:235px minmax(0,1fr);gap:16px}.pack-option{padding:10px 6px;gap:7px}.pack-option strong{font-size:10px}.selected-pack-info{align-items:flex-start}.selected-pack-info strong{font-size:12px}}@container pack-scene (max-width:1000px){.stage-tools button{width:25px;height:25px}.stage-bottom button{min-height:30px;padding:7px 18px}}
@media(max-width:740px){body.pack-opener-page .main-content{padding:8px 14px 28px!important}.pack-heading{margin-bottom:18px}.pack-heading h1{font-size:27px}.pack-heading p{font-size:12px}.pack-layout{display:flex;flex-direction:column;gap:14px}.pack-shop{width:100%;box-sizing:border-box}.shop-heading{padding:12px 14px 0}.shop-heading h2{font-size:15px}.pack-search{margin:8px 12px;padding:8px}.shop-filters{padding:0 12px 8px}.pack-list{display:flex;gap:7px;padding:0 12px 10px;max-height:none;overflow-x:auto;overflow-y:hidden}.pack-option{width:195px;min-width:195px;align-self:stretch;padding:9px;border-color:#e7ece7}.pack-option strong{font-size:10px}.pack-option small{font-size:9px}.pack-option img{width:27px;height:39px}.shop-source{padding:7px 12px;font-size:9px;margin:0;line-height:1.5}.shop-source br{display:none}.pack-main{width:100%}.selected-pack-info{padding:12px 0;gap:8px}.selected-pack-info p{font-size:10px}.selected-pack-info button{padding:8px;font-size:10px}.results-heading{align-items:flex-start}.results-heading button{padding:7px 9px;font-size:10px}.results-heading h2{font-size:15px}.result-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:14px 7px}.reward-entry>small{font-size:9px}.pack-history{padding:16px 0}.odds-dialog{padding:14px;width:calc(100% - 20px)}.odds-scroll table{font-size:10px}.odds-scroll td,.odds-scroll th{padding:8px 5px}.odds-breadcrumb{font-size:11px}.odds-heading h2{font-size:17px}}@container pack-scene (max-width:740px){.opening-stage{border-radius:6px}.stage-tools{gap:3px}.stage-tools button{width:23px;height:23px;font-size:11px}.stage-top{top:4%}.stage-top>span{font-size:10px;max-width:73%}.stage-bottom{bottom:5%;gap:4px}.stage-bottom button{font-size:10px;min-height:27px;padding:6px 16px}.stage-bottom #skip-opening{font-size:9px;min-height:25px;padding:4px 8px}.pack-idle-caption{font-size:9px;bottom:25%}}
@media(prefers-reduced-motion:reduce){.opening-pack{animation:none}.opening-stage[data-phase=burst] .opening-pack{animation-duration:.1s}.pack-shockwave{display:none}.hero-reward .player-card,.reveal-hint img,.reveal-hint .hint-position{animation:none}.opening-flash.flash{animation-duration:.1s}}
html[data-theme=dark] .pack-workspace{--pack-border:#2e383e;--pack-muted:#899a9f;color:#e1eae5}html[data-theme=dark] .pack-shop,html[data-theme=dark] .selected-pack-info button,html[data-theme=dark] .results-heading button,html[data-theme=dark] .odds-dialog,html[data-theme=dark] .odds-footer button{background:#172124;color:#e1eae5}html[data-theme=dark] .pack-option{border-bottom-color:#273438}html[data-theme=dark] .pack-option:hover{background:#21312d}html[data-theme=dark] .pack-option.selected{background:#2a3b24;border-color:#576b31}html[data-theme=dark] .shop-filters button{background:#253030;color:#a9b6b0}html[data-theme=dark] .shop-filters button.active{background:#3b4d29;color:#d0ed98}html[data-theme=dark] .odds-scroll th{background:#25332b}html[data-theme=dark] .odds-scroll td{border-color:#303b3b}html[data-theme=dark] .odds-scroll button{color:#b3d782}
/* Match the game: centered pack title and a bright silhouette settling into the card. */
.stage-top>span{position:absolute;left:50%;top:8%;transform:translateX(-50%);width:78%;max-width:78%;text-align:center;font-size:clamp(11px,2cqw,21px)}.stage-tools{margin-left:auto}.opening-stage[data-phase=idle] .stage-top,.opening-stage[data-phase=burst] .stage-top{top:10%}.opening-stage[data-phase=tunnel] .stage-top>span,.opening-stage[data-phase=reveal] .stage-top>span,.opening-stage[data-phase=hero] .stage-top>span{opacity:0}
@keyframes card-reveal{0%{opacity:0;transform:translateY(-2%) scale(1.5);filter:brightness(12) drop-shadow(0 0 40px white)}20%{opacity:1;filter:brightness(10)}55%{opacity:1;transform:translateY(-2%) scale(1.03);filter:brightness(1.5)}100%{opacity:1;transform:translateY(-2%) scale(1);filter:brightness(1)}}
@container pack-scene (max-width:740px){.stage-top>span{font-size:11px;max-width:70%;width:70%}}
.pack-workspace{width:100%;min-width:0;box-sizing:border-box}

/* Reuse the detail card geometry and squad evolution artwork at every card size. */
.pack-workspace .player-card{background:transparent!important}
.pack-workspace .item-icon.mp-icon{display:block;width:65px;height:65px;object-fit:contain;border:0;border-radius:0;background:transparent;box-shadow:none}
.pack-workspace .history-item .item-icon.mp-icon{width:35px;height:35px}
/* Game reward flow: remaining pack → individual reward → complete overview. */
.reward-flow{position:absolute;inset:0;z-index:8;color:#fff}
.reward-flow h2{position:absolute;top:7%;left:12%;right:12%;margin:0;text-align:center;font-size:clamp(10px,2.4cqw,25px);line-height:1.35;font-weight:700;text-shadow:0 2px 8px #0007}
.opening-stage:is([data-phase=reward-step],[data-phase=reward-summary]) .stage-top>span{opacity:0}
.reward-pack{position:absolute;left:12%;top:50%;width:15%;transform:translateY(-50%);border:0;padding:0;background:transparent;cursor:pointer;filter:drop-shadow(0 8px 14px #0006)}
.reward-pack>img{display:block;width:100%;height:auto}
.reward-remaining{position:absolute;left:-20%;top:9%;display:grid;place-items:center;min-width:4cqw;min-height:3.6cqw;background:#00ef72;color:#073b20;font-size:clamp(9px,1.8cqw,19px);font-weight:800;border-radius:2px}
.reward-current{position:absolute;left:49%;top:27%;width:22%;height:46%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;padding:0;color:#fff;background:transparent;cursor:pointer;font:inherit}
.reward-current>.player-card{width:100%;flex:none}
.reward-current>.item-reward{width:100%;height:100%;padding:0;gap:1cqw;background:transparent}
.reward-flow .item-icon{width:9cqw;height:9cqw;font-size:3.5cqw;flex:none}
.pack-workspace .reward-flow .item-icon.mp-icon{width:14cqw;height:14cqw}
.reward-flow .item-reward strong{font-size:clamp(8px,1.3cqw,14px);line-height:1.3}
.reward-flow .item-reward small{font-size:clamp(8px,1.2cqw,13px);line-height:1.3;font-variant-numeric:tabular-nums}
.flow-reward-label{display:block;margin-top:1cqw;font-size:clamp(7px,1.2cqw,13px);line-height:1.4;text-align:center;overflow-wrap:anywhere;text-shadow:0 1px 5px #0008}
.reward-flow-status{position:absolute;bottom:6%;left:4%;right:31%;margin:0;font-size:clamp(8px,1.15cqw,12px);line-height:1.5;color:#b5d3c5}
.reward-flow-actions{position:absolute;bottom:5%;right:3%;display:flex;justify-content:flex-end;gap:1.5cqw;max-width:72%}
.reward-flow-actions button{min-width:17cqw;min-height:28px;border:0;border-radius:4px;padding:.7cqw 2cqw;background:#0bb8e8;color:#fff;font-size:clamp(10px,1.35cqw,15px);line-height:1.3;cursor:pointer;font-weight:600}
.reward-flow-actions .flow-replay{background:#001a1766;border:1px solid #3fd1a0;color:#94efd4}
.reward-pack:focus-visible,.reward-current:focus-visible,.reward-flow-actions button:focus-visible{outline:2px solid #d6ff69;outline-offset:3px}
.reward-summary{position:absolute;inset:20% 8% 16%;display:flex;overflow:auto;scrollbar-width:thin;scrollbar-color:#6ba785 #002e2255}
.reward-summary-grid{--reward-columns:1;display:grid;grid-template-columns:repeat(var(--reward-columns),minmax(0,1fr));width:calc(var(--reward-columns)*18cqw);max-width:100%;gap:2cqw;margin:auto;flex:none;padding:0 0 1cqw}
.flow-summary-reward{min-width:0;text-align:center}
.flow-summary-reward>.player-card{width:100%}
.flow-summary-reward>.item-reward{width:100%;padding:0;gap:.7cqw;background:transparent}
.reward-summary .item-icon,.pack-workspace .reward-summary .item-icon.mp-icon{width:11cqw;height:11cqw;max-width:100%}
.pack-results>summary{font-size:12px;font-weight:600;cursor:pointer;color:var(--pack-muted)}
.pack-results[open]>.results-heading{margin-top:15px}
.reward-arrives{animation:reward-arrives .4s ease-out both}
@keyframes reward-arrives{from{opacity:0;transform:scale(.75);filter:brightness(3)}to{opacity:1;transform:scale(1);filter:brightness(1)}}
@container pack-scene (max-width:740px){.reward-flow h2{top:6%;font-size:10px}.reward-flow-actions button{padding:5px 12px;min-width:22cqw;font-size:9px;min-height:24px}.reward-flow-status{bottom:5%;font-size:8px;right:38%}.reward-current{left:51%;width:27%}.reward-summary-grid[data-many=true]{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.reward-summary-grid{gap:2cqw}.reward-summary .item-icon,.pack-workspace .reward-summary .item-icon.mp-icon{width:11cqw;height:11cqw}.reward-summary{inset:24% 6% 23%}.flow-reward-label{font-size:7px}.reward-summary .item-reward strong,.reward-summary .item-reward small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.reward-arrives{animation:none}}
/* MP uses a real transparent PNG rather than a crop of the opaque source. */
.pack-workspace .item-icon.mp-icon{clip-path:none}
@container pack-scene (min-width:741px){.reward-summary-grid[data-many=true]{width:56cqw;gap:1.2cqw}}
.reward-pack{animation:reward-pack-shift .35s ease-out both}
.reward-summary{scrollbar-width:none}.reward-summary::-webkit-scrollbar{display:none}
@keyframes reward-pack-shift{from{opacity:0;transform:translate(26cqw,-50%)}to{opacity:1;transform:translate(0,-50%)}}
@media(prefers-reduced-motion:reduce){.reward-pack{animation:none}}

.mp-breakdown{margin-top:6px;font-size:10px;color:var(--pack-muted);line-height:1.7}.mp-breakdown summary{cursor:pointer}.mp-breakdown p{margin:5px 0}

/* Official SquadMaker square artwork and compact badge rows. */
.card-symbols[data-count="3"]{gap:7.3cqw}
.player-card[data-layout="offset"] .pack-card-name{bottom:22%;left:24.5%}
.player-card[data-layout="offset"] .card-symbols{bottom:14%;padding-left:5.5%;gap:10cqw}

/* Match the recording's current-value label below every revealed player. */
.reward-price{font-variant-numeric:tabular-nums}
.reward-price-heading{display:block;font-size:clamp(9px,1.5cqw,15px);line-height:1.4;color:#d4ece1;font-weight:500}
.reward-price-line{display:flex;align-items:center;justify-content:center;gap:.45cqw;font-size:clamp(11px,2.1cqw,22px);font-weight:600;line-height:1.5;white-space:nowrap}
.reward-price-coin{display:block;width:clamp(16px,3cqw,32px);height:clamp(16px,3cqw,32px);object-fit:contain;flex:none}
.hero-reward .reward-caption.reward-price{background:transparent;padding:0}
.reward-summary .reward-price-heading{font-size:clamp(8px,1.15cqw,12px)}
.reward-summary .reward-price-line{font-size:clamp(9px,1.4cqw,15px);gap:.15cqw}
.reward-summary .reward-price-coin{width:2.1cqw;height:2.1cqw;min-width:12px;min-height:12px}
.reward-summary-grid[data-many=true] .reward-price-line{flex-wrap:wrap;gap:0 .15cqw}
.reward-summary-grid[data-many=true] .reward-price-amount{font-size:clamp(9px,1.15cqw,13px)}
.reward-current .item-reward strong{font-size:clamp(12px,2cqw,21px)}
.reward-current .item-reward small{font-size:clamp(12px,2cqw,21px);font-weight:600}
.pack-option-copy{flex:1;min-width:0}
.pack-price{display:flex;align-items:center;gap:3px;font-size:15px;font-weight:700;line-height:1.4;font-variant-numeric:tabular-nums}
.pack-option .pack-price{margin-top:4px}
.pack-price .fv-icon{display:block;width:28px;height:26px;object-fit:contain;flex:none}
.pack-price.price-unavailable{font-size:10px;font-weight:400;color:var(--pack-muted);padding:4px 0}
.selected-pack-title{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px}
.selected-pack-title .pack-price{font-size:19px}
.selected-pack-title .pack-price.price-unavailable{font-size:11px}
.selected-pack-title .fv-icon{width:32px;height:30px}
.reward-current[data-single-item=true]{left:35%;top:25%;width:30%;height:48%}
.pack-workspace .reward-current[data-single-item=true] .item-icon.mp-icon{width:15cqw;height:15cqw}
.reward-summary .item-reward{justify-content:flex-start;aspect-ratio:auto;min-height:15cqw}
.pack-workspace .reward-summary .item-icon.mp-icon{width:10cqw;height:10cqw;max-width:100%}
.reward-summary-grid[data-items-only=true]{width:calc(var(--reward-columns)*24cqw);max-width:100%;align-items:center}
.reward-summary-grid[data-items-only=true] .item-reward{justify-content:center;min-height:20cqw;gap:1cqw}
.pack-workspace .reward-summary-grid[data-items-only=true] .item-icon.mp-icon{width:14cqw;height:14cqw}
.reward-summary-grid[data-items-only=true] .item-reward strong,.reward-summary-grid[data-items-only=true] .item-reward small{font-size:clamp(11px,1.9cqw,21px)}
@container pack-scene (min-width:741px){.reward-summary-grid[data-many=true]{width:66cqw;gap:1.5cqw}}
@media(max-width:740px){.pack-option .pack-price{font-size:13px}.selected-pack-title{gap:3px 9px}.selected-pack-title .pack-price{font-size:16px}}@container pack-scene (max-width:740px){.reward-price-heading{font-size:9px}.reward-price-line{font-size:11px}.reward-price-coin{width:17px;height:17px}.reward-summary .reward-price-heading{font-size:8px}.reward-summary .reward-price-line{font-size:9px;gap:0}.reward-summary .reward-price-coin{width:12px;height:12px}.reward-summary-grid[data-many=true] .reward-price-amount{font-size:9px}.reward-current .item-reward strong,.reward-current .item-reward small{font-size:12px}.reward-current[data-single-item=true]{left:32%;width:36%;top:24%;height:48%}.pack-workspace .reward-current[data-single-item=true] .item-icon.mp-icon{width:18cqw;height:18cqw}.reward-summary-grid[data-items-only=true]{width:calc(var(--reward-columns)*29cqw)}.pack-workspace .reward-summary-grid[data-items-only=true] .item-icon.mp-icon{width:18cqw;height:18cqw}.reward-summary-grid[data-items-only=true] .item-reward strong,.reward-summary-grid[data-items-only=true] .item-reward small{font-size:11px}}

/* Item-only openings use the same stage-relative canvas as MP rewards. */
.reward-current .item-icon{width:14cqw;height:14cqw;flex:none;font-size:5cqw}
.reward-current[data-single-item=true] .item-icon{width:15cqw;height:15cqw}
.reward-flow .item-reward small{color:#fff;text-shadow:0 1px 3px #0008}
@container pack-scene (max-width:740px){.reward-current[data-single-item=true] .item-icon{width:18cqw;height:18cqw}}

.pack-workspace .reward-flow .fimo-card-art{background:transparent!important}
.pack-workspace .reward-flow .item-reward small{color:#fff!important}

/* In mixed results currency and token icons scales with its card slot, as in the game. */
.reward-summary-grid[data-items-only=false] .item-reward{position:relative;display:block;aspect-ratio:1;min-height:0;padding:0;overflow:visible}
.pack-workspace .reward-summary-grid[data-items-only=false] .item-icon{position:absolute;top:8%;left:17.5%;width:65%;height:65%;aspect-ratio:1;max-width:none}
.reward-summary-grid[data-items-only=false] .item-reward strong{position:absolute;top:87%;left:0;width:100%;font-size:clamp(9px,1.4cqw,16px);line-height:1.25;font-weight:400}
.reward-summary-grid[data-items-only=false] .item-reward small{position:absolute;top:103%;left:0;width:100%;font-size:clamp(9px,1.4cqw,16px);line-height:1.25;font-weight:600;white-space:nowrap}
@container pack-scene (max-width:740px){.reward-summary-grid[data-items-only=false] .item-reward strong,.reward-summary-grid[data-items-only=false] .item-reward small{font-size:9px}}

/* Keep the cinematic badges clean and legible over the original video effects. */
.reveal-hint{width:28%;height:38%}
.reveal-hint img{width:85%;height:85%;filter:none}
/* Fullscreen letterboxes and uniformly scales the embedded 16:9 scene. */
.stage-frame{width:100%}
.stage-frame:fullscreen{width:100vw;height:100dvh;background:#000;display:grid;place-items:center;overflow:hidden}
.stage-frame:fullscreen .opening-stage{width:var(--stage-width);height:var(--stage-height);aspect-ratio:16/9;transform:scale(var(--stage-scale,1));transform-origin:center;flex:none}
.opening-stage:not([data-phase=reward-summary]){cursor:pointer}

.history-reward-price .reward-price-heading{display:none}
.history-reward-price .reward-price-line{font-size:9px;justify-content:center;gap:2px;flex-wrap:wrap}
.history-reward-price .reward-price-coin{width:12px;height:12px}
.history-reward-price .reward-price-amount{font-size:9px;overflow-wrap:anywhere}

/* The cinematic reveal uses the recording's subtle full-width Next strip. */
.opening-stage[data-phase=hero] .stage-bottom{left:0;right:0;bottom:3.7%;height:5.1%;display:block;gap:0}
.opening-stage[data-phase=hero] #stage-status{display:none}
.opening-stage[data-phase=hero] #show-results{width:100%;height:100%;min-height:0;padding:0;border:0;border-radius:0;background:linear-gradient(90deg,transparent,#000b 32%,#000b 68%,transparent);box-shadow:none;color:#eee;font-size:1.8cqw;font-weight:400;line-height:1;letter-spacing:0}
.opening-stage[data-phase=hero] #show-results:hover{background:linear-gradient(90deg,transparent,#000d 32%,#000d 68%,transparent)}

.pack-quantity-controls{display:flex;align-items:center;gap:8px;padding:0 0 16px;font-size:12px}
.pack-quantity-controls input{width:64px;padding:7px;border:1px solid var(--pack-border);border-radius:4px;background:transparent;color:inherit;font:inherit}
#pack-quantity-cost{margin-left:auto;font-weight:600}
.history-actions{display:flex;align-items:center;gap:10px}
.history-actions button{border:1px solid var(--pack-border);border-radius:4px;padding:5px 9px;font-size:11px;background:transparent;color:inherit;cursor:pointer}
.history-actions button:disabled{opacity:.4;cursor:default}
.history-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px 0 5px}
.history-totals span{display:block;font-size:11px;color:var(--pack-muted);margin-bottom:5px}
.history-totals strong{display:block;font-size:14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.history-value-note{margin:8px 0 0;font-size:10px;line-height:1.7;color:var(--pack-muted)}
@media(max-width:740px){.history-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.history-actions{gap:5px}.history-actions button{padding:5px}.history-totals strong{font-size:13px}}

/* One desktop canvas is scaled as a whole on every device. */
.stage-frame{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:9px}
/* Before JS measures the scene, use the frame size instead of cropping a 1024px canvas. */
.stage-frame .opening-stage,.stage-frame:fullscreen .opening-stage{position:absolute;left:50%;top:50%;width:100%;height:100%;aspect-ratio:16/9;container-name:pack-scene;transform:translate(-50%,-50%);transform-origin:center;border-radius:0}
.stage-frame.stage-fitted .opening-stage{width:1024px;height:576px;transform:translate(-50%,-50%) scale(var(--stage-scale,1))}
.choose-pack{display:none}.pack-shop-dialog{padding:0;border:0;background:transparent;color:inherit;width:min(560px,calc(100% - 24px));max-height:85dvh;border-radius:10px}.pack-shop-dialog::backdrop{background:#0009}.pack-shop-dialog .pack-shop{width:100%}.pack-shop-dialog .pack-list{display:block;max-height:58dvh;overflow:auto;padding:0 12px 12px}.pack-shop-dialog .pack-option{width:100%;min-width:0;gap:12px;padding:14px 10px}.pack-shop-dialog .pack-option strong{font-size:14px;line-height:1.6}.pack-shop-dialog .pack-option small{font-size:11px}.pack-shop-dialog .pack-option img{width:38px;height:56px}.pack-shop-dialog .pack-option .pack-price{font-size:17px}.pack-shop-dialog .shop-filters button{min-height:44px;font-size:13px}.pack-shop-dialog input{font-size:16px;min-height:28px}.pack-shop-dialog .shop-heading{padding:14px;align-items:center}.pack-shop-dialog .shop-heading h2{font-size:19px}#close-pack-shop{display:none;border:0;background:transparent;color:inherit;font-size:28px;width:44px;height:44px;cursor:pointer}.pack-shop-dialog #close-pack-shop{display:block;margin-left:auto}.pack-shop-dialog #pack-count{margin-left:8px}.pack-guide{font-size:12px;color:var(--pack-muted);padding:16px 0}.pack-guide summary{cursor:pointer}.pack-guide .pack-disclaimer{margin-top:12px}
@media(max-width:740px){#desktop-shop-host{display:none}.choose-pack{display:flex;align-items:center;gap:10px;min-height:48px;width:100%;text-align:left;padding:12px;border:1px solid var(--pack-border);border-radius:6px;background:transparent;color:inherit;font-size:12px}.choose-pack span{flex:1;line-height:1.5;font-weight:700}.pack-quantity-controls{flex-wrap:wrap}.pack-quantity-controls input{min-height:44px;box-sizing:border-box;font-size:16px}.history-actions button,.selected-pack-info button,.results-heading button{min-height:44px}.history-heading{flex-wrap:wrap;gap:10px}.history-actions{flex-wrap:wrap}}

/* Token rewards share the MP slot proportions in the complete overview. */
.reward-summary-grid[data-items-only=false] .item-icon:not(.mp-icon){display:grid;place-items:center;font-size:3cqw;box-sizing:border-box}
.pack-workspace .reward-summary-grid[data-items-only=true] .item-icon{width:14cqw;height:14cqw;flex:none;font-size:5cqw}
.history-pending{display:flex;align-items:center;gap:9px;margin:14px 0;color:var(--pack-muted);font-size:12px}.history-pending>span{display:grid;place-items:center;width:38px;height:44px;border:1px solid var(--pack-border);border-radius:4px;font-size:25px;color:inherit}.history-pending[hidden]{display:none}

/* Start long reward lists at the first row inside the expanded scroll area. */
.reward-summary{inset:14% 5% 12%;display:block;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
.reward-summary-grid{margin:0 auto;min-height:100%;align-content:safe center;box-sizing:border-box}
@container pack-scene (min-width:741px){.reward-summary-grid[data-many=true]{width:76cqw;gap:1.5cqw}}
.reward-summary .reward-price-line,.reward-summary-grid[data-many=true] .reward-price-line{flex-wrap:nowrap;gap:.2cqw;font-size:1cqw}
.reward-summary .reward-price-amount,.reward-summary-grid[data-many=true] .reward-price-amount{font-size:1cqw;white-space:nowrap}
.reward-summary .reward-price-coin{width:1.6cqw;height:1.6cqw;min-width:0;min-height:0}
.reward-summary .flow-reward-label{margin-top:.4cqw}
.history-return{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 12px;padding:12px 0;border-bottom:1px solid var(--pack-border);font-size:12px;color:var(--pack-muted)}.history-return strong{font-size:18px;color:inherit;font-variant-numeric:tabular-nums}.history-return small{font-size:11px;margin-left:auto}

.reward-summary::-webkit-scrollbar{display:block;width:5px}.reward-summary::-webkit-scrollbar-thumb{background:#81b6a2;border-radius:4px}.reward-summary::-webkit-scrollbar-track{background:#002e2233}

/* Loading is confined to the scaled pack-opening scene, including fullscreen. */
.pack-loading{position:absolute;inset:0;z-index:50;background:rgba(0,0,0,.72);line-height:0;overflow:hidden}
.pack-loading[hidden]{display:none}
.pack-loading-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;width:10%;height:auto;aspect-ratio:1;object-fit:contain}

/* Keep the World’s Game movie proportions and crop to the 16:9 scene. */
.stage-video[src*="packopening_TWG26_"],.stage-video[data-source*="packopening_TWG26_"]{object-fit:cover;object-position:center}

/* Currency reveals use a compact stack, with enough room for the full amount. */
.reward-current[data-kind=item]{left:44%;top:24%;width:34%;height:50%}
.reward-current[data-kind=item][data-single-item=true]{left:33%;width:34%}
.reward-current[data-kind=item]>.item-reward{height:auto;aspect-ratio:auto;gap:.45cqw;justify-content:center}
.pack-workspace .reward-current[data-kind=item] .item-icon{width:16cqw;height:16cqw;margin:0 0 1cqw;flex:none}
.reward-current[data-kind=item] .item-reward strong{margin:0;padding:0;font-size:1.8cqw;font-weight:500;line-height:1.2}
.reward-current[data-kind=item] .item-reward small{display:block;margin:0;padding:0;font-size:2.2cqw;font-weight:700;line-height:1.2;white-space:nowrap}

/* Keep the reward centered, with the unopened pack as a larger left anchor. */
.reward-pack{left:11%;width:18%;top:50%}
.reward-current{left:39%;top:27%;width:22%;height:46%}
.reward-current[data-kind=item],.reward-current[data-kind=item][data-single-item=true]{left:33%;top:24%;width:34%;height:50%}
.pack-workspace .reward-current[data-kind=item] .item-icon{width:14cqw;height:14cqw}

/* Currency icon top aligns with the supplied reference at 31.5% of the scene. */
.reward-current[data-kind=item]>.item-reward{position:absolute;top:0;left:0;width:100%;height:auto;transform:none;justify-content:flex-start}

.reward-current[data-kind=item],.reward-current[data-kind=item][data-single-item=true]{top:31.5%;left:31%}

/* Player reveals keep the same card size as the cinematic player reveal. */
.reward-current[data-kind=player]{left:40.5%;width:19%}

/* Positive video layers avoid disappearing behind the scene in iOS Safari. */
.stage-background{z-index:0}
.stage-video{z-index:1}
.pack-idle{z-index:2}
.reveal-hint{z-index:3}
.stage-bottom{z-index:10}
/* iPhone fallback preserves the complete 16:9 canvas and its controls. */
html.pack-fullscreen{overflow:hidden}
.stage-frame.is-fullscreen{position:fixed;inset:0;width:100vw;height:100dvh;height:100svh;aspect-ratio:auto;border-radius:0;background:#000;z-index:100000;overflow:hidden}
@supports(height:100dvh){.stage-frame.is-fullscreen{height:100dvh}}
/* One MP size for the reveal and the final reward overview. */
.reward-flow{--mp-icon-size:10cqw;--mp-text-size:1.4cqw}
.reward-flow[data-items-only=true]{--mp-icon-size:14cqw;--mp-text-size:1.9cqw}
.pack-workspace .reward-flow .mp-reward .mp-icon{width:var(--mp-icon-size);height:var(--mp-icon-size);max-width:none}
.reward-flow :is(.reward-current[data-kind=item],.reward-summary-grid[data-items-only]) .mp-reward :is(strong,small){font-size:var(--mp-text-size);line-height:1.25;white-space:nowrap}
.pack-workspace .reward-summary-grid[data-items-only=false] .mp-reward .mp-icon{left:50%;transform:translateX(-50%)}
.opening-stage .reward-flow{transition:opacity .18s ease}
.opening-stage.returning-to-pack .reward-flow{opacity:0;pointer-events:none}
.opening-stage.pack-returned .pack-idle{animation:pack-return .3s ease-out both}
@keyframes pack-return{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.opening-stage .reward-flow{transition:none}.opening-stage.pack-returned .pack-idle{animation:none}}

/* Composite the single cinematic separately from card/particle repaints. */
.stage-video{transform:translateZ(0);backface-visibility:hidden}
.stage-video:not(.visible){visibility:hidden}
.opening-stage.mobile-playback .hero-reward .player-card,
.opening-stage.mobile-playback .hero-reward .item-reward{filter:none;animation-name:mobile-card-reveal}
@keyframes mobile-card-reveal{0%{opacity:0;transform:translateY(-2%) scale(1.5)}20%{opacity:1}55%{transform:translateY(-2%) scale(1.03)}100%{opacity:1;transform:translateY(-2%) scale(1)}}

/* Show the supplied logo from the first paint until catalog/media preparation finishes. */
.opening-stage.initial-loading .pack-idle,
.opening-stage.initial-loading .stage-top,
.opening-stage.initial-loading .stage-bottom{visibility:hidden}

/* Hide only the scene title once opening begins; retain the pack behind the loader. */
.opening-stage[data-phase=loading] .stage-top>span,
.opening-stage[data-phase=burst] .stage-top>span{visibility:hidden}

/* Official event sections and original screenshot artwork. */
.pack-category-title{position:sticky;top:0;z-index:1;margin:0;padding:12px 8px;font-size:13px;font-weight:800;background:#f5f2fa;color:#67488c;border-bottom:1px solid var(--pack-border)}
.pack-category+.pack-category{margin-top:12px}.shop-art{display:inline-block;flex:none;background-repeat:no-repeat;vertical-align:middle}.pack-option>.shop-art.pack-thumbnail{width:64px;height:auto;border-radius:5px}.pack-option>.shop-art.pack-thumbnail[aria-label=방망이],.pack-option>.shop-art.pack-thumbnail[aria-label=보름달]{width:44px;margin:0 10px;border-radius:50%}.pack-price .currency-icon{width:22px;height:22px;border-radius:50%}.item-reward .shop-art.item-icon{width:84px;height:auto;border-radius:50%}.pack-shop-dialog .pack-option>.shop-art.pack-thumbnail{width:72px}.pack-shop-dialog .pack-price .fv-icon{width:28px;height:26px}.pack-shop-dialog .pack-price .currency-icon{width:24px;height:24px}html[data-theme=dark] .pack-category-title{background:#2b2436;color:#d8b8fb}
.event-history-totals{margin-top:16px;padding:14px;border:1px solid var(--pack-border);border-radius:8px}.event-history-totals>strong{font-size:13px;color:#9367bb}.event-history-totals .history-totals{margin-top:10px}.event-history-totals .history-return{margin-bottom:0}
.shop-categories{padding-bottom:0}.shop-categories button:last-child{flex:2}.shop-categories button.active{background:#eee4f8;color:#70469a}html[data-theme=dark] .shop-categories button.active{background:#453253;color:#e2c4fc}
.shop-filters[hidden]{display:none}
.pack-price img.currency-icon{object-fit:contain;border-radius:0}.pack-shop-dialog .pack-option .pack-price img.currency-icon{width:24px;height:24px}

.choose-bat-pack{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px;border:1px solid var(--pack-border);border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer}.choose-bat-pack img{width:24px;height:24px;object-fit:contain}.choose-bat-pack span{flex:1;line-height:1.5;font-weight:700}.choose-bat-pack:focus-visible{outline:2px solid currentColor;outline-offset:3px}.choose-bat-pack:disabled{opacity:.5;cursor:default}@media(max-width:740px){.pack-heading{flex-wrap:wrap;gap:14px}.choose-bat-pack{width:100%;text-align:left}}

/* Mobile effects use opacity/transform without animated filters over the movie. */
.opening-stage.mobile-playback .pack-aura{filter:none}
.opening-stage.mobile-playback[data-phase=burst] .opening-pack{animation:mobile-pack-burst 1.55s ease-out both;filter:none}
.opening-stage.mobile-playback .opening-flash.flash{animation-name:mobile-opening-glow}
@keyframes mobile-pack-burst{0%{opacity:1;transform:scale(1)}35%{transform:scale(.9)}65%{transform:scale(1.08)}100%{opacity:0;transform:scale(1.25)}}
@keyframes mobile-opening-glow{0%{opacity:0}25%{opacity:.55}100%{opacity:0}}
/* Reduced motion retains visible, gentle effects for a requested opening. */
.opening-stage[data-effects=gentle] .opening-flash{display:block}
.opening-stage[data-effects=gentle] .opening-flash.flash{animation:gentle-opening-glow .85s ease-out both}
.opening-stage[data-effects=gentle][data-phase=burst] .opening-pack{animation:gentle-pack-burst 1.55s ease-out both;filter:none}
.opening-stage[data-effects=gentle][data-phase=burst] .pack-shockwave{display:block;width:36%;box-shadow:none;animation:gentle-shockwave 1.5s ease-out both}
.opening-stage[data-effects=gentle] .hero-reward.visible :is(.player-card,.item-reward){animation:gentle-card-reveal .65s ease-out both;filter:none}
.opening-stage[data-effects=gentle] .reveal-hint :is(img,.hint-position){animation:gentle-opening-hint .3s ease-out both;filter:none}
@keyframes gentle-pack-burst{0%,40%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}
@keyframes gentle-shockwave{0%{opacity:0;transform:translate(-50%,-50%) scale(1)}40%{opacity:.55}100%{opacity:0;transform:translate(-50%,-50%) scale(1.06)}}
@keyframes gentle-opening-glow{0%{opacity:0}35%{opacity:.28}100%{opacity:0}}
@keyframes gentle-card-reveal{from{opacity:0;transform:translateY(-2%)}to{opacity:1;transform:translateY(-2%)}}
@keyframes gentle-opening-hint{from{opacity:0}to{opacity:1}}
.selected-pack-actions{display:flex;gap:6px;flex-shrink:0}
.history-best{padding-top:14px}.history-subtitle{margin:0;font-size:13px;color:var(--pack-muted)}.history-best .history-list{padding-top:8px}#history-recent-title{margin-top:12px}#history-recent-title:not([hidden])+.history-list{padding-top:8px}

/* Event simulators live beside the existing event pack shortcut. */
.pack-simulator-links{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.trapping-simulator-link{display:flex;gap:9px;align-items:center;min-height:42px;padding:5px 12px 5px 5px;box-sizing:border-box;border:1px solid #e7d9e1;border-radius:6px;background:#fff8fc;color:#871450;text-decoration:none;font-size:12px;font-weight:700}.trapping-simulator-link img{width:50px;height:31px;object-fit:cover;border-radius:3px;filter:brightness(1.8)}.trapping-simulator-link .bi{font-size:10px}.trapping-simulator-link:hover{background:#fceaf5;border-color:#d65a9d}@media(max-width:740px){.pack-heading{flex-wrap:wrap;gap:10px}.pack-simulator-links{width:100%;justify-content:flex-start;gap:8px}.pack-simulator-links>a,.pack-simulator-links>.choose-bat-pack{flex:1;justify-content:center;white-space:nowrap;font-size:10px}.trapping-simulator-link{padding:5px 7px;gap:5px}.trapping-simulator-link img{width:34px;height:29px}.pack-simulator-links .choose-bat-pack{padding:6px;gap:5px}.pack-simulator-links .choose-bat-pack img{width:24px;height:24px}}
html[data-theme=dark] .trapping-simulator-link{background:#35202e;border-color:#674456;color:#f7b2da}

/* Visible category tabs share the full row, including when events are hidden. */
.shop-categories{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.shop-categories button,.shop-categories button:last-child{flex:none;min-width:0;padding:8px 2px;line-height:1.3;word-break:keep-all;overflow-wrap:anywhere}
