/* PLAYVI PC-v9 — Wren framing override. Scoped to the Wren artwork only.
   Shows the whole 1024×1536 original (2:3) with object-fit: contain: curls, face/eyes, the two-hand
   camera-frame gesture and both silver cuffs. No crop, no clip-path, no transform, no new pixels.
   Replaces the R05 desktop crop and the phone crop. Same geometry at every width.
   Touches no chassis, glass, copy or quiz open/close timing. */

/* The art window: a 2:3 portrait the same shape as the source. */
#homepage-pc-entry #homepage-pc-world .invitation-case[data-invitation="person"] .invitation-art {
  position: relative !important;
  aspect-ratio: 2 / 3 !important;
  width: min(var(--pc-portrait-width, 220px), 100%) !important;
  max-width: 100% !important;
  height: auto !important;
  margin-inline: auto !important;
  overflow: hidden !important;
  clip-path: none !important;
}

/* The image: full original, centred, with even 4% breathing room on every side.
   4% of width and 4% of height keeps the inner box at exactly 2:3, so contain fills it exactly. */
#homepage-pc-entry #homepage-pc-world .invitation-case[data-invitation="person"] img.person-invitation-art {
  position: absolute !important;
  top: 4% !important;
  left: 4% !important;
  right: auto !important;
  bottom: auto !important;
  width: 92% !important;
  height: 92% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  clip-path: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  transform: none !important;
}

/* Hook for Codex: if any source overlay inside the art window shades or covers the hands/cuffs,
   list its selector here so it frames instead of covers. Left empty on purpose — the glass cover
   itself is kept. Example (do not apply unless the overlay is confirmed to cover the hands):
   #homepage-pc-entry #homepage-pc-world .invitation-case[data-invitation="person"] .invitation-art > .SOURCE-OVERLAY {
     background-image: none !important;
   }
*/

/* PC-v9.1 — phone/tablet: stack the Wren card (portrait above copy) so the 220px portrait has room.
   Wren card only. Source grid is 100px | 1fr; this makes it one column at ≤ 820px and resets any
   explicit placements so the portrait and copy stack in source order. Copy styling is untouched. */
/* PC-v9 reference keeps the portrait above its copy at desktop and phone. */

  #homepage-pc-entry #homepage-pc-world .invitation-case[data-invitation="person"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    grid-auto-flow: row !important;
  }
  #homepage-pc-entry #homepage-pc-world .invitation-case[data-invitation="person"] > * {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    grid-area: auto !important;
    min-width: 0 !important;
  }
  #homepage-pc-entry #homepage-pc-world .invitation-case[data-invitation="person"] > .invitation-art {
    justify-self: center !important;
  }
