/* The committed play board stays interactive beneath a snapshot of the preceding move. */
.board-shift-motion {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template: repeat(var(--shift-size), minmax(0, 1fr)) / repeat(var(--shift-size), minmax(0, 1fr));
  overflow: hidden;
  pointer-events: none;
  forced-color-adjust: none;
  background-color: #10150f;
}
#board > .board-shift-motion { background-color: #14170e; }
.board-shift-motion .shift-face {
  position: relative;
  min-width: 0;
  min-height: 0;
  background-image: var(--shift-art, var(--art-image, none));
  background-size: calc(var(--shift-size) * 100%) calc(var(--shift-size) * 100%);
  background-repeat: no-repeat;
  box-shadow: inset -1px -1px #100f0b75;
}
.board-shift-motion .shift-misplaced::after {
  position: absolute;
  inset: 1px;
  content: '';
  border: 2px dashed #ff7569;
}
.board-shift-motion .shift-window {
  position: absolute;
  overflow: hidden;
  background-color: inherit;
}
.board-shift-motion [data-shift-track] {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.board-shift-motion [data-shift-track] > .shift-face {
  flex: 0 0 calc(100% / var(--shift-size));
}
.board-shift-motion:is([data-direction='left'], [data-direction='right']) .shift-window {
  left: 0;
  top: calc(100% / var(--shift-size) * var(--shift-line));
  width: 100%;
  height: calc(100% / var(--shift-size));
}
.board-shift-motion:is([data-direction='up'], [data-direction='down']) .shift-window {
  top: 0;
  left: calc(100% / var(--shift-size) * var(--shift-line));
  width: calc(100% / var(--shift-size));
  height: 100%;
}
.board-shift-motion:is([data-direction='up'], [data-direction='down']) [data-shift-track] {
  flex-direction: column;
}
