/* BSK Player Wheel: frontend-only random player selector. */
#playerWheelM .md.player-wheel-dialog{
  width:min(94vw,900px);
  max-width:900px;
  overflow:visible;
  background:#0b1629;
  border-color:rgba(72,186,237,.38);
}
.player-wheel-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.player-wheel-kicker{
  font-family:var(--fd);
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--a2);
}
.player-wheel-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:24px;
  padding:3px 8px;
  border:1px solid rgba(72,186,237,.28);
  background:#101d34;
  color:#fff;
  font-family:var(--fd);
  font-size:.52rem;
}
.player-wheel-help{
  margin:0 0 14px;
  color:var(--mt);
  font-size:.78rem;
  line-height:1.45;
}
.player-wheel-stage{
  position:relative;
  width:min(78vw,760px);
  max-width:100%;
  aspect-ratio:1/1;
  margin:0 auto;
  display:grid;
  place-items:center;
  overflow:visible;
}
#playerWheelCanvas{
  display:block;
  max-width:100%;
  background:transparent;
  filter:drop-shadow(0 18px 28px rgba(0,0,0,.38));
}
.player-wheel-pointer{
  position:absolute;
  right:-4px;
  top:50%;
  transform:translateY(-50%);
  width:0;
  height:0;
  border-top:20px solid transparent;
  border-bottom:20px solid transparent;
  border-right:34px solid #dff6ff;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.6));
  z-index:4;
}
.player-wheel-pointer::after{
  content:'';
  position:absolute;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--a2);
  transform:translate(27px,-5px);
  box-shadow:0 0 12px rgba(72,186,237,.65);
}
.player-wheel-result{
  min-height:58px;
  margin:12px auto;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  text-align:center;
  border:1px solid rgba(72,186,237,.2);
  background:#101d34;
  color:rgba(255,255,255,.82);
  font-size:.88rem;
}
.player-wheel-result strong{
  font-family:var(--fd);
  color:#fff;
  letter-spacing:.05em;
}
.player-wheel-result small{
  flex-basis:100%;
  display:block;
  color:var(--mt);
  font-size:.7rem;
}
.player-wheel-result.winner{
  border-color:rgba(72,186,237,.62);
  box-shadow:0 0 24px rgba(72,186,237,.12);
}
.player-wheel-result.winner strong{color:var(--a2)}
.player-wheel-result.removed{
  border-color:rgba(105,230,166,.48);
}
.player-wheel-result.removed strong{color:#69e6a6}
.player-wheel-result.warning{
  border-color:rgba(255,209,102,.46);
}
.player-wheel-result.warning strong{color:#ffd166}
.player-wheel-result.error{
  border-color:rgba(255,85,85,.45);
  color:#ffd0d0;
}
.player-wheel-result.spinning{
  color:#dff6ff;
}
.player-wheel-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.player-wheel-actions .btn{
  width:100%;
  min-height:42px;
}
#playerWheelRemove:disabled{
  opacity:.35;
}
@media(max-width:700px){
  #playerWheelM .md.player-wheel-dialog{
    width:96vw;
    padding:16px;
  }
  .player-wheel-stage{width:min(88vw,620px)}
  .player-wheel-pointer{
    right:-2px;
    border-top-width:15px;
    border-bottom-width:15px;
    border-right-width:26px;
  }
  .player-wheel-actions{grid-template-columns:1fr}
}
