/* ── Attribute Chains ─────────────────────────────────────────────────────
   The same 3x3 board and diagonal trace as Word Hunt — the icon reads as
   one of the family at a glance, with shapes standing in for letters.
   Chain tiles border in the game's own selected/last blue (phone/games/
   attributechains: #3B82F6 selected, #1D4ED8 last); shapes reuse its real
   clip-paths and palette (red #E2574C, amber #D89B2E, teal #2FA98C). */
.game-art--attributechains .ga-l1 { --x: 25%; --y: 75%; --len: 35.4%; --rot: -45deg; }
.game-art--attributechains .ga-l2 { --x: 50%; --y: 50%; --len: 35.4%; --rot: -45deg; }
.game-art--attributechains .ga-l1,
.game-art--attributechains .ga-l2 { background: #3B82F6; opacity: .9; }

.game-art--attributechains .ga-cell.ga-chain {
  background: var(--surface);
  border-color: #3B82F6;
}
.game-art--attributechains .ga-cell.ga-chain-last { border-color: #1D4ED8; }

.game-art--attributechains .ga-shape {
  display: block;
  width: 72%;
  height: 72%;
  clip-path: var(--ga-clip);
  background: var(--ga-c);
}
/* Optical sizing: at equal bounding boxes a diamond covers half the area of
   a circle and a triangle covers a bit less, so they read as smaller. The
   scale factors put the three at matching visual weight. */
.ga-shape-circle   { --ga-clip: circle(50% at 50% 50%); --ga-c: #E2574C; }
.ga-shape-triangle { --ga-clip: polygon(50% 4%, 96% 96%, 4% 96%); --ga-c: #D89B2E; transform: scale(1.08); }
.ga-shape-diamond  { --ga-clip: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); --ga-c: #2FA98C; transform: scale(1.16); }
/* Fill is the third trait: solid, hollow (ring), striped — the same three
   the board actually deals. Hollow is a second, smaller copy of the same
   clip punched out in the tile color; the triangle's nudge downward is
   because a triangle's visual center sits below its bounding-box center. */
.ga-fill-hollow::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  clip-path: var(--ga-clip);
  background: var(--surface);
  transform: scale(.48) translateY(var(--ga-hollow-shift, 0%));
}
.ga-shape-triangle { --ga-hollow-shift: 30%; }
/* Coarse on purpose: at a 140px stage this shape is ~24px across, so a
   fine hatch turns to gray mush — four fat bands still read as "striped". */
.ga-fill-striped {
  background:
    repeating-linear-gradient(45deg, var(--ga-c) 0 22%, transparent 22% 46%),
    color-mix(in srgb, var(--ga-c) 26%, transparent);
}
/* Fill is the finest of the three traits, so it is the first to go. */
@container ga-stage (max-width: 100px) {
  .game-art--attributechains .ga-fill-striped { background: var(--ga-c); }
  .game-art--attributechains .ga-fill-hollow::before { display: none; }
}
/* Thumbnail tier: below ~70px both the tile chrome and the chain line stop
   earning their pixels — three blue-outlined boxes become one blue smudge,
   and thin diagonal bars read as noise, not a path. What survives is the
   thing that was never ambiguous: three different shapes in three
   different colors, stepping up the diagonal. */
@container ga-stage (max-width: 70px) {
  .game-art--attributechains .ga-cell.ga-chain {
    border-color: transparent;
    background: transparent;
  }
  .game-art--attributechains .ga-shape { width: 100%; height: 100%; }
  .game-art--attributechains .ga-l1,
  .game-art--attributechains .ga-l2 { display: none; }
}
