/* 7-erreurs.css */

.instructions {
    background:#111;
    padding:12px;
    margin:15px auto 15px auto;
    border-radius:8px;
    color:#fff;
    text-align:left;
    font-weight:bold;
	max-width: 900px;
    box-shadow: 0 0 5px #0ff;
}

/* Zone du jeu */
#game-container {
    position: relative; /* IMPORTANT */
    text-align: center;
}

.error-zone {
    border: 2px dashed rgba(255,255,255,0.7);
    border-radius: 50%;
    box-sizing: border-box;
    cursor: pointer;
    position: absolute;
    z-index: 2;
}

.indice-score {
	font-weight: bold;
	font-size: 24px;
	margin:10px auto 10px auto;
}

.sprite-overlay {
    position: absolute;
    background-size: cover;
    display: none;
    z-index: 3;
}

.error-zone:hover {
    border-color: rgba(255,215,0,0.7);
}

/* Bouton rejouer */
.btn-reset {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.1em;
    background-color: #1E90FF;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-reset:hover {
    background-color: #0d6efd;
}

/* Player info en bas */
#player-info {
    margin-top: 15px;
    font-size: 1.1em;
    color: #fff;
}

#game-image {
    border-radius: 10px;
}

.gratte-result-ok,
.gratte-result-no {
    margin: 10px auto;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    max-width: 600px;
}

.gratte-result-ok {
    border: 1px dashed lightgreen;
    color: white;
}

.gratte-result-no {
    border: 1px dashed lightcoral;
    color: white;
}

/* ===== OVERLAY BLACKJACK WIN ===== */
#blackjack-win-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#blackjack-win-overlay.show {
    opacity: 1;
    pointer-events: all;
}

#blackjack-win-overlay h1 {
    font-size: 5rem;
    color: gold;
    text-shadow:
        0 0 15px #fff,
        0 0 30px gold,
        0 0 60px gold;
    animation: blackjackPulse 1s infinite alternate;
}

@keyframes blackjackPulse {
    from { transform: scale(1); }
    to { transform: scale(1.3); }
}

/* Mobile responsive */
@media (max-width: 600px){
    #game-wrapper {
        width: 95% !important;
		margin: auto;
    }
	
    #game-image {
        display: inline !important;
    }

    #blackjack-win-overlay h1 {
        font-size: 1.8rem;
    }	
}
