#ludo-board {
  width: 600px;
  height: 600px;
  position: relative;
  margin: 20px auto;
  border: 2px solid #444;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#board-img {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  border-radius: 12px;
}

#tokens .token {
  width: 40px;
  height: 40px;
  position: absolute;
  z-index: 2;
  transition: left 0.5s ease, top 0.5s ease;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.25));
  cursor: pointer;
}

#roll-btn {
  position: absolute;
  top: 620px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  font-size: 1.25em;
  font-weight: 600;
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(238,9,121,0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

#roll-btn:hover {
  background: linear-gradient(135deg, #ee0979, #ff6a00);
  box-shadow: 0 6px 20px rgba(255,106,0,0.8);
}

#roll-btn:active {
  transform: translateX(-50%) scale(0.95);
  box-shadow: 0 2px 10px rgba(255,106,0,0.5);
}

/* Dice icon inside button using emoji */
#roll-btn::before {
  content: "🎲";
  font-size: 1.5em;
  display: inline-block;
  margin-right: 8px;
  transform: translateY(1px);
}

#dice-result {
  z-index: 5;
  position: absolute;
  top: 620px;
  left: calc(50% + 140px);
  font-size: 1.5em;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dice-face {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

#turn-indicator {
  text-align: center;
  font-size: 1.3em;
  margin: 10px 0;
  font-weight: 700;
  color: #222;
  text-shadow: 0 1px 1px rgba(255,255,255,0.7);
}

#winner-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #00c853;
  color: white;
  font-size: 2em;
  padding: 20px 30px;
  border-radius: 10px;
  display: none;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0,200,83,0.8);
}

#reset-game {
  position: absolute;
  top: 680px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 28px;
  font-size: 1.1em;
  font-weight: 600;
  background: #555;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  display: none;
  transition: background 0.3s ease;
}

#reset-game:hover {
  background: #333;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  border-radius: 8px;
  font-size: 1.2em;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.close-button {
  float: right;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: #000;
}

/* Responsive */
@media (max-width: 768px) {
  #ludo-board {
    width: 95vw;
    height: 95vw;
  }
  #roll-btn, #dice-result {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 10px auto;
    display: block;
    font-size: 1.1em;
  }
  #roll-btn {
    width: 50%;
    justify-content: center;
  }
  #dice-result {
    margin-top: 15px;
  }
}
