body {
  background: linear-gradient(135deg, #dae2f8 0%, #d6a4a4 100%);
  height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3rem;
}

.container {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  color: #1a1536;
}

.dice {
  display: inline-block;
  font-size: 6rem;
  background: #fafafa;
  border: 3px solid #6d6875;
  border-radius: 16px;
  width: 110px;
  height: 110px;
  line-height: 110px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(60,60,60,0.09);
  transition: transform 0.1s;
}

.dice.rolling {
  animation: shake 0.6s;
}

/* Shake animation for rolling dice */
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, 2px) rotate(-2deg); }
  20% { transform: translate(-3px, 0px) rotate(2deg); }
  30% { transform: translate(3px, 1px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(2deg); }
  50% { transform: translate(-1px, 2px) rotate(-2deg); }
  60% { transform: translate(-3px, 1px) rotate(2deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(2deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-2deg); }
}

.dice img.rolling {
  animation: shake 1.0s;
  animation-iteration-count: infinite;
}

button {
  font-size: 1.2rem;
  padding: 0.7rem 2.5rem;
  border-radius: 8px;
  border: none;
  background: #6d6875;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #b5838d;
}
