/* Marketing rip table — pack chrome subset from live Anim 1 */

.rip-table {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 560px;
  padding: 28px 16px 32px;
  border: 4px solid #080a0f;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(80, 109, 168, 0.28), transparent 58%),
    linear-gradient(180deg, #2a3558, #1a2444);
  overflow: hidden;
  box-shadow: var(--chunk-shadow);
}

.rip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 18px;
}

.rip-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 2px 0 #000;
}

.rip-actions .btn[disabled] {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

.builder-pack {
  display: grid;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transform: translateY(-22px);
  opacity: 0;
  transition:
    opacity 320ms ease,
    transform 480ms cubic-bezier(0.34, 1.12, 0.48, 1);
}

.builder-pack.is-visible,
.builder-pack.is-visible.is-dropped {
  opacity: 1;
  transform: translateY(0);
}

.builder-pack.is-again-enter {
  opacity: 0;
  transform: translate3d(0, var(--pack-enter-y, 100%), 0);
  transition:
    opacity 900ms ease,
    transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.builder-pack.is-again-enter.is-again-entered,
.builder-pack.is-again-enter.is-visible.is-dropped {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.builder-pack.is-sealed:hover,
.builder-pack.is-sealed:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.builder-pack.is-sealed:focus-visible .builder-pack-visual {
  outline: 2px solid rgba(245, 223, 104, 0.85);
  outline-offset: 6px;
}

.builder-pack.is-sealed {
  width: 168px;
}

.builder-pack:not(.is-sealed) {
  cursor: default;
}

.builder-pack.is-dealing,
.builder-pack.is-settled,
.builder-pack.is-revealed,
.builder-pack.is-piling,
.builder-pack.is-exiting {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.builder-pack.is-exiting {
  z-index: 4;
  pointer-events: none;
}

.builder-pack.is-again-enter {
  position: relative;
  z-index: 3;
}

.builder-pack-open-stage {
  position: relative;
  width: 168px;
  min-height: 252px;
  overflow: visible;
}

.builder-pack.is-peeling,
.builder-pack.is-stack-reveal,
.builder-pack.is-sliding {
  position: relative;
  z-index: 3;
}

.pack-confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.pack-confetti-piece {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.45);
  will-change: transform, opacity;
}

.pack-confetti-piece--round {
  border-radius: 50%;
}

.builder-pack.is-dealing .builder-pack-open-stage,
.builder-pack.is-settled .builder-pack-open-stage,
.builder-pack.is-revealed .builder-pack-open-stage,
.builder-pack.is-piling .builder-pack-open-stage,
.builder-pack.is-exiting .builder-pack-open-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.builder-pack-cards {
  --pack-card-w: 118px;
  --pack-grid-gap: 14px;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.builder-pack.is-stack-reveal .builder-pack-cards,
.builder-pack.is-sliding .builder-pack-cards,
.builder-pack.is-dealing .builder-pack-cards,
.builder-pack.is-settled .builder-pack-cards,
.builder-pack.is-revealed .builder-pack-cards,
.builder-pack.is-piling .builder-pack-cards {
  opacity: 1;
}

.builder-pack.is-revealed .builder-pack-cards,
.builder-pack.is-settled .builder-pack-cards {
  pointer-events: auto;
}

.builder-pack.is-revealed .builder-pack-cards {
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  transition:
    transform 920ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 760ms ease;
}

.builder-pack-visual {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42));
}

.builder-pack.is-sleeve-auto-slide .builder-pack-visual {
  animation: rip-sleeve-slide 780ms cubic-bezier(0.33, 0.08, 0.25, 1) forwards;
}

.builder-pack.is-dealing .builder-pack-visual,
.builder-pack.is-settled .builder-pack-visual,
.builder-pack.is-revealed .builder-pack-visual,
.builder-pack.is-piling .builder-pack-visual,
.builder-pack.is-exiting .builder-pack-visual {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes rip-sleeve-slide {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(280px);
    opacity: 0;
  }
}

.builder-pack-peel {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  overflow: hidden;
  border: 5px solid #0a0a0a;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-sizing: border-box;
  transition:
    transform 420ms cubic-bezier(0.4, 0, 0.85, 0.2),
    opacity 320ms ease;
}

.builder-pack.pack-open-anim-1.is-peeling .builder-pack-peel {
  transform:
    translateX(calc(var(--peel-dir, 1) * 140%))
    translateY(-35%)
    rotate(calc(var(--peel-dir, 1) * 32deg));
  opacity: 0;
  pointer-events: none;
}

.builder-pack-stack {
  position: relative;
  height: 22px;
  background: linear-gradient(180deg, #3a3a3a, #222);
}

.builder-pack-stack span {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 1px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0 3px,
      transparent 3px 7px
    ),
    #4a4a4a;
}

.builder-pack-stack span:nth-child(1) { top: 15px; opacity: 0.55; }
.builder-pack-stack span:nth-child(2) { top: 12px; opacity: 0.68; }
.builder-pack-stack span:nth-child(3) { top: 9px; opacity: 0.8; }
.builder-pack-stack span:nth-child(4) { top: 6px; opacity: 0.92; }
.builder-pack-stack span:nth-child(5) { top: 3px; opacity: 1; }

.builder-pack-crimp {
  height: 11px;
  background:
    repeating-linear-gradient(
      90deg,
      #c8c8c8 0 4px,
      #989898 4px 8px
    );
  border-bottom: 1px solid #666;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.builder-pack-sleeve {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-top: -1px;
  border: 5px solid #0a0a0a;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-sizing: border-box;
}

.builder-pack-body {
  --pack-face-pad-inline: 7cqi;
  --pack-face-pad-block: 8cqi;
  --pack-face-gap: 1.4cqi;
  --pack-face-brand-size: clamp(5px, 5.5cqi, 12px);
  --pack-face-type-size: clamp(8px, 11cqi, 26px);
  --pack-face-count-size: clamp(4px, 4.8cqi, 10px);
  --pack-face-icon-width: 74cqi;
  --pack-face-icon-max-h: 40cqi;
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: 5 / 7;
  container-type: inline-size;
  background: linear-gradient(180deg, #505050 0%, #2a2a2a 48%, #181818 100%);
}

.builder-pack-face-art {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: var(--pack-face-gap);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding:
    var(--pack-face-pad-block)
    var(--pack-face-pad-inline)
    calc(var(--pack-face-pad-block) * 0.8);
  background:
    radial-gradient(ellipse 80% 50% at 50% 18%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #4a4a4a 0%, #242424 52%, #121212 100%);
}

.pack-face-brand,
.pack-face-type,
.pack-face-count-line {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.pack-face-brand {
  grid-row: 1;
  font-size: var(--pack-face-brand-size);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.pack-face-type {
  grid-row: 2;
  font-size: var(--pack-face-type-size);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: balance;
}

.builder-pack-face-icon {
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.builder-pack-face-icon img {
  width: min(var(--pack-face-icon-width), 74%);
  max-height: min(var(--pack-face-icon-max-h), 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.pack-face-count {
  grid-row: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45cqi;
  width: 100%;
}

.pack-face-count-line {
  font-size: var(--pack-face-count-size);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
}

.pack-face-count-line--sub {
  letter-spacing: 0.04em;
  text-transform: none;
}

.builder-pack-facedown,
.rip-pull {
  position: relative;
  display: block;
  grid-area: 1 / 1;
  place-self: center;
  width: var(--pack-card-w, 118px);
  aspect-ratio: 5 / 7;
  padding: 0;
  border: none;
  background: transparent;
  margin: 0;
}

.builder-pack-facedown {
  cursor: pointer;
  opacity: 0;
}

.builder-pack.is-stack-reveal .builder-pack-facedown,
.builder-pack.is-sliding .builder-pack-facedown,
.builder-pack.is-dealing .builder-pack-facedown,
.builder-pack.is-settled .builder-pack-facedown,
.builder-pack.is-revealed .builder-pack-facedown,
.builder-pack.is-piling .builder-pack-facedown,
.builder-pack.is-piling .rip-pull,
.builder-pack.is-exiting .builder-pack-facedown,
.builder-pack.is-exiting .rip-pull {
  opacity: 1;
}

.builder-pack.is-stack-reveal .builder-pack-facedown,
.builder-pack.is-sliding .builder-pack-facedown {
  transform: none;
}

.builder-pack.is-stack-reveal .builder-pack-facedown:nth-child(1),
.builder-pack.is-sliding .builder-pack-facedown:nth-child(1) { z-index: 1; transform: translate(0, 0); }
.builder-pack.is-stack-reveal .builder-pack-facedown:nth-child(2),
.builder-pack.is-sliding .builder-pack-facedown:nth-child(2) { z-index: 2; transform: translate(0, 2px); }
.builder-pack.is-stack-reveal .builder-pack-facedown:nth-child(3),
.builder-pack.is-sliding .builder-pack-facedown:nth-child(3) { z-index: 3; transform: translate(0, 4px); }
.builder-pack.is-stack-reveal .builder-pack-facedown:nth-child(4),
.builder-pack.is-sliding .builder-pack-facedown:nth-child(4) { z-index: 4; transform: translate(0, 6px); }
.builder-pack.is-stack-reveal .builder-pack-facedown:nth-child(5),
.builder-pack.is-sliding .builder-pack-facedown:nth-child(5) { z-index: 5; transform: translate(0, 8px); }
.builder-pack.is-stack-reveal .builder-pack-facedown:nth-child(6),
.builder-pack.is-sliding .builder-pack-facedown:nth-child(6) { z-index: 6; transform: translate(0, 10px); }

.builder-pack.is-dealing .builder-pack-facedown,
.builder-pack.is-settled .builder-pack-facedown,
.builder-pack.is-settled .rip-pull,
.builder-pack.is-revealed .builder-pack-facedown,
.builder-pack.is-revealed .rip-pull {
  transform: translate3d(var(--motion-x, 0px), var(--motion-y, 0px), 0);
}

.builder-pack.is-dealing:not(.is-burst) .builder-pack-facedown {
  transform: translate(0, 0);
  transition: none;
}

.builder-pack.is-dealing.is-burst:not(.is-settled) .builder-pack-facedown {
  transition: transform 160ms ease-out var(--deal-delay, 0ms);
}

.builder-pack.is-settled .builder-pack-facedown,
.builder-pack.is-settled .rip-pull {
  transition: transform 420ms cubic-bezier(0.34, 1.08, 0.48, 1) var(--deal-delay, 0ms);
}

.builder-pack.is-revealed .builder-pack-facedown,
.builder-pack.is-revealed .rip-pull {
  transition: none;
}

.builder-pack-facedown-back {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.85);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.045) 0 1px,
      transparent 1px 8px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 8px
    ),
    linear-gradient(180deg, #404040 0%, #1c1c1c 55%, #0a0a0a 100%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, filter 160ms ease;
  transform-style: preserve-3d;
}

.builder-pack-facedown:hover .builder-pack-facedown-back,
.builder-pack-facedown:focus-visible .builder-pack-facedown-back {
  filter: brightness(1.08);
}

.builder-pack-facedown.is-flipping .builder-pack-facedown-back {
  transform: rotateY(90deg);
}

.rip-pull .mobile-card,
.rip-pull .card-flip {
  width: 100%;
}

.builder-pack.is-piling .builder-pack-cards {
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.85, 1), opacity 420ms ease;
}

.builder-pack.is-piling:not(.is-pile-sweep) .builder-pack-facedown,
.builder-pack.is-piling:not(.is-pile-sweep) .rip-pull {
  transition: none;
}

.builder-pack.is-piling.is-pile-sweep .builder-pack-facedown,
.builder-pack.is-piling.is-pile-sweep .rip-pull {
  transition: transform 520ms cubic-bezier(0.34, 1.12, 0.48, 1);
}

.builder-pack.is-piling .builder-pack-facedown,
.builder-pack.is-piling .rip-pull {
  transform: translate(var(--pile-x, 0px), var(--pile-y, 0px)) rotate(var(--pile-r, 0deg));
}

.builder-pack.is-revealed.is-exiting .builder-pack-cards,
.builder-pack.is-exiting .builder-pack-cards {
  transform: translate(var(--pile-exit-x, 125%), var(--pile-exit-y, 0));
  opacity: 0;
  pointer-events: none;
}

.builder-pack.is-exiting .builder-pack-facedown,
.builder-pack.is-exiting .rip-pull {
  transform: translate(var(--pile-x, var(--motion-x, 0px)), var(--pile-y, var(--motion-y, 0px))) rotate(var(--pile-r, 0deg));
  transition: none;
}

/* Signature */
.builder-pack--signature .builder-pack-peel { border-color: #d8cbb6; }
.builder-pack--signature .builder-pack-stack {
  background: linear-gradient(180deg, #fdf9f2 0%, #efe6d6 55%, #e2d6c2 100%);
}
.builder-pack--signature .builder-pack-stack span {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 3px, transparent 3px 7px),
    #e0d4c0;
}
.builder-pack--signature .builder-pack-crimp {
  background: repeating-linear-gradient(90deg, #dba820 0 4px, #a87808 4px 8px);
  border-bottom-color: #7a5808;
}
.builder-pack--signature .builder-pack-sleeve { border-color: #c9bba6; }
.builder-pack--signature .builder-pack-body {
  background: linear-gradient(180deg, #f8f4ea 0%, #ebe3d4 52%, #ddd2bf 100%);
}
.builder-pack--signature .builder-pack-face-art {
  background:
    radial-gradient(ellipse 90% 55% at 50% 12%, rgba(255, 255, 255, 0.72), transparent 72%),
    linear-gradient(180deg, #faf6ee 0%, #efe6d6 55%, #e2d6c2 100%);
}
.builder-pack--signature .pack-face-brand { color: #4a3d2f; }
.builder-pack--signature .pack-face-type {
  color: #3d3428;
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
  letter-spacing: 0;
}
.builder-pack--signature .pack-face-count-line { color: #6b5b47; text-transform: none; }
.builder-pack--signature .pack-face-count-line--sub { color: #5a4a38; }

/* Vintage */
.builder-pack--vintage .builder-pack-peel { border-color: #2a1a10; }
.builder-pack--vintage .builder-pack-stack {
  background: linear-gradient(180deg, #6b4428 0%, #4a2e1a 55%, #2e1c10 100%);
}
.builder-pack--vintage .builder-pack-stack span {
  background:
    repeating-linear-gradient(90deg, rgba(255, 230, 190, 0.14) 0 3px, transparent 3px 7px),
    #3f2816;
}
.builder-pack--vintage .builder-pack-crimp {
  background: repeating-linear-gradient(90deg, #1a1a1a 0 4px, #0a0a0a 4px 8px);
  border-bottom-color: #000;
}
.builder-pack--vintage .builder-pack-sleeve { border-color: #1a1008; }
.builder-pack--vintage .builder-pack-body {
  background: linear-gradient(180deg, #6a4326 0%, #4a2e1a 50%, #2a1a10 100%);
}
.builder-pack--vintage .builder-pack-face-art {
  background:
    radial-gradient(ellipse 90% 55% at 50% 12%, rgba(255, 220, 170, 0.18), transparent 72%),
    linear-gradient(180deg, #6b4428 0%, #4a2e1a 55%, #2e1c10 100%);
}
.builder-pack--vintage .pack-face-brand { color: #f0e2c8; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); }
.builder-pack--vintage .pack-face-type { color: #f6ead4; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65); }
.builder-pack--vintage .pack-face-count-line { color: #dcc8a8; text-transform: none; }
.builder-pack--vintage .pack-face-count-line--sub { color: #f0d9a8; }

/* Limited Edition */
.builder-pack--limited .builder-pack-peel { border-color: #c9a010; }
.builder-pack--limited .builder-pack-stack {
  background: linear-gradient(180deg, #ffe566 0%, #f0c91a 55%, #d4a80c 100%);
}
.builder-pack--limited .builder-pack-stack span {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 3px, transparent 3px 7px),
    #e6b812;
}
.builder-pack--limited .builder-pack-crimp {
  background: repeating-linear-gradient(90deg, #2f6fd4 0 4px, #1a4fa8 4px 8px);
  border-bottom-color: #123a7a;
}
.builder-pack--limited .builder-pack-sleeve { border-color: #b8940e; }
.builder-pack--limited .builder-pack-body {
  background: linear-gradient(180deg, #ffe566 0%, #efc418 50%, #c9970c 100%);
}
.builder-pack--limited .builder-pack-face-art {
  background:
    radial-gradient(ellipse 90% 55% at 50% 12%, rgba(255, 255, 255, 0.45), transparent 72%),
    linear-gradient(180deg, #ffe86e 0%, #f0c91a 55%, #d4a80c 100%);
}
.builder-pack--limited .pack-face-brand { color: #143a8a; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.builder-pack--limited .pack-face-type { color: #0f2f72; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); }
.builder-pack--limited .pack-face-count-line { color: #1a4fa8; text-transform: none; }
.builder-pack--limited .pack-face-count-line--sub { color: #123a7a; }

/* Hex */
.builder-pack--blackhex .builder-pack-peel { border-color: #2a303c; }
.builder-pack--blackhex .builder-pack-stack {
  background: linear-gradient(180deg, #1a1e26 0%, #0c0e12 52%, #050608 100%);
}
.builder-pack--blackhex .builder-pack-stack span {
  background:
    repeating-linear-gradient(90deg, rgba(180, 195, 220, 0.16) 0 3px, transparent 3px 7px),
    #12151c;
}
.builder-pack--blackhex .builder-pack-crimp {
  background:
    repeating-linear-gradient(
      90deg,
      #3a4252 0 4px,
      #1c212c 4px 8px,
      #050608 8px 10px,
      #2a3140 10px 14px
    );
  border-bottom-color: #050608;
}
.builder-pack--blackhex .builder-pack-sleeve { border-color: #1c212c; }
.builder-pack--blackhex .builder-pack-body {
  background: linear-gradient(180deg, #12151c 0%, #080a0e 48%, #050608 100%);
}
.builder-pack--blackhex .builder-pack-face-art {
  background-color: #050608;
  background-image:
    radial-gradient(ellipse 110% 42% at 50% 0%, rgba(58, 66, 82, 0.35), transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='24.248' viewBox='0 0 28 24.248'%3E%3Cpath fill='%23161a22' d='M7 0l7 4.041v8.083L7 16.165 0 12.124V4.041z'/%3E%3Cpath fill='%230a0c11' d='M21 0l7 4.041v8.083l-7 4.041-7-4.041V4.041z'/%3E%3Cpath fill='%231c212c' d='M14 12.124l7 4.041v8.083l-7 4.041-7-4.041v-8.083z'/%3E%3C/svg%3E");
  background-size: auto, 22px 19.05px;
}
.builder-pack--blackhex .pack-face-brand { color: #f2f5fa; }
.builder-pack--blackhex .pack-face-type { color: #fff; letter-spacing: 0.16em; text-transform: uppercase; }
.builder-pack--blackhex .pack-face-count-line { color: #c8d0dc; text-transform: none; }
.builder-pack--blackhex .pack-face-count-line--sub { color: #e8ecf4; }

/* Pearl */
.builder-pack--pearlescent .builder-pack-peel { border-color: #d4dde8; }
.builder-pack--pearlescent .builder-pack-stack {
  background: linear-gradient(180deg, #ffffff 0%, #eef3f9 52%, #dce5f0 100%);
}
.builder-pack--pearlescent .builder-pack-stack span {
  background:
    repeating-linear-gradient(90deg, rgba(160, 185, 215, 0.22) 0 3px, transparent 3px 7px),
    #f4f7fb;
}
.builder-pack--pearlescent .builder-pack-crimp {
  background:
    repeating-linear-gradient(
      90deg,
      #e8eef6 0 4px,
      #c8d4e4 4px 8px,
      #f7fafc 8px 10px,
      #d5e0ec 10px 14px
    );
  border-bottom-color: #c0cedd;
}
.builder-pack--pearlescent .builder-pack-sleeve { border-color: #c8d4e4; }
.builder-pack--pearlescent .builder-pack-body {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4fa 48%, #e4ebf4 100%);
}
.builder-pack--pearlescent .builder-pack-face-art {
  background:
    radial-gradient(ellipse 110% 42% at 50% 0%, rgba(255, 255, 255, 0.95), transparent 58%),
    linear-gradient(160deg, #ffffff 0%, #f3f6fb 48%, #e8eef8 100%);
}
.builder-pack--pearlescent .pack-face-brand { color: #1a1f2a; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85); }
.builder-pack--pearlescent .pack-face-type { color: #1a1f2a; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85); }
.builder-pack--pearlescent .pack-face-count-line { color: #4a5568; text-transform: none; }
.builder-pack--pearlescent .pack-face-count-line--sub { color: #2a3344; }

/* Neon */
.builder-pack--nightneon .builder-pack-peel { border-color: #164e63; }
.builder-pack--nightneon .builder-pack-stack {
  background: linear-gradient(180deg, #0a0d14 0%, #05060a 52%, #030408 100%);
}
.builder-pack--nightneon .builder-pack-stack span {
  background:
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.22) 0 3px, transparent 3px 7px),
    #0a1018;
}
.builder-pack--nightneon .builder-pack-crimp {
  background:
    repeating-linear-gradient(
      90deg,
      #164e63 0 4px,
      #0a0d14 4px 8px,
      #030408 8px 10px,
      #155e75 10px 14px
    );
  border-bottom-color: #030408;
}
.builder-pack--nightneon .builder-pack-sleeve {
  border-color: #0e7490;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.22);
}
.builder-pack--nightneon .builder-pack-body {
  background: linear-gradient(180deg, #0a0d14 0%, #05060a 48%, #030408 100%);
}
.builder-pack--nightneon .builder-pack-face-art {
  background:
    radial-gradient(ellipse 110% 42% at 50% 0%, rgba(34, 211, 238, 0.28), transparent 58%),
    linear-gradient(165deg, #0a0d14 0%, #05060a 55%, #030408 100%);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.55), 0 0 14px rgba(34, 211, 238, 0.25);
}
.builder-pack--nightneon .pack-face-brand {
  color: #ecfeff;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.75), 0 1px 0 rgba(0, 0, 0, 0.9);
}
.builder-pack--nightneon .pack-face-type {
  color: #22d3ee;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.85), 0 1px 0 rgba(0, 0, 0, 0.85);
}
.builder-pack--nightneon .pack-face-count-line {
  color: #a5f3fc;
  text-shadow: 0 0 6px rgba(34, 211, 238, 0.55);
}
.builder-pack--nightneon .pack-face-count-line--sub { color: #67e8f9; }

/* Marble */
.builder-pack--marbleswirl {
  --ms-marble: #eef1f5;
  --ms-marble-deep: #d5dbe5;
  --ms-chrome: #9aa4b2;
  --ms-chrome-deep: #4a5564;
  --ms-chrome-bright: #e8eef6;
}
.builder-pack--marbleswirl .builder-pack-peel { border-color: var(--ms-chrome-deep); }
.builder-pack--marbleswirl .builder-pack-stack {
  background: linear-gradient(180deg, var(--ms-chrome-bright), var(--ms-chrome) 48%, var(--ms-chrome-deep));
}
.builder-pack--marbleswirl .builder-pack-stack span {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 3px, transparent 3px 7px),
    linear-gradient(90deg, #f0f4f9, #a8b2c0, #4a5564, #a8b2c0, #e8eef6);
}
.builder-pack--marbleswirl .builder-pack-crimp {
  background:
    repeating-linear-gradient(
      90deg,
      #e8eef6 0 4px,
      #a8b2c0 4px 8px,
      #f4f7fb 8px 10px,
      #4a5564 10px 14px
    );
  border-bottom-color: #343d4a;
}
.builder-pack--marbleswirl .builder-pack-sleeve { border-color: var(--ms-chrome); }
.builder-pack--marbleswirl .builder-pack-body {
  background: linear-gradient(165deg, #f7f9fc 0%, var(--ms-marble) 42%, var(--ms-marble-deep) 100%);
}
.builder-pack--marbleswirl .builder-pack-face-art {
  background:
    radial-gradient(ellipse 55% 35% at 18% 22%, rgba(70, 82, 102, 0.34), transparent 70%),
    radial-gradient(ellipse 45% 30% at 78% 28%, rgba(90, 102, 122, 0.28), transparent 65%),
    linear-gradient(142deg, transparent 38%, rgba(255, 255, 255, 0.55) 39.2%, transparent 40.6%),
    linear-gradient(160deg, #f7f9fc 0%, #e8ecf2 48%, #d5dbe5 100%);
}
.builder-pack--marbleswirl .pack-face-brand { color: #1c2430; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); }
.builder-pack--marbleswirl .pack-face-type { color: #1c2430; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); }
.builder-pack--marbleswirl .pack-face-count-line { color: #3d4654; text-transform: none; }
.builder-pack--marbleswirl .pack-face-count-line--sub { color: #2a3344; }

@media (max-width: 560px) {
  .rip-table { height: 480px; padding: 20px 10px 24px; }
  .builder-pack-cards { --pack-card-w: 104px; --pack-grid-gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .builder-pack,
  .builder-pack.is-again-enter,
  .builder-pack.is-again-enter.is-again-entered,
  .builder-pack-peel,
  .builder-pack-facedown,
  .builder-pack.is-piling .builder-pack-facedown,
  .builder-pack.is-piling .rip-pull,
  .builder-pack.is-exiting .builder-pack-cards {
    transition: none !important;
    animation: none !important;
  }
  .builder-pack.is-again-enter,
  .builder-pack.is-visible {
    transform: none;
    opacity: 1;
  }
  .builder-pack.is-sleeve-auto-slide .builder-pack-visual {
    animation: none;
    opacity: 0;
  }
  .pack-confetti-layer {
    display: none;
  }
}
