/* ── Face Value ────────────────────────────────────────────────────────────
   The reveal itself, not any one card: display/games/facevalue/display.js
   lays every face out in a ring around the arena (x = 50 + 38*cos(angle),
   y = 50 + 40*sin(angle)) and waits its turn there until one lands. Five
   miniature heads sit on that same ring, built from Memory/Who Done It's own
   hair+oval+eyes+mouth assembly (this game deals faces the exact same way).
   One shared hairstyle across all five — this icon is a face *picker*, not a
   cast of characters — so what tells the heads apart is skin tone and iris,
   the same two things a real Face Value face varies, drawn from the shared
   avatar system's own pickable ladders (skin/eye hex values set inline per
   face by the gameArt.js builder, from shared/avatar/palette.js SKIN_COLORS
   and shared/avatar/generate.js IRIS_COLORS). Ring fills are five of the
   app's own real avatar-card colors (shared/avatar/palette.js BASE_COLORS —
   the actual palette every drawn or dealt face in this game is built from),
   not an invented set. The top head carries the game's real picked/active
   ring (facevalue.css .facevalue-reveal-card.facevalue-picked /
   .facevalue-arena-card.active: border-color var(--fv-accent), #EA580C) —
   the one face that's landed, the rest still waiting around the circle. */

.game-art--facevalue .fv-avatar {
  position: absolute;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  box-sizing: border-box;
  border: max(1px, 1.4cqmin) solid var(--surface);
  transform: translate(-50%, -50%);
  z-index: 1;
}
.game-art--facevalue .fv-avatar-1 { left: 50%; top: calc(15% + 4px); background: #EF4444; }
.game-art--facevalue .fv-avatar-2 { left: 83%; top: calc(39% + 4px); background: #F97316; }
.game-art--facevalue .fv-avatar-3 { left: 71%; top: calc(78% + 4px); background: #22C55E; }
.game-art--facevalue .fv-avatar-4 { left: 29%; top: calc(78% + 4px); background: #3B82F6; }
.game-art--facevalue .fv-avatar-5 { left: 17%; top: calc(39% + 4px); background: #8B5CF6; }

.game-art--facevalue .fv-picked {
  border-color: #EA580C;
  box-shadow: 0 0 0 max(1px, 1.6cqmin) color-mix(in srgb, #EA580C 35%, transparent);
  z-index: 2;
}

/* Face assembly, ported from Who Done It's round-avatar proportions
   (public/shared/games/whodoneit/cardArt.css), scaled down for this
   avatar's smaller 30% diameter. */
.game-art--facevalue .fv-oval {
  position: absolute;
  left: 22%;
  top: 30%;
  width: 56%;
  height: 44%;
  border-radius: 50%;
  /* background: per-face skin tone, set inline by the builder */
}
.game-art--facevalue .fv-eye {
  position: absolute;
  top: 42%;
  width: 2.8cqmin;
  height: 2.8cqmin;
  border-radius: 50%;
  /* background: per-face iris color, set inline by the builder */
  transform: translate(-50%, -50%);
}
.game-art--facevalue .fv-eye-l { left: 33%; }
.game-art--facevalue .fv-eye-r { left: 67%; }
.game-art--facevalue .fv-mouth {
  position: absolute;
  left: 50%;
  top: 68%;
  width: 7.5cqmin;
  height: 3.7cqmin;
  border-bottom-left-radius: 3.7cqmin;
  border-bottom-right-radius: 3.7cqmin;
  background: #111827;
  transform: translateX(-50%);
}
/* One shared hairstyle for every face: a single rounded cowlick instead of
   Memory's fanned spikes, since hair no longer needs to carry any
   per-face difference. */
.game-art--facevalue .fv-hair {
  position: absolute;
  top: 13%;
  left: 50%;
  width: 12%;
  height: 20%;
  background: #111827;
  border-radius: 100% 100% 60% 60% / 100% 100% 40% 40%;
  transform: translate(-50%, 0) rotate(-24deg);
  transform-origin: 50% 100%;
}

/* Thumbnail tier: fine face detail is the first thing to turn to mud —
   five colored, ringed heads (one ringed in the accent) still reads as
   "faces waiting around the reveal" without the hair/oval detail. */
@container ga-stage (max-width: 100px) {
  .game-art--facevalue .fv-oval, .game-art--facevalue .fv-hair { display: none; }
}
@container ga-stage (max-width: 70px) {
  .game-art--facevalue .fv-picked { box-shadow: none; }
}
