.checkers-game {
  display: grid;
  justify-items: center;
  gap: .55rem;
  width: 100%;
  min-width: 0;
}

.checkers-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  width: min(100%, 27rem);
  overflow: hidden;
  border: 2px solid #bc9ccc;
  border-radius: .65rem;
  background: #e1cce6;
  touch-action: manipulation;
  user-select: none;
}

.checkers-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: #e1cce6;
  cursor: default;
  touch-action: manipulation;
}

.checkers-cell[data-dark='true'] { background: #594267; }
.checkers-cell.is-last { background: #80608d; }
.checkers-cell.is-selected { background: #735795; }
.checkers-cell.is-target, .checkers-cell.is-from { cursor: pointer; }
.checkers-cell:focus-visible { z-index: 1; outline: 3px solid #c8ffe7; outline-offset: -3px; }

.checkers-cell.is-target::after {
  content: '';
  position: absolute;
  width: 27%;
  aspect-ratio: 1;
  border: 2px solid #f0fff9;
  border-radius: 50%;
  background: #70cfaa;
  box-shadow: 0 0 0 2px #282137;
}

.checkers-disc {
  display: none;
  width: 72%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #fff6;
  border-radius: 50%;
  font-size: clamp(.8rem, 3.6vw, 1.45rem);
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 -2px 0 #1a102766, inset 0 0 0 2px #ffffff27, 0 2px 2px #241a32a0;
}

.checkers-cell[data-piece='red'] .checkers-disc { display: grid; color: #fff0f0; background: #c83556; }
.checkers-cell[data-piece='white'] .checkers-disc { display: grid; color: #38244a; background: #f8edfb; }
.checkers-cell.is-from .checkers-disc { outline: 1px solid #c8ffe7; outline-offset: 1px; }
.checkers-cell.is-selected .checkers-disc { outline: 2px solid #c8ffe7; outline-offset: 2px; }
.checkers-hint { margin: 0; color: #c8ffe7; font-size: .85rem; font-weight: 700; text-align: center; }
