/* CASINOIR v0.50.16 — automatic live-table dealer, no manual next-spin.
   Move the felt contents down a few pixels without growing the viewport or action panel. */
#roulette .rt-table-wrap{
  padding-top:clamp(9px,1.6vh,15px)!important;
  padding-bottom:2px!important;
  box-sizing:border-box!important;
  min-height:0!important;
}
#roulette .rt-felt-legend{
  display:flex!important;position:absolute!important;
  top:3px;left:7px;right:7px;z-index:20;
  width:auto!important;height:18px!important;
  min-height:18px!important;max-height:18px!important;
  flex:none!important;box-sizing:border-box;padding:0!important;
  align-items:center;justify-content:center;
  min-width:0!important;gap:0;pointer-events:none;overflow:hidden;
}
#roulette .rt-table{transform:translateY(4px)}
#roulette #rouletteTableCall{
  flex:1 1 auto;min-width:0;
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  padding:2px 4px;border:1px solid #af9966;border-radius:3px;
  background:#08261ddd;color:#ffe6a0;
  font:900 clamp(9px,1.2vw,13px)/1.1 system-ui;
  letter-spacing:.035em;text-align:center;
}
#roulette .rt-felt-legend>span:last-child{
  display:none!important;
}
#roulette[data-rt-dealer-phase="no-more-bets"] #rouletteTableCall,
#roulette[data-rt-dealer-phase="rolling"] #rouletteTableCall{
  border-color:#f6af74;background:#62211c;color:#fff3bc;
  box-shadow:0 0 7px #f6bb8059;
}
#roulette[data-rt-dealer-phase="announce"] #rouletteTableCall,
#roulette[data-rt-dealer-phase="pay"] #rouletteTableCall,
#roulette[data-rt-dealer-phase="complete"] #rouletteTableCall{
  background:#234735;color:#fbe3a1;
}
/* The dealer releases the ball partway through the BETTING window.
   Chips stay clickable until NO MORE BETS; only then the game engine locks bets. */
#roulette .rt-wheel.is-idle.is-betting-spin .rt-ball-orbit{
  transform-origin:150px 150px;
  /* Do NOT force an !important transform here: it defeats the keyframe motion. */
  animation:rt16-betting-ball 1.7s linear infinite!important;
}
@keyframes rt16-betting-ball{
 from{transform:rotate(-20deg)}to{transform:rotate(-380deg)}
}
#roulette #rouletteSpin,#roulette #rouletteNext{display:none!important}
@media(max-height:380px) and (orientation:landscape){
 #roulette .rt-table-wrap{padding-top:9px!important;padding-bottom:1px!important}
 #roulette #rouletteTableCall{padding:1px 2px;font-size:9px}
 #roulette .rt-felt-legend>span:last-child{font-size:7px}
}
@media(prefers-reduced-motion:reduce){
 #roulette .rt-wheel.is-idle.is-betting-spin .rt-ball-orbit{
  animation:rt16-betting-ball 7s linear infinite!important;
 }
}
