/* =========================================
   HUMANITY CHECK - GAUNTLET
   ========================================= */
.humanity-wrapper {
    flex: 1; width: 100%; max-width: 900px; margin: 40px auto 80px;
    padding: 0 20px; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 10;
}

.main-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 5px; letter-spacing: -2px; text-align: center; text-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 30px rgba(59, 130, 246, 0.4); }
.main-title span { color: var(--success-green); }
.subtitle { color: var(--text-muted); font-weight: 800; font-size: 1.2rem; margin-bottom: 40px; text-align: center; }

.game-card {
    background: var(--card-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--nav-border); border-radius: 24px; padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
    width: 100%; min-height: 550px; position: relative; overflow: hidden; display: flex; flex-direction: column;
}

/* Gestion des Écrans */
.screen-layer { display: none; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; flex: 1; }
.screen-layer.active { display: flex; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

/* HUD Global */
.game-hud { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.game-info h3 { margin: 0 0 5px; font-size: 1.5rem; font-weight: 900; color: white; text-transform: uppercase; }
.game-info span { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.game-stats { text-align: right; }
.score-display { font-size: 1.5rem; font-weight: 900; color: var(--primary-blue); margin-bottom: 5px; }
.lives-display { display: flex; gap: 5px; justify-content: flex-end; color: var(--recruit-red); font-size: 1.2rem; transition: color 0.3s; }
.lives-display i { transition: 0.3s; }
.lives-display i.lost { color: rgba(255,255,255,0.1); transform: scale(0.8); }

/* Timer */
.timer-container { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.timer-bar { height: 100%; width: 100%; background: var(--success-green); transition: width 0.05s linear, background-color 0.3s; }

/* Conteneur des jeux */
.game-container { position: relative; flex: 1; width: 100%; display: flex; justify-content: center; align-items: center; }
.mini-game-ui { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; flex-direction: column; }
.mini-game-ui.active { display: flex; }

/* Transition Overlay */
.transition-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 14, 20, 0.95); backdrop-filter: blur(10px);
    display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 50; text-align: center; padding: 20px;
}
.transition-overlay.active { display: flex; }
.transition-overlay h2 { font-size: 3rem; color: var(--twitch-purple); margin-bottom: 10px; font-weight: 900; text-transform: uppercase; }
.transition-overlay p { color: white; font-size: 1.1rem; max-width: 600px; line-height: 1.6; font-weight: 600; white-space: pre-line; }

/* --- 1. SIMON --- */
.simon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; width: 100%; max-width: 350px; }
.simon-tile { aspect-ratio: 1; background: rgba(30, 32, 45, 0.8); border: 2px solid rgba(255,255,255,0.05); border-radius: 16px; cursor: pointer; transition: 0.1s; }
.simon-tile:hover { background: rgba(255,255,255,0.05); }
.simon-tile:active { transform: scale(0.95); }
.simon-tile.active-glow { background: var(--primary-blue); box-shadow: 0 0 30px var(--primary-glow); border-color: #60a5fa; }
.simon-tile.error-glow { background: var(--recruit-red); box-shadow: 0 0 30px rgba(244, 63, 94, 0.6); }

/* --- 2. AIM TRAINER --- */
.aim-area { width: 100%; height: 350px; background: rgba(0,0,0,0.3); border-radius: 16px; position: relative; overflow: hidden; border: 1px dashed rgba(255,255,255,0.1); cursor: crosshair; }
.aim-target {
    position: absolute; width: 40px; height: 40px; background: radial-gradient(circle, #fff 20%, var(--primary-blue) 80%);
    border-radius: 50%; transform: translate(-50%, -50%); cursor: pointer; box-shadow: 0 0 15px var(--primary-blue);
    animation: popIn 0.2s ease-out;
}
@keyframes popIn { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }

/* --- 3. SMITE REFLEX --- */
.smite-box {
    width: 100%; max-width: 400px; height: 250px; background: var(--recruit-red); border-radius: 20px;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; color: white;
    cursor: pointer; transition: 0.1s; box-shadow: 0 10px 30px rgba(244, 63, 94, 0.3); text-transform: uppercase;
}
.smite-box.ready { background: var(--success-green); box-shadow: 0 10px 40px rgba(16, 185, 129, 0.5); }
.smite-box:active { transform: scale(0.97); }

/* --- 4. CHIMP TEST --- */
.chimp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; max-width: 400px; }
.chimp-tile {
    aspect-ratio: 1; background: white; color: black; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 900; cursor: pointer; transition: 0.2s;
}
.chimp-tile.hidden-num { background: rgba(255,255,255,0.1); color: transparent; }
.chimp-tile.empty { background: transparent; pointer-events: none; }
.chimp-tile.cleared { opacity: 0; pointer-events: none; }

/* --- 5. APM CHECK --- */
.apm-box {
    width: 100%; max-width: 400px; height: 250px; background: var(--twitch-purple); border-radius: 20px;
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 900; color: white;
    cursor: pointer; user-select: none; box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}
.apm-box:active { transform: scale(0.95); background: #7c3aed; }
.apm-counter { margin-top: 20px; font-size: 1.5rem; font-weight: 900; }

/* --- 6. STROOP TEST --- */
.stroop-word { font-size: 4.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 40px; letter-spacing: 2px; }
.stroop-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; max-width: 400px; }
.stroop-btn {
    background: rgba(30, 32, 45, 0.8); border: 2px solid currentColor; padding: 20px; border-radius: 12px;
    font-size: 1.2rem; font-weight: 900; text-transform: uppercase; cursor: pointer; transition: 0.2s;
}
.stroop-btn:hover { background: currentColor; color: white !important; }

/* =========================================
   RÉSULTATS FINAUX (RADAR + SCORES)
   ========================================= */
.results-container { display: flex; align-items: center; justify-content: center; gap: 40px; width: 100%; flex-wrap: wrap; margin-bottom: 20px; }
.chart-container { flex: 1; min-width: 300px; max-width: 400px; }
.score-details { flex: 1; min-width: 280px; max-width: 350px; background: rgba(0,0,0,0.3); padding: 25px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.score-details h4 { font-size: 1.2rem; font-weight: 900; color: var(--twitch-purple); margin: 0 0 20px; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
.score-details ul { list-style: none; display: flex; flex-direction: column; gap: 15px; margin: 0; padding: 0; }
.score-details li { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 10px; }
.score-details li span:first-child { color: var(--text-muted); }
.score-details li span:last-child { color: var(--primary-blue); font-weight: 900; font-size: 1.1rem; }

.btn-glow { padding: 16px 40px; border-radius: 12px; font-family: 'Inter', sans-serif; font-weight: 900; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; color: white; border: none; cursor: pointer; transition: all 0.3s; background: linear-gradient(135deg, var(--success-green), #059669); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(16, 185, 129, 0.5); }

@media (max-width: 700px) { .results-container { flex-direction: column; } .game-card { padding: 20px; } .main-title { font-size: 2.5rem; } .stroop-word { font-size: 3rem; } }