/* ============================================================
   Product cards — shop pages, home rows, related items
   ============================================================ */
.nw-pcard {
  border-radius: 20px; border: 0; background: #fff; overflow: visible;
  box-shadow: 0 1px 0 var(--nw-line), 0 6px 18px rgba(11, 42, 91, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nw-pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11, 42, 91, .16); border-color: transparent; }

/* Picture on a display stage */
.nw-pcard-img {
  position: relative; display: block; aspect-ratio: auto; padding: 10px 10px 0; background: none; perspective: 900px;
}
.nw-pcard-stage {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 6; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(60, 200, 236, .28), transparent 60%),
    linear-gradient(160deg, #eef8fd, #dcefff);
}
.nw-pcard-stage::after {   /* soft floor shadow */
  content: ""; position: absolute; left: 50%; bottom: 7%; width: 58%; height: 10px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 42, 91, .28), transparent);
}
.nw-pcard-stage img {
  position: relative; z-index: 1; width: auto; height: 84%; max-width: 86%; object-fit: contain; padding: 0;
  border-radius: 6px; filter: drop-shadow(0 8px 10px rgba(11, 42, 91, .28));
  transition: transform .3s ease;
}
.nw-pcard:hover .nw-pcard-stage img { transform: translateY(-6px) rotateY(-10deg) rotateX(4deg); }

