/* ==========================================================================
   /arcades/css/fox_runner/base.css
   LA DA MAGIQUE DE FOX RUNNER 🦊✨
========================================================================== */

/* Variables spécifiques au jeu (qui cohabitent avec le core.css du site) */
:root {
    --fox-gold: var(--ac-accent1, #d4af37);
    --fox-purple: var(--ac-accent2, #8a2be2);
    --fox-danger: var(--ac-danger, #e74c3c);
    --fox-hud-font: 'Press+Start+2P', 'Orbitron', monospace; /* Pour le score uniquement */
}

/* Le conteneur global du jeu */
#fox-app {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 40px auto;
    font-family: var(--ac-font-body, 'Merriweather', serif);
}

/* L'écrin (La zone de jeu) */
#game-container {
    position: relative;
    width: 800px;
    height: 400px;
    margin: 0 auto;
    background: var(--ac-bg, #0d0d12);
    border-radius: 12px;
    border: 2px solid var(--fox-purple);
    /* Lueur violette magique autour du jeu */
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4), inset 0 0 20px rgba(138, 43, 226, 0.2);
    overflow: hidden;
}

#game-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px; /* Épouse l'écrin */
}

.fox-hidden { display: none !important; }

/* ==========================================
   🎮 LE HUD EN JEU (Score & Vies)
========================================== */
#hud {
    position: absolute;
    top: 15px; left: 20px; right: 20px;
    display: flex;
    justify-content: space-between;
    font-family: var(--fox-hud-font);
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    pointer-events: none;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); /* Ombre forte pour lisibilité sur le ciel */
}

#lives span { 
    color: var(--fox-danger); 
    text-shadow: 0 0 10px var(--fox-danger); 
}

#powerup-status {
    display: inline-block;
    margin-top: 8px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* ==========================================
   📜 LES MENUS (Magie & Glassmorphism)
========================================== */
.menu-overlay {
    position: absolute; inset: 0;
    /* Effet Verre Dépoli Arcanique */
    background: rgba(13, 13, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ac-text, white);
    z-index: 100;
    border-radius: 10px;
}

.game-title {
    font-family: var(--ac-font-h1, 'Cinzel', serif);
    color: var(--fox-gold);
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    /* Lueur dorée pulsante */
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    animation: floatTitle 3s ease-in-out infinite alternate;
}

@keyframes floatTitle {
    0% { transform: translateY(0); text-shadow: 0 0 15px rgba(212, 175, 55, 0.5); }
    100% { transform: translateY(-5px); text-shadow: 0 0 25px rgba(212, 175, 55, 0.9); }
}

.menu-overlay p {
    font-family: var(--ac-font-h2, 'Almendra', serif);
    font-size: 1.3rem;
    color: var(--ac-muted, #aaa);
    margin-bottom: 30px;
}

.death-text {
    font-family: var(--ac-font-h1, 'Cinzel', serif);
    color: var(--fox-danger);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
}

#final-score-text {
    font-family: var(--fox-hud-font);
    color: var(--fox-gold);
    line-height: 2;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ==========================================
   🎛️ LES ÉLÉMENTS DE FORMULAIRE (Select & Boutons)
========================================== */
.menu-block { margin: 20px 0; }

.menu-block select {
    padding: 12px 20px; 
    background: var(--ac-card, #1a1a24); 
    color: var(--ac-text, #fff);
    border: 1px solid var(--fox-purple); 
    border-radius: 8px;
    font-family: var(--ac-font-h2, 'Almendra', serif);
    font-size: 1.2rem;
    outline: none; 
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s;
}

.menu-block select:hover {
    border-color: var(--fox-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Bouton façon Grimoire Arcanique */
.arcade-btn {
    background: transparent;
    color: var(--fox-gold);
    border: 2px solid var(--fox-gold);
    padding: 15px 40px; 
    font-family: var(--ac-font-h1, 'Cinzel', serif);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer; 
    margin-top: 20px; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.2), 0 0 15px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
}

.arcade-btn:hover { 
    transform: scale(1.05); 
    background: var(--fox-gold);
    color: #000;
    box-shadow: inset 0 0 0 rgba(212, 175, 55, 0), 0 0 25px rgba(212, 175, 55, 0.6);
}

/* ==========================================
   🎮 INSTRUCTIONS & AUDIO
========================================== */
.game-instructions {
    text-align: center; 
    margin-top: 25px; 
    color: var(--ac-muted, #aaa); 
    font-size: 1rem;
    font-family: var(--ac-font-body, serif);
}

/* Touches de clavier magiques */
.game-instructions kbd {
    background: var(--ac-card, #1a1a24); 
    color: var(--fox-gold); 
    padding: 4px 10px;
    border-radius: 6px; 
    border: 1px solid var(--fox-purple);
    box-shadow: 0 2px 0 var(--fox-purple);
    font-family: monospace;
    font-weight: bold;
    margin: 0 4px;
}

.audio-controls {
    display: flex; 
    justify-content: center; 
    gap: 50px; 
    margin-top: 25px; 
    color: var(--ac-muted, #aaa); 
    font-family: var(--ac-font-h2, 'Almendra', serif);
    font-size: 1.1rem;
}

.audio-controls label { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
    cursor: pointer; 
}

/* Sliders customisés (les petites barres de son) */
.audio-controls input[type="range"] { 
    -webkit-appearance: none;
    appearance: none;
    width: 130px; 
    height: 6px;
    background: var(--ac-card, #1a1a24);
    border-radius: 5px;
    border: 1px solid var(--fox-purple);
    outline: none;
}

.audio-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--fox-gold);
    cursor: pointer;
    box-shadow: 0 0 10px var(--fox-gold);
}