.motion-dice {
  --die-size: clamp(34px,4.1vw,58px);
  width: min(100%, 420px);
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(17px, 3.5vw, 47px);
  padding: calc(var(--die-size) * 1.06) clamp(10px, 3vw, 42px) calc(var(--die-size) * .55);
}
#dice-dome {
  width: min(100%, 420px);
  padding: 13px 10px 5px;
  background: radial-gradient(ellipse at 35% 10%,#fff6,transparent 10%),
    linear-gradient(115deg,#aac9ca33,#a1ced00a 36% 70%,#fce6bc38);
}
#dice-row { display: block; width: 100%; padding: 0; }
#variety-stage .motion-dice {
  border: 2px solid #b8955d;
  border-radius: 48% 48% 15% 15% / 24% 24% 18% 18%;
  background: radial-gradient(ellipse at 46% 22%,#486450,#243e36 72%);
  box-shadow: inset 0 0 0 4px #493c32,inset 0 8px 20px #03150c8c,0 5px 0 #403327,0 9px 12px #1019148c;
}
#table-room[data-table="chohan"] .motion-dice {
  background: radial-gradient(ellipse at 40% 20%,#887459,#504339 75%);
}
.dice-lane { display: block; position: relative; width: var(--die-size); height: var(--die-size); perspective: 480px; }
.motion-dice .dice-body.sic-die {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  padding: 0;
  transform-style: preserve-3d;
}
.dice-cube { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
.dice-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: repeat(3,minmax(0,1fr)) / repeat(3,minmax(0,1fr));
  padding: 11%;
  border-radius: 14%;
  border: 1px solid #dbcaae;
  background: linear-gradient(125deg,#fffdf1,#f3e6cd 72%,#e4d5b8);
  box-shadow: inset 1px 1px 2px #fff9, inset -1px -2px 3px #a68f69aa;
  backface-visibility: hidden;
  transform: var(--dice-face-angle) translateZ(calc(var(--die-size) / 2 - .5px));
}
.dice-face[data-side="1"] { --dice-face-angle: rotateY(0deg); }
.dice-face[data-side="2"] { --dice-face-angle: rotateY(90deg); }
.dice-face[data-side="3"] { --dice-face-angle: rotateX(90deg); }
.dice-face[data-side="4"] { --dice-face-angle: rotateX(-90deg); }
.dice-face[data-side="5"] { --dice-face-angle: rotateY(-90deg); }
.dice-face[data-side="6"] { --dice-face-angle: rotateY(180deg); }
.dice-dot {
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  place-self: center;
  background: radial-gradient(ellipse at 60% 70%,#4d3935,#1c1314 72%);
  box-shadow: 0 1px 1px #fff9;
}
.dice-face:is([data-side="1"],[data-side="4"]) .dice-dot { background: radial-gradient(ellipse at 65% 72%,#be463c,#811f2b 80%); }
.dice-symbol, .motion-dice[data-covered="true"] .dice-face::after {
  grid-area: 1 / 1 / 4 / 4;
  place-self: center;
  color: #483025;
  font: 700 calc(var(--die-size) * .63)/1 Georgia,serif;
}
.dice-face:is([data-side="3"],[data-side="4"]) .dice-symbol { color: #a13534; }
.motion-dice[data-covered="true"] :is(.dice-symbol,.dice-dot) { visibility: hidden; }
.motion-dice[data-covered="true"] .dice-face[data-side="1"]::after { content: '?'; color: #9a846b; }
.dice-shadow {
  position: absolute;
  bottom: -15%;
  left: -12%;
  width: 125%;
  height: 29%;
  border-radius: 50%;
  background: radial-gradient(ellipse,#10130ee0,transparent 73%);
}

/* The physical shaker is in the studio. This tray repeats the faces after the lid clears them. */
#table-room[data-table="sicbo"] #dice-dome {
  padding: 4px 12px; border: 1px solid #8b774e; border-radius: 11px;
  background: radial-gradient(ellipse at 50% 75%,#314c3e,#152921);
  box-shadow: inset 0 0 0 3px #493f30, 0 5px 9px #0c171980;
}
#table-room[data-table="sicbo"] #dice-dome::before { content:none; }
#dice-dome .motion-dice { padding: calc(var(--die-size)*.42) 8px; }