/* Labels on the picture */
.nw-pcard-tags { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.nw-tag {
  display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .68rem; font-weight: 900; letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(11, 42, 91, .15);
}
.nw-tag-cond { background: #fff; color: var(--nw-navy); }
.nw-tag-graded { background: var(--nw-yellow); color: var(--nw-navy); }
.nw-tag-sale { background: var(--nw-red); color: #fff; }
.nw-tag-left { position: absolute; top: 18px; right: 18px; z-index: 2; background: var(--nw-red); color: #fff; }
.nw-badge { display: none; }   /* old corner badge — replaced by the labels */

/* Name + tags */
.nw-pcard-body { padding: 12px 14px 14px; gap: 8px; }
.nw-pcard-title { font-size: .95rem; font-weight: 900; color: var(--nw-navy); line-height: 1.25; min-height: 2.5em; }
.nw-pcard-chips { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.nw-pcard-chips span {
  display: inline-block; max-width: 100%; padding: 2px 8px; border-radius: 7px; font-size: .72rem; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nw-chip-set { background: var(--nw-aqua-soft); color: #0e5a8a; max-width: 62% !important; }
.nw-chip-num { background: #eef1f6; color: var(--nw-muted); }
.nw-chip-var { background: #f3edff; color: #5b3fb0; }
.nw-pcard-meta { display: none; }

/* Price + button */
.nw-pcard-buy { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.nw-pcard-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.nw-pcard .nw-price { font-size: 1.35rem; letter-spacing: -.3px; }
.nw-pcard .nw-stock { font-size: .72rem; }
.nw-pcard .nw-stock.is-in { color: var(--nw-green); }
.nw-pcard .nw-btn.nw-add {
  width: 100%; gap: 8px; padding: 11px 12px; border-radius: 14px; font-size: .9rem;
  background: var(--nw-navy); color: #fff; box-shadow: 0 6px 14px rgba(11, 42, 91, .2);
  transition: background .15s, color .15s, transform .1s;
}
.nw-pcard .nw-btn.nw-add svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.nw-pcard .nw-btn.nw-add:hover { background: var(--nw-yellow); color: var(--nw-navy); }
.nw-pcard .nw-btn.nw-add:active { transform: scale(.97); }
.nw-pcard .nw-btn.nw-add.loading { opacity: .7; pointer-events: none; }
.nw-pcard .nw-btn.nw-add.loading span::after { content: "…"; }
.nw-pcard .nw-btn.nw-add.added { background: var(--nw-green); color: #fff; }
.nw-pcard .nw-btn.nw-add.added span { font-size: 0; }
.nw-pcard .nw-btn.nw-add.added span::before { content: "✓ Added"; font-size: .9rem; }
.nw-pcard a.added_to_cart { display: block; text-align: center; font-size: .8rem; font-weight: 900; margin-top: -2px; }
.nw-pcard .nw-btn-ghost { width: 100%; padding: 10px 12px; font-size: .88rem; }

/* Dark showcase band on the home page */
.nw-band-dark .nw-pcard { box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }

/* List view (shop pages): picture left, details middle, price + button right */
.nw-results.is-list .nw-pcard { flex-direction: row; align-items: center; }
.nw-results.is-list .nw-pcard:hover { transform: translateY(-2px); }
.nw-results.is-list .nw-pcard-img { width: 190px; flex-shrink: 0; padding: 10px; min-height: 0; }
.nw-results.is-list .nw-pcard-stage { aspect-ratio: 1; }
.nw-results.is-list .nw-pcard-body { flex: 1; padding: 16px 20px; }
.nw-results.is-list .nw-pcard-title { font-size: 1.1rem; min-height: 0; }
.nw-results.is-list .nw-pcard-chips span { font-size: .78rem; }
.nw-results.is-list .nw-pcard-buy { width: 230px; margin-top: 0; }
.nw-results.is-list .nw-pcard .nw-price { font-size: 1.7rem; }

@media (max-width: 600px) {
  .nw-pcard-body { padding: 10px 10px 12px; }
  .nw-pcard .nw-price { font-size: 1.15rem; }
  .nw-pcard .nw-btn.nw-add { padding: 10px 8px; font-size: .82rem; }
  .nw-results.is-list .nw-pcard-img { width: 120px; }
  .nw-results.is-list .nw-pcard-buy { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-pcard, .nw-pcard-stage img { transition: none; }
  .nw-pcard:hover .nw-pcard-stage img { transform: none; }
}

/* Tweaks: bigger picture, full set name, price + button always lined up */
.nw-pcard-stage img { height: 92%; max-width: 92%; }
.nw-chip-set { max-width: 100% !important; }
.nw-results:not(.is-list) .nw-pcard-main, .nw-grid-front .nw-pcard-main,
.related .nw-pcard-main, .upsells .nw-pcard-main { display: flex; flex-direction: column; gap: 6px; }
.nw-results:not(.is-list) .nw-pcard-buy, .nw-grid-front .nw-pcard-buy,
.related .nw-pcard-buy, .upsells .nw-pcard-buy { display: flex; margin-top: auto; }
.nw-pcard .nw-btn { margin-top: 0; }
.nw-pcard-body { display: flex; flex-direction: column; flex: 1; }
/* Labels get their own strip above the card, so they don't cover it */
.nw-pcard-stage { padding: 30px 0 10px; }
.nw-pcard-stage img { height: 100%; max-height: 100%; }
.nw-pcard-stage::after { bottom: 4%; }
.nw-pcard-tags { top: 16px; left: 16px; flex-direction: row; }
.nw-tag-left { top: 16px; right: 16px; }

/* ── Name in a shop-coloured bar at the bottom of the picture; tighter spacing ── */
.nw-pcard-img { position: relative; padding: 8px 8px 0; }
.nw-pcard-stage { padding: 28px 0 60px; border-radius: 16px; }
.nw-pcard-stage::after { bottom: 58px; }
.nw-pcard-img > .nw-pcard-title {
  position: absolute; left: 8px; right: 8px; bottom: 0; z-index: 3; min-height: 52px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding: 9px 12px 8px; border-radius: 0 0 16px 16px; line-height: 1.25;
  background: linear-gradient(160deg, #1d74d0 0%, #123d80 55%, #0b2a5b 100%);
  color: #fff; font-size: .88rem; font-weight: 900; text-decoration: none;
}
.nw-pcard-img > .nw-pcard-title:hover { color: var(--nw-yellow); text-decoration: none; }
.nw-pcard-tags { top: 14px; left: 14px; }
.nw-tag-left { top: 14px; right: 14px; }
.nw-pcard-body { padding: 10px 10px 10px; gap: 8px; }
.nw-pcard-chips { min-height: 0; }
.nw-pcard-main { gap: 0 !important; }
.nw-pcard-buy { gap: 6px; }
.nw-pcard .nw-btn.nw-add { padding: 10px 12px; }
/* List view: the name bar sits under the smaller picture */
.nw-results.is-list .nw-pcard-img > .nw-pcard-title { font-size: .8rem; min-height: 44px; }
.nw-results.is-list .nw-pcard-stage { padding-bottom: 50px; aspect-ratio: 4 / 5; }
/* Taller picture area so the card stays big above the name bar */
.nw-pcard-stage { aspect-ratio: 3 / 4; padding: 26px 0 58px; }
.nw-pcard-stage img { height: 100%; max-width: 94%; }
.nw-results.is-list .nw-pcard-stage { aspect-ratio: 4 / 5; }

/* ── Name + tags together in the blue bar at the bottom of the picture ── */
.nw-pcard-stage { padding-bottom: 86px; }
.nw-pcard-bar {
  position: absolute; left: 8px; right: 8px; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 6px;
  padding: 9px 11px 10px; border-radius: 0 0 16px 16px;
  background: linear-gradient(160deg, #1d74d0 0%, #123d80 55%, #0b2a5b 100%);
}
.nw-pcard-bar > .nw-pcard-title {
  position: static; min-height: 2.5em; padding: 0; border-radius: 0; background: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: #fff; font-size: .88rem; font-weight: 900; line-height: 1.25;
}
.nw-pcard-bar > .nw-pcard-title:hover { color: var(--nw-yellow); text-decoration: none; }
.nw-pcard-bar .nw-pcard-chips { flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.nw-pcard-bar .nw-pcard-chips span { flex-shrink: 1; min-width: 0; font-size: .68rem; padding: 2px 7px; border-radius: 6px; }
.nw-pcard-bar .nw-chip-set { background: rgba(60, 200, 236, .28); color: #dff6ff; flex-shrink: 2; }
.nw-pcard-bar .nw-chip-num { background: rgba(255, 255, 255, .16); color: #e5efff; flex-shrink: 0; }
.nw-pcard-bar .nw-chip-var { background: rgba(255, 210, 63, .9); color: var(--nw-navy); }
.nw-pcard-body { padding-top: 10px; }
/* List view */
.nw-results.is-list .nw-pcard-stage { padding-bottom: 76px; }
.nw-results.is-list .nw-pcard-bar > .nw-pcard-title { font-size: .8rem; }
/* The type tag keeps its full width; a long set name shortens first */
.nw-pcard-bar .nw-chip-var { flex-shrink: 0; }
.nw-pcard-bar .nw-chip-set { flex-shrink: 1; }
.nw-pcard-bar .nw-pcard-chips span.nw-chip-var { flex-shrink: 0; }
.nw-pcard-bar .nw-pcard-chips span.nw-chip-num { flex-shrink: 0; }
.nw-pcard-bar .nw-pcard-chips span.nw-chip-set { flex-shrink: 1; }
/* A bit taller so the card stays big above the bar */
.nw-pcard-stage { aspect-ratio: 5 / 7; }
.nw-pcard-stage { aspect-ratio: 2 / 3; padding: 24px 0 80px; }
.nw-results.is-list .nw-pcard-stage { aspect-ratio: 4 / 5; padding-bottom: 72px; }
/* Tag sits right under the name (no empty line after short names) */
.nw-pcard-bar { gap: 4px; padding: 8px 11px 9px; }
.nw-pcard-bar > .nw-pcard-title { min-height: 0; }

/* ── Price and button side by side ── */
.nw-pcard-buy, .nw-results:not(.is-list) .nw-pcard-buy, .nw-grid-front .nw-pcard-buy,
.related .nw-pcard-buy, .upsells .nw-pcard-buy {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 8px;
}
.nw-pcard-price-row { flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
.nw-pcard .nw-price { font-size: 1.3rem; line-height: 1.1; white-space: nowrap; }
.nw-pcard .nw-stock.is-in { font-size: .66rem; }
.nw-pcard .nw-btn.nw-add { width: auto; flex-shrink: 0; padding: 10px 14px; gap: 6px; }
.nw-add-long { display: none; }
.nw-add-short { display: inline; }
.nw-pcard .nw-btn.nw-add.added span { display: none; }
.nw-pcard .nw-btn.nw-add.added::after { content: "✓ Added"; font-size: .85rem; }
.nw-pcard .nw-btn.nw-add.added span::before { content: none; }
.nw-pcard .nw-btn-ghost { width: auto; flex-shrink: 0; padding: 9px 12px; font-size: .8rem; }
.nw-pcard-buy > .nw-stock.is-out { font-size: .72rem; }
/* List view has room for the full words */
.nw-results.is-list .nw-add-long { display: inline; }
.nw-results.is-list .nw-add-short { display: none; }
.nw-results.is-list .nw-pcard-buy { width: 300px; }
@media (max-width: 600px) {
  .nw-pcard .nw-price { font-size: 1.1rem; }
  .nw-pcard .nw-btn.nw-add { padding: 9px 10px; }
  .nw-results.is-list .nw-pcard-buy { width: 100%; }
}
/* Columns never grow past the page edge */
.nw-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nw-results.is-list .nw-grid { grid-template-columns: minmax(0, 1fr); }
.nw-pcard { min-width: 0; }
.nw-pcard-body, .nw-pcard-buy { min-width: 0; }
@media (max-width: 1100px) { .nw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .nw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px), (max-width: 600px) { .nw-results.is-list .nw-grid { grid-template-columns: minmax(0, 1fr); } }

/* Card type label (Holo, Reverse Holo…) sits just above the blue bar */
.nw-pcard-bar > .nw-tag-var {
  position: absolute; left: 6px; bottom: calc(100% + 6px); z-index: 4; max-width: calc(100% - 12px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(100deg, #ffe0f0 0%, #dff1ff 35%, #e3ffe0 65%, #fff4cf 100%);
  color: var(--nw-navy); box-shadow: 0 2px 8px rgba(11, 42, 91, .2), inset 0 0 0 1px rgba(255, 255, 255, .8);
}

/* Every blue bar the same height: room for a two-line name, a one-line name
   sits in the middle, the set tag stays at the bottom. */
.nw-pcard-bar {
  display: grid; grid-template-rows: 1fr auto; row-gap: 4px; height: 78px; box-sizing: border-box;
  padding: 7px 11px 8px;
}
.nw-pcard-bar > .nw-pcard-title { align-self: center; }
.nw-pcard-bar .nw-pcard-chips { align-self: end; }
.nw-pcard-stage { padding-bottom: 82px; }
.nw-results.is-list .nw-pcard-bar { height: 70px; }
.nw-results.is-list .nw-pcard-stage { padding-bottom: 74px; }
/* Slimmer blue bar (still the same size on every card) */
.nw-pcard-bar { height: 64px; padding: 6px 10px 6px; row-gap: 3px; }
.nw-pcard-bar > .nw-pcard-title { font-size: .82rem; line-height: 1.2; }
.nw-pcard-bar .nw-pcard-chips span { font-size: .62rem; padding: 1px 6px; }
.nw-pcard-stage { padding-bottom: 68px; }
.nw-results.is-list .nw-pcard-bar { height: 60px; }
.nw-results.is-list .nw-pcard-stage { padding-bottom: 64px; }

/* ── Set + card type as labels above the blue bar; the bar holds just the name ── */
.nw-pcard-labels {
  position: absolute; left: 6px; right: 6px; bottom: calc(100% + 6px); z-index: 4;
  display: flex; gap: 4px; align-items: center; min-width: 0;
}
.nw-pcard-labels .nw-tag {
  position: static; max-width: none; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: .66rem; padding: 3px 8px;
}
.nw-pcard-labels .nw-tag-set {
  flex-shrink: 1; min-width: 0; background: var(--nw-navy); color: #fff;
  box-shadow: 0 2px 8px rgba(11, 42, 91, .25), inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.nw-pcard-labels .nw-tag-num { background: #fff; color: var(--nw-navy); }
.nw-pcard-labels .nw-tag-var { position: static; }
/* Slim bar: name only (always two lines tall so every bar matches) */
.nw-pcard-bar { display: flex; align-items: center; height: 48px; padding: 6px 10px; }
.nw-pcard-bar > .nw-pcard-title { flex: 1; }
.nw-pcard-stage { padding-bottom: 54px; }
.nw-results.is-list .nw-pcard-bar { height: 46px; }
.nw-results.is-list .nw-pcard-stage { padding-bottom: 50px; }
/* Card type on the left, set on the right */
.nw-pcard-labels .nw-tag-var { order: 0; }
.nw-pcard-labels .nw-tag-num { order: 1; }
.nw-pcard-labels .nw-tag-set { order: 2; margin-left: auto; }
.nw-pcard-labels .nw-tag-var {
  background: linear-gradient(100deg, #ffe0f0 0%, #dff1ff 35%, #e3ffe0 65%, #fff4cf 100%);
  color: var(--nw-navy); box-shadow: 0 2px 8px rgba(11, 42, 91, .2), inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.nw-pcard-bar > .nw-pcard-title { text-align: left; width: 100%; }
/* Name: the link fills the bar and centres; the inner text stops at two lines */
.nw-pcard-bar > .nw-pcard-title { display: flex; align-items: center; height: 100%; overflow: visible; -webkit-line-clamp: unset; }
.nw-pcard-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Thinner name bar, smaller text (still two lines max, same height on every card) */
.nw-pcard-bar { height: 38px; padding: 4px 9px; border-radius: 0 0 14px 14px; }
.nw-pcard-bar > .nw-pcard-title { font-size: .72rem; line-height: 1.15; font-weight: 800; }
.nw-pcard-stage { padding-bottom: 42px; }
.nw-results.is-list .nw-pcard-bar { height: 38px; }
.nw-results.is-list .nw-pcard-stage { padding-bottom: 42px; }

/* ============================================================
   WOW: holo foil that follows the mouse, slabs
   ============================================================ */
.nw-pcard { position: relative; }
.nw-pcard-art {
  position: relative; display: inline-flex; height: 100%; max-width: 94%;
  transform: perspective(700px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateY(var(--ty, 0px));
  transition: transform .18s ease-out; will-change: transform;
}
.nw-pcard-stage .nw-pcard-art img { height: 100%; max-width: 100%; transform: none !important; }
.nw-pcard:hover .nw-pcard-art { --ty: -5px; }

/* The foil layer sits exactly over the card picture */
.nw-foil {
  position: absolute; inset: 0; border-radius: 6px; pointer-events: none; z-index: 2;
  mix-blend-mode: color-dodge; opacity: .28;
  background:
    radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255, 255, 255, .55), transparent 38%),
    linear-gradient(115deg, transparent 0%, rgba(255, 0, 170, .6) 20%, rgba(255, 235, 0, .55) 34%, rgba(0, 255, 190, .55) 48%,
      rgba(0, 170, 255, .6) 62%, rgba(190, 0, 255, .55) 76%, transparent 100%);
  background-size: 100% 100%, 300% 300%;
  background-position: 0 0, var(--fx, 50%) var(--fy, 50%);
  animation: nwFoilDrift 7s ease-in-out infinite;
  transition: opacity .2s;
}
@keyframes nwFoilDrift {
  0%, 100% { background-position: 0 0, 0% 30%; }
  50%      { background-position: 0 0, 100% 70%; }
}
.nw-pcard:hover .nw-foil { opacity: .8; }
.nw-pcard.is-tilting .nw-foil { animation: none; }
/* Holo: the artwork window shines. Reverse Holo: everything except the artwork. */
.nw-pcard.is-holo .nw-foil {
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, #000 10%, #000 54%, transparent 54%);
          mask-image: linear-gradient(to bottom, transparent 10%, #000 10%, #000 54%, transparent 54%);
}
.nw-pcard.is-reverse .nw-foil {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 10%, transparent 10%, transparent 54%, #000 54%);
          mask-image: linear-gradient(to bottom, #000 0, #000 10%, transparent 10%, transparent 54%, #000 54%);
}

/* Graded slabs: a soft gold glow behind the slab */
.nw-pcard.is-slab .nw-pcard-stage {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 205, 60, .38), transparent 60%),
    linear-gradient(160deg, #fffaf0, #fbefd0);
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .nw-foil { animation: none; }
  .nw-pcard-art { transform: none; }
}
/* Foil cards: the picture box is exactly card-shaped, so the shine never spills */
.nw-pcard.has-foil .nw-pcard-art { aspect-ratio: 63 / 88; height: 100%; width: auto; max-width: 94%; }
.nw-pcard.has-foil .nw-pcard-stage .nw-pcard-art img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.nw-pcard.has-foil .nw-foil { border-radius: 5px; }
.nw-pcard:hover .nw-foil { opacity: 1; }
.nw-pcard.is-holo .nw-foil { opacity: .4; }
.nw-pcard.is-holo:hover .nw-foil { opacity: 1; }
/* Stronger, truer rainbow foil */
.nw-foil {
  mix-blend-mode: hard-light;
  background:
    radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255, 255, 255, .5), transparent 35%),
    repeating-linear-gradient(115deg,
      rgba(255, 0, 128, .55) 0%, rgba(255, 196, 0, .5) 6%, rgba(0, 255, 160, .5) 12%,
      rgba(0, 160, 255, .55) 18%, rgba(170, 0, 255, .5) 24%, rgba(255, 0, 128, .55) 30%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--fx, 50%) var(--fy, 50%);
}
.nw-pcard.has-foil .nw-foil { opacity: .22; }
.nw-pcard.has-foil:hover .nw-foil { opacity: .6; }

/* "Top" rows on the front page: a ribbon with each card's place —
   No. 1 gold, No. 2 silver, No. 3 bronze. */
.nw-row-ranked .nw-grid-front { counter-reset: nw-rank; }
.nw-row-ranked .nw-pcard { counter-increment: nw-rank; }
.nw-row-ranked .nw-pcard::before {
  content: "No. " counter(nw-rank);
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 6; white-space: nowrap;
  padding: 3px 14px; border-radius: 99px; font-size: .74rem; font-weight: 900; letter-spacing: .04em;
  background: linear-gradient(135deg, #eef3fb, #c9d6ea); color: var(--nw-navy);
  box-shadow: 0 4px 10px rgba(11, 37, 84, .18), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.nw-row-ranked .nw-pcard:nth-child(1)::before { background: linear-gradient(135deg, #fff1a8, #f5c400 55%, #e0a100); box-shadow: 0 4px 12px rgba(224, 161, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .7); }
.nw-row-ranked .nw-pcard:nth-child(2)::before { background: linear-gradient(135deg, #ffffff, #d7dde6 55%, #aab4c2); }
.nw-row-ranked .nw-pcard:nth-child(3)::before { background: linear-gradient(135deg, #ffe0c2, #e3a06a 55%, #b8733d); color: #fff; }
