

.card-flipper, #review .card-wrapper, #copies-grid .copy-tile, .slab .well, .well.bare, .railcard { container-type: inline-size; }

.card-front, .card-back {
  position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box;
  border-radius: 5.5cqw;
  border: 1px solid #999999;
  padding: 5%;
  backface-visibility: hidden;
  box-shadow: 1.7cqw 1.7cqw 3.2cqw rgba(0, 0, 0, 0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #111;
}
.card-back { background: #333; }
.card-back.own { padding: 0; background: #fff; }
.card-back.own .card-image { position: absolute; top: 5%; left: 6.485%; width: 87.03%; height: 90%; object-fit: contain; }

.card-front .print { position: absolute; top: 5%; left: 6.485%; width: 87.03%; height: 90%; container-type: inline-size; }
.card img.card-image, .print img.card-image {
  width: 100%; height: 100%; max-width: 100%; border: 0; display: block;
  position: relative; top: var(--top, 0); left: var(--left, 0);
  object-fit: contain; z-index: 3; cursor: pointer; pointer-events: auto;
}
.card-wrapper.bonus .print img.card-image { object-fit: cover; }
.print .edition { position: absolute; transform: translate(-50%, -50%); z-index: 4; pointer-events: none; white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif; font-weight: normal; letter-spacing: .15em; line-height: 1; }

.T1 { --top: -0.2%; }
.T2 { --top: -0.4%; }
.T3 { --top: -0.7%; }
.T4 { --top: -1.0%; }
.T5 { --top: -1.4%; }
.T6 { --top: -1.8%; }
.B1 { --top: 0.2%; }
.B2 { --top: 0.4%; }
.B3 { --top: 0.7%; }
.B4 { --top: 1.0%; }
.B5 { --top: 1.4%; }
.B6 { --top: 1.8%; }

.L1 { --left: -0.3%; }
.L2 { --left: -0.6%; }
.L3 { --left: -0.9%; }
.L4 { --left: -1.2%; }
.L5 { --left: -1.5%; }
.L6 { --left: -1.8%; }
.R1 { --left: 0.3%; }
.R2 { --left: 0.6%; }
.R3 { --left: 0.9%; }
.R4 { --left: 1.2%; }
.R5 { --left: 1.5%; }
.R6 { --left: 1.8%; }

.card-back.silver {
  border: 3px solid silver;
  box-shadow: inset 0 0 5px #ffffff;
  animation: borderGlow 3s ease-in-out infinite;
}

.card-front.silver {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    linear-gradient(
      45deg,
      #666666 0%,
      #ffffff 30%,
      #999999 50%,
      #ffffff 70%,
      #666666 100%
    );
  border: 2px solid silver;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-blend-mode: overlay, overlay, normal;
  animation: sheen 3s ease-in-out infinite;
}

.card-front.gold {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    linear-gradient(
      45deg,
      #3a2806 0%,
      #f0dc9a 28%,
      #bd9620 50%,
      #f0dc9a 72%,
      #3a2806 100%
    );
  border: 2px solid #bd9620;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-blend-mode: overlay, overlay, normal;
  animation: sheen 3s ease-in-out infinite;
}

.card-front.ruby {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    linear-gradient(
      45deg,
      #0a0204 0%,
      #c41a2e 28%,
      #3a0610 50%,
      #c41a2e 72%,
      #0a0204 100%
    );
  border: 2px solid #b01830;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-blend-mode: overlay, overlay, normal;
  animation: sheen 3s ease-in-out infinite;
}

.card-front.flame {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    linear-gradient(
      45deg,
      #140600 0%,
      #ff7a12 26%,
      #ffc23a 38%,
      #6a1a02 50%,
      #ff7a12 66%,
      #ffc23a 76%,
      #140600 100%
    );
  border: 2px solid #e8701e;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-blend-mode: overlay, overlay, normal;
  animation: sheen 3s ease-in-out infinite;
}

.card-front.sapphire {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    linear-gradient(
      45deg,
      #02040a 0%,
      #1a4fc4 28%,
      #06163a 50%,
      #1a4fc4 72%,
      #02040a 100%
    );
  border: 2px solid #1848b0;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-blend-mode: overlay, overlay, normal;
  animation: sheen 3s ease-in-out infinite;
}

.card-front.emerald {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    linear-gradient(
      45deg,
      #020a05 0%,
      #1a9a52 28%,
      #06301a 50%,
      #1a9a52 72%,
      #020a05 100%
    );
  border: 2px solid #137a45;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-blend-mode: overlay, overlay, normal;
  animation: sheen 3s ease-in-out infinite;
}

.card-front.amethyst {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    linear-gradient(
      45deg,
      #07020a 0%,
      #8a2ec4 28%,
      #2a0a3a 50%,
      #8a2ec4 72%,
      #07020a 100%
    );
  border: 2px solid #7a28b0;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-blend-mode: overlay, overlay, normal;
  animation: sheen 3s ease-in-out infinite;
}

.card-front.pearl {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    linear-gradient(
      45deg,
      #6e6878 0%,
      #ece6dc 28%,
      #c4bad0 50%,
      #ece6dc 72%,
      #6e6878 100%
    );
  border: 2px solid #c4bad0;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-blend-mode: overlay, overlay, normal;
  animation: sheen 3s ease-in-out infinite;
}

.card-front.holo {

  background:
    repeating-radial-gradient(ellipse 60% 40% at 30% 70%, rgba(255, 255, 255, 0) 0 3px, rgba(225, 245, 255, 0.28) 3px 4.2px, rgba(255, 255, 255, 0) 4.2px 8.5px),
    repeating-radial-gradient(ellipse 70% 50% at 75% 25%, rgba(255, 255, 255, 0) 0 3.8px, rgba(225, 245, 255, 0.22) 3.8px 5px, rgba(255, 255, 255, 0) 5px 10px),
    linear-gradient(135deg, #a9c3d9 0%, #d3dee8 25%, #93cfd4 48%, #5b8fbb 68%, #c2d2e0 88%, #8ba9c4 100%);
  border: 2px solid #dfe6f5;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  animation: ripple 14s ease-in-out infinite;

}

.card-front.prism {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 0.4vw,
      rgba(0, 0, 0, 0.15) 0.4vw,
      rgba(0, 0, 0, 0.15) 0.5vw
    ),
    linear-gradient(
      45deg,
      #5d6b88 0%,
      #ffffff 22%,
      #ffc7ec 44%,
      #c2fff0 62%,
      #ffffff 80%,
      #5d6b88 100%
    );
  border: 2px solid #cfd8e8;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-blend-mode: overlay, overlay, normal;
  animation: sheen 3s ease-in-out infinite;
}

.card-front.carbon {

  background:
    linear-gradient(
      45deg,
      rgba(255, 255, 255, 0) 34%,
      rgba(255, 255, 255, 0.16) 50%,
      rgba(255, 255, 255, 0) 66%
    ),
    linear-gradient(27deg, #151515 5px, transparent 5px),
    linear-gradient(207deg, #151515 5px, transparent 5px),
    linear-gradient(27deg, #222222 5px, transparent 5px),
    linear-gradient(207deg, #222222 5px, transparent 5px),
    linear-gradient(90deg, #1b1b1b 10px, transparent 10px),
    linear-gradient(
      #1d1d1d 25%,
      #1a1a1a 25%,
      #1a1a1a 50%,
      transparent 50%,
      transparent 75%,
      #242424 75%,
      #242424
    );
  background-color: #131313;
  background-position: 0% 0%, 0 5px, 10px 0, 0 10px, 10px 5px, 0 0, 0 0;
  background-size: 200% 200%, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  border: 2px solid #3a3a42;
  animation: carbon 3s ease-in-out infinite;
}
.card-front.onyx {

  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 0.4vw,
      #555555 0.4vw,
      #555555 0.5vw
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 0.4vw,
      #555555 0.4vw,
      #555555 0.5vw
    ),
    linear-gradient(
      45deg,
      #0a0a0a 0%,
      #4a4a52 28%,
      #16161a 50%,
      #5a5a64 72%,
      #0a0a0a 100%
    );
  border: 2px solid #55555f;
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-blend-mode: overlay, overlay, normal;
  animation: sheen 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { border-width: 4px; box-shadow: none; }
  50% { border-width: 3px; box-shadow: 0 0 12px currentColor, 0 0 24px currentColor; }
}
