/* Local physical dice foundation; scalable, crisp pips, no secret-face styles. */
.dice-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  min-height: 108px;
}
.d6-face {
  flex: none;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  place-items: center;
  width: clamp(72px, 8vw, 96px);
  aspect-ratio: 1;
  padding: 13%;
  box-sizing: border-box;
  background: #faf5e8;
  border: 3px solid #b4aa94;
  border-bottom-width: 6px;
  border-radius: 15%;
  box-shadow: 0 5px 0 #7a6c5d, 0 7px 14px #0005;
}
.d6-pip {
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #20202a;
  box-shadow: inset 1px 1px 1px #0009;
}
.dice-cup {
  display: inline-block;
  width: clamp(90px, 11vw, 135px);
  height: 105px;
  border-radius: 20% 20% 35% 35%;
  background: #6f3525;
  border: 5px solid #a9784a;
  box-shadow: inset 8px 0 0 #ffffff16, 0 7px 12px #0005;
  position: relative;
}
.dice-cup::before {
  content: "";
  position: absolute;
  top: -7px; left: -6px; right: -6px;
  height: 17px;
  border-radius: 50%;
  background: #a9784a;
  border: 3px solid #5b281b;
}
.dice-cup.is-shaking { animation: dice-cup-shake .48s ease-in-out; }
@keyframes dice-cup-shake {
  0%, 100% { transform: rotate(0); }
  18%, 55% { transform: rotate(-10deg) translateY(-4px); }
  38%, 75% { transform: rotate(9deg) translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .dice-cup.is-shaking { animation: none; }
}
