.orama-dice {
  --orama-size: clamp(26px, min(9vw, 14vh), 128px);
  --orama-half: calc(var(--orama-size) / 2);
  --orama-time: 1480ms;
  --orama-surface: #145845;
  --orama-low: #062e25;
  --orama-hi: #40866a;
  --orama-edge: #ddb05e;
  --orama-line: #f7dd934f;
  --orama-dot: #f4d684;
  --orama-dot-edge: #52351b;
  --orama-spot: #82eebe;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
}
.orama-dice *, .orama-dice *::before, .orama-dice *::after { pointer-events: none; box-sizing: border-box; }
.orama-dice[data-skin="ivory"] {
  --orama-surface: #d2ad77;
  --orama-low: #98683d;
  --orama-hi: #fff2ca;
  --orama-edge: #c18e52;
  --orama-line: #fff8d7ab;
  --orama-dot: #722c2b;
  --orama-dot-edge: #3d2118;
  --orama-spot: #ffd5b3;
}
.orama-dice[data-skin="obsidian"] {
  --orama-surface: #26252e;
  --orama-low: #0c0c12;
  --orama-hi: #59515c;
  --orama-edge: #c68c48;
  --orama-line: #f6c77066;
  --orama-dot: #efbf6a;
  --orama-dot-edge: #563c27;
  --orama-spot: #e3a478;
}
.orama-dice__light {
  position: absolute;
  display: block;
  width: calc(var(--orama-size) * 4.5);
  height: calc(var(--orama-size) * 1.48);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--orama-spot) 35%, transparent), transparent 69%);
  opacity: .62;
  transform: translateY(38%);
  animation: orama-dice-light var(--orama-time) both;
}
.orama-dice__pair {
  display: flex;
  align-items: center;
  gap: calc(var(--orama-size) * .62);
  perspective: calc(var(--orama-size) * 8.5);
}
.orama-dice__die,
.orama-dice__mover,
.orama-dice__camera,
.orama-dice__cube {
  position: relative;
  display: block;
  width: var(--orama-size);
  height: var(--orama-size);
  transform-style: preserve-3d;
}
.orama-dice__die {
  --orama-run: -1;
  --orama-rise: -1;
}
.orama-dice__pair[data-count='3'] { gap: calc(var(--orama-size) * .38); }
.orama-dice__die--2 { --orama-run: 1.25; --orama-rise: -.9; }
.orama-dice__die--1 { --orama-run: 1; --orama-rise: -.78; }
.orama-dice__mover { animation: orama-dice-flight var(--orama-time) linear both; }
.orama-dice__camera { transform: rotateX(-40deg); }
.orama-dice__cube {
  transform: rotateY(var(--orama-yaw)) rotateX(var(--orama-x)) rotateY(var(--orama-y)) rotateZ(var(--orama-z));
  animation: orama-dice-tumble var(--orama-time) linear both;
}
.orama-dice__shadow {
  position: absolute;
  display: block;
  inset: 71% -30% -24%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #040308c9, #08060a54 42%, transparent 70%);
  transform: rotate(-7deg);
  animation: orama-dice-shadow var(--orama-time) linear both;
}
.orama-dice__face {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 7%;
  border-radius: 10%;
  border: clamp(1px, .15vw, 3px) solid var(--orama-edge);
  background:
    linear-gradient(125deg, #fff5 0%, transparent 27%, transparent 62%, #0004 94%),
    repeating-linear-gradient(117deg, transparent 0% 14%, #ffffff10 16%, transparent 20% 31%, #08050d19 34%, transparent 38% 48%),
    radial-gradient(ellipse at 31% 15%, var(--orama-hi), var(--orama-surface) 61%, var(--orama-low));
  box-shadow: inset 0 1px 2px #fff9, inset 0 -3px 7px #0007;
  backface-visibility: hidden;
}
.orama-dice__face--top { transform: rotateX(90deg) translateZ(var(--orama-half)); }
.orama-dice__face--bottom { transform: rotateX(-90deg) translateZ(var(--orama-half)); }
.orama-dice__face--right { transform: rotateY(90deg) translateZ(var(--orama-half)); }
.orama-dice__face--left { transform: rotateY(-90deg) translateZ(var(--orama-half)); }
.orama-dice__face--back { transform: rotateY(180deg) translateZ(var(--orama-half)); }
.orama-dice__face--front { transform: translateZ(var(--orama-half)); }
.orama-dice__inlay {
  position: relative;
  display: grid;
  border: 1px solid var(--orama-line);
  border-radius: 9%;
  padding: 7%;
  box-shadow: 0 0 0 1px #150a1850, inset 0 0 8px #0002;
}
.orama-dice__dots { display: grid; grid: repeat(3, 1fr) / repeat(3, 1fr); place-items: center; }
.orama-dice__pip {
  display: block;
  inline-size: 69%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orama-dot);
  background: radial-gradient(circle at 39% 36%, var(--orama-dot), color-mix(in srgb, var(--orama-dot) 85%, #fff) 52%, var(--orama-dot-edge) 91%);
  box-shadow: inset 0 1px 1px #000b, 0 1px 1px #fff5;
}
@keyframes orama-dice-flight {
  0% { transform: translate3d(calc(var(--orama-size) * var(--orama-run) * 1.15), calc(var(--orama-size) * -.48), 0) scale(.71); }
  34% { transform: translate3d(calc(var(--orama-size) * var(--orama-run) * .17), calc(var(--orama-size) * var(--orama-rise) * 1.06), calc(var(--orama-size) * .17)); }
  59% { transform: translate3d(calc(var(--orama-size) * var(--orama-run) * -.14), calc(var(--orama-size) * .08), 0); }
  73% { transform: translate3d(calc(var(--orama-size) * var(--orama-run) * -.08), calc(var(--orama-size) * -.19), calc(var(--orama-size) * .08)); }
  84% { transform: translate3d(0, .03em, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes orama-dice-tumble {
  0% { transform: rotateY(var(--orama-yaw)) rotateX(calc(var(--orama-x) - 735deg)) rotateY(calc(var(--orama-y) + var(--orama-run) * 488deg)) rotateZ(calc(var(--orama-z) + var(--orama-run) * 365deg)); }
  34% { transform: rotateY(var(--orama-yaw)) rotateX(calc(var(--orama-x) - 382deg)) rotateY(calc(var(--orama-y) + var(--orama-run) * 247deg)) rotateZ(calc(var(--orama-z) + var(--orama-run) * 183deg)); }
  59% { transform: rotateY(var(--orama-yaw)) rotateX(calc(var(--orama-x) - 114deg)) rotateY(calc(var(--orama-y) + var(--orama-run) * 54deg)) rotateZ(calc(var(--orama-z) + var(--orama-run) * 26deg)); }
  84% { transform: rotateY(var(--orama-yaw)) rotateX(calc(var(--orama-x) + 7deg)) rotateY(var(--orama-y)) rotateZ(var(--orama-z)); }
  100% { transform: rotateY(var(--orama-yaw)) rotateX(var(--orama-x)) rotateY(var(--orama-y)) rotateZ(var(--orama-z)); }
}
@keyframes orama-dice-shadow {
  0% { opacity: 0; transform: scale(.85); }
  34% { opacity: .28; transform: scale(.83); }
  59% { opacity: 1; transform: scale(1.08); }
  73% { opacity: .62; transform: scale(.95); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes orama-dice-light { from { opacity: 0; } to { opacity: .62; } }
.orama-dice--reduced .orama-dice__light,
.orama-dice--reduced .orama-dice__mover,
.orama-dice--reduced .orama-dice__cube,
.orama-dice--reduced .orama-dice__shadow { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .orama-dice .orama-dice__light, .orama-dice .orama-dice__mover,
  .orama-dice .orama-dice__cube, .orama-dice .orama-dice__shadow { animation: none; }
}
