body.ludo-theme {
  --bg-color: #101820;
  --surface-color: #182432;
  --accent-color: #45b366;
}

/* ---------- Plateau ---------- */
.ludo-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  grid-template-rows: repeat(15, 1fr);
  aspect-ratio: 1;
  max-width: 420px;
  margin: 16px auto;
  background: #0b1118;
  border-radius: 14px;
  border: 3px solid #2a3644;
  overflow: hidden;
}

.ludo-yard {
  border-radius: 10px;
  margin: 6%;
  position: relative;
}
.ludo-yard::before {
  content: '';
  position: absolute;
  inset: 20%;
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
}

.ludo-yard-blue { background: #1560d4; }
.ludo-yard-red { background: #ee2b2b; }
.ludo-yard-green { background: #24a148; }
.ludo-yard-yellow { background: #f4c60a; }

.ludo-cell {
  background: #eef0f3;
  border: 1px solid #0b1118;
}

.ludo-cell.ludo-path { background: #f7f8fa; }

.ludo-cell.ludo-safe {
  background-image: radial-gradient(circle, #c9a15a 0 22%, transparent 23%);
  background-color: #f7f8fa;
}

.ludo-cell.ludo-stretch-blue { background: #6ea3ec; }
.ludo-cell.ludo-stretch-red { background: #f28080; }
.ludo-cell.ludo-stretch-green { background: #7fce97; }
.ludo-cell.ludo-stretch-yellow { background: #f7dd6b; }

.ludo-cell.ludo-center {
  background: conic-gradient(#1560d4 0deg 90deg, #ee2b2b 90deg 180deg, #24a148 180deg 270deg, #f4c60a 270deg 360deg);
}

/* Cases de départ colorées (correspondent à la couleur du coin adjacent) */
.ludo-cell.ludo-entry-blue { background: #6ea3ec; }
.ludo-cell.ludo-entry-red { background: #f28080; }
.ludo-cell.ludo-entry-green { background: #7fce97; }
.ludo-cell.ludo-entry-yellow { background: #f7dd6b; }

/* ---------- Dé animé ---------- */
.dice-visual {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: #f4f4f8;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.07s;
}

.dice-visual.rolling { animation: dice-shake 0.07s infinite; }

@keyframes dice-shake {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(8deg) scale(1.05); }
  100% { transform: rotate(-8deg); }
}

.dice-pip {
  border-radius: 50%;
  background: transparent;
}

.dice-pip.active { background: #1a1a1a; }

/* ---------- Pions ---------- */
.ludo-pawn {
  position: absolute;
  width: 6.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 2;
}

.ludo-pawn.movable {
  cursor: pointer;
  outline: 2px solid #fff;
  z-index: 3;
}

.ludo-pawn.blue { background: #1560d4; }
.ludo-pawn.red { background: #ee2b2b; }
.ludo-pawn.green { background: #24a148; }
.ludo-pawn.yellow { background: #f4c60a; }

/* ---------- Panneaux joueurs (sous le plateau) ---------- */
.player-panel {
  background: var(--surface-color);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.player-panel.active-turn { outline: 2px solid var(--accent-color); }

.player-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.color-dot.blue { background: #1560d4; }
.color-dot.red { background: #ee2b2b; }
.color-dot.green { background: #24a148; }
.color-dot.yellow { background: #f4c60a; }
