@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

#gameCanvas * { margin: 0; padding: 0; box-sizing: border-box; }

#gameCanvas {
    --cbu-bg: #050510;
    --cbu-neon-blue: #00f3ff;
    --cbu-neon-pink: #bc13fe;
    --cbu-neon-green: #0aff0a;
    --cbu-neon-red: #ff003c;
    
    font-family: 'Orbitron', sans-serif;
    background: var(--cbu-bg);
    display: flex; justify-content: center; align-items: center;
    width: 100%; padding: 10px;
    min-height: 650px;
}

#cbu-game-wrapper {
    position: relative; width: 100%; max-width: 900px;
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000 100%);
    border: 2px solid #333; border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    overflow: hidden; display: flex; flex-direction: column;
}

/* HUD */
#cbu-hud {
    height: 50px; width: 100%;
    background: rgba(0,0,0,0.8); border-bottom: 1px solid #333;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; color: #fff; font-size: 0.9rem; letter-spacing: 1px; z-index: 20;
}
.cbu-hud-item span { color: var(--cbu-neon-blue); font-weight: bold; margin-left: 5px; }
.cbu-hud-controls { display: flex; gap: 10px; }

.cbu-icon-btn {
    background: transparent; border: 1px solid #555; color: #aaa;
    width: 30px; height: 30px; border-radius: 5px; cursor: pointer;
    display: flex; justify-content: center; align-items: center; transition: all 0.2s;
}
.cbu-icon-btn:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

/* Canvas */
#cbu-game-canvas { width: 100%; flex-grow: 1; display: block; }

/* MENUS & OVERLAYS */
.cbu-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px);
    display: flex; justify-content: center; align-items: center;
    z-index: 50; transition: opacity 0.3s;
}

.cbu-panel {
    text-align: center; padding: 40px; border-radius: 15px;
    width: 90%; max-width: 500px; /* Un peu plus large */
    display: flex; flex-direction: column; gap: 25px;
    background: rgba(10, 10, 20, 0.95);
}

/* Styles Néon */
.neon-box { border: 2px solid var(--cbu-neon-blue); box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); }
.neon-box-red { border: 2px solid var(--cbu-neon-red); box-shadow: 0 0 15px rgba(255, 0, 60, 0.3); }
.neon-box-green { border: 2px solid var(--cbu-neon-green); box-shadow: 0 0 15px rgba(10, 255, 10, 0.3); }
.neon-box-blue { border: 2px solid var(--cbu-neon-blue); box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); }

.neon-text { color: #fff; text-shadow: 0 0 10px var(--cbu-neon-blue); font-size: 2.5rem; margin: 0; }
.neon-text-red { color: var(--cbu-neon-red); text-shadow: 0 0 10px var(--cbu-neon-red); font-size: 2.5rem; margin: 0; }
.neon-text-green { color: var(--cbu-neon-green); text-shadow: 0 0 10px var(--cbu-neon-green); font-size: 2rem; margin: 0; }
.neon-text-blue { color: var(--cbu-neon-blue); text-shadow: 0 0 10px var(--cbu-neon-blue); font-size: 2.5rem; margin: 0; }

.cbu-instructions { color: #aaa; font-size: 0.9rem; line-height: 1.6; }
.cbu-stats-summary { color: #fff; font-size: 1.2rem; }
.cbu-stats-summary span { color: var(--cbu-neon-blue); font-weight: bold; }

/* Boutons Menu (Agrandi pour éviter le débordement) */
.cbu-btn-primary {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white; border: none; padding: 15px 40px; font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif; font-weight: bold; letter-spacing: 1px;
    border-radius: 50px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4); text-transform: uppercase;
    min-width: 180px; /* Largeur mini assurée */
}
.cbu-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 114, 255, 0.6); }

.cbu-btn-secondary {
    background: transparent; border: 2px solid #555; color: #ccc;
    padding: 12px 30px; font-size: 1rem; border-radius: 50px;
    cursor: pointer; transition: all 0.2s; font-family: 'Orbitron', sans-serif;
    min-width: 150px;
}
.cbu-btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

.cbu-btn-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cbu-hidden { opacity: 0; pointer-events: none; z-index: -1; }