.board-card.card-latest-move::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 3px solid #65eaff;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #151821;
  content: '';
  pointer-events: none;
}

.board-card:is(.card-lock-standard, .card-lock-advanced)::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 3px solid #ff555f;
  border-radius: inherit;
  content: '';
  pointer-events: none;
}
.board-card.card-lock-advanced::before {
  border-color: #cb88ff;
}
@supports (mask-composite: exclude) {
  .board-card.card-lock-advanced::before {
    border: 0;
    padding: 3px;
    background: conic-gradient(#ff5b70, #ffca62, #c6ff6c, #5cf1ea, #7ea5ff, #dd8bff, #ff5b70);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
}
.board-card.card-latest-move:is(.card-lock-standard, .card-lock-advanced)::after {
  inset: 4px;
  border-width: 2px;
  border-radius: 5px;
}
.board-rank .board-card.card-lock-advanced,
.board-rank .card-lock-advanced .card-face { cursor: default; }
.board-rank .card-lock-advanced .card-play { cursor: pointer; }

.board-card > .tile-lock-badge {
  position: absolute;
  z-index: 4;
  left: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 4px;
  border: 1px solid #ffffff52;
  border-radius: 8px;
  background: #151821ed;
  touch-action: manipulation;
}
.tile-lock-badge:hover { border-color: #f0f2fa; }
.tile-lock-badge:focus-visible { outline-offset: -2px; }
.tile-lock-badge > .tile-lock-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.board-card:is(.card-lock-standard, .card-lock-advanced) .card-source { bottom: 41px; }
.card-lock-menu .card-controls { min-width: 124px; }
.card-lock-menu .card-controls > button:disabled { cursor: not-allowed; }

.board-card > .tile-contributor-avatar {
  position: absolute;
  z-index: 4;
  right: 4px;
  bottom: 4px;
}
.tile-contributor-avatar {
  --profile-avatar-size: 28px;
  border: 2px solid #151821;
  box-shadow: 0 1px 5px #0008;
  pointer-events: none;
}
.board-card > .tile-contributor-button {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  touch-action: manipulation;
}
.tile-contributor-button:hover .tile-contributor-avatar,
.tile-contributor-button:focus-visible .tile-contributor-avatar { border-color: var(--accent); }
.tile-contributor-button:focus-visible { outline-offset: -3px; }
