* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center;
  font-family: system-ui, sans-serif; background: #1e1b2e; color: #f4f1ff;
}
main { text-align: center; }
h1 { font-weight: 600; letter-spacing: 0.05em; }
.die {
  width: 140px; height: 140px; margin: 2rem auto; border-radius: 20px;
  background: #fff; color: #1e1b2e; font-size: 4.5rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.die.rolling { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}
button {
  font-size: 1.25rem; padding: 0.75rem 2.5rem; border: 0; border-radius: 999px;
  background: #7c5cff; color: #fff; cursor: pointer;
}
button:hover { background: #6a48f0; }
