/* Conteneur principal */
.slots-machine-container {
    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;
    color: white;
}

.info-session {
    margin-bottom: 15px;
    color: #ddd;
    font-weight: bold;
}

/* Titres */
.slots-machine-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Reels */
.slots-reels {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
    border: 6px solid #555;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.08), inset 0 0 30px rgba(0, 0, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.7);
    width: fit-content;
    margin: 10px auto;
}

.slots-reel {
    position: relative;
    background: linear-gradient(to bottom, #000, #1a1a1a, #000);
    color: #ffd700;
    font-size: 36px;
    border-radius: 10px;
    border: 3px solid #222;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.25),
                inset 0 0 20px rgba(0, 0, 0, 0.9),
                0 4px 8px rgba(0, 0, 0, 0.6);

    /* ✅ CENTRAGE PARFAIT */
    display: inline-flex;
    justify-content: center;
    align-items: center;

    height: 120px;
    width: 120px;
}

.slots-reel {
    overflow: hidden;
}

.reel-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reel-strip div {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-800px); }
}

.slots-reel::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 30%;
    border-radius: 8px;
	vertical-align: middle;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.25),
        rgba(255,255,255,0)
    );

    pointer-events: none;
}

/* Messages de résultat */
.slots-result-ok, .slots-result-no {
    margin-top: 15px;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    display: none;
    font-weight: bold;
}
.slots-result-ok { border: dashed lightgreen; color: white; }
.slots-result-no { border: dashed lightcoral; color: white; }

/* Bouton retour jeu */
.bouton-action { text-align: center; margin-top: 15px; }

/* Overlay WIN */
#slots-win-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

#slots-win-overlay.show {
    opacity: 1;
    pointer-events: all;
}

#slots-win-overlay h1 {
    font-size: 5rem;
    color: gold;
    text-shadow: 0 0 20px #fff, 0 0 40px gold;
    animation: scalePulse 1s infinite alternate;
}

@keyframes scalePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.3); }
}

/* Mobile */
@media (max-width: 800px){
	.bouton-trier { width: 90%; margin: 0px auto 0px auto; }
	.slots-reel { width: 90px; height: 90px; font-size: 26px; }
}


@media (max-width: 600px){
	.slots-machine-container { max-width: 100%; }
    .slots-reel { width: 58px; height: 58px; font-size: 20px; }
    .slots-controls button, .btn-type-upload { width: 100%; margin: 5px 0; }
	#slots-win-overlay h1{ font-size:2.4rem; }
}
