/* CASINOIR 0.50.17 — roulette dealer realism and bidirectional motion. */
/* Keep the betting felt completely clear: the existing call sits in the left wheel panel. */
#roulette .rt-felt-legend{display:none!important}
#roulette .rt-table-wrap{padding-top:clamp(5px,1.1vh,11px)!important}
#roulette .rt-dealer-call{display:block!important;min-height:19px;line-height:1.25;
  background:#092b23d9;border:1px solid #987e46;border-radius:5px;padding:3px 2px;
  white-space:normal!important;overflow-wrap:anywhere;color:#fff3c9;
  font:800 clamp(10px,1.3vw,14px)/1.2 system-ui;letter-spacing:.03em;text-align:center}
#roulette[data-rt-dealer-phase="no-more-bets"] .rt-dealer-call,
#roulette[data-rt-dealer-phase="rolling"] .rt-dealer-call{
  color:#ffe1a4;background:#59241a;border-color:#f0b368;box-shadow:0 0 9px #d5a35666}
/* The wheel always rotates, but the direction flips once per round. */
#roulette .rt-wheel.is-idle.rt-reverse-spin .rt-rotor{animation:rt17-idle-reverse 6.4s linear infinite!important}
@keyframes rt17-idle-reverse{from{transform:rotate(var(--rt-idle-rotor-start,0deg))}
 to{transform:rotate(calc(var(--rt-idle-rotor-start,0deg) - 360deg))}}
/* Bidirectional 1.8 s/turn motion while accepting bets; cutoff uses 8 open turns plus 3–4 closed turns. */
#roulette .rt-wheel.is-idle.is-betting-spin .rt-ball-orbit{
 animation:rt17-betting-forward 1.8s linear infinite!important;transform-origin:150px 150px}
#roulette .rt-wheel.is-idle.is-betting-spin.rt-reverse-spin .rt-ball-orbit{
 animation:rt17-betting-reverse 1.8s linear infinite!important}
@keyframes rt17-betting-forward{from{transform:rotate(-20deg)}to{transform:rotate(-380deg)}}
@keyframes rt17-betting-reverse{from{transform:rotate(20deg)}to{transform:rotate(380deg)}}
/* Disable the obsolete idle-ball animation even for reduced motion; wheel continues gently. */
@media(prefers-reduced-motion:reduce){
 #roulette .rt-wheel.is-idle.rt-reverse-spin .rt-rotor{animation-duration:18s!important}
 #roulette .rt-wheel.is-idle.is-betting-spin .rt-ball-orbit{animation-duration:1.8s!important}
}
@media(max-height:365px) and (orientation:landscape){
 #roulette .rt-dealer-call{font-size:10px;min-height:16px;padding:1px}
 #roulette .rt-table-wrap{padding-top:6px!important}
}
