/* ── Stack Sort ───────────────────────────────────────────────────────────
   The core move mid-gesture: a tube's top run lifts out (floating block,
   ringed as picked, like boardview.css .ss-slot.ss-picked) and pours toward a second tube that already shows
   the same color waiting at its floor, which is exactly the rule that makes
   a pour legal ("empty or already shows the same color on top"). New
   primitives (.ga-ss-tube/.ga-ss-block) since neither the letter-board nor
   chip vocabulary looks anything like a tube of stacked color — no other
   MINIGAMES icon uses a floating element or a container shape, so the
   silhouette (two silos + one block in transit) can't be confused with
   Attribute Chains' 3x3 diagonal. Item color is the game's own crimson
   (public/shared/stacksort/board.js palette, #E11D48). */
.game-art--stacksort .ga-ss-tube {
  position: absolute;
  top: 36%;
  width: 26%;
  height: 48%;
  border-radius: 10% 10% 0 0;
  border: max(1px, 2cqmin) solid color-mix(in srgb, var(--muted) 45%, var(--border));
  border-top-color: transparent;
  background: var(--surface);
  box-sizing: border-box;
}
.game-art--stacksort .ga-ss-tube-a { left: 14%; }
.game-art--stacksort .ga-ss-tube-b { left: 60%; }

.game-art--stacksort .ga-ss-block {
  position: absolute;
  width: 20%;
  height: 20%;
  border-radius: 18% 18% 4% 4%;
  background: #E11D48;
  box-sizing: border-box;
  z-index: 2;
}
/* Seated flat on the tube's own flat floor, not a rounded block floating in
   a rounded cup, so it visibly nests into the shape it's resting in. */
.game-art--stacksort .ga-ss-target { left: 63%; top: 64%; border-radius: 14% 14% 4% 4%; }
/* The lifted run: raised clear of its tube, scaled up and ringed, the same
   promotion boardview.css gives a picked run. In game that ring is the sky
   accent (#0EA5E9), which is also this tile's own color and would vanish
   here, so the icon rings it in white with a dark halo instead: it reads on
   the sky tile and on the crimson block alike. */
.game-art--stacksort .ga-ss-lift {
  left: 17%;
  top: 8%;
  transform: rotate(-6deg) scale(1.05);
  border: max(1px, 2.4cqmin) solid #fff;
  box-shadow: 0 0 0 max(1px, 1.4cqmin) rgba(17, 24, 39, 0.45);
  z-index: 3;
}
/* The pour itself: a short trace from the lifted block toward the tube
   that's about to receive it, tinted the item's own color. */
.game-art--stacksort .ga-l1 {
  --x: 27%; --y: 24%; --len: 38%; --rot: 22deg;
  background: color-mix(in srgb, #E11D48 55%, var(--muted));
  height: 6%;
}
/* Thumbnail tier: the pour trace is a flourish once it's a couple of
   pixels wide — two tubes, one block already resting, one ringed block in
   transit still reads as "pour this into that" alone. */
@container ga-stage (max-width: 70px) {
  .game-art--stacksort .ga-l1 { display: none; }
}
