/* Container général */
.reaction-box {
    width: 90%;
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
}

/* Barre de déplacement */
.bar {
    position: relative;
    width: 100%;
    height: 40px;
    background: #333;
    border-radius: 20px;
    margin: 30px 0;
    overflow: hidden;
}

/* Zones de précision */
.zone {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 20px;
}

.zone.good {
    left: 25%;
    width: 50%;
    background: rgba(0, 255, 0, 0.3); /* Vert clair */
}

.zone.perfect {
    left: 45%;
    width: 10%;
    background: rgba(0, 255, 0, 0.7); /* Vert intense */
}

/* Curseur */
#cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 5%;
    height: 100%;
    background: gold;
    border-radius: 10px;
    transition: left 0.01s linear;
}

/* Résultat */
#result {
    margin-top: 20px;
    font-size: 1.2em;
    color: gold;
}

/* Responsive mobile */
@media screen and (max-width: 480px) {
    .bar { height: 30px; }
    #cursor { width: 8%; }
    button { padding: 8px 15px; font-size: 0.9em; }
    input#bet { width: 60px; font-size: 0.9em; }
}

.tetris-result-ok, .tetris-result-no {
    margin:10px 0;
    padding:10px;
    border-radius:10px;
    display:none;
}
.tetris-result-ok { border: dashed lightgreen; color: white; max-width: 600px; margin: 10px auto 0 auto; }
.tetris-result-no { border: dashed lightcoral; color: white; max-width: 600px; margin: 10px auto 0 auto; }
