.roll-reveal { --roll-accent: var(--cyan); width: min(560px, calc(100% - 28px)); padding: 24px; border: 1px solid #66d9d066; background: radial-gradient(ellipse at 50% 36%, #1a3833 0, #111b18 48%, #111612 85%); overflow-x: hidden; }
.roll-reveal::backdrop { background: #030a09dd; backdrop-filter: blur(8px); }
.reveal-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reveal-heading .eyebrow { font-size: 8px; color: var(--roll-accent); letter-spacing: 1.7px; }
.roll-reveal h2 { font: 600 38px/1 var(--display); margin: 18px 0 8px; text-align: center; }
.reveal-subtitle { text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.reveal-stage { position: relative; isolation: isolate; padding: 20px 0 15px; }
.reveal-orbit { position: absolute; z-index: -1; width: 225px; height: 225px; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid #66d9d025; border-radius: 50%; box-shadow: 0 0 0 12px #66d9d007, 0 0 0 24px #66d9d006; pointer-events: none; }
.reveal-orbit::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed #66d9d038; }
.reveal-dice { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; justify-content: center; }
.reveal-dice.single-die { grid-template-columns: minmax(0, 220px); }
.reveal-dice.multiple-dice { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.reveal-die { min-width: 0; text-align: center; color: var(--roll-accent); }
.reveal-die > small { display: block; font: 500 11px var(--mono); letter-spacing: 2px; }
.reveal-poly { position: relative; width: 100%; aspect-ratio: 120/128; perspective: 600px; }
.reveal-poly svg { width: 100%; height: 100%; fill: #66d9d008; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; filter: drop-shadow(0 0 9px #66d9d055); }
.reveal-value, .reveal-scramble { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font: 600 88px/1 var(--display); color: #edfff8; text-shadow: 0 0 25px #66d9d088; }
.reveal-value { background: radial-gradient(ellipse, #142b24bb 10%, transparent 70%); padding: 5px 9px; }
.multiple-dice .reveal-value, .multiple-dice .reveal-scramble { font-size: clamp(35px, 8vw, 58px); }
.reveal-scramble { display: none; font-variant-numeric: tabular-nums; color: var(--roll-accent); }
.reveal-face-note { display: block; font: 8px var(--mono); color: var(--muted); letter-spacing: 1px; min-height: 14px; }
.maximum-face { color: var(--yellow); }
.maximum-face .reveal-face-note { color: var(--yellow); }
.reveal-result { border-block: 1px solid #66d9d030; padding: 13px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reveal-status { font: 9px var(--mono); letter-spacing: 1px; color: var(--roll-accent); }
.reveal-total { display: flex; align-items: center; gap: 14px; }
.reveal-total > span { font: 8px var(--mono); color: var(--muted); }
.reveal-total > strong { font: 600 38px/1 var(--display); color: var(--yellow); }
.reveal-note { margin: 12px 0; min-height: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.reveal-continue { width: 100%; margin-top: 14px; justify-content: center; }
.is-rolling .reveal-value, .is-rolling .reveal-face-note, .is-rolling .reveal-total > strong { visibility: hidden; }
.is-rolling .reveal-scramble { display: block; }
.is-rolling .reveal-poly { animation: cyber-die-tumble .72s cubic-bezier(.2,.65,.35,1) both; animation-delay: calc(var(--die-index) * 15ms); }
.is-rolling .reveal-orbit::after { animation: cyber-orbit .72s ease-out both; }
.roll-reveal-animated.is-revealed .reveal-value { animation: cyber-face-lock .35s ease-out both; }
.roll-reveal-animated.is-revealed .reveal-orbit { animation: cyber-impact .5s ease-out both; }
body.table-view .roll-reveal.table-top-roll { transform: rotate(180deg); }
@keyframes cyber-die-tumble { 0% { transform: translateY(-22px) rotateX(70deg) rotateZ(-30deg) scale(.6); opacity: .3; } 45% { transform: translateY(8px) rotateX(-30deg) rotateZ(20deg) scale(1.04); opacity: 1; } 75% { transform: translateY(-5px) rotateX(12deg) rotateZ(-8deg); } 100% { transform: none; } }
@keyframes cyber-orbit { from { transform: rotate(-110deg); opacity: .2; } to { transform: rotate(90deg); opacity: 1; } }
@keyframes cyber-face-lock { from { opacity: .25; transform: translate(-50%, -50%) scale(1.35); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes cyber-impact { from { box-shadow: 0 0 0 0 #66d9d055; } to { box-shadow: 0 0 0 40px transparent; } }
@media (max-width: 359px), (max-height: 650px) {
  .roll-reveal { padding: 18px; }
  .roll-reveal h2 { font-size: 30px; margin-top: 12px; }
  .reveal-dice.single-die { grid-template-columns: minmax(0, 150px); }
  .single-die .reveal-value, .single-die .reveal-scramble { font-size: 66px; }
  .reveal-stage { padding-block: 12px; }
  .reveal-result { padding-block: 9px; }
  .reveal-orbit { width: 160px; height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .roll-reveal *, .roll-reveal *::after { animation: none !important; }
}
