
#dialog.pack-purchase-dialog {
 width:min(460px,calc(100vw - 16px));max-width:none;max-height:calc(100dvh - 24px);
 padding:0;border:1px solid var(--tc-line-strong);border-radius:10px;
 background:var(--tc-surface);color:var(--tc-text);box-shadow:0 18px 60px #0008;overflow:hidden;
 font-family:Ntreev,system-ui,sans-serif;
}
#dialog.pack-purchase-dialog::backdrop{background:#000a}
#dialog.pack-purchase-dialog #dialog-inner{display:flex;flex-direction:column;max-height:calc(100dvh - 26px)}
#dialog.pack-purchase-dialog .dialog-header {
 flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;
 min-height:58px;padding:10px 14px;background:var(--tc-raised);border-bottom:1px solid var(--tc-line);
}
#dialog.pack-purchase-dialog .dialog-header h2{margin:0;font:18px Ntreev,system-ui,sans-serif;color:var(--tc-text)}
#dialog.pack-purchase-dialog .dialog-header button {
 width:38px;min-height:38px;padding:0;border:1px solid var(--tc-line);border-radius:6px;
 background:var(--tc-surface);color:var(--tc-text);font-size:24px;
}
#dialog.pack-purchase-dialog .dialog-body{min-height:0;overflow:auto;padding:18px}
.pack-purchase-product{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:18px;padding-bottom:18px}
.pack-purchase-product .foil{display:block;width:88px;height:124px;object-fit:contain;filter:drop-shadow(0 5px 7px #0004)}
.pack-purchase-product small{color:var(--tc-muted);font-size:12px}
.pack-purchase-product h3{margin:5px 0 9px;font:19px/1.4 Ntreev,system-ui,sans-serif;color:var(--tc-text);overflow-wrap:anywhere}
.pack-purchase-product p{margin:0;font-size:16px;color:var(--tc-accent-text)}
.pack-purchase-prices{display:grid;gap:12px;margin:0;padding:16px;border:1px solid var(--tc-line);border-radius:6px;background:var(--tc-page)}
.pack-purchase-prices>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0;font-size:13px}
.pack-purchase-prices dt{color:var(--tc-muted)}
.pack-purchase-prices dd{margin:0;color:var(--tc-text);white-space:nowrap;font-variant-numeric:tabular-nums}
.pack-purchase-prices .pack-purchase-total{padding-bottom:12px;border-bottom:1px solid var(--tc-line)}
.pack-purchase-prices .pack-purchase-total dt{color:var(--tc-text)}
.pack-purchase-prices .pack-purchase-total dd{font-size:21px;color:var(--tc-accent-text)}
.pack-purchase-note{margin:12px 0 0;font-size:12px;color:var(--tc-muted)}
#dialog.pack-purchase-dialog .dialog-footer {
 flex:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;
 padding:12px 18px;background:var(--tc-raised);border-top:1px solid var(--tc-line);
}
#dialog.pack-purchase-dialog .dialog-footer button {
 min-width:0;min-height:44px;padding:8px;border:1px solid var(--tc-line);border-radius:6px;
 background:var(--tc-surface);color:var(--tc-text);font:14px Ntreev,system-ui,sans-serif;
}
#dialog.pack-purchase-dialog .dialog-footer .primary{background:var(--tc-accent);color:#fff;border-color:var(--tc-accent)}
#dialog.pack-purchase-dialog button:focus-visible{outline:2px solid var(--tc-accent-text);outline-offset:2px}
@media(max-width:400px){
 #dialog.pack-purchase-dialog .dialog-body{padding:14px}
 #dialog.pack-purchase-dialog .dialog-footer{padding:12px 14px}
 .pack-purchase-product{grid-template-columns:74px minmax(0,1fr);gap:12px}
 .pack-purchase-product .foil{width:74px;height:106px}
 .pack-purchase-product h3{font-size:17px}
 .pack-purchase-prices{padding:12px}
 .pack-purchase-prices .pack-purchase-total dd{font-size:19px}
}
.shop-tabs{display:flex;gap:2px}
.shop-tabs button{white-space:nowrap}
.shop-workspace.pack-counter{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:8px;align-items:stretch;height:auto;min-height:0}
.pack-counter>section,.shop-coming{min-width:0;border:1px solid #495963;background:#26343e;color:#eaf3f8}
.pack-counter h3{margin:0;padding:8px 10px;font-size:14px;background:linear-gradient(#425766,#293946);border-bottom:1px solid #506375;color:white}
.shop-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:5px}
.shop-shelf button{display:flex;align-items:center;text-align:left;gap:8px;padding:9px 6px;min-width:0;border:1px solid #657682;border-radius:2px;background:linear-gradient(130deg,#32424d,#1e2c36);color:#f3f6f8}
.shop-shelf button[aria-pressed=true]{background:linear-gradient(135deg,#2b475d,#142e41);border-color:#f0c577;box-shadow:inset 0 0 0 1px #eac280}
.shop-shelf .foil{width:40%;height:96px;object-fit:contain}
.shop-shelf b,.shop-shelf small{display:block}.shop-shelf small{margin-top:6px;color:#f4cc7d}
.shop-product-detail{display:flex;flex-direction:column;text-align:center}
.shop-display,.opening-stage{display:grid;place-items:center;min-height:230px;height:clamp(230px,41vh,400px);position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at center,#3a5668,#172832 75%)}
.shop-display .foil{width:62%;height:82%;object-fit:contain;min-height:0;filter:drop-shadow(0 7px 6px #061018aa)}
.shop-order{padding:8px}.shop-order h2,.shop-coming h2{font-size:17px;margin:3px}.shop-order p{margin:6px;font-size:13px}
.shop-buttons{display:flex;gap:6px;justify-content:center;align-items:center;flex-wrap:wrap;padding:5px}
.shop-buttons button,.shop-buttons select{min-height:34px}
.shop-coming{padding:2rem;text-align:center}.shop-summary{min-height:180px;text-align:left}.shop-summary ol{margin:0;padding:12px 12px 12px 38px}.shop-summary li{padding:7px;border-bottom:1px solid #53636f}.shop-summary li span{float:right;font-size:12px}
.stage-scenery,.opening-foil{position:absolute;inset:0;display:grid;place-items:center}
.stage-scenery{background:var(--stage) center/cover;z-index:-1}
.opening-foil{animation:foil-lift .52s ease-in both;pointer-events:none}.opening-foil .foil{width:50%;height:75%;object-fit:contain}
.opening-stage{--prize-reveal-duration:.7s;--prize-reveal-delay:.34s}
.opening-stage.fx-elite{--prize-reveal-duration:1.1s;--prize-reveal-delay:.35s}
.opening-stage.fx-legend{--prize-reveal-duration:1.2s;--prize-reveal-delay:.6s}
.prize-face{position:relative;display:grid;place-items:center;animation:pack-turn var(--prize-reveal-duration) var(--prize-reveal-delay) both}
.prize-face>.card{zoom:.67}.prize-caption{margin:8px;font-size:15px}.prize-caption small{color:#f0c982}
.fx-rare .stage-scenery{animation:sweep 1.2s ease-out}.fx-elite .prize-face{animation:gold-rise var(--prize-reveal-duration) var(--prize-reveal-delay) both}.fx-legend .stage-scenery{animation:aurora 1.65s ease-out}.fx-legend .prize-face{animation:pack-turn var(--prize-reveal-duration) var(--prize-reveal-delay) both}
.shop-block-prize{
 box-sizing:border-box;width:min(254px,72vw);padding:0 14px 12px;background:linear-gradient(135deg,#34314f,#161b29 80%);
 border:1px solid #bfa3d7;border-radius:4px;color:#f4f2fa;box-shadow:0 7px 18px #09101ca6;text-align:left;
}
.shop-block-prize header{display:flex;align-items:center;justify-content:space-between;padding:8px 0 6px;border-bottom:1px solid #ffffff30}
.shop-block-prize header strong{font:600 14px/1.15 Ntreev,system-ui}
.shop-block-prize .block-rank{display:grid;place-items:center;width:29px;height:29px;font:700 22px/1 Ntreev,system-ui;color:#ffe1ab;background:#38333b;border:1px solid #9c8360;border-radius:3px}
.shop-piece{display:grid;place-items:center;height:108px}
.shop-piece .skill-shape{--cell:26px;grid-template-columns:repeat(var(--cols),var(--cell));grid-template-rows:repeat(var(--rows),var(--cell));gap:1px}
.block-bonuses{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 8px;list-style:none;margin:0;padding:8px 0 0;border-top:1px solid #ffffff30}
.block-bonuses li,.shop-summary em{font-style:normal;white-space:nowrap}.block-bonuses li{font:14px/1.25 Ntreev,system-ui;color:#fff}
@keyframes foil-lift{0%,25%{opacity:1}100%{opacity:0;transform:translateY(-48%) rotate(-8deg)}}
@keyframes pack-turn{from{opacity:0;transform:perspective(600px) rotateY(84deg) scale(.8)}to{opacity:1;transform:none}}
@keyframes sweep{from{transform:scale(1.25) translateX(-6%)}to{transform:none}}
@keyframes gold-rise{from{opacity:0;transform:translateY(35%) scale(.72)}to{opacity:1;transform:none}}
@keyframes aurora{0%{transform:scale(1.45);filter:brightness(.5)}65%{filter:brightness(1.35)}100%{transform:none}}
.light .pack-counter>section,.light .shop-coming{background:#e8edf0;color:#213746}
.light .shop-shelf button{background:linear-gradient(#fff,#d5dfe6);color:#19324a}.light .shop-shelf button[aria-pressed=true]{background:#f6ead1;border-color:#9a691e}.light .shop-shelf small,.light .prize-caption small{color:#785012}
@media(max-width:760px){.shop-workspace.pack-counter{grid-template-columns:minmax(0,1fr);gap:5px}.shop-tabs button{flex:1;min-width:0;padding-inline:3px;font-size:12px}.shop-shelf button{padding:3px 5px;font-size:12px}.shop-shelf .foil{width:35px;height:49px}.shop-shelf small{margin-top:2px}.shop-display,.opening-stage{height:clamp(200px,37dvh,306px);min-height:192px}.prize-face>.card{zoom:.56}.shop-buttons{padding:3px}.shop-product-detail h3{padding:5px 8px}.shop-shelf{gap:3px}}
@media(prefers-reduced-motion:reduce){.opening-stage *{animation:none!important}.opening-foil{display:none}}

.shop-buttons select{width:auto;min-width:76px;max-width:110px}

@media(min-width:761px){
 .shop-workspace.pack-counter{grid-template-columns:minmax(290px,.8fr) minmax(340px,1.2fr)}
 .shop-shelf{grid-template-columns:1fr}
 .shop-shelf .foil{height:clamp(62px,10.5vh,98px);width:68px}
 .shop-shelf button{padding:6px 14px;gap:16px}
}

.shop-club-picker{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}

.shop-order .shop-buttons{align-items:center}
.shop-order .shop-buttons :is(select,button){box-sizing:border-box;height:36px;min-height:36px;margin:0;align-self:center;line-height:1.2}
.shop-order .shop-club-picker{display:inline-flex;align-items:center;align-self:center;margin:0;line-height:1.2;min-height:36px}
.shop-block-prize header small{font:11px/1.2 Ntreev,system-ui;color:#cbc9dc}

#dialog.pack-opening-dialog{width:min(960px,calc(100vw - 16px));height:min(760px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);padding:0;overflow:hidden}
.pack-opening-dialog #dialog-inner{display:flex;flex-direction:column;height:100%;min-height:0}
.pack-opening-dialog .dialog-body{flex:1;min-height:0;display:flex;flex-direction:column;padding:6px;overflow:auto}
.pack-opening-dialog .opening-stage{flex:1;min-height:0;height:auto;width:100%}
.pack-opening-dialog .prize-face{height:100%;display:flex;align-items:center;justify-content:center}
.pack-opening-dialog .prize-face>.card{width:286px;height:450px;flex-shrink:0;transform:scale(var(--pack-scale,1));transform-origin:center}
.pack-opening-dialog .dialog-footer{flex-shrink:0;justify-content:center;gap:8px}
.pack-opening-dialog .prize-caption{flex-shrink:0}
.pack-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:10px;margin:auto;width:100%}
.pack-summary-card{min-width:0;text-align:center;animation:pack-summary-show .18s ease-out both;animation-delay:var(--delay)}
.pack-summary-card>div{width:118px;height:154px;margin:auto;position:relative}
.pack-summary-card small{display:block;font-size:11px;margin:5px 0}
.pack-summary-card .shop-block-prize{width:118px;height:154px;padding:5px}
.pack-summary-card .shop-block-prize header{display:block}.pack-summary-card .shop-block-prize header strong{font-size:10px}
.pack-summary-card .shop-piece{height:57px}.pack-summary-card .block-bonuses{font-size:9px}
@keyframes pack-summary-show{from{opacity:0;transform:translateY(8px) scale(.9)}to{opacity:1;transform:none}}
@media(max-width:690px){.pack-summary-grid{gap:5px;padding:3px}.pack-summary-card>div{width:59px;height:77px}.pack-summary-card .roster-card{transform:scale(.5);transform-origin:top left}.pack-summary-card .shop-block-prize{transform:scale(.5);transform-origin:top left}.pack-summary-card small{display:none}}

.pack-opening-dialog .prize-face>.card{zoom:1}
.pack-opening-dialog .prize-face>.shop-block-prize{width:286px;height:420px}
@media(max-width:690px){.pack-summary-grid{gap:4px}.pack-summary-card>div{width:64px;height:84px}.pack-summary-card .roster-card,.pack-summary-card .shop-block-prize{transform:scale(.542)}}
@media(max-width:360px){.pack-summary-card>div{width:52px;height:68px}.pack-summary-card .roster-card,.pack-summary-card .shop-block-prize{transform:scale(.44)}}

.pack-summary-card:has(.shop-block-prize)>small{display:none}
.pack-summary-card .shop-block-prize{display:flex;flex-direction:column;gap:3px;overflow:hidden}
.pack-summary-card .shop-block-prize header{padding:2px 0;border:0;min-height:43px}
.pack-summary-card .shop-block-prize header strong{font-size:10px;line-height:1.1}
.pack-summary-card .shop-block-prize header small{display:block;font-size:8px}
.pack-summary-card .shop-block-prize .block-rank{position:absolute;right:6px;top:27px;width:20px;height:20px;font-size:16px}
.pack-summary-card .shop-piece{flex:1;min-height:0;display:grid;place-items:center}
.pack-summary-card .shop-piece .skill-shape{--cell:14px}
.pack-summary-card .block-bonuses{margin:0;padding:0;list-style:none;font-size:9px;line-height:1.1;flex-shrink:0}

.pack-opening-dialog .prize-face>.shop-block-prize{display:flex;flex-direction:column}
.pack-opening-dialog .prize-face>.shop-block-prize .shop-piece{flex:1;display:grid;place-items:center}
.pack-opening-dialog .prize-face>.shop-block-prize .block-bonuses{flex-shrink:0}

/* One pass across the name only after the card has appeared. */
:is(.opening-stage,.fusion-reveal) .nameplate,.pack-summary-card .roster-name,
:is(.opening-stage,.pack-summary-card) .shop-block-prize header{position:relative;overflow:hidden;isolation:isolate}
:is(.opening-stage,.fusion-reveal) .nameplate:after,.pack-summary-card .roster-name:after,
:is(.opening-stage,.pack-summary-card) .shop-block-prize header:after{
 content:'';position:absolute;inset:0 auto 0 -35%;width:35%;pointer-events:none;z-index:12;
 background:linear-gradient(110deg,transparent 0%,#ffffffb8 45%,#fff9d8a0 55%,transparent 100%);
 transform:translateX(0);animation:card-name-shine .7s 1.9s ease-out both;
}
:is(.opening-stage) :is(.nameplate,.shop-block-prize header):after{animation-delay:calc(var(--prize-reveal-delay) + var(--prize-reveal-duration))}
.pack-summary-card .roster-name:after,.pack-summary-card .shop-block-prize header:after{animation-delay:calc(var(--delay) + .18s)}
@keyframes card-name-shine{0%{transform:translateX(0);opacity:0}1%{opacity:1}99%{opacity:1}100%{transform:translateX(386%);opacity:0}}
@media(prefers-reduced-motion:reduce){:is(.opening-stage,.fusion-reveal) .nameplate:after,.pack-summary-card .roster-name:after,:is(.opening-stage,.pack-summary-card) .shop-block-prize header:after{animation:none;opacity:0}}

/* A separate top strip tears away before the sleeve slides down. */
.opening-foil{animation:foil-sleeve .78s ease-in both;z-index:2}
.opening-foil>.foil{clip-path:polygon(0 14%,100% 14%,100% 100%,0 100%)}
.foil-top{position:absolute;inset:0;display:grid;place-items:center;animation:foil-tear .38s ease-out both}
.foil-top .foil{clip-path:polygon(0 0,100% 0,100% 14%,0 14%)}
@keyframes foil-sleeve{0%,40%{opacity:1;transform:none}100%{opacity:0;transform:translateY(88%)}}
@keyframes foil-tear{0%,20%{transform:none}100%{transform:translate(24%,-11%) rotate(12deg);opacity:0}}

/* Opening results must be readable cards, rather than five miniature columns on phones. */
#dialog.pack-opening-dialog:has(.pack-summary-grid){height:auto}
.pack-opening-dialog:has(.pack-summary-grid) #dialog-inner{height:auto;max-height:calc(100dvh - 24px)}
.pack-opening-dialog:has(.pack-summary-grid) .dialog-body{flex:0 1 auto;max-height:calc(100dvh - 150px);padding:16px;overflow:auto}
.pack-summary-grid{--roster-card-width:118px;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 12px;width:min(100%,760px);margin:0 auto;padding:0;align-content:start;align-items:start}
.pack-summary-card>.pack-summary-art{width:100%;height:auto;max-width:118px;aspect-ratio:118/154;margin:0 auto}
.pack-summary-card .mini-card{width:100%!important;max-width:118px}
.pack-summary-card .roster-card{width:118px;height:154px;transform:scale(var(--card-scale,1));transform-origin:top left}
.pack-summary-card .roster-name{position:relative;z-index:9}
.pack-summary-card small{font-size:11px;line-height:16px}
.pack-summary-card .mini-card>.shop-block-prize{position:absolute;inset:0 auto auto 0;box-sizing:border-box;width:118px;height:154px;transform:scale(var(--card-scale,1));transform-origin:top left}
:is(.opening-stage,.fusion-reveal) .nameplate{z-index:9}
@media(max-width:690px){
 .pack-opening-dialog:has(.pack-summary-grid) .dialog-body{padding:12px}
 .pack-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;width:100%}
 .pack-summary-card>.pack-summary-art{width:100%;height:auto}
 .pack-summary-card .roster-card,.pack-summary-card .shop-block-prize{transform:scale(var(--card-scale,1))}
 .pack-summary-card>.mini-card,.pack-summary-card small{display:none}
}

#dialog.pack-opening-dialog:has(.pack-summary-grid){min-height:0!important}

#dialog.pack-opening-dialog:has(.pack-summary-grid){height:fit-content}

/* Summary captions must never hide or style the year inside the actual card. */
.pack-summary-card .roster-name>.roster-year{display:block!important;grid-column:1;margin:0;font:inherit;line-height:22px}

/* Development rewards reuse the coaching and tactics card faces in the player pack flow. */
.pack-opening-dialog .prize-face>.shop-development-prize{width:286px;height:450px;flex:none;transform:scale(var(--pack-scale,1));transform-origin:center;user-select:none;-webkit-touch-callout:none}
.pack-opening-dialog .prize-face>.shop-block-prize{flex:none;transform:scale(var(--pack-scale,1));transform-origin:center}
.shop-development-prize>.kbo-coach-skin{height:100%;grid-template-rows:30px auto 48px minmax(0,1fr)}
.shop-development-prize>.tactic-card{height:100%}
.shop-development-prize .tactic-card-art{flex:1;min-height:0;aspect-ratio:auto}
.shop-development-prize .tactic-card-effect{min-height:80px}
.shop-development-prize .kbo-coach-top{font-size:13px}
.shop-development-prize .kbo-coach-name{font-size:19px}
.shop-development-prize .kbo-coach-effect{font-size:15px;line-height:1.4}
.shop-development-prize .kbo-coach-target{font-size:13px;line-height:1.5}
.pack-summary-card .mini-card>.shop-development-mini{position:absolute;inset:0 auto auto 0;width:118px;height:154px;transform:scale(var(--card-scale,1));transform-origin:top left;user-select:none;-webkit-touch-callout:none}
.shop-development-mini>.kbo-coach-skin{height:100%;padding:2px;grid-template-rows:16px 76px 25px minmax(0,1fr)}
.shop-development-mini .kbo-coach-top{min-height:0;padding:1px 2px;gap:1px;font-size:8px}
.shop-development-mini .kbo-coach-count{padding:1px;font-size:7px}
.shop-development-mini .kbo-coach-art{aspect-ratio:auto}
.shop-development-mini .kbo-coach-title-row{min-height:0;grid-template-columns:25px minmax(0,1fr)}
.shop-development-mini .kbo-coach-duration{padding:1px;gap:0;font-size:7px}
.shop-development-mini .kbo-coach-duration b{font-size:11px}
.shop-development-mini .kbo-coach-skin .kbo-coach-name{padding:1px 2px;font-size:9px;line-height:1.15}
.shop-development-mini .kbo-coach-details{min-height:0;padding:3px;gap:0;overflow:hidden}
.shop-development-mini .kbo-coach-effect{font-size:8px;line-height:1.2}
.shop-development-mini .kbo-coach-target{display:none}
.shop-development-mini>.tactic-card{height:100%;padding:2px}
.shop-development-mini .tactic-card-top{font-size:8px;padding:1px 2px}
.shop-development-mini .tactic-card-art{flex:1;min-height:0;aspect-ratio:auto}
.shop-development-mini .tactic-card-name{min-height:25px;grid-template-columns:20px minmax(0,1fr)}
.shop-development-mini .tactic-card-name b{font-size:8px}
.shop-development-mini .tactic-card-name strong{font-size:9px;line-height:1.15;padding:2px}
.shop-development-mini .tactic-card-name i{display:none}
.shop-development-mini .tactic-card-effect{min-height:0;padding:3px;font-size:8px;line-height:1.2}
@media(prefers-reduced-motion:reduce){.pack-summary-card{animation:none}}
.pack-summary-card .roster-name>.roster-name-text{grid-column:2}
.pack-summary-card .roster-name>.roster-team-logo{grid-column:3}


/* The opening reuses the full card faces, with one flip target covering the card. */
.pack-card-flip{position:relative;width:calc(286px * var(--pack-scale,1));height:calc(450px * var(--pack-scale,1));perspective:1800px;flex:none}
.pack-card-flip .lineup-card-face>.card{width:286px;height:450px;transform:scale(var(--pack-scale,1));transform-origin:top left;margin:0}
.pack-card-flip[data-face=back] .lineup-card-rotor{transform:rotateY(180deg)}
.pack-card-flip[data-face=back] .face-front{visibility:hidden}
.pack-card-flip[data-face=back] .face-back{visibility:visible}
#dialog .pack-card-toggle{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;box-shadow:none;cursor:pointer;z-index:20;padding:0}
#dialog .pack-card-toggle:focus-visible{outline:2px solid #e8c779;outline-offset:2px}
.pack-flip-instruction{margin:4px 0 0;text-align:center;color:var(--ui-muted,#bac3c7);font:11px/1.4 Ntreev,sans-serif}
.opening-stage[data-pack-preparing] *{animation-play-state:paused!important}
.opening-stage.is-resuming *{animation:none!important}
.opening-stage.is-resuming .opening-foil{display:none}
.pack-summary-card[data-pack-summary-uid]{cursor:pointer;touch-action:pan-y;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.pack-summary-grid.is-resuming .pack-summary-card,.pack-summary-grid.is-resuming .roster-name:after{animation:none;opacity:1}
@media(prefers-reduced-motion:reduce){.pack-card-flip .lineup-card-rotor,.pack-card-flip .lineup-card-face{transition:none}}


/* Scaled flip faces must not create a horizontal scrollbar in the enlarged view. */





/* Opening cards omit development readiness; roster/detail views keep it. */
:is(.pack-opening-dialog,.fusion-result-dialog,.is-opening-card) :is(.card-growth-ready,.card-growth-dot){display:none!important}

/* Keep the season dialog shell; center pack-specific copy and equal actions. */
#dialog.pack-opening-dialog :is(.dialog-header,.sheet-header){justify-content:center}
#dialog.pack-opening-dialog #dialog-title{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;width:100%;margin:0;text-align:center}
#dialog.pack-opening-dialog .pack-opening-count{font:inherit;white-space:nowrap}
#dialog.pack-opening-dialog .prize-caption{text-align:center}
#dialog.pack-opening-dialog.season-modal :is(.dialog-footer,.sheet-footer){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#dialog.pack-opening-dialog.season-modal :is(.dialog-footer,.sheet-footer)>button{box-sizing:border-box;width:100%;min-width:0;margin:0;grid-column:auto}
#dialog.pack-opening-dialog.season-modal :is(.dialog-footer,.sheet-footer)>button:only-child{grid-column:1/-1}
#dialog.pack-opening-dialog .pack-summary-grid{grid-template-columns:repeat(var(--summary-columns,5),minmax(0,1fr))}
@media(max-width:690px){#dialog.pack-opening-dialog .pack-summary-grid{grid-template-columns:repeat(var(--summary-mobile-columns,3),minmax(0,1fr))}}
