body {
  margin: 0;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #f8f8f8;
}
.controls, .dice-results {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.dice-display {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.dice {
  width: 60px;
  height: 60px;
  font-size: 24px;
  background: white;
  border: 2px solid #333;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  animation: roll 0.4s ease-in-out;
  opacity: 0;
}
.dice.show {
  opacity: 1;
}
@keyframes roll {
  0% { transform: rotate(0deg) scale(1); opacity: 0.5; }
  50% { transform: rotate(180deg) scale(1.2); opacity: 0.8; }
  100% { transform: rotate(360deg) scale(1); opacity: 1; }
}
button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  background-color: #007bff;
  color: white;
}
.large-select {
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index:9999;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
}