/* Thème Dames : plateau en bois, pions en relief, cadre doré */
body.dames-theme {
  --bg-color: #1a1410;
  --surface-color: #2a2118;
  --accent-color: #c9a15a;
}

.dames-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  max-width: 360px;
  margin: 20px auto;
  border: 10px solid;
  border-image: linear-gradient(135deg, #c9a15a, #8a6a2e, #c9a15a) 1;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  overflow: hidden;
}

/* Petits coins décoratifs dorés */
.dames-board::before, .dames-board::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: radial-gradient(circle, #f4d998, #b8863f);
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 6px rgba(244, 217, 152, 0.8);
}
.dames-board::before { top: -14px; left: -14px; }
.dames-board::after { bottom: -14px; right: -14px; }

.dames-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dames-cell.light { background: radial-gradient(circle at 30% 30%, #e8d3ab, #d4b988); }
.dames-cell.dark { background: radial-gradient(circle at 30% 30%, #8a5a30, #5c3a1e); }

.dames-cell.selected { outline: 3px solid #4d7cff; outline-offset: -3px; }
.dames-cell.possible::after {
  content: '';
  position: absolute;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: rgba(77, 124, 255, 0.7);
}

/* Pion : anneaux concentriques en relief façon jeton */
.piece {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  position: relative;
  box-shadow: 0 3px 4px rgba(0,0,0,0.5);
}

.piece::before {
  content: '';
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);
}
.piece::after {
  content: '';
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);
}

.piece.w {
  background: radial-gradient(circle at 35% 30%, #ffffff, #d8d0c0 70%, #b8ac96);
  border: 2px solid #8a7a5e;
  color: #3a2a1a;
}
.piece.b {
  background: radial-gradient(circle at 35% 30%, #4a4a4a, #201812 70%, #0a0806);
  border: 2px solid #000;
  color: #d9b26a;
}
