/* ==========================================================================
   PLAYGROUND — Figma: Playground (32:619)
   An endless canvas of experiment cards in offset rows. The page itself
   doesn't scroll: dragging / wheel / arrow keys pan the canvas (playground.js).
   ========================================================================== */

html:has(.playground) { overflow: hidden; }
.playground {
  position: fixed;
  inset: 0;
}
.pg-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;                                /* above the WebGL image layer */
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}
.pg-canvas.is-dragging { cursor: grabbing; }
.pg-canvas.is-dragging .pg-card { pointer-events: none; }

/* Card — Figma: 334 wide, 334×268 image, 12 to the meta row */
.pg-card {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--pg-card-w, 20.875rem);       /* 334 */
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  color: var(--color-text);
  text-decoration: none;
  will-change: transform;
  -webkit-user-drag: none;
}
.pg-card__media {
  width: 100%;
  aspect-ratio: 334 / 268;
  border-radius: 0;                          /* Figma: square corners */
}
.pg-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.pg-card__name {
  font-size: var(--text-md);
  line-height: var(--leading-md);
}
.pg-card:focus-visible { outline: 2px solid var(--color-text); outline-offset: 4px; }
