/* ── Artwork Assemble ─────────────────────────────────────────────────────
   A flat heart sliced into the game's own 2x2 tile grid, one tile faked. The
   heart's real bounding box is the 15%-85% square; seams sit exactly on its
   own center lines, so the cut looks like it belongs to the shape rather
   than an arbitrary grid laid over it. Fill reuses stacksort's already-
   established crimson (#E11D48) — no new literal.
   .ga-aa-fake-heart lives inside .ga-aa-fake-mask, a window clipped to just
   the bottom-left quadrant (left 15%-50%, top 50%-85% of the stage). Sized
   at 200%/200% of that window and offset left:0/top:-100%, it occupies the
   exact same physical rect as .ga-aa-heart-real — so rotating it around its
   own center rotates around the real heart's center too, which is what
   makes the visible fragment read as "almost the same shape, knocked
   crooked" instead of a random red blob. */
.game-art--artworkassemble {
  /* Top lobes traced as two elliptical arcs (16 segments each, not the
     earlier 8) so the humps read as round at every rendered size instead of
     faceted — 8 segments left visible flats on the chooser tile (160px).
     Set here (not on .ga-aa-heart) so .ga-aa-seam-clip can inherit the same
     shape to keep the seam lines confined to the heart's silhouette. */
  --ga-aa-clip: polygon(
    50% 20%,
    50.44% 16.49%, 51.75% 13.11%, 53.88% 10%, 56.74% 7.27%, 60.22% 5.03%,
    64.2% 3.37%, 68.51% 2.35%, 73% 2%, 77.49% 2.35%, 81.8% 3.37%,
    85.78% 5.03%, 89.26% 7.27%, 92.12% 10%, 94.25% 13.11%, 95.56% 16.49%,
    96% 20%,
    96% 34%, 88% 48%, 72% 64%, 50% 85%,
    28% 64%, 12% 48%, 4% 34%, 4% 20%,
    4.44% 16.49%, 5.75% 13.11%, 7.88% 10%, 10.74% 7.27%, 14.22% 5.03%,
    18.2% 3.37%, 22.51% 2.35%, 27% 2%, 31.49% 2.35%, 35.8% 3.37%,
    39.78% 5.03%, 43.26% 7.27%, 46.12% 10%, 48.25% 13.11%, 49.56% 16.49%
  );
  /* The fake tile's own outer silhouette, used only where its edge is the
     picture's visible boundary (the tip-to-flank run through the bottom-left
     quadrant) — everywhere else it shares --ga-aa-clip. A poorly hand-copied
     heart wouldn't just sit crooked, its outline would wobble, so that run
     bulges in a smooth cosine wave (many close points, like doodletrace's
     retrace ribbon) instead of the real heart's clean diagonal. The bulge is
     one-sided — outward from the true edge only, never inward — so the fake
     tile's silhouette always fully covers the real heart under it; a wave
     that dipped inward would leave a sliver of the real edge showing through
     the gap, which reads as a rendering glitch rather than a bad paint job. */
  --ga-aa-clip-fake: polygon(
    50% 20%,
    50.44% 16.49%, 51.75% 13.11%, 53.88% 10%, 56.74% 7.27%, 60.22% 5.03%,
    64.2% 3.37%, 68.51% 2.35%, 73% 2%, 77.49% 2.35%, 81.8% 3.37%,
    85.78% 5.03%, 89.26% 7.27%, 92.12% 10%, 94.25% 13.11%, 95.56% 16.49%,
    96% 20%,
    96% 34%, 88% 48%, 72% 64%, 50% 85%,
    48.68% 84.16%, 47.01% 83.68%, 45.22% 83.33%, 43.55% 82.85%, 42.23% 82.01%,
    41.33% 80.73%, 40.77% 79.09%, 40.34% 77.31%, 39.78% 75.67%, 38.88% 74.39%,
    37.56% 73.55%, 35.89% 73.06%, 34.1% 72.72%, 32.44% 72.24%, 31.11% 71.4%,
    30.21% 70.11%, 29.65% 68.47%, 29.22% 66.7%, 28.66% 65.06%, 27.77% 63.77%,
    26.47% 62.9%, 24.81% 62.38%, 23.03% 61.99%, 21.38% 61.47%, 20.07% 60.6%,
    19.2% 59.29%, 18.68% 57.64%, 18.29% 55.86%, 17.77% 54.2%, 16.9% 52.9%,
    15.6% 52.03%, 13.95% 51.51%, 12.16% 51.12%, 10.51% 50.6%, 8.85% 48.93%,
    8.35% 47.45%, 8.28% 45.72%, 8.38% 43.89%, 8.31% 42.16%, 7.81% 40.67%,
    6.78% 39.49%, 5.33% 38.55%, 3.71% 37.71%, 2.25% 36.77%,
    4% 34%, 4% 20%,
    4.44% 16.49%, 5.75% 13.11%, 7.88% 10%, 10.74% 7.27%, 14.22% 5.03%,
    18.2% 3.37%, 22.51% 2.35%, 27% 2%, 31.49% 2.35%, 35.8% 3.37%,
    39.78% 5.03%, 43.26% 7.27%, 46.12% 10%, 48.25% 13.11%, 49.56% 16.49%
  );
}
.game-art--artworkassemble .ga-aa-heart {
  position: absolute;
  clip-path: var(--ga-aa-clip);
}
.game-art--artworkassemble .ga-aa-heart-real {
  left: 15%;
  top: 15%;
  width: 70%;
  height: 70%;
  background: #E11D48;
  z-index: 1;
}
.game-art--artworkassemble .ga-aa-fake-mask {
  position: absolute;
  left: 15%;
  top: 50%;
  width: 35%;
  height: 35%;
  overflow: hidden;
  z-index: 2;
}
.game-art--artworkassemble .ga-aa-fake-heart {
  left: 0%;
  top: -100%;
  width: 200%;
  height: 200%;
  background: color-mix(in srgb, #E11D48 55%, var(--muted));
  clip-path: var(--ga-aa-clip-fake);
  transform: rotate(8deg) scale(1.1);
  transform-origin: 50% 50%;
}
/* The cut itself: two straight hairlines crossing at the heart's own center,
   painted over both the real heart and the fake tile so the seam always
   reads as "on top of the picture," never behind it. The squiggle stays on
   the heart's outer edge only (--ga-aa-clip-fake); these interior seams stay
   clean and straight so they don't compete with it.
   .ga-aa-seam-clip reuses the heart's own --ga-aa-clip so the seam bars
   never spill past the heart's silhouette. */
.game-art--artworkassemble .ga-aa-seam-clip {
  position: absolute;
  left: 15%;
  top: 15%;
  width: 70%;
  height: 70%;
  clip-path: var(--ga-aa-clip);
  z-index: 3;
}
.game-art--artworkassemble .ga-aa-seam {
  position: absolute;
  background: var(--border);
}
.game-art--artworkassemble .ga-aa-seam-v {
  left: 50%;
  top: 0%;
  width: 14%;
  height: 100%;
  transform: translateX(-50%);
  clip-path: polygon(47% 0%, 53% 0%, 53% 100%, 47% 100%);
}
.game-art--artworkassemble .ga-aa-seam-h {
  left: 0%;
  top: 50%;
  width: 100%;
  height: 14%;
  transform: translateY(-50%);
  clip-path: polygon(0% 47%, 100% 47%, 100% 53%, 0% 53%);
}
