.ox-dr-tray { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; min-height: 20px; margin: 18px 0; }
.ox-dr-scene { width: 70px; height: 70px; perspective: 500px; margin: 8px; }
.ox-dr-cube { position: relative; width: 70px; height: 70px; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2,.8,.2,1); }
.ox-dr-face { position: absolute; width: 70px; height: 70px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 9px; background: #fff; border: 2px solid #d9dbe6; border-radius: 12px; backface-visibility: hidden; box-shadow: inset 0 0 12px rgba(0,0,0,.08); }
.ox-dr-face i { width: 12px; height: 12px; border-radius: 50%; place-self: center; }
.ox-dr-face i.on { background: #1f2330; }
.ox-dr-f1 { transform: translateZ(35px); } .ox-dr-f1 i.on { background: #dc2626; }
.ox-dr-f6 { transform: rotateX(180deg) translateZ(35px); }
.ox-dr-f2 { transform: rotateX(90deg) translateZ(35px); }
.ox-dr-f5 { transform: rotateX(-90deg) translateZ(35px); }
.ox-dr-f3 { transform: rotateY(-90deg) translateZ(35px); }
.ox-dr-f4 { transform: rotateY(90deg) translateZ(35px); }
.ox-dr-flat { width: 76px; height: 76px; display: grid; place-items: center; font: 900 1.7rem var(--font-round); color: #fff; background: linear-gradient(140deg, var(--accent), var(--accent-2)); border-radius: 18px; box-shadow: var(--shadow); }
.ox-dr-d4 { clip-path: polygon(50% 4%, 96% 92%, 4% 92%); border-radius: 0; padding-top: 22px; }
.ox-dr-d8 { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; }
.ox-dr-d10, .ox-dr-d12, .ox-dr-d100 { clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); border-radius: 0; }
.ox-dr-d20 { clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); border-radius: 0; background: linear-gradient(140deg, #14b8a6, #7c3aed); }
.ox-dr-flat.rolling { animation: ox-dr-shake .18s linear infinite; }
@keyframes ox-dr-shake { 25% { transform: rotate(-10deg) scale(1.05); } 75% { transform: rotate(10deg) scale(.95); } }
.ox-dr-hist { margin: 0; padding-left: 20px; color: var(--muted); }
