/* A FACE'S PLACEHOLDER, DRAWN (ui/FacePlaceholder.astro): sepia paper, brown lines, every size from its own width (its
   container query units), so it is sharp at any size. Tokens only. */
/* the outer its paper (its size, a container); its inner the drawing, every length from the paper's width (cqw) */
.g-faceph { --l: var(--g-faceph-line); display: block; box-sizing: border-box; container-type: inline-size; aspect-ratio: 5 / 7; background: var(--g-cover-sepia);
  box-shadow: inset 0 0 0 1px var(--g-faceph-edge), 0 var(--g-3) var(--g-6) var(--g-qcard-shadow); }
.g-faceph img { display: block; }
/* the card: its corners round, its level's ring over its name's bar, its picture's window sunk, its words' box */
.g-faceph__in { display: grid; box-sizing: border-box; height: 100%; }
.g-faceph--card { border-radius: 7% / 5%; }
.g-faceph--card .g-faceph__in { grid-template-rows: 19cqw minmax(0, 1fr) 28%; gap: 2.5cqw; padding: 4cqw; }
.g-faceph__top { position: relative; display: flex; align-items: center; }
.g-faceph__ring { position: relative; z-index: 1; flex: none; width: 19cqw; height: 19cqw; box-sizing: border-box; border-radius: 50%; border: .6cqw solid var(--l); background: var(--g-cover-sepia); box-shadow: inset 0 0 0 1.2cqw var(--g-cover-sepia), inset 0 0 0 1.6cqw var(--l); }
.g-faceph__bar { flex: 1; height: 12cqw; margin-inline-start: -5cqw; box-sizing: border-box; border: .6cqw solid var(--l); border-radius: 2.2cqw; box-shadow: inset 0 0 0 .9cqw var(--g-cover-sepia), inset 0 0 0 1.2cqw var(--l); }
.g-faceph__win { position: relative; overflow: hidden; border-radius: 3.5cqw; background: var(--g-faceph-win); }
/* its window sunk: a brown shadow inside its edge, over the figure too (Maayan, 2026-11-22) */
.g-faceph__win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1.4cqw 3cqw var(--g-faceph-sink), inset 0 0 1.6cqw var(--g-faceph-sink), inset 0 0 0 .4cqw var(--g-faceph-sink); }
/* its figure whole in the window's middle; a person's or a monster's (data-crop) large, from its head, cut at the foot */
/* THE FIGURE IN A CARD'S WINDOW (.g-phfig: this placeholder's, and any growl card with no picture of its own, GrowlCard.astro,
   kit-gcard.js: one rule; lib/growl/creator.js cardFigure) */
.g-phwin { position: absolute; inset: 0; overflow: hidden; }   /* its own frame in a growl card's window: only this rule draws it */
.g-faceph--card .g-faceph__win img, .g-phfig { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; object-position: center; }
.g-faceph--card[data-crop] .g-faceph__win img, .g-phfig[data-crop] { inset: 5% auto auto 50%; width: 118%; height: auto; transform: translateX(-50%); }
.g-faceph__box { box-sizing: border-box; border: .6cqw solid var(--l); border-radius: 3cqw; box-shadow: inset 0 0 0 .9cqw var(--g-cover-sepia), inset 0 0 0 1.2cqw var(--l); }
/* the sheet: square, its lines thin; its two head boxes, its picture's box and four beside it, its table of three by five */
.g-faceph--sheet { aspect-ratio: 213 / 282; border-radius: 1%; background: var(--g-sheet-ph); }
.g-faceph--sheet .g-faceph__in { grid-template-rows: 8% minmax(0, 1fr) 26%; gap: 3cqw; padding: 7cqw 6cqw; }
.g-faceph--sheet i, .g-faceph__pic { box-sizing: border-box; border: 1cqw solid var(--l); }
.g-faceph__head { display: grid; grid-template-columns: 2fr 1fr; gap: 3cqw; }
.g-faceph__mid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 3cqw; min-height: 0; }
.g-faceph__pic { display: grid; place-items: center; overflow: hidden; padding: 4cqw; }
.g-faceph__pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.g-faceph__side { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 3cqw; }
.g-faceph__side > span { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.g-faceph__table { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: repeat(5, 1fr); border: 1cqw solid var(--l); }
.g-faceph__table i { border-width: 0 1cqw 1cqw 0; }
.g-faceph__table i:nth-child(3n) { border-right-width: 0; } .g-faceph__table i:nth-last-child(-n + 3) { border-bottom-width: 0; }
