/* Magazine Cover Feature Stage & Paste-Up Pack */

.stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}

.cover {
  width: 100%;
  border: var(--rule);
  background: var(--paper-inset);
  box-shadow: var(--shadow-hard-lg);
  display: flex;
  flex-direction: column;
}

.cover-body {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cover-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: var(--rule-thin);
  padding-bottom: 6px;
}

.cover-issue {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}

.cover-headline-wrap {
  width: 100%;
  text-align: left;
}

.cover-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cover-sub {
  margin: 4px 0 0;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pack-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pack-stack {
  position: relative;
  width: 264px;
  height: 358px;
  margin: 6px 0;
  user-select: none;
  touch-action: pan-y;
}

.pack-ghost {
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
  transform: translate(8px, 8px);
  filter: brightness(0.75);
  pointer-events: none;
}

.pack-foil {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transform: rotate(-2deg);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pack-foil:hover {
  transform: rotate(-1deg) translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}

.pack-foil::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 30%) var(--my, 25%),
    rgba(255, 255, 255, 0.28) 0%,
    transparent 60%
  );
  mix-blend-mode: overlay;
  z-index: 3;
}

.pack-top-cap {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  transition: transform 0.16s ease;
  transform-origin: left bottom;
}

.pack-body-shell {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  transition: transform 0.16s ease;
}

.pack-foil.is-dragging-tear .pack-top-cap {
  transition: none;
  transform: translateX(calc(var(--tear-dx, 0px) * 0.22)) rotate(calc(var(--tear-pct, 0) * -4deg));
}

.pack-foil.is-dragging-tear .pack-body-shell {
  transition: none;
  transform: rotate(calc(var(--tear-pct, 0) * 1.5deg));
}

.pack-tear-slit {
  position: relative;
  height: 0;
  width: 100%;
  z-index: 6;
  background: var(--slit-color, #fff);
  opacity: 0;
  pointer-events: none;
  transition: height 0.12s ease, opacity 0.12s ease;
}

.pack-foil.is-dragging-tear .pack-tear-slit {
  height: calc(var(--tear-pct, 0) * 5px);
  opacity: calc(0.3 + var(--tear-pct, 0) * 0.7);
  box-shadow: 0 0 10px var(--slit-color, #fff);
}

.pack-card-peek {
  position: absolute;
  top: 52px;
  left: 14px;
  right: 14px;
  height: 44px;
  background: var(--paper-inset);
  border: 2px solid var(--ink);
  border-top-width: 5px;
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  z-index: 4;
}

.pack-crimp-top,
.pack-crimp-bot {
  height: 12px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    #141414 0px,
    #141414 3px,
    rgba(255, 255, 255, 0.85) 3px,
    rgba(255, 255, 255, 0.85) 6px
  );
  border-bottom: 1.5px solid var(--ink);
  flex-shrink: 0;
}

.pack-crimp-bot {
  border-bottom: none;
  border-top: 1.5px solid var(--ink);
}

.pack-tear-zone {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 0;
  border: none;
  background: transparent;
  cursor: grab;
  touch-action: none;
  z-index: 6;
}

.pack-tear-progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(242, 183, 5, 0.52), rgba(217, 43, 30, 0.62));
  transform-origin: left center;
  transform: scaleX(var(--tear-pct, 0));
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
  z-index: 1;
}

.pack-foil.is-dragging-tear .pack-tear-progress {
  opacity: 0.78;
}

.pack-count-pill {
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
}

.pack-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-align: center;
  gap: 8px;
}

