/* Shared live-game corner decorations.
   The JS component owns every shape, colour and placement; this file owns
   only the geometry contract and the static collision guard. No animation. */

.kb-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* The instruction page is a body-level stage above the fixed instruction
   slab, matching the old GTP layer's stacking position. */
body.instruction-live .kb-deco { z-index: 60; }

.kb-piece {
  position: absolute;
  display: block;
  left: var(--l, auto);
  right: var(--r, auto);
  top: var(--t, auto);
  bottom: var(--b, auto);
  width: var(--w);
  height: var(--h);
  line-height: 0;
  transform: rotate(var(--rot, 0deg));
  transform-origin: center;
}

.kb-piece svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.kb-deco-hidden { visibility: hidden !important; }

/* The shared corner layer replaces the shell's subtle edge confetti. */
body.game-shell-live .gs-root.gs-deco-live .gs-confetti,
body.game-shell-live .gs-root:has(.kb-deco) .gs-confetti {
  display: none;
}
