/*
 * Each deck card carries its unit, drawn as a large faint schematic (card-art.js),
 * cut off by the card's edges, so the empty part of the card belongs to the
 * unit (the owner, 2026-12-03). It fades out toward the left, under the name,
 * and never takes a click. Phones and narrow screens leave it out.
 */
.card__pick {
  isolation: isolate;
}

.card__art {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  mask-image: linear-gradient(to right, transparent, #000 45%);
  transition: opacity var(--dur-quick) var(--ease-standard);
}

.card__pick:hover .card__art {
  opacity: 0.42;
}

.card[data-picked='true'] .card__art {
  opacity: 0.5;
}

.card[data-locked='true'] .card__art,
.card[data-locked='ready'] .card__art {
  opacity: 0.18;
}

:root[data-phone='true'] .card__art {
  display: none;
}

@media (max-width: 48rem) {
  .card__art {
    display: none;
  }
}
