/* =========================================================
   CLICK GAME
========================================================= */

.click-game-header {

    width: 90%;

    max-width: 900px;

    margin: 15px auto;

    padding: 15px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

    background: #111;

    border: 1px solid #333;

    border-radius: 15px;

    box-shadow:
        0 5px 15px rgba(0,0,0,0.5);

    font-weight: bold;

    font-size: 18px;
}


/* =========================================================
   STATISTIQUES
========================================================= */

.click-game-stats {

    width: 90%;

    max-width: 900px;

    margin: 15px auto;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;
}


.click-stat {

    min-width: 130px;

    padding: 12px 18px;

    background: #1f1f1f;

    border-radius: 10px;

    text-align: center;

    font-weight: bold;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.4);
}


.click-stat strong {

    display: block;

    margin-top: 5px;

    font-size: 20px;
}


.click-stat.normal {

    border: 1px solid #1e90ff;

}


.click-stat.gold {

    border: 1px solid gold;

}


.click-stat.erreur {

    border: 1px solid #ff4444;

}


/* =========================================================
   GRILLE
========================================================= */

.click-game-grid {

    width: 95%;

    max-width: 900px;

    margin: 20px auto;

    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 10px;

    padding: 15px;

    background: #111;

    border-radius: 18px;

    border: 1px solid #333;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.6);
}


/* =========================================================
   CASE
========================================================= */

.click-game-cell {

    aspect-ratio: 1 / 1;

    min-height: 80px;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #303030,
            #151515
        );

    border: 2px solid #555;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.15s ease,
        border 0.15s ease,
        box-shadow 0.15s ease;

    user-select: none;
}


/* =========================================================
   HOVER
========================================================= */

.click-game-cell:hover {

    transform:
        scale(1.04);

    border-color:
        #1e90ff;

    box-shadow:
        0 0 12px
        rgba(30,144,255,0.5);
}


/* =========================================================
   ?
========================================================= */

.click-game-hidden {

    font-size: 32px;

    font-weight: bold;

    color: #aaa;
}


/* =========================================================
   IMAGE
========================================================= */

.click-game-cell img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    pointer-events: none;
}


/* =========================================================
   CASE CLIQUÉE
========================================================= */

.click-game-cell.clicked {

    cursor: default;

    transform: none;

    border-color: #777;
}


/* =========================================================
   CASE DESACTIVÉE
========================================================= */

.click-game-cell.disabled {

    cursor: default;

    pointer-events: none;
}


/* =========================================================
   RESULTATS
========================================================= */

#click-result-ok {

    width: 90%;

    max-width: 700px;

    margin: 20px auto;

    padding: 20px;

    text-align: center;

    border-radius: 15px;

    font-size: 18px;

    font-weight: bold;
}


#click-result-no {

    width: 90%;

    max-width: 700px;

    margin: 20px auto;

    padding: 20px;

    text-align: center;

    border-radius: 15px;

    font-size: 18px;

    font-weight: bold;
}

.bet-box {
    text-align: center;
    margin-bottom: 20px;
}

.bet-box input {
    padding: 8px;
    border-radius: 5px;
    border: none;
    width: 100px;
    text-align: center;
}

.bet-box button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, gold, orange);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.bet-box button:hover {
    box-shadow: 0 0 15px gold;
    transform: scale(1.05);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, gold, orange);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    box-shadow: 0 0 15px gold;
    transform: scale(1.05);
}

.regles-overlay { display: none; position: fixed; z-index: 99999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.80); align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; } 
.regles-overlay.active { display: flex; }
.regles-popup { position: relative; width: 100%; max-width: 740px; max-height: 90vh; overflow-y: auto; background: #111; border: 1px solid gold; border-radius: 15px; padding: 20px; box-sizing: border-box; box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 25px rgba(255,215,0,0.15); } 
.regles-close { position: absolute; top: 10px; right: 10px; width: 35px; height: 35px; border: none; border-radius: 50%; background: #333; color: white; font-size: 20px; font-weight: bold; cursor: pointer; z-index: 2; } 
.regles-close:hover { background: #ff4444; } 


/* =========================================================
   RESPONSIVE TABLETTE
========================================================= */

@media (max-width: 700px) {
	
.regles-overlay { padding: 10px; } 
.regles-popup { max-height: 92vh; padding: 10px; }	

    .click-game-grid {

        grid-template-columns:
            repeat(5, 1fr);

        gap: 7px;

        padding: 10px;
    }


    .click-game-cell {

        min-height: 60px;

        border-radius: 9px;
    }


    .click-game-hidden {

        font-size: 25px;
    }


    .click-stat {

        min-width: 100px;

        padding: 10px;
    }

}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 480px) {

    .click-game-grid {

        grid-template-columns:
            repeat(5, 1fr);

        gap: 5px;

        padding: 7px;
    }


    .click-game-cell {

        min-height: 55px;

        border-radius: 7px;

        border-width: 1px;
    }


    .click-game-hidden {

        font-size: 20px;
    }


    .click-game-header {

        justify-content: center;

        text-align: center;

        font-size: 15px;
    }


    .click-stat {

        min-width: 80px;

        font-size: 13px;
    }


    .click-stat strong {

        font-size: 17px;
    }

}