/* Caisse Mystère — style type CS:GO case opening, avec images */
#coffreRouletteMystere{
  font-family:'Bebas Neue',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#fff;
  background:#000;
  padding:24px 12px;
  text-align:center;
}
#coffreRouletteMystere .crm-panel{
  background:#000;
  color:#fff;
  max-width:1100px;
  margin:0 auto;
  padding:24px 22px;
  border-radius:0;
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}
#coffreRouletteMystere .crm-title{
  font-size:42px;
  margin:8px 0 8px;
}
#coffreRouletteMystere .crm-sub{
  opacity:.9;
  font-size:20px;
  margin-bottom:10px;
}
#coffreRouletteMystere .crm-form input[type=text]{
  -webkit-appearance:none;
  appearance:none;
  background:#333!important;
  color:#fff!important;
  border:2px solid #fff!important;
  border-radius:0;
  padding:10px;
  font-size:18px;
  box-shadow:0 4px 8px rgba(0,0,0,.3);
  width:40%;
  min-width:260px;
  max-width:520px;
  margin:0 8px 16px;
}
#coffreRouletteMystere .crm-form input[type=text]::placeholder{
  color:#ddd;
}
#coffreRouletteMystere .crm-form input[type=text]:focus{
  background:#444!important;
  outline:none!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.15);
}
#coffreRouletteMystere .crm-btn{
  display:none;
  background:#fff;
  color:#222;
  border:0;
  border-radius:0;
  padding:12px 25px;
  font-size:18px;
  cursor:pointer;
  box-shadow:0 4px 8px rgba(0,0,0,.3);
}
#coffreRouletteMystere .crm-btn:hover{
  background:#ddd;
  transform:scale(1.05);
  transition:background .3s, transform .2s;
}
#coffreRouletteMystere .crm-error{
  color:#ff4c4c;
  margin-top:10px;
  font-size:18px;
}

/* Zone de roulette type CS:GO */
#coffreRouletteMystere .crm-roulette-wrapper{
  margin-top:28px;
}
#coffreRouletteMystere .crm-roulette-window{
  position:relative;
  width:900px;
  max-width:100%;
  margin:0 auto;
  overflow:hidden;
  border-top:4px solid #fff;
  border-bottom:4px solid #fff;
  background:#111;
  padding:10px 0;
}
#coffreRouletteMystere .crm-indicator{
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:3px;
  transform:translateX(-1.5px);
  background:#fff;
  box-shadow:0 0 10px rgba(255,255,255,.95);
  z-index:10;
}
#coffreRouletteMystere .crm-track{
  display:flex;
  align-items:center;
  margin-left:0;
}
#coffreRouletteMystere .crm-item{
  position:relative;
  flex:0 0 190px;
  margin:6px 8px;
  padding:6px;
  text-align:center;
  background:#333;
  color:#fff;
  font-size:16px;
  border-radius:4px;
  box-shadow:0 3px 6px rgba(0,0,0,.4);
  white-space:nowrap;
  border-bottom:4px solid transparent;
}
#coffreRouletteMystere .crm-item-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
}
#coffreRouletteMystere .crm-item img{
  width:100%;
  height:120px;
  object-fit:cover;
  border-radius:3px;
  margin-bottom:4px;
}
#coffreRouletteMystere .crm-item-label{
  font-size:14px;
}
#coffreRouletteMystere .crm-item.crm-rarity-rare{
  border-bottom-color:#9b59b6;
}
#coffreRouletteMystere .crm-item.crm-rarity-epic{
  border-bottom-color:#e74c3c;
}
#coffreRouletteMystere .crm-item.crm-rarity-special{
  border-bottom-color:#f1c40f;
}

/* Pulsations de victoire par rareté */
@keyframes crmWinPulseCommon{
  0%{ transform:scale(1); box-shadow:0 0 0 rgba(255,255,255,0); }
  50%{ transform:scale(1.12); box-shadow:0 0 24px rgba(255,255,255,0.85); }
  100%{ transform:scale(1.05); box-shadow:0 0 10px rgba(255,255,255,0.4); }
}
@keyframes crmWinPulseRare{
  0%{ transform:scale(1); box-shadow:0 0 0 rgba(155,89,182,0); }
  50%{ transform:scale(1.14); box-shadow:0 0 28px rgba(155,89,182,1); }
  100%{ transform:scale(1.06); box-shadow:0 0 12px rgba(155,89,182,0.6); }
}
@keyframes crmWinPulseEpic{
  0%{ transform:scale(1); box-shadow:0 0 0 rgba(231,76,60,0); }
  50%{ transform:scale(1.16); box-shadow:0 0 32px rgba(231,76,60,1); }
  100%{ transform:scale(1.07); box-shadow:0 0 14px rgba(231,76,60,0.7); }
}
@keyframes crmWinPulseSpecial{
  0%{ transform:scale(1.02); box-shadow:0 0 0 rgba(241,196,15,0.2); }
  50%{ transform:scale(1.2); box-shadow:0 0 40px rgba(241,196,15,1); }
  100%{ transform:scale(1.08); box-shadow:0 0 18px rgba(241,196,15,0.7); }
}

#coffreRouletteMystere .crm-item.crm-win{
  z-index:3;
}
#coffreRouletteMystere .crm-item.crm-win-common{
  animation:crmWinPulseCommon 1.1s ease-in-out infinite;
}
#coffreRouletteMystere .crm-item.crm-win-rare{
  animation:crmWinPulseRare 1.1s ease-in-out infinite;
}
#coffreRouletteMystere .crm-item.crm-win-epic{
  animation:crmWinPulseEpic 1.2s ease-in-out infinite;
}
#coffreRouletteMystere .crm-item.crm-win-special{
  animation:crmWinPulseSpecial 1.3s ease-in-out infinite;
}

#coffreRouletteMystere .crm-result{
  margin-top:22px;
}
#coffreRouletteMystere .crm-result .card{
  margin-top:10px;
  font-size:22px;
  color:#fff;
  background:#555;
  padding:20px;
  border-radius:0;
  display:inline-block;
  box-shadow:0 4px 8px rgba(0,0,0,.3);
  font-weight:normal;
}
#coffreRouletteMystere .crm-result .grandiose{
  font-size:44px;
  color:#FFD700;
  text-shadow:2px 2px 10px rgba(255,223,0,.7);
  background:#333;
  padding:20px;
  border-radius:10px;
  box-shadow:0 0 15px rgba(255,223,0,.7);
}

@media(max-width:640px){
  #coffreRouletteMystere .crm-form input[type=text]{
    width:100%;
    margin:0 0 12px;
  }
}


/* Video sous la roulette */
#coffreRouletteMystere .crm-video-overlay{
  margin-top:18px;
  width:600px;
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
  pointer-events:none;
  overflow:hidden;
  border-radius:18px;
  opacity:0;
  display:none;
  transition:opacity .25s ease-out;
}
#coffreRouletteMystere .crm-spin-video{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  background-color:#000;
}
#coffreRouletteMystere.crm-spinning .crm-video-overlay{
  opacity:1;
  display:block;
}
