.chess-board-panel {
  background: #16191d;
  border-radius: 20px;
  padding: clamp(9px, 2.1vw, 19px);
  box-shadow: 0 10px 28px #31282126;
}
.chess-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 5px;
}
.chess-square {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  background: #e3d9c2;
  color: #38363b;
}
.chess-square.dark { background: #38363b; color: #f7f0e0; }
.chess-square img { width: 92%; height: 92%; object-fit: contain; }
.chess-square img[hidden] { display: none; }
.chess-square.moved { box-shadow: inset 0 0 0 3px #eea752; }
.chess-square.skipped { box-shadow: inset 0 0 0 3px #f48b84; }
.chess-square .file, .chess-square .rank {
  position: absolute;
  pointer-events: none;
  font-size: clamp(.53rem, 1.3vw, .74rem);
  line-height: 1;
  font-weight: 800;
}
.chess-square .file { bottom: 2px; right: 3px; }
.chess-square .rank { top: 3px; left: 3px; }
#chess-plan button[type=submit] { width: 100%; margin-top: 5px; }
.chess-puzzle .plan-order { white-space: normal; overflow-wrap: anywhere; }
#chess-step { color: #4c453d; }
#chess-compare { padding-left: 1.55rem; margin: 0 0 15px; list-style-type: upper-alpha; }
#chess-compare li { margin: 4px 0; }
#chess-compare .best { font-weight: 750; color: #7d251e; }
.puzzle-context { margin-top: .5rem; color: #4c453d; }
#chess-moves { margin: 10px 0 17px; }
#chess-moves ol { padding-left: 1.4rem; }
#chess-moves li { margin-bottom: .4rem; }
