.magic_count_station {
  background-color: #111;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}





/* Conteneur généré pour chaque panneau */
.split-flap {
  display: inline-flex;
  flex-wrap: wrap; /* Indispensable pour permettre le retour à la ligne */
  justify-content: center;
  gap: 4px;
  padding: 10px;
  background-color: #111;
/*   border: 3px solid #222;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8); */
}

/* Élément invisible qui force le retour à la ligne */
.split-flap .line-break {
  width: 100%;
  height: 0;
  margin: 0;
  flex-basis: 100%;
}

.char-box {
  position: relative;
  width: 36px;
  height: 54px;
  flex-shrink: 0; /* Évite la déformation */
  background-color: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
}

/* Ligne centrale (fente mécanique) */
.char-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  z-index: 5;
  transform: translateY(-50%);
}

/* Lettre/Chiffre */
.char-face {
  position: absolute;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  line-height: 54px;
  text-transform: uppercase;
  user-select: none;
}

/* Animation d'un clapet qui tourne */
@keyframes flip {
  0% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0); opacity: 0.4; }
  100% { transform: scaleY(1); opacity: 1; }
}

.char-face.flipping {
  animation: flip 0.07s linear;
}