/* ── Graffitify ───────────────────────────────────────────────────────────
   A museum bust of a young woman (the real artwork the game hands players —
   see manifest.js summary): long dark-brown hair, a side-swept fringe, open
   dot eyes, head and the top of the shoulders only — hit with one
   unmistakable act of graffiti: a fat cartoon handlebar moustache scrawled
   across her face in the app's own marker black
   (server/lib/palette.js BASE_COLORS[0], #111827). The canvas is the real
   graffiti-art white (phone+display graffitify.css .graffitify(-phone)-art:
   background:#fff).

   Everything is a child of the canvas, which clips: hair and shoulders run
   past its bottom edge and get cropped by the frame the way a real bust
   portrait is. So the figure's coordinates below are % of the CANVAS box
   (84% of the stage), not the stage; cqmin still means 1/100 of the stage.

   Skin is a paler literal than the memory avatar's #EFBD91 — that orange
   read as a cartoon blob at thumbnail size and swallowed the moustache. A
   near-white skin against dark hair gives the strongest silhouette (the
   reference sketch this was drawn from is literally white-on-black), and
   leaves black free to mean "marker." Eyes take the hair brown, not black,
   for the same reason: the only black on the canvas is the graffiti. */
.game-art--graffitify .gf-canvas {
  position: absolute;
  inset: 11% 10% 9% 10%;
  border-radius: 12%;
  border: max(1px, 2.4cqmin) solid var(--border);
  box-sizing: border-box;
  overflow: hidden;
}
.game-art--graffitify .gf-canvas > i { position: absolute; }
/* Long hair: one tall dome, wider than the face, running off the bottom of
   the canvas. Sits behind everything so only the crown and the fall past
   each cheek show. */
.game-art--graffitify .gf-hair {
  left: 14%;
  top: 4%;
  width: 72%;
  height: 130%;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background: #3F2A1C;
  z-index: 1;
}
/* Shoulders: a wide shallow arch also cropped by the canvas bottom — "top of
   the shoulders" and no more. In front of the hair so the hair reads as
   falling behind her back. A dress, not skin, so it reads as a bust in
   clothing rather than a bare torso; purple from the app's own marker
   palette (server/lib/palette.js BASE_COLORS[6], #8B5CF6) keeps it inside
   the game's real colors and off the skin/hair/graffiti hues already on
   the canvas. */
.game-art--graffitify .gf-shoulders {
  left: 6%;
  top: 80%;
  width: 88%;
  height: 40%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #8B5CF6;
  z-index: 3;
}
.game-art--graffitify .gf-neck {
  left: 42%;
  top: 56%;
  width: 16%;
  height: 30%;
  background: #F6E3D3;
  z-index: 2;
}
/* An egg, chin narrower than the crown. */
.game-art--graffitify .gf-head {
  left: 27%;
  top: 15%;
  width: 46%;
  height: 54%;
  border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
  background: #F6E3D3;
  z-index: 3;
}
/* Side-swept fringe: a cap over the crown whose bottom edge dips low on the
   left and sweeps up to the right, so the forehead shows on one side — the
   one detail that turns "helmet" into "hair." Asymmetric radii do the
   sweep; no rotation, nothing to go off-grid. */
.game-art--graffitify .gf-bangs {
  left: 27%;
  top: 14%;
  width: 46%;
  height: 23%;
  border-radius: 50% 50% 30% 60% / 80% 80% 100% 45%;
  background: #3F2A1C;
  z-index: 4;
}
/* Eyes — white sclera dot each, with a green iris and a black pupil (the
   app's own marker black, server/lib/palette.js BASE_COLORS[0], #111827, so
   the pupil doesn't introduce a second "graffiti" black). Kept down to the
   56px hub chip, because without them the moustache's dark band has no
   "above/below" cue and starts reading as a blindfold; only the 40px tier
   drops them.
   .gf-eye is already `position: absolute` (via `.gf-canvas > i`), which
   makes it the containing block for its own ::before/::after — so their
   top/left/width/height percentages below are relative to the EYE box,
   not the canvas. A pseudo-element also renders nothing at all without
   `content`, which is what silently dropped an earlier iris/highlight
   attempt here. */
.game-art--graffitify .gf-eye {
  top: 40%;
  width: 10%;
  height: 10%;
  border-radius: 50%;
  background: #FFFFFF;
  z-index: 4;
}
.game-art--graffitify .gf-eye:before {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: #22C55E;
}
.game-art--graffitify .gf-eye:after {
  content: "";
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: #111827;
}
.game-art--graffitify .gf-eye-l { left: 35%; }
.game-art--graffitify .gf-eye-r { left: 54%; }
/* The graffiti: one fat cartoon handlebar moustache in the app's own marker
   black, built out of a single element — two round lobes for the body under
   the nose, and a tapered blade swept out of each side for the curl.

   The whole shape is laid out on one unit grid, `--u`, so it scales as a
   piece and the numbers below read as the drawing rather than as arithmetic:

     - the body is two circles, 6u across, sitting side by side and
       overlapping by a lobe's width. They are box-shadow copies of .gf-mo
       itself, so the element's own box (never painted — no background) is
       just the stamp.
     - each curl is a pseudo-element whose only paint is a 6u bottom border
       on a 7u x 4u box with the bottom-left (or -right) corner rounded to
       100%. A full-size corner radius bends that border into a blade:
       6u thick where it leaves the body, tapering to a point, bowed
       downward. Rotating it 40deg about a point 7u down its inner edge
       swings the point back up, which is the handlebar curl.

   The lobes are what the blades sweep out of, so the two read as one body:
   nothing is a second element pinned near a first, and there is no seam to
   misalign at any size. The painted shape spans 23.4u x 6.6u and is centered
   10.6u right and 11.2u down from the element's own top-left corner — which
   is where the left/top below come from: the moustache lands centered on the
   face, 57.8% down the canvas, clearing the eyes (40-50%) and stopping short
   of the chin (68%), and 38% of the canvas wide so neither tip dies against
   the near-black hair (the face is 28-72%). */
.game-art--graffitify .gf-mo {
  --u: 1.3cqmin;
  left: 31.8%;
  top: 39%;
  width: calc(var(--u) * 6);
  height: calc(var(--u) * 6);
  border-radius: 50%;
  color: #111827;
  box-shadow:
    calc(var(--u) * 5) calc(var(--u) * 8) 0 0 currentColor,
    calc(var(--u) * 10) calc(var(--u) * 8) 0 0 currentColor;
  z-index: 5;
}
.game-art--graffitify .gf-mo:before,
.game-art--graffitify .gf-mo:after {
  content: "";
  position: absolute;
  /* content-box on purpose: the 6u border has to hang BELOW the 4u box, not
     be eaten by it. The app's global border-box would collapse the blade. */
  box-sizing: content-box;
  top: calc(var(--u) * 4);
  width: calc(var(--u) * 7);
  height: calc(var(--u) * 4);
  border-bottom: solid calc(var(--u) * 6) currentColor;
}
.game-art--graffitify .gf-mo:before {
  left: var(--u);
  border-radius: 0 0 0 100%;
  transform: rotate(-40deg);
  transform-origin: right calc(var(--u) * 7);
}
.game-art--graffitify .gf-mo:after {
  left: calc(var(--u) * 13);
  border-radius: 0 0 100% 0;
  transform: rotate(40deg);
  transform-origin: left calc(var(--u) * 7);
}
/* Thumbnail tiers: the eyes hold on until the smallest chip. */
@container ga-stage (max-width: 44px) {
  .game-art--graffitify .gf-eye { display: none; }
}
