/* Brass number drums (rotors.js): each digit is a ten-sided cylinder in a window. */
.rotors {
  --h: 1.3em;                       /* face height */
  display: inline-flex; align-items: center; gap: .1em; vertical-align: middle;
  padding: .14em .22em; border-radius: .32em;
  background: linear-gradient(180deg, #2b2516, #120f09);
  box-shadow: inset 0 0 0 1px #6b5a3a, inset 0 1px 0 #e8d4a03a, 0 1px 4px #0008;
  font-variant-numeric: tabular-nums;
}
.rotor {
  position: relative; display: inline-block; width: .86em; height: calc(var(--h) * 1.32);
  overflow: hidden; border-radius: .14em; perspective: 2.4em;
  background: #0c0a06; box-shadow: inset 0 0 0 1px #3d3322;
}
.rotor-drum {
  position: absolute; left: .07em; right: .07em; top: calc(var(--h) * .16); height: var(--h);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--h) * -1.539)) rotateX(calc(var(--pos) * 36deg));
  transition: transform .62s cubic-bezier(.34, 1.38, .52, 1);   /* a small detent overshoot */
}
.rotor-drum.instant { transition: none; }
.rotor-face {
  position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden;
  transform: rotateX(calc(var(--i) * -36deg)) translateZ(calc(var(--h) * 1.539));
  background: linear-gradient(180deg, #a6844f, #e9d3a1 42%, #e4c78f 58%, #8c7045);
  color: #241c0e; font: 700 1em/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  text-shadow: 0 1px 0 #f6e7c066;
}
/* curvature: the drum falls away into shadow above and below the window */
.rotor-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #000d 0%, #0000 30%, #fff2 49%, #0000 70%, #000d 100%); }
/* knurled thumb-wheel edges */
.rotor::before, .rotor::after { content: ""; position: absolute; top: 0; bottom: 0; width: .07em; z-index: 1;
  background: repeating-linear-gradient(180deg, #9a7d4c 0 1px, #2e2617 1px 3px); }
.rotor::before { left: 0; } .rotor::after { right: 0; }
.rotor-sep { color: #c9a96e; font-weight: 700; line-height: 1; padding: 0 .02em; }
.rotor-sep.gap { width: .25em; }

/* where they live */
.drand-plaque .drand-num { font-size: 1.08rem; }
.drand-plaque .rotors { padding: .1em .18em; }
#orbTimer.rotors { font-size: 1.9rem; font-weight: 700; letter-spacing: 0; text-shadow: none; margin: .5rem 0 .9rem; padding: .18em .3em; }
@media (max-width: 600px) { #orbTimer.rotors { font-size: 1.5rem; } }
html.calm .rotor-drum { transition: none; }
@media (prefers-reduced-motion: reduce) { .rotor-drum { transition: none; } }
