.summon-cinema {
  position:relative; isolation:isolate; overflow:hidden;
  display:grid; place-items:center; min-height:clamp(255px,52svh,420px);
  padding:16px; border:1px solid #455060; border-radius:14px;
}
.cinema-reward { margin:0; padding:5px; text-align:center; width:min(100%,230px); }
.cinema-reward figcaption { display:grid; justify-items:center; line-height:1.4; overflow-wrap:anywhere; }
.cinema-reward figcaption strong { font-size:clamp(17px,4vw,22px); }
.cinema-reward figcaption small { color:#c6d1e4; }
.cinema-tier { font-size:11px; }
.cinema-tier b { letter-spacing:.12em; }
.cinema-art,.cinema-preview {
  display:grid; place-items:center; width:100%; aspect-ratio:5/4; height:auto;
  object-fit:cover; object-position:center 25%; background:#202a38;
}
.cinema-portrait { position:relative; overflow:hidden; }
.cinema-portrait img.cinema-art { display:block; }
.cinema-no-art { display:none; position:absolute; inset:auto 6px 6px; color:#c6d1e4; font-size:11px; }
.cinema-portrait .card-illu + .cinema-no-art { display:block; }
.cinema-preview { color:var(--metal,#cedbea); font:800 clamp(30px,7vw,58px)/1 sans-serif; }
.cinema-actions { min-height:45px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-block-start:12px; }
.cinema-actions .button { min-height:44px; }
.cinema-caption { margin-block:8px 0; color:var(--muted); }
.cinema-pending:not([hidden]) { display:flex; align-items:center; gap:.55rem; }
.cinema-pending:not([hidden])::before {
  content:""; inline-size:.65rem; aspect-ratio:1; border-radius:50%; background:#82dbfc;
  animation:cinema-wait 1s ease-in-out 3 alternate;
}
.cinema-result-grid:has(> :only-child) { grid-template-columns:minmax(0,205px); justify-content:center; }
@keyframes cinema-wait { from { transform:scale(.75); opacity:.5; } to { transform:scale(1.08); opacity:1; } }
@media (max-width:520px) {
  .summon-cinema { min-height:255px; padding:12px; }
  .cinema-reward { width:min(100%,188px); }
}
@media (prefers-reduced-motion:reduce) { .cinema-pending:not([hidden])::before { animation:none; } }
html[data-reduced="true"] .cinema-pending:not([hidden])::before { animation:none; }

.cv-single-turn { position:relative; z-index:2; perspective:820px; width:min(100%,230px); }
.cv-single-rotor { position:relative; transform-style:preserve-3d; animation:cv-single-flip 460ms max(0ms,calc(var(--impact) - 230ms)) linear both; }
.cv-single-rotor > .cv-universal-back, .cv-single-rotor > .cinema-reward { backface-visibility:hidden; }
.cv-single-rotor > .cv-universal-back { position:absolute; inset:0; height:100%; }
.foil-stage.summon-cinema .cv-single-rotor > .cinema-reward { animation:none; width:100%; transform:rotateY(180deg); }
@keyframes cv-single-flip {
  0% { transform:rotateY(0); animation-timing-function:cubic-bezier(.32,.06,.77,.64); }
  50% { transform:rotateY(90deg); animation-timing-function:cubic-bezier(.22,.43,.28,1); }
  100% { transform:rotateY(180deg); }
}
@media (max-width:520px) { .cv-single-turn { width:min(100%,188px); } }
@media (prefers-reduced-motion:reduce) { .cv-single-rotor { animation:none; transform:rotateY(180deg); } }
html[data-reduced="true"] .cv-single-rotor { animation:none; transform:rotateY(180deg); }

.cv-pack-opening.cv-premium-opening {
  --cv-cinema-ink:#9bb9ee;
  --cv-cinema-curve:cubic-bezier(.16,.72,.26,1);
  position:relative;
  height:clamp(315px,62dvh,570px);
  overflow:hidden;
  isolation:isolate;
  border:1px solid #465470;
  background:#080b15;
  box-shadow:inset 0 0 42px #000b;
}
.cv-premium-opening .cv-cinema-room,
.cv-premium-opening .cv-cinema-shockwave,
.cv-premium-opening .cv-cinema-cards {
  position:absolute;
  inset:0;
  pointer-events:none;
}
.cv-premium-opening .cv-cinema-room {
  overflow:hidden;
  background:
    radial-gradient(ellipse at 50% 61%,color-mix(in srgb,var(--cv-cinema-ink) 20%,#15172b) 0%,#111928 35%,#080a14 74%);
}
.cv-premium-opening .cv-cinema-room::after {
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 50% 52%,transparent 29%,#000a);
}
.cv-cinema-floor {
  position:absolute;
  top:64%;
  left:50%;
  width:min(88%,740px);
  height:36%;
  transform:translateX(-50%) rotateX(61deg);
  background:repeating-radial-gradient(ellipse at center,transparent 0 20%,#acbfee55 20.3% 20.6%,transparent 21% 28%);
  mask-image:radial-gradient(ellipse,#000 43%,transparent 74%);
  opacity:.55;
}
.cv-cinema-beacon {
  position:absolute;
  inset:-40% 12% 4%;
  background:repeating-conic-gradient(from 23deg at 50% 71%,transparent 0 13deg,#b9d1ff18 14deg 15deg,transparent 16deg 31deg);
  mask-image:radial-gradient(ellipse at 50% 62%,#000,transparent 69%);
  opacity:.42;
}
.cv-cinema-dust {
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 16% 52%,#a9c6ff 0 .7px,transparent 1.7px),
    radial-gradient(circle at 28% 72%,#d2bdff 0 1px,transparent 2px),
    radial-gradient(circle at 35% 27%,#a9c6ff 0 1px,transparent 2px),
    radial-gradient(circle at 68% 19%,#c3e6ff 0 .8px,transparent 1.8px),
    radial-gradient(circle at 79% 41%,#ded4ff 0 1px,transparent 2px),
    radial-gradient(circle at 83% 63%,#c2d4ff 0 1px,transparent 2px),
    radial-gradient(circle at 59% 74%,#ccdeff 0 .8px,transparent 1.9px);
  opacity:.65;
}
.cv-cinema-aura {
  position:absolute;
  inset:6% 4% 14%;
  overflow:hidden;
  mask-image:radial-gradient(ellipse,#000 30%,transparent 71%);
}
.cv-premium-opening:is([data-cue="reveal"],[data-cue="settle"])[data-tier="rare"] .cv-cinema-aura {
  background:linear-gradient(152deg,transparent 41%,#68bcff45 49%,transparent 50%),
    linear-gradient(28deg,transparent 50%,#3f9fef3d 51%,transparent 61%);
}
.cv-premium-opening:is([data-cue="reveal"],[data-cue="settle"])[data-tier="epic"] .cv-cinema-aura {
  background:repeating-conic-gradient(from 8deg at 50% 56%,transparent 0 19deg,#a580f550 20deg 21deg,#ad82fc18 21deg 24deg,transparent 26deg 36deg);
}
.cv-premium-opening:is([data-cue="reveal"],[data-cue="settle"])[data-tier="legendary"] .cv-cinema-aura {
  background:repeating-conic-gradient(from -18deg at 50% 95%,transparent 0 10deg,#ffe1a758 11deg 12deg,#ffd08222 13deg 15deg,transparent 17deg 21deg);
}
.cv-premium-opening:is([data-cue="reveal"],[data-cue="settle"])[data-tier="mythic"] .cv-cinema-aura::before,
.cv-premium-opening:is([data-cue="reveal"],[data-cue="settle"])[data-tier="mythic"] .cv-cinema-aura::after {
  content:"";
  position:absolute;
  inset:28% 12%;
  border:2px solid #e3a5ff85;
  border-radius:50%;
  box-shadow:0 0 16px #ac62f0a3,inset 0 0 9px #ac62f068;
  transform:rotate(-22deg);
}
.cv-premium-opening:is([data-cue="reveal"],[data-cue="settle"])[data-tier="mythic"] .cv-cinema-aura::after {
  transform:rotate(22deg) scale(.86);
}
.cv-premium-opening:is([data-cue="reveal"],[data-cue="settle"])[data-tier="secret"] .cv-cinema-aura {
  background:linear-gradient(92deg,transparent 22%,#d4fbf766 32%,#0d101c 40% 60%,#d4fbf766 68%,transparent 78%),
    radial-gradient(ellipse,#0b0c13 37%,#e4fbf681 42%,#adc5dd1c 46%,transparent 57%);
}
.cv-premium-opening .cv-cinema-shockwave {
  z-index:2;
  display:grid;
  place-items:center;
}
.cv-premium-opening .cv-cinema-shockwave::before {
  content:"";
  width:min(75%,560px);
  aspect-ratio:1;
  border:1px solid color-mix(in srgb,var(--cv-cinema-ink) 71%,transparent);
  border-radius:50%;
  background:radial-gradient(ellipse,transparent 60%,color-mix(in srgb,var(--cv-cinema-ink) 34%,transparent) 66%,transparent 71%);
  opacity:0;
}
.cv-premium-opening.cv-pack-opening[data-phase="burst"]::before { display:none; }
.cv-premium-opening > .cv-booster-canvas { z-index:1; }
.cv-premium-opening > .cv-opening-model { z-index:1; }
.cv-premium-opening .cv-opening-model .cv-pack-model {width:clamp(130px,19dvh,200px)}
.cv-premium-opening .cv-cinema-cards { display:grid; place-items:center; z-index:3; perspective:900px; }
.cv-cinematic-card {
  width:min(52vw,34dvh,246px);
  min-width:min(42vw,130px);
  max-width:85%;
  margin-block-end:32px;
  filter:drop-shadow(0 12px 21px #000a);
}
.cv-cinematic-card[hidden] {display:none}
.cv-cinema-turn {
  position:relative;
  transform-style:preserve-3d;
  transform:rotateY(0);
}
.cv-cinematic-card[data-revealed] .cv-cinema-turn {transform:rotateY(180deg)}
.cv-cinema-turn > .cv-universal-back,
.cv-cinematic-face {
  backface-visibility:hidden;
}
.cv-cinema-turn > .cv-universal-back {
  position:absolute;
  inset:0;
  height:100%;
  border-color:#9178c2;
}
.cv-cinematic-face {transform:rotateY(180deg)}
.cv-cinematic-face .cinema-reward {
  width:100%;
  box-shadow:0 0 0 1px #afc8e32b,0 3px 19px color-mix(in srgb,var(--cv-cinema-ink) 34%,transparent);
}
.cv-cinematic-face .cv-pack-card-art img,
.cv-cinematic-face .cv-pack-card-art .card-illu {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/5;
  object-fit:cover;
}
.cv-cinematic-face .cv-pack-card-art .cv-portrait-fallback {display:grid}
.cv-cinematic-face figcaption {
  position:relative;
  z-index:5;
  min-height:55px;
  padding:4px 3px;
  color:#fff;
  background:#121726;
}
.cv-cinematic-face figcaption strong {font-size:clamp(13px,3.8vw,20px)}
.cv-cinematic-face .cinema-tier {color:var(--cv-cinema-ink);display:flex;align-items:center;gap:5px}
.cv-cinematic-face figcaption small {font-size:10px}
.cv-cinema-fan {
  position:absolute;
  inset:0;
  z-index:2;
  display:none;
  align-items:center;
  justify-content:center;
  perspective:700px;
  pointer-events:none;
}
.cv-cinema-fan > .cv-universal-back {
  width:min(24vw,16dvh,125px);
  margin-inline:-10px;
  transform:translateY(-3px) rotateY(-13deg);
}
.cv-cinema-fan > .cv-universal-back:first-child:not(:only-child) {transform:translateY(13px) rotate(-14deg)}
.cv-cinema-fan > .cv-universal-back:last-child:not(:only-child) {transform:translateY(12px) rotate(14deg)}
.cv-premium-opening[data-phase="pull"] .cv-cinema-fan {display:flex}
.cv-cinema-hud {
  position:absolute;
  inset:auto 0 12px;
  z-index:4;
  display:grid;
  place-items:center;
  gap:6px;
  padding-inline:12px;
  pointer-events:none;
}
.cv-cinema-status {
  margin:0;
  padding:2px 9px;
  max-width:100%;
  text-align:center;
  line-height:1.35;
  border-radius:5px;
  background:#090e1add;
  color:#e7ecf9;
  font-size:.78rem;
}
.cv-cinema-status bdi:not([hidden]) {
  margin-inline-start:4px;
  font-variant-numeric:tabular-nums;
  color:#c5d4f2;
}
.cv-cinema-meter {display:flex;gap:5px;direction:ltr}
.cv-cinema-meter i {width:clamp(12px,4vw,28px);height:3px;border-radius:3px;background:#4d5876}
.cv-cinema-meter i[data-filled] {background:var(--tick-ink,#bed2ee);box-shadow:0 0 7px var(--tick-ink,#bed2ee)}

.cv-premium-opening[data-animated="true"][data-cue="intro"] :is(.cv-booster-canvas,.cv-opening-model) {
  animation:cv-cinema-arrive .32s var(--cv-cinema-curve) both;
}
.cv-premium-opening[data-animated="true"][data-cue="charge"] :is(.cv-booster-canvas,.cv-opening-model) {
  animation:cv-cinema-charge .89s linear both;
}
.cv-premium-opening[data-animated="true"][data-cue="charge"] .cv-cinema-beacon {
  animation:cv-cinema-gather .89s ease-in both;
}
.cv-premium-opening[data-animated="true"][data-cue="burst"] :is(.cv-booster-canvas,.cv-opening-model) {
  animation:cv-cinema-kick .36s var(--cv-cinema-curve) both;
}
.cv-premium-opening[data-animated="true"][data-cue="burst"] .cv-cinema-shockwave::before,
.cv-premium-opening[data-animated="true"][data-cue="reveal"]:is([data-tier="epic"],[data-tier="legendary"],[data-tier="mythic"],[data-tier="secret"]) .cv-cinema-shockwave::before {
  animation:cv-cinema-wave .55s var(--cv-cinema-curve) both;
}
.cv-premium-opening[data-animated="true"][data-cue="pull"] .cv-cinema-fan {
  animation:cv-cinema-fan .46s var(--cv-cinema-curve) both;
}
.cv-premium-opening[data-animated="true"][data-cue="pull"] .cv-cinema-fan > .cv-universal-back {
  animation:cv-cinema-card-rise .29s var(--cv-cinema-curve) both;
}
.cv-premium-opening[data-animated="true"][data-cue="pull"] .cv-cinema-fan > :nth-child(2) {animation-delay:.07s}
.cv-premium-opening[data-animated="true"][data-cue="pull"] .cv-cinema-fan > :nth-child(3) {animation-delay:.14s}
.cv-premium-opening[data-animated="true"][data-cue="reveal"] .cv-cinema-aura {
  animation:cv-cinema-emission var(--cv-cinema-curve) .62s both;
}
.cv-premium-opening[data-animated="true"][data-quality="high"] .cv-cinema-dust {
  animation:cv-cinema-dust 3s ease-in-out infinite alternate;
}
.cv-premium-opening[data-quality="low"] :is(.cv-cinema-dust,.cv-cinema-shockwave,.cv-cinema-beacon) {display:none}
.cv-premium-opening[data-quality="low"][data-animated="true"][data-cue="charge"] :is(.cv-booster-canvas,.cv-opening-model) {animation:none}
.cv-premium-opening[data-animated="true"][data-cue="settle"] .cv-cinema-dust {animation:none}
@keyframes cv-cinema-arrive {
  from {transform:scale(.90) translateY(14px);opacity:0}
}
@keyframes cv-cinema-charge {
  0% {transform:scale(1)}
  58% {transform:scale(1.035) translateX(1px)}
  72% {transform:scale(1.065) translateX(-2px)}
  82% {transform:scale(1.07) translateX(2px)}
  91% {transform:scale(1.075) translateX(-1px)}
  100% {transform:scale(1.08)}
}
@keyframes cv-cinema-gather {
  from {transform:scale(1.7);opacity:.28}
  to {transform:scale(.93);opacity:.85}
}
@keyframes cv-cinema-kick {
  0% {transform:scale(1.08)}
  14% {transform:scale(1.105) translate(2px,-2px)}
  32% {transform:scale(1.07) translate(-2px,1px)}
  100% {transform:scale(1.015)}
}
@keyframes cv-cinema-wave {
  from {transform:scale(.28);opacity:.56}
  to {transform:scale(1.37);opacity:0}
}
@keyframes cv-cinema-fan {
  0% {transform:translateY(72px) scale(.56);opacity:0}
  58% {transform:translateY(-9px) scale(1.035);opacity:1}
  100% {transform:translateY(-3px) scale(1);opacity:1}
}
@keyframes cv-cinema-card-rise {
  from {translate:0 40px;opacity:0}
  to {translate:0 0;opacity:1}
}
@keyframes cv-cinema-emission {
  from {transform:scale(.64);opacity:0}
  22% {opacity:.96}
  to {transform:scale(1.03);opacity:.86}
}
@keyframes cv-cinema-dust {
  from {transform:translateY(8px);opacity:.21}
  to {transform:translateY(-10px);opacity:.63}
}
@media (max-width:520px) {
  .cv-pack-opening.cv-premium-opening {height:clamp(306px,55dvh,465px)}
}
@media (prefers-reduced-motion:reduce) {
  .cv-premium-opening[data-animated="true"] *,
  .cv-premium-opening[data-animated="true"] *::before {animation:none!important}
}
