/* Pelvic routines use breathing's 332:360 artwork proportions and 280px cap.
   Match its 86% inline artwork width after Today's 140px shell/card inset.
   A viewport target keeps cards, sheets and expanded players the same size;
   the 180px floor keeps placement labels readable on a 320px phone. */
.pelvic-art-frame,
.gs-box-player .pelvic-art-frame,
.gs-box-player .box-saved-overview > .pelvic-art-frame,
.gs-care-breathing-card img.pelvic-art-frame {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:clamp(180px,calc(86vw - 120.4px),280px);
  max-width:100%;
  height:auto;
  max-height:none;
  aspect-ratio:332 / 360;
  margin-inline:auto;
  object-fit:contain;
}
/* Preserve each drawing's original coordinates and label positions inside
   the common frame. Captions and teaching text remain outside the artwork. */
.pelvic-art-frame > .pelvic-art-content { flex:none; width:100%; min-width:0; }
/* The live toilet-seated Gutsphere (utils/push_release_character.js) in a poster
   slot. The painting shows until the first drawn frame, and again if drawing fails. */
.pelvic-companion { position:relative; }
.pelvic-companion > .pelvic-companion-poster,.pelvic-companion > .pelvic-companion-canvas { position:absolute; inset:0; width:100%; height:100%; }
.pelvic-companion > .pelvic-companion-poster { box-sizing:border-box; padding:2.5%; object-fit:contain; transition:opacity 240ms var(--guided-ease-out,ease-out); }
.pelvic-companion > .pelvic-companion-canvas { opacity:0; transition:opacity 240ms var(--guided-ease-out,ease-out); }
.pelvic-companion-ready > .pelvic-companion-canvas { opacity:1; }
.pelvic-companion-ready > .pelvic-companion-poster { opacity:0; }
@media (prefers-reduced-motion:reduce) { .pelvic-companion > * { transition:none; } }
