.caliber-slab-stage {
  --slab-w: 280px;
  --slab-h: 420px;
  width: var(--slab-w);
  height: var(--slab-h);
  perspective: 1200px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caliber-slab {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(4deg);
  animation: caliber-slab-float 6s ease-in-out infinite;
}

@keyframes caliber-slab-float {
  0%,
  100% {
    transform: rotateY(-14deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotateY(-10deg) rotateX(2deg) translateY(-12px);
  }
}

.caliber-slab-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(244, 248, 255, 0.76) 55%,
    rgba(244, 241, 234, 0.78) 100%
  );
  border-radius: 16px;
  box-shadow:
    0 40px 80px rgba(10, 15, 28, 0.25),
    0 2px 8px rgba(10, 15, 28, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.92),
    inset 0 0 0 14px rgba(10, 15, 28, 0.035),
    inset 0 30px 70px rgba(255, 255, 255, 0.34);
  overflow: hidden;
  backface-visibility: hidden;
}

.caliber-slab-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  mix-blend-mode: screen;
}

.caliber-slab-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(10, 15, 28, 0.1);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  pointer-events: none;
  z-index: 1;
}

.caliber-slab-label {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 86px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0b66c3 0%, #0a59a8 100%);
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 12px;
  z-index: 2;
}

.caliber-slab-brand {
  font-family: "Genos", sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1;
}

.caliber-slab-cert {
  font-family: "Genos", sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 6px;
}

.caliber-slab-gradebox {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.caliber-slab-grade {
  font-family: "Genos", sans-serif;
  font-weight: 900;
  font-size: 46px;
  line-height: 0.85;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.98);
}

.caliber-slab-tier {
  font-family: "Genos", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.caliber-slab-window {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 112px;
  bottom: 14px;
  border-radius: 12px;
  border: 1px solid rgba(10, 15, 28, 0.18);
  background: rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 8px 22px rgba(10, 15, 28, 0.08),
    0 10px 18px rgba(10, 15, 28, 0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10px;
  z-index: 2;
}

.caliber-slab-card {
  height: 100%;
  width: auto;
  aspect-ratio: 63 / 88;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 10px 20px rgba(10, 15, 28, 0.1);
}

.caliber-slab-window img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.caliber-slab-back {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 28, 0.3);
  border-radius: 16px;
  transform: translateZ(-14px);
}

.caliber-slab-shadow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  width: 70%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(10, 15, 28, 0.28) 0%, transparent 70%);
  transform: translateX(-50%) rotateX(90deg);
  filter: blur(8px);
  animation: caliber-shadow-float 6s ease-in-out infinite;
}

@keyframes caliber-shadow-float {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) rotateX(90deg) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translateX(-50%) rotateX(90deg) scale(0.9);
  }
}
