/* Approved 1024x1536 assets, calibrated for portrait cover consumers only.
 * Eye/chin source Y: Siyan 210/350; Shinian 262/432;
 * Lujin 288/470; Shenqinghe 240/390.
 * Keep eyes near 30% and chin near 46% of the cover. Native aspect ratio
 * remains unchanged. These asset crops do not alter full-stage portraits. */
img[data-bond-roster-portrait="siyan"] { --bond-cover-height: 175.542857%; --bond-cover-top: 6%; }
img[data-bond-roster-portrait="shinian"] { --bond-cover-height: 144.564706%; --bond-cover-top: 5.341176%; }
img[data-bond-roster-portrait="luchen"] { --bond-cover-height: 135.032967%; --bond-cover-top: 4.681319%; }
img[data-bond-roster-portrait="guqingyan"] { --bond-cover-height: 163.84%; --bond-cover-top: 4.4%; }
:is(.lead-card, .bond-card, .theme-visual, .record-frame, .card-visual) img[data-bond-roster-portrait] {
  position: absolute;
  z-index: 0;
  inset: auto;
  left: 50%;
  top: var(--bond-cover-top);
  width: auto;
  height: var(--bond-cover-height);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
  transform-origin: 50% 0;
}
:is(.lead-card, .bond-card, .theme-visual, .record-frame, .card-visual):hover img[data-bond-roster-portrait] {
  transform: translateX(-50%) scale(1.015);
}

:is(.lead-card, .bond-card, .theme-visual, .record-frame, .card-visual):has(img[data-bond-roster-portrait]) .card-shade { z-index: 1; }

/* The approved stage pose has no hat; keep its face size consistent with the casual crop. */
img[data-bond-roster-portrait="shinian"][src*="shinian-stage-portrait-V2.png"] { --bond-cover-height: 136.533333%; --bond-cover-top: 6%; }
img[data-bond-roster-portrait="xiaochengjin"] { --bond-cover-height: 122.88%; --bond-cover-top: 7.6%; }
img[data-bond-roster-portrait="shenzhaoxue"] { --bond-cover-height: 114.102857%; --bond-cover-top: 7.142857%; }
