#scratch-root {
  max-width: 90%;
  margin: 20px auto;
  padding: 15px;
  background: #212121;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
  text-align: center;
  color: #fff;
}

#scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.info-session {
    margin-bottom: 15px;
    color: #ddd;
    font-weight: bold;
}

.scratch-cell {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: #1f1f1f;
  border: 1px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.scratch-cell.reveal {
  transform: rotateY(360deg);
  font-size: 2.5rem;
}

/* Couleurs par symbole */
.scratch-cell[data-symbol="🍒"] { color: #ff4c4c; }
.scratch-cell[data-symbol="🍋"] { color: #fff64c; }
.scratch-cell[data-symbol="🍊"] { color: #ff9f1c; }
.scratch-cell[data-symbol="💎"] { color: #4cf5ff; }
.scratch-cell[data-symbol="⭐"] { color: #ffd700; }

/* Résultat */
#scratch-result {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: bold;
  transition: all 0.5s;
}

/* Animation flash si victoire */
#scratch-result.win {
  color: lightgreen;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0;
  animation: flash 1s infinite alternate;
}

@keyframes flash {
  0% { text-shadow: 0 0 10px #0f0; }
  100% { text-shadow: 0 0 20px #0f0, 0 0 30px #0f0, 0 0 40px #0f0; }
}

.poker-btn, .poker-restart {
  margin: 5px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.poker-btn { background: #28a745; color: #fff; }
.poker-btn:hover { background: #218838; }
.poker-restart { background: #ffc107; color: #000; }
.poker-restart:hover { background: #e0a800; }






.rank {
  width: 30px;
  font-weight: bold;
}

.player {
  flex: 1;
  margin-left: 10px;
}

.symbol {
  font-size: 1.5rem;
  margin-right: 10px;
}

.symbol[data-symbol="🍒"] { color: #ff4c4c; }
.symbol[data-symbol="🍋"] { color: #fff64c; }
.symbol[data-symbol="🍊"] { color: #ff9f1c; }
.symbol[data-symbol="💎"] { color: #4cf5ff; }
.symbol[data-symbol="⭐"] { color: #ffd700; }

.gain-bar-container {
  flex: 2;
  background: #333;
  height: 12px;
  border-radius: 6px;
  margin-right: 10px;
  overflow: hidden;
}

.gain-bar {
  height: 100%;
  background: #28a745;
  border-radius: 6px;
  transition: width 0.5s ease;
}

.gain-text {
  width: 60px;
  text-align: right;
  font-weight: bold;
}

/* Bouton retour */
.bouton-action {
  margin-top: 20px;
  text-align: center;
}

.formulaire-input-cat-roulette {
    display: inline-flex;
    position: relative;
    width: fit-content;
	vertical-align: middle;
}

.formulaire-input-cat-roulette label {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: bold;
    color: rgb(169, 169, 173);
    margin-top: 6px;
    background: none;
}

.formulaire-input-cat-roulette span {
    margin: 8px 0px 0px 10px;
}

.form-input-form-mbr-cat-roulette {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgb(255, 255, 255);
    font-size: 12px;
    padding: 10px 10px 10px 40px;
    width: fit-content;
    outline: none;
    background: rgb(26, 26, 26);
    border-radius: 8px;
    height: 38px;
	display: inline-block;
}

/* Mobile */
@media(max-width:500px){
  .gain-bar-container { width: 100%; margin: 5px 0; }
  .gain-text { width: auto; text-align: left; }
}


/* Mobile */
@media(max-width:500px){
  #scratch-grid { grid-template-columns: repeat(3, 50px); grid-gap: 5px; }
  .scratch-cell { width: 50px; height: 50px; font-size: 1.5rem; }
  .poker-btn, .poker-restart { padding: 8px 15px; font-size: 0.9rem; }
}