.pack-emblem {
  width: 74px;
  height: 74px;
  border: 2px solid var(--ink);
  background: rgba(20, 20, 20, 0.45);
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-emblem svg {
  width: 44px;
  height: 44px;
}

.pack-title-pill {
  background: var(--ink);
  border: 1.5px solid #fff;
  padding: 4px 10px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.pack-sub-text {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* Phase 1: Charge & Rarity Glow before Rip */
.pack-foil.rarity-glow-N { --slit-color: #f3ede0; }
.pack-foil.rarity-glow-R { --slit-color: #6ea8ff; }
.pack-foil.rarity-glow-SR { --slit-color: #ff4a38; }
.pack-foil.rarity-glow-SSR { --slit-color: #f2d27a; }
.pack-foil.rarity-glow-UR { --slit-color: #ff8fb8; }

.pack-foil.tearing {
  pointer-events: none;
  animation: packChargeShake 0.16s steps(3, end) infinite;
}

.pack-foil.tearing .pack-tear-slit {
  height: 5px;
  opacity: 1;
  box-shadow: 0 0 14px var(--slit-color, #fff);
}

.pack-foil.tearing.rarity-glow-SSR,
.pack-foil.tearing.rarity-glow-UR {
  box-shadow: 0 0 0 3px var(--slit-color), 7px 7px 0 var(--ink);
}

/* Phase 2: Cap Fly-Off, Body Split & Card Peek */
.pack-foil.tearing.ripped {
  animation: none;
  overflow: visible;
}

.pack-foil.tearing.ripped .pack-top-cap {
  animation: packCapFlyOff 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pack-foil.tearing.ripped .pack-body-shell {
  animation: packBodySplit 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pack-foil.tearing.ripped .pack-tear-slit {
  height: 10px;
  opacity: 0;
  transition: height 0.18s ease, opacity 0.2s ease;
}

.pack-foil.tearing.ripped .pack-card-peek {
  animation: packCardPeekUp 0.28s cubic-bezier(0.18, 1.15, 0.32, 1) forwards;
}

@keyframes packChargeShake {
  0% { transform: rotate(-2.5deg) translate(-2px, 1px) scale(1.01); }
  33% { transform: rotate(-0.5deg) translate(2px, -1px) scale(1.03); }
  66% { transform: rotate(-3deg) translate(-1px, -2px) scale(1.02); }
  100% { transform: rotate(-1.5deg) translate(2px, 1px) scale(1.04); }
}

@keyframes packCapFlyOff {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(38px, -44px) rotate(18deg) scale(0.95); opacity: 0; }
}

@keyframes packBodySplit {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(24px) rotate(3deg) scale(1.06); opacity: 0; }
}

@keyframes packCardPeekUp {
  0% { opacity: 0; transform: translateY(20px) scale(0.86); }
  45% { opacity: 1; transform: translateY(-28px) scale(1.04); }
  100% { opacity: 0; transform: translateY(-58px) scale(1.1); }
}

/* 10-Pull Fanned Ghosts */
.pack-fan-ghost {
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  pointer-events: none;
  z-index: 1;
}

.pack-fan-ghost.is-rare {
  border-color: var(--gold-b);
}

.pack-fan-ghost.fan-0 {
  --fan-x: -44px;
  --fan-rot: -16deg;
  animation: packFan10 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.pack-fan-ghost.fan-1 {
  --fan-x: 44px;
  --fan-rot: 14deg;
  animation: packFan10 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.04s forwards;
}
.pack-fan-ghost.fan-2 {
  --fan-x: 0px;
  --fan-rot: 3deg;
  animation: packFan10 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

@keyframes packFan10 {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.96); opacity: 0.95; }
  55% { transform: translate(var(--fan-x), -14px) rotate(var(--fan-rot)) scale(1.02); opacity: 0.95; }
  100% { transform: translate(calc(var(--fan-x) * 1.45), -36px) rotate(var(--fan-rot)) scale(0.88); opacity: 0; }
}

/* Desk Pack Swap & New Arrival */
.pack-stack.anim-swap {
  animation: packSwapIn 0.24s cubic-bezier(0.18, 1.15, 0.32, 1) both;
}

.pack-stack.anim-arrival {
  animation: packArrivalDrop 0.42s cubic-bezier(0.18, 1.18, 0.32, 1) both;
}

@keyframes packSwapIn {
  0% { opacity: 0.3; transform: translateY(10px) scale(0.94) rotate(-4deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes packArrivalDrop {
  0% { opacity: 0; transform: translateY(-28px) scale(0.86) rotate(4deg); }
  65% { opacity: 1; transform: translateY(4px) scale(1.03) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.pack-arrival-badge {
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 10;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  transform: rotate(-7deg);
  pointer-events: none;
  animation: arrivalStampPop 0.36s cubic-bezier(0.18, 1.25, 0.32, 1) both;
}

@keyframes arrivalStampPop {
  0% { opacity: 0; transform: scale(1.5) rotate(-14deg); }
  100% { opacity: 1; transform: scale(1) rotate(-7deg); }
}

.tray-pack-btn.is-new-arrival {
  animation: trayNewPulse 0.7s ease-in-out 2;
}

@keyframes trayNewPulse {
  0%, 100% { box-shadow: 3px 3px 0 var(--ink); }
  50% { box-shadow: 0 0 0 3px var(--yellow), 5px 5px 0 var(--ink); }
}

.cover-foot {
  width: 100%;
  border-top: var(--rule);
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pack-rarity-strip {
  display: flex;
  gap: 3px;
  align-items: center;
}

.stock-block {
  background: var(--ink);
  color: #fff;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stock-block small {
  color: var(--yellow);
  font-size: 9.5px;
}

.open-actions-row {
  width: 100%;
  display: flex;
  gap: 8px;
}

.open-pack-btn {
  flex: 1;
  padding: 13px 14px;
  font-size: 15.5px;
}

.open-10-btn {
  flex: 1;
  padding: 13px 12px;
  font-size: 14.5px;
  color: var(--yellow);
}

.pack-hint {
  text-align: center;
  color: var(--muted);
}

/* On-Stage Pack Selector Tray */
.my-packs-tray {
  width: 100%;
  border-top: var(--rule);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tray-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 6px;
  scrollbar-width: thin;
}

.tray-pack-btn {
  position: relative;
  flex-shrink: 0;
  width: 78px;
  height: 86px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  color: #fff;
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tray-pack-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.tray-pack-btn.active {
  outline: 3px solid var(--red);
  outline-offset: 1px;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.tray-pack-name {
  font-family: var(--font-condensed);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.tray-pack-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--ink);
  color: var(--yellow);
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
}

/* Category & R+ Deluxe / Limited Specialty Styles */
.pack-cat-badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}

.pack-cat-badge.cat-origin {
  background: var(--cobalt);
  color: #fff;
}

.pack-cat-badge.cat-street {
  background: var(--red);
  color: #fff;
}

.pack-cat-badge.cat-rare {
  background: linear-gradient(135deg, #9A6B16 0%, #F2D27A 55%, #B8862B 100%);
  color: var(--ink);
  border-color: var(--ink);
}

.pack-cat-badge.cat-rare-ssr {
  background: linear-gradient(135deg, #ff3fa4 0%, #ffe600 45%, #29e3ff 78%, #d92b1e 100%);
  color: #141414;
  border-color: var(--ink);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.85);
}

.pack-cat-badge.cat-tier-ssr {
  background: linear-gradient(135deg, #8b1e24 0%, #e0b34c 55%, #4a1014 100%);
  color: #fff;
  border-color: var(--ink);
}

.pack-cat-badge.cat-tier-ur {
  background: linear-gradient(135deg, #f2d27a 0%, #fff4c4 50%, #9a6b16 100%);
  color: #141414;
  border-color: var(--ink);
}

.pack-cat-badge.cat-specialty {
  background: repeating-linear-gradient(
    -45deg,
    #D92B1E 0 6px,
    #F2B705 6px 12px
  );
  color: #141414;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff;
}

.r-badge.r-disabled {
  opacity: 0.3;
  text-decoration: line-through;
}

.pack-foil.is-rare,
.pack-ghost.is-rare {
  border: 3px solid var(--gold-b);
  outline: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--gold-a), 7px 7px 0 var(--ink);
}

.pack-foil.is-rare::before {
  content: '';
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(242, 210, 122, 0.42) 48%,
    rgba(255, 255, 255, 0.55) 52%,
    rgba(242, 210, 122, 0.3) 56%,
    transparent 66%
  );
  animation: rareSheen 3.2s linear infinite;
  z-index: 2;
}

@keyframes rareSheen {
  0% { transform: translateX(-65%); }
  100% { transform: translateX(65%); }
}

.pack-rare-seal {
  position: absolute;
  top: 44px;
  right: 8px;
  z-index: 4;
  background: linear-gradient(135deg, var(--red) 0%, #9A6B16 55%, var(--gold-b) 100%);
  color: #fff;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 900;
  transform: rotate(6deg);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

.pack-limited-ribbon {
  position: absolute;
  top: 46px;
  right: -22px;
  z-index: 4;
  width: 96px;
  text-align: center;
  background: repeating-linear-gradient(-45deg, var(--red) 0 6px, var(--gold-b) 6px 12px);
  color: var(--ink);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 0;
  transform: rotate(35deg);
}

.tray-pack-btn.is-rare {
  border: 2px solid var(--gold-b);
  outline: 1.5px solid var(--ink);
  box-shadow: 0 0 8px rgba(242, 210, 122, 0.65), 3px 3px 0 var(--gold-a), 4px 4px 0 var(--ink);
}

.tray-pack-btn.has-pack-art.is-rare {
  background: linear-gradient(180deg, #fff6d1 0%, var(--paper-2) 100%);
}

.tray-pack-btn.is-rare .tray-pack-img {
  filter: drop-shadow(0 0 5px rgba(242, 210, 122, 0.85))
    drop-shadow(0 2px 3px rgba(20, 20, 20, 0.35));
}

.tray-pack-btn.is-specialty {
  border: 2px solid var(--red);
  box-shadow: 3px 3px 0 var(--ink);
}

.tray-cat-mini {
  position: absolute;
  top: 3px;
  left: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  padding: 0 3px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.25;
}

.tray-cat-mini.cat-origin { background: var(--cobalt); color: #fff; }
.tray-cat-mini.cat-street { background: var(--red); color: #fff; }
.tray-cat-mini.cat-rare { background: var(--gold-b); color: var(--ink); }
.tray-cat-mini.cat-rare-ssr {
  background: linear-gradient(135deg, #ff3fa4 0%, #ffe600 50%, #29e3ff 100%);
  color: var(--ink);
}
.tray-cat-mini.cat-tier-ssr {
  background: linear-gradient(135deg, #8b1e24 0%, #e0b34c 100%);
  color: #fff;
}
.tray-cat-mini.cat-tier-ur {
  background: linear-gradient(135deg, #f2d27a 0%, #fff4c4 100%);
  color: var(--ink);
}
.tray-cat-mini.cat-specialty { background: var(--yellow); color: var(--ink); }

/* Batch 10-Pull Contact Sheet */
.batch-header {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: var(--rule);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.batch-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.batch-actions {
  width: 100%;
  display: flex;
  gap: 8px;
}

.batch-actions > button {
  flex: 1;
}

/* Multi-Card Reveal Controls */
.reveal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: var(--rule-thin);
  padding-bottom: 5px;
}

.reveal-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  background: var(--ink);
  color: var(--yellow);
  padding: 2px 8px;
}

.reveal-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reveal-nav .btn-primary {
  padding: 6px 14px;
  font-size: 12.5px;
}

.reveal-dots {
  display: flex;
  gap: 6px;
}

.reveal-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper-inset);
}

.reveal-dot.active {
  background: var(--ink);
}

.reveal-dot.dot-pop {
  animation: dotPop 0.26s cubic-bezier(0.2, 1.3, 0.4, 1);
}

@keyframes dotPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.45); background: var(--red); }
  100% { transform: scale(1); }
}

/* === Real Foil Pack Artwork & R+ Deluxe Overlays === */
.pack-foil.has-pack-art {
  --pack-cap-h: 58px;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 10px 14px rgba(20, 20, 20, 0.34))
    drop-shadow(3px 3px 0 rgba(20, 20, 20, 0.22));
  overflow: visible;
}

.pack-foil.has-pack-art:hover {
  transform: rotate(-1deg) translate(-1px, -2px);
  box-shadow: none;
  filter: drop-shadow(0 13px 18px rgba(20, 20, 20, 0.38))
    drop-shadow(4px 4px 0 rgba(20, 20, 20, 0.24));
}

.pack-foil.has-pack-art.is-rare {
  border: none;
  outline: none;
  box-shadow: none;
  filter: drop-shadow(0 0 14px rgba(242, 210, 122, 0.82))
    drop-shadow(0 10px 15px rgba(20, 20, 20, 0.36));
}

.pack-foil.has-pack-art::before,
.pack-foil.has-pack-art::after {
  display: none;
}

.pack-foil.has-pack-art .pack-top-cap {
  position: relative;
  height: var(--pack-cap-h);
  overflow: hidden;
}

.pack-foil.has-pack-art .pack-body-shell {
  position: relative;
  flex: none;
  height: calc(100% - var(--pack-cap-h));
  overflow: hidden;
  display: block;
}

.pack-art-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 264px;
  height: 358px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

.pack-art-body {
  top: calc(-1 * var(--pack-cap-h));
}

.pack-foil.has-pack-art .pack-tear-zone {
  position: absolute;
  inset: 0;
  padding: 0;
  background: transparent;
  border: none;
  z-index: 4;
}

.pack-rare-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  -webkit-mask-size: 264px 358px;
  mask-size: 264px 358px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
}

.pack-rare-sheen.is-body {
  -webkit-mask-position: center calc(-1 * var(--pack-cap-h, 58px));
  mask-position: center calc(-1 * var(--pack-cap-h, 58px));
}

.pack-rare-sheen::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(242, 210, 122, 0.5) 48%,
    rgba(255, 255, 255, 0.68) 52%,
    rgba(242, 210, 122, 0.35) 56%,
    transparent 66%
  );
  animation: rareSheen 3.2s linear infinite;
}

.pack-rare-sheen.is-ssr-fx::after {
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(255, 63, 164, 0.42) 44%,
    rgba(255, 230, 0, 0.65) 49%,
    rgba(255, 255, 255, 0.82) 52%,
    rgba(41, 227, 255, 0.45) 56%,
    transparent 66%
  );
  animation: rareSheen 2.4s linear infinite;
}

.pack-rare-sash {
  position: absolute;
  top: 12px;
  left: -30px;
  width: 118px;
  text-align: center;
  padding: 3px 0;
  background: linear-gradient(135deg, #9a6b16 0%, #f5da88 50%, #b8862b 100%);
  color: #141414;
  border-top: 1.5px solid #141414;
  border-bottom: 1.5px solid #141414;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  transform: rotate(-36deg);
  pointer-events: none;
  z-index: 5;
}

.pack-rare-sash.is-ssr-fx {
  background: linear-gradient(135deg, #d92b1e 0%, #ffe600 48%, #ff3fa4 100%);
  color: #141414;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.85);
}

.pack-rare-seal.is-ssr-fx {
  background: linear-gradient(135deg, #ff3fa4 0%, #ffe600 50%, #29e3ff 100%);
  color: #141414;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.pack-foil.has-pack-art .pack-rare-seal {
  top: 8px;
  right: 10px;
  z-index: 6;
}

.pack-foil.has-pack-art .pack-limited-ribbon {
  top: 12px;
  right: -24px;
  z-index: 5;
}

.pack-ghost.has-pack-art,
.pack-fan-ghost.has-pack-art {
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  filter: brightness(0.82) drop-shadow(0 6px 10px rgba(20, 20, 20, 0.26));
}

.pack-ghost-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* On-stage tray with real pack cover thumbnails */
.tray-pack-btn.has-pack-art {
  background: var(--paper-2);
  color: var(--ink);
  padding: 15px 4px 3px;
  justify-content: space-between;
}

.tray-pack-img {
  width: 44px;
  height: 48px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(20, 20, 20, 0.35));
  pointer-events: none;
}

.tray-pack-btn.has-pack-art .tray-pack-name {
  font-size: 9.5px;
  line-height: 1.1;
  color: var(--ink);
  text-shadow: none;
  -webkit-line-clamp: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pack-rare-sheen::after {
    animation: none !important;
  }
}
