/* PRANATARA Top Number Reposition v001 — chat-128.
   The former crown ornament is removed from markup. The existing three-digit
   card number is rendered once at the top, without a replacement ornament. */
.heirloom-cartouche-frame-v001 > .heirloom-top-number {
  position: absolute;
  z-index: 6;
  top: 3px;
  left: 50%;
  min-width: 3.5ch;
  transform: translateX(-50%);
  color: #fff8e6;
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 750;
  font-style: normal;
  line-height: 1;
  letter-spacing: .08em;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: center;
  text-shadow: 0 1px 0 var(--frame-shadow), 0 0 2px var(--frame-shadow);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  animation: none !important;
  transition: none !important;
}

#grid > .holo-card .heirloom-top-number {
  top: 3px;
  font-size: 10px;
}

.collectible-card.holo-card .heirloom-top-number {
  top: 3px;
  font-size: 11px;
}

@media (max-width: 420px) {
  .heirloom-cartouche-frame-v001 > .heirloom-top-number {
    top: 3px;
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heirloom-cartouche-frame-v001 > .heirloom-top-number {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .heirloom-cartouche-frame-v001 > .heirloom-top-number {
    color: CanvasText;
    text-shadow: none;
    forced-color-adjust: none;
  }
}
