.dice-roll-dialog {
  width: min(380px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid #d3b16d;
  border-radius: 8px;
  background: #24281f;
  color: #f0dfba;
  text-align: center;
}

.dice-roll-dialog::backdrop { background: #000a; }
.dice-roll-dialog h2 { margin: 0; }
.dice-roll-dialog p { margin: 12px 0; }

.dice-roll-stage {
  display: grid;
  place-items: center;
  height: 146px;
  perspective: 500px;
}

.dice-roll-cube {
  position: relative;
  width: 54px;
  height: 54px;
  transform-style: preserve-3d;
}

.dice-roll-cube span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid #b49966;
  border-radius: 6px;
  background: #fff3d5;
  backface-visibility: hidden;
}

.dice-roll-cube i { width: 7px; height: 7px; border-radius: 50%; background: #342818; }

.dice-roll-cube span:nth-child(1) { transform: translateZ(27px); }
.dice-roll-cube span:nth-child(2) { transform: rotateY(90deg) translateZ(27px); }
.dice-roll-cube span:nth-child(3) { transform: rotateX(90deg) translateZ(27px); }
.dice-roll-cube span:nth-child(4) { transform: rotateX(-90deg) translateZ(27px); }
.dice-roll-cube span:nth-child(5) { transform: rotateY(-90deg) translateZ(27px); }
.dice-roll-cube span:nth-child(6) { transform: rotateY(180deg) translateZ(27px); }
