/* Conteneur des boîtes */
.mystery-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
    background: #1F1F1F;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    color: #fff;
}

/* Boîtes */
#box-grid {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.box {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    user-select: none;
}

.box:hover {
    transform: scale(1.1);
    background: #444;
}

.box.opened {
    background: #222;
    cursor: default;
}

/* Multiplicateur */
#current-mult {
    margin: 15px 0;
    font-size: 18px;
    color: #1E90FF;
}

/* Résultats */
#tetris-result-ok,
#tetris-result-no {
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
}

/* Overlay général (Bombe / Jackpot) */
.overlay-mines {
    animation: fadein 0.3s;
}

/* Animation fadein overlay */
@keyframes fadein {
    from {opacity:0;}
    to {opacity:1;}
}

/* Jackpot explosion */
.jackpot-boom {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, gold, orange);
    color: white;
    font-size: 2em;
    font-weight: bold;
    padding: 40px 60px;
    border-radius: 25px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 0 20px gold;
    animation: pop 0.6s ease-out forwards;
}

/* Animation jackpot pop */
@keyframes pop {
    0% {transform: translate(-50%, -50%) scale(0);}
    50% {transform: translate(-50%, -50%) scale(1.2);}
    100% {transform: translate(-50%, -50%) scale(1);}
}

/* Jackpot info */
#jackpot {
    font-size: 18px;
    margin-top: 15px;
    color: gold;
    font-weight: bold;
}

/* Info session (pseudo et solde) */
.info-session {
    margin-bottom: 20px;
    font-size: 16px;
    color: #ccc;
}

/* Bonus : animation gain */
#tetris-result-ok {
    animation: popGain 0.4s ease-out;
}

@keyframes popGain {
    0% {transform: scale(0.5); opacity: 0;}
    50% {transform: scale(1.2); opacity: 1;}
    100% {transform: scale(1); opacity: 1;}
}

.tetris-result-ok, .tetris-result-no {
    margin:10px 0;
    padding:10px;
    border-radius:10px;
}
.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; }

/* ===========================
   Mobile
=========================== */
@media(max-width:600px){
.jackpot-boom{
font-size:1rem;
}	
}