/* Chessground 7.x (cg-board-wrap) — clear 8x8 board */

.cg-board-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

.cg-board {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
  user-select: none;
  line-height: 0;
  cursor: pointer;
  /* Perfect 8×8 checkerboard */
  background-color: #f0d9b5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cg fill='%23b58863'%3E%3Crect x='1' y='0' width='1' height='1'/%3E%3Crect x='3' y='0' width='1' height='1'/%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='7' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='1' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='7' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='7' y='4' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='3' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='0' y='7' width='1' height='1'/%3E%3Crect x='2' y='7' width='1' height='1'/%3E%3Crect x='4' y='7' width='1' height='1'/%3E%3Crect x='6' y='7' width='1' height='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.cg-board square {
  position: absolute;
  top: 0;
  left: 0;
  width: 12.5%;
  height: 12.5%;
  pointer-events: none;
}

.cg-board square.move-dest {
  pointer-events: auto;
  background: radial-gradient(rgba(20, 85, 30, 0.5) 19%, rgba(0, 0, 0, 0) 20%);
}

.cg-board square.oc.move-dest {
  background: radial-gradient(transparent 0%, transparent 79%, rgba(20, 85, 30, 0.3) 80%);
}

.cg-board square.selected {
  background-color: rgba(20, 85, 30, 0.5);
}

.cg-board square.last-move {
  background-color: rgba(155, 199, 0, 0.41);
}

.cg-board square.check {
  background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0.85) 0%, rgba(231, 0, 0, 0.55) 25%, rgba(169, 0, 0, 0) 89%);
}

.cg-board-wrap piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 12.5%;
  height: 12.5%;
  background-size: cover;
  z-index: 2;
  pointer-events: none;
}

.cg-board piece.dragging {
  cursor: move;
  z-index: 11 !important;
}

.cg-board piece.anim {
  z-index: 8;
}

.cg-board piece.fading {
  z-index: 1;
  opacity: 0.5;
}

.cg-board-wrap piece.ghost {
  opacity: 0.3;
}

.cg-board-wrap coords {
  position: absolute;
  display: flex;
  pointer-events: none;
  opacity: 0.85;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #3d2b1f;
}

.cg-board-wrap coords.ranks {
  right: 1px;
  top: 0;
  flex-flow: column-reverse nowrap;
  height: 100%;
  width: 12px;
}

.cg-board-wrap.orientation-black coords.ranks {
  flex-flow: column nowrap;
}

.cg-board-wrap coords.files {
  bottom: 1px;
  left: 0;
  flex-flow: row nowrap;
  width: 100%;
  height: 12px;
  text-align: center;
}

.cg-board-wrap.orientation-black coords.files {
  flex-flow: row-reverse nowrap;
}

.cg-board-wrap coords coord {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
