
/* =========================
   WHEEL STYLE SLOT
========================= */
#phrase-grid {
	margin: 15px auto 8px auto;
}

#wheel {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    line-height: 100px;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: #0ff;
    background: #2C2C2C;
    border-radius: 50%;
    box-shadow: 0 0 20px #0ff;
    transition: transform 0.2s;
    user-select: none;
}

/* Optionnel: effet de rotation */
#wheel.spin {
    animation: spinEffect 2s ease-out forwards;
}

@keyframes spinEffect {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(1080deg); }
}

/* =========================
   PHRASE INPUTS
========================= */
.letter-input {
    width: 30px;
    height: 40px;
    text-align: center;
    font-size: 1.5rem;
    margin: 2px;
    text-transform: uppercase;
    background: #2C2C2C;
    box-shadow: 0 0 10px #0ff;
    color: white;	
}

/* =========================
   MESSAGES
========================= */
#game-message {
    margin: 20px;
    text-align: center;
    font-weight: bold;
    color: #1E90FF;
}

/* =========================
   CONSONNE GRID
========================= */
#consonne-grid, #voyelle-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

#consonne-grid button, #voyelle-grid button {
    width: 40px;
    height: 40px;
    font-weight: bold;
    border-radius: 8px;
    background: none;
}

/* =========================
   NOUVELLE PHRASE
========================= */
#new-game-btn {
    display: none;
    margin-top: 10px;
}

.cluedo-result-ok, .cluedo-result-no {
    margin:10px 0;
    padding:10px;
    border-radius:10px;
    display:none;
}
.cluedo-result-ok { border: dashed lightgreen; color: white; max-width: 600px; margin: 10px auto 0 auto; }
.cluedo-result-no { border: dashed lightcoral; color: white; max-width: 600px; margin: 10px auto 0 auto; }

/* Overlay WIN */
#phrase-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;
}

#phrase-win-overlay.show {
    opacity: 1;
    pointer-events: all;
}

#phrase-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); }
}

.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; } 

@media (max-width: 600px) { 
.regles-overlay { padding: 10px; } 
.regles-popup { max-height: 92vh; padding: 10px; } 
.tournoi-info { padding: 15px !important; } 
}