/* Thème Échecs : plateau en bois, pièces façon figurines */
body.echecs-theme {
  --bg-color: #1b120a;
  --surface-color: #241811;
  --accent-color: #d9b26a;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  max-width: 360px;
  margin: 20px auto;
  border: 10px solid;
  border-image: linear-gradient(135deg, #6b4423, #3d2a17, #6b4423) 1;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), inset 0 0 0 2px #8a5a2e;
  overflow: hidden;
}

.chess-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative;
}

.chess-cell.light {
  background: radial-gradient(circle at 30% 30%, #f0dcb8, #dcc498);
}
.chess-cell.dark {
  background: radial-gradient(circle at 30% 30%, #a97c50, #7a5230);
}

.chess-cell.selected { outline: 3px solid #4d7cff; outline-offset: -3px; }
.chess-cell.check { outline: 3px solid #ff5c5c; outline-offset: -3px; }
.chess-cell.possible::after {
  content: '';
  position: absolute;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.chess-piece-img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
  pointer-events: none;
}
